Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(scraping): 来源和凭证页加全部检查

longmeidao794ed80c7a78
diff --git a/docs/DOCKER.md b/docs/DOCKER.md
index a50c8062f..a6e6081cb 100644
--- a/docs/DOCKER.md
+++ b/docs/DOCKER.md
@@ -172,7 +172,9 @@ Docker Hub 页面以英文为主,概览正文取自 [docs/dockerhub/README.md]
## 安装后检查资料源与封面连接
-完成首次设置、保存代理或来源 Cookie 后,在容器管理器的终端执行:
+完成首次设置、保存代理或来源 Cookie 后,打开「数据管理 → 来源和凭证」,在「连接检查」里点「全部检查」。检查在后台进行,页面显示已检查的来源数;离开页面不中断,回来仍能看到上一次的结果,任务中心也会留下这一轮记录。
+
+只想重查几个来源,或需要机器可读的结果时,在容器管理器的终端执行同一检查:
```bash
python -m peach check-sources
@@ -181,4 +183,4 @@ python -m peach check-sources --source dmm --source javdb --json
检查在 NAS 容器内发起,使用该实例已有的来源网络设置、Cookie 与冷却记录。最多四个来源并发,每个来源限制请求次数、读取量与时间预算;只读取来源页面和 DMM 图片 CDN 样本,不读取影片、不启动桌面浏览器。结果保留到现有采集设置的来源连接记录;限流或拒绝访问沿用现有冷却机制,不自动关闭来源或修改代理。
-报告逐项区分可连接、登录或人机验证、HTTP 错误、冷却与网络失败。页面能连接仅说明检查地址可达,不代表全部作品资料、封面或登录会话可用;片商官网需要番号时标记为未检查,不计为连接失败。其余目标未通过时退出码为 1。更换 NAS 出口或代理后可再次运行;`--source` 可重复指定,仅重查关心的来源。不要在短时间内反复检查正在冷却的来源。
+网页与命令行的报告使用同一口径,逐项区分可连接、登录或人机验证、HTTP 错误、冷却与网络失败。正在冷却的来源直接报冷却,不再发请求。页面能连接仅说明检查地址可达,不代表全部作品资料、封面或登录会话可用;片商官网需要番号时标记为未检查,不计为连接失败。命令行在其余目标未通过时退出码为 1。更换 NAS 出口或代理后可再次检查;`--source` 可重复指定,仅重查关心的来源。
diff --git a/docs/ROUTES.md b/docs/ROUTES.md
index e6151a430..7ff46b9e2 100644
--- a/docs/ROUTES.md
+++ b/docs/ROUTES.md
@@ -96,7 +96,7 @@
| `/settings/maintenance` | 应用与维护 |
| `/settings/diagnostics` | 系统诊断:系统检查、库健康、来源会话与后台诊断、刮削记录导出 |
| `/subscriptions` | 关注管理:关注列表统一管理创作者来源与 JAV 订阅;添加关注提供创作者、女优入口和别名管理,标签管理支持在线标签分页与批量操作 |
-| `/sources` | 来源和凭证:采集来源、访问方式与凭据状态 |
+| `/sources` | 来源和凭证:采集来源、访问方式与凭据状态,全部来源的连接检查 |
| `/tasks` | 任务中心与云下载进度 |
| `/stats` | 统计 |
| `/taste` | 口味分析 |
diff --git a/docs/reference-snapshots/task-progress-surfaces.md b/docs/reference-snapshots/task-progress-surfaces.md
index b50265de0..9daf3b3d7 100644
--- a/docs/reference-snapshots/task-progress-surfaces.md
+++ b/docs/reference-snapshots/task-progress-surfaces.md
@@ -17,7 +17,7 @@
| 关注管理:关注列表 | 检查更新、抓取历史 | 关注列表卡正文 |
| 关注管理:添加关注 | 解析链接、按名称查找 | 添加关注卡正文;输入建议的等待点位于建议菜单 |
| 活动 | 每项正在运行的任务 | 活动任务卡正文 |
-| 来源和凭证 | 抓取封面、重建运行环境 | 设置分组正文 |
+| 来源和凭证 | 全部检查、抓取封面、重建运行环境 | 设置分组正文;全部检查按已检查来源数显示进度条 |
| 配置:更新与维护 | 下载、校验、解压、准备安装 | 更新设置分组,保留阶段刻度 |
| 目录顶部 | 扫描与采集全局提示 | 紧凑通知栏,使用环形进度 |
| 遗留任务状态(`jobs.ts`) | `jobActivityHtml` 的调用方 | 沿用所在操作区,使用环形进度或等待点 |
diff --git a/frontend/src/management-placeholder.ts b/frontend/src/management-placeholder.ts
index 593cefb2d..9e5827d53 100644
--- a/frontend/src/management-placeholder.ts
+++ b/frontend/src/management-placeholder.ts
@@ -54,7 +54,7 @@ const PLACEHOLDERS: Record<string, () => string> = {
// 旧地址 /resource-sync 打开后转到资源同步二级页,占位先画成那一页,转过去时同一个键不重画。
'/resource-sync': () => cleanupToolSkeletonHtml('resource-sync'),
'/review': () => reviewSkeletonHtml(),
- /* 采集来源是 812px 窄列里一叠同宽的 Fieldset:一块高清封面加六个来源。骨架画四块,
+ /* 采集来源是 812px 窄列里一叠同宽的 Fieldset:连接检查、高清封面,再接各个来源。骨架画四块,
那是首屏装得下的张数;说明那一句是静态文案,与数据无关,立刻显示。 */
'/sources': () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${pageSkeletonHtml('正在读取采集来源', { cards: true, count: 4, fill: false, className: 'cleanup-skeleton' })}</div>`,
diff --git a/frontend/src/react/activity/task-icon.tsx b/frontend/src/react/activity/task-icon.tsx
index 314dfd4b3..dd2063df5 100644
--- a/frontend/src/react/activity/task-icon.tsx
+++ b/frontend/src/react/activity/task-icon.tsx
@@ -15,7 +15,7 @@ const FAMILIES: [Icon, string[]][] = [
[RiImage2Line, ['scraping-cover', 'jav-covers', 'code-samples', 'timeline-thumbnails', 'entity-avatar']],
[RiUser3Line, ['performer-profile', 'performer-alias', 'creator-identity', 'studio-mark']],
[RiFilmLine, ['media-repair', 'mp4-header-repair']],
- [RiLinksLine, ['link-check', 'link-prune']],
+ [RiLinksLine, ['link-check', 'link-prune', 'source-check']],
[RiDownloadCloud2Line, ['download-postprocess']],
[RiHeart3Line, ['taste-refresh']],
[RiToolsLine, ['upgrade-repairs', 'diagnostic-export', 'amane-bridge', 'face-models', 'ledger-backup', 'ledger-restore']],
diff --git a/frontend/src/react/scraping/scraping-page.tsx b/frontend/src/react/scraping/scraping-page.tsx
index bf0cb748f..18bca2f78 100644
--- a/frontend/src/react/scraping/scraping-page.tsx
+++ b/frontend/src/react/scraping/scraping-page.tsx
@@ -19,11 +19,14 @@ import { Input } from '@/components/base/input/input';
import { Select, SelectItem } from '@/components/base/select/select';
import { apiSend, errorMessage } from '../../api';
+import { momentText } from '../activity/tasks';
import { useBackgroundJob } from '../background-job';
import type { ScrapingProps } from '../bundle';
+import { IssueRow } from '../components/issue-row';
import { LoadingDots } from '../components/loading-dots';
import { Note } from '../components/note';
-import { StatusLabel } from '../components/status-label';
+import { Progress } from '../components/progress';
+import { StatusLabel, type StatusTone } from '../components/status-label';
import { ConnectionStatus } from '../components/connection-status';
import { Page } from '../components/page';
import { SiteMark } from '../components/site-mark';
@@ -35,10 +38,11 @@ import {
import { busyProps } from '../settings/use-action';
import { CustomSources } from './custom-sources';
import {
- AMANE_BRIDGE_CHECK_URL, AMANE_BRIDGE_KEY, AMANE_BRIDGE_REBUILD_URL,
- checkText, COOKIE_TEXT_LIMIT, COVER_JOB_KEY, fetchAmaneBridge, fetchCoverJob,
- fetchSources, SCRAPING_CHECK_URL, SCRAPING_COVER_URL, SCRAPING_KEY, SCRAPING_SETTINGS_URL,
- type AmaneBridge, type Check, type CoverJob, type ScrapingData, type Source,
+ AMANE_BRIDGE_CHECK_URL, AMANE_BRIDGE_KEY, AMANE_BRIDGE_REBUILD_URL, CHECK_ALL_KEY,
+ checkText, COOKIE_TEXT_LIMIT, COVER_JOB_KEY, fetchAmaneBridge, fetchCheckAllJob, fetchCoverJob,
+ fetchSources, SCRAPING_CHECK_ALL_URL, SCRAPING_CHECK_URL, SCRAPING_COVER_URL, SCRAPING_KEY,
+ SCRAPING_SETTINGS_URL, type AmaneBridge, type Check, type CheckAllJob, type CheckOutcome,
+ type CoverJob, type ReportedCheck, type ScrapingData, type Source, type SourceReport,
} from './scraping';
const NETWORKS = [['peach', 'Peach 代理'], ['direct', '直接连接']] as const;
@@ -235,6 +239,106 @@ function SourceCard({ source, toast }: { source: Source } & ScrapingProps) {
);
}
+/** 报告口径的着色:要人去处理的标黄,连不上的标红,片商官网那种不在这里查的标灰。 */
+const OUTCOME_TONES: Record<CheckOutcome, StatusTone> = {
+ ok: 'success', auth: 'warning', http: 'error', cooldown: 'warning', network: 'error', skipped: 'neutral',
+};
+/** 摘要里各口径的先后:先可连接,再按要人动手的程度排。 */
+const OUTCOME_ORDER: CheckOutcome[] = ['ok', 'auth', 'cooldown', 'http', 'network', 'skipped'];
+
+/** 一项检查的名字:只查一跳的来源就是它本身。 */
+function targetName(report: SourceReport, check: ReportedCheck): string {
+ return check.label === '来源页面' ? report.label : `${report.label} 高清图片`;
+}
+
+/** 全部来源一次检查完,与 `peach check-sources` 同一检查、同一报告口径。这一趟在后台跑,
+ * 离开页面再回来,读到的是服务端留着的那一份结果。 */
+function CheckAllCard({ toast }: ScrapingProps) {
+ const { job, running, start } = useBackgroundJob<CheckAllJob>({
+ queryKey: CHECK_ALL_KEY,
+ queryFn: ({ signal }) => fetchCheckAllJob(signal),
+ start: () => apiSend<CheckAllJob>(SCRAPING_CHECK_ALL_URL, {}),
+ onFinish: (state) => {
+ // 限流与拒绝访问会记下冷却,各来源卡上的「冷却中」跟着重读。
+ void queryClient.invalidateQueries({ queryKey: SCRAPING_KEY, exact: true });
+ if (state.status === 'complete') toast(state.failed ? `检查完成,${state.failed} 项未通过` : '检查完成,全部可连接');
+ },
+ });
+ const submit = (event: FormEvent<HTMLFormElement>) => {
+ event.preventDefault();
+ if (running || start.isPending) return;
+ start.mutate();
+ };
+
+ const checks = (job?.results ?? []).flatMap(
+ (report) => report.results.map((check) => ({ name: targetName(report, check), check })));
+ const passed = checks.filter(({ check }) => check.outcome === 'ok');
+ // 按口径成组,组内保持来源顺序:要人去登录的排前面,不在这里查的片商官网垫底。
+ const problems = checks.filter(({ check }) => check.outcome !== 'ok').sort(
+ (a, b) => OUTCOME_ORDER.indexOf(a.check.outcome) - OUTCOME_ORDER.indexOf(b.check.outcome));
+ const problem = start.error ? errorMessage(start.error)
+ : job?.status === 'failed' ? (job.error || '检查未完成') : '';
+ const finished = job?.status === 'complete' && job.completed_at
+ ? [momentText(new Date(job.completed_at * 1000).toISOString()),
+ job.elapsed_s !== undefined ? `用时 ${job.elapsed_s.toFixed(1)} 秒` : ''].filter(Boolean).join(' · ')
+ : '';
+
+ return (
+ <Section id="check-all" title="连接检查" onSubmit={submit}>
+ <Stack>
+ {/* 说明写在一行里:拆行的 JSX 文本渲染时多出空格,改字工具就对不上源码。 */}
+ <Help>检查各来源页面与 DMM 高清图片服务器,最多四个来源同时进行;正在冷却的来源不再请求。可连接只说明检查地址可达,不代表登录有效。</Help>
+ {running
+ ? <div className="flex flex-col gap-2">
+ <Progress label="连接检查进度" value={job?.checked ?? 0} max={job?.total ?? 0} />
+ <Help role="status">已检查 {job?.checked ?? 0} / {job?.total ?? 0} 个来源</Help>
+ </div>
+ : null}
+ {problem ? <Note tone="error">{problem}</Note> : null}
+ {checks.length
+ ? <div className="flex flex-wrap gap-2">
+ {OUTCOME_ORDER.map((key) => {
+ const count = checks.filter(({ check }) => check.outcome === key).length;
+ return count ? <StatusLabel key={key} tone={OUTCOME_TONES[key]}>
+ {checks.find(({ check }) => check.outcome === key)?.check.outcome_label} {count}
+ </StatusLabel> : null;
+ })}
+ </div>
+ : null}
+ {problems.length
+ ? <ul className="flex min-w-0 flex-col">
+ {problems.map(({ name, check }) => (
+ <IssueRow key={name} title={name}>
+ <span className="flex flex-wrap items-center gap-2">
+ <StatusLabel tone={OUTCOME_TONES[check.outcome]}>{check.outcome_label}</StatusLabel>
+ {check.message
+ ? <span className="text-body-2-regular text-text-secondary">{check.message}</span>
+ : null}
+ </span>
+ </IssueRow>
+ ))}
+ </ul>
+ : null}
+ {passed.length
+ ? <Disclosure summary={`可连接的 ${passed.length} 项`}>
+ <FactList>
+ {passed.map(({ name, check }) => (
+ <Fact key={name} term={name}>
+ {[check.width ? `${check.width} × ${check.height}` : '',
+ check.elapsed_s !== undefined ? `${check.elapsed_s.toFixed(2)} 秒` : ''].filter(Boolean).join(' · ')}
+ </Fact>
+ ))}
+ </FactList>
+ </Disclosure>
+ : null}
+ </Stack>
+ <Footer status={finished ? `上次检查 ${finished}` : undefined}>
+ <Button type="submit" {...busyProps(running || start.isPending)}>全部检查</Button>
+ </Footer>
+ </Section>
+ );
+}
+
/** 按番号补一张高清封面。这一趟在后台跑,页面上留状态。 */
function CoverCard({ toast }: ScrapingProps) {
const [code, setCode] = useState('');
@@ -360,6 +464,7 @@ export function ScrapingPage({ toast }: ScrapingProps) {
return (
<Page>
<p className="text-body-2-regular text-text-secondary">高清图片可能要经代理才能下载,先检查连接。</p>
+ <CheckAllCard toast={toast} />
<CoverCard toast={toast} />
<CustomSources receipt={toast} />
{(data.sources || []).map(
diff --git a/frontend/src/react/scraping/scraping.ts b/frontend/src/react/scraping/scraping.ts
index deb686834..0bcd83044 100644
--- a/frontend/src/react/scraping/scraping.ts
+++ b/frontend/src/react/scraping/scraping.ts
@@ -10,6 +10,7 @@ import { CUSTOM_SOURCES_KEY, fetchCustomSources } from './custom-source-data';
export const SCRAPING_URL = '/api/scraping';
export const SCRAPING_SETTINGS_URL = '/api/scraping/settings';
export const SCRAPING_CHECK_URL = '/api/scraping/check';
+export const SCRAPING_CHECK_ALL_URL = '/api/scraping/check-all';
export const SCRAPING_COVER_URL = '/api/scraping/cover';
export const AMANE_BRIDGE_URL = '/api/scraping/amane-bridge';
export const AMANE_BRIDGE_CHECK_URL = '/api/scraping/amane-bridge/check';
@@ -19,6 +20,8 @@ export const AMANE_BRIDGE_REBUILD_URL = '/api/scraping/amane-bridge/rebuild';
export const SCRAPING_KEY = ['scraping'] as const;
/** 抓封面那一趟后台任务的状态。 */
export const COVER_JOB_KEY = ['scraping', 'cover'] as const;
+/** 全部来源连接检查那一趟后台任务的状态。 */
+export const CHECK_ALL_KEY = ['scraping', 'check-all'] as const;
/** amane 桥的事实与重建任务的状态(`q_scraping_amane_bridge`)。 */
export const AMANE_BRIDGE_KEY = ['scraping', 'amane-bridge'] as const;
@@ -52,6 +55,35 @@ export interface Check {
checked_at?: number;
}
+/** 全部检查的报告口径,同 `peach check-sources`(`src/peach/source_preflight.py` 的 `OUTCOMES`)。 */
+export type CheckOutcome = 'ok' | 'auth' | 'http' | 'cooldown' | 'network' | 'skipped';
+
+/** 全部检查里的一项:比单项检查多了归类与它的中文名。 */
+export interface ReportedCheck extends Check {
+ outcome: CheckOutcome;
+ outcome_label: string;
+}
+
+/** 全部检查里的一个来源。 */
+export interface SourceReport {
+ source: string;
+ label: string;
+ results: ReportedCheck[];
+}
+
+/** 全部检查的后台任务快照(`source_check_job`)。跑的时候 `results` 按完成先后追加,
+ * 完成后换成按来源顺序排好的整份。`failed` 不计「未检查」。 */
+export interface CheckAllJob {
+ status: string;
+ checked?: number;
+ total?: number;
+ results?: SourceReport[];
+ failed?: number;
+ elapsed_s?: number;
+ completed_at?: number;
+ error?: string;
+}
+
/** 抓封面的后台任务快照(`scraping_cover_job`)。`status` 是 `idle|running|complete|failed`。 */
export interface CoverJob {
status: string;
@@ -85,6 +117,7 @@ export const COOKIE_TEXT_LIMIT = 256 * 1024;
export const fetchSources = (signal?: AbortSignal) => apiGet<ScrapingData>(SCRAPING_URL, signal);
export const fetchCoverJob = (signal?: AbortSignal) => apiGet<CoverJob>(SCRAPING_COVER_URL, signal);
+export const fetchCheckAllJob = (signal?: AbortSignal) => apiGet<CheckAllJob>(SCRAPING_CHECK_ALL_URL, signal);
export const fetchAmaneBridge = (signal?: AbortSignal) => apiGet<AmaneBridge>(AMANE_BRIDGE_URL, signal);
/** 首屏来源与任务快照并发取回,同一份缓存交给页面各分区。
@@ -96,6 +129,7 @@ export async function prefetchScraping(signal: AbortSignal): Promise<void> {
await Promise.all([
queryClient.fetchQuery({ queryKey: SCRAPING_KEY, queryFn: () => fetchSources(signal) }),
queryClient.fetchQuery({ queryKey: COVER_JOB_KEY, queryFn: () => fetchCoverJob(signal) }),
+ queryClient.fetchQuery({ queryKey: CHECK_ALL_KEY, queryFn: () => fetchCheckAllJob(signal) }),
queryClient.fetchQuery({ queryKey: AMANE_BRIDGE_KEY, queryFn: () => fetchAmaneBridge(signal) }),
queryClient.fetchQuery({ queryKey: CUSTOM_SOURCES_KEY, queryFn: () => fetchCustomSources(signal) }),
]);
diff --git a/src/peach/cli.py b/src/peach/cli.py
index 9a11e501d..8d05a420b 100644
--- a/src/peach/cli.py
+++ b/src/peach/cli.py
@@ -771,8 +771,7 @@ def _check_sources(args: argparse.Namespace) -> int:
print("检查来源页面与图片 CDN;连通不代表作品资料或登录会话已验证。")
for source in result["sources"]:
for target in source["results"]:
- state = "可连接" if target["ok"] else target.get("reason", "未取得")
- print(f"{source['label']} / {target['label']} [{state}] {target.get('message', '')}")
+ print(f"{source['label']} / {target['label']} [{target['outcome_label']}] {target.get('message', '')}")
return 0 if result["ok"] else 1
diff --git a/src/peach/source_preflight.py b/src/peach/source_preflight.py
index c74c5a47f..df891f69b 100644
--- a/src/peach/source_preflight.py
+++ b/src/peach/source_preflight.py
@@ -1,28 +1,62 @@
-"""安装后的资料源检查;不扫描影片,不改变来源配置。"""
+"""安装后的资料源检查;不扫描影片,不改变来源配置。命令行与「来源和凭证」页的全部检查共用。"""
from __future__ import annotations
-from concurrent.futures import ThreadPoolExecutor
+from concurrent.futures import ThreadPoolExecutor, as_completed
from pathlib import Path
+from typing import Callable
import time
from .scraping_access import SOURCES
from .source_checks import check_source
+#: 检查原因(`check_source` 落下的 `reason`)归到报告口径。命令行与网页都读这一张表。
+OUTCOMES = {
+ "auth_required": "auth", "cloudflare_challenge": "auth",
+ "rate_limited": "http", "server_error": "http", "not_found": "http", "http_error": "http",
+ "cooldown": "cooldown",
+ "proxy": "network", "timeout": "network", "network": "network",
+ "needs_code": "skipped",
+}
+OUTCOME_LABELS = {"ok": "可连接", "auth": "登录或人机验证", "http": "HTTP 错误",
+ "cooldown": "冷却", "network": "网络失败", "skipped": "未检查"}
-def check_sources(secrets_root: Path, sources: list[str] | None = None) -> dict:
- selected = list(dict.fromkeys(sources if sources is not None else
- (source for source in SOURCES if source != "instagram")))
+
+def outcome(target: dict) -> str:
+ """一项结果的口径。没登记的原因按网络失败算:连接检查走到这里只剩连不上。"""
+ return "ok" if target.get("ok") else OUTCOMES.get(str(target.get("reason", "")), "network")
+
+
+def default_sources() -> list[str]:
+ """不指定来源时检查的全部来源。Instagram 头像定位尚无独立登录会话可验,不在其列。"""
+ return [source for source in SOURCES if source != "instagram"]
+
+
+def check_sources(secrets_root: Path, sources: list[str] | None = None, *,
+ on_result: Callable[[dict], None] | None = None) -> dict:
+ """最多四个来源同时检查。`on_result` 在调用方线程按完成先后收到每个来源:
+ 后台任务的进度登记依赖调用方线程上下文;返回的 `sources` 仍按选择顺序排。"""
+ selected = list(dict.fromkeys(sources if sources is not None else default_sources()))
if not selected or any(source not in SOURCES for source in selected):
raise ValueError("请选择已登记的资料源 ID")
def check(source):
result = check_source(secrets_root, source, preflight=True)
+ targets = []
+ for target in result["results"]:
+ key = outcome(target)
+ targets.append({**target, "outcome": key, "outcome_label": OUTCOME_LABELS[key]})
return {"source": source, "label": SOURCES[source]["label"],
- "results": result["results"], "session_verified": False}
+ "results": targets, "session_verified": False}
started = time.monotonic()
+ finished: dict[str, dict] = {}
with ThreadPoolExecutor(max_workers=4, thread_name_prefix="source-check") as pool:
- results = list(pool.map(check, selected))
+ futures = {pool.submit(check, source): source for source in selected}
+ for future in as_completed(futures):
+ row = finished[futures[future]] = future.result()
+ if on_result is not None:
+ on_result(row)
+ results = [finished[source] for source in selected]
return {"ok": all(target["ok"] or target.get("reason") == "needs_code"
for source in results for target in source["results"]),
"sources": results, "elapsed_s": round(time.monotonic() - started, 2)}
diff --git a/src/peach/task_runs.py b/src/peach/task_runs.py
index 0d5d7f049..366e7e19f 100644
--- a/src/peach/task_runs.py
+++ b/src/peach/task_runs.py
@@ -119,6 +119,7 @@ TASK_LABELS = {
"seed-import": "初始资料导入",
"follow-creator": "关注作者建档",
"amane-bridge": "amane 桥重建",
+ "source-check": "资料源连接检查",
"face-models": "人脸模型下载",
}
diff --git a/src/peach/web_router.py b/src/peach/web_router.py
index 69e1c062d..079cc6d23 100644
--- a/src/peach/web_router.py
+++ b/src/peach/web_router.py
@@ -109,7 +109,7 @@ from .web_tutorial import q_tutorial_progress, w_tutorial_progress
from .web_folders import q_folders, w_folder_preview, w_folder_rule
from .web_scraping import (
q_scraping, q_scraping_amane_bridge, w_scraping_amane_check, w_scraping_amane_rebuild,
- w_scraping_check, w_scraping_cover, w_scraping_settings,
+ w_scraping_check, w_scraping_check_all, w_scraping_cover, w_scraping_settings,
)
from .web_state import WebContract, path_version
from .web_tasks import q_tasks
@@ -365,6 +365,7 @@ GET_HANDLERS = {
"/api/scraping": q_scraping,
"/api/scraping/cover": lambda contract, args: contract.scraping_cover_job.snapshot() or {"status": "idle"},
"/api/scraping/amane-bridge": q_scraping_amane_bridge,
+ "/api/scraping/check-all": lambda contract, args: contract.source_check_job.snapshot() or {"status": "idle"},
"/api/settings": q_settings,
"/api/library-shortcuts": q_library_shortcuts,
"/api/tutorial-progress": q_tutorial_progress,
@@ -436,6 +437,7 @@ POST_HANDLERS = {
"/api/scraping/cover": w_scraping_cover,
"/api/jav/cover": w_jav_cover,
"/api/scraping/check": w_scraping_check,
+ "/api/scraping/check-all": w_scraping_check_all,
"/api/scraping/amane-bridge/check": w_scraping_amane_check,
"/api/scraping/amane-bridge/rebuild": w_scraping_amane_rebuild,
"/api/feeds/check": w_feed_check,
diff --git a/src/peach/web_scraping.py b/src/peach/web_scraping.py
index cabb52eb2..1f2ebec85 100644
--- a/src/peach/web_scraping.py
+++ b/src/peach/web_scraping.py
@@ -158,6 +158,28 @@ def w_scraping_check(contract, body):
return check_source(contract.follow_secrets_root, str(body.get("source", "")))
+def w_scraping_check_all(contract, _body):
+ """全部来源跑一趟 `peach check-sources` 的同一检查。冷却中的来源在传输层直接判冷却,
+ 不发请求;不登记续跑:服务重启后不该自己再打一轮来源。"""
+ from .source_preflight import check_sources, default_sources
+ job = contract.source_check_job
+ sources = default_sources()
+
+ def work(job_id):
+ def done(row):
+ with job.editing(job_id) as state:
+ if state is not None:
+ state["results"].append(row)
+ state["checked"] += 1
+ state["current"] = {"label": row["label"]}
+ result = check_sources(contract.follow_secrets_root, sources, on_result=done)
+ targets = [target for row in result["sources"] for target in row["results"]]
+ job.update(job_id, status="complete", ok=result["ok"], results=result["sources"],
+ failed=sum(target["outcome"] not in ("ok", "skipped") for target in targets),
+ elapsed_s=result["elapsed_s"], completed_at=time.time())
+ return job.start(work, initial={"checked": 0, "total": len(sources), "results": []}, restart=True)
+
+
def q_scraping_amane_bridge(contract, args):
"""amane 桥那张卡:钉的 sha、锁里的版本、venv 建没建、开了哪几站,外加重建任务的快照。"""
from . import metadata_amane
diff --git a/src/peach/web_state.py b/src/peach/web_state.py
index e85c1f2d1..13129ec17 100644
--- a/src/peach/web_state.py
+++ b/src/peach/web_state.py
@@ -207,6 +207,7 @@ class WebContract:
self.link_prune_job = self._job("PeachLinkPruneJob", "link-prune")
self.scraping_cover_job = self._job("PeachScrapingCoverJob", "scraping-cover")
self.amane_bridge_job = self._job("PeachAmaneBridgeJob", "amane-bridge")
+ self.source_check_job = self._job("PeachSourceCheckJob", "source-check")
self.face_models_job = self._job("PeachFaceModelsJob", "face-models")
self.library_processing_job = self._job(
"PeachLibraryProcessingJob", "library-processing")
@@ -371,6 +372,7 @@ class WebContract:
self.organize_job.stop()
self.media_repair_job.stop()
self.amane_bridge_job.stop()
+ self.source_check_job.stop()
self.face_models_job.stop()
if hasattr(self, 'task_resource_monitor'):
self.task_resource_monitor.close()
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index 6c70b82c3..59052880a 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -1546,6 +1546,7 @@ class WebDataTests(unittest.TestCase):
"/api/media-processing",
"/api/thumbnail-jobs", "/api/timeline", "/api/media-repair",
"/api/scraping", "/api/scraping/cover", "/api/scraping/amane-bridge",
+ "/api/scraping/check-all",
"/api/items", "/api/item", "/api/entity", "/api/entity/shapes", "/api/entity/latest", "/api/photos", "/api/photo-set",
"/api/index", "/api/parts", "/api/editions", "/api/duplicates", "/api/quality-goals",
"/api/stats", "/api/tops", "/api/ads", "/api/related", "/api/facets",
@@ -1572,7 +1573,8 @@ class WebDataTests(unittest.TestCase):
"/api/downloads", "/api/downloads/cancel", "/api/downloads/postprocess",
"/api/library-processing", "/api/thumbnail-jobs", "/api/media-repair",
"/api/media-processing",
- "/api/scraping/settings", "/api/scraping/check", "/api/scraping/cover", "/api/jav/cover",
+ "/api/scraping/settings", "/api/scraping/check", "/api/scraping/check-all",
+ "/api/scraping/cover", "/api/jav/cover",
"/api/scraping/amane-bridge/check", "/api/scraping/amane-bridge/rebuild",
"/api/activity", "/api/play", "/api/feedback", "/api/watch-later",
"/api/playlist",
diff --git a/tests/test_scraping_access.py b/tests/test_scraping_access.py
index d6116de62..374bef5aa 100644
--- a/tests/test_scraping_access.py
+++ b/tests/test_scraping_access.py
@@ -828,6 +828,49 @@ class SourcePreflightTests(unittest.TestCase):
max_seconds=15, allow_browser=False)
factory.return_value.close.assert_called_once()
+ def test_each_source_reaches_caller_thread_with_report_outcome(self):
+ from peach.source_preflight import check_sources
+ reasons = {'dmm': 'cloudflare_challenge', 'javdb': 'cooldown', 'javbus': 'server_error'}
+ def check(root, source, **options):
+ return {'results': [{'label': '来源页面', 'ok': False, 'reason': reasons[source]}]}
+ seen = []
+ with patch('peach.source_preflight.check_source', side_effect=check):
+ result = check_sources(Path('/unused'), list(reasons), on_result=lambda row: seen.append(
+ (row['source'], threading.current_thread())))
+ self.assertEqual({source for source, _ in seen}, set(reasons))
+ self.assertTrue(all(thread is threading.current_thread() for _, thread in seen))
+ self.assertEqual([row['results'][0]['outcome_label'] for row in result['sources']],
+ ['登录或人机验证', '冷却', 'HTTP 错误'])
+
+ def test_cooling_source_reports_cooldown_without_request(self):
+ from peach.scraping_access import _pause, cooldown_path
+ from peach.source_preflight import check_sources
+ with tempfile.TemporaryDirectory() as temporary:
+ root = Path(temporary)
+ _pause(cooldown_path(root, 'javdb'), time.time() + 600)
+ with patch.object(SourceTransport, '_transport_for', side_effect=AssertionError('冷却中不应发请求')):
+ row = check_sources(root, ['javdb'])['sources'][0]['results'][0]
+ self.assertEqual((row['outcome'], row['outcome_label']), ('cooldown', '冷却'))
+
+ def test_check_all_job_counts_progress_and_keeps_result(self):
+ from peach.jobs import BackgroundJob
+ from peach.source_preflight import default_sources
+ from peach.web_scraping import w_scraping_check_all
+ job =BackgroundJob('test-source-check', task_key='source-check')
+ contract = SimpleNamespace(follow_secrets_root=Path('/unused'), source_check_job=job)
+ def check(root, source, **options):
+ return {'results': [{'label': '来源页面', 'ok': source == 'dmm',
+ 'reason': 'ok' if source == 'dmm' else 'timeout'}]}
+ with patch('peach.source_preflight.check_source', side_effect=check):
+ started = w_scraping_check_all(contract, {})
+ job.thread.join(10)
+ state = job.snapshot()
+ self.assertEqual((started['status'], started['checked']), ('running', 0))
+ self.assertEqual(state['status'], 'complete')
+ self.assertEqual(state['checked'], state['total'])
+ self.assertEqual([row['source'] for row in state['results']], default_sources())
+ self.assertEqual(state['failed'], state['total'] - 1)
+
def test_http_only_transport_does_not_launch_or_fix_browser_route(self):
from peach.scraping_access import SourcePaused, fix_to_browser, fixed_to_browser
with tempfile.TemporaryDirectory() as temporary:
diff --git a/web/dist/peach-app.activity-page-Ba2ZG9aL.js b/web/dist/peach-app.activity-page-B3CjUhvF.js
similarity index 99%
rename from web/dist/peach-app.activity-page-Ba2ZG9aL.js
rename to web/dist/peach-app.activity-page-B3CjUhvF.js
index d3bf75901..625293556 100644
--- a/web/dist/peach-app.activity-page-Ba2ZG9aL.js
+++ b/web/dist/peach-app.activity-page-B3CjUhvF.js
@@ -1,7 +1,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "63c653c0-9fae-4d96-8401-ec28416d1aa4", e._sentryDebugIdIdentifier = "sentry-dbid-63c653c0-9fae-4d96-8401-ec28416d1aa4");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "00e7c64c-7211-4521-b4cc-8edcd2734ebf", e._sentryDebugIdIdentifier = "sentry-dbid-00e7c64c-7211-4521-b4cc-8edcd2734ebf");
} catch {}
})();
import { Button as e, Bx as t, Chip as n, Disclosure as r, DownloadsPanel as i, EmptyState as a, Gg as o, HN as s, IssueRow as c, LinkButton as l, Lo as u, LoadingDots as d, Ma as f, NameLink as p, Note as m, OV as h, Pf as g, Progress as _, RB as v, Rk as y, Su as b, TASKS_KEY as x, TRIGGER_LABELS as S, Xl as C, __toESM as w, apiGet as T, apiSend as E, busyProps as D, cardClass as ee, confirmModal as O, controlTask as k, cx as A, elapsedText as j, errorMessage as M, f1 as te, fetchEarlier as ne, fetchTasks as re, fmtSize as N, foldByKind as ie, foldRoutine as ae, followupDetail as P, followupTally as F, groupFollowups as oe, hasResultProblems as I, i2 as L, isActive as R, isRoutine as se, latestOfKind as ce, mergeFinished as z, momentText as B, notifyManager as V, oe as H, pollInterval as le, problemDestination as U, progressText as W, readableErrorHeadline as ue, replaceEqualDeep as de, require_jsx_runtime as fe, require_react as pe, statusLabel as me, summaryItems as he, taskIssues as ge, taskSubject as _e, um as ve, uo as ye, useMutation as G, useQuery as be, useQueryClient as K, vl as xe } from "./peach-app.js";
@@ -234,7 +234,11 @@ var Ie = new Map([
"studio-mark"
]],
[C, ["media-repair", "mp4-header-repair"]],
- [ve, ["link-check", "link-prune"]],
+ [ve, [
+ "link-check",
+ "link-prune",
+ "source-check"
+ ]],
[H, ["download-postprocess"]],
[u, ["taste-refresh"]],
[v, [
@@ -786,4 +790,4 @@ function $e() {
}
export { $e as ActivityPage };
-//# debugId=63c653c0-9fae-4d96-8401-ec28416d1aa4
\ No newline at end of file
+//# debugId=00e7c64c-7211-4521-b4cc-8edcd2734ebf
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 1c95481ff..4adc1a643 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f801708c-39a2-426c-b8b8-125b72b1203f", e._sentryDebugIdIdentifier = "sentry-dbid-f801708c-39a2-426c-b8b8-125b72b1203f");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "86b9d852-8d38-467c-b4d6-d39c782496c0", e._sentryDebugIdIdentifier = "sentry-dbid-86b9d852-8d38-467c-b4d6-d39c782496c0");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -16497,7 +16497,7 @@ function Cee(e, t, n) {
}
return r;
}
-function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function wee(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
@@ -16513,7 +16513,7 @@ function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
return n ? (t) => l(Tm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Bg(e, t) {
+function zg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
let i = /* @__PURE__ */ Nm(0, t, r);
@@ -16521,19 +16521,19 @@ function Bg(e, t) {
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Vg(e) {
+function Bg(e) {
let t = [0];
- return Bg(t, e.length - 1), t;
+ return zg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function wee(e, t) {
+function Tee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Tee(e, t) {
+function Eee(e, t) {
return e.map(() => t || Qm).splice(0, e.length - 1);
}
-function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+function Vg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ $m(r) ? r.map(ih) : ih(r) || Qm, s = {
done: !1,
value: t[0]
@@ -16545,8 +16545,8 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
next: (t) => (s.value = i ? i(o(e > 0 ? Tm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = zg(wee(n && n.length === t.length ? n : Vg(t), e), t, {
- ease: Array.isArray(o) ? o : Tee(t, o),
+ let c = wee(Tee(n && n.length === t.length ? n : Bg(t), e), t, {
+ ease: Array.isArray(o) ? o : Eee(t, o),
mixer: a
});
return {
@@ -16555,35 +16555,35 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Eee = 5;
-function Dee(e, t, n) {
- let r = Math.max(t - Eee, 0);
+var Dee = 5;
+function Oee(e, t, n) {
+ let r = Math.max(t - Dee, 0);
return /* @__PURE__ */ Lm(n - e(r), t - r);
}
-function Ug(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
+function Hg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Oee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Oee = (e) => e !== null;
-function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Oee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var kee = (e) => e !== null;
+function Ug(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(kee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var kee = {
+var Aee = {
decay: Rg,
inertia: Rg,
- tween: Hg,
- keyframes: Hg,
+ tween: Vg,
+ keyframes: Vg,
spring: Lg
};
-function Gg(e) {
- typeof e.type == "string" && (e.type = kee[e.type]);
+function Wg(e) {
+ typeof e.type == "string" && (e.type = Aee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Aee = 40, Kg = (e, t) => t - e > Aee && !Em.useManualTiming ? t : e;
+var jee = 40, Gg = (e, t) => t - e > jee && !Em.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function qg(e, t) {
+function Kg(e, t) {
return {
kind: e,
animation: t,
@@ -16592,11 +16592,11 @@ function qg(e, t) {
frameIsProcessing: ah.isProcessing
};
}
-function Jg(e, t, n) {
+function qg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...qg("animation-start", e),
+ ...Kg("animation-start", e),
options: n ? {
...t,
...n
@@ -16604,17 +16604,17 @@ function Jg(e, t, n) {
});
} catch {}
}
-function jee(e, t) {
+function Mee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...qg("layout-animation-start", e),
+ ...Kg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Yg = class {
+var Jg = class {
constructor() {
this.isResolved = !1;
}
@@ -16632,7 +16632,7 @@ var Yg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Mee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
+}, Nee = (e) => e / 100, Yg = (e) => Math.round(e * 1e4) / 1e4, Xg = class extends Jg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
@@ -16640,13 +16640,13 @@ var Yg = class {
}, this.stop = () => {
let { motionValue: e } = this.options;
e && e.updatedAt !== ch.now() && this.tick(ch.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), qg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Gg(e);
- let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
- this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Mee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
+ Wg(e);
+ let { type: t = Vg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Vg;
+ this.mixKeyframes = void 0, s !== Vg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Nee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16666,20 +16666,20 @@ var Yg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Kg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Gg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Rg && (f.value = Ug(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Yg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Rg ? Ug(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
@@ -16703,7 +16703,7 @@ var Yg = class {
e = /* @__PURE__ */ Fm(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Ug(this.generator, this.currentTime, this.options.velocity);
+ return Hg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
@@ -16740,27 +16740,27 @@ var Yg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Nee = /* @__PURE__ */ new Set([
+}, Pee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Pee(e) {
+function Fee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
let [r] = n.match(yh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Nee.has(t);
+ let i = n.replace(r, ""), a = +!!Pee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
+var Iee = /\b([a-z-]*)\(.*?\)/gu, Zg = {
...rg,
getAnimatableNone: (e) => {
- let t = e.match(Fee);
- return t ? t.map(Pee).join(" ") : e;
+ let t = e.match(Iee);
+ return t ? t.map(Fee).join(" ") : e;
}
-}, $g = {
+}, Qg = {
...rg,
getAnimatableNone: (e) => {
let t = rg.parse(e);
@@ -16769,10 +16769,10 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
alpha: 1
} : e));
}
-}, e_ = {
+}, $g = {
...gh,
transform: Math.round
-}, t_ = {
+}, e_ = {
rotate: jh,
pathRotation: jh,
rotateX: jh,
@@ -16798,7 +16798,7 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
originX: Ih,
originY: Ih,
originZ: Nh
-}, n_ = {
+}, t_ = {
borderWidth: Nh,
borderTopWidth: Nh,
borderRightWidth: Nh,
@@ -16849,13 +16849,13 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
fontSize: Nh,
backgroundPositionX: Nh,
backgroundPositionY: Nh,
- ...t_,
- zIndex: e_,
+ ...e_,
+ zIndex: $g,
fillOpacity: _h,
strokeOpacity: _h,
- numOctaves: e_
-}, Iee = {
- ...n_,
+ numOctaves: $g
+}, Lee = {
+ ...t_,
color: Rh,
backgroundColor: Rh,
outlineColor: Rh,
@@ -16866,21 +16866,21 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
borderRightColor: Rh,
borderBottomColor: Rh,
borderLeftColor: Rh,
- filter: Qg,
- WebkitFilter: Qg,
- mask: $g,
- WebkitMask: $g
-}, r_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([Qg, $g]);
-function i_(e, t) {
- let n = r_(e);
- return Lee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Zg,
+ WebkitFilter: Zg,
+ mask: Qg,
+ WebkitMask: Qg
+}, n_ = (e) => Lee[e], Ree = /*@__PURE__*/ new Set([Zg, Qg]);
+function r_(e, t) {
+ let n = n_(e);
+ return Ree.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function a_(e) {
+function i_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Ree = {
+var a_ = (e) => e * 180 / Math.PI, o_ = (e) => s_(a_(Math.atan2(e[1], e[0]))), zee = {
x: 4,
y: 5,
translateX: 4,
@@ -16889,44 +16889,44 @@ var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), R
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: s_,
- rotateZ: s_,
- skewX: (e) => o_(Math.atan(e[1])),
- skewY: (e) => o_(Math.atan(e[2])),
+ rotate: o_,
+ rotateZ: o_,
+ skewX: (e) => a_(Math.atan(e[1])),
+ skewY: (e) => a_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), zee = {
+}, s_ = (e) => (e %= 360, e < 0 && (e += 360), e), c_ = o_, l_ = (e) => Math.hypot(e[0], e[1]), u_ = (e) => Math.hypot(e[4], e[5]), Bee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: u_,
- scaleY: d_,
+ scaleX: l_,
+ scaleY: u_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (u_(e) + d_(e)) / 2,
- rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
- rotateZ: l_,
- rotate: l_,
- skewX: (e) => o_(Math.atan(e[4])),
- skewY: (e) => o_(Math.atan(e[1])),
+ scale: (e) => (l_(e) + u_(e)) / 2,
+ rotateX: (e) => s_(a_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => s_(a_(Math.atan2(-e[2], e[0]))),
+ rotateZ: c_,
+ rotate: c_,
+ skewX: (e) => a_(Math.atan(e[4])),
+ skewY: (e) => a_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function f_(e) {
+function d_(e) {
return +!!e.includes("scale");
}
-function p_(e, t) {
- if (!e || e === "none") return f_(t);
+function f_(e, t) {
+ if (!e || e === "none") return d_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return f_(t);
- let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return d_(t);
+ let r = (n[1] ? Bee : zee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var m_ = (e, t) => {
+var p_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return p_(n, t);
-}, h_ = [
+ return f_(n, t);
+}, m_ = [
"transformPerspective",
"x",
"y",
@@ -16945,14 +16945,14 @@ var m_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === gh || e === Nh, Bee = /* @__PURE__ */ new Set([
+], h_ = /* @__PURE__ */ new Set([...m_, "pathRotation"]), g_ = (e) => e === gh || e === Nh, Vee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Vee = /* @__PURE__ */ h_.filter((e) => !Bee.has(e));
-function Hee(e) {
+]), Hee = /* @__PURE__ */ m_.filter((e) => !Vee.has(e));
+function Uee(e) {
let t = [];
- return Vee.forEach((n) => {
+ return Hee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16961,16 +16961,16 @@ function Hee(e) {
}
}), t;
}
-var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function v_(e, t, n, r, i, a) {
+var Wee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function __(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
+var v_ = ({ transform: e }) => f_(e, "x"), y_ = ({ transform: e }) => f_(e, "y"), b_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => __(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => __(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16981,20 +16981,20 @@ var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: y_,
- y: b_,
- translateX: y_,
- translateY: b_
-}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
-function E_() {
- if (w_) {
+ x: v_,
+ y: y_,
+ translateX: v_,
+ translateY: y_
+}, x_ = /* @__PURE__ */ new Set(), S_ = !1, C_ = !1, w_ = !1;
+function T_() {
+ if (C_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- S_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
+ x_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Wee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Hee(e);
+ let t = Uee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -17006,29 +17006,29 @@ function E_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
+ C_ = !1, S_ = !1, x_.forEach((e) => e.complete(w_)), x_.clear();
}
-function D_() {
- S_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (w_ = !0);
+function E_() {
+ x_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (C_ = !0);
});
}
-function Wee() {
- T_ = !0, D_(), E_(), T_ = !1;
+function Gee() {
+ w_ = !0, E_(), T_(), w_ = !1;
}
-function Gee(e, t, n) {
+function Kee(e, t, n) {
if (typeof e == "string") {
if (Dm(e) || km(e)) return parseFloat(e);
- if (!rg.test(e) && rg.test(n)) return i_(t, n);
+ if (!rg.test(e) && rg.test(n)) return r_(t, n);
}
return e ?? void 0;
}
-var O_ = class {
+var D_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (S_.add(this), C_ || (C_ = !0, _g.read(D_), _g.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (x_.add(this), S_ || (S_ = !0, _g.read(E_), _g.resolveKeyframes(T_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -17036,71 +17036,71 @@ var O_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Gee(n.readValue(t, a), t, a);
+ let r = Kee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- a_(e);
+ i_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), x_.delete(this);
}
cancel() {
- this.state === "scheduled" && (S_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (x_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, k_ = (e) => e.startsWith("--");
+}, O_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function A_(e, t, n) {
- k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function k_(e, t, n) {
+ O_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Kee = {};
+var qee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function j_(e, t) {
+function A_(e, t) {
let n = /* @__PURE__ */ Am(e);
- return () => Kee[t] ?? n();
+ return () => qee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), M_ = /*@__PURE__*/ j_(() => {
+var Jee = /* @__PURE__ */ A_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), j_ = /*@__PURE__*/ A_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), N_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, P_ = {
+}, "linearEasing"), M_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, N_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ N_([
+ circIn: /*@__PURE__*/ M_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ N_([
+ circOut: /*@__PURE__*/ M_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ N_([
+ backIn: /*@__PURE__*/ M_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ N_([
+ backOut: /*@__PURE__*/ M_([
.33,
1.53,
.69,
@@ -17108,14 +17108,14 @@ var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function F_(e, t) {
- if (e) return typeof e == "function" ? M_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? N_(e) : Array.isArray(e) ? e.map((e) => F_(e, t) || P_.easeOut) : P_[e];
+function P_(e, t) {
+ if (e) return typeof e == "function" ? j_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? M_(e) : Array.isArray(e) ? e.map((e) => P_(e, t) || N_.easeOut) : N_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Yee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = F_(s, i);
+ let d = P_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17128,27 +17128,27 @@ function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function I_(e) {
+function F_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Yee({ type: e, ...t }) {
- return I_(e) && M_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Xee({ type: e, ...t }) {
+ return F_(e) && j_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var L_ = class extends Yg {
+var I_ = class extends Jg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Yee(e);
- this.animation = Jee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Xee(e);
+ this.animation = Yee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Wg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
+ let e = Ug(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), k_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Jg(this, e, c);
+ }, qg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17202,22 +17202,22 @@ var L_ = class extends Yg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Jee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
}
-}, R_ = {
+}, L_ = {
anticipate: Km,
backInOut: Gm,
circInOut: Ym
};
-function Xee(e) {
- return e in R_;
-}
function Zee(e) {
- typeof e.ease == "string" && Xee(e.ease) && (e.ease = R_[e.ease]);
+ return e in L_;
}
-var Qee = class extends L_ {
+function Qee(e) {
+ typeof e.ease == "string" && Zee(e.ease) && (e.ease = L_[e.ease]);
+}
+var $ee = class extends I_ {
constructor(e) {
- Zee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Qee(e), Wg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
return this.state === "running" ? (ch.now() - this.startTime) * this.speed : this.time * 1e3;
@@ -17225,7 +17225,7 @@ var Qee = class extends L_ {
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Zg({
+ this.sampler = new Xg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17244,39 +17244,39 @@ var Qee = class extends L_ {
return;
}
let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Tm(0, 10, a) : 0, s = this.sample(a);
- n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ n && r && k_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, z_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
+}, R_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function $ee(e) {
+function ete(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function ete(e, t, n, r) {
+function tte(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = z_(i, t), s = z_(a, t);
- return !o || !s ? !1 : $ee(e) || (n === "spring" || I_(n)) && r;
+ let a = e[e.length - 1], o = R_(i, t), s = R_(a, t);
+ return !o || !s ? !1 : ete(e) || (n === "spring" || F_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function B_(e) {
+function z_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var V_ = /* @__PURE__ */ new Set([
+var B_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), tte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function nte(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && tte.test(e[t])) return !0;
+]), nte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function rte(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && nte.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), U_ = /* @__PURE__ */ new Set([
+var V_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), H_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17287,54 +17287,54 @@ var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), W_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function rte(e) {
+]), U_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function ite(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(V_.has(n) || U_.has(n))) return !1;
+ if (!n || !(B_.has(n) || H_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return W_() && (V_.has(n) || U_.has(n) && nte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !H_(e);
+ return U_() && (B_.has(n) || H_.has(n) && rte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !V_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var G_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ite = {
+var W_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ate = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ate = h_.length, K_ = {}, q_ = (e, t, n = G_(t, t_[e])) => (K_[e] || (K_[e] = (ite[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function ote(e, t, n) {
+}, ote = m_.length, G_ = {}, K_ = (e, t, n = W_(t, e_[e])) => (G_[e] || (G_[e] = (ate[e] || e) + "(")) + n + ")", q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function ste(e, t, n) {
let r = "";
- for (let i = 0; i < ate; i++) {
- let a = h_[i], o = e[a];
+ for (let i = 0; i < ote; i++) {
+ let a = m_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = G_(o, n_[a]));
- J_(a, o) || (r += q_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = W_(o, t_[a]));
+ q_(a, o) || (r += K_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += K_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var Y_ = /* @__PURE__ */ new WeakMap(), ste = 200, X_ = .001, cte = .1, lte = .001, ute = 100, dte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Vg(Array(n + 1)).map((n) => og(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), fte = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && W_() && M_();
-function pte(e) {
- let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !H_(e);
+var J_ = /* @__PURE__ */ new WeakMap(), cte = 200, Y_ = .001, lte = .1, ute = .001, dte = 100, fte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), X_ = (e, t) => Math.abs(e - t) <= Y_, Z_ = (e, t) => e - t, Q_ = (e, t, n) => Bg(Array(n + 1)).map((n) => og(e, t, n)), $_ = (e) => e.motionValue.owner, ev = (e) => J_.get(e), tv = ({ state: e }) => e === "idle" || e === "finished", nv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), pte = ({ name: e, motionValue: t }) => e && m_.includes(e) && t?.owner?.current instanceof HTMLElement && U_() && j_();
+function mte(e) {
+ let t = $_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (nv(t, "transform") || "none") === "none" && !nv(t, "pathRotation") && !t.projection?.isProjecting() && !V_(e);
}
-var mte = class extends Zg {
+var hte = class extends Xg {
constructor(e) {
- let t = ev(e).current, { driver: n = bg } = e, r, i = pte(e);
+ let t = $_(e).current, { driver: n = bg } = e, r, i = mte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = tv(t);
+ let n = ev(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = tv(t);
+ let e = ev(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17345,7 +17345,7 @@ var mte = class extends Zg {
};
}
get group() {
- return tv(ev(this.options).current);
+ return ev($_(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17365,8 +17365,8 @@ var mte = class extends Zg {
return this.isAccelerated() ? this.sampleAt(ch.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? N_(n) : dte(n) && P_[n];
- if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? M_(n) : fte(n) && N_[n];
+ if (o && !i && !r && e.length === 2 && t === Vg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17376,7 +17376,7 @@ var mte = class extends Zg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Hg) === Hg ? u || Vg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Vg) === Vg ? u || Bg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17396,7 +17396,7 @@ var mte = class extends Zg {
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || hte(ev(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || gte($_(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17416,13 +17416,13 @@ var mte = class extends Zg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function hte(e) {
+function gte(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? h_ : a) {
- let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? m_ : a) {
+ let a = r.get(s), c = t === void 0 ? nv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17430,7 +17430,7 @@ function hte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && J_(r, i) || (n += q_(r, i) + " ");
+ t && q_(r, i) || (n += K_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17454,32 +17454,32 @@ function hte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(ste, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(cte, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
+ let a = Q_(t, n, i).concat(r).sort(Z_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * Y_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !X_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => X_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Yg(t) + " " + Yg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? lte : cte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ute : lte))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = $_(t, n, Math.ceil((n - t) / 100));
+ }, s = Q_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
- return i.sort(Q_);
+ for (let e of s.sort(Z_)) e > c && o(c, e, 0), c = e;
+ return i.sort(Z_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17518,10 +17518,10 @@ function hte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = h_.filter((t) => {
+ i = {}, a = m_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = rv(e, t);
- return n !== void 0 && !J_(t, n);
+ let n = i[t] = nv(e, t);
+ return n !== void 0 && !q_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17567,18 +17567,18 @@ function hte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, tv(t) === A && Y_.delete(t), A.isJS || v(), !0), k = () => {
+ }, O = () => !n.size && (u = !0, ev(t) === A && J_.delete(t), A.isJS || v(), !0), k = () => {
let t = ch.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = nv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => tv(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < ute) return A.demote();
+ if (t - f < dte) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17591,11 +17591,11 @@ function hte(e) {
u || (c ||= e, d ||= !!t, l || (l = !0, ah.isProcessing ? _g.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- nv(e) && n.delete(e), O() || A.schedule(!0);
+ tv(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (nv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17604,40 +17604,40 @@ function hte(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return Y_.set(t, A), A;
+ return J_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var gte = class extends Yg {
+var _te = class extends Jg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
}, this.createdAt = ch.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || O_;
+ let o = i?.KeyframeResolver || D_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
this.resolvedAt = ch.now();
- let u = ete(e, i, a, o);
- u || ((Em.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], B_(n), n.repeat = 0);
+ let u = tte(e, i, a, o);
+ u || ((Em.instantAnimations || !s) && l?.(Ug(e, n, t)), e[0] = e[e.length - 1], z_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && rte(n), p = !f && fte(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
+ let f = u && !c && ite(n), p = !f && pte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Gg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Qee(n);
+ m = new $ee(n);
} catch {
- m = new Zg(n);
+ m = new Xg(n);
}
- } else m = p ? new mte(n) : new Zg(n);
+ } else m = p ? new hte(n) : new Xg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17650,7 +17650,7 @@ var gte = class extends Yg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Gee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17691,7 +17691,7 @@ var gte = class extends Yg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, _te = class {
+}, vte = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17731,10 +17731,10 @@ var gte = class extends Yg {
return this.getAll("startTime");
}
get duration() {
- return iv(this.animations, "duration");
+ return rv(this.animations, "duration");
}
get iterationDuration() {
- return iv(this.animations, "iterationDuration");
+ return rv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17752,7 +17752,7 @@ var gte = class extends Yg {
this.runAll("complete");
}
};
-function iv(e, t) {
+function rv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17761,22 +17761,22 @@ function iv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var av = class extends _te {
+var iv = class extends vte {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, ov = /* @__PURE__ */ new WeakMap(), vte = (e, t = "") => `${e}:${t}`;
-function yte(e) {
- let t = ov.get(e);
- return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
+}, av = /* @__PURE__ */ new WeakMap(), yte = (e, t = "") => `${e}:${t}`;
+function bte(e) {
+ let t = av.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), av.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function sv(e, t, n, r = 0, i = 1) {
+function ov(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
+var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
let t = ch.now();
@@ -17784,7 +17784,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bte(this.current));
+ this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = xte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17834,7 +17834,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.delete(e);
}
get() {
- lv.current?.push(this);
+ cv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17846,8 +17846,8 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
}
getVelocity() {
let e = ch.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > sv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, sv);
return /* @__PURE__ */ Lm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
@@ -17869,11 +17869,11 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function dv(e, t) {
- return new uv(e, t);
+function uv(e, t) {
+ return new lv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function fv(e, t) {
+function dv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17884,25 +17884,25 @@ function fv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function pv(e, t) {
+function fv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : fv(n, e);
+ return n === e ? n : dv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var xte = {
+var Ste = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Ste = (e) => ({
+}, Cte = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Cte = {
+}), wte = {
type: "keyframes",
duration: .8
-}, wte = {
+}, Tte = {
type: "keyframes",
ease: [
.25,
@@ -17911,7 +17911,7 @@ var xte = {
1
],
duration: .3
-}, Tte = (e, { keyframes: t }) => t.length > 2 ? Cte : g_.has(e) ? e.startsWith("scale") ? Ste(t[1]) : xte : wte, Ete = /* @__PURE__ */ new Set([
+}, Ete = (e, { keyframes: t }) => t.length > 2 ? wte : h_.has(e) ? e.startsWith("scale") ? Cte(t[1]) : Ste : Tte, Dte = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17925,13 +17925,13 @@ var xte = {
"out",
"mixer"
]);
-function Dte(e) {
- for (let t in e) if (!Ete.has(t)) return !0;
+function Ote(e) {
+ for (let t in e) if (!Dte.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var mv = (e, t, n, r = {}, i, a) => (o) => {
- let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+var pv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = fv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
l -= /* @__PURE__ */ Fm(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
@@ -17950,10 +17950,10 @@ var mv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Dte(s) || Object.assign(u, Tte(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Ote(s) || Object.assign(u, Ete(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (B_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, B_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Wg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (z_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, z_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Ug(u.keyframes, s);
if (e !== void 0) {
_g.update(() => {
u.onUpdate(e), u.onComplete();
@@ -17961,103 +17961,103 @@ var mv = (e, t, n, r = {}, i, a) => (o) => {
return;
}
}
- return s.isSync ? new Zg(u) : new gte(u);
-}, Ote = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function kte(e) {
- let t = Ote.exec(e);
+ return s.isSync ? new Xg(u) : new _te(u);
+}, kte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function Ate(e) {
+ let t = kte.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function hv(e, t, n = 1) {
- let [r, i] = kte(e);
+function mv(e, t, n = 1) {
+ let [r, i] = Ate(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
return Dm(e) ? parseFloat(e) : e;
}
- return ph(i) ? hv(i, t, n + 1) : i;
+ return ph(i) ? mv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Ate(e) {
+function jte(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function gv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ate(r)) : t;
+function hv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...jte(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function _v(e, t, n) {
- return gv(e.getProps(), t, n, e);
+function gv(e, t, n) {
+ return hv(e.getProps(), t, n, e);
}
-var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
+var _v = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, vv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...h_
-]), jte = (e) => Array.isArray(e);
+ ...m_
+]), Mte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Mte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
+function Nte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, uv(n));
}
-function Nte(e) {
- return jte(e) ? e[e.length - 1] || 0 : e;
+function Pte(e) {
+ return Mte(e) ? e[e.length - 1] || 0 : e;
}
-function Pte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
+function Fte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = gv(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Mte(e, t, Nte(i[t]));
+ for (let t in i) Nte(e, t, Pte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var bv = (e) => !!(e && e.getVelocity);
+var yv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Fte(e) {
- return !!(bv(e) && e.add);
+function Ite(e) {
+ return !!(yv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function xv(e, t) {
+function bv(e, t) {
let n = e.getValue("willChange");
- if (Fte(n)) return n.add(t);
+ if (Ite(n)) return n.add(t);
if (!n && Em.WillChange) {
let n = new Em.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var Sv = "data-framer-appear-id";
+var xv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function Cv(e) {
- return e.props[Sv];
+function Sv(e) {
+ return e.props[xv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Ite = typeof window < "u";
-function Lte({ protectedKeys: e, needsAnimating: t }, n) {
+var Lte = typeof window < "u";
+function Rte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Cv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? fv(a, c) : c;
+ a = a ? dv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Lte(f, t)) continue;
+ if (i === void 0 || f && Rte(f, t)) continue;
let o = {
delay: n,
- ...pv(f?.out[t] || a || {}, t)
+ ...fv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
@@ -18066,79 +18066,79 @@ function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
continue;
}
let p = !1;
- if (Ite && window.MotionHandoffAnimation) {
- let n = Cv(e);
+ if (Lte && window.MotionHandoffAnimation) {
+ let n = Sv(e);
if (n) {
let e = window.MotionHandoffAnimation(n, t, _g);
e !== null && (o.startTime = e, p = !0);
}
}
- xv(e, t);
+ bv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
+ r.start(pv(t, r, i, m && vv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
let t = () => _g.update(() => {
- o && Pte(e, o);
+ o && Fte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Tv(e, t, n = {}) {
- let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
+function wv(e, t, n = {}) {
+ let r = gv(e, t, _v(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Cv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Tv(e, t, {
+ e.notify("AnimationStart", t), l.push(wv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + ov(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Rte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
+function zte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => wv(e, t, n))) : typeof t == "string" ? wv(e, t, n) : Promise.all(Cv(e, gv(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var zte = {
+var Bte = {
test: (e) => e === "auto",
parse: (e) => e
-}, Bte = (e) => (t) => t.test(e), Vte = [
+}, Vte = (e) => (t) => t.test(e), Hte = [
gh,
Nh,
Mh,
jh,
Fh,
Ph,
- zte
-], Ev = (e) => Vte.find(Bte(e));
+ Bte
+], Tv = (e) => Hte.find(Vte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Hte(e) {
+function Ute(e) {
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || km(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Ute = /* @__PURE__ */ new Set([
+var Wte = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Wte(e, t, n) {
+function Gte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Ute.has(t) && Yh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Wte.has(t) && Yh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = r_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Dv = class extends O_ {
+var Ev = class extends D_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18159,31 +18159,31 @@ var Dv = class extends O_ {
for (let n = 0; n < e.length; n++) {
let r = e[n];
if (typeof r == "string" && (r = r.trim(), ph(r))) {
- let i = hv(r, t.current);
+ let i = mv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !vv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Ev(r), o = Ev(i);
- if (hh(r) !== hh(i) && x_[n]) this.needsMeasurement = !0;
+ let a = Tv(r), o = Tv(i);
+ if (hh(r) !== hh(i) && b_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
+ if (g_(a) && g_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else x_[n] && (this.needsMeasurement = !0);
+ else b_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Hte(e[t])) && n.push(t);
- n.length && Wte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Ute(e[t])) && n.push(t);
+ n.length && Gte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return b_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18199,19 +18199,19 @@ var Dv = class extends O_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Ov = [
+}, Dv = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Gte = /* @__PURE__ */ new Set([
+], Kte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Ov,
+ ...Dv,
"width",
"maxWidth",
"height",
@@ -18254,21 +18254,21 @@ var Dv = class extends O_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Kte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Gte.has(t) && (e[n] = e[n] + "px");
+function qte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Kte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var kv = [];
-function qte(e) {
- Av(e), kv.unshift(e);
+var Ov = [];
+function Jte(e) {
+ kv(e), Ov.unshift(e);
}
-function Av(e) {
- wm(kv, e);
+function kv(e) {
+ wm(Ov, e);
}
-function Jte(e) {
- return kv.find((t) => t.test(e));
+function Yte(e) {
+ return Ov.find((t) => t.test(e));
}
-function jv(e, t, n = {}, r) {
+function Av(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18276,7 +18276,7 @@ function jv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(pv(o, l, c, s && vv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
@@ -18287,50 +18287,50 @@ function jv(e, t, n = {}, r) {
}
return i;
}
-function Mv(e, t, n, r, i) {
- return jv((r) => {
+function jv(e, t, n, r, i) {
+ return Av((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Yte(i) ?? e.read(t, r, i);
+ o = Xte(i) ?? e.read(t, r, i);
}
- a = dv(o, { owner: i }), e(t, { [r]: a });
+ a = uv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Yte(e) {
+function Xte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Nv(e) {
+function Mv(e) {
return Om(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Pv(e) {
+function Nv(e) {
return Om(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Fv = {};
-function Iv(e) {
- return Fv.current?.add(e), e;
+var Pv = {};
+function Fv(e) {
+ return Pv.current?.add(e), e;
}
-var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
+var Iv = (e) => Pv.current ? Pv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Rv(e, t, n) {
+function Lv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Pv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Xte = class {
+var Zte = class {
constructor(e = _g.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
@@ -18374,10 +18374,10 @@ var Xte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function zv(e, { step: t, ...n } = {}) {
+function Rv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Xte(t);
+ let a = r.get(n) ?? new Zte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18394,83 +18394,83 @@ function zv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Zte(e) {
+function Qte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
+ a !== void 0 && (q_(i, a) || (t += (t && " ") + K_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + q_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + K_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Bv = /* @__PURE__ */ new Set([
+var zv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Vv = (e, t) => G_(e.get(t)?.get(), n_[t]), Hv = (e, t, n, r) => {
+]), Bv = (e, t) => W_(e.get(t)?.get(), t_[t]), Vv = (e, t, n, r) => {
let i, a;
- if (g_.has(n)) {
+ if (h_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => m_.indexOf(e) - m_.indexOf(t)));
}
- t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
- Y_.get(e)?.check(), e.style.transform = Zte(t);
+ t.get("transform") || (!Mv(e) && !t.get("transformBox") && Vv(e, t, "transformBox", new lv("fill-box")), t.set("transform", new lv("none"), () => {
+ J_.get(e)?.check(), e.style.transform = Qte(t);
})), a = t.get("transform");
- } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
- let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
+ } else zv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new lv(""), () => {
+ let n = Bv(t, "originX") ?? "50%", r = Bv(t, "originY") ?? "50%", i = Bv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = O_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = G_(r.getCurrent(), n_[n]);
+ e.style[n] = W_(r.getCurrent(), t_[n]);
};
return t.set(n, r, i, a);
-}, Qte = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
- if (g_.has(t)) return m_(e, t);
- let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
+}, $te = (e) => Mv(e) || Nv(e), Hv = (e, t) => {
+ if (h_.has(t)) return p_(e, t);
+ let n = getComputedStyle(e), r = O_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, $te = /*@__PURE__*/ zv(Hv, {
- test: Qte,
- read: Uv
+}, ene = /*@__PURE__*/ Rv(Vv, {
+ test: $te,
+ read: Hv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Wv(e) {
+function Uv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Gv(e, t, n) {
+function Wv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (g_.has(e)) o = !0;
+ if (h_.has(e)) o = !0;
else if (dh(e)) i[e] = n;
else {
- let t = G_(n, n_[e]);
+ let t = W_(n, t_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = ote(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = ste(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var ene = {
+var tne = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, tne = {
+}, nne = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function nne(e, t, n = 1, r = 0, i = !0) {
+function rne(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? ene : tne;
+ let a = i ? tne : nne;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Kv = [
+var Gv = [
"transform",
"opacity",
"clipPath",
@@ -18480,55 +18480,55 @@ var Kv = [
"offsetRotate",
"offsetAnchor"
];
-function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Gv(e, s, l), c) {
+function Kv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Wv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Kv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && nne(d, i, a, o, !1);
+ for (let e of Gv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && rne(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function rne(e, t) {
+function ine(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Jv = (e, t, n, r, i = n) => {
- let a = rne(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
- let o = n_[n] || n_[i], s = a ? () => {
- e[i] = G_(r.get(), n_[n]);
+var qv = (e, t, n, r, i = n) => {
+ let a = ine(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Uv(i));
+ let o = t_[n] || t_[i], s = a ? () => {
+ e[i] = W_(r.get(), t_[n]);
} : () => {
- let t = G_(r.get(), o);
+ let t = W_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function ine(e, t, n, r) {
+function ane(e, t, n, r) {
return _g.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new lv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var ane = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? ine(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
+var one = /*@__PURE__*/ Rv((e, t, n, r) => n.startsWith("path") && !h_.has(n) ? ane(e, t, n, r) : n.startsWith("attr") ? qv(e, t, n, r, Jv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (g_.has(n) || Bv.has(n) || k_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
- test: Pv,
- read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (h_.has(n) || zv.has(n) || O_(n) || n in e.style ? Vv : qv)(e, t, n, r), {
+ test: Nv,
+ read: (e, t) => h_.has(t) ? t_[t]?.default || 0 : O_(t) || Gv.includes(t) ? Hv(e, t) || e.getAttribute(Uv(t)) || 0 : (t = Jv(t), e.getAttribute(Uv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Yv(e) {
+function Jv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Xv({ top: e, left: t, right: n, bottom: r }) {
+function Yv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18540,7 +18540,7 @@ function Xv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function one({ x: e, y: t }) {
+function sne({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18548,7 +18548,7 @@ function one({ x: e, y: t }) {
left: e.min
};
}
-function sne(e, t) {
+function cne(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18565,13 +18565,13 @@ function sne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Zv(e) {
+function Xv(e) {
return e === void 0 || e === 1;
}
-function Qv({ scale: e, scaleX: t, scaleY: n }) {
- return !Zv(e) || !Zv(t) || !Zv(n);
+function Zv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Xv(e) || !Xv(t) || !Xv(n);
}
-var $v = [
+var Qv = [
"rotate",
"rotateX",
"rotateY",
@@ -18579,67 +18579,67 @@ var $v = [
"skewX",
"skewY"
];
+function $v(e) {
+ return Zv(e) || ty(e) || ey(e);
+}
function ey(e) {
- return Qv(e) || ny(e) || ty(e);
+ return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
function ty(e) {
- return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
+ return ny(e.x) || ny(e.y);
}
function ny(e) {
- return ry(e.x) || ry(e.y);
-}
-function ry(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function iy(e, t, n) {
+function ry(e, t, n) {
return n + t * (e - n);
}
-function ay(e, t, n, r, i) {
- return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
+function iy(e, t, n, r, i) {
+ return i !== void 0 && (e = ry(e, i, r)), ry(e, n, r) + t;
}
-function oy(e, t = 0, n = 1, r, i) {
- e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
+function ay(e, t = 0, n = 1, r, i) {
+ e.min = iy(e.min, t, n, r, i), e.max = iy(e.max, t, n, r, i);
}
-function sy(e, { x: t, y: n }) {
- oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
+function oy(e, { x: t, y: n }) {
+ ay(e.x, t.translate, t.scale, t.originPoint), ay(e.y, n.translate, n.scale, n.originPoint);
}
-var cy = .999999999999, ly = 1.0000000000001;
-function cne(e, t, n, r = !1) {
+var sy = .999999999999, cy = 1.0000000000001;
+function lne(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
- t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (ly(e.x, -a.scroll.offset.x), ly(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, oy(e, o)), r && (r.path?.[s] || r) !== a && $v(a.latestValues) && fy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < cy && t.x > sy && (t.x = 1), t.y < cy && t.y > sy && (t.y = 1);
}
-function uy(e, t) {
+function ly(e, t) {
e.min += t, e.max += t;
}
-function dy(e, t, n, r, i = .5) {
- oy(e, t, n, og(e.min, e.max, i), r);
+function uy(e, t, n, r, i = .5) {
+ ay(e, t, n, og(e.min, e.max, i), r);
}
-function fy(e, t) {
+function dy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function py(e, t, n) {
+function fy(e, t, n) {
let r = n ?? e;
- dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ uy(e.x, dy(t.x, r.x), t.scaleX, t.scale, t.originX), uy(e.y, dy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function my(e, t) {
- return Xv(sne(e.getBoundingClientRect(), t));
+function py(e, t) {
+ return Yv(cne(e.getBoundingClientRect(), t));
}
-function lne(e, t, n) {
- let r = my(e, n), { scroll: i } = t;
- return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
+function une(e, t, n) {
+ let r = py(e, n), { scroll: i } = t;
+ return i && (ly(r.x, i.offset.x), ly(r.y, i.offset.y)), r;
}
-var une = () => ({
+var dne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), dne = {}, fne = (e) => Pv(e) ? ane : $te, pne = class {
+}), fne = {}, pne = (e) => Nv(e) ? one : ene, mne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Dv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Ev;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18651,19 +18651,19 @@ var une = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return my(this.current);
+ return py(this.current);
}
getProps() {
- return dne;
+ return fne;
}
};
-function mne(e, t, n, r) {
- if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
- let i = fne(e);
- return Mv(i, e, t, n, new pne(i, e));
+function hne(e, t, n, r) {
+ if (Pv.current?.track(e), r) return Av((e) => r.getValue(e, null), t, n, r);
+ let i = pne(e);
+ return jv(i, e, t, n, new mne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
+var gne = /*@__PURE__*/ Rv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => Om(e),
@@ -18671,172 +18671,172 @@ var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: hy, cancel: gne } = /* @__PURE__ */ gg(queueMicrotask, !1);
+}), { schedule: my, cancel: _ne } = /* @__PURE__ */ gg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function gy(e, t, n) {
- let r = bv(e) ? e : dv(e);
- return r.start(mv("", r, t, n)), r.animation;
+function hy(e, t, n) {
+ let r = yv(e) ? e : uv(e);
+ return r.start(pv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var _y = {}, vy = {
+var gy = {}, _y = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function _ne(e, t) {
+function vne(e, t) {
let n = ch.now();
- e = Lv(e);
+ e = Iv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
a >= t && (vg(r), e(a - t));
};
- return _g.setup(r, !0), Iv(() => vg(r));
+ return _g.setup(r, !0), Fv(() => vg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function vne(e) {
+function yne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function yne(e) {
- return Pv(e) && e.tagName === "svg";
+function bne(e) {
+ return Nv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function yy(e) {
- return bv(e) ? e.get() : e;
+function vy(e) {
+ return yv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var by = (e) => typeof e == "number" ? e : parseFloat(e), bne = Ov.length, xne = (e) => typeof e == "number" || Nh.test(e);
-function Sne(e, t, n, r, i, a) {
- i ? (e.opacity = og(0, n.opacity ?? 1, Cne(r)), e.opacityExit = og(t.opacity ?? 1, 0, wne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < bne; i++) {
- let a = Ov[i], o = xy(t, a), s = xy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xne(o) === xne(s) ? (e[a] = Math.max(og(by(o), by(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < $v.length; i++) {
- let a = $v[i];
+var yy = (e) => typeof e == "number" ? e : parseFloat(e), xne = Dv.length, Sne = (e) => typeof e == "number" || Nh.test(e);
+function Cne(e, t, n, r, i, a) {
+ i ? (e.opacity = og(0, n.opacity ?? 1, wne(r)), e.opacityExit = og(t.opacity ?? 1, 0, Tne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < xne; i++) {
+ let a = Dv[i], o = by(t, a), s = by(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Sne(o) === Sne(s) ? (e[a] = Math.max(og(yy(o), yy(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < Qv.length; i++) {
+ let a = Qv[i];
(t[a] || n[a]) && (e[a] = og(t[a] || 0, n[a] || 0, r));
}
}
-function xy(e, t) {
+function by(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Cne = /*@__PURE__*/ Sy(0, .5, Jm), wne = /*@__PURE__*/ Sy(.5, .95, jm);
-function Sy(e, t, n) {
+var wne = /*@__PURE__*/ xy(0, .5, Jm), Tne = /*@__PURE__*/ xy(.5, .95, jm);
+function xy(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Nm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function Cy(e, t) {
+function Sy(e, t) {
e.min = t.min, e.max = t.max;
}
-function wy(e, t) {
- Cy(e.x, t.x), Cy(e.y, t.y);
+function Cy(e, t) {
+ Sy(e.x, t.x), Sy(e.y, t.y);
}
-function Ty(e, t) {
+function wy(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Tne = .9999, Ene = 1.0001, Dne = -.01, One = .01;
-function Ey(e) {
+var Ene = .9999, Dne = 1.0001, One = -.01, kne = .01;
+function Ty(e) {
return e.max - e.min;
}
-function kne(e, t, n) {
+function Ane(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Dy(e, t, n, r = .5) {
- e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Ey(n) / Ey(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tne && e.scale <= Ene || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Dne && e.translate <= One || isNaN(e.translate)) && (e.translate = 0);
+function Ey(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Ty(n) / Ty(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Ene && e.scale <= Dne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= One && e.translate <= kne || isNaN(e.translate)) && (e.translate = 0);
}
-function Oy(e, t, n, r) {
- Dy(e.x, t.x, n.x, r?.originX), Dy(e.y, t.y, n.y, r?.originY);
+function Dy(e, t, n, r) {
+ Ey(e.x, t.x, n.x, r?.originX), Ey(e.y, t.y, n.y, r?.originY);
}
-function ky(e, t, n, r = 0) {
- e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ey(t);
+function Oy(e, t, n, r = 0) {
+ e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ty(t);
}
-function Ane(e, t, n, r) {
- ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
+function jne(e, t, n, r) {
+ Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
}
-function Ay(e, t, n, r = 0) {
+function ky(e, t, n, r = 0) {
let i = r ? og(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + Ey(t);
+ e.min = t.min - i, e.max = e.min + Ty(t);
}
-function jy(e, t, n, r) {
- Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
+function Ay(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function My(e, t, n, r, i) {
- return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
+function jy(e, t, n, r, i) {
+ return e -= t, e = ry(e, 1 / n, r), i !== void 0 && (e = ry(e, 1 / i, r)), e;
}
-function jne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Mne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Mh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = og(a.min, a.max, r);
- e === a && (s -= t), e.min = My(e.min, t, n, s, i), e.max = My(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = jy(e.min, t, n, s, i), e.max = jy(e.max, t, n, s, i);
}
-function Ny(e, t, [n, r, i], a, o) {
- jne(e, t[n], t[r], t[i], t.scale, a, o);
+function My(e, t, [n, r, i], a, o) {
+ Mne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Mne = [
+var Nne = [
"x",
"scaleX",
"originX"
-], Nne = [
+], Pne = [
"y",
"scaleY",
"originY"
];
-function Py(e, t, n, r) {
- Ny(e.x, t, Mne, n?.x, r?.x), Ny(e.y, t, Nne, n?.y, r?.y);
+function Ny(e, t, n, r) {
+ My(e.x, t, Nne, n?.x, r?.x), My(e.y, t, Pne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : jm;
-function Ly(e) {
- e.min = Iy(e.min), e.max = Iy(e.max);
+var Py = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Fy = Py("applewebkit/") && !Py("chrome/") ? Math.round : jm;
+function Iy(e) {
+ e.min = Fy(e.min), e.max = Fy(e.max);
}
-function Pne(e) {
- Ly(e.x), Ly(e.y);
+function Fne(e) {
+ Iy(e.x), Iy(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Ry = () => ({
+var Ly = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
+}), Ry = () => ({
+ x: Ly(),
+ y: Ly()
}), zy = () => ({
- x: Ry(),
- y: Ry()
-}), By = () => ({
min: 0,
max: 0
-}), Vy = () => ({
- x: By(),
- y: By()
+}), By = () => ({
+ x: zy(),
+ y: zy()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Hy(e) {
+function Vy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Uy(e) {
- return Hy(e.x) && Hy(e.y);
+function Hy(e) {
+ return Vy(e.x) && Vy(e.y);
}
-function Wy(e, t) {
+function Uy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Fne(e, t) {
- return Wy(e.x, t.x) && Wy(e.y, t.y);
+function Ine(e, t) {
+ return Uy(e.x, t.x) && Uy(e.y, t.y);
}
-function Gy(e, t) {
+function Wy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Ky(e, t) {
- return Gy(e.x, t.x) && Gy(e.y, t.y);
+function Gy(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function qy(e) {
- return Ey(e.x) / Ey(e.y);
+function Ky(e) {
+ return Ty(e.x) / Ty(e.y);
}
-function Jy(e, t) {
+function qy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Ine = class {
+var Lne = class {
constructor() {
this.members = [];
}
@@ -18884,22 +18884,22 @@ var Ine = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Yy(e, t) {
+function Jy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Xy = { correct: (e, t) => {
+var Yy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (Nh.test(e)) e = parseFloat(e);
else return e;
}
- return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
-} }, Lne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Ov.slice() }),
- borderTopLeftRadius: Xy,
- borderTopRightRadius: Xy,
- borderBottomLeftRadius: Xy,
- borderBottomRightRadius: Xy,
+ return `${Jy(e, t.target.x)}% ${Jy(e, t.target.y)}%`;
+} }, Rne = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Yy, { applyTo: /* @__PURE__ */ Dv.slice() }),
+ borderTopLeftRadius: Yy,
+ borderTopRightRadius: Yy,
+ borderBottomLeftRadius: Yy,
+ borderBottomRightRadius: Yy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = rg.parse(e);
if (i.length > 5) return r;
@@ -18910,13 +18910,13 @@ var Xy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Rne(e, t, n) {
+function zne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < $v.length; e++) {
- let t = $v[e], i = n[t];
+ for (let e = 0; e < Qv.length; e++) {
+ let t = Qv[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18924,11 +18924,11 @@ function Rne(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Zy(e) {
+function Xy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var zne = (e, t) => e.depth - t.depth, Bne = class {
+var Bne = (e, t) => e.depth - t.depth, Vne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -18939,47 +18939,47 @@ var zne = (e, t) => e.depth - t.depth, Bne = class {
wm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(zne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Bne), this.isDirty = !1, this.children.forEach(e);
}
-}, Qy = {
+}, Zy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, $y = [
+}, Qy = [
"z",
"skew",
"skewZ"
-], Vne = 1e3, Hne = 0;
-function eb(e, t, n, r) {
+], Hne = 1e3, Une = 0;
+function $y(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var tb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function nb(e) {
+var eb = (e) => e.instance && J_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function tb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = Cv(t);
+ let n = Sv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
window.MotionCancelOptimisedAnimation(n, "transform", _g, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && nb(r);
+ r && !r.hasCheckedOptimisedAppear && tb(r);
}
-function rb(e) {
- if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
+function nb(e) {
+ if (e) return e.options.allowProjection === !1 ? nb(e.parent) : e.projection;
}
-function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(_y, {
- ...Lne,
- ..._y
+function rb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(gy, {
+ ...Rne,
+ ...gy
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : rb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : nb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && vne(o),
+ alwaysMeasureLayout: !!a || o && yne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18992,16 +18992,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Hne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Une++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Gne), this.nodes.forEach($ne), this.nodes.forEach(ere), this.nodes.forEach(Kne), vy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Kne), this.nodes.forEach(ere), this.nodes.forEach(tre), this.nodes.forEach(qne), _y.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Bne());
+ this.root === this && (this.nodes = new Vne());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pm()), this.eventHandlers.get(e).add(t);
@@ -19014,7 +19014,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Pv(t) && !yne(t), this.instance = t;
+ this.isSVG = Nv(t) && !bne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -19022,7 +19022,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = _ne(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(sb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = vne(i, 250), Zy.hasAnimatedSinceResize && (Zy.hasAnimatedSinceResize = !1, this.nodes.forEach(ob)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19034,16 +19034,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || ire, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Ky(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || are, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Gy(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...pv(a, "layout"),
+ ...fv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || sb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || ob(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
@@ -19060,7 +19060,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(tre), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(nre), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19071,11 +19071,11 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- tb(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && tb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ eb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, tb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, eb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19085,22 +19085,22 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Jne), this.nodes.forEach(ab);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Yne), this.nodes.forEach(ib);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(ob);
+ this.nodes.forEach(ab);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach(Une), this.nodes.forEach(Wne)) : this.nodes.forEach(ob), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(Wne), this.nodes.forEach(Gne)) : this.nodes.forEach(ab), this.clearAllSnapshots();
let e = ch.now();
ah.delta = Tm(0, 1e3 / 60, e - ah.timestamp), ah.timestamp = e, ah.isProcessing = !0, yg.update.process(ah), yg.preRender.process(ah), yg.render.process(ah), ah.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, my.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(qne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Jne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, _g.preRender(this.updateProjection, !1, !0));
@@ -19111,13 +19111,13 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ey(this.snapshot.measuredBox.x) && !Ey(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ty(this.snapshot.measuredBox.x) && !Ty(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= Vy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= By(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19137,13 +19137,13 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && tb(this);
- let t = this.projectionDelta && !Uy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || ey(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && eb(this);
+ let t = this.projectionDelta && !Hy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || $v(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Pne(n), {
+ return e && (n = this.removeTransform(n)), Fne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19153,42 +19153,42 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return Vy();
+ if (!e) return By();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(are))) {
+ if (!(this.scroll?.wasRoot || this.path.some(ore))) {
let { scroll: e } = this.root;
- e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
+ e && (ly(t.x, e.offset.x), ly(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = Vy();
- if (wy(t, e), this.scroll?.wasRoot) return t;
+ let t = By();
+ if (Cy(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && wy(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Cy(t, e), ly(t.x, i.offset.x), ly(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || Vy();
- wy(a, e);
+ let a = n || By();
+ Cy(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (ly(a.x, -n.scroll.offset.x), ly(a.y, -n.scroll.offset.y)), $v(n.latestValues) && fy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && $v(this.latestValues) && fy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = Vy();
- wy(t, e);
+ let t = By();
+ Cy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!ey(n.latestValues)) continue;
+ if (!$v(n.latestValues)) continue;
let r;
- n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Vy(), wy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Zv(n.latestValues) && n.updateSnapshot(), r = By(), Cy(r, n.measurePageBox())), Ny(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return ey(this.latestValues) && Py(t, this.latestValues), t;
+ return $v(this.latestValues) && Ny(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19215,16 +19215,16 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = ah.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Vy(), this.targetWithTransforms = Vy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ane(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : wy(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : wy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vy.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = By(), this.targetWithTransforms = By()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), jne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Cy(this.target, this.layout.layoutBox), oy(this.target, this.targetDelta)) : Cy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), _y.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Zv(this.parent.latestValues) || ty(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), jy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), wy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = By(), this.relativeTargetOrigin = By(), Ay(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Cy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -19234,11 +19234,11 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ah.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- wy(this.layoutCorrected, this.layout.layoutBox);
+ Cy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- cne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Vy());
+ lne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = By());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ty(this.prevProjectionDelta.x, this.projectionDelta.x), Ty(this.prevProjectionDelta.y, this.projectionDelta.y)), Oy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Jy(this.projectionDelta.x, this.prevProjectionDelta.x) && Jy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wy(this.prevProjectionDelta.x, this.projectionDelta.x), wy(this.prevProjectionDelta.y, this.projectionDelta.y)), Dy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && qy(this.projectionDelta.x, this.prevProjectionDelta.x) && qy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), _y.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19250,22 +19250,22 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = zy(), this.projectionDelta = zy(), this.projectionDeltaWithTransform = zy();
+ this.prevProjectionDelta = Ry(), this.projectionDelta = Ry(), this.projectionDeltaWithTransform = Ry();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = zy();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ry();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = Vy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(rre));
+ let s = By(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(ire));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- cb(o.x, e.x, n), cb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), nre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Fne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, Sne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ sb(o.x, e.x, n), sb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ay(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), rre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ine(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= By(), Cy(f, this.relativeTarget)), c && (this.animationValues = a, Cne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (vg(this.pendingAnimation), void 0), this.pendingAnimation = _g.update(() => {
- Qy.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
+ Zy.hasAnimatedSinceResize = !0, this.motionValue ||= uv(0), this.motionValue.jump(0, !1), this.currentAnimation = hy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19275,7 +19275,7 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Mee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19284,20 +19284,20 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Vne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Hne), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && db(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && ub(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || Vy(), ub(i.x, t.x, e.x), ub(i.y, t.y, e.y);
+ i = this.target || By(), lb(i.x, t.x, e.x), lb(i.y, t.y, e.y);
}
- wy(t, i), py(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Cy(t, i), fy(t, r), Dy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ine()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Lne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19330,10 +19330,10 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!ty(t)) return;
+ if (!ey(t)) return;
let n = {};
- for (let t = 0; t < $y.length; t++) eb($y[t], e, n, this.animationValues);
- for (let t = 0; t < $v.length; t++) eb($v[t], e, n, this.animationValues);
+ for (let t = 0; t < Qy.length; t++) $y(Qy[t], e, n, this.animationValues);
+ for (let t = 0; t < Qv.length; t++) $y(Qv[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19347,70 +19347,70 @@ function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = vy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = vy(t?.pointerEvents) || ""), this.hasProjected && !$v(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Rne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = zne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in _y) {
+ for (let t in gy) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = gy[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? yy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? vy(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ab), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ib), this.root.sharedNodes.clear();
}
};
}
-function Une(e) {
- e.updateLayout(), Yne(e);
-}
function Wne(e) {
+ e.updateLayout(), Xne(e);
+}
+function Gne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Zy((e) => {
- let t = Ey(r[e]);
+ if (i === "size") Xy((e) => {
+ let t = Ty(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- Cy(r[e], a[e]);
- } else db(i, t.layoutBox, n) && Zy((t) => {
- let n = Ey(a[t]);
+ Sy(r[e], a[e]);
+ } else ub(i, t.layoutBox, n) && Xy((t) => {
+ let n = Ty(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = zy();
- Oy(c, n, t.layoutBox);
- let l = zy();
- Oy(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = Ry();
+ Dy(c, n, t.layoutBox);
+ let l = Ry();
+ Dy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Hy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = Vy();
- jy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = Vy();
- jy(l, n, i.layoutBox, s), a && o(c, l), Ky(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = By();
+ Ay(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = By();
+ Ay(l, n, i.layoutBox, s), a && o(c, l), Gy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19424,65 +19424,65 @@ function Wne(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Gne(e) {
- vy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
-}
function Kne(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ _y.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
function qne(e) {
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+}
+function Jne(e) {
e.clearSnapshot();
}
-function ab(e) {
+function ib(e) {
e.clearMeasurements();
}
-function Jne(e) {
+function Yne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function ob(e) {
+function ab(e) {
e.isLayoutDirty = !1;
}
-function Yne(e) {
+function Xne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Zy((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Xy((e) => ly(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Xne(e) {
+function Zne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Zne(e) {
+function Qne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Qne(e) {
+function $ne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function sb(e) {
+function ob(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function $ne(e) {
+function ere(e) {
e.resolveTargetDelta();
}
-function ere(e) {
+function tre(e) {
e.calcProjection();
}
-function tre(e) {
+function nre(e) {
e.resetSkewAndRotation();
}
-function cb(e, t, n) {
+function sb(e, t, n) {
e.translate = og(t.translate, 0, n), e.scale = og(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function lb(e, t, n, r) {
+function cb(e, t, n, r) {
e.min = og(t.min, n.min, r), e.max = og(t.max, n.max, r);
}
-function nre(e, t, n, r) {
- lb(e.x, t.x, n.x, r), lb(e.y, t.y, n.y, r);
+function rre(e, t, n, r) {
+ cb(e.x, t.x, n.x, r), cb(e.y, t.y, n.y, r);
}
-function rre(e) {
+function ire(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var ire = {
+var are = {
duration: .45,
ease: [
.4,
@@ -19491,51 +19491,51 @@ var ire = {
1
]
};
-function ub(e, t, n) {
- e.max = Ey(n) + (e.min = t.min);
+function lb(e, t, n) {
+ e.max = Ty(n) + (e.min = t.min);
}
-function db(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !kne(qy(t), qy(n), .2);
+function ub(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Ane(Ky(t), Ky(n), .2);
}
-function are(e) {
+function ore(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function fb(e, t, n, r = { passive: !0 }) {
+function db(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var ore = /* @__PURE__ */ ib({
- attachResizeListener: (e, t) => fb(e, "resize", t),
- measureScroll: une,
+var sre = /* @__PURE__ */ rb({
+ attachResizeListener: (e, t) => db(e, "resize", t),
+ measureScroll: dne,
checkIsScrollRoot: () => !0
-}), pb = { current: void 0 }, mb = /* @__PURE__ */ ib({
+}), fb = { current: void 0 }, pb = /* @__PURE__ */ rb({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!pb.current) {
- let e = new ore({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), pb.current = e;
+ if (!fb.current) {
+ let e = new sre({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), fb.current = e;
}
- return pb.current;
+ return fb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), hb = /* @__PURE__ */ new WeakMap();
+}), mb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function gb(e) {
+function hb(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function _b(e) {
+function gb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var vb = [
+var _b = [
"animate",
"whileInView",
"whileFocus",
@@ -19543,29 +19543,29 @@ var vb = [
"whileTap",
"whileDrag",
"exit"
-], yb = /* @__PURE__ */ ["initial"].concat(vb);
+], vb = /* @__PURE__ */ ["initial"].concat(_b);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function bb(e) {
- if (gb(e.animate)) return !0;
- for (let t = 0; t < yb.length; t++) if (_b(e[yb[t]])) return !0;
+function yb(e) {
+ if (hb(e.animate)) return !0;
+ for (let t = 0; t < vb.length; t++) if (gb(e[vb[t]])) return !0;
return !1;
}
-function xb(e) {
- return !!(bb(e) || e.variants);
+function bb(e) {
+ return !!(yb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function sre(e, t, n) {
+function cre(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (bv(i)) e.addValue(r, i);
- else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
+ if (yv(i)) e.addValue(r, i);
+ else if (yv(a)) e.addValue(r, uv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, uv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19573,17 +19573,17 @@ function sre(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Sb = { current: null }, Cb = { current: !1 }, cre = typeof window < "u";
-function wb() {
- if (Cb.current = !0, cre) {
+var xb = { current: null }, Sb = { current: !1 }, lre = typeof window < "u";
+function Cb() {
+ if (Sb.current = !0, lre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => xb.current = e.matches;
e.addEventListener("change", t), t();
- } else Sb.current = !1;
+ } else xb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Tb = [
+var wb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19591,35 +19591,35 @@ var Tb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Eb = {};
-function Db(e) {
- Eb = e;
+], Tb = {};
+function Eb(e) {
+ Tb = e;
}
-function lre() {
- return Eb;
+function ure() {
+ return Tb;
}
-var ure = class {
+var dre = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = O_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = D_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
let e = ch.now();
this.renderScheduledAt < e && (this.renderScheduledAt = e, _g.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bb(t), this.isVariantNode = xb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = yb(t), this.isVariantNode = bb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && bv(t) && t.set(c[e]);
+ c[e] !== void 0 && yv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, hb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, mb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19629,7 +19629,7 @@ var ure = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Cb.current || wb(), this.shouldReduceMotion = Sb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Sb.current || Cb(), this.shouldReduceMotion = xb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection?.unmount(), vg(this.notifyUpdate), vg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
@@ -19647,8 +19647,8 @@ var ure = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && V_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new L_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && B_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new I_({
element: this.current,
name: e,
keyframes: r,
@@ -19661,10 +19661,10 @@ var ure = class {
});
return;
}
- let n = g_.has(e);
+ let n = h_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), J_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19675,8 +19675,8 @@ var ure = class {
}
updateFeatures() {
let e = "animation";
- for (e in Eb) {
- let t = Eb[e];
+ for (e in Tb) {
+ let t = Tb[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19689,7 +19689,7 @@ var ure = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : By();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19699,14 +19699,14 @@ var ure = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Tb.length; t++) {
- let n = Tb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && J_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < wb.length; t++) {
+ let n = wb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = sre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = cre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19736,11 +19736,11 @@ var ure = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = uv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = i_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = r_(e, t)), this.setBaseTarget(e, yv(n) ? n.get() : n)), yv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
@@ -19752,11 +19752,11 @@ var ure = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- hy.render(this.render);
+ my.render(this.render);
}
-}, Ob = class extends ure {
+}, Db = class extends dre {
constructor() {
- super(...arguments), this.KeyframeResolver = Dv;
+ super(...arguments), this.KeyframeResolver = Ev;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19771,105 +19771,105 @@ var ure = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- bv(e) && (this.childSubscription = e.on("change", (e) => {
+ yv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function kb(e, { style: t, vars: n }, r, i) {
+function Ob(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Ab(e, { layout: t, layoutId: n }) {
- return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
+function kb(e, { layout: t, layoutId: n }) {
+ return h_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!gy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function jb(e, t, n) {
+function Ab(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (bv(r[t]) || i && bv(i[t]) || Ab(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (yv(r[t]) || i && yv(i[t]) || kb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function dre(e) {
+function fre(e) {
return window.getComputedStyle(e);
}
-var fre = class extends Ob {
+var pre = class extends Db {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = kb;
+ super(...arguments), this.type = "html", this.renderInstance = Ob;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
+ if (h_.has(t)) return this.projection?.isProjecting ? d_(t) : p_(e, t);
{
- let n = dre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = fre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return my(e, t);
+ return py(e, t);
}
build(e, t, n) {
- Gv(e, t, n.transformTemplate);
+ Wv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return jb(e, t, n);
+ return Ab(e, t, n);
}
-}, Mb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, jb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function Nb(e) {
+function Mb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var pre = (e) => (t) => Mb(t) && e(t, Nb(t));
+var mre = (e) => (t) => jb(t) && e(t, Mb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Pb(e, t, n, r) {
- return fb(e, t, pre(n), r);
+function Nb(e, t, n, r) {
+ return db(e, t, mre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Fb = /* @__PURE__ */ new WeakMap(), Ib, Lb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], mre = /*@__PURE__*/ Lb("inline", "width", "offsetWidth"), hre = /*@__PURE__*/ Lb("block", "height", "offsetHeight");
-function gre({ target: e, borderBoxSize: t }) {
- Fb.get(e)?.forEach((n) => {
+var Pb = /* @__PURE__ */ new WeakMap(), Fb, Ib = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Nv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], hre = /*@__PURE__*/ Ib("inline", "width", "offsetWidth"), gre = /*@__PURE__*/ Ib("block", "height", "offsetHeight");
+function _re({ target: e, borderBoxSize: t }) {
+ Pb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return mre(e, t);
+ return hre(e, t);
},
get height() {
- return hre(e, t);
+ return gre(e, t);
}
});
});
}
-function _re(e) {
- e.forEach(gre);
+function vre(e) {
+ e.forEach(_re);
}
-function vre() {
- typeof ResizeObserver < "u" && (Ib = new ResizeObserver(_re));
+function yre() {
+ typeof ResizeObserver < "u" && (Fb = new ResizeObserver(vre));
}
-function yre(e, t) {
- Ib || vre();
- let n = Rv(e);
+function bre(e, t) {
+ Fb || yre();
+ let n = Lv(e);
return n.forEach((e) => {
- let n = Fb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Fb.set(e, n)), n.add(t), Ib?.observe(e);
+ let n = Pb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Pb.set(e, n)), n.add(t), Fb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Fb.get(e);
- n?.delete(t), n?.size || Ib?.unobserve(e);
+ let n = Pb.get(e);
+ n?.delete(t), n?.size || Fb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Rb = /* @__PURE__ */ new Set(), zb;
-function bre() {
- zb = () => {
+var Lb = /* @__PURE__ */ new Set(), Rb;
+function xre() {
+ Rb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19878,26 +19878,26 @@ function bre() {
return window.innerHeight;
}
};
- Rb.forEach((t) => t(e));
- }, window.addEventListener("resize", zb);
+ Lb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Rb);
}
-function xre(e) {
- return Rb.add(e), zb || bre(), () => {
- Rb.delete(e), !Rb.size && typeof zb == "function" && (window.removeEventListener("resize", zb), zb = void 0);
+function Sre(e) {
+ return Lb.add(e), Rb || xre(), () => {
+ Lb.delete(e), !Lb.size && typeof Rb == "function" && (window.removeEventListener("resize", Rb), Rb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Bb(e, t) {
- return Iv(typeof e == "function" ? xre(e) : yre(e, t));
+function zb(e, t) {
+ return Fv(typeof e == "function" ? Sre(e) : bre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Vb = (e, t) => Math.abs(e - t);
-function Sre(e, t) {
- let n = Vb(e.x, t.x), r = Vb(e.y, t.y);
+var Bb = (e, t) => Math.abs(e - t);
+function Cre(e, t) {
+ let n = Bb(e.x, t.x), r = Bb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
+var Vb = /*#__PURE__*/ new Set(["auto", "scroll"]), Hb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19905,8 +19905,8 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = qb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Sre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Wb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Kb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Cre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19919,40 +19919,40 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Wb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = qb(e.type === "pointercancel" ? this.lastMoveEventInfo : Gb(t, this.transformPagePoint), this.history);
+ let a = Kb(e.type === "pointercancel" ? this.lastMoveEventInfo : Wb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Mb(e)) return;
+ }, !jb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Gb(Nb(e), this.transformPagePoint), { point: c } = s;
+ let s = Wb(Mb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: ch.now()
}];
let { onSessionStart: l } = t;
- l && l(e, qb(s, this.history));
+ l && l(e, Kb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Mm(Pb(this.contextWindow, "pointermove", this.handlePointerMove, u), Pb(this.contextWindow, "pointerup", this.handlePointerUp, u), Pb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Mm(Nb(this.contextWindow, "pointermove", this.handlePointerMove, u), Nb(this.contextWindow, "pointerup", this.handlePointerUp, u), Nb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Hb.has(e.overflowX) || Hb.has(e.overflowY)) && this.scrollPositions.set(t, Wb(t)), t = t.parentElement;
+ (Vb.has(e.overflowX) || Vb.has(e.overflowY)) && this.scrollPositions.set(t, Ub(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Wb(window)), this.removeScrollListeners = Mm(fb(window, "scroll", this.onElementScroll, { capture: !0 }), fb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Ub(window)), this.removeScrollListeners = Mm(db(window, "scroll", this.onElementScroll, { capture: !0 }), db(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Wb(e), i = {
+ let n = e === window, r = Ub(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
@@ -19964,42 +19964,42 @@ var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
end() {
this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), vg(this.updatePoint);
}
-}, Wb = (e) => e === window ? {
+}, Ub = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Gb(e, t) {
+function Wb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Kb(e, t) {
+function Gb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function qb({ point: e }, t) {
+function Kb({ point: e }, t) {
return {
point: e,
- delta: Kb(e, Jb(t)),
- offset: Kb(e, Cre(t)),
- velocity: wre(t, .1)
+ delta: Gb(e, qb(t)),
+ offset: Gb(e, wre(t)),
+ velocity: Tre(t, .1)
};
}
-function Cre(e) {
+function wre(e) {
return e[0];
}
-function Jb(e) {
+function qb(e) {
return e[e.length - 1];
}
-function wre(e, t) {
+function Tre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Jb(e);
+ let n = e.length - 1, r = null, i = qb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t)));) n--;
if (!r) return {
x: 0,
@@ -20018,95 +20018,95 @@ function wre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var Tre = /* @__PURE__ */ new Set([
+var Ere = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Ere(e) {
- return Tre.has(e.tagName) || e.isContentEditable === !0;
+function Dre(e) {
+ return Ere.has(e.tagName) || e.isContentEditable === !0;
}
-var Dre = /* @__PURE__ */ new Set([
+var Ore = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Ore(e) {
- return Dre.has(e.tagName) || e.isContentEditable === !0;
+function kre(e) {
+ return Ore.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Yb = {
+var Jb = {
x: !1,
y: !1
};
-function Xb() {
- return Yb.x || Yb.y;
+function Yb() {
+ return Jb.x || Jb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function kre(e) {
- return e === "x" || e === "y" ? Yb[e] ? null : (Yb[e] = !0, () => {
- Yb[e] = !1;
- }) : Yb.x || Yb.y ? null : (Yb.x = Yb.y = !0, () => {
- Yb.x = Yb.y = !1;
+function Are(e) {
+ return e === "x" || e === "y" ? Jb[e] ? null : (Jb[e] = !0, () => {
+ Jb[e] = !1;
+ }) : Jb.x || Jb.y ? null : (Jb.x = Jb.y = !0, () => {
+ Jb.x = Jb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Are(e, { min: t, max: n }, r) {
+function jre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? og(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? og(n, e, r.max) : Math.min(e, n)), e;
}
-function Zb(e, t, n) {
+function Xb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function jre(e, { top: t, left: n, bottom: r, right: i }) {
+function Mre(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Zb(e.x, n, i),
- y: Zb(e.y, t, r)
+ x: Xb(e.x, n, i),
+ y: Xb(e.y, t, r)
};
}
-function Qb(e, t) {
+function Zb(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function Mre(e, t) {
+function Nre(e, t) {
return {
- x: Qb(e.x, t.x),
- y: Qb(e.y, t.y)
+ x: Zb(e.x, t.x),
+ y: Zb(e.y, t.y)
};
}
-function Nre(e, t) {
- let n = .5, r = Ey(e), i = Ey(t);
+function Pre(e, t) {
+ let n = .5, r = Ty(e), i = Ty(t);
return i > r ? n = /* @__PURE__ */ Nm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Nm(e.min, e.max - i, t.min)), Tm(0, 1, n);
}
-function Pre(e, t) {
+function Fre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var $b = .35;
-function Fre(e = $b) {
- return e === !1 ? e = 0 : e === !0 && (e = $b), {
- x: ex(e, "left", "right"),
- y: ex(e, "top", "bottom")
+var Qb = .35;
+function Ire(e = Qb) {
+ return e === !1 ? e = 0 : e === !0 && (e = Qb), {
+ x: $b(e, "left", "right"),
+ y: $b(e, "top", "bottom")
};
}
-function ex(e, t, n) {
+function $b(e, t, n) {
return {
- min: tx(e, t),
- max: tx(e, n)
+ min: ex(e, t),
+ max: ex(e, n)
};
}
-function tx(e, t) {
+function ex(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function nx(e) {
+function tx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20115,12 +20115,12 @@ function nx(e) {
}
return t;
}
-var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
+var Lre = /* @__PURE__ */ new WeakMap(), Rre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Vy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = By(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20128,25 +20128,25 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = kre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = Are(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Xy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ph(t) && (t = hv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
+ if (ph(t) && (t = mv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
else if (Mh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = Ey(n) * (parseFloat(t) / 100));
+ n && (t = Ty(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), bv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = zre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Bre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && _g.update(() => a(e, t), !1, !0);
@@ -20159,7 +20159,7 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Ub(e, {
+ this.panSession = new Hb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20191,26 +20191,26 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ox(e, n, this.currentDirection)) return;
+ if (!t || !ax(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Are(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = jre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- rx(e) ? this.constraints && this.scroll === nx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? jre(r.layoutBox, e) : !1, this.elastic = Fre(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Pre(r.layoutBox[e], this.constraints[e]));
+ nx(e) ? this.constraints && this.scroll === tx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Mre(r.layoutBox, e) : !1, this.elastic = Ire(t), i !== this.constraints && !nx(e) && r && this.constraints && !this.hasMutatedConstraints && Xy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Fre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!rx(e)) return !1;
- let n = ix(e), { projection: r } = this.visualElement;
+ if (!nx(e)) return !1;
+ let n = rx(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = nx(r);
- let i = lne(n, r.root, this.visualElement.getTransformPagePoint()), a = Mre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = tx(r);
+ let i = une(n, r.root, this.visualElement.getTransformPagePoint()), a = Nre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(one(a));
- this.hasMutatedConstraints = !!e, e && (a = Xv(e));
+ let e = t(sne(a));
+ this.hasMutatedConstraints = !!e, e && (a = Yv(e));
}
return a;
}
@@ -20222,13 +20222,13 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && ox(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && ax(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Zy((e) => {
- if (!ox(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Xy((e) => {
+ if (!ax(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20246,10 +20246,10 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
+ return bv(this.visualElement, e), n.start(pv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Zy((e) => this.getAxisMotionValue(e).stop());
+ Xy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20260,8 +20260,8 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Zy((e) => {
- if (!ox(e, n, this.currentDirection)) return;
+ Xy((e) => {
+ if (!ax(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - og(r, o, .5));
});
@@ -20269,41 +20269,41 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!rx(t) || !n || !this.constraints) return;
+ if (!nx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Zy((e) => {
+ Xy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Nre({
+ i[e] = Pre({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Zy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Xy((t) => {
let n = this.getAxisMotionValue(t);
- if (!ox(t, e, null) || !n.get()) return;
+ if (!ax(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(og(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Ire.set(this.visualElement, this);
- let e = this.visualElement.current, t = Pb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ore(i);
+ Lre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Nb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && kre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Rre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = nx(t) && rx(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= zre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i.layout || (i.root?.updateScroll(), i.updateLayout()), _g.read(r);
- let o = fb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Zy((t) => {
- if (!ox(t, this.getProps().drag, this.currentDirection)) return;
+ let o = db(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Xy((t) => {
+ if (!ax(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20313,7 +20313,7 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = Qb, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20321,32 +20321,32 @@ var Ire = /* @__PURE__ */ new WeakMap(), Lre = class {
};
}
};
-function rx(e) {
+function nx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var ix = (e) => "current" in e ? e.current : e;
-function ax(e) {
+var rx = (e) => "current" in e ? e.current : e;
+function ix(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Rre(e, t, n) {
- let r = Bb(e, ax(n)), i = Bb(t, ax(n));
+function zre(e, t, n) {
+ let r = zb(e, ix(n)), i = zb(t, ix(n));
return () => {
r(), i();
};
}
-function ox(e, t, n) {
+function ax(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function zre(e, t = 10) {
+function Bre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function sx(e, t) {
- let n = Rv(e), r = new AbortController();
+function ox(e, t) {
+ let n = Lv(e), r = new AbortController();
return [
n,
{
@@ -20354,16 +20354,16 @@ function sx(e, t) {
...t,
signal: r.signal
},
- Iv(() => r.abort())
+ Fv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Bre(e) {
- return !(e.pointerType === "touch" || Xb());
+function Vre(e) {
+ return !(e.pointerType === "touch" || Yb());
}
-function Vre(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = sx(e, n);
+function Hre(e, t, n = {}) {
+ t = Iv(t);
+ let [r, i, a] = ox(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20377,7 +20377,7 @@ function Vre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Bre(n)) return;
+ if (!Vre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20385,71 +20385,71 @@ function Vre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var cx = (e, t) => t ? e === t || cx(e, t.parentElement) : !1, lx = /* @__PURE__ */ new WeakSet();
+var sx = (e, t) => t ? e === t || sx(e, t.parentElement) : !1, cx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function ux(e) {
+function lx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function dx(e, t) {
+function ux(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Hre = (e, t) => {
- let n = !1, r = ux(() => {
- lx.has(e) || (n = !0, dx(e, "down"));
- }), i = ux(() => {
- n && (n = !1, dx(e, "up"));
+var Ure = (e, t) => {
+ let n = !1, r = lx(() => {
+ cx.has(e) || (n = !0, ux(e, "down"));
+ }), i = lx(() => {
+ n && (n = !1, ux(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && dx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && ux(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function fx(e) {
- return Mb(e) && !Xb();
+function dx(e) {
+ return jb(e) && !Yb();
}
-var px = /* @__PURE__ */ new WeakSet();
-function Ure(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = sx(e, n), o = (e) => {
+var fx = /* @__PURE__ */ new WeakSet();
+function Wre(e, t, n = {}) {
+ t = Iv(t);
+ let [r, i, a] = ox(e, n), o = (e) => {
let r = e.currentTarget;
- if (!fx(e) || px.has(e)) return;
- lx.add(r), n.stopPropagation && px.add(e);
+ if (!dx(e) || fx.has(e)) return;
+ cx.add(r), n.stopPropagation && fx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), lx.has(r) && lx.delete(r), fx(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), cx.has(r) && cx.delete(r), dx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || cx(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || sx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Nv(e) && (e.addEventListener("focus", () => Hre(e, i), i), !Ere(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Mv(e) && (e.addEventListener("focus", () => Ure(e, i), i), !Dre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function mx(e, t) {
+function px(e, t) {
let n = window.getComputedStyle(e);
- return k_(t) ? n.getPropertyValue(t) : n[t];
+ return O_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var hx = class {
+var mx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, gx = /* @__PURE__ */ new Set([
+}, hx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20473,58 +20473,58 @@ var hx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), _x = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), gx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Wre(e, t, n, r) {
- kb(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Wv(n), t.attrs[n]);
+function Gre(e, t, n, r) {
+ Ob(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(hx.has(n) ? n : Uv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function vx(e, t, n) {
- let r = jb(e, t, n);
- for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
- let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function _x(e, t, n) {
+ let r = Ab(e, t, n);
+ for (let n in e) if (n !== "children" && (yv(e[n]) || yv(t[n]))) {
+ let t = m_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Gre = class extends Ob {
+var Kre = class extends Db {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = By;
}
getBaseTargetFromProps(e, t) {
- return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
+ return h_.has(t) ? super.getBaseTargetFromProps(e, t) ?? d_(t) : e[t];
}
getDefaultValue(e) {
- return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
+ return h_.has(e) ? this.latestValues[e] ?? d_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (g_.has(t)) {
- let e = r_(t);
+ if (h_.has(t)) {
+ let e = n_(t);
return e && e.default || 0;
}
- if (Kv.includes(t)) {
+ if (Gv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = gx.has(t) ? t : Wv(t), e.getAttribute(t);
+ return t = hx.has(t) ? t : Uv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return vx(e, t, n);
+ return _x(e, t, n);
}
build(e, t, n) {
- qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Kv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Wre(e, t, n, r);
+ Gre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = _x(e.tagName), super.mount(e);
+ this.isSVGTag = gx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function yx(e, t) {
+function vx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20532,18 +20532,18 @@ function yx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Kre = [...vb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;
-function qre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Rte(e, t, n))), n = xx(), r = !0, i = !1;
+var qre = [..._b].reverse(), yx = (e) => e?.out === !0 ? e : e?.out;
+function Jre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => zte(e, t, n))), n = bx(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && gv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);
- if (Kre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? _b(f) || f === !1 ? f : void 0 : l, y = _b(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || gb(v) || typeof v == "boolean") return;
+ let _ = u && yx(f(l ?? (g && g.props.initial))?.transition);
+ if (qre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? gb(f) || f === !1 ? f : void 0 : l, y = gb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || hb(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20551,14 +20551,14 @@ function qre(e) {
};
return;
}
- let S = Jre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Yre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = _v(e, n, vv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = gv(e, n, _v(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = bx(r) || D;
+ }, D = yx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20566,7 +20566,7 @@ function qre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !yx(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !vx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20581,8 +20581,8 @@ function qre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = _v(s, n)?.transition?.delayChildren;
- r.delay = sv(s.enteringChildren, e, t);
+ let t = gv(s, n)?.transition?.delayChildren;
+ r.delay = ov(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20599,7 +20599,7 @@ function qre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !yv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20620,16 +20620,16 @@ function qre(e) {
},
getState: () => n,
reset: () => {
- n = xx(), i = !0;
+ n = bx(), i = !0;
}
};
}
-function Jre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;
+function Yre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !vx(t, e) : !1;
}
-function xx() {
+function bx() {
let e = {};
- for (let t of vb) e[t] = {
+ for (let t of _b) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20639,55 +20639,55 @@ function xx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var Sx = /* @__PURE__ */ (0, F.createContext)({
+var xx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function Cx(e, t) {
+function Sx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Yre(...e) {
+function Xre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = Cx(e, t);
+ let r = Sx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : Cx(e[t], null);
+ typeof n == "function" ? n() : Sx(e[t], null);
}
};
};
}
-function Xre(...e) {
- return F.useCallback(Yre(...e), e);
+function Zre(...e) {
+ return F.useCallback(Xre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var wx = (e) => {
+var Cx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Tx = (e) => {
+}, wx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = wx(r);
+ let [a, o] = Cx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = wx(e.offsetParent);
+ let [i, a] = Cx(e.offsetParent);
return [t / i, n / a];
-}, Zre = class extends F.Component {
+}, Qre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Tx(t);
+ if (Mv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Mv(e) && e.offsetWidth || 0, r = Mv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = wx(t);
}
return null;
}
@@ -20696,7 +20696,7 @@ var wx = (e) => {
return this.props.children;
}
};
-function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function $re({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20705,7 +20705,7 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(Sx), d = Xre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(xx), d = Zre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20718,10 +20718,10 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return hy.setup(() => {
- let [e, t] = Tx(r);
+ return my.setup(() => {
+ let [e, t] = wx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), hy.read(() => {
+ }), my.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20729,7 +20729,7 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Zre, {
+ }, [t]), (0, I.jsx)(Qre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20738,8 +20738,8 @@ function Qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = bm(eie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var eie = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = bm(tie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
xm(() => {
p.current = n, m.current = r;
});
@@ -20765,7 +20765,7 @@ var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Qre, {
+ }, [n]), e = (0, I.jsx)($re, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20778,11 +20778,11 @@ var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function eie() {
+function tie() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Ex(e = !0) {
+function Tx(e = !0) {
let t = (0, F.useContext)(Sm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20796,23 +20796,23 @@ function Ex(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Dx() {
- return tie((0, F.useContext)(Sm));
+function Ex() {
+ return nie((0, F.useContext)(Sm));
}
-function tie(e) {
+function nie(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Ox = (e) => e.key || "";
-function kx(e) {
+var Dx = (e) => e.key || "";
+function Ox(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = Ex(o), f = (0, F.useMemo)(() => kx(e), [e]), p = o && !u ? [] : f.map(Ox), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var kx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Tx(o), f = (0, F.useMemo)(() => Ox(e), [e]), p = o && !u ? [] : f.map(Dx), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
xm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20828,7 +20828,7 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), xm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Ox(y[e]);
+ let t = Dx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20840,15 +20840,15 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Ox(n));
+ let r = p.indexOf(Dx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Ox(e))) ? e = f : a === "wait" && (e = S), b(kx(e)), v(f), null;
+ return S.every((e) => h.get(Dx(e))) ? e = f : a === "wait" && (e = S), b(Ox(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(ym);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)($re, {
+ let _ = Dx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(eie, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20869,8 +20869,8 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {
- animation: ["variants", ...vb],
+}, Ax = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), jx = {
+ animation: ["variants", ..._b],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20897,32 +20897,32 @@ var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Nx = !1;
-function nie() {
- if (Nx) return;
+}, Mx = !1;
+function rie() {
+ if (Mx) return;
let e = {};
- for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };
- Db(e), Nx = !0;
+ for (let t in jx) e[t] = { isEnabled: (e) => jx[t].some((t) => !!e[t]) };
+ Eb(e), Mx = !0;
}
-function Px() {
- return nie(), lre();
+function Nx() {
+ return rie(), ure();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function rie(e) {
- let t = Px();
+function iie(e) {
+ let t = Nx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Db(t);
+ Eb(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function iie({ children: e, ...t }) {
- let n = (0, F.useContext)(Sx);
+function aie({ children: e, ...t }) {
+ let n = (0, F.useContext)(xx);
t = {
...n,
...t
- }, t.transition = fv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
+ }, t.transition = dv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20930,77 +20930,77 @@ function iie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(Sx.Provider, {
+ return (0, I.jsx)(xx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Fx = /* @__PURE__ */ (0, F.createContext)({});
+var Px = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function aie(e, t) {
- if (bb(e)) {
+function oie(e, t) {
+ if (yb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || _b(t) ? t : void 0,
- animate: _b(n) ? n : void 0
+ initial: t === !1 || gb(t) ? t : void 0,
+ animate: gb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function oie(e) {
- let { initial: t, animate: n } = aie(e, (0, F.useContext)(Fx));
+function sie(e) {
+ let { initial: t, animate: n } = oie(e, (0, F.useContext)(Px));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Ix(t), Ix(n)]);
+ }), [Fx(t), Fx(n)]);
}
-function Ix(e) {
+function Fx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Lx = () => ({
+var Ix = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Rx(e, t, n) {
- for (let r in t) !bv(t[r]) && !Ab(r, n) && (e[r] = t[r]);
+function Lx(e, t, n) {
+ for (let r in t) !yv(t[r]) && !kb(r, n) && (e[r] = t[r]);
}
-function sie({ transformTemplate: e }, t) {
+function cie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Lx();
- return Gv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Ix();
+ return Wv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function cie(e, t) {
+function lie(e, t) {
let n = e.style || {}, r = {};
- return Rx(r, n, e), Object.assign(r, sie(e, t)), r;
+ return Lx(r, n, e), Object.assign(r, cie(e, t)), r;
}
-function lie(e, t) {
- let n = {}, r = cie(e, t);
+function uie(e, t) {
+ let n = {}, r = lie(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var zx = () => ({
- ...Lx(),
+var Rx = () => ({
+ ...Ix(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function uie(e, t, n, r) {
+function die(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = zx();
- return qv(n, t, _x(r), e.transformTemplate, e.style), {
+ let n = Rx();
+ return Kv(n, t, gx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Rx(t, e.style, e), {
+ return Lx(t, e.style, e), {
...i,
style: {
...t,
@@ -21011,21 +21011,21 @@ function uie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var die = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Bx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || die.has(e);
+var fie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function zx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || fie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function fie(e, t) {
- return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);
+function pie(e, t) {
+ return e.startsWith("on") ? !zx(e) : t?.(e) ?? !zx(e);
}
-function pie(e, t, n, r) {
+function mie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || (fie(a, r) || n === !0 && Bx(a) || !t && !Bx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || yv(e[a]) || (pie(a, r) || n === !0 && zx(a) || !t && !zx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var mie = [
+var hie = [
"animate",
"circle",
"defs",
@@ -21053,40 +21053,40 @@ var mie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Vx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(mie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Bx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(hie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function hie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Vx(e) ? uie : lie)(t, r, i, e), l = pie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function gie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Bx(e) ? die : uie)(t, r, i, e), l = mie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => yv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function gie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function _ie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: _ie(n, r, i, e),
+ latestValues: vie(n, r, i, e),
renderState: t()
};
}
-function _ie(e, t, n, r) {
+function vie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = yy(a[e]);
- let { initial: o, animate: s } = e, c = bb(e), l = xb(e);
+ for (let e in a) i[e] = vy(a[e]);
+ let { initial: o, animate: s } = e, c = yb(e), l = bb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !gb(d)) {
+ if (d && typeof d != "boolean" && !hb(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = gv(e, t[n]);
+ let r = hv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21103,18 +21103,18 @@ function _ie(e, t, n, r) {
}
return i;
}
-var Hx = (e) => (t, n) => {
- let r = (0, F.useContext)(Fx), i = (0, F.useContext)(Sm), a = () => gie(e, t, r, i);
+var Vx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Px), i = (0, F.useContext)(Sm), a = () => _ie(e, t, r, i);
return n ? a() : bm(a);
-}, vie = /*@__PURE__*/ Hx({
- scrapeMotionValuesFromProps: jb,
- createRenderState: Lx
-}), yie = /*@__PURE__*/ Hx({
- scrapeMotionValuesFromProps: vx,
- createRenderState: zx
-}), bie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}, yie = /*@__PURE__*/ Vx({
+ scrapeMotionValuesFromProps: Ab,
+ createRenderState: Ix
+}), bie = /*@__PURE__*/ Vx({
+ scrapeMotionValuesFromProps: _x,
+ createRenderState: Rx
+}), xie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function xie(e, t, n) {
+function Sie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21132,10 +21132,10 @@ function xie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Ux = /* @__PURE__ */ (0, F.createContext)({});
+var Hx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function Sie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(Sm), l = (0, F.useContext)(Sx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function Cie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Px), s = (0, F.useContext)(Ax), c = (0, F.useContext)(Sm), l = (0, F.useContext)(xx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21146,11 +21146,11 @@ function Sie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Ux);
+ let m = f.current, h = (0, F.useContext)(Hx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ let g = n[xv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
return xm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
}, []), xm(() => {
@@ -21162,46 +21162,46 @@ function Sie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && rie(r);
- let a = n ? n === "svg" : Vx(e), o = a ? yie : vie;
+function Ux(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && iie(r);
+ let a = n ? n === "svg" : Bx(e), o = a ? bie : yie;
function s(n, s) {
- let c, l = Cie(n);
- bm(() => !!pb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = wie(n);
+ bm(() => !!fb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(Sx),
+ ...(0, F.useContext)(xx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = oie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = sie(n), m = o(n, d);
if (!d && typeof window < "u") {
- wie(u, r);
- let t = Tie(u);
- p.visualElement = Sie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ Tie(u, r);
+ let t = Eie(u);
+ p.visualElement = Cie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Fx.Provider, {
+ return (0, I.jsxs)(Px.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, hie(e, n, xie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, gie(e, n, Sie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[bie] = e, c;
+ return c[xie] = e, c;
}
-function Cie({ layoutId: e }) {
+function wie({ layoutId: e }) {
let t = (0, F.useContext)(ym).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function wie(e, t) {
- (0, F.useContext)(jx).strict;
+function Tie(e, t) {
+ (0, F.useContext)(Ax).strict;
}
-function Tie(e) {
- let { drag: t, layout: n } = Px();
+function Eie(e) {
+ let { drag: t, layout: n } = Nx();
if (!t && !n) return {};
let r = {
...t,
@@ -21214,19 +21214,19 @@ function Tie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Eie(e, t) {
- if (typeof Proxy > "u") return Wx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Wx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Wx(a, void 0, e, t)), n.get(a)) });
+function Die(e, t) {
+ if (typeof Proxy > "u") return Ux;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Ux(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Ux(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection: e !== F.Fragment }), Oie = class extends hx {
+var Oie = (e, t) => t.isSVG ?? Bx(e) ? new Kre(t) : new pre(t, { allowProjection: e !== F.Fragment }), kie = class extends mx {
constructor(e) {
- super(e), e.animationState ||= qre(e);
+ super(e), e.animationState ||= Jre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- gb(e) && (this.unmountControls = e.subscribe(this.node));
+ hb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21237,11 +21237,11 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, kie = 0, Aie = {
- animation: { Feature: Oie },
- exit: { Feature: class extends hx {
+}, Aie = 0, jie = {
+ animation: { Feature: kie },
+ exit: { Feature: class extends mx {
constructor() {
- super(...arguments), this.id = kie++;
+ super(...arguments), this.id = Aie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21252,7 +21252,7 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = gv(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21271,9 +21271,9 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
}
unmount() {}
} }
-}, jie = class extends hx {
+}, Mie = class extends mx {
constructor(e) {
- super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Lre(e);
+ super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Rre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21286,14 +21286,14 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Gx = (e) => (t, n) => {
+}, Wx = (e) => (t, n) => {
e && _g.update(() => e(t, n), !1, !0);
-}, Mie = class extends hx {
+}, Nie = class extends mx {
constructor() {
super(...arguments), this.removePointerDownListener = jm;
}
onPointerDown(e) {
- this.session = new Ub(e, this.createPanHandlers(), {
+ this.session = new Hb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21301,16 +21301,16 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Gx(e),
- onStart: Gx(t),
- onMove: Gx(n),
+ onSessionStart: Wx(e),
+ onStart: Wx(t),
+ onMove: Wx(n),
onEnd: (e, t) => {
delete this.session, r && _g.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Pb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Nb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21318,12 +21318,12 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Kx = !1, qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Gx = !1, Kx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Jx = (e, t) => {
+}), qx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21332,33 +21332,33 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Nie = class extends F.Component {
+}, Pie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Kx && i.root.didUpdate(), i.options.layoutId !== r && Jx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Gx && i.root.didUpdate(), i.options.layoutId !== r && qx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...qx(this.props),
+ ...Kx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Qy.hasEverUpdated = !0;
+ })), Zy.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Jx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), qx(o, n)), o.setOptions({
...o.options,
- ...qx(this.props)
- }), Kx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
+ ...Kx(this.props)
+ }), Gx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), my.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Kx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Gx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21367,39 +21367,39 @@ var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection
return null;
}
};
-function Yx(e) {
- let [t, n] = Ex(), r = (0, F.useContext)(ym);
- return (0, I.jsx)(Nie, {
+function Jx(e) {
+ let [t, n] = Tx(), r = (0, F.useContext)(ym);
+ return (0, I.jsx)(Pie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Ux),
+ switchLayoutGroup: (0, F.useContext)(Hx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Pie = {
- pan: { Feature: Mie },
+var Fie = {
+ pan: { Feature: Nie },
drag: {
- Feature: jie,
- ProjectionNode: mb,
- MeasureLayout: Yx
+ Feature: Mie,
+ ProjectionNode: pb,
+ MeasureLayout: Jx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Xx(e, t, n, r) {
+function Yx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && _g.postRender(() => o(t, Nb(t)));
+ o && _g.postRender(() => o(t, Mb(t)));
}
-var Fie = class extends hx {
+var Iie = class extends mx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Vre(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Hre(e, (e, t) => (Yx(this.node, t, "Hover", "Start"), (e) => Yx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Iie = class extends hx {
+}, Lie = class extends mx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21416,51 +21416,51 @@ var Fie = class extends hx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Mm(fb(this.node.current, "focus", () => this.onFocus()), fb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Mm(db(this.node.current, "focus", () => this.onFocus()), db(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Zx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);
+function Xx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Yx(e, t, "Tap", n);
}
-var Lie = class extends hx {
+var Rie = class extends mx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Ure(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Wre(e, (e, t) => (Xx(this.node, t, "Start"), (e, { success: t }) => Xx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Rie = (e) => {
- let t = Qx.get(e.target);
+}, Zx = /* @__PURE__ */ new WeakMap(), Qx = /* @__PURE__ */ new WeakMap(), zie = (e) => {
+ let t = Zx.get(e.target);
t && t(e);
-}, zie = (e) => {
- e.forEach(Rie);
+}, Bie = (e) => {
+ e.forEach(zie);
};
-function Bie({ root: e, ...t }) {
+function Vie({ root: e, ...t }) {
let n = e || document;
- $x.has(n) || $x.set(n, {});
- let r = $x.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(zie, {
+ Qx.has(n) || Qx.set(n, {});
+ let r = Qx.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Bie, {
root: e,
...t
})), r[i];
}
-function Vie(e, t, n) {
- let r = Bie(t);
- return Qx.set(e, n), r.observe(e), () => {
- Qx.delete(e), r.unobserve(e);
+function Hie(e, t, n) {
+ let r = Vie(t);
+ return Zx.set(e, n), r.observe(e), () => {
+ Zx.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Hie = {
+var Uie = {
some: 0,
all: 1
-}, Uie = class extends hx {
+}, Wie = class extends mx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21469,7 +21469,7 @@ var Hie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Hie[r]
+ threshold: typeof r == "number" ? r : Uie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21477,7 +21477,7 @@ var Hie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Vie(this.node.current, a, o);
+ this.stopObserver = Hie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21489,61 +21489,61 @@ var Hie = {
"amount",
"margin",
"root"
- ].some(Wie(e, t)) && this.startObserver();
+ ].some(Gie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Wie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Gie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Gie = /*@__PURE__*/ Eie(/* @__PURE__ */ Object.assign({}, Aie, {
- inView: { Feature: Uie },
- tap: { Feature: Lie },
- focus: { Feature: Iie },
- hover: { Feature: Fie }
-}, Pie, { layout: {
- ProjectionNode: mb,
- MeasureLayout: Yx
-} }), Die);
+var Kie = /*@__PURE__*/ Die(/* @__PURE__ */ Object.assign({}, jie, {
+ inView: { Feature: Wie },
+ tap: { Feature: Rie },
+ focus: { Feature: Lie },
+ hover: { Feature: Iie }
+}, Fie, { layout: {
+ ProjectionNode: pb,
+ MeasureLayout: Jx
+} }), Oie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function eS() {
- !Cb.current && wb();
- let [e] = (0, F.useState)(Sb.current);
+function $x() {
+ !Sb.current && Cb();
+ let [e] = (0, F.useState)(xb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function tS(e) {
+function eS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function nS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && tS(t) ? Rv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function tS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && eS(t) ? Lv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Kie(e, t, n) {
+function qie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function rS(e, t) {
+function nS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function qie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : rS(t, r) ?? e;
+function Jie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : nS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Jie(e, t, n) {
+function Yie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (wm(e, i), r--);
}
}
-function Yie(e, t, n, r, i, a) {
- Jie(e, i, a);
+function Xie(e, t, n, r, i, a) {
+ Yie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: og(i, a, r[o]),
@@ -21551,19 +21551,19 @@ function Yie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Xie(e, t, n = 0) {
+function Zie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Zie(e, t) {
+function Qie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Qie = "easeInOut", $ie = 20;
-function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var $ie = "easeInOut", eae = 20;
+function tae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : qie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Jie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21578,12 +21578,12 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = tae(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = nae(e), { delay: l = 0, times: u = Bg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = I_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = F_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && iae(c)) {
+ if (S === 2 && aae(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21599,9 +21599,9 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < $ie) {
+ if (T > 0 && zg(u, T), c.length === 1 && c.unshift(null), m && m < eae) {
let e = b > 0 ? g / b : 0;
- b = Kie(b, m, g);
+ b = qie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21611,20 +21611,20 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ eh(f, e - 1));
}
- Xie(u, m, e);
+ Zie(u, m, e);
}
let E = w + b;
- Yie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Xie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (bv(g)) {
- let e = iS(g, c);
- b(_, v, aS("default", e));
+ if (yv(g)) {
+ let e = rS(g, c);
+ b(_, v, iS("default", e));
} else {
- let e = nS(g, _, r, l), t = e.length;
+ let e = tS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = iS(r, c);
- for (let e in _) b(_[e], nae(v, e), aS(e, i), n, t);
+ let r = e[n], i = rS(r, c);
+ for (let e in _) b(_[e], rae(v, e), iS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21634,13 +21634,13 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Zie);
+ a.sort(Qie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ Nm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Qie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift($ie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21658,45 +21658,45 @@ function eae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function iS(e, t) {
+function rS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function aS(e, t) {
+function iS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function tae(e) {
+function nae(e) {
return Array.isArray(e) ? e : [e];
}
-function nae(e, t) {
+function rae(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var rae = (e) => typeof e == "number", iae = (e) => e.every(rae);
+var iae = (e) => typeof e == "number", aae = (e) => e.every(iae);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function aae(e, t) {
- return bv(e) || typeof e == "number" || typeof e == "string" && !tS(t);
+function oae(e, t) {
+ return yv(e) || typeof e == "number" || typeof e == "string" && !eS(t);
}
-function oS(e, t, n, r) {
+function aS(e, t, n, r) {
let i = [];
- if (aae(e, t)) i.push(gy(e, tS(t) && t.default || t, n && (n.default || n)));
+ if (oae(e, t)) i.push(hy(e, eS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = nS(e, t, r), o = a.length;
+ let a = tS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...mne(r, t, s, hb.get(r))) : i.push(...Mv(Jte(r) ?? hne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...hne(r, t, s, mb.get(r))) : i.push(...jv(Yte(r) ?? gne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function oae(e, t, n, r) {
+function sae(e, t, n, r) {
let i = [];
- return eae(e.map((e) => {
+ return tae(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = dv(0);
+ let t = e[0], n = uv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21709,30 +21709,30 @@ function oae(e, t, n, r) {
}
return e;
}), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...oS(n, e, t));
+ i.push(...aS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var sS = 0;
-function sae(e, t) {
+var oS = 0;
+function cae(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var cS = (e, t) => t === void 0 ? e : {
+var sS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function lS(e) {
+function cS(e) {
e.pause(), e.time = 0, e.stop();
}
-var uS = class e {
+var lS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Pv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new iv(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
r && (r.animations.push(this), this.finished.then(() => wm(r.animations, this)));
}
@@ -21747,7 +21747,7 @@ var uS = class e {
item: e,
at: t,
marker: {
- name: "_m" + sS++,
+ name: "_m" + oS++,
time: 0,
callback: e
}
@@ -21758,7 +21758,7 @@ var uS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + sS++,
+ name: "_m" + oS++,
time: 0,
callback: t,
pause: !0
@@ -21852,50 +21852,50 @@ var uS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (lS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (cS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, lS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, cS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = Fv.current;
- Fv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Pv.current;
+ Pv.current = this.motionScope;
let m;
try {
- m = oae(this.toSequence(d), {
+ m = sae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- Fv.current = p;
+ Pv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = dv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
+ let e = this.clock = uv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = hy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new av(m);
+ let v = this.group = new iv(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), cS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), sS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? sae(n, r) : {
+ } : typeof n == "string" ? sS(n, r) : r === void 0 ? n : Array.isArray(n) ? cae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : rS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : nS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21943,16 +21943,16 @@ var uS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function cae(e) {
+function lae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function lae(e = {}) {
+function uae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Fv.current?.transition, s = {};
+ let o = Pv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (cae(e)) {
+ if (lae(e)) {
let n = {
...s,
...i,
@@ -21961,14 +21961,14 @@ function lae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new uS(e, n);
+ }), c = new lS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new uS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new lS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21983,29 +21983,29 @@ function lae(e = {}) {
...s,
onComplete: n,
scope: t
- }, oS(e, i, l, t));
+ }, aS(e, i, l, t));
}
return c;
}
return i;
}
-var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ lae(), {
- addEffect: qte,
- removeEffect: Av
+var uS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ uae(), {
+ addEffect: Jte,
+ removeEffect: kv
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function uae(e, t, n, r) {
+function dae(e, t, n, r) {
if (e == null) return [];
- let i = Rv(e, r), a = i.length, o = [];
+ let i = Lv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...pv(s, e) };
+ let i = { ...fv(s, e) };
i.duration &&= /* @__PURE__ */ Fm(i.duration), i.delay &&= /* @__PURE__ */ Fm(i.delay);
- let a = yte(r), c = vte(e, i.pseudoElement || ""), l = a.get(c);
+ let a = bte(r), c = yte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -22021,21 +22021,21 @@ function uae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = mx(r, i)), a_(t), Kte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = px(r, i)), i_(t), qte(t, i), !a && t.length < 2 && t.unshift(px(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new L_(r);
+ let { map: t, key: n, options: r } = o[e], i = new I_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var dae = /*@__PURE__*/ ((e) => {
+var fae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new av(uae(t, n, r, e));
+ return new iv(dae(t, n, r, e));
}
return t;
-})(), fS = Gie, pS = class {
+})(), dS = Kie, fS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -22050,22 +22050,22 @@ var dae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, mS = class extends pS {
+}, pS = class extends fS {
filter(e, t, n) {
- let [r, i] = vS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = _S(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends pS {
+(class extends fS {
static {
this.type = "header";
}
});
-var hS = class extends pS {
+var mS = class extends fS {
static {
this.type = "loader";
}
-}, gS = class extends mS {
+}, hS = class extends pS {
static {
this.type = "item";
}
@@ -22076,7 +22076,7 @@ var hS = class extends pS {
}
return null;
}
-}, fae = class extends mS {
+}, pae = class extends pS {
static {
this.type = "section";
}
@@ -22088,7 +22088,7 @@ var hS = class extends pS {
}
return null;
}
-}, _S = class {
+}, gS = class {
get size() {
return this.itemCount;
}
@@ -22163,14 +22163,14 @@ var hS = class extends pS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = vS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = _S(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function vS(e, t, n, r) {
+function _S(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22184,7 +22184,7 @@ function vS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var yS = class {
+var vS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22265,7 +22265,7 @@ var yS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, bS = class e extends yS {
+}, yS = class e extends vS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22316,7 +22316,7 @@ var yS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, pae = class extends yS {
+}, mae = class extends vS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22324,7 +22324,7 @@ var yS = class {
return !0;
}
createElement(e) {
- return new bS(e, this);
+ return new yS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22346,8 +22346,8 @@ var yS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof bS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof bS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof yS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof yS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22365,13 +22365,13 @@ var yS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function xS(e) {
+function bS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = mae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = hae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22396,7 +22396,7 @@ function xS(e) {
i
]);
}
-function mae(e) {
+function hae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22405,24 +22405,24 @@ function mae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function SS(e) {
+function xS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var CS = (e) => hae(e) ? e.document : gae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wS = (e) => CS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function TS(e) {
+var SS = (e) => gae(e) ? e.document : _ae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), CS = (e) => SS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function wS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function hae(e) {
+function gae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function gae(e) {
- return TS(e) && e.nodeType === 9;
+function _ae(e) {
+ return wS(e) && e.nodeType === 9;
}
-function ES(e) {
- return TS(e) && e.nodeType === 11 && "host" in e;
+function TS(e) {
+ return wS(e) && e.nodeType === 11 && "host" in e;
}
-function DS(e, t, n, r) {
+function ES(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22430,7 +22430,7 @@ function DS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function OS(e, t, n, r) {
+function DS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22444,70 +22444,70 @@ function OS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var _ae = !1;
-function kS() {
- return _ae;
+var vae = !1;
+function OS() {
+ return vae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function AS(e, t) {
- if (!kS()) return t && e ? e.contains(t) : !1;
+function kS(e, t) {
+ if (!OS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : ES(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : TS(n) ? n.host : n.parentNode;
}
return !1;
}
-var jS = (e = document) => {
- if (!kS()) return e.activeElement;
+var AS = (e = document) => {
+ if (!OS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (kS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (OS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function MS(e, t) {
+function jS(e, t) {
if (t === null) return [];
- t ??= wS(e);
+ t ??= CS(e);
let n = [t];
- if (!kS() || !e || e === t) return n;
+ if (!OS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; ES(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; TS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function NS(e) {
+function MS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = wS(e);
+ let t = e.getRootNode(), n = CS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var vae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function yae(e) {
- let t = wS(e);
+var yae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function bae(e) {
+ let t = CS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = wS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = CS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function bae(e, t) {
+function xae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function PS(e, t) {
- return vae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && yae(e) && bae(e, t) && (!e.parentElement || PS(e.parentElement, e));
+function NS(e, t) {
+ return yae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && bae(e) && xae(e, t) && (!e.parentElement || NS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var FS = [
+var PS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22522,39 +22522,39 @@ var FS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], xae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var Sae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function IS(e, t) {
- return e.matches(xae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));
+], Sae = PS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+PS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Cae = PS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function FS(e, t) {
+ return e.matches(Sae) && !LS(e) && (t?.skipVisibilityCheck || NS(e));
}
-function LS(e) {
- return e.matches(Sae) && PS(e) && !RS(e);
+function IS(e) {
+ return e.matches(Cae) && NS(e) && !LS(e);
}
-function RS(e) {
+function LS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof wS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof CS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var zS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var RS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function BS(e) {
+function zS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function VS(e, t) {
+function BS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function HS(e) {
+function VS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return zS(() => {
+ return RS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22566,14 +22566,14 @@ function HS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = BS(r);
+ let t = zS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === jS() ? null : jS();
+ let e = n === AS() ? null : AS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22586,80 +22586,80 @@ function HS(e) {
}
}, [e]);
}
-var US = !1;
-function Cae(e) {
- for (; e && !IS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = jS(wS(e).document);
+var HS = !1;
+function wae(e) {
+ for (; e && !FS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = AS(CS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && ES(n) ? n : wS(e), i = (t) => t === e || TS(t) && AS(e, t), a = (e) => e === t || t != null && TS(e) && AS(t, e);
- US = !0;
+ let n = e?.getRootNode(), r = n != null && TS(n) ? n : CS(e), i = (t) => t === e || wS(t) && kS(e, t), a = (e) => e === t || t != null && wS(e) && kS(t, e);
+ HS = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, xS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, SS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, xS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), US = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), HS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function WS(e) {
+function US(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function GS(e) {
+function WS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function KS(e) {
+function GS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var qS = KS(function() {
- return GS(/^Mac/i);
-}), wae = KS(function() {
- return GS(/^iPhone/i);
-}), JS = KS(function() {
- return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;
-}), YS = KS(function() {
- return wae() || JS();
-}), Tae = KS(function() {
- return qS() || YS();
-}), XS = KS(function() {
- return WS(/AppleWebKit/i) && (YS() || !ZS());
-}), ZS = KS(function() {
- return WS(/Chrome|CriOS|CrMo/i);
-}), QS = KS(function() {
- return WS(/Android/i);
+var KS = GS(function() {
+ return WS(/^Mac/i);
+}), Tae = GS(function() {
+ return WS(/^iPhone/i);
+}), qS = GS(function() {
+ return WS(/^iPad/i) || KS() && navigator.maxTouchPoints > 1;
+}), JS = GS(function() {
+ return Tae() || qS();
+}), Eae = GS(function() {
+ return KS() || JS();
+}), YS = GS(function() {
+ return US(/AppleWebKit/i) && (JS() || !XS());
+}), XS = GS(function() {
+ return US(/Chrome|CriOS|CrMo/i);
+}), ZS = GS(function() {
+ return US(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function $S(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : QS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function QS(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : ZS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Eae(e) {
- return !QS() && e.width === 0 && e.height === 0 || QS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Dae(e) {
+ return !ZS() && e.width === 0 && e.height === 0 || ZS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var Dae = /*#__PURE__*/ (0, F.createContext)({
+var Oae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: Aae,
+ open: jae,
useHref: (e) => e
});
-function eC() {
- return (0, F.useContext)(Dae);
+function $S() {
+ return (0, F.useContext)(Oae);
}
-function Oae(e, t) {
+function kae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function tC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = XS() && qS() && !JS() ? new KeyboardEvent("keydown", {
+function eC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = YS() && KS() && !qS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22674,21 +22674,21 @@ function tC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;
+ eC.isOpening = n, xS(e), e.dispatchEvent(s), eC.isOpening = !1;
}
-tC.isOpening = !1;
-function kae(e, t) {
+eC.isOpening = !1;
+function Aae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Aae(e, t) {
- kae(e, (e) => tC(e, t));
+function jae(e, t) {
+ Aae(e, (e) => eC(e, t));
}
-function nC(e) {
- let t = eC().useHref(e.href ?? "");
+function tC(e) {
+ let t = $S().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22698,8 +22698,8 @@ function nC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function rC(e) {
- let t = eC().useHref(e?.href ?? ""), n = {};
+function nC(e) {
+ let t = $S().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22710,138 +22710,138 @@ function rC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function jae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Oae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Mae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && kae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var iC = {
+var rC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, aC = /*#__PURE__*/ F.createContext(iC), Mae = /*#__PURE__*/ F.createContext(!1);
+}, iC = /*#__PURE__*/ F.createContext(rC), Nae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var oC = /* @__PURE__ */ new WeakMap();
-function Nae(e = !1) {
- let t = (0, F.useContext)(aC), n = (0, F.useRef)(null);
+var aC = /* @__PURE__ */ new WeakMap();
+function Pae(e = !1) {
+ let t = (0, F.useContext)(iC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = oC.get(e);
- n == null ? oC.set(e, {
+ let n = aC.get(e);
+ n == null ? aC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, aC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Pae(e) {
- let t = (0, F.useContext)(aC), n = Nae(!!e), r = `react-aria${t.prefix}`;
+function Fae(e) {
+ let t = (0, F.useContext)(iC), n = Pae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Fae(e) {
- let t = F.useId(), [n] = (0, F.useState)(sC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;
+function Iae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(oC()), r = n ? "react-aria" : `react-aria${rC.prefix}`;
return e || `${r}-${t}`;
}
-var Iae = typeof F.useId == "function" ? Fae : Pae;
-function Lae() {
+var Lae = typeof F.useId == "function" ? Iae : Fae;
+function Rae() {
return !1;
}
-function Rae() {
+function zae() {
return !0;
}
-function zae(e) {
+function Bae(e) {
return () => {};
}
-function sC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(zae, Lae, Rae) : (0, F.useContext)(Mae);
+function oC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Bae, Rae, zae) : (0, F.useContext)(Nae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var cC = null, lC = /* @__PURE__ */ new Set(), uC = /* @__PURE__ */ new Map(), dC = !1, fC = !1, Bae = {
+var sC = null, cC = /* @__PURE__ */ new Set(), lC = /* @__PURE__ */ new Map(), uC = !1, dC = !1, Vae = {
Tab: !0,
Escape: !0
};
-function pC(e, t) {
- for (let n of lC) n(e, t);
+function fC(e, t) {
+ for (let n of cC) n(e, t);
}
-function Vae(e) {
- return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Hae(e) {
+ return !(e.metaKey || !KS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+}
+function pC(e) {
+ uC = !0, !eC.isOpening && Hae(e) && (sC = "keyboard", fC("keyboard", e));
}
function mC(e) {
- dC = !0, !tC.isOpening && Vae(e) && (cC = "keyboard", pC("keyboard", e));
+ sC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (uC = !0, fC("pointer", e));
}
function hC(e) {
- cC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (dC = !0, pC("pointer", e));
+ !eC.isOpening && QS(e) && (uC = !0, sC = "virtual");
}
function gC(e) {
- !tC.isOpening && $S(e) && (dC = !0, cC = "virtual");
-}
-function _C(e) {
- if (US) return;
- let t = G(e), n = wS(t), r = CS(t);
- t === n ? fC = !0 : t !== r && e.isTrusted && (!dC && !fC && (cC = "virtual", pC("virtual", e)), dC = !1, fC = !1);
+ if (HS) return;
+ let t = G(e), n = CS(t), r = SS(t);
+ t === n ? dC = !0 : t !== r && e.isTrusted && (!uC && !dC && (sC = "virtual", fC("virtual", e)), uC = !1, dC = !1);
}
-function vC() {
- US || (dC = !1, fC = !0);
+function _C() {
+ HS || (uC = !1, dC = !0);
}
-function yC(e) {
- let t = jS(CS(G(e)));
+function vC(e) {
+ let t = AS(SS(G(e)));
queueMicrotask(() => {
- jS(CS(G(e))) !== t && wC("keyboard");
+ AS(SS(G(e))) !== t && CC("keyboard");
});
}
-function bC(e) {
+function yC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = wS(e), n = CS(e);
- if (uC.get(t)) return;
+ let t = CS(e), n = SS(e);
+ if (lC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- dC = !0, r.apply(this, arguments);
+ uC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", mC, !0), n.addEventListener("keyup", mC, !0), n.addEventListener("click", gC, !0), n.addEventListener("invalid", yC, !0), t.addEventListener("focus", _C, !0), t.addEventListener("blur", vC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", hC, !0), n.addEventListener("pointermove", hC, !0), n.addEventListener("pointerup", hC, !0)), t.addEventListener("beforeunload", () => {
- xC(e);
- }, { once: !0 }), uC.set(t, { focus: r });
+ }), n.addEventListener("keydown", pC, !0), n.addEventListener("keyup", pC, !0), n.addEventListener("click", hC, !0), n.addEventListener("invalid", vC, !0), t.addEventListener("focus", gC, !0), t.addEventListener("blur", _C, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", mC, !0), n.addEventListener("pointermove", mC, !0), n.addEventListener("pointerup", mC, !0)), t.addEventListener("beforeunload", () => {
+ bC(e);
+ }, { once: !0 }), lC.set(t, { focus: r });
}
-var xC = (e, t) => {
- let n = wS(e), r = CS(e);
- t && r.removeEventListener("DOMContentLoaded", t), uC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var bC = (e, t) => {
+ let n = CS(e), r = SS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), lC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: uC.get(n).focus
- }), r.removeEventListener("keydown", mC, !0), r.removeEventListener("keyup", mC, !0), r.removeEventListener("click", gC, !0), r.removeEventListener("invalid", yC, !0), n.removeEventListener("focus", _C, !0), n.removeEventListener("blur", vC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", hC, !0), r.removeEventListener("pointermove", hC, !0), r.removeEventListener("pointerup", hC, !0)), uC.delete(n));
+ value: lC.get(n).focus
+ }), r.removeEventListener("keydown", pC, !0), r.removeEventListener("keyup", pC, !0), r.removeEventListener("click", hC, !0), r.removeEventListener("invalid", vC, !0), n.removeEventListener("focus", gC, !0), n.removeEventListener("blur", _C, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", mC, !0), r.removeEventListener("pointermove", mC, !0), r.removeEventListener("pointerup", mC, !0)), lC.delete(n));
};
-function Hae(e) {
- let t = CS(e), n;
+function Uae(e) {
+ let t = SS(e), n;
return t.readyState === "loading" ? (n = () => {
- bC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : bC(e), () => xC(e, n);
+ yC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : yC(e), () => bC(e, n);
}
-typeof document < "u" && Hae();
-function SC() {
- return cC !== "pointer";
+typeof document < "u" && Uae();
+function xC() {
+ return sC !== "pointer";
}
-function CC() {
- return cC;
+function SC() {
+ return sC;
}
-function wC(e) {
- cC = e, pC(e, null);
+function CC(e) {
+ sC = e, fC(e, null);
}
-function TC() {
- bC();
- let [e, t] = (0, F.useState)(cC);
+function wC() {
+ yC();
+ let [e, t] = (0, F.useState)(sC);
return (0, F.useEffect)(() => {
let e = () => {
- t(cC);
+ t(sC);
};
- return lC.add(e), () => {
- lC.delete(e);
+ return cC.add(e), () => {
+ cC.delete(e);
};
- }, []), sC() ? null : e;
+ }, []), oC() ? null : e;
}
-var Uae = /* @__PURE__ */ new Set([
+var Wae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22852,107 +22852,107 @@ var Uae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Wae(e, t, n) {
- let r = n ? G(n) : void 0, i = CS(r), a = wS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = jS(i);
- return e = e || u instanceof o && !Uae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Bae[n.key]);
+function Gae(e, t, n) {
+ let r = n ? G(n) : void 0, i = SS(r), a = CS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = AS(i);
+ return e = e || u instanceof o && !Wae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Vae[n.key]);
}
-function EC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || SC());
- return DC((e) => {
+function TC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || xC());
+ return EC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function DC(e, t, n) {
- bC(), (0, F.useEffect)(() => {
+function EC(e, t, n) {
+ yC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Wae(!!n?.isTextInput, t, r) && e(SC());
+ Gae(!!n?.isTextInput, t, r) && e(xC());
};
- return lC.add(t), () => {
- lC.delete(t);
+ return cC.add(t), () => {
+ cC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var OC = /* @__PURE__ */ new Map(), kC = /* @__PURE__ */ new Set();
-function AC(e) {
+var DC = /* @__PURE__ */ new Map(), OC = /* @__PURE__ */ new Set();
+function kC(e) {
return "propertyName" in e;
}
-function Gae(e) {
+function Kae(e) {
let t = G(e);
- if (!AC(e) || !t) return;
- let n = OC.get(t);
- n || (n = /* @__PURE__ */ new Set(), OC.set(t, n), t.addEventListener("transitioncancel", jC, { once: !0 })), n.add(e.propertyName);
+ if (!kC(e) || !t) return;
+ let n = DC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), DC.set(t, n), t.addEventListener("transitioncancel", AC, { once: !0 })), n.add(e.propertyName);
}
-function jC(e) {
+function AC(e) {
let t = G(e);
- if (!AC(e) || !t) return;
- let n = OC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", jC), OC.delete(t)), OC.size === 0)) for (let e of kC) e(!0), kC.delete(e);
+ if (!kC(e) || !t) return;
+ let n = DC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", AC), DC.delete(t)), DC.size === 0)) for (let e of OC) e(!0), OC.delete(e);
}
-function MC() {
- DS(document, "transitionrun", Gae), DS(document, "transitionend", jC);
+function jC() {
+ ES(document, "transitionrun", Kae), ES(document, "transitionend", AC);
}
-function Kae() {
- for (let [e] of OC) "isConnected" in e && !e.isConnected && OC.delete(e);
+function qae() {
+ for (let [e] of DC) "isConnected" in e && !e.isConnected && DC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", MC) : MC());
-function NC(e) {
+typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", jC) : jC());
+function MC(e) {
let t = window.requestAnimationFrame(() => {
- if (Kae(), OC.size === 0) return e(!1);
- kC.add(e);
+ if (qae(), DC.size === 0) return e(!1);
+ OC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), kC.delete(e);
+ window.cancelAnimationFrame(t), OC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function PC(e) {
+function NC(e) {
if (!e.isConnected) return;
- let t = CS(e);
- if (CC() === "virtual") {
- let n = jS(t);
- NC(() => {
- let r = jS(t);
- (r === n || r === t.body) && e.isConnected && SS(e);
+ let t = SS(e);
+ if (SC() === "virtual") {
+ let n = AS(t);
+ MC(() => {
+ let r = AS(t);
+ (r === n || r === t.body) && e.isConnected && xS(e);
});
- } else SS(e);
+ } else xS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function FC(...e) {
+function PC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function qae(e) {
+function Jae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return zS(() => {
+ return RS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Jae = !!(typeof window < "u" && window.document && window.document.createElement), IC = /* @__PURE__ */ new Map(), LC;
-typeof FinalizationRegistry < "u" && (LC = new FinalizationRegistry((e) => {
- IC.delete(e);
+var Yae = !!(typeof window < "u" && window.document && window.document.createElement), FC = /* @__PURE__ */ new Map(), IC;
+typeof FinalizationRegistry < "u" && (IC = new FinalizationRegistry((e) => {
+ FC.delete(e);
}));
-var RC = /* @__PURE__ */ new WeakMap();
-function zC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Iae(t), a = (0, F.useRef)(null), o = RC.get(a);
- if (LC && o !== i && (o != null && LC.unregister(a), LC.register(a, i, a), RC.set(a, i)), Jae) {
- let e = IC.get(i);
- e && !e.includes(r) ? e.push(r) : IC.set(i, [r]);
- }
- return zS(() => {
+var LC = /* @__PURE__ */ new WeakMap();
+function RC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Lae(t), a = (0, F.useRef)(null), o = LC.get(a);
+ if (IC && o !== i && (o != null && IC.unregister(a), IC.register(a, i, a), LC.set(a, i)), Yae) {
+ let e = FC.get(i);
+ e && !e.includes(r) ? e.push(r) : FC.set(i, [r]);
+ }
+ return RS(() => {
let e = i;
return () => {
- LC && (LC.unregister(a), RC.delete(a)), IC.delete(e);
+ IC && (IC.unregister(a), LC.delete(a)), FC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22961,57 +22961,57 @@ function zC(e) {
};
}), i;
}
-function Yae(e, t) {
+function Xae(e, t) {
if (e === t) return e;
- let n = IC.get(e);
+ let n = FC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = IC.get(t);
+ let r = FC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function BC(e = []) {
- let t = zC(), [n, r] = qae(t), i = (0, F.useCallback)(() => {
+function zC(e = []) {
+ let t = RC(), [n, r] = Jae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return zS(i, [
+ return RS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function VC(...e) {
+function BC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = HC(e, t);
+ let r = VC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : HC(e[n], null);
+ typeof t == "function" ? t() : VC(e[n], null);
});
};
};
}
-function HC(e, t) {
+function VC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function UC(e) {
+function HC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = UC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = HC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function WC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = UC(e)) && (r && (r += " "), r += t);
+function UC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = HC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -23021,17 +23021,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = FC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = WC(n, i) : e === "id" && n && i ? t.id = Yae(n, i) : e === "ref" && n && i ? t.ref = VC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = PC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = UC(n, i) : e === "id" && n && i ? t.id = Xae(n, i) : e === "ref" && n && i ? t.ref = BC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function GC(e) {
+function WC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = HS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = CS(t), a = r ? jS(r) : jS();
+ }, [r, i]), o = VS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = SS(t), a = r ? AS(r) : AS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23044,7 +23044,7 @@ function GC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function KC(e) {
+function GC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23068,33 +23068,33 @@ function KC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Xae = /* @__PURE__ */ new Set([
+var Zae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Zae = [
+]), Qae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Qae(e) {
+function $ae(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(qS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(KS() ? "Meta" : "Control"), t;
}
-function $ae(e) {
+function eoe(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function qC(e) {
- return Zae.filter((t) => e.has(t));
+function KC(e) {
+ return Qae.filter((t) => e.has(t));
}
-function eoe(e) {
+function toe(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Xae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Zae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23106,10 +23106,10 @@ function eoe(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function JC(e) {
+function qC(e) {
return e.toLowerCase();
}
-var toe = {
+var noe = {
space: " ",
esc: "escape",
del: "delete",
@@ -23121,26 +23121,26 @@ var toe = {
pageup: "pageup",
pagedown: "pagedown"
};
-function noe(e) {
- let t = JC(e);
- return toe[t] ?? t;
-}
function roe(e) {
- let t = qC(Qae(e)), n = noe(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = qC(e);
+ return noe[t] ?? t;
}
function ioe(e) {
- let t = qC($ae(e)), n = JC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = KC($ae(e)), n = roe(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function aoe(e) {
+ let t = KC(eoe(e)), n = qC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function ooe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = eoe(n);
- t.set(roe(e), r);
+ let e = toe(n);
+ t.set(ioe(e), r);
}
return (e) => {
- let n = ioe(e), r = t.get(n), i = r?.(e);
+ let n = aoe(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23151,23 +23151,23 @@ function aoe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function YC(e) {
+function JC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = aoe(t), s = KC((e) => {
- AS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = KC((e) => {
- AS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = ooe(t), s = GC((e) => {
+ kS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = GC((e) => {
+ kS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? FC(e.onKeyDown, s) : s, a = e.onKeyUp ? FC(e.onKeyUp, c) : c;
- } else i = KC(e.onKeyDown), a = KC(e.onKeyUp);
+ i = e.onKeyDown ? PC(e.onKeyDown, s) : s, a = e.onKeyUp ? PC(e.onKeyUp, c) : c;
+ } else i = GC(e.onKeyDown), a = GC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function XC(e) {
+function YC(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23189,25 +23189,25 @@ function XC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function ZC(e, t) {
- zS(() => {
+function XC(e, t) {
+ RS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var QC = /*#__PURE__*/ F.createContext(null);
-function ooe(e) {
- let t = (0, F.useContext)(QC) || {};
- ZC(t, e);
+var ZC = /*#__PURE__*/ F.createContext(null);
+function soe(e) {
+ let t = (0, F.useContext)(ZC) || {};
+ XC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function $C(e, t) {
- let { focusProps: n } = GC(e), { keyboardProps: r } = YC(e), i = K(n, r), a = ooe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function QC(e, t) {
+ let { focusProps: n } = WC(e), { keyboardProps: r } = JC(e), i = K(n, r), a = soe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && PC(t.current), s.current = !1;
+ s.current && t.current && NC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23241,21 +23241,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var ew = /*#__PURE__*/ (0, F.createContext)(!1);
-function soe(e) {
- if ((0, F.useContext)(ew)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(ew.Provider, { value: !0 }, e.children);
+var $C = /*#__PURE__*/ (0, F.createContext)(!1);
+function coe(e) {
+ if ((0, F.useContext)($C)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement($C.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function tw(e) {
- let t = (t, n) => (0, F.useContext)(ew) ? null : e(t, n);
+function ew(e) {
+ let t = (t, n) => (0, F.useContext)($C) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function nw() {
- return (0, F.useContext)(ew);
+function tw() {
+ return (0, F.useContext)($C);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var coe = /* @__PURE__ */ o(((e) => {
+var loe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23293,47 +23293,47 @@ var coe = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), rw = /* @__PURE__ */ o(((e, t) => {
- t.exports = coe();
-})), loe = rw(), iw = /*#__PURE__*/ (0, F.createContext)(!1), aw = /*#__PURE__*/ (0, F.createContext)(null);
-function ow(e) {
- if ((0, F.useContext)(aw)) return e.content;
- let { collection: t, document: n } = poe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(soe, null, /*#__PURE__*/ F.createElement(aw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(uoe, {
+})), nw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = loe();
+})), uoe = nw(), rw = /*#__PURE__*/ (0, F.createContext)(!1), iw = /*#__PURE__*/ (0, F.createContext)(null);
+function aw(e) {
+ if ((0, F.useContext)(iw)) return e.content;
+ let { collection: t, document: n } = moe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(coe, null, /*#__PURE__*/ F.createElement(iw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(doe, {
render: e.children,
collection: t
}));
}
-function uoe({ collection: e, render: t }) {
+function doe({ collection: e, render: t }) {
return t(e);
}
-function doe(e, t, n) {
- let r = sC(), i = (0, F.useRef)(r);
+function foe(e, t, n) {
+ let r = oC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, loe.useSyncExternalStore)(e, a);
+ return (0, uoe.useSyncExternalStore)(e, a);
}
-var foe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : doe;
-function poe(e) {
- let [t] = (0, F.useState)(() => new pae(e?.() || new _S()));
+var poe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : foe;
+function moe(e) {
+ let [t] = (0, F.useState)(() => new mae(e?.() || new gS()));
return {
- collection: foe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: poe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var sw = /*#__PURE__*/ (0, F.createContext)(null);
-function moe(e) {
- return class extends pS {
+var ow = /*#__PURE__*/ (0, F.createContext)(null);
+function hoe(e) {
+ return class extends fS {
static {
this.type = e;
}
};
}
-function cw(e, t, n, r, i, a) {
- typeof e == "string" && (e = moe(e));
+function sw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = hoe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23342,82 +23342,82 @@ function cw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(sw);
+ ]), s = (0, F.useContext)(ow);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(sw.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(ow.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function lw(e, t) {
+function cw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(QC);
- if (!(0, F.useContext)(iw)) {
+ let a = (0, F.useContext)(ZC);
+ if (!(0, F.useContext)(rw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return cw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(QC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return sw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ZC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function uw(e, t, n = dw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => cw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function lw(e, t, n = uw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => sw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function dw(e) {
- return xS({
+function uw(e) {
+ return bS({
...e,
addIdAndValue: !0
});
}
-var fw = /*#__PURE__*/ (0, F.createContext)(null);
-function pw(e) {
- let t = (0, F.useContext)(fw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = dw({
+var dw = /*#__PURE__*/ (0, F.createContext)(null);
+function fw(e) {
+ let t = (0, F.useContext)(dw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = uw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(aw) && (i = /*#__PURE__*/ F.createElement(hoe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(iw) && (i = /*#__PURE__*/ F.createElement(goe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, i);
}
-function hoe({ children: e }) {
- let t = (0, F.useContext)(aw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(aw.Provider, { value: null }, /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e)), [e]);
- return sC() ? /*#__PURE__*/ F.createElement(sw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function goe({ children: e }) {
+ let t = (0, F.useContext)(iw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(iw.Provider, { value: null }, /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e)), [e]);
+ return oC() ? /*#__PURE__*/ F.createElement(ow.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var goe = "react-aria-clear-focus", _oe = "react-aria-focus";
+var _oe = "react-aria-clear-focus", voe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function mw(e) {
- let t = yoe(CS(e));
- t !== e && (t && voe(t, e), e && hw(e, t));
+function pw(e) {
+ let t = boe(SS(e));
+ t !== e && (t && yoe(t, e), e && mw(e, t));
}
-function voe(e, t) {
+function yoe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function hw(e, t) {
+function mw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function yoe(e) {
- let t = jS(e), n = t?.getAttribute("aria-activedescendant");
+function boe(e) {
+ let t = AS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function gw(e, t) {
- let n = wS(t), r = CS(t);
+function hw(e, t) {
+ let n = CS(t), r = SS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var _w = 100, vw = 600, yw = {
+var gw = 100, _w = 600, vw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23427,7 +23427,7 @@ var _w = 100, vw = 600, yw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, boe = /* @__PURE__ */ new Set([
+}, xoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23438,7 +23438,7 @@ var _w = 100, vw = 600, yw = {
"submit",
"reset"
]);
-function bw() {
+function yw() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23446,58 +23446,58 @@ function bw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function xoe(e) {
- yw.resizeTimeStamp <= e.timeStamp + 50 && (yw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(yw.resizeTimeout), yw.resizeTimeout = window.setTimeout(xw, 150));
+function Soe(e) {
+ vw.resizeTimeStamp <= e.timeStamp + 50 && (vw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(vw.resizeTimeout), vw.resizeTimeout = window.setTimeout(bw, 150));
}
-function xw() {
- let e = gw("viewport");
- if (QS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = bw(), r = t - yw.startTimeStamp, i = yw.screenHeight - n.height, a = yw.screenAngle - n.angle;
- Math.abs(a) % 180 && yw.screenWidth - n.height < _w && (yw.screenWidth = n.width, yw.screenHeight = n.height, yw.screenAngle = n.angle, i = 0), r > vw && (window.clearTimeout(yw.screenTimeout), yw.screenTimeout = window.setTimeout(() => {
- let e = ww(document.hasFocus() ? jS() : null), t = bw();
- Math.abs(yw.screenAngle - t.angle) % 180 || yw.isOpen && e || (yw.screenWidth = t.width, yw.screenHeight = t.height, yw.screenAngle = t.angle, yw.isOpen = !1);
- }, vw)), r <= vw && i >= _w && (yw.endTimeStamp = t), yw.isOpen = i >= _w;
-}
-function Soe() {
- let e = bw(), t = yw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !yw.isOpen) {
- let e = yw.screenWidth;
- yw.screenWidth = yw.screenHeight, yw.screenHeight = e;
- }
- yw.isOpen || (yw.screenAngle = e.angle);
-}
-function Coe(e) {
- let t = ww(G(e)), n = performance.now(), r = bw(), i = yw.screenHeight - r.height;
- i < _w && t && (yw.screenWidth = r.width, yw.screenHeight = r.height, yw.screenAngle = r.angle, yw.startTimeStamp = n), t && window.clearTimeout(yw.screenTimeout), i >= _w && t && (yw.endTimeStamp = n);
+function bw() {
+ let e = hw("viewport");
+ if (ZS() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = yw(), r = t - vw.startTimeStamp, i = vw.screenHeight - n.height, a = vw.screenAngle - n.angle;
+ Math.abs(a) % 180 && vw.screenWidth - n.height < gw && (vw.screenWidth = n.width, vw.screenHeight = n.height, vw.screenAngle = n.angle, i = 0), r > _w && (window.clearTimeout(vw.screenTimeout), vw.screenTimeout = window.setTimeout(() => {
+ let e = Cw(document.hasFocus() ? AS() : null), t = yw();
+ Math.abs(vw.screenAngle - t.angle) % 180 || vw.isOpen && e || (vw.screenWidth = t.width, vw.screenHeight = t.height, vw.screenAngle = t.angle, vw.isOpen = !1);
+ }, _w)), r <= _w && i >= gw && (vw.endTimeStamp = t), vw.isOpen = i >= gw;
+}
+function Coe() {
+ let e = yw(), t = vw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !vw.isOpen) {
+ let e = vw.screenWidth;
+ vw.screenWidth = vw.screenHeight, vw.screenHeight = e;
+ }
+ vw.isOpen || (vw.screenAngle = e.angle);
+}
+function woe(e) {
+ let t = Cw(G(e)), n = performance.now(), r = yw(), i = vw.screenHeight - r.height;
+ i < gw && t && (vw.screenWidth = r.width, vw.screenHeight = r.height, vw.screenAngle = r.angle, vw.startTimeStamp = n), t && window.clearTimeout(vw.screenTimeout), i >= gw && t && (vw.endTimeStamp = n);
}
-function Sw() {
- let e = bw();
- DS(window.visualViewport, "resize", XS() ? xw : xoe), DS(window.screen.orientation, "change", Soe), DS(window, "focus", Coe, {
+function xw() {
+ let e = yw();
+ ES(window.visualViewport, "resize", YS() ? bw : Soe), ES(window.screen.orientation, "change", Coe), ES(window, "focus", woe, {
capture: !0,
passive: !0
- }), yw.screenWidth = e.width, yw.screenHeight = e.height, yw.screenAngle = e.angle;
+ }), vw.screenWidth = e.width, vw.screenHeight = e.height, vw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", Sw) : Sw());
-function Cw() {
- let e = gw("viewport");
- return QS() && e?.includes("overlays-content") ? !1 : yw.isOpen ? !0 : yw.startTimeStamp ? yw.endTimeStamp >= yw.startTimeStamp ? !0 : performance.now() - yw.startTimeStamp <= vw ? yw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? ES(document, "DOMContentLoaded", xw) : xw());
+function Sw() {
+ let e = hw("viewport");
+ return ZS() && e?.includes("overlays-content") ? !1 : vw.isOpen ? !0 : vw.startTimeStamp ? vw.endTimeStamp >= vw.startTimeStamp ? !0 : performance.now() - vw.startTimeStamp <= _w ? vw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function ww(e) {
- if (!(e instanceof Element) || !IS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !boe.has(e.type);
+function Cw(e) {
+ if (!(e instanceof Element) || !FS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !xoe.has(e.type);
return t || n || r;
}
-function Tw(e) {
- return qS() ? e.metaKey : e.ctrlKey;
+function ww(e) {
+ return KS() ? e.metaKey : e.ctrlKey;
}
-function Ew() {
- return yw.isOpen;
+function Tw() {
+ return vw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var woe = F.useInsertionEffect ?? zS;
-function Dw(e) {
+var Toe = F.useInsertionEffect ?? RS;
+function Ew(e) {
let t = (0, F.useRef)(null);
- return woe(() => {
+ return Toe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23505,10 +23505,10 @@ function Dw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ow(e, t, n, r) {
- let i = Dw(n), a = n == null;
+function Dw(e, t, n, r) {
+ let i = Ew(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return DS(e.current, t, i, r);
+ if (!(a || e.current == null)) return ES(e.current, t, i, r);
}, [
e,
t,
@@ -23517,16 +23517,16 @@ function Ow(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function kw(e, t) {
+function Ow(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = zC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = RC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var Toe = /* @__PURE__ */ new Set([
+var Eoe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23537,7 +23537,7 @@ var Toe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Eoe = /* @__PURE__ */ new Set([
+]), Doe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23558,19 +23558,19 @@ var Toe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Doe(e) {
+function Ooe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Toe.has(t.script);
+ if (t.script) return Eoe.has(t.script);
}
let t = e.split("-")[0];
- return Eoe.has(t);
+ return Doe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Aw = Symbol.for("react-aria.i18n.locale");
-function jw() {
- let e = typeof window < "u" && window[Aw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var kw = Symbol.for("react-aria.i18n.locale");
+function Aw() {
+ let e = typeof window < "u" && window[kw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23578,31 +23578,31 @@ function jw() {
}
return {
locale: e,
- direction: Doe(e) ? "rtl" : "ltr"
+ direction: Ooe(e) ? "rtl" : "ltr"
};
}
-var Mw = jw(), Nw = /* @__PURE__ */ new Set();
-function Pw() {
- Mw = jw();
- for (let e of Nw) e(Mw);
+var jw = Aw(), Mw = /* @__PURE__ */ new Set();
+function Nw() {
+ jw = Aw();
+ for (let e of Mw) e(jw);
}
-function Ooe() {
- let e = sC(), [t, n] = (0, F.useState)(Mw);
- return (0, F.useEffect)(() => (Nw.size === 0 && window.addEventListener("languagechange", Pw), Nw.add(n), () => {
- Nw.delete(n), Nw.size === 0 && window.removeEventListener("languagechange", Pw);
+function koe() {
+ let e = oC(), [t, n] = (0, F.useState)(jw);
+ return (0, F.useEffect)(() => (Mw.size === 0 && window.addEventListener("languagechange", Nw), Mw.add(n), () => {
+ Mw.delete(n), Mw.size === 0 && window.removeEventListener("languagechange", Nw);
}), []), e ? {
- locale: typeof window < "u" && window[Aw] || "en-US",
+ locale: typeof window < "u" && window[kw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var koe = /*#__PURE__*/ F.createContext(null);
-function Fw() {
- let e = Ooe();
- return (0, F.useContext)(koe) || e;
+var Aoe = /*#__PURE__*/ F.createContext(null);
+function Pw() {
+ let e = koe();
+ return (0, F.useContext)(Aoe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Aoe = Symbol.for("react-aria.i18n.locale"), joe = Symbol.for("react-aria.i18n.strings"), Iw = void 0, Lw = class e {
+var joe = Symbol.for("react-aria.i18n.locale"), Moe = Symbol.for("react-aria.i18n.strings"), Fw = void 0, Iw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23613,38 +23613,38 @@ var Aoe = Symbol.for("react-aria.i18n.locale"), joe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Moe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Noe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Aoe];
- if (Iw === void 0) {
- let t = window[joe];
+ let n = window[joe];
+ if (Fw === void 0) {
+ let t = window[Moe];
if (!t) return null;
- Iw = {};
- for (let r in t) Iw[r] = new e({ [n]: t[r] }, n);
+ Fw = {};
+ for (let r in t) Fw[r] = new e({ [n]: t[r] }, n);
}
- let r = Iw?.[t];
+ let r = Fw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Moe(e, t, n = "en-US") {
+function Noe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Noe(e), i = Poe(e);
+ let r = Poe(e), i = Foe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Noe(e) {
+function Poe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Poe(e) {
+function Foe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class {
+var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), Ioe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23655,36 +23655,36 @@ var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Rw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Rw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Lw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Lw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = zw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), zw.set(this.locale, t)), t.format(e);
+ let t = Rw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Rw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Bw = /* @__PURE__ */ new WeakMap();
-function Ioe(e) {
- let t = Bw.get(e);
- return t || (t = new Lw(e), Bw.set(e, t)), t;
+}, zw = /* @__PURE__ */ new WeakMap();
+function Loe(e) {
+ let t = zw.get(e);
+ return t || (t = new Iw(e), zw.set(e, t)), t;
}
-function Loe(e, t) {
- return t && Lw.getGlobalDictionaryForPackage(t) || Ioe(e);
+function Roe(e, t) {
+ return t && Iw.getGlobalDictionaryForPackage(t) || Loe(e);
}
-function Vw(e, t) {
- let { locale: n } = Fw(), r = Loe(e, t);
- return (0, F.useMemo)(() => new Foe(n, r), [n, r]);
+function Bw(e, t) {
+ let { locale: n } = Pw(), r = Roe(e, t);
+ return (0, F.useMemo)(() => new Ioe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
+var zoe = /* @__PURE__ */ new Set(["id"]), Boe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Boe = /* @__PURE__ */ new Set([
+]), Voe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23692,60 +23692,60 @@ var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Voe = /* @__PURE__ */ new Set([
+]), Hoe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Hw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Hoe = /^(data-.*)$/;
-function Uw(e, t = {}) {
+]), Vw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Uoe = /^(data-.*)$/;
+function Hw(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Roe.has(t) || n && zoe.has(t) || r && Boe.has(t) || i && Voe.has(t) || a && (Hw.has(t) || t.endsWith("Capture") && Hw.has(t.slice(0, -7))) || o?.has(t) || Hoe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (zoe.has(t) || n && Boe.has(t) || r && Voe.has(t) || i && Hoe.has(t) || a && (Vw.has(t) || t.endsWith("Capture") && Vw.has(t.slice(0, -7))) || o?.has(t) || Uoe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Ww = "default", Gw = "", Kw = /* @__PURE__ */ new WeakMap();
-function qw(e) {
- if (YS() && XS()) {
- if (Ww === "default") {
- let t = CS(e);
- Gw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Ww = "disabled";
+var Uw = "default", Ww = "", Gw = /* @__PURE__ */ new WeakMap();
+function Kw(e) {
+ if (JS() && YS()) {
+ if (Uw === "default") {
+ let t = SS(e);
+ Ww = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Uw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Kw.set(e, e.style[t]), e.style[t] = "none";
+ Gw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Jw(e) {
- if (YS() && XS()) {
- if (Ww !== "disabled") return;
- Ww = "restoring", setTimeout(() => {
- NC(() => {
- if (Ww === "restoring") {
- let t = CS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Gw || ""), Gw = "", Ww = "default";
+function qw(e) {
+ if (JS() && YS()) {
+ if (Uw !== "disabled") return;
+ Uw = "restoring", setTimeout(() => {
+ MC(() => {
+ if (Uw === "restoring") {
+ let t = SS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Ww || ""), Ww = "", Uw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Kw.has(e)) {
- let t = Kw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Kw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Gw.has(e)) {
+ let t = Gw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Gw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Yw = /* @__PURE__ */ new WeakMap();
-function Xw(e) {
- let t = CS(e), n = Yw.get(t);
- return n ??= gw("csp-nonce", t), n !== void 0 && Yw.set(t, n), n;
+var Jw = /* @__PURE__ */ new WeakMap();
+function Yw(e) {
+ let t = SS(e), n = Jw.get(t);
+ return n ??= hw("csp-nonce", t), n !== void 0 && Jw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var Zw = F.createContext({ register: () => {} });
-Zw.displayName = "PressResponderContext";
+var Xw = F.createContext({ register: () => {} });
+Xw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Qw() {
+function Zw() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23771,15 +23771,15 @@ function Qw() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Uoe(e) {
- let t = (0, F.useContext)(Zw);
+function Woe(e) {
+ let t = (0, F.useContext)(Xw);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return ZC(t, e.ref), e;
+ return XC(t, e.ref), e;
}
-var $w = class {
+var Qw = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23792,9 +23792,9 @@ var $w = class {
get shouldStopPropagation() {
return this.#e;
}
-}, eT = Symbol("linkClicked"), tT = "react-aria-pressable-style", nT = "data-react-aria-pressable";
-function rT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Uoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, $w = Symbol("linkClicked"), eT = "react-aria-pressable-style", tT = "data-react-aria-pressable";
+function nT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Woe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23804,12 +23804,12 @@ function rT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Qw(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Zw(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new $w("pressstart", t, e);
+ let n = new Qw("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23823,11 +23823,11 @@ function rT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new $w("pressend", r, e);
+ let t = new Qw("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new $w("press", r, e);
+ let n = new Qw("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23836,19 +23836,19 @@ function rT(e) {
i,
n,
t
- ]), x = Dw(b), S = Dw((0, F.useCallback)((e, t) => {
+ ]), x = Ew(b), S = Ew((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new $w("pressup", t, e);
+ let r = new Qw("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(oT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Jw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(aT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || qw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23856,7 +23856,7 @@ function rT(e) {
d,
v,
b
- ]), w = Dw(C);
+ ]), w = Ew(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23873,39 +23873,39 @@ function rT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- VS(n, t), o(BS(n));
+ BS(n, t), o(zS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (aT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, G(t))) {
- sT(G(t), t.key) && t.preventDefault();
+ if (iT(t.nativeEvent, t.currentTarget) && kS(t.currentTarget, G(t))) {
+ oT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(CS(t.currentTarget), "keyup", FC((t) => {
- aT(t, i) && !t.repeat && AS(i, G(t)) && e.target && S(oT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && qS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(SS(t.currentTarget), "keyup", PC((t) => {
+ iT(t, i) && !t.repeat && kS(i, G(t)) && e.target && S(aT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && KS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || AS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {
+ if ((!t || kS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !eC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || $S(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || QS(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(oT(t.currentTarget, t), r), a = x(oT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(aT(t.currentTarget, t), r), a = x(aT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && aT(t, e.target)) {
- sT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = AS(e.target, n);
- x(oT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && iT(e.target) && AS(e.target, n) && !t[eT] && (t[eT] = !0, tC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && iT(t, e.target)) {
+ oT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = kS(e.target, n);
+ x(aT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && rT(e.target) && kS(e.target, n) && !t[$w] && (t[$w] = !0, eC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23914,39 +23914,39 @@ function rT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !AS(t.currentTarget, G(t))) return;
- if (Eae(t.nativeEvent)) {
+ if (t.button !== 0 || !kS(t.currentTarget, G(t))) return;
+ if (Dae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || qw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Kw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(CS(t.currentTarget), "pointerup", n, !1), _(CS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(SS(t.currentTarget), "pointerup", n, !1), _(SS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (AS(t.currentTarget, G(t)) && t.button === 0) {
+ if (kS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = Cae(t.target);
+ let n = wae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- AS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ kS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(oT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(aT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(oT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(aT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (AS(e.target, G(t)) && e.pointerType != null) {
+ if (kS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (SS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (xS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23956,7 +23956,7 @@ function rT(e) {
w(e);
};
t.onDragStart = (e) => {
- AS(e.currentTarget, G(e)) && w(e);
+ kS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23973,14 +23973,14 @@ function rT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = CS(f.current);
- if (!e || !e.head || e.getElementById(tT)) return;
+ let e = SS(f.current);
+ if (!e || !e.head || e.getElementById(eT)) return;
let t = e.createElement("style");
- t.id = tT;
- let n = Xw(e);
+ t.id = eT;
+ let n = Yw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${nT}] {
+ [${tT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23988,23 +23988,23 @@ function rT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Jw(e.target ?? void 0);
+ d || qw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [nT]: !0 })
+ pressProps: K(p, O, { [tT]: !0 })
};
}
-function iT(e) {
+function rT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function aT(e, t) {
+function iT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wS(i).HTMLInputElement && !cT(i, n) || i instanceof wS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && iT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof CS(i).HTMLInputElement && !sT(i, n) || i instanceof CS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && rT(i)) && n !== "Enter");
}
-function oT(e, t) {
+function aT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24017,13 +24017,13 @@ function oT(e, t) {
key: t.key
};
}
-function Woe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !iT(e);
+function Goe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !rT(e);
}
-function sT(e, t) {
- return qS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !cT(e, t) : Woe(e);
+function oT(e, t) {
+ return KS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !sT(e, t) : Goe(e);
}
-var Goe = /* @__PURE__ */ new Set([
+var Koe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24034,11 +24034,11 @@ var Goe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function cT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Goe.has(e.type);
+function sT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Koe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Koe(e, t) {
+function qoe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24060,7 +24060,7 @@ function Koe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = rT({
+ let { pressProps: _, isPressed: v } = nT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24070,9 +24070,9 @@ function Koe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = $C(e, t);
+ }), { focusableProps: y } = QC(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Uw(e, { labelable: !0 }));
+ let b = K(y, _, Hw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24086,7 +24086,7 @@ function Koe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var qoe = class {
+var Joe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24111,7 +24111,7 @@ var qoe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!AS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!kS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24125,7 +24125,7 @@ var qoe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return AS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return kS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24189,44 +24189,44 @@ var qoe = class {
return null;
}
};
-function lT(e, t, n, r) {
- return kS() ? new qoe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function cT(e, t, n, r) {
+ return OS() ? new Joe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var uT = /*#__PURE__*/ F.createContext(null), dT = "react-aria-focus-scope-restore", fT = null;
-function pT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(uT) || {}, l = (0, F.useMemo)(() => new ET({ scopeRef: s }), [s]);
- zS(() => {
- let e = c || DT.root;
- if (DT.getTreeNode(e.scopeRef) && fT && !yT(fT, e.scopeRef)) {
- let t = DT.getTreeNode(fT);
+var lT = /*#__PURE__*/ F.createContext(null), uT = "react-aria-focus-scope-restore", dT = null;
+function fT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(lT) || {}, l = (0, F.useMemo)(() => new TT({ scopeRef: s }), [s]);
+ RS(() => {
+ let e = c || ET.root;
+ if (ET.getTreeNode(e.scopeRef) && dT && !vT(dT, e.scopeRef)) {
+ let t = ET.getTreeNode(dT);
t && (e = t);
}
- e.addChild(l), DT.addNode(l);
- }, [l, c]), zS(() => {
- let e = DT.getTreeNode(s);
+ e.addChild(l), ET.addNode(l);
+ }, [l, c]), RS(() => {
+ let e = ET.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), zS(() => {
+ }, [n]), RS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(dT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(uT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(dT, n);
+ for (let e of t) e.removeEventListener(uT, n);
};
- }, [t]), ese(s, r, n), Zoe(s, n), tse(s, r, n), $oe(s, i), (0, F.useEffect)(() => {
- let e = jS(CS(s.current ? s.current[0] : void 0)), t = null;
- if (_T(e, s.current)) {
- for (let n of DT.traverse()) n.scopeRef && _T(e, n.scopeRef.current) && (t = n);
- t === DT.getTreeNode(s) && (fT = t.scopeRef);
- }
- }, [s]), zS(() => () => {
- let e = DT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== fT && !yT(s, fT) || e && !DT.getTreeNode(e) || (fT = e), DT.removeTreeNode(s);
+ }, [t]), tse(s, r, n), Qoe(s, n), nse(s, r, n), ese(s, i), (0, F.useEffect)(() => {
+ let e = AS(SS(s.current ? s.current[0] : void 0)), t = null;
+ if (gT(e, s.current)) {
+ for (let n of ET.traverse()) n.scopeRef && gT(e, n.scopeRef.current) && (t = n);
+ t === ET.getTreeNode(s) && (dT = t.scopeRef);
+ }
+ }, [s]), RS(() => () => {
+ let e = ET.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== dT && !vT(s, dT) || e && !ET.getTreeNode(e) || (dT = e), ET.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Joe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Yoe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(uT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(lT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24236,154 +24236,154 @@ function pT(e) {
ref: o
}));
}
-function Joe(e) {
+function Yoe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = TT(mT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = wT(pT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = _T(s, n) ? s : c;
+ l.currentNode = gT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && bT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && yT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = TT(mT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || AS(SS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = wT(pT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = _T(s, n) ? s : c;
+ l.currentNode = gT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && bT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && yT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && bT(o, !0), o;
+ return o && yT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && bT(o, !0), o;
+ return o && yT(o, !0), o;
}
};
}
-function mT(e) {
+function pT(e) {
return e[0].parentElement;
}
-function hT(e) {
- let t = DT.getTreeNode(fT);
+function mT(e) {
+ let t = ET.getTreeNode(dT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Yoe(e) {
- if (!e.form) return Array.from(CS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = wS(e);
+function Xoe(e) {
+ if (!e.form) return Array.from(SS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = CS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Xoe(e) {
+function Zoe(e) {
if (e.checked) return !0;
- let t = Yoe(e);
+ let t = Xoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Zoe(e, t) {
+function Qoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- zS(() => {
+ RS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = CS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
- let n = jS(a), r = e.current;
- if (!r || !_T(n, r)) return;
- let i = TT(mT(r), { tabbable: !0 }, r);
+ let a = SS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
+ let n = AS(a), r = e.current;
+ if (!r || !gT(n, r)) return;
+ let i = wT(pT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (bT(o, !0), o instanceof wS(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (yT(o, !0), o instanceof CS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!fT || yT(fT, e)) && _T(G(t), e.current) ? (fT = e, n.current = G(t)) : hT(e) && !vT(G(t), e) ? n.current ? bT(n.current) : fT && fT.current && ST(fT.current) : hT(e) && (n.current = G(t));
+ (!dT || vT(dT, e)) && gT(G(t), e.current) ? (dT = e, n.current = G(t)) : mT(e) && !_T(G(t), e) ? n.current ? yT(n.current) : dT && dT.current && xT(dT.current) : mT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = CC(), i = (r === "virtual" || r === null) && QS() && ZS(), o = jS(a);
- if (!i && o && hT(e) && !vT(o, e)) {
- fT = e;
+ let r = SC(), i = (r === "virtual" || r === null) && ZS() && XS(), o = AS(a);
+ if (!i && o && mT(e) && !_T(o, e)) {
+ dT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, bT(n.current)) : fT.current && ST(fT.current);
+ r && r.isConnected ? (n.current = r, yT(n.current)) : dT.current && xT(dT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), zS(() => () => {
+ }, [e, t]), RS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function gT(e) {
- return vT(e);
+function hT(e) {
+ return _T(e);
}
-function _T(e, t) {
- return !e || !t ? !1 : t.some((t) => AS(t, e));
+function gT(e, t) {
+ return !e || !t ? !1 : t.some((t) => kS(t, e));
}
-function vT(e, t = null) {
+function _T(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of DT.traverse(DT.getTreeNode(t))) if (n && _T(e, n.current)) return !0;
+ for (let { scopeRef: n } of ET.traverse(ET.getTreeNode(t))) if (n && gT(e, n.current)) return !0;
return !1;
}
-function Qoe(e) {
- return vT(e, fT);
+function $oe(e) {
+ return _T(e, dT);
}
-function yT(e, t) {
- let n = DT.getTreeNode(t)?.parent;
+function vT(e, t) {
+ let n = ET.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function bT(e, t = !1) {
+function yT(e, t = !1) {
if (e != null && !t) try {
- PC(e);
+ NC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function xT(e, t = !0) {
- let n = e[0].previousElementSibling, r = mT(e), i = TT(r, { tabbable: t }, e);
+function bT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = pT(e), i = wT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = mT(e), i = TT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = pT(e), i = wT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function ST(e, t = !0) {
- bT(xT(e, t));
+function xT(e, t = !0) {
+ yT(bT(e, t));
}
-function $oe(e, t) {
+function ese(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (fT = e, !_T(jS(CS(e.current ? e.current[0] : void 0)), fT.current) && e.current && ST(e.current)), n.current = !1;
+ n.current && (dT = e, !gT(AS(SS(e.current ? e.current[0] : void 0)), dT.current) && e.current && xT(e.current)), n.current = !1;
}, [e]);
}
-function ese(e, t, n) {
- zS(() => {
+function tse(e, t, n) {
+ RS(() => {
if (t || n) return;
- let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = SS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- _T(n, e.current) ? fT = e : gT(n) || (fT = null);
+ gT(n, e.current) ? dT = e : hT(n) || (dT = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24394,43 +24394,43 @@ function ese(e, t, n) {
n
]);
}
-function CT(e) {
- let t = DT.getTreeNode(fT);
+function ST(e) {
+ let t = ET.getTreeNode(dT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function tse(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? jS(CS(e.current ? e.current[0] : void 0)) : null);
- zS(() => {
- let r = e.current, i = CS(r ? r[0] : void 0);
+function nse(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? AS(SS(e.current ? e.current[0] : void 0)) : null);
+ RS(() => {
+ let r = e.current, i = SS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!fT || yT(fT, e)) && _T(jS(i), e.current) && (fT = e);
+ (!dT || vT(dT, e)) && gT(AS(i), e.current) && (dT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), zS(() => {
- let r = CS(e.current ? e.current[0] : void 0);
+ }, [e, n]), RS(() => {
+ let r = SS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!vT(n, e) || !CT(e)) return;
- let i = DT.getTreeNode(e);
+ if (!_T(n, e) || !ST(e)) return;
+ let i = ET.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = TT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = wT(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !vT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !_T(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (vT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? bT(s, !0) : gT(a) ? bT(a, !0) : n.blur();
+ while (_T(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? yT(s, !0) : hT(a) ? yT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24440,31 +24440,31 @@ function tse(e, t, n) {
e,
t,
n
- ]), zS(() => {
- let n = CS(e.current ? e.current[0] : void 0);
+ ]), RS(() => {
+ let n = SS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = DT.getTreeNode(e);
+ let i = ET.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = DT.getTreeNode(e);
+ let r = ET.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = jS(n);
- if (t && i && (a && vT(a, e) || a === n.body && CT(e))) {
- let t = DT.clone();
+ let i = r.nodeToRestore, a = AS(n);
+ if (t && i && (a && _T(a, e) || a === n.body && ST(e))) {
+ let t = ET.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- wT(n.nodeToRestore);
+ CT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && DT.getTreeNode(n.scopeRef)) {
- let e = xT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && ET.getTreeNode(n.scopeRef)) {
+ let e = bT(n.scopeRef.current, !0);
if (e) {
- wT(e);
+ CT(e);
return;
}
}
@@ -24476,21 +24476,21 @@ function tse(e, t, n) {
};
}, [e, t]);
}
-function wT(e) {
- e.dispatchEvent(new CustomEvent(dT, {
+function CT(e) {
+ e.dispatchEvent(new CustomEvent(uT, {
bubbles: !0,
cancelable: !0
- })) && bT(e);
+ })) && yT(e);
}
-function TT(e, t, n) {
- let r = t?.tabbable ? LS : IS, i = CS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = lT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return AS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Xoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || _T(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function wT(e, t, n) {
+ let r = t?.tabbable ? IS : FS, i = SS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = cT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return kS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Zoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || gT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var nse = class e {
+var rse = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new ET({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new TT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24501,7 +24501,7 @@ var nse = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new ET({ scopeRef: e });
+ let i = new TT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24512,7 +24512,7 @@ var nse = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && _T(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && gT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24524,7 +24524,7 @@ var nse = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, ET = class {
+}, TT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24534,13 +24534,13 @@ var nse = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, DT = new nse(), OT = 7e3, kT = null;
-function AT(e, t = "assertive", n = OT) {
- kT ? kT.announce(e, t, n) : (kT = new rse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? kT.announce(e, t, n) : setTimeout(() => {
- kT?.isAttached() && kT?.announce(e, t, n);
+}, ET = new rse(), DT = 7e3, OT = null;
+function kT(e, t = "assertive", n = DT) {
+ OT ? OT.announce(e, t, n) : (OT = new ise(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? OT.announce(e, t, n) : setTimeout(() => {
+ OT?.isAttached() && OT?.announce(e, t, n);
}, 100));
}
-var rse = class {
+var ise = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24565,7 +24565,7 @@ var rse = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = OT) {
+ announce(e, t = "assertive", n = DT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24577,8 +24577,8 @@ var rse = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function jT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Dw(e);
+function AT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ew(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24587,30 +24587,30 @@ function jT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function MT(e, t) {
+function jT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function NT(e, t) {
+function MT(e, t) {
let n = e;
- for (MT(n, t) && (n = n.parentElement); n && !MT(n, t);) n = n.parentElement;
+ for (jT(n, t) && (n = n.parentElement); n && !jT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function PT(e, t) {
+function NT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (MT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (jT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function FT(e, t, n = {}) {
- e !== t && ise(e, t, t.getBoundingClientRect(), n);
+function PT(e, t, n = {}) {
+ e !== t && ase(e, t, t.getBoundingClientRect(), n);
}
-function ise(e, t, n, r = {}) {
+function ase(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- YS() && XS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ JS() && YS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24631,7 +24631,7 @@ function ise(e, t, n, r = {}) {
top: o
});
}
-function IT(e, t = {}) {
+function FT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24644,45 +24644,45 @@ function IT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = PT(e, !0);
- for (let t of i) FT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = NT(e, !0);
+ for (let t of i) PT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? PT(n, !0) : [];
- for (let e of i) FT(e, n, {
+ i = n ? NT(n, !0) : [];
+ for (let e of i) PT(e, n, {
block: "center",
inline: "center"
});
- for (let t of PT(e, !0)) FT(t, e);
+ for (let t of NT(e, !0)) PT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var ase = 0, LT = /* @__PURE__ */ new Map();
-function RT(e) {
+var ose = 0, IT = /* @__PURE__ */ new Map();
+function LT(e) {
let [t, n] = (0, F.useState)();
- return zS(() => {
+ return RS(() => {
if (!e) return;
- let t = LT.get(e);
+ let t = IT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${ase++}`;
+ let r = `react-aria-description-${ose++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, LT.set(e, t);
+ }, IT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), LT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), IT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function zT(e, t, n) {
- let r = Dw((e) => {
+function RT(e, t, n) {
+ let r = Ew((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24693,21 +24693,21 @@ function zT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function BT(e, t, n) {
+function zT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- zS(() => {
+ RS(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(sse(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(cse(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Dw(() => {
+ let a = (0, F.useRef)(!1), o = Ew(() => {
a.current || t.resetValidation();
- }), s = Dw((e) => {
+ }), s = Ew((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && cse(r) === n.current && (i ? i() : n.current?.focus(), wC("keyboard")), e.preventDefault();
- }), c = Dw(() => {
+ !e.defaultPrevented && n && r && lse(r) === n.current && (i ? i() : n.current?.focus(), CC("keyboard")), e.preventDefault();
+ }), c = Ew(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24721,7 +24721,7 @@ function BT(e, t, n) {
};
}, [n, r]);
}
-function ose(e) {
+function sse(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24737,14 +24737,14 @@ function ose(e) {
valid: t.valid
};
}
-function sse(e) {
+function cse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: ose(e),
+ validationDetails: sse(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function cse(e) {
+function lse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24752,23 +24752,23 @@ function cse(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function lse(e = !0) {
+function use(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return zS(() => {
+ return RS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function VT(e = !0) {
- let t = zC(), [n, r] = lse(e);
+function BT(e = !0) {
+ let t = RC(), [n, r] = use(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var HT = {
+var VT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24780,18 +24780,18 @@ var HT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, UT = {
- ...HT,
+}, HT = {
+ ...VT,
customError: !0,
valid: !1
-}, WT = {
+}, UT = {
isInvalid: !1,
- validationDetails: HT,
+ validationDetails: VT,
validationErrors: []
-}, use = (0, F.createContext)({}), GT = "__reactAriaFormValidationState";
-function KT(e) {
+}, dse = (0, F.createContext)({}), WT = "__reactAriaFormValidationState";
+function GT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[GT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[WT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24800,70 +24800,70 @@ function KT(e) {
commitValidation: a
};
}
- return dse(e);
+ return fse(e);
}
-function dse(e) {
+function fse(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: UT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : JT(fse(o, i)), [o, i]);
+ validationDetails: HT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : qT(pse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(use), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => qT(u[e])) : qT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(dse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => KT(u[e])) : KT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => JT(m ? [] : d), [m, d]), _ = (0, F.useRef)(WT), [v, y] = (0, F.useState)(WT), b = (0, F.useRef)(WT), x = () => {
+ let g = (0, F.useMemo)(() => qT(m ? [] : d), [m, d]), _ = (0, F.useRef)(UT), [v, y] = (0, F.useState)(UT), b = (0, F.useRef)(UT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- YT(e, b.current) || (b.current = e, y(e));
+ JT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || WT,
+ realtimeValidation: c || g || l || a || UT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !YT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !JT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = WT;
- YT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = UT;
+ JT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function qT(e) {
+function KT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function fse(e, t) {
+function pse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return qT(n);
+ if (n && typeof n != "boolean") return KT(n);
}
return [];
}
-function JT(e) {
+function qT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: UT
+ validationDetails: HT
} : null;
}
-function YT(e, t) {
+function JT(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function XT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = KT({
+function YT(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = GT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- BT(e, b, n);
+ zT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = rT({
+ }, { pressProps: T, isPressed: E } = nT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24871,7 +24871,7 @@ function XT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = rT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = nT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24888,13 +24888,13 @@ function XT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [GT]: i } = e, { commitValidation: a } = i || b;
+ let { [WT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = $C(e, n), j = K(T, A), M = Uw(e, { labelable: !0 });
- zT(n, t.defaultSelected, t.setSelected);
- let ee = VT(), N = VT();
+ }), { focusableProps: A } = QC(e, n), j = K(T, A), M = Hw(e, { labelable: !0 });
+ RT(n, t.defaultSelected, t.setSelected);
+ let ee = BT(), N = BT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24930,8 +24930,8 @@ function XT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function ZT(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = XT(e, t, n), { isIndeterminate: m } = e;
+function XT(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = YT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24949,17 +24949,17 @@ function ZT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var pse = /* @__PURE__ */ new WeakMap();
+var mse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function QT(e) {
+function ZT(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = zC(t);
- let o = zC(), s = {};
+ t = RC(t);
+ let o = RC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = kw({
+ let c = Ow({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24970,13 +24970,13 @@ function QT(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function $T(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = QT(e), s = BC([
+function QT(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ZT(e), s = zC([
!!t,
!!n,
r,
i
- ]), c = BC([
+ ]), c = zC([
!!t,
!!n,
r,
@@ -24994,26 +24994,26 @@ function $T(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function eE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Qw(), c = (0, F.useCallback)((e) => {
- AS(e.currentTarget, G(e)) && a.current.isFocusWithin && !AS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function $T(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Zw(), c = (0, F.useCallback)((e) => {
+ kS(e.currentTarget, G(e)) && a.current.isFocusWithin && !kS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = HS(c), u = (0, F.useCallback)((e) => {
- if (!AS(e.currentTarget, G(e))) return;
- let t = G(e), n = CS(t), s = jS(n);
+ ]), l = VS(c), u = (0, F.useCallback)((e) => {
+ if (!kS(e.currentTarget, G(e))) return;
+ let t = G(e), n = SS(t), s = AS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !AS(t, r)) {
+ if (a.current.isFocusWithin && !kS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- VS(e, t);
- let i = BS(e);
+ BS(e, t);
+ let i = zS(e);
c(i);
}
}, { capture: !0 });
@@ -25034,14 +25034,14 @@ function eE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var mse = F.useInsertionEffect ?? F.useLayoutEffect;
-function tE(e, t, n) {
+var hse = F.useInsertionEffect ?? F.useLayoutEffect;
+function eE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- mse(() => {
+ hse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25051,8 +25051,8 @@ function tE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function nE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = tE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function tE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = eE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25067,26 +25067,26 @@ function nE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function hse(e, t, n) {
- let r = nE({
+function gse(e, t, n) {
+ let r = tE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = pse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = mse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = KT({
+ let { realtimeValidation: l } = GT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(WT), d = () => {
+ }), u = (0, F.useRef)(UT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ZT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = XT({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25094,7 +25094,7 @@ function hse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [GT]: {
+ [WT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25117,10 +25117,10 @@ function hse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function rE(e, t = -Infinity, n = Infinity) {
+function nE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function iE(e, t) {
+function rE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25133,23 +25133,23 @@ function iE(e, t) {
}
return n;
}
-function aE(e, t, n, r) {
+function iE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = iE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(iE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(iE((n - t) / r, r)) * r), a = iE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = rE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(rE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(rE((n - t) / r, r)) * r), a = rE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var oE = /* @__PURE__ */ new Map(), sE = !1;
+var aE = /* @__PURE__ */ new Map(), oE = !1;
try {
- sE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ oE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var gse = class {
+var _se = class {
constructor(e, t = {}) {
- this.numberFormatter = _se(e, t), this.options = t;
+ this.numberFormatter = vse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !sE && this.options.signDisplay != null ? vse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !oE && this.options.signDisplay != null ? yse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25181,21 +25181,21 @@ var gse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !sE && this.options.signDisplay != null && (e = {
+ return !oE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function _se(e, t = {}) {
+function vse(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (oE.has(r)) return oE.get(r);
+ if (aE.has(r)) return aE.get(r);
let i = new Intl.NumberFormat(e, t);
- return oE.set(r, i), i;
+ return aE.set(r, i), i;
}
-function vse(e, t, n) {
+function yse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25208,12 +25208,12 @@ function vse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function cE(e) {
+function sE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = Qw(), s = Dw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = Zw(), s = Ew((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25235,8 +25235,8 @@ function cE(e) {
t,
n,
i
- ])), c = Dw((0, F.useCallback)((e, t) => {
- Jw(), i.current.didMove && r?.({
+ ])), c = Ew((0, F.useCallback)((e, t) => {
+ qw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25247,7 +25247,7 @@ function cE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- qw(), i.current.didMove = !1;
+ Kw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25262,7 +25262,7 @@ function cE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = wS(G(e));
+ let a = CS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25272,7 +25272,7 @@ function cE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = wS(G(e));
+ let o = CS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25305,7 +25305,7 @@ function cE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var lE = {
+var cE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25317,37 +25317,37 @@ var lE = {
width: "1px",
whiteSpace: "nowrap"
};
-function uE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = eE({
+function lE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = $T({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...lE,
+ ...cE,
...t
- } : lE, [r]);
+ } : cE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function dE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = uE(e);
+function uE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = lE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function yse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = tE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = $C(e, t), d = KT({
+function bse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = eE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = QC(e, t), d = GT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $T({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = QT({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Uw(e, { labelable: !0 }), b = {
+ }), y = Hw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return zT(t, e.defaultValue ?? x, l), BT(e, d, t), {
+ return RT(t, e.defaultValue ?? x, l), zT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25393,26 +25393,26 @@ function yse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function bse(e = {}) {
- let { locale: t } = Fw();
- return (0, F.useMemo)(() => new gse(t, e), [t, e]);
+function xse(e = {}) {
+ let { locale: t } = Pw();
+ return (0, F.useMemo)(() => new _se(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var fE = /* @__PURE__ */ new WeakMap();
-function pE(e, t) {
- let n = fE.get(e);
+var dE = /* @__PURE__ */ new WeakMap();
+function fE(e, t) {
+ let n = dE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function xse(e, t, n) {
- let { labelProps: r, fieldProps: i } = QT(e), a = e.orientation === "vertical";
- fE.set(t, {
+function Sse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = ZT(e), a = e.orientation === "vertical";
+ dE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Fw(), { addGlobalListener: s, removeGlobalListener: c } = Qw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = cE({
+ let { direction: o } = Pw(), { addGlobalListener: s, removeGlobalListener: c } = Zw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = sE({
onMoveStart() {
d.current = null;
},
@@ -25422,7 +25422,7 @@ function xse(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = rE(d.current / s, 0, 1);
+ let e = nE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25446,7 +25446,7 @@ function xse(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(pE(t, 0))?.focus(), wC("keyboard");
+ document.getElementById(fE(t, 0))?.focus(), CC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25469,26 +25469,26 @@ function xse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => pE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => fE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function Sse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Fw(), { addGlobalListener: m, removeGlobalListener: h } = Qw(), g = fE.get(t), { labelProps: _, fieldProps: v } = QT({
+function Cse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Pw(), { addGlobalListener: m, removeGlobalListener: h } = Zw(), g = dE.get(t), { labelProps: _, fieldProps: v } = ZT({
...e,
- id: pE(t, n),
+ id: fE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && SS(s.current);
+ s.current && xS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = YC({
+ }, { keyboardProps: T } = JC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25504,7 +25504,7 @@ function Sse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = cE({
+ }), { moveProps: E } = sE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25515,7 +25515,7 @@ function Sse(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, rE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, nE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25523,7 +25523,7 @@ function Sse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = $C(K(e, {
+ let { focusableProps: D } = QC(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25543,7 +25543,7 @@ function Sse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return zT(s, t.defaultValues[n], (e) => {
+ return RT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25583,42 +25583,42 @@ function Sse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Cse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function mE(e) {
+var wse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function pE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var hE = /* @__PURE__ */ new WeakMap(), gE = [];
-function _E(e, t) {
- let n = wS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Cse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var mE = /* @__PURE__ */ new WeakMap(), hE = [];
+function gE(e, t) {
+ let n = CS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && wse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (kS()) {
+ if (OS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; ES(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; TS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (kS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = lT(CS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = cT(SS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = hE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), hE.set(e, t + 1));
+ let t = mE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), mE.set(e, t + 1));
};
- gE.length && gE[gE.length - 1].disconnect(), d(i);
+ hE.length && hE[hE.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
- if (kS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (OS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25631,11 +25631,11 @@ function _E(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (kS()) for (let e of u) {
+ if (OS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
- if (kS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => kS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (OS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25661,56 +25661,56 @@ function _E(e, t) {
p.disconnect();
}
};
- return gE.push(h), () => {
- if (p.disconnect(), kS()) for (let e of m) e.disconnect();
+ return hE.push(h), () => {
+ if (p.disconnect(), OS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = hE.get(e);
- t != null && (t === 1 ? (l(e, !1), hE.delete(e)) : hE.set(e, t - 1));
+ let t = mE.get(e);
+ t != null && (t === 1 ? (l(e, !1), mE.delete(e)) : mE.set(e, t - 1));
}
- h === gE[gE.length - 1] ? (gE.pop(), gE.length && gE[gE.length - 1].observe()) : gE.splice(gE.indexOf(h), 1);
+ h === hE[hE.length - 1] ? (hE.pop(), hE.length && hE[hE.length - 1].observe()) : hE.splice(hE.indexOf(h), 1);
};
}
-function vE(e) {
- let t = gE[gE.length - 1];
+function _E(e) {
+ let t = hE[hE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var yE = /* @__PURE__ */ new WeakMap();
-function wse(e) {
+var vE = /* @__PURE__ */ new WeakMap();
+function Tse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Tse(e, t) {
- let n = yE.get(e);
+function Ese(e, t) {
+ let n = vE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${wse(t)}`;
+ return `${n.id}-option-${Tse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function bE(e) {
- return Tae() ? e.altKey : e.ctrlKey;
+function yE(e) {
+ return Eae() ? e.altKey : e.ctrlKey;
}
-function xE(e, t) {
+function bE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var SE = /* @__PURE__ */ new WeakMap();
-function Ese(e) {
- let t = zC();
- return SE.set(e, t), t;
-}
+var xE = /* @__PURE__ */ new WeakMap();
function Dse(e) {
- return SE.get(e);
+ let t = RC();
+ return xE.set(e, t), t;
+}
+function Ose(e) {
+ return xE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var CE = class {
+var SE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : xE(this.ref, e);
+ let n = e == null ? null : bE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25736,12 +25736,12 @@ var CE = class {
height: e?.clientHeight ?? 0
};
}
-}, wE = class {
+}, CE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new CE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new CE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new SE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new SE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25781,14 +25781,14 @@ var CE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = xE(this.ref, e);
+ let t = this.getNextKey(e), n = bE(this.ref, e);
if (t != null) {
- let e = xE(this.ref, t);
+ let e = bE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = xE(this.ref, r);
+ let e = bE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25822,7 +25822,7 @@ var CE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !MT(t)) return this.getFirstKey();
+ if (t && !jT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25837,7 +25837,7 @@ var CE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !MT(t)) return this.getLastKey();
+ if (t && !jT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25860,149 +25860,149 @@ var CE = class {
}
return null;
}
-}, TE = {};
-TE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, wE = {};
+wE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var EE = {};
-EE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var TE = {};
+TE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var DE = {};
-DE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var EE = {};
+EE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var OE = {};
-OE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var DE = {};
+DE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var kE = {};
-kE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var OE = {};
+OE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var AE = {};
-AE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var kE = {};
+kE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var jE = {};
-jE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var AE = {};
+AE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var ME = {};
-ME = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var jE = {};
+jE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var NE = {};
-NE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var ME = {};
+ME = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var PE = {};
-PE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var NE = {};
+NE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var FE = {};
-FE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var PE = {};
+PE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var IE = {};
-IE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var FE = {};
+FE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var LE = {};
-LE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var IE = {};
+IE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var RE = {};
-RE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var LE = {};
+LE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var zE = {};
-zE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var RE = {};
+RE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var BE = {};
-BE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var zE = {};
+zE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var VE = {};
-VE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var BE = {};
+BE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var HE = {};
-HE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var VE = {};
+VE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var UE = {};
-UE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var HE = {};
+HE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var WE = {};
-WE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var UE = {};
+UE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var GE = {};
-GE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var WE = {};
+WE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var KE = {};
-KE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var GE = {};
+GE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var qE = {};
-qE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var KE = {};
+KE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var JE = {};
-JE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var qE = {};
+qE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var YE = {};
-YE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var JE = {};
+JE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var XE = {};
-XE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var YE = {};
+YE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var ZE = {};
-ZE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var XE = {};
+XE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var QE = {};
-QE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var ZE = {};
+ZE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var $E = {};
-$E = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var QE = {};
+QE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var eD = {};
-eD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var $E = {};
+$E = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var tD = {};
-tD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var eD = {};
+eD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var nD = {};
-nD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var tD = {};
+tD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var rD = {};
-rD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var nD = {};
+nD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var iD = {};
-iD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var rD = {};
+rD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var aD = {};
-aD = {
- "ar-AE": TE,
- "bg-BG": EE,
- "cs-CZ": DE,
- "da-DK": OE,
- "de-DE": kE,
- "el-GR": AE,
- "en-US": jE,
- "es-ES": ME,
- "et-EE": NE,
- "fi-FI": PE,
- "fr-FR": FE,
- "he-IL": IE,
- "hr-HR": LE,
- "hu-HU": RE,
- "it-IT": zE,
- "ja-JP": BE,
- "ko-KR": VE,
- "lt-LT": HE,
- "lv-LV": UE,
- "nb-NO": WE,
- "nl-NL": GE,
- "pl-PL": KE,
- "pt-BR": qE,
- "pt-PT": JE,
- "ro-RO": YE,
- "ru-RU": XE,
- "sk-SK": ZE,
- "sl-SI": QE,
- "sr-SP": $E,
- "sv-SE": eD,
- "tr-TR": tD,
- "uk-UA": nD,
- "zh-CN": rD,
- "zh-TW": iD
+var iD = {};
+iD = {
+ "ar-AE": wE,
+ "bg-BG": TE,
+ "cs-CZ": EE,
+ "da-DK": DE,
+ "de-DE": OE,
+ "el-GR": kE,
+ "en-US": AE,
+ "es-ES": jE,
+ "et-EE": ME,
+ "fi-FI": NE,
+ "fr-FR": PE,
+ "he-IL": FE,
+ "hr-HR": IE,
+ "hu-HU": LE,
+ "it-IT": RE,
+ "ja-JP": zE,
+ "ko-KR": BE,
+ "lt-LT": VE,
+ "lv-LV": HE,
+ "nb-NO": UE,
+ "nl-NL": WE,
+ "pl-PL": GE,
+ "pt-BR": KE,
+ "pt-PT": qE,
+ "ro-RO": JE,
+ "ru-RU": YE,
+ "sk-SK": XE,
+ "sl-SI": ZE,
+ "sr-SP": QE,
+ "sv-SE": $E,
+ "tr-TR": eD,
+ "uk-UA": tD,
+ "zh-CN": nD,
+ "zh-TW": rD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ose = 500;
-function oD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ose, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Qw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = rT({
+var kse = 500;
+function aD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = kse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Zw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = nT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -26010,12 +26010,12 @@ function oD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), CS(e.target).activeElement !== e.target && SS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), SS(e.target).activeElement !== e.target && xS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = wS(e.target);
+ let t = CS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26030,11 +26030,11 @@ function oD(e) {
});
}
});
- return { longPressProps: K(f, RT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, LT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function kse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = oD({
+function Ase(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = aD({
onLongPressStart() {
n.current = !1;
},
@@ -26046,7 +26046,7 @@ function kse(e) {
});
}
});
- return t ? { contextMenuProps: K(YS() ? r : {}, {
+ return t ? { contextMenuProps: K(JS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26057,7 +26057,7 @@ function kse(e) {
});
},
onKeyDown(e) {
- if (qS() && e.ctrlKey && e.key === "Enter") {
+ if (KS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26076,13 +26076,13 @@ function kse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var sD = /* @__PURE__ */ new WeakMap();
-function Ase(e) {
+var oD = /* @__PURE__ */ new WeakMap();
+function jse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : ES(jS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !AS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || sD.get(t.current);
+ if (!t.current || n instanceof Node && !kS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || oD.get(t.current);
i && i();
}, !0), [
n,
@@ -26091,14 +26091,14 @@ function Ase(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function jse(e, t, n) {
+function Mse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && sD.set(n.current, t.close);
+ n && n.current && oD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = zC();
+ let o = RC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26110,14 +26110,14 @@ function jse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Mse(e) {
+function Nse(e) {
return e && e.__esModule ? e.default : e;
}
-function cD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = zC(), { triggerProps: s, overlayProps: c } = jse({ type: r }, t, n), l = (e, n, r = "first") => {
+function sD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = RC(), { triggerProps: s, overlayProps: c } = Mse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = YC({
+ }, { keyboardProps: u } = JC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26129,7 +26129,7 @@ function cD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Vw(Mse(aD), "@react-aria/menu"), { longPressProps: f } = oD({
+ }), d = Bw(Nse(iD), "@react-aria/menu"), { longPressProps: f } = aD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26141,14 +26141,14 @@ function cD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (SS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (xS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (SS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (xS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = kse({ onContextMenu(e) {
+ let { contextMenuProps: m } = Ase({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26192,8 +26192,8 @@ function cD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var lD = 1e3;
-function uD(e) {
+var cD = 1e3;
+function lD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26212,12 +26212,12 @@ function uD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, lD);
+ }, cD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Nse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Pse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !kS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26228,32 +26228,32 @@ function uD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, lD);
+ }, cD);
}
} : void 0
} };
}
-function Nse(e) {
+function Pse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function dD(e, t) {
+function uD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- zS(() => (n.current = !0, () => {
+ RS(() => (n.current = !0, () => {
n.current = !1;
- }), []), zS(() => {
+ }), []), RS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function fD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Fw(), _ = eC(), v = (e, n, i) => {
+function dD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Pw(), _ = $S(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !bE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !yE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = xE(r, n), o = t.getItemProps(n);
+ let a = bE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26265,7 +26265,7 @@ function fD(e) {
t.extendSelection(n);
return;
}
- if (l && !bE(e)) {
+ if (l && !yE(e)) {
t.replaceSelection(n);
return;
}
@@ -26292,9 +26292,9 @@ function fD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Tw(e));
+ let r = n.getFirstKey(t.focusedKey, ww(e));
if (t.setFocusedKey(r), r != null) {
- if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26326,9 +26326,9 @@ function fD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Tw(e));
+ let r = n.getLastKey(t.focusedKey, ww(e));
if (t.setFocusedKey(r), r != null) {
- if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26359,12 +26359,12 @@ function fD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = TT(r.current, { tabbable: !0 }), t, n;
+ let e = wT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = jS();
- t && (!NS(t) || i && !LS(i)) && SS(t);
+ let i = AS();
+ t && (!MS(t) || i && !IS(i)) && xS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26374,11 +26374,11 @@ function fD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [KS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [qS() ? e + "+Alt" : e + "+Control"]: t,
+ [KS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = YC({
+ }), { keyboardProps: M } = JC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26388,7 +26388,7 @@ function fD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = YC({ shortcuts: {
+ }), { keyboardProps: ee } = JC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26399,7 +26399,7 @@ function fD(e) {
top: 0,
left: 0
});
- Ow(p, "scroll", () => {
+ Dw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26407,11 +26407,11 @@ function fD(e) {
});
let te = (e) => {
if (t.isFocused) {
- AS(e.currentTarget, G(e)) || t.setFocused(!1);
+ kS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!AS(e.currentTarget, G(e))) return;
- let i = CC();
+ if (!kS(e.currentTarget, G(e))) return;
+ let i = SC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26422,27 +26422,27 @@ function fD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = xE(r, t.focusedKey);
- e instanceof HTMLElement && (!NS(e) && !d && SS(e), (i === "keyboard" || h && i === "virtual") && IT(e, { containingElement: r.current }));
+ let e = bE(r, t.focusedKey);
+ e instanceof HTMLElement && (!MS(e) && !d && xS(e), (i === "keyboard" || h && i === "virtual") && FT(e, { containingElement: r.current }));
}
}, P = (e) => {
- AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ kS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Ow(r, _oe, d ? (e) => {
+ Dw(r, voe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- dD(() => {
+ uD(() => {
if (ne.current) {
if (re == null) {
- let e = jS();
- mw(r.current), hw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = AS();
+ pw(r.current), mw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), dD(() => {
+ }, [re, t.collection.size]), uD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Ow(r, goe, d ? (e) => {
+ }, [t.focusedKey]), Dw(r, _oe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26457,22 +26457,22 @@ function fD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && PC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && NC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = CC(), n = xE(r, t.focusedKey);
+ let e = SC(), n = bE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (FT(p.current, n), e !== "virtual" && IT(n, { containingElement: r.current }));
+ p.current && (PT(p.current, n), e !== "virtual" && FT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && PC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && NC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Ow(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Dw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26482,27 +26482,27 @@ function fD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = uD({
+ }, { typeSelectProps: ce } = lD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Ese(t.collection);
+ let ue = Dse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function pD(e, t) {
+function fD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function mD(e) {
- return hD(e, 0);
+function pD(e) {
+ return mD(e, 0);
}
-function hD(e, t) {
+function mD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26510,106 +26510,106 @@ function hD(e, t) {
n++;
}
}
-function gD(e) {
+function hD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function _D(e, t, n) {
+function gD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...vD(e, t), t], i = [...vD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [..._D(e, t), t], i = [..._D(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function vD(e, t) {
+function _D(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var yD = /* @__PURE__ */ new WeakMap();
-function bD(e) {
- let t = yD.get(e);
+var vD = /* @__PURE__ */ new WeakMap();
+function yD(e) {
+ let t = vD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(pD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(fD(i, e)) : i.type === "item" && n++;
};
- return r(e), yD.set(e, n), n;
+ return r(e), vD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var xD = /* @__PURE__ */ new Map();
-function SD(e) {
- let { locale: t } = Fw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (xD.has(n)) return xD.get(n);
+var bD = /* @__PURE__ */ new Map();
+function xD(e) {
+ let { locale: t } = Pw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (bD.has(n)) return bD.get(n);
let r = new Intl.Collator(t, e);
- return xD.set(n, r), r;
+ return bD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Pse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Zw), a = K(i || {}, {
+var Fse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Xw), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = XC(n || i?.ref), ZC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = YC(n || i?.ref), XC(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(Zw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Xw.Provider, { value: a }, e);
});
-function Fse({ children: e }) {
+function Ise({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Zw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Xw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var CD = /*#__PURE__*/ (0, F.createContext)({});
-function wD(e) {
- let { getContainer: t } = e, { getContainer: n } = TD();
- return /*#__PURE__*/ F.createElement(CD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var SD = /*#__PURE__*/ (0, F.createContext)({});
+function CD(e) {
+ let { getContainer: t } = e, { getContainer: n } = wD();
+ return /*#__PURE__*/ F.createElement(SD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function TD() {
- return (0, F.useContext)(CD) ?? {};
+function wD() {
+ return (0, F.useContext)(SD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ED = /*#__PURE__*/ F.createContext(null);
-function DD(e) {
- let t = sC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var TD = /*#__PURE__*/ F.createContext(null);
+function ED(e) {
+ let t = oC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = TD();
+ }), [i, a]), { getContainer: s } = wD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(pT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(fT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(ED.Provider, { value: o }, /*#__PURE__*/ F.createElement(Fse, null, /*#__PURE__*/ F.createElement(QC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(TD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Ise, null, /*#__PURE__*/ F.createElement(ZC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function OD() {
- let e = (0, F.useContext)(ED)?.setContain;
- zS(() => {
+function DD() {
+ let e = (0, F.useContext)(TD)?.setContain;
+ RS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Ise(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = BC();
+function Lse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = zC();
i = e["aria-label"] ? void 0 : i;
- let a = BC();
+ let a = zC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !NS(t.current)) {
- PC(t.current);
+ if (!r && t.current && !MS(t.current)) {
+ NC(t.current);
let e = setTimeout(() => {
- (jS() === t.current || jS() === document.body) && (o.current = !0, t.current && (t.current.blur(), PC(t.current)), o.current = !1);
+ (AS() === t.current || AS() === document.body) && (o.current = !0, t.current && (t.current.blur(), NC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), OD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), DD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Uw(e, { labelable: !0 }),
+ ...Hw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26623,23 +26623,23 @@ function Ise(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function kD(e = {}) {
+function OD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || SC()
+ isFocusVisible: t || xC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = SC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = xC(), o(e), l();
}, [l]);
- DC((e) => {
+ EC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = GC({
+ let { focusProps: d } = WC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = eE({
+ }), { focusWithinProps: f } = $T({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26650,41 +26650,41 @@ function kD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Lse(e = {}) {
- let { locale: t } = Fw();
+function Rse(e = {}) {
+ let { locale: t } = Pw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var AD = !1, jD = 0;
-function Rse() {
- AD = !0, setTimeout(() => {
- AD = !1;
+var kD = !1, AD = 0;
+function zse() {
+ kD = !0, setTimeout(() => {
+ kD = !1;
}, 500);
}
-function MD(e) {
- e.pointerType === "touch" && Rse();
+function jD(e) {
+ e.pointerType === "touch" && zse();
}
-function zse() {
- let e = CS(null);
- if (e !== void 0) return jD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", MD), jD++, () => {
- jD--, !(jD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", MD);
+function Bse() {
+ let e = SS(null);
+ if (e !== void 0) return AD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jD), AD++, () => {
+ AD--, !(AD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jD);
};
}
-function ND(e) {
+function MD(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(zse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Qw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Bse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Zw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !kS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(CS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !AS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(SS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !kS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26699,9 +26699,9 @@ function ND(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- AD && t.pointerType === "mouse" || e(t, t.pointerType);
+ kD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && AS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && kS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26723,22 +26723,22 @@ function ND(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Bse(e) {
+function Vse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Dw((e) => {
- n && PD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Dw((e) => {
+ }), o = Ew((e) => {
+ n && ND(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Ew((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = CS(n);
+ let n = t.current, i = SS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && PD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && ND(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26746,28 +26746,28 @@ function Bse(e) {
}
}, [t, r]);
}
-function PD(e, t) {
+function ND(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !AS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !kS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var FD = /* @__PURE__ */ new WeakMap();
-function ID(e, t) {
- let { id: n } = FD.get(e) ?? {};
+var PD = /* @__PURE__ */ new WeakMap();
+function FD(e, t) {
+ let { id: n } = PD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Vse(t)}`;
+ return `${n}-${Hse(t)}`;
}
-function Vse(e) {
+function Hse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var LD = {};
-LD = {
+var ID = {};
+ID = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26780,8 +26780,8 @@ LD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var RD = {};
-RD = {
+var LD = {};
+LD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26794,8 +26794,8 @@ RD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var zD = {};
-zD = {
+var RD = {};
+RD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26808,8 +26808,8 @@ zD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var BD = {};
-BD = {
+var zD = {};
+zD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26822,8 +26822,8 @@ BD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var VD = {};
-VD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26836,8 +26836,8 @@ VD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var HD = {};
-HD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26850,8 +26850,8 @@ HD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var UD = {};
-UD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26864,8 +26864,8 @@ UD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var WD = {};
-WD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26878,8 +26878,8 @@ WD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26892,8 +26892,8 @@ GD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26906,8 +26906,8 @@ KD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26920,8 +26920,8 @@ qD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var JD = {};
-JD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26934,8 +26934,8 @@ JD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26948,8 +26948,8 @@ YD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26962,8 +26962,8 @@ XD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26976,8 +26976,8 @@ ZD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26990,8 +26990,8 @@ QD = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var $D = {};
-$D = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -27004,8 +27004,8 @@ $D = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var eO = {};
-eO = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27018,8 +27018,8 @@ eO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var tO = {};
-tO = {
+var eO = {};
+eO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -27032,8 +27032,8 @@ tO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var nO = {};
-nO = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27046,8 +27046,8 @@ nO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27060,8 +27060,8 @@ rO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27074,8 +27074,8 @@ iO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27088,8 +27088,8 @@ aO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27102,8 +27102,8 @@ oO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27116,8 +27116,8 @@ sO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27130,8 +27130,8 @@ cO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var lO = {};
-lO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27144,8 +27144,8 @@ lO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var uO = {};
-uO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27158,8 +27158,8 @@ uO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27172,8 +27172,8 @@ dO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27186,8 +27186,8 @@ fO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27200,8 +27200,8 @@ pO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27214,8 +27214,8 @@ mO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var hO = {};
-hO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27228,8 +27228,8 @@ hO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var gO = {};
-gO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27242,54 +27242,54 @@ gO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var _O = {};
-_O = {
- "ar-AE": LD,
- "bg-BG": RD,
- "cs-CZ": zD,
- "da-DK": BD,
- "de-DE": VD,
- "el-GR": HD,
- "en-US": UD,
- "es-ES": WD,
- "et-EE": GD,
- "fi-FI": KD,
- "fr-FR": qD,
- "he-IL": JD,
- "hr-HR": YD,
- "hu-HU": XD,
- "it-IT": ZD,
- "ja-JP": QD,
- "ko-KR": $D,
- "lt-LT": eO,
- "lv-LV": tO,
- "nb-NO": nO,
- "nl-NL": rO,
- "pl-PL": iO,
- "pt-BR": aO,
- "pt-PT": oO,
- "ro-RO": sO,
- "ru-RU": cO,
- "sk-SK": lO,
- "sl-SI": uO,
- "sr-SP": dO,
- "sv-SE": fO,
- "tr-TR": pO,
- "uk-UA": mO,
- "zh-CN": hO,
- "zh-TW": gO
+var gO = {};
+gO = {
+ "ar-AE": ID,
+ "bg-BG": LD,
+ "cs-CZ": RD,
+ "da-DK": zD,
+ "de-DE": BD,
+ "el-GR": VD,
+ "en-US": HD,
+ "es-ES": UD,
+ "et-EE": WD,
+ "fi-FI": GD,
+ "fr-FR": KD,
+ "he-IL": qD,
+ "hr-HR": JD,
+ "hu-HU": YD,
+ "it-IT": XD,
+ "ja-JP": ZD,
+ "ko-KR": QD,
+ "lt-LT": $D,
+ "lv-LV": eO,
+ "nb-NO": tO,
+ "nl-NL": nO,
+ "pl-PL": rO,
+ "pt-BR": iO,
+ "pt-PT": aO,
+ "ro-RO": oO,
+ "ru-RU": sO,
+ "sk-SK": cO,
+ "sl-SI": lO,
+ "sr-SP": uO,
+ "sv-SE": dO,
+ "tr-TR": fO,
+ "uk-UA": pO,
+ "zh-CN": mO,
+ "zh-TW": hO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Hse(e) {
+function Use(e) {
return e && e.__esModule ? e.default : e;
}
-function vO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Vw(Hse(_O), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function _O(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Bw(Use(gO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = yO(i, a.current), o = yO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = vO(i, a.current), o = vO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27309,7 +27309,7 @@ function vO(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && AT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && kT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27320,7 +27320,7 @@ function vO(e, t) {
n,
r
]);
- jT(() => {
+ AT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27328,20 +27328,20 @@ function vO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function yO(e, t) {
+function vO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function bO(e, t) {
+function yO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return zS(() => {
+ return RS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = TT(e.current, { tabbable: !0 });
+ let t = wT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27359,12 +27359,12 @@ function bO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Use(e) {
+function Wse(e) {
return e && e.__esModule ? e.default : e;
}
-function xO(e) {
- let t = Vw(Use(_O), "@react-aria/grid"), n = TC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return RT((0, F.useMemo)(() => {
+function bO(e) {
+ let t = Bw(Wse(gO), "@react-aria/grid"), n = wC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return LT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27376,11 +27376,11 @@ function xO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function SO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = SD({
+function xO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = xD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new wE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new CE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27397,7 +27397,7 @@ function SO(e) {
c,
l,
s
- ]), { collectionProps: d } = fD({
+ ]), { collectionProps: d } = dD({
...e,
ref: i,
selectionManager: t,
@@ -27406,10 +27406,10 @@ function SO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Wse(e, t, n) {
+function Gse(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = SO({
+ let { listProps: f } = xO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27424,30 +27424,30 @@ function Wse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = zC(e.id);
- FD.set(t, {
+ }), p = RC(e.id);
+ PD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = xO({
+ let m = bO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = bO(n, { isDisabled: t.collection.size !== 0 }), g = K(Uw(e, { labelable: !0 }), {
+ }), h = yO(n, { isDisabled: t.collection.size !== 0 }), g = K(Hw(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), vO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), _O({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function CO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = eC();
- t = zC(t);
+function SO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = $S();
+ t = RC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && bE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && yE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27458,11 +27458,11 @@ function CO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Tw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ww(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? mw(i.current) : s ? s() : jS() !== i.current && i.current && PC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? pw(i.current) : s ? s() : AS() !== i.current && i.current && NC(i.current));
}, [
i,
r,
@@ -27490,22 +27490,22 @@ function CO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || TO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || wO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !wO(e.key)) return;
+ if (e.pointerType === "keyboard" && !CO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || TO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || wO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && wO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && CO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Dse(n.collection);
+ let A = Ose(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27520,10 +27520,10 @@ function CO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = FC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = rT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = PC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = nT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = oD({
+ } : void 0, { longPressProps: N } = aD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27531,7 +27531,7 @@ function CO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- tC.isOpening || e.preventDefault();
+ eC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27544,7 +27544,7 @@ function CO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return LS(e);
+ return IS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27564,14 +27564,14 @@ function CO(e) {
hasAction: S
};
}
-function wO(e) {
+function CO(e) {
return e === "Enter";
}
-function TO(e) {
+function wO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var EO = {
+var TO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27581,18 +27581,18 @@ var EO = {
rtl: "ArrowRight"
}
};
-function Gse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Fw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = FD.get(t), f = BC(), p = (0, F.useRef)(null), m = () => {
+function Kse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Pw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = PD.get(t), f = zC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (NS(n.current) && n.current !== jS(CS(n.current))) return;
- let e = TT(n.current, { tabbable: !0 }).firstChild();
+ if (MS(n.current) && n.current !== AS(SS(n.current))) return;
+ let e = wT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- PC(e), IT(e, { containingElement: NT(e) });
+ NC(e), FT(e, { containingElement: MT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !NS(n.current)) && PC(n.current);
+ (p.current != null && r.key !== p.current || !MS(n.current)) && NC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27602,7 +27602,7 @@ function Gse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Kse(e, t.collection);
+ let n = qse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27613,75 +27613,75 @@ function Gse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = CO({
+ let { itemProps: v, ...y } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? FC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? PC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = jS(CS(n.current));
- if (!AS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = TT(n.current);
- if (a.currentNode = i, !DO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = AS(SS(n.current));
+ if (!kS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = wT(n.current);
+ if (a.currentNode = i, !EO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
else {
a.currentNode = n.current;
- let e = OO(a);
- e && (PC(e), IT(e, { containingElement: NT(n.current) }));
+ let e = DO(a);
+ e && (NC(e), FT(e, { containingElement: MT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
else {
a.currentNode = n.current;
- let e = OO(a);
- e && (PC(e), IT(e, { containingElement: NT(n.current) }));
+ let e = DO(a);
+ e && (NC(e), FT(e, { containingElement: MT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && jS(CS(n.current)) === n.current && m();
- }) : SC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && AS(SS(n.current)) === n.current && m();
+ }) : xC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = jS(CS(n.current));
- if (AS(e.currentTarget, G(e)) && n.current && i) {
+ let i = AS(SS(n.current));
+ if (kS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (DO(e, t, r, g, s, i, n.current, o)) return;
+ if (EO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = TT(n.current, { tabbable: !0 });
+ let t = wT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = nC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = tC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${ID(t, r.key)} ${f}` : void 0,
- id: ID(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${FD(t, r.key)} ${f}` : void 0,
+ id: FD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27702,66 +27702,66 @@ function Gse(e, t, n) {
...y
};
}
-function DO(e, t, n, r, i, a, o, s) {
+function EO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === EO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === EO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === TO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === TO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function OO(e) {
+function DO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Kse(e, t) {
+function qse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function qse(e) {
+function Jse(e) {
return e && e.__esModule ? e.default : e;
}
-function kO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = zC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function OO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = RC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Vw(qse(_O), "@react-aria/grid").format("select"),
+ "aria-label": Bw(Jse(gO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Jse(e, t) {
- let { key: n } = e, { checkboxProps: r } = kO(e, t);
+function Yse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = OO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${ID(t, n)}`
+ "aria-labelledby": `${r.id} ${FD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Yse(e, t, n) {
- let r = Uw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Xse(e, t, n) {
+ let r = Hw(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 } = SO({
+ let { listProps: s } = xO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = eE({
+ }), { focusWithinProps: c } = $T({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = zC(e.id);
- yE.set(t, {
+ }), l = RC(e.id);
+ vE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27771,7 +27771,7 @@ function Yse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = QT({
+ let { labelProps: u, fieldProps: d } = ZT({
...e,
id: l,
labelElementType: "span"
@@ -27786,8 +27786,8 @@ function Yse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Xse(e) {
- let { heading: t, "aria-label": n } = e, r = zC();
+function Zse(e) {
+ let { heading: t, "aria-label": n } = e, r = RC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27805,8 +27805,8 @@ function Xse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Zse(e, t, n) {
- let { key: r } = e, i = yE.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 = BC(), f = BC(), p = {
+function Qse(e, t, n) {
+ let { key: r } = e, i = vE.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 = zC(), f = zC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27816,9 +27816,9 @@ function Zse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = bD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = yD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Tse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = CO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Ese(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = SO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27827,18 +27827,18 @@ function Zse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? FC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? PC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = ND({
+ }), { hoverProps: S } = MD({
isDisabled: a || !c,
onHoverStart() {
- SC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ xC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Uw(m?.props);
+ }), C = Hw(m?.props);
delete C.id;
- let w = rC(m?.props);
+ let w = nC(m?.props);
return {
optionProps: {
...p,
@@ -27848,7 +27848,7 @@ function Zse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && SC(),
+ isFocusVisible: y && t.selectionManager.isFocused && xC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27857,12 +27857,12 @@ function Zse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var AO = /* @__PURE__ */ new WeakMap();
+var kO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Qse(e, t, n) {
+function $se(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Uw(e, { labelable: !0 }), { listProps: c } = SO({
+ let s = Hw(e, { labelable: !0 }), { listProps: c } = xO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27871,7 +27871,7 @@ function Qse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return AO.set(t, {
+ return kO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27887,15 +27887,15 @@ function Qse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function $se(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 = AO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = eC(), M = () => {
+function ece(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 = kO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = $S(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = BC(), te = BC(), P = BC(), ne = {
+ let N = zC(), te = zC(), P = zC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27912,17 +27912,17 @@ function $se(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = bD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = yD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), jae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Mae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = CO({
+ }, { itemProps: se, isFocused: ce } = SO({
id: r,
selectionManager: C,
key: i,
@@ -27931,27 +27931,27 @@ function $se(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = rT({
+ }), { pressProps: le, isPressed: ue } = nT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = ND({
+ }), { hoverProps: de } = MD({
isDisabled: E,
onHoverStart(e) {
- !SC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !xC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = YC({
+ }), { keyboardProps: fe } = JC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), wC("keyboard");
+ }, G(e).click(), CC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27959,8 +27959,8 @@ function $se(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), wC("keyboard");
- else return wC("keyboard"), {
+ if (t.tagName !== "A") t.click(), CC("keyboard");
+ else return CC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27968,13 +27968,13 @@ function $se(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = $C({
+ }), { focusableProps: pe } = QC({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Uw(k?.props);
+ }, n), me = Hw(k?.props);
delete me.id;
- let he = rC(k?.props);
+ let he = nC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27989,15 +27989,15 @@ function $se(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && SC() && !T,
+ isFocusVisible: ce && C.isFocused && xC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function ece(e) {
- let { heading: t, "aria-label": n } = e, r = zC();
+function tce(e) {
+ let { heading: t, "aria-label": n } = e, r = RC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -28012,15 +28012,15 @@ function ece(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function tce() {
+function nce() {
return window.ResizeObserver !== void 0;
}
-function jO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Dw(r);
+function AO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Ew(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (tce()) {
+ if (nce()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28035,154 +28035,154 @@ function jO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var MO = {};
-MO = { dismiss: "تجاهل" };
+var jO = {};
+jO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var NO = {};
-NO = { dismiss: "Отхвърляне" };
+var MO = {};
+MO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var PO = {};
-PO = { dismiss: "Odstranit" };
+var NO = {};
+NO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var FO = {};
-FO = { dismiss: "Luk" };
+var PO = {};
+PO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var IO = {};
-IO = { dismiss: "Schließen" };
+var FO = {};
+FO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var LO = {};
-LO = { dismiss: "Απόρριψη" };
+var IO = {};
+IO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var RO = {};
-RO = { dismiss: "Dismiss" };
+var LO = {};
+LO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var zO = {};
-zO = { dismiss: "Descartar" };
+var RO = {};
+RO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var BO = {};
-BO = { dismiss: "Lõpeta" };
+var zO = {};
+zO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var VO = {};
-VO = { dismiss: "Hylkää" };
+var BO = {};
+BO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var HO = {};
-HO = { dismiss: "Rejeter" };
+var VO = {};
+VO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var UO = {};
-UO = { dismiss: "התעלם" };
+var HO = {};
+HO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var WO = {};
-WO = { dismiss: "Odbaci" };
+var UO = {};
+UO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var GO = {};
-GO = { dismiss: "Elutasítás" };
+var WO = {};
+WO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var KO = {};
-KO = { dismiss: "Ignora" };
+var GO = {};
+GO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var qO = {};
-qO = { dismiss: "閉じる" };
+var KO = {};
+KO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var JO = {};
-JO = { dismiss: "무시" };
+var qO = {};
+qO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var YO = {};
-YO = { dismiss: "Atmesti" };
+var JO = {};
+JO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var XO = {};
-XO = { dismiss: "Nerādīt" };
+var YO = {};
+YO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var ZO = {};
-ZO = { dismiss: "Lukk" };
+var XO = {};
+XO = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var QO = {};
-QO = { dismiss: "Negeren" };
+var ZO = {};
+ZO = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var $O = {};
-$O = { dismiss: "Zignoruj" };
+var QO = {};
+QO = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var ek = {};
-ek = { dismiss: "Descartar" };
+var $O = {};
+$O = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var tk = {};
-tk = { dismiss: "Dispensar" };
+var ek = {};
+ek = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var nk = {};
-nk = { dismiss: "Revocare" };
+var tk = {};
+tk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var rk = {};
-rk = { dismiss: "Пропустить" };
+var nk = {};
+nk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ik = {};
-ik = { dismiss: "Zrušiť" };
+var rk = {};
+rk = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var ak = {};
-ak = { dismiss: "Opusti" };
+var ik = {};
+ik = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ok = {};
-ok = { dismiss: "Odbaci" };
+var ak = {};
+ak = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var sk = {};
-sk = { dismiss: "Avvisa" };
+var ok = {};
+ok = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ck = {};
-ck = { dismiss: "Kapat" };
+var sk = {};
+sk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var lk = {};
-lk = { dismiss: "Скасувати" };
+var ck = {};
+ck = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var uk = {};
-uk = { dismiss: "取消" };
+var lk = {};
+lk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var dk = {};
-dk = { dismiss: "關閉" };
+var uk = {};
+uk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var fk = {};
-fk = {
- "ar-AE": MO,
- "bg-BG": NO,
- "cs-CZ": PO,
- "da-DK": FO,
- "de-DE": IO,
- "el-GR": LO,
- "en-US": RO,
- "es-ES": zO,
- "et-EE": BO,
- "fi-FI": VO,
- "fr-FR": HO,
- "he-IL": UO,
- "hr-HR": WO,
- "hu-HU": GO,
- "it-IT": KO,
- "ja-JP": qO,
- "ko-KR": JO,
- "lt-LT": YO,
- "lv-LV": XO,
- "nb-NO": ZO,
- "nl-NL": QO,
- "pl-PL": $O,
- "pt-BR": ek,
- "pt-PT": tk,
- "ro-RO": nk,
- "ru-RU": rk,
- "sk-SK": ik,
- "sl-SI": ak,
- "sr-SP": ok,
- "sv-SE": sk,
- "tr-TR": ck,
- "uk-UA": lk,
- "zh-CN": uk,
- "zh-TW": dk
+var dk = {};
+dk = {
+ "ar-AE": jO,
+ "bg-BG": MO,
+ "cs-CZ": NO,
+ "da-DK": PO,
+ "de-DE": FO,
+ "el-GR": IO,
+ "en-US": LO,
+ "es-ES": RO,
+ "et-EE": zO,
+ "fi-FI": BO,
+ "fr-FR": VO,
+ "he-IL": HO,
+ "hr-HR": UO,
+ "hu-HU": WO,
+ "it-IT": GO,
+ "ja-JP": KO,
+ "ko-KR": qO,
+ "lt-LT": JO,
+ "lv-LV": YO,
+ "nb-NO": XO,
+ "nl-NL": ZO,
+ "pl-PL": QO,
+ "pt-BR": $O,
+ "pt-PT": ek,
+ "ro-RO": tk,
+ "ru-RU": nk,
+ "sk-SK": rk,
+ "sl-SI": ik,
+ "sr-SP": ak,
+ "sv-SE": ok,
+ "tr-TR": sk,
+ "uk-UA": ck,
+ "zh-CN": lk,
+ "zh-TW": uk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function nce(e) {
+function rce(e) {
return e && e.__esModule ? e.default : e;
}
-function pk(e) {
- let { onDismiss: t, ...n } = e, r = kw(n, Vw(nce(fk), "@react-aria/overlays").format("dismiss")), i = () => {
+function fk(e) {
+ let { onDismiss: t, ...n } = e, r = Ow(n, Bw(rce(dk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28193,35 +28193,35 @@ function pk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var mk = [];
-function hk(e, t) {
+var pk = [];
+function mk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !mk.includes(t)) return mk.push(t), () => {
- let e = mk.indexOf(t);
- e >= 0 && mk.splice(e, 1);
+ if (i && !pk.includes(t)) return pk.push(t), () => {
+ let e = pk.indexOf(t);
+ e >= 0 && pk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- mk[mk.length - 1] === t && n && n();
+ pk[pk.length - 1] === t && n && n();
}, u = (e) => {
- let n = mk[mk.length - 1];
+ let n = pk[pk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (mk[mk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = YC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (pk[pk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = JC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Bse({
+ Vse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = eE({
+ let { focusWithinProps: p } = $T({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Qoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !$oe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28233,87 +28233,87 @@ function hk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var rce = 200, ice = 50, ace = 600, gk = /* @__PURE__ */ new WeakMap(), _k = /* @__PURE__ */ new Set(), vk = /* @__PURE__ */ new Set();
-function oce(e, t) {
- let n = Ew();
- if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
- if (!e && n && XS() && !t.aborted) window.clearInterval(gk.get(window)), gk.set(window, yk(rce));
+var ice = 200, ace = 50, oce = 600, hk = /* @__PURE__ */ new WeakMap(), gk = /* @__PURE__ */ new Set(), _k = /* @__PURE__ */ new Set();
+function sce(e, t) {
+ let n = Tw();
+ if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
+ if (!e && n && YS() && !t.aborted) window.clearInterval(hk.get(window)), hk.set(window, vk(ice));
else {
- if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
- (vk.size + _k.size <= 0 || t.aborted) && (window.clearInterval(gk.get(window)), gk.delete(window));
+ if (e !== n || t.aborted) for (let e of gk) e(n), gk.delete(e);
+ (_k.size + gk.size <= 0 || t.aborted) && (window.clearInterval(hk.get(window)), hk.delete(window));
}
}
-function yk(e = ace) {
- return window.setInterval(oce, ice, Ew(), AbortSignal.timeout(e));
+function vk(e = oce) {
+ return window.setInterval(sce, ace, Tw(), AbortSignal.timeout(e));
}
-function bk(e) {
- if (!Cw()) return e(!1), () => {};
+function yk(e) {
+ if (!Sw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ww(document.hasFocus() ? jS() : null);
- if (Ew() === t || Ew() && !t) return e(t);
- vk.add(e), gk.has(window) || gk.set(window, yk());
+ let t = Cw(document.hasFocus() ? AS() : null);
+ if (Tw() === t || Tw() && !t) return e(t);
+ _k.add(e), hk.has(window) || hk.set(window, vk());
});
});
return () => {
- window.cancelAnimationFrame(t), vk.delete(e);
+ window.cancelAnimationFrame(t), _k.delete(e);
};
}
-function sce(e) {
- if (!Cw()) return e(!1), () => {};
+function cce(e) {
+ if (!Sw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = ww(document.hasFocus() ? jS() : null);
- if (Ew() === t) return e(t);
- _k.add(e), gk.has(window) || gk.set(window, yk());
+ let t = Cw(document.hasFocus() ? AS() : null);
+ if (Tw() === t) return e(t);
+ gk.add(e), hk.has(window) || hk.set(window, vk());
});
});
return () => {
- window.cancelAnimationFrame(t), _k.delete(e);
+ window.cancelAnimationFrame(t), gk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var xk = typeof document < "u" && window.visualViewport, Sk = 0, Ck;
-function wk(e = {}) {
+var bk = typeof document < "u" && window.visualViewport, xk = 0, Sk;
+function Ck(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- zS(() => {
- if (!t) return Sk++, Sk === 1 && (Ck = YS() && XS() ? lce() : cce(n)), () => {
- Sk--, Sk === 0 && Ck();
+ RS(() => {
+ if (!t) return xk++, xk === 1 && (Sk = JS() && YS() ? uce() : lce(n)), () => {
+ xk--, xk === 0 && Sk();
};
}, [t, n]);
}
-function cce(e) {
+function lce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return FC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? OS(document.documentElement, "scrollbar-gutter", "stable") : OS(document.documentElement, "padding-right", `${t}px`)), OS(document.documentElement, "overflow", "hidden"), e && Ek(), e && Cw() && Tk());
+ return PC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? DS(document.documentElement, "scrollbar-gutter", "stable") : DS(document.documentElement, "padding-right", `${t}px`)), DS(document.documentElement, "overflow", "hidden"), e && Tk(), e && Sw() && wk());
}
-function lce() {
- let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function uce() {
+ let e = DS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = MT(r, !0) ? r : NT(r, !0), n = !1;
+ t = jT(r, !0) ? r : MT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Xw();
+ }, i = document.createElement("style"), a = Yw();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = Ek(), c = FC(DS(document, "touchstart", r, {
+ }, s = Tk(), c = PC(ES(document, "touchstart", r, {
passive: !1,
capture: !0
- }), DS(document, "touchmove", o, {
+ }), ES(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Tk());
+ }), wk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Tk() {
- return DS(document, "blur", (e) => {
+function wk() {
+ return ES(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && ww(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Cw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Ek() {
+function Tk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28324,9 +28324,9 @@ function Ek() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- jS() === this && uce(this);
+ AS() === this && dce(this);
};
- bk((t) => t ? e() : sce(() => e()));
+ yk((t) => t ? e() : cce(() => e()));
}
}
}), () => {
@@ -28337,15 +28337,15 @@ function Ek() {
});
};
}
-function uce(e) {
+function dce(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = NT(n);
+ let e = MT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- xk && (n = Math.min(n, xk.offsetTop + xk.height));
+ bk && (n = Math.min(n, bk.offsetTop + bk.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)),
@@ -28357,19 +28357,19 @@ function uce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function dce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = hk({
+function fce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = mk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- wk({
+ Ck({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), OD();
+ }), DD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? vE(n.current) : _E([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? _E(n.current) : gE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28380,33 +28380,33 @@ function dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Dk = {
+var Ek = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Ok = {
+}, Dk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, fce = {
+}, pce = {
top: "left",
left: "top"
-}, kk = {
+}, Ok = {
top: "height",
left: "width"
-}, Ak = {
+}, kk = {
width: "totalWidth",
height: "totalHeight"
-}, jk = {}, pce = () => typeof document < "u" ? window.visualViewport : null;
-function Mk(e, t) {
+}, Ak = {}, mce = () => typeof document < "u" ? window.visualViewport : null;
+function jk(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} = Rk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return XS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Fk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return YS() && (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,
totalWidth: i,
@@ -28416,7 +28416,7 @@ function Mk(e, t) {
left: s
};
}
-function mce(e) {
+function hce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28424,11 +28424,11 @@ function mce(e) {
height: e.scrollHeight
};
}
-function Nk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[kk[e]], l = o[e] + r.scroll[Dk[e]] + a, u = o[e] + r.scroll[Dk[e]] + c - a, d = t - s + r.scroll[Dk[e]] + o[e] - r[Dk[e]], f = t - s + n + r.scroll[Dk[e]] + o[e] - r[Dk[e]];
+function Mk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Ok[e]], l = o[e] + r.scroll[Ek[e]] + a, u = o[e] + r.scroll[Ek[e]] + c - a, d = t - s + r.scroll[Ek[e]] + o[e] - r[Ek[e]], f = t - s + n + r.scroll[Ek[e]] + o[e] - r[Ek[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function hce(e) {
+function gce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28437,55 +28437,55 @@ function hce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Pk(e) {
- if (jk[e]) return jk[e];
- let [t, n] = e.split(" "), r = Dk[t] || "right", i = fce[r];
- Dk[n] || (n = "center");
- let a = kk[r], o = kk[i];
- return jk[e] = {
+function _ce(e) {
+ if (Ak[e]) return Ak[e];
+ let [t, n] = e.split(" "), r = Ek[t] || "right", i = pce[r];
+ Ek[n] || (n = "center");
+ let a = Ok[r], o = Ok[i];
+ return Ak[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, jk[e];
+ }, Ak[e];
}
-function Fk(e, t, n, r, i, a, o, s, c, l, u) {
+function Nk(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] = rE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ak[h]];
- _[Ok[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = nE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[kk[h]];
+ _[Dk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function gce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ak.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function vce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[kk.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 Ik(e, t, n, r, i, a, o, s) {
+function yce(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[Ok[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[Ok[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Dk[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[Dk[l]] - i);
}
-function _ce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Pk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Fk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ik(s, l, t, i, a + u, v, c, g);
+function bce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = _ce(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Nk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = yce(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Pk(`${Ok[S]} ${C}`), r = Fk(t, s, n, e, u, d, l, f, m, h, c);
- Ik(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = _ce(`${Dk[S]} ${C}`), r = Nk(t, s, n, e, u, d, l, f, m, h, c);
+ yce(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 = Nk(b, w[b], n[x], s, c, a, l);
+ let O = Mk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = gce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Fk(t, s, n, v, T, d, l, f, m, h, c), O = Nk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Dk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Dk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = rE(rE(M, t[b] + m / 2 - (w[b] + i[Dk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = vce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Nk(t, s, n, v, T, d, l, f, m, h, c), O = Mk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Ek[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ek[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = nE(nE(M, t[b] + m / 2 - (w[b] + i[Ek[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ek[b]])), ee, 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, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28499,17 +28499,17 @@ function _ce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function vce(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 = pce(), h = r instanceof HTMLElement ? bce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Rk(n, !1, p) : yce(n, h, !1, p);
+function xce(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 = mce(), h = r instanceof HTMLElement ? Cce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Fk(n, !1, p) : Sce(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 = Rk(r, !0), x = hce(r);
+ let b = Fk(r, !0), x = gce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = mce(i), C = Mk(s, m), w = Mk(h, m), T;
+ let S = hce(i), C = jk(s, m), w = jk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Lk(h, !1);
+ let e = Pk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28521,11 +28521,11 @@ function vce(e) {
left: 0,
width: 0,
height: 0
- } : yce(s, h, !1);
- let E = AS(s, h);
- return _ce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Sce(s, h, !1);
+ let E = kS(s, h);
+ return bce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Lk(e, t) {
+function Pk(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,
@@ -28534,8 +28534,8 @@ function Lk(e, t) {
height: a
};
}
-function Rk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Lk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Fk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Pk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28543,29 +28543,29 @@ function Rk(e, t, n) {
height: o
};
}
-function yce(e, t, n, r) {
+function Sce(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Lk(e, n);
+ if (i.position === "fixed") a = r || Pk(e, n);
else {
- a = Rk(e, n, r);
- let i = Rk(t, n), o = window.getComputedStyle(t);
+ a = Fk(e, n, r);
+ let i = Fk(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 bce(e) {
+function Cce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !xce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !xce(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !wce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !wce(t);) t = t.parentElement;
return t || document.documentElement;
}
-function xce(e) {
+function wce(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";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var zk = typeof document < "u" ? window.visualViewport : null;
-function Sce(e) {
- let { direction: t } = Fw(), { 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, F.useState)(null), x = [
+var Ik = typeof document < "u" ? window.visualViewport : null;
+function Tce(e) {
+ let { direction: t } = Pw(), { 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, F.useState)(null), x = [
p,
s,
i.current,
@@ -28582,15 +28582,15 @@ function Sce(e) {
g,
_,
n
- ], S = (0, F.useRef)(zk?.scale);
+ ], S = (0, F.useRef)(Ik?.scale);
(0, F.useEffect)(() => {
- m && (S.current = zk?.scale);
+ m && (S.current = Ik?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || zk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Ik?.scale !== S.current) return;
let e = null;
- if (o.current && NS(o.current)) {
- let t = jS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && MS(o.current)) {
+ let t = AS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28598,8 +28598,8 @@ function Sce(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 = vce({
- placement: wce(s, t),
+ let y = xce({
+ placement: Dce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28609,28 +28609,28 @@ function Sce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Lk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Pk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = jS();
+ let x = AS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- zS(C, x), Cce(C), jO({
+ RS(C, x), Ece(C), AO({
ref: i,
onResize: C
- }), jO({
+ }), AO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- zS(() => {
+ RS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28638,16 +28638,16 @@ function Sce(e) {
}, n = () => {
w.current && t();
};
- zk?.addEventListener("resize", t), zk?.addEventListener("scroll", n);
- let r = DS(MS(window), "scroll", n);
+ Ik?.addEventListener("resize", t), Ik?.addEventListener("scroll", n);
+ let r = ES(jS(window), "scroll", n);
return () => {
- zk?.removeEventListener("resize", t), zk?.removeEventListener("scroll", n), r();
+ Ik?.removeEventListener("resize", t), Ik?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Ase({
+ return jse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28673,24 +28673,24 @@ function Sce(e) {
updatePosition: C
};
}
-function Cce(e) {
- zS(() => (window.addEventListener("resize", e, !1), () => {
+function Ece(e) {
+ RS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function wce(e, t) {
+function Dce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function Tce(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 } = hk({
+function Oce(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 } = mk({
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 } = Sce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tce({
...c,
targetRef: n,
overlayRef: r,
@@ -28698,15 +28698,15 @@ function Tce(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)
});
- wk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? vE(i?.current ?? r.current) : _E([i?.current ?? r.current], { shouldUseInert: !0 });
+ Ck({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? _E(i?.current ?? r.current) : gE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = eE(e);
+ let { focusWithinProps: g } = $T(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28716,12 +28716,12 @@ function Tce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Ece = /* @__PURE__ */ new WeakMap();
+var kce = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Dce(e, t, n) {
+function Ace(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: _ } = rT({
+ }, { pressProps: g, isPressed: _ } = nT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28729,7 +28729,7 @@ function Dce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = rT({
+ }), { pressProps: v, isPressed: y } = nT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28739,11 +28739,11 @@ function Dce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = $C(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Uw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = QC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Hw(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 } = Ece.get(t);
- zT(n, t.defaultSelectedValue, t.setSelectedValue), BT({ validationBehavior: O }, t, n);
- let k = VT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = kce.get(t);
+ RT(n, t.defaultSelectedValue, t.setSelectedValue), zT({ validationBehavior: O }, t, n);
+ let k = BT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28774,13 +28774,13 @@ function Dce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Oce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Fw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = $T({
+function jce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Pw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = QT({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Uw(e, { labelable: !0 }), { focusWithinProps: v } = eE({
+ }), _ = Hw(e, { labelable: !0 }), { focusWithinProps: v } = $T({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28788,13 +28788,13 @@ function Oce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = TT(n.currentTarget, {
+ let r = wT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof wS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof CS(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = YC({
+ let { keyboardProps: b } = JC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28802,8 +28802,8 @@ function Oce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = zC(n);
- return Ece.set(t, {
+ }), x = RC(n);
+ return kce.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28831,21 +28831,21 @@ function Oce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Bk = /* @__PURE__ */ new WeakMap();
-function kce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = SD({
+var Lk = /* @__PURE__ */ new WeakMap();
+function Mce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = xD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new wE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new CE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = cD({
+ ]), { menuTriggerProps: d, menuProps: f } = sD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = YC({
+ }, t, n), { keyboardProps: p } = JC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28861,21 +28861,21 @@ function kce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = uD({
+ }), { typeSelectProps: m } = lD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = $T({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = QT({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Uw(e, { labelable: !0 }), C = K(m, d, y), w = zC();
- return Bk.set(t, {
+ let S = Hw(e, { labelable: !0 }), C = K(m, d, y), w = RC();
+ return Lk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28885,13 +28885,13 @@ function kce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), wC("keyboard"));
+ e.isDisabled || (n.current?.focus(), CC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: FC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: PC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28915,7 +28915,7 @@ function kce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- AS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ kS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28935,13 +28935,13 @@ function kce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Ace(e, t, n) {
- let r = Bk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = uE({ style: {
+function Nce(e, t, n) {
+ let r = Lk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = lE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- zT(e.selectRef, t.defaultValue, t.setValue), BT({
+ RT(e.selectRef, t.defaultValue, t.setValue), zT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28971,8 +28971,8 @@ function Ace(e, t, n) {
}
};
}
-function jce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Ace({
+function Pce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Nce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28996,7 +28996,7 @@ function jce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Bk.get(t) || {};
+ let { validationBehavior: e } = Lk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29026,8 +29026,8 @@ function jce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Mce(e) {
- let t = Uw(e, { labelable: !0 }), n;
+function Fce(e) {
+ let t = Hw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29035,8 +29035,8 @@ function Mce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Nce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = XT(e, t, n);
+function Ice(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = YT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29049,10 +29049,10 @@ function Nce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Vk = class {
+var Rk = 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 Pce(e.layout) : new CE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Lce(e.layout) : new SE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29088,7 +29088,7 @@ var Vk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of pD(n, this.collection)) {
+ for (let e of fD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29122,13 +29122,13 @@ var Vk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = pD(t, this.collection);
- return (this.direction === "rtl" ? gD(e)?.key : mD(e)?.key) ?? null;
+ let e = fD(t, this.collection);
+ return (this.direction === "rtl" ? hD(e)?.key : pD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index - 1) : hD(r, t.index + 1)) ?? null;
+ let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index - 1) : mD(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29137,13 +29137,13 @@ var Vk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = pD(t, this.collection);
- return (this.direction === "rtl" ? mD(e)?.key : gD(e)?.key) ?? null;
+ let e = fD(t, this.collection);
+ return (this.direction === "rtl" ? pD(e)?.key : hD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index + 1) : hD(r, t.index - 1)) ?? null;
+ let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index + 1) : mD(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29154,13 +29154,13 @@ var Vk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? mD(pD(e, this.collection))?.key ?? null : null;
+ return e ? pD(fD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = mD(pD(e, this.collection))?.key ?? null;
+ n = pD(fD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29170,13 +29170,13 @@ var Vk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? gD(pD(e, this.collection))?.key ?? null : null;
+ return e ? hD(fD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = gD(pD(e, this.collection))?.key ?? null;
+ n = hD(fD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29212,13 +29212,13 @@ var Vk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? mD(pD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? pD(fD(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Pce = class {
+}, Lce = class {
constructor(e) {
this.layout = e;
}
@@ -29231,15 +29231,15 @@ var Vk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Hk = /* @__PURE__ */ new WeakMap();
+}, zk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Fce(e, t, n) {
+function Rce(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 = SD({
+ let h = xD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Fw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Vk({
+ }), { direction: g } = Pw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Rk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29256,7 +29256,7 @@ function Fce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = fD({
+ ]), { collectionProps: y } = dD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29264,8 +29264,8 @@ function Fce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = zC(e.id);
- Hk.set(t, {
+ }), b = RC(e.id);
+ zk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29274,42 +29274,42 @@ function Fce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = xO({
+ let x = bO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Uw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? AS(e.currentTarget, G(e)) || m.setFocused(!1) : AS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Hw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? kS(e.currentTarget, G(e)) || m.setFocused(!1) : kS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = bO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = yO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), vO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), _O({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Uk = /* @__PURE__ */ new WeakMap();
-function Wk(e) {
+var Bk = /* @__PURE__ */ new WeakMap();
+function Vk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Gk(e, t) {
- let n = Uk.get(e);
+function Hk(e, t) {
+ let n = Bk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Wk(t)}`;
+ return `${n}-${Vk(t)}`;
}
-function Kk(e, t, n) {
- let r = Uk.get(e);
+function Uk(e, t, n) {
+ let r = Bk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Wk(t)}-${Wk(n)}`;
+ return `${r}-${Vk(t)}-${Vk(n)}`;
}
-function qk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Kk(e, t, n)).join(" ");
+function Wk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Uk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Jk = {};
-Jk = {
+var Gk = {};
+Gk = {
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: "طي",
@@ -29323,8 +29323,8 @@ Jk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Yk = {};
-Yk = {
+var Kk = {};
+Kk = {
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: "Свиване",
@@ -29338,8 +29338,8 @@ Yk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Xk = {};
-Xk = {
+var qk = {};
+qk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29353,8 +29353,8 @@ Xk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Zk = {};
-Zk = {
+var Jk = {};
+Jk = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29368,8 +29368,8 @@ Zk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Qk = {};
-Qk = {
+var Yk = {};
+Yk = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29383,8 +29383,8 @@ Qk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var $k = {};
-$k = {
+var Xk = {};
+Xk = {
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: "Σύμπτυξη",
@@ -29398,8 +29398,8 @@ $k = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var eA = {};
-eA = {
+var Zk = {};
+Zk = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29413,8 +29413,8 @@ eA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var tA = {};
-tA = {
+var Qk = {};
+Qk = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29428,8 +29428,8 @@ tA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var nA = {};
-nA = {
+var $k = {};
+$k = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29443,8 +29443,8 @@ nA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var rA = {};
-rA = {
+var eA = {};
+eA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29458,8 +29458,8 @@ rA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var iA = {};
-iA = {
+var tA = {};
+tA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29473,8 +29473,8 @@ iA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var aA = {};
-aA = {
+var nA = {};
+nA = {
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: "כווץ",
@@ -29488,8 +29488,8 @@ aA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var oA = {};
-oA = {
+var rA = {};
+rA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29503,8 +29503,8 @@ oA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var sA = {};
-sA = {
+var iA = {};
+iA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29518,8 +29518,8 @@ sA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var cA = {};
-cA = {
+var aA = {};
+aA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29533,8 +29533,8 @@ cA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var lA = {};
-lA = {
+var oA = {};
+oA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29548,8 +29548,8 @@ lA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var uA = {};
-uA = {
+var sA = {};
+sA = {
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: "접기",
@@ -29563,8 +29563,8 @@ uA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var dA = {};
-dA = {
+var cA = {};
+cA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29578,8 +29578,8 @@ dA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var fA = {};
-fA = {
+var lA = {};
+lA = {
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",
@@ -29593,8 +29593,8 @@ fA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var pA = {};
-pA = {
+var uA = {};
+uA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29608,8 +29608,8 @@ pA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var mA = {};
-mA = {
+var dA = {};
+dA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29623,8 +29623,8 @@ mA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var hA = {};
-hA = {
+var fA = {};
+fA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29638,8 +29638,8 @@ hA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var gA = {};
-gA = {
+var pA = {};
+pA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29653,8 +29653,8 @@ gA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var _A = {};
-_A = {
+var mA = {};
+mA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29668,8 +29668,8 @@ _A = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var vA = {};
-vA = {
+var hA = {};
+hA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29683,8 +29683,8 @@ vA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var yA = {};
-yA = {
+var gA = {};
+gA = {
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: "Свернуть",
@@ -29698,8 +29698,8 @@ yA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var bA = {};
-bA = {
+var _A = {};
+_A = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29713,8 +29713,8 @@ bA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var xA = {};
-xA = {
+var vA = {};
+vA = {
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",
@@ -29728,8 +29728,8 @@ xA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var SA = {};
-SA = {
+var yA = {};
+yA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29743,8 +29743,8 @@ SA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var CA = {};
-CA = {
+var bA = {};
+bA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29758,8 +29758,8 @@ CA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var wA = {};
-wA = {
+var xA = {};
+xA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29773,8 +29773,8 @@ wA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var TA = {};
-TA = {
+var SA = {};
+SA = {
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: "Згорнути",
@@ -29788,8 +29788,8 @@ TA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var EA = {};
-EA = {
+var CA = {};
+CA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29803,8 +29803,8 @@ EA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var DA = {};
-DA = {
+var wA = {};
+wA = {
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: "收合",
@@ -29818,45 +29818,45 @@ DA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var OA = {};
-OA = {
- "ar-AE": Jk,
- "bg-BG": Yk,
- "cs-CZ": Xk,
- "da-DK": Zk,
- "de-DE": Qk,
- "el-GR": $k,
- "en-US": eA,
- "es-ES": tA,
- "et-EE": nA,
- "fi-FI": rA,
- "fr-FR": iA,
- "he-IL": aA,
- "hr-HR": oA,
- "hu-HU": sA,
- "it-IT": cA,
- "ja-JP": lA,
- "ko-KR": uA,
- "lt-LT": dA,
- "lv-LV": fA,
- "nb-NO": pA,
- "nl-NL": mA,
- "pl-PL": hA,
- "pt-BR": gA,
- "pt-PT": _A,
- "ro-RO": vA,
- "ru-RU": yA,
- "sk-SK": bA,
- "sl-SI": xA,
- "sr-SP": SA,
- "sv-SE": CA,
- "tr-TR": wA,
- "uk-UA": TA,
- "zh-CN": EA,
- "zh-TW": DA
+var TA = {};
+TA = {
+ "ar-AE": Gk,
+ "bg-BG": Kk,
+ "cs-CZ": qk,
+ "da-DK": Jk,
+ "de-DE": Yk,
+ "el-GR": Xk,
+ "en-US": Zk,
+ "es-ES": Qk,
+ "et-EE": $k,
+ "fi-FI": eA,
+ "fr-FR": tA,
+ "he-IL": nA,
+ "hr-HR": rA,
+ "hu-HU": iA,
+ "it-IT": aA,
+ "ja-JP": oA,
+ "ko-KR": sA,
+ "lt-LT": cA,
+ "lv-LV": lA,
+ "nb-NO": uA,
+ "nl-NL": dA,
+ "pl-PL": fA,
+ "pt-BR": pA,
+ "pt-PT": mA,
+ "ro-RO": hA,
+ "ru-RU": gA,
+ "sk-SK": _A,
+ "sl-SI": vA,
+ "sr-SP": yA,
+ "sv-SE": bA,
+ "tr-TR": xA,
+ "uk-UA": SA,
+ "zh-CN": CA,
+ "zh-TW": wA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Ice = class extends Vk {
+var zce = class extends Rk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29864,7 +29864,7 @@ var Ice = class extends Vk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = mD(pD(n, this.collection));
+ let e = pD(fD(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29885,13 +29885,13 @@ var Ice = class extends Vk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of pD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of fD(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...pD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...fD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29920,7 +29920,7 @@ var Ice = class extends Vk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of pD(o, this.collection)) {
+ for (let r of fD(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29933,14 +29933,14 @@ var Ice = class extends Vk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Lce(e) {
+function Bce(e) {
return e && e.__esModule ? e.default : e;
}
-function Rce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = SD({
+function Vce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = xD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Fw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Ice({
+ }), { direction: c } = Pw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new zce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29959,51 +29959,51 @@ function Rce(e, t, n) {
s,
a,
o
- ]), d = zC(e.id);
- Uk.set(t, d);
- let { gridProps: f } = Fce({
+ ]), d = RC(e.id);
+ Bk.set(t, d);
+ let { gridProps: f } = Rce({
...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 = Vw(Lce(OA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Bw(Bce(TA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = RT(g);
- return jT(() => {
- g && AT(g, "assertive", 500);
+ ]), _ = LT(g);
+ return AT(() => {
+ g && kT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function kA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Fw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Hk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function EA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Pw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = zk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = TT(n.current);
+ let e = wT(n.current);
if (p === "child") {
- let i = jS(CS(n.current));
- if (NS(n.current) && n.current !== i) return;
- let a = CS(n.current);
+ let i = AS(SS(n.current));
+ if (MS(n.current) && n.current !== i) return;
+ let a = SS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && AS(n.current, e)) {
- PC(e);
+ if (e && m.current === r.key && kS(n.current, e)) {
+ NC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? AA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? DA(e) : e.firstChild();
if (o) {
- PC(o);
+ NC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !NS(n.current)) && PC(n.current);
+ (m.current != null && r.key !== m.current || !MS(n.current)) && NC(n.current);
}
- }, { itemProps: _, isPressed: v } = CO({
+ }, { itemProps: _, isPressed: v } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30015,44 +30015,44 @@ function kA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = jS(CS(n.current));
- if (!AS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = TT(n.current);
+ let i = AS(SS(n.current));
+ if (!kS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = wT(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : AA(a), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
+ p === "cell" && l === "rtl" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : DA(a), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? AA(a) : a.firstChild(), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
+ p === "cell" && l === "ltr" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? DA(a) : a.firstChild(), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && kS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = jS(CS(n.current));
- if (AS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = AS(SS(n.current));
+ if (kS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = TT(n.current, { tabbable: !0 });
+ let t = wT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30063,9 +30063,9 @@ function kA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && AS(n.current, i) && (h.current = i), SC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && jS(CS(n.current)) === n.current && g();
+ n.current && kS(n.current, i) && (h.current = i), xC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && kS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && AS(SS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30080,7 +30080,7 @@ function kA(e, t, n) {
isPressed: v
};
}
-function AA(e) {
+function DA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30088,32 +30088,32 @@ function AA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function zce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = kA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Kk(t, e.node.parentKey, a)), {
+function Hce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = EA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Uk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Bce(e) {
+function Uce(e) {
return e && e.__esModule ? e.default : e;
}
-function Vce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = kA({
+function Wce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = EA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = rT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = nT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = $C({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !QS() && (u = d ? f : "none");
- let p = Vw(Bce(OA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && QS() && (m = `${m}, ${p.format(f)}`));
- let h = RT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = QC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !ZS() && (u = d ? f : "none");
+ let p = Bw(Uce(TA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && ZS() && (m = `${m}, ${p.format(f)}`));
+ let h = LT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30124,7 +30124,7 @@ function Vce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Gk(t, r.key),
+ id: Hk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30132,17 +30132,17 @@ function Vce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Hce(e) {
+function Gce(e) {
return e && e.__esModule ? e.default : e;
}
-function Uce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(Hce(OA), "@react-aria/table"), d = zC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Fw(), b = (0, F.useCallback)((e) => {
+function Kce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Bw(Gce(TA), "@react-aria/table"), d = RC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Pw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && PC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && NC(i.current)), m.current = null;
}, [
t,
i,
@@ -30150,14 +30150,14 @@ function Uce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = YC({ shortcuts: {
+ }, { keyboardProps: w } = JC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = cE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = sE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30173,12 +30173,12 @@ function Uce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = TC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = wC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = RT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = LT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${Gk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Hk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30186,11 +30186,11 @@ function Uce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && PC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Dw(b);
+ n.current && NC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ew(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = jS() === n.current, ne(r);
+ h.current = AS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30206,7 +30206,7 @@ function Uce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = rT({
+ }, { pressProps: I } = nT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30214,7 +30214,7 @@ function Uce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = uE();
+ }), { visuallyHiddenProps: ie } = lE();
return {
resizerProps: K(w, {
...E,
@@ -30233,19 +30233,19 @@ function Uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Wce(e, t, n) {
+function qce(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 };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Gce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Hk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = CO({
+function Jce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = zk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = SO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? FC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? PC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30259,10 +30259,10 @@ function Gce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Kce(e) {
+function Yce(e) {
return e && e.__esModule ? e.default : e;
}
-var jA = {
+var OA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30272,21 +30272,21 @@ var jA = {
rtl: "ArrowRight"
}
};
-function qce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Gce(e, t, n), { direction: s } = Fw();
+function Xce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Jce(e, t, n), { direction: s } = Pw();
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 = Vw(Kce(OA), "@react-aria/table"), u = kw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Bw(Yce(TA), "@react-aria/table"), u = Ow({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": qk(t, r.key)
+ "aria-labelledby": Wk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = MA(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 = MA(t.collection, a);
+ let n = kA(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 = kA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === jA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === jA.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 === OA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === OA.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,
@@ -30304,42 +30304,42 @@ function qce(e, t, n) {
};
}
}
- let p = nC(r.props), m = o.hasAction ? p : {};
+ let p = tC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": qk(t, r.key)
+ "aria-labelledby": Wk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function MA(e, t) {
+function kA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Jce() {
+function Zce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function NA() {
- return Jce();
+function AA() {
+ return Zce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Yce(e) {
+function Qce(e) {
return e && e.__esModule ? e.default : e;
}
-function Xce(e, t) {
- let { key: n } = e, { checkboxProps: r } = kO(e, t);
+function $ce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = OO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${qk(t, n)}`
+ "aria-labelledby": `${r.id} ${Wk(t, n)}`
} };
}
-function Zce(e) {
+function ele(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Vw(Yce(OA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Bw(Qce(TA), "@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,
@@ -30347,22 +30347,22 @@ function Zce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var PA = /* @__PURE__ */ new WeakMap();
-function FA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${PA.get(e)}-${n}-${t}`) : "";
+var jA = /* @__PURE__ */ new WeakMap();
+function MA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${jA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Qce(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 } = CO({
+function tle(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 } = SO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = FA(t, r, "tab"), m = FA(t, r, "tabpanel"), { tabIndex: h } = d, g = Uw(u?.props, { labelable: !0 });
+ }), p = MA(t, r, "tab"), m = MA(t, r, "tabpanel"), { tabIndex: h } = d, g = Hw(u?.props, { labelable: !0 });
delete g.id;
- let _ = rC(u?.props), { focusableProps: v } = $C({
+ let _ = nC(u?.props), { focusableProps: v } = QC({
...u?.props,
isDisabled: l
}, n);
@@ -30381,7 +30381,7 @@ function Qce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var $ce = class {
+var nle = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30424,11 +30424,11 @@ var $ce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function ele(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Fw(), { collectionProps: l } = fD({
+function rle(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Pw(), { collectionProps: l } = dD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new $ce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new nle(a, c, r, s), [
a,
s,
r,
@@ -30438,9 +30438,9 @@ function ele(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = zC();
- return PA.set(t, u), { tabListProps: {
- ...K(l, kw({
+ }), u = RC();
+ return jA.set(t, u), { tabListProps: {
+ ...K(l, Ow({
...e,
id: u
})),
@@ -30450,12 +30450,12 @@ function ele(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function tle(e, t, n) {
- let r = bO(n) ? void 0 : 0, i = FA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(kw({
+function ile(e, t, n) {
+ let r = yO(n) ? void 0 : 0, i = MA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(Ow({
...e,
id: i,
- "aria-labelledby": FA(t, t?.selectedKey, "tab")
+ "aria-labelledby": MA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30464,265 +30464,265 @@ function tle(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function nle(e, t, n) {
- let { gridProps: r } = Wse(e, t, n);
+function ale(e, t, n) {
+ let { gridProps: r } = Gse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var IA = {};
-IA = {
+var NA = {};
+NA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var LA = {};
-LA = {
+var PA = {};
+PA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var RA = {};
-RA = {
+var FA = {};
+FA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var zA = {};
-zA = {
+var IA = {};
+IA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var BA = {};
-BA = {
+var LA = {};
+LA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var VA = {};
-VA = {
+var RA = {};
+RA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var HA = {};
-HA = {
+var zA = {};
+zA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var UA = {};
-UA = {
+var BA = {};
+BA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var WA = {};
-WA = {
+var VA = {};
+VA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var GA = {};
-GA = {
+var HA = {};
+HA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var KA = {};
-KA = {
+var UA = {};
+UA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var qA = {};
-qA = {
+var WA = {};
+WA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var JA = {};
-JA = {
+var GA = {};
+GA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var YA = {};
-YA = {
+var KA = {};
+KA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var XA = {};
-XA = {
+var qA = {};
+qA = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var ZA = {};
-ZA = {
+var JA = {};
+JA = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var QA = {};
-QA = {
+var YA = {};
+YA = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var $A = {};
-$A = {
+var XA = {};
+XA = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var ej = {};
-ej = {
+var ZA = {};
+ZA = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var tj = {};
-tj = {
+var QA = {};
+QA = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var nj = {};
-nj = {
+var $A = {};
+$A = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var rj = {};
-rj = {
+var ej = {};
+ej = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var ij = {};
-ij = {
+var tj = {};
+tj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var aj = {};
-aj = {
+var nj = {};
+nj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var oj = {};
-oj = {
+var rj = {};
+rj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var sj = {};
-sj = {
+var ij = {};
+ij = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var cj = {};
-cj = {
+var aj = {};
+aj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var lj = {};
-lj = {
+var oj = {};
+oj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var uj = {};
-uj = {
+var sj = {};
+sj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var dj = {};
-dj = {
+var cj = {};
+cj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var fj = {};
-fj = {
+var lj = {};
+lj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var pj = {};
-pj = {
+var uj = {};
+uj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var mj = {};
-mj = {
+var dj = {};
+dj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var hj = {};
-hj = {
+var fj = {};
+fj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var gj = {};
-gj = {
- "ar-AE": IA,
- "bg-BG": LA,
- "cs-CZ": RA,
- "da-DK": zA,
- "de-DE": BA,
- "el-GR": VA,
- "en-US": HA,
- "es-ES": UA,
- "et-EE": WA,
- "fi-FI": GA,
- "fr-FR": KA,
- "he-IL": qA,
- "hr-HR": JA,
- "hu-HU": YA,
- "it-IT": XA,
- "ja-JP": ZA,
- "ko-KR": QA,
- "lt-LT": $A,
- "lv-LV": ej,
- "nb-NO": tj,
- "nl-NL": nj,
- "pl-PL": rj,
- "pt-BR": ij,
- "pt-PT": aj,
- "ro-RO": oj,
- "ru-RU": sj,
- "sk-SK": cj,
- "sl-SI": lj,
- "sr-SP": uj,
- "sv-SE": dj,
- "tr-TR": fj,
- "uk-UA": pj,
- "zh-CN": mj,
- "zh-TW": hj
+var pj = {};
+pj = {
+ "ar-AE": NA,
+ "bg-BG": PA,
+ "cs-CZ": FA,
+ "da-DK": IA,
+ "de-DE": LA,
+ "el-GR": RA,
+ "en-US": zA,
+ "es-ES": BA,
+ "et-EE": VA,
+ "fi-FI": HA,
+ "fr-FR": UA,
+ "he-IL": WA,
+ "hr-HR": GA,
+ "hu-HU": KA,
+ "it-IT": qA,
+ "ja-JP": JA,
+ "ko-KR": YA,
+ "lt-LT": XA,
+ "lv-LV": ZA,
+ "nb-NO": QA,
+ "nl-NL": $A,
+ "pl-PL": ej,
+ "pt-BR": tj,
+ "pt-PT": nj,
+ "ro-RO": rj,
+ "ru-RU": ij,
+ "sk-SK": aj,
+ "sl-SI": oj,
+ "sr-SP": sj,
+ "sv-SE": cj,
+ "tr-TR": lj,
+ "uk-UA": uj,
+ "zh-CN": dj,
+ "zh-TW": fj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function rle(e) {
+function ole(e) {
return e && e.__esModule ? e.default : e;
}
-function _j(e, t, n) {
- let { node: r } = e, i = Gse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(rle(gj), "@react-aria/tree"), s = {
+function mj(e, t, n) {
+ let { node: r } = e, i = Kse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Bw(ole(pj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...kw({
+ ...Ow({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30733,15 +30733,15 @@ function _j(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var vj = "(prefers-reduced-motion: reduce)", ile = () => matchMedia(vj).matches, ale = (e) => {
- let t = matchMedia(vj);
+var hj = "(prefers-reduced-motion: reduce)", sle = () => matchMedia(hj).matches, cle = (e) => {
+ let t = matchMedia(hj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, yj = /* @__PURE__ */ new Map(), bj = () => {
+}, gj = /* @__PURE__ */ new Map(), _j = () => {
let e = document.documentElement;
- yj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...yj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ gj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...gj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function ole({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(ale, ile, () => !1), { isFocusVisible: o } = EC(), s = a || o, c = {
+function lle({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Ex(), a = (0, F.useSyncExternalStore)(cle, sle, () => !1), { isFocusVisible: o } = TC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30749,12 +30749,12 @@ function ole({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- yj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), bj();
+ gj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), _j();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), yj.delete(e), bj();
+ n.disconnect(), window.removeEventListener("resize", t), gj.delete(e), _j();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(dS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30787,17 +30787,17 @@ function ole({ children: e, count: t, label: n }) {
}), e]
});
}
-function xj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(ole, { ...t }, "selection") : null });
+function vj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(kx, { children: e ? /* @__PURE__ */ (0, I.jsx)(lle, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var Sj = {
+var yj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function sle(e, t = !1) {
+function ule(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30813,7 +30813,7 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ yj
];
case "junk": return [
t ? {
@@ -30834,7 +30834,7 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ yj
];
case "follow": return [
{
@@ -30855,7 +30855,7 @@ function sle(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- Sj
+ yj
];
default: return [
{
@@ -30889,38 +30889,38 @@ function sle(e, t = !1) {
glyph: "trash",
danger: !0
},
- Sj
+ yj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Cj = null, wj = {
+var bj = null, xj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Tj = /* @__PURE__ */ new Set();
-function cle(e) {
- return Tj.add(e), () => {
- Tj.delete(e);
+}, Sj = /* @__PURE__ */ new Set();
+function dle(e) {
+ return Sj.add(e), () => {
+ Sj.delete(e);
};
}
-function lle() {
- for (let e of [...Tj]) e();
+function fle() {
+ for (let e of [...Sj]) e();
}
-var ule = { render(e) {
- wj = e, (0, Rt.flushSync)(lle);
+var ple = { render(e) {
+ xj = e, (0, Rt.flushSync)(fle);
} };
-function dle(e) {
- return Cj = e, ule;
+function mle(e) {
+ return bj = e, ple;
}
-function fle() {
- let e = (0, F.useSyncExternalStore)(cle, () => wj);
- return Cj ? /* @__PURE__ */ (0, I.jsx)(ple, {
- host: Cj,
+function hle() {
+ let e = (0, F.useSyncExternalStore)(dle, () => xj);
+ return bj ? /* @__PURE__ */ (0, I.jsx)(gle, {
+ host: bj,
props: e
}) : null;
}
-function ple({ host: e, props: t }) {
+function gle({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30930,11 +30930,11 @@ function ple({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(xj, {
+ children: /* @__PURE__ */ (0, I.jsx)(vj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: sle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: ule(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30950,11 +30950,11 @@ function ple({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Ej(e, t, n, r) {
+function Cj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function mle(e, t) {
+function _le(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30973,7 +30973,7 @@ function mle(e, t) {
};
}
// src/sort-preferences.ts
-var Dj = [
+var wj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30982,7 +30982,7 @@ var Dj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Oj = ["release", "发行时间"], kj = [...Dj, Oj].map(([e]) => e), Aj = {
+], Tj = ["release", "发行时间"], Ej = [...wj, Tj].map(([e]) => e), Dj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30991,43 +30991,43 @@ var Dj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, jj = {
+}, Oj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Mj = (e, t, n = Aj) => (n[e] || [])[+(t === "asc")] || "", Nj = (e, t = Aj) => t[e] ? "desc" : "";
-function Pj(e, t, n, r = Aj) {
+}, kj = (e, t, n = Dj) => (n[e] || [])[+(t === "asc")] || "", Aj = (e, t = Dj) => t[e] ? "desc" : "";
+function jj(e, t, n, r = Dj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Nj(e, r)
+ dir: Aj(e, r)
};
}
-function Fj(e, t, n) {
+function Mj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Ij(e, t, n, r, i = n) {
- let a = e ? jj[e] : void 0, o = a ? a[0] : e, s = o && kj.includes(o) ? o : i;
- return Aj[s] ? {
+function Nj(e, t, n, r, i = n) {
+ let a = e ? Oj[e] : void 0, o = a ? a[0] : e, s = o && Ej.includes(o) ? o : i;
+ return Dj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Fj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Mj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Lj = [
+var Pj = [
"spot1",
"spot2",
"spot3"
-], hle = [
+], vle = [
"光晕一",
"光晕二",
"光晕三"
-], Rj = "native", zj = [
+], Fj = "native", Ij = [
[
"ash",
"灰雾",
@@ -31333,7 +31333,7 @@ var Lj = [
"rose"
],
[
- Rj,
+ Fj,
"玻璃原色",
{
spot1: {
@@ -31351,7 +31351,7 @@ var Lj = [
},
"blue"
]
-], Bj = (e) => e === Rj, Vj = [...zj.map(([e, t]) => [e, t]), ["custom", "自定义"]], gle = (e) => (Vj.find(([t]) => t === e) || Vj[0])[1], Hj = (e) => structuredClone((zj.find(([t]) => t === e) || zj[0])[2]), Uj = [
+], Lj = (e) => e === Fj, Rj = [...Ij.map(([e, t]) => [e, t]), ["custom", "自定义"]], yle = (e) => (Rj.find(([t]) => t === e) || Rj[0])[1], zj = (e) => structuredClone((Ij.find(([t]) => t === e) || Ij[0])[2]), Bj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31364,7 +31364,7 @@ var Lj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Wj = "blue", Gj = (e) => Uj.some(([t]) => t === e) ? e : Wj, _le = (e) => (zj.find(([t]) => t === e) || [])[3] || "blue", vle = [
+], Vj = "blue", Hj = (e) => Bj.some(([t]) => t === e) ? e : Vj, ble = (e) => (Ij.find(([t]) => t === e) || [])[3] || "blue", xle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31374,7 +31374,7 @@ var Lj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], yle = [
+], Sle = [
[
"gray",
"云灰",
@@ -31770,11 +31770,11 @@ var Lj = [
"霁蓝",
"#6686b8"
]
-], Kj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, qj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ble = (e, t) => `rgba(${[
+], Uj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Wj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Cle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, xle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, wle = {
strength: [
0,
100,
@@ -31800,7 +31800,7 @@ var Lj = [
100,
50
]
-}, Jj = {
+}, Gj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31808,56 +31808,56 @@ var Lj = [
speed: 100,
soften: 50,
size: 50,
- ...Hj("ash")
+ ...zj("ash")
};
-function Yj(e) {
- let t = e && typeof e == "object" ? e : {}, n = Vj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Hj(r === "custom" ? "ash" : r), a = {
+function Kj(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Rj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = zj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(xle)) a[e] = Kj(+t[e], n, r, i);
- for (let e of Lj) {
+ for (let [e, [n, r, i]] of Object.entries(wle)) a[e] = Uj(+t[e], n, r, i);
+ for (let e of Pj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: qj(r.color, o.color),
- alpha: Kj(+r.alpha, 0, 100, o.alpha)
+ color: Wj(r.color, o.color),
+ alpha: Uj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var Sle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Xj = /* @__PURE__ */ new WeakMap();
-function Cle(e, t) {
+var Tle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, qj = /* @__PURE__ */ new WeakMap();
+function Ele(e, t) {
if (!e) return;
- let n = Xj.get(e);
- n || (n = /* @__PURE__ */ new Map(), Xj.set(e, n));
- let r = t.on && !Bj(t.preset), i = (t, r) => {
+ let n = qj.get(e);
+ n || (n = /* @__PURE__ */ new Map(), qj.set(e, n));
+ let r = t.on && !Lj(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"), Lj.forEach((e, n) => {
+ 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"), Pj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, ble(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Cle(r.color, r.alpha));
});
}
-function wle(e, t) {
+function Dle(e, t) {
if (!e) return;
- let n = !t.on || Bj(t.preset);
+ let n = !t.on || Lj(t.preset);
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 ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var Tle = "peach.settings.v1", Ele = [
+var Ole = "peach.settings.v1", kle = [
"system",
"light",
"dark"
-], Zj = [
+], Jj = [
0,
7,
30,
90
-], Dle = [
+], Ale = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Qj = {
+], Yj = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31878,56 +31878,56 @@ var Tle = "peach.settings.v1", Ele = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Bl],
- homeGlow: Jj,
- accent: Wj,
+ homeGlow: Gj,
+ accent: Vj,
performerNameLanguage: "zh-CN"
-}, $j = (e, t, n) => t.includes(e) ? e : n;
-function Ole(e) {
+}, Xj = (e, t, n) => t.includes(e) ? e : n;
+function jle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Qj,
+ ...Yj,
...t
};
- n.followInitialDays = Zj.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Jj.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 = jj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Ej(+n.batchSize, 1, 200, 60), n.defaultSort = $j(n.defaultSort, kj, "seed"), n.hoverDelaySeconds = Ej(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Ej(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, 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 = Ej(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Ej(+n.relatedLimit, 0, 60, 20), n.feedLimit = Ej(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = $j(n.theme, Ele, "system"), n.performerNameLanguage = $j(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Yj(n.homeGlow), n.accent = Gj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
+ let a = Oj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Cj(+n.batchSize, 1, 200, 60), n.defaultSort = Xj(n.defaultSort, Ej, "seed"), n.hoverDelaySeconds = Cj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Cj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, 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 = Cj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Cj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Cj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = Xj(n.theme, kle, "system"), n.performerNameLanguage = Xj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Kj(n.homeGlow), n.accent = Hj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function kle(e) {
+function Mle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Ole(t);
+ return jle(t);
}
-var eM = null;
-function tM() {
- if (eM) return eM;
- let { settings: e, migrated: t } = kle(localStorage);
- return eM = mle(Tle, e), t && eM.save(), eM;
+var Zj = null;
+function Qj() {
+ if (Zj) return Zj;
+ let { settings: e, migrated: t } = Mle(localStorage);
+ return Zj = _le(Ole, e), t && Zj.save(), Zj;
}
-function nM(e, t, n = tM()) {
+function $j(e, t, n = Qj()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- Zj.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of Dle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Jj.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of Ale) 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 = Ej(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Qj.searchHistoryLimit && Ale(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Cj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Yj.searchHistoryLimit && Nle(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function Ale(e = tM()) {
+function Nle(e = Qj()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var jle = [
+var Ple = [
[
"system",
"跟随系统",
@@ -31943,31 +31943,31 @@ var jle = [
"深色",
"moon"
]
-], Mle = null, rM = () => Mle ??= matchMedia("(prefers-color-scheme: dark)"), iM = null;
-function Nle() {
- return iM || (iM = document.createElement("style"), iM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), iM.isConnected || document.head.append(iM), () => {
+], Fle = null, eM = () => Fle ??= matchMedia("(prefers-color-scheme: dark)"), tM = null;
+function Ile() {
+ return tM || (tM = document.createElement("style"), tM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), tM.isConnected || document.head.append(tM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), iM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), tM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function aM(e = tM().value.theme) {
- let t = Nle(), n = document.documentElement;
+function nM(e = Qj().value.theme) {
+ let t = Ile(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && rM().matches;
+ let r = e === "dark" || e === "system" && eM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var oM = !1;
-function Ple() {
- oM || (oM = !0, rM().addEventListener("change", () => {
- tM().value.theme === "system" && aM();
+var rM = !1;
+function Lle() {
+ rM || (rM = !0, eM().addEventListener("change", () => {
+ Qj().value.theme === "system" && nM();
}));
}
// src/appearance/layout.ts
-var sM = [[
+var iM = [[
"big",
"大图",
"maximize"
@@ -31975,7 +31975,7 @@ var sM = [[
"small",
"小图",
"layout-grid"
-]], cM = [[
+]], aM = [[
"big",
"大图",
"maximize"
@@ -31983,7 +31983,7 @@ var sM = [[
"small",
"小图",
"layout-grid"
-]], lM = [[
+]], oM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31991,127 +31991,127 @@ var sM = [[
"masonry",
"瀑布流",
"columns-2"
-]], uM = .75, dM = () => tM().value, fM = (e = dM()) => Qa(e.javLayout), Fle = (e = dM()) => Qa(e.homeLayout), pM = (e, t = dM()) => e ? Fle(t) : fM(t), mM = cM.map(([e]) => e), hM = lM.map(([e]) => e), gM = (e = dM()) => $j(e.photoSize, mM, "small"), _M = (e = dM()) => $j(e.photoLayout, hM, "masonry"), vM = null;
-function yM(e, t = dM()) {
+]], sM = .75, cM = () => Qj().value, lM = (e = cM()) => Qa(e.javLayout), Rle = (e = cM()) => Qa(e.homeLayout), uM = (e, t = cM()) => e ? Rle(t) : lM(t), dM = aM.map(([e]) => e), fM = oM.map(([e]) => e), pM = (e = cM()) => Xj(e.photoSize, dM, "small"), mM = (e = cM()) => Xj(e.photoLayout, fM, "masonry"), hM = null;
+function gM(e, t = cM()) {
let n = {
active: e.active,
- size: pM(e.home, t),
+ size: uM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = vM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (vM = n), vM;
+ }, r = hM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (hM = n), hM;
}
-function bM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? uM : 16 / 9;
+function _M(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? sM : 16 / 9;
}
-function Ile(e, t = tM()) {
+function zle(e, t = Qj()) {
t.value.homeLayout = Qa(e), t.save();
}
-function xM(e, t = tM()) {
+function vM(e, t = Qj()) {
t.value.javLayout = Qa(e), t.save();
}
-function Lle(e, t = tM()) {
+function Ble(e, t = Qj()) {
t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
}
-function Rle(e, t = tM()) {
- t.value.photoSize = $j(e, mM, "small"), t.save();
+function Vle(e, t = Qj()) {
+ t.value.photoSize = Xj(e, dM, "small"), t.save();
}
-function SM(e, t = tM()) {
- t.value.photoLayout = $j(e, hM, "masonry"), t.save();
+function yM(e, t = Qj()) {
+ t.value.photoLayout = Xj(e, fM, "masonry"), t.save();
}
// src/appearance/density.ts
-var CM = "density", wM = {
+var bM = "density", xM = {
big: "336px",
dense: "168px"
-}, TM = () => localStorage.getItem(CM) === "dense" ? "dense" : "big";
-function EM(e, t) {
- let [n, r] = cM;
+}, SM = () => localStorage.getItem(bM) === "dense" ? "dense" : "big";
+function CM(e, t) {
+ let [n, r] = aM;
if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- DM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ wM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function DM(e, t, n) {
+function wM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var OM = () => document.querySelector("#density");
-function kM(e = TM()) {
+var TM = () => document.querySelector("#density");
+function EM(e = SM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== wM[e] && t.style.setProperty("--tile", wM[e]), DM(document.body, "data-density", e);
- let n = OM();
- n && (DM(n, "aria-pressed", String(e === "dense")), DM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), EM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== xM[e] && t.style.setProperty("--tile", xM[e]), wM(document.body, "data-density", e);
+ let n = TM();
+ n && (wM(n, "aria-pressed", String(e === "dense")), wM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), CM(n, e === "big" ? "big" : "small"));
}
-function zle() {
- let e = TM() === "big" ? "dense" : "big";
- localStorage.setItem(CM, e), kM(e);
+function Hle() {
+ let e = SM() === "big" ? "dense" : "big";
+ localStorage.setItem(bM, e), EM(e);
}
-function Ble(e) {
- let t = OM();
- t && (DM(t, "aria-pressed", String(e === "small")), DM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), EM(t, e));
+function Ule(e) {
+ let t = TM();
+ t && (wM(t, "aria-pressed", String(e === "small")), wM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), CM(t, e));
}
// src/appearance/glow.ts
-function AM(e = tM()) {
- Cle(document.querySelector(".glowlayer"), e.value.homeGlow);
+function DM(e = Qj()) {
+ Ele(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var jM = 0;
-function MM(e = tM()) {
- jM ||= requestAnimationFrame(() => {
- jM = 0, AM(e);
+var OM = 0;
+function kM(e = Qj()) {
+ OM ||= requestAnimationFrame(() => {
+ OM = 0, DM(e);
});
}
-function NM(e = tM()) {
- wle(document.documentElement, e.value.homeGlow);
+function AM(e = Qj()) {
+ Dle(document.documentElement, e.value.homeGlow);
}
-function PM(e = tM()) {
+function jM(e = Qj()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var FM = (e, t, n) => ({
+var MM = (e, t, n) => ({
key: e,
label: t,
- native: Bj(e),
- fill: Bj(e) ? "" : Sle(n)
+ native: Lj(e),
+ fill: Lj(e) ? "" : Tle(n)
});
-function Vle(e) {
- let t = zj.map(([e, t, n]) => FM(e, t, Lj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(FM("custom", "自定义", Lj.map((t) => e[t].color))), t;
+function Wle(e) {
+ let t = Ij.map(([e, t, n]) => MM(e, t, Pj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(MM("custom", "自定义", Pj.map((t) => e[t].color))), t;
}
-var Hle = Uj;
-function Ule(e, t = tM()) {
+var Gle = Bj;
+function Kle(e, t = Qj()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Hj(e)), t.value.accent = _le(e), t.save(), MM(t), NM(t), PM(t);
+ n.preset = e, Object.assign(n, zj(e)), t.value.accent = ble(e), t.save(), kM(t), AM(t), jM(t);
}
-function Wle(e, t = tM()) {
- t.value.accent = Gj(e), t.save(), PM(t);
+function qle(e, t = Qj()) {
+ t.value.accent = Hj(e), t.save(), jM(t);
}
-function Gle(e = tM()) {
+function Jle(e = Qj()) {
let t = e.value.homeGlow;
- t.preset = Jj.preset, Object.assign(t, Hj(t.preset)), e.value.accent = Wj, e.save(), MM(e), NM(e), PM(e);
+ t.preset = Gj.preset, Object.assign(t, zj(t.preset)), e.value.accent = Vj, e.save(), kM(e), AM(e), jM(e);
}
-function IM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Bj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function NM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Lj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Kle(e, t = tM()) {
- return IM(e, t.value.homeGlow), t.subscribe(() => IM(e, t.value.homeGlow));
+function Yle(e, t = Qj()) {
+ return NM(e, t.value.homeGlow), t.subscribe(() => NM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function LM({ store: e, label: t, hidden: n }) {
+function PM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Vle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Wle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Ule(t.key, e),
+ onClick: () => Kle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32122,14 +32122,14 @@ function LM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var RM = null;
-function qle(e) {
- RM = e;
+var FM = null;
+function Xle(e) {
+ FM = e;
}
-function Jle() {
- return RM ? /* @__PURE__ */ (0, I.jsx)(Yle, { host: RM }) : null;
+function Zle() {
+ return FM ? /* @__PURE__ */ (0, I.jsx)(Qle, { host: FM }) : null;
}
-function Yle({ host: e }) {
+function Qle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32141,11 +32141,11 @@ function Yle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Gle(t),
+ onClick: () => Jle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(LM, {
+ /* @__PURE__ */ (0, I.jsx)(PM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32159,14 +32159,14 @@ function Yle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Hle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Gle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Wle(e, t),
+ onClick: () => qle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32184,31 +32184,31 @@ function Yle({ host: e }) {
] });
}
// src/player/host.ts
-var zM = null;
-function Xle(e) {
- zM = e;
+var IM = null;
+function $le(e) {
+ IM = e;
}
-function BM() {
- if (!zM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return zM;
+function LM() {
+ if (!IM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return IM;
}
// src/player/menu.ts
-var VM = null;
-function Zle(e) {
- VM = e;
+var RM = null;
+function eue(e) {
+ RM = e;
}
-function Qle() {
+function tue() {
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 HM = null, UM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function WM() {
+var zM = null, BM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function VM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), HM &&= (HM(), null);
+ }), zM &&= (zM(), null);
}
-async function $le(e) {
+async function nue(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32221,8 +32221,8 @@ async function $le(e) {
return t.remove(), n;
}
}
-function eue(e) {
- let t = !!VM?.inMiniplayer(e), n = e.peachItem, r = VM?.kind(e) ?? "item", i = (t) => {
+function rue(e) {
+ let t = !!RM?.inMiniplayer(e), n = e.peachItem, r = RM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32238,7 +32238,7 @@ function eue(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- $le(i(e)).then((e) => BM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ nue(i(e)).then((e) => LM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32250,11 +32250,11 @@ function eue(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => VM?.expand()
+ run: () => RM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => VM?.toMiniplayer()
+ run: () => RM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32277,29 +32277,29 @@ function eue(e) {
run: () => s.click()
}), o;
}
-function tue(e, t, n) {
- let r = Qle();
- WM();
- let i = BM().stage();
+function iue(e, t, n) {
+ let r = tue();
+ VM();
+ let i = LM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = eue(e);
+ let a = rue(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}">${UM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? UM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${BM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? BM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), cs(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)];
- WM(), n?.run();
+ VM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || WM();
+ r.contains(e.target) || VM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), WM();
+ e.preventDefault(), e.stopPropagation(), VM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32307,49 +32307,49 @@ function tue(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && WM();
+ ds(t, e.el()) && VM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), HM = () => {
+ }, 0), zM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function nue(e) {
+function aue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), tue(e, t.clientX, t.clientY));
- }), e.on("dispose", WM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), iue(e, t.clientX, t.clientY));
+ }), e.on("dispose", VM);
}
// src/player/registry.ts
-var GM = null, KM = () => GM;
-function qM(e) {
- GM = e;
+var HM = null, UM = () => HM;
+function WM(e) {
+ HM = e;
}
-function JM(e) {
+function GM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function YM(e) {
+function KM(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 rue(e) {
+function oue(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 XM = 3e3;
-function ZM(e, t) {
+var qM = 3e3;
+function JM(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function iue(e) {
+function sue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32364,10 +32364,10 @@ function iue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = rue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = oue(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 > XM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > qM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32376,55 +32376,55 @@ function iue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > XM;) t.shift();
+ }); t.length > 2 && a - t[0].at > qM;) 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 QM = 24;
-function $M(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > QM && e.splice(0, e.length - QM);
+var YM = 24;
+function XM(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > YM && e.splice(0, e.length - YM);
}
-var eN = "peach-player-panel";
-function tN(e, t, n, r) {
- let i = [...Array(Math.max(0, QM - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var ZM = "peach-player-panel";
+function QM(e, t, n, r) {
+ let i = [...Array(Math.max(0, YM - 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="${z(r)}">${o}</span>`;
}
-function aue() {
+function cue() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("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 nN(e, t = "") {
+function $M(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 rN(e, t = "") {
- let n = nN(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 eN(e, t = "") {
+ let n = $M(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 iN(e, t, n = "", r = null) {
+function tN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : rN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : eN(t, n);
}
-function aN(e) {
+function nN(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 oue(e, t) {
- return e > 0 ? aN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : aN(0);
+function lue(e, t) {
+ return e > 0 ? nN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : nN(0);
}
// src/player/subtitle-style.ts
-var oN = {
+var rN = {
font: {
label: "字体",
values: [
@@ -32527,7 +32527,7 @@ var oN = {
["shadow", "阴影"]
]
}
-}, sN = {
+}, iN = {
font: "sans",
size: "100",
color: "white",
@@ -32537,7 +32537,7 @@ var oN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, cN = "peach.caption-style.v1", sue = {
+}, aN = "peach.caption-style.v1", uue = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32546,7 +32546,7 @@ var oN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, cue = {
+}, due = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32554,28 +32554,28 @@ var oN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, lue = {
+}, fue = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function uue() {
+function pue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(cN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(aN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(sN).map(([t, n]) => [t, oN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(iN).map(([t, n]) => [t, rN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function lN(e, t, n, r) {
- let i = uue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function oN(e, t, n, r) {
+ let i = pue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${sue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", cue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", lue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${uue[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", due[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", fue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32591,15 +32591,15 @@ function lN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...sN,
+ ...iN,
...e.caption_style
};
- for (let e of Object.keys(sN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(iN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(cN);
+ e = !!localStorage.getItem(aN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32607,18 +32607,18 @@ function lN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- oN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ rN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(sN).forEach((e) => a.add(e)), i = { ...sN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(iN).forEach((e) => a.add(e)), i = { ...iN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = class {
+var sN = /* @__PURE__ */ new Map(), cN = /* @__PURE__ */ new WeakMap(), mue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32646,7 +32646,7 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await uN.get(this.url)?.catch(() => {});
+ await sN.get(this.url)?.catch(() => {});
let e = await Tn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32658,7 +32658,7 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (uN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (sN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32685,8 +32685,8 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
this.changed();
}
});
- return uN.set(this.url, t), t.finally(() => {
- uN.get(this.url) === t && uN.delete(this.url);
+ return sN.set(this.url, t), t.finally(() => {
+ sN.get(this.url) === t && sN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32695,12 +32695,12 @@ var uN = /* @__PURE__ */ new Map(), dN = /* @__PURE__ */ new WeakMap(), due = cl
} catch {}
}
};
-function fN(e) {
- let t = dN.get(e);
- return t || (t = new due(e), dN.set(e, t)), t;
+function lN(e) {
+ let t = cN.get(e);
+ return t || (t = new mue(e), cN.set(e, t)), t;
}
-function pN(e, t) {
- let n = fN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function uN(e, t) {
+ let n = lN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32713,7 +32713,7 @@ function pN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var mN = class {
+var dN = class {
player;
video;
changed;
@@ -32724,7 +32724,7 @@ var mN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = fN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = lN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32821,7 +32821,7 @@ var mN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, hN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", fue = class {
+}, fN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", hue = class {
player;
video;
panels;
@@ -32840,7 +32840,7 @@ var mN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = lN(e.el(), t, this.cleanup.signal, fN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = hN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = oN(e.el(), t, this.cleanup.signal, lN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = fN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32850,7 +32850,7 @@ var mN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new mN(e, t, () => {
+ }), this.session = new dN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32898,7 +32898,7 @@ var mN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(oN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(rN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32910,7 +32910,7 @@ var mN = class {
}
styleOptions(e) {
this.page = "style";
- let t = oN[e];
+ let t = rN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -33026,7 +33026,7 @@ var mN = class {
}
};
// src/player/timeline.ts
-function pue(e, t) {
+function gue(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -33037,8 +33037,8 @@ function pue(e, t) {
let i = n - 1, a = t.cues[i];
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
-function mue(e, t) {
- let n = pue(e, t);
+function _ue(e, t) {
+ let n = gue(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33048,15 +33048,15 @@ function mue(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function hue(e, t, n, r = 0) {
+function vue(e, t, n, r = 0) {
return n + r * 2 >= t ? t / 2 : Math.min(t - r - n / 2, Math.max(r + n / 2, e));
}
-function gue(e) {
+function yue(e) {
if (!e || (e.source || "peach") !== "peach" || e.cues?.length || !(e.interval > 0) || e.frames <= 0) return 0;
let t = Math.ceil(e.frames / ((e.columns || 10) * (e.rows || 10)));
return t <= 12 ? t : 0;
}
-function gN(e, t, n = {}) {
+function pN(e, t, n = {}) {
let r = !!t?.id && n.thumbnail !== !1, i = document.createElement("div");
i.className = "vjs-peach-seek-preview", i.dataset.playerSeekPreview = "", i.hidden = !0, i.innerHTML = `${r ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, e.append(i);
let a = i.querySelector(".vjs-peach-seek-frame"), o = i.querySelector("img"), s = i.querySelector("span"), c = encodeURIComponent(String(t?.id ?? "")), l = (e, t) => {
@@ -33064,7 +33064,7 @@ function gN(e, t, n = {}) {
};
t?.width && t.height && l(t.width, t.height);
let u = null, d = "", f = !1, p = -1, m = !1, h = !1, g = t?.has_thumb !== !0, _ = [], v = (e, t) => `/timeline?id=${c}&s=${t}&source=${encodeURIComponent(e.source || "peach")}`, y = () => {
- if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < gue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < yue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33075,7 +33075,7 @@ function gN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = mue(e, n);
+ let r = _ue(e, n);
if (!r || !a || !o) return !1;
f = !!n.cues, !f && t?.width && t.height && l(t.width, t.height);
let i = v(n, r.page);
@@ -33102,7 +33102,7 @@ function gN(e, t, n = {}) {
let o = Math.min(1, Math.max(0, t)), c = r * o;
s.textContent = Yn(c), a && !(u && b(c, u)) && !(u?.fallback && b(c, u.fallback)) && x(o), i.hidden = !1;
let l = e.getBoundingClientRect().width;
- i.style.left = `${hue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${vue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33113,8 +33113,8 @@ function gN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function _N(e, t) {
- let n = 0, r = !1, i = fN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function mN(e, t) {
+ let n = 0, r = !1, i = lN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33142,7 +33142,7 @@ function _N(e, t) {
};
}
// src/player/pip.ts
-function _ue(e, t, n, r) {
+function bue(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33174,7 +33174,7 @@ function _ue(e, t, n, r) {
});
}
// src/player/controls.ts
-function vN(e, t, n = "") {
+function hN(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));
@@ -33185,27 +33185,27 @@ function vN(e, t, n = "") {
};
return o(), o;
}
-function yN(e, t) {
+function gN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function vue(e, t = !0) {
- let n = BM(), r = n.settings();
+function xue(e, t = !0) {
+ let n = LM(), 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 bN = /* @__PURE__ */ new WeakMap();
-function xN(e) {
+var _N = /* @__PURE__ */ new WeakMap();
+function vN(e) {
if (!e) return;
- let t = BM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), bN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = LM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), _N.get(e)?.(t ? "默认视图" : "影院模式");
}
-function SN(e, t = !0) {
- let n = BM(), r = n.settings();
+function yN(e, t = !0) {
+ let n = LM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), xN(i?.querySelector("[data-player-theater]")), JM(KM());
+ i?.toggleAttribute("data-theater", r.theaterMode), vN(i?.querySelector("[data-player-theater]")), GM(UM());
}
-function yue(e) {
- let t = BM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Sue(e) {
+ let t = LM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33228,9 +33228,9 @@ function yue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (BM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (LM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && BM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && LM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33239,7 +33239,7 @@ function yue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function CN(e, t, n = 0, r = null) {
+function bN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33249,8 +33249,8 @@ function CN(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]");
- vN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = _N(e, t), d = pN(e, t), f = fN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ hN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = mN(e, t), d = uN(e, t), f = lN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33289,11 +33289,11 @@ function CN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(eN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(ZM, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(eN, C);
+ document.addEventListener(ZM, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33309,15 +33309,15 @@ function CN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${BM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${LM().settings().ambientMode}">
${R("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>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${hN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${fN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- vue(!BM().settings().ambientMode), k();
+ xue(!LM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33421,8 +33421,8 @@ function CN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(eN, C), w && clearTimeout(w);
- }), p = new fue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(ZM, C), w && clearTimeout(w);
+ }), p = new hue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33431,21 +33431,21 @@ function CN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), bue(e, a), xue(e), (e) => {
+ }), y(), Cue(e, a), wue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function bue(e, t) {
+function Cue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = BM().settings().theaterMode, i = document.createElement("div");
+ let r = LM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- bN.set(a, vN(a, "影院模式", "T")), xN(a), a.onclick = (e) => {
- e.stopPropagation(), SN(!BM().settings().theaterMode);
+ _N.set(a, hN(a, "影院模式", "T")), vN(a), a.onclick = (e) => {
+ e.stopPropagation(), yN(!LM().settings().theaterMode);
};
}
-function xue(e) {
+function wue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33457,7 +33457,7 @@ function xue(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 = vN(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 = hN(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 ? "播放" : "暂停");
};
@@ -33468,7 +33468,7 @@ function xue(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 = vN(p, "静音", "M"), g = () => {
+ let h = hN(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 ? "取消静音" : "静音");
};
@@ -33494,7 +33494,7 @@ function xue(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 = vN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = hN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Yn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Yn(t)} / ${Yn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Yn(n)};点击显示已播放时间` : `已播放 ${Yn(t)},总时长 ${Yn(n)};点击显示剩余时间`);
};
@@ -33506,10 +33506,10 @@ function xue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- vN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), _ue(e, E, vN(E, "画中画"), (e) => BM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = vN(D, "全屏", "F"), A = () => {
+ hN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), bue(e, E, hN(E, "画中画"), (e) => LM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = hN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), JM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), GM(e);
};
e.on([
"fullscreenchange",
@@ -33530,7 +33530,7 @@ function xue(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = vN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = hN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33542,10 +33542,10 @@ function xue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function wN(e, t, n = {}) {
+function xN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
- let i = gN(r, t, n), a = (n) => {
+ let i = pN(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33565,13 +33565,13 @@ function wN(e, t, n = {}) {
i.dispose();
});
}
-function Sue(e, t) {
+function Tue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => qn(e.duration()) || qn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(BM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(LM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33612,11 +33612,11 @@ function Sue(e, t) {
} catch {}
});
}
-function TN(e) {
+function SN(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 EN(e, t) {
+function CN(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33632,35 +33632,35 @@ function EN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var DN = "peach.playback-position.v1", ON = /* @__PURE__ */ new WeakMap();
-function kN(e) {
- ON.get(e)?.(), ON.delete(e);
+var wN = "peach.playback-position.v1", TN = /* @__PURE__ */ new WeakMap();
+function EN(e) {
+ TN.get(e)?.(), TN.delete(e);
}
-function AN(e, t, n = null) {
+function DN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function Cue(e) {
+function Eue(e) {
try {
- let t = localStorage.getItem(`${DN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${wN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function wue(e, t) {
- let n = Cue(e);
+function Due(e, t) {
+ let n = Eue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Tue(e, t) {
- kN(t);
+function Oue(e, t) {
+ EN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${DN}:${e}`, String(r));
+ localStorage.setItem(`${wN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33674,7 +33674,7 @@ function Tue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), ON.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), TN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33686,19 +33686,19 @@ function Tue(e, t) {
});
}
// src/player/telemetry.ts
-var jN = /* @__PURE__ */ new WeakMap();
-function MN(e) {
- jN.get(e)?.(), jN.delete(e);
+var ON = /* @__PURE__ */ new WeakMap();
+function kN(e) {
+ ON.get(e)?.(), ON.delete(e);
}
-function NN(e, t, n, r) {
+function AN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), jN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), ON.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function PN(e, t, n = {}) {
+function jN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = qn(e.duration) || qn(t.duration);
@@ -33739,11 +33739,11 @@ function PN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, NN(t, l, u, () => {
+ }, AN(t, l, u, () => {
a++;
}), c();
}
-function Eue(e, t) {
+function kue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = qn(e.duration) || qn(t.duration);
(r || n) && (Tn("/api/follow/activity", {
@@ -33774,22 +33774,22 @@ function Eue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, NN(t, o, s, () => {});
+ }, AN(t, o, s, () => {});
}
// src/player/dispose.ts
-function FN(e) {
+function MN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (kN(t), MN(t));
+ t && (EN(t), kN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function IN() {
+function NN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33797,23 +33797,23 @@ function IN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function LN() {
- return IN();
+function PN() {
+ return NN();
}
-function RN(e, t) {
+function FN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Due(e) {
+function Aue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function zN(e, t) {
- let n = Due(e);
+async function IN(e, t) {
+ let n = Aue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33822,9 +33822,9 @@ async function zN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return RN(e, t);
+ return FN(e, t);
}
-function BN(e) {
+function LN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33833,22 +33833,22 @@ function BN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var VN = "";
-function HN() {
- return VN;
+var RN = "";
+function zN() {
+ return RN;
}
-function UN() {
- return VN ||= LN(), VN;
+function BN() {
+ return RN ||= PN(), RN;
}
-var Oue = (e) => RN(e, UN()), kue = (e) => zN(e, UN());
-function WN() {
- let e = VN;
- e && (VN = "", BN(e));
+var jue = (e) => FN(e, BN()), Mue = (e) => IN(e, BN());
+function VN() {
+ let e = RN;
+ e && (RN = "", LN(e));
}
// src/player/v10-player.ts
-var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
+var HN = (e) => typeof e == "string" ? [e] : e, Nue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${IN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${NN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33943,9 +33943,9 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => GN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => GN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => GN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => HN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => HN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => HN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -34000,7 +34000,7 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, jue = "/vendor/videojs/10.2.0/", Mue = [
+}, Pue = "/vendor/videojs/10.2.0/", Fue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34018,17 +34018,17 @@ var GN = (e) => typeof e == "string" ? [e] : e, Aue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], KN = null;
-function qN() {
- return KN ??= Promise.all(Mue.map((e) => import(
+], UN = null;
+function WN() {
+ return UN ??= Promise.all(Fue.map((e) => import(
/* @vite-ignore */
- `${jue}${e}`
-))).then(() => Aue).catch((e) => {
- throw KN = null, e;
- }), KN;
+ `${Pue}${e}`
+))).then(() => Nue).catch((e) => {
+ throw UN = null, e;
+ }), UN;
}
// src/player/immerse-player.ts
-var Nue = {
+var Iue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34040,45 +34040,45 @@ var Nue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Pue(e, t) {
+function Lue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([zN(n, r), qN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([IN(n, r), WN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = RN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = FN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Nue);
- i = t, t.peachItem = n, t.peachPlaybackKey = AN("item", n);
+ let t = s(e, Iue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = DN("item", n);
let r = new AbortController();
- lN(t.el(), e, r.signal, fN(t)), _N(t, e), pN(t, e), t.on("dispose", () => r.abort()), new mN(t, e), EN(t, n.id), l && t.one("error", () => {
+ oN(t.el(), e, r.signal, lN(t)), mN(t, e), uN(t, e), t.on("dispose", () => r.abort()), new dN(t, e), CN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- PN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ jN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, BN(r), i ? FN(i) : (e.pause(), MN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, LN(r), i ? MN(i) : (e.pause(), kN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var JN = !1, YN = () => JN;
-function Fue() {
- return JN = !0, () => {
- JN = !1;
+var GN = !1, KN = () => GN;
+function Rue() {
+ return GN = !0, () => {
+ GN = !1;
};
}
// src/player/detail-player.ts
-var XN = /* @__PURE__ */ new WeakMap(), ZN = null, QN = null, $N = null;
-function eP() {
- ZN &&= (clearInterval(ZN), null), QN &&= (clearInterval(QN), null), $N &&= (clearTimeout($N), null);
+var qN = /* @__PURE__ */ new WeakMap(), JN = null, YN = null, XN = null;
+function ZN() {
+ JN &&= (clearInterval(JN), null), YN &&= (clearInterval(YN), null), XN &&= (clearTimeout(XN), null);
}
-async function Iue(e, t, n, r = {}) {
- let i = KM();
+async function zue(e, t, n, r = {}) {
+ let i = UM();
if (i && !i.isDisposed()) return i;
- let a = BM(), o = r.resume ?? null;
+ let a = LM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : kue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : Mue(e), c;
try {
- c = await qN();
+ c = await WN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34104,7 +34104,7 @@ async function Iue(e, t, n, r = {}) {
} }
}
});
- qM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || AN("item", e), nue(l), l.on("loadedmetadata", () => {
+ WM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || DN("item", e), aue(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}`);
});
@@ -34112,7 +34112,7 @@ async function Iue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = iue(ZM(f, e.duration)), m = 0, h = !1, g = () => KM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = sue(JM(f, e.duration)), m = 0, h = !1, g = () => UM() === 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(() => {
@@ -34123,15 +34123,15 @@ async function Iue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- XN.set(l, y), y.updateStats = () => {
+ qN.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 = HN(), h = s ? nN(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 = zN(), h = s ? $M(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 = iN(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 = tN(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 = YM(t);
- $M(d.speed, x), $M(d.activity, C), $M(d.buffer, w);
+ let w = KM(t);
+ XM(d.speed, x), XM(d.activity, C), XM(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 ? [
"网络活动",
`${_ ? Xn(_) : "—"} · ${h.length} 请求`,
@@ -34149,17 +34149,17 @@ async function Iue(e, t, n, r = {}) {
[
"连接速度",
D,
- tN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ QM(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- tN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ QM(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- tN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ QM(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34175,15 +34175,15 @@ async function Iue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = iN(l, e.id, HN(), r ? null : p), a = r ? aN(i) : oue(i, YM(t));
+ let i = tN(l, e.id, zN(), r ? null : p), a = r ? nN(i) : lue(i, KM(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), QN && clearInterval(QN), QN = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), YN && clearInterval(YN), YN = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && ($N && clearTimeout($N), $N = setTimeout(() => {
- e.hidden = !0, QN &&= (clearInterval(QN), null);
+ e && (XN && clearTimeout(XN), XN = setTimeout(() => {
+ e.hidden = !0, YN &&= (clearInterval(YN), null);
}, 1400));
};
return l.on([
@@ -34194,7 +34194,7 @@ async function Iue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Oue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(jue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34202,13 +34202,13 @@ async function Iue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = CN(l, t, e.height, r.qualities ?? null);
+ let n = bN(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 = ZM(r, e.duration));
- }).catch(() => {}), wN(l, e, { thumbnail: !r.source }), r.guidePreview || Sue(l, e), TN(l), r.source || EN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = JM(r, e.duration));
+ }).catch(() => {}), xN(l, e, { thumbnail: !r.source }), r.guidePreview || Tue(l, e), SN(l), r.source || CN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34217,16 +34217,16 @@ async function Iue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Lue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function tP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Lue), e.querySelector("#playerStatsBtn")) return;
+var Bue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function QN(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Bue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = aue();
+ n.innerHTML = cue();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function nP(e, t) {
- let n = XN.get(e);
+function $N(e, t) {
+ let n = qN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34238,30 +34238,30 @@ function nP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), ZN &&= (clearInterval(ZN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), JN &&= (clearInterval(JN), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(eN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), ZN && clearInterval(ZN), ZN = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(ZM, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), JN && clearInterval(JN), JN = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(eN, t), s = () => document.removeEventListener(eN, t);
+ document.addEventListener(ZM, t), s = () => document.removeEventListener(ZM, t);
}
- let c = e.el().querySelector("video"), l = c ? yue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, eP()));
+ let c = e.el().querySelector("video"), l = c ? Sue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, ZN()));
};
return e.one("dispose", d), d;
}
-function rP(e, t) {
- if (t.kind === "immerse") return Pue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = YN(), c = BM(), l = t.chrome === !1 ? null : e.parentElement;
- l && tP(l, e);
- let u = AN(n, r, i?.index ?? null), d = {
+function eP(e, t) {
+ if (t.kind === "immerse") return Lue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = KN(), c = LM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && QN(l, e);
+ let u = DN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: wue(u, r),
+ time: Due(u, r),
autoplay: !1
}
};
@@ -34281,36 +34281,36 @@ function rP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (kN(h), f ? (KM() === f && (qM(null), eP()), FN(f)) : MN(h));
+ m(), !(f && a?.(f)) && (EN(h), f ? (UM() === f && (WM(null), ZN()), MN(f)) : kN(h));
};
- return Iue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (Tue(u, h), n === "follow" ? Eue(r, h) : (h.addEventListener("play", () => {
+ return zue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (Oue(u, h), n === "follow" ? kue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), PN(r, h, {
+ }, { once: !0 }), jN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = nP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = $N(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function iP(e) {
+function tP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function aP(e, t) {
+function nP(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);
}
// src/player/preview-player.ts
-function Rue(e, t, n) {
+function Vue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return qN().then((a) => {
+ return WN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34335,30 +34335,30 @@ function Rue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (CN(o, e), wN(o, null, { thumbnail: !1 }), TN(o));
+ r || o.isDisposed() || (bN(o, e), xN(o, null, { thumbnail: !1 }), SN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, FN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, MN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function oP(e, t) {
+function rP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var zue = (e, t) => [
+var Hue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Bue = (e, t) => [
+], Uue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Vue(e, t, n, r, i) {
+async function Wue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34368,22 +34368,22 @@ async function Vue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Hue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Uue = (e, t) => {
+var Gue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Kue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function Wue(e) {
- let t = oP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function que(e) {
+ let t = rP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: zue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Vue(t, e, n, r, i),
+ queryKey: Hue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Wue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Hue(n)
+ getNextPageParam: Gue(n)
};
}
-function Gue(e) {
+function Jue(e) {
return {
- queryKey: Bue(e.entityKey || "", e.revision || 0),
+ queryKey: Uue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34398,14 +34398,14 @@ function Gue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Uue
+ getNextPageParam: Kue
};
}
-function sP(e) {
+function iP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function cP(e, t, n) {
+function aP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34420,24 +34420,24 @@ function cP(e, t, n) {
return !0;
}) : [...e];
}
-var lP = (e, t) => !!e && !!to(e, t);
-function Kue(e, t) {
- let n = (e) => lP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => lP(e, t)) || e[e.length - 1];
+var oP = (e, t) => !!e && !!to(e, t);
+function Yue(e, t) {
+ let n = (e) => oP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => oP(e, t)) || e[e.length - 1];
}
-function que(e, { collapse: t, mix: n, javImage: r }) {
+function Xue(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = cP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = aP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Kue(e, r);
+ let t = Yue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34450,16 +34450,16 @@ function que(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Jue(e, t, n) {
+function Zue(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function Yue(e, t) {
+function Que(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Xue(e, t) {
+function $ue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34472,10 +34472,10 @@ function Xue(e, t) {
strip: null
}), r;
}
-function uP(e, t) {
- dP((t) => t.id === e, t);
+function sP(e, t) {
+ cP((t) => t.id === e, t);
}
-function dP(e, t) {
+function cP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34505,34 +34505,34 @@ function dP(e, t) {
} : n)
});
}
-var fP = (e) => Math.min(Math.max(e || 0, 0), 100), pP = (e) => Math.round(fP(e) / 20), Zue = (e) => {
- let t = pP(e);
+var lP = (e) => Math.min(Math.max(e || 0, 0), 100), uP = (e) => Math.round(lP(e) / 20), ede = (e) => {
+ let t = uP(e);
return t ? `${t} 星` : "未评分";
-}, mP = (e, t) => t === pP(e) ? 0 : t * 20, hP = (e) => ["item", e], gP = (e) => [
+}, dP = (e, t) => t === uP(e) ? 0 : t * 20, fP = (e) => ["item", e], pP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Que = (e, t) => [
+], tde = (e, t) => [
"item-related",
e,
t
-], $ue = (e) => `/api/item?id=${e}`, ede = (e, t) => `/api/related?id=${e}&limit=${t}`, _P = "/api/playlist", vP = "/api/feedback", yP = "/api/item-tag", bP = "/api/watch-later", xP = "/api/quality-goal", SP = "/api/preference", CP = class extends Error {};
-async function wP(e, t) {
- let n = await B($ue(e), t);
- if (n.error) throw new CP(n.error);
+], nde = (e) => `/api/item?id=${e}`, rde = (e, t) => `/api/related?id=${e}&limit=${t}`, mP = "/api/playlist", hP = "/api/feedback", gP = "/api/item-tag", _P = "/api/watch-later", vP = "/api/quality-goal", yP = "/api/preference", bP = class extends Error {};
+async function xP(e, t) {
+ let n = await B(nde(e), t);
+ if (n.error) throw new bP(n.error);
return n;
}
-async function TP(e, t, n) {
+async function SP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([wP(r, n), t.mixRelated(r)]);
- return H.setQueryData(hP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([xP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(fP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return EP(await B(`${_P}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return CP(await B(`${mP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34543,19 +34543,19 @@ async function TP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var EP = (e) => ({
+var CP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), DP = (e) => e.disposal === "vanished";
-function OP(e, t) {
+}), wP = (e) => e.disposal === "vanished";
+function TP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !DP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !wP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function tde(e, t) {
+function ide(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34563,20 +34563,20 @@ function tde(e, t) {
part_label: n
};
}
-function kP(e, t) {
+function EP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function AP(e, t) {
+async function DP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = gP(n);
+ let o = pP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => TP(n, e.helpers, t),
+ queryFn: () => SP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34588,21 +34588,21 @@ async function AP(e, t) {
return;
}
}
- let o = i ? OP(i, e.id) : e.id;
+ let o = i ? TP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(hP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(fP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: hP(o),
- queryFn: () => wP(o, t),
+ queryKey: fP(o),
+ queryFn: () => xP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof CP) {
+ if (e instanceof bP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34613,7 +34613,7 @@ async function AP(e, t) {
id: Number(s.follow_item_id)
});
}
-function nde(e) {
+function ade(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Un(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34635,35 +34635,35 @@ function nde(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function rde(e, t) {
+function ode(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Un(t.tagLabel(e.k)), i = n.get(r);
(!i || Un(e.k) === r && Un(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var jP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), MP = (e, t) => ({
+var OP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), kP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), NP = (e, t) => jP(e, t.k) ? e : {
+}), AP = (e, t) => OP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, PP = "peach.recentTags";
-function FP() {
+}, jP = "peach.recentTags";
+function MP() {
try {
- let e = JSON.parse(localStorage.getItem(PP) || "[]");
+ let e = JSON.parse(localStorage.getItem(jP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function IP(e) {
+function NP(e) {
try {
- let t = FP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(PP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = MP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(jP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function ide(e, t, n) {
+function sde(e, t, n) {
let r = Un(e), i = new Map(t.map((e) => [Un(e.k), e])), a = t.filter((e) => !r || Un(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Un(e)) || {
k: e,
n: 0
@@ -34674,72 +34674,72 @@ function ide(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var ade = {
+var cde = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, ode = {
+}, lde = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function sde(e) {
+function ude(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: ode[e.kind],
+ title: lde[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var LP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, cde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(LP(e.part_label))}</small>` : "";
-function lde(e, t, n, r) {
+var PP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, dde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(PP(e.part_label))}</small>` : "";
+function fde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var ude = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function dde(e, t) {
+var pde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function mde(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function fde(e) {
+function hde(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function RP(e, t) {
+function FP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var pde = (e, t, n) => [
+var gde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function mde(e) {
+function _de(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var hde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function gde(e, t = Math.random) {
+var vde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function yde(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function _de(e, t) {
- return gde(((await B(`/api/items?${e}`)).items || []).filter((e) => hde(e, t)));
+async function bde(e, t) {
+ return yde(((await B(`/api/items?${e}`)).items || []).filter((e) => vde(e, t)));
}
-var zP = (e) => H.ensureQueryData({
- queryKey: hP(e),
- queryFn: ({ signal: t }) => wP(e, t)
+var IP = (e) => H.ensureQueryData({
+ queryKey: fP(e),
+ queryFn: ({ signal: t }) => xP(e, t)
});
-function vde(e, t) {
+function xde(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function yde(e) {
+function Sde(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34748,313 +34748,313 @@ function yde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function bde(e, t, n) {
+function Cde(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function xde(e, t) {
+function wde(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var Sde = 15e3, BP = {
+var Tde = 15e3, LP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, VP = null, HP = null, UP = BP, WP = /* @__PURE__ */ new Set(), GP = 0, KP = 0, qP = 0, JP = "", YP = [], XP = 0, ZP = !1, QP = !1, $P = null, eF = /* @__PURE__ */ new Set(), tF = "", nF = null, rF = 0, iF = null, aF = !1, oF = null;
-function sF() {
- if (!VP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return VP;
+}, RP = null, zP = null, BP = LP, VP = /* @__PURE__ */ new Set(), HP = 0, UP = 0, WP = 0, GP = "", KP = [], qP = 0, JP = !1, YP = !1, XP = null, ZP = /* @__PURE__ */ new Set(), QP = "", $P = null, eF = 0, tF = null, nF = !1, rF = null;
+function iF() {
+ if (!RP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return RP;
}
-function Cde(e) {
- return WP.add(e), () => {
- WP.delete(e);
+function Ede(e) {
+ return VP.add(e), () => {
+ VP.delete(e);
};
}
-function wde() {
- for (let e of [...WP]) e();
+function Dde() {
+ for (let e of [...VP]) e();
}
-function cF() {
- (0, Rt.flushSync)(wde);
+function aF() {
+ (0, Rt.flushSync)(Dde);
}
-function lF() {
- let e = nF ? rN(nF.id) : 0;
- return e ? `${tF} · ${aN(e)}` : tF;
+function oF() {
+ let e = $P ? eN($P.id) : 0;
+ return e ? `${QP} · ${nN(e)}` : QP;
}
-function uF(e, t = null) {
- clearInterval(rF), rF = 0, e === null ? (UP = {
- ...UP,
+function sF(e, t = null) {
+ clearInterval(eF), eF = 0, e === null ? (BP = {
+ ...BP,
loading: null
- }, cF()) : (tF = e, nF = t, UP = {
- ...UP,
- loading: lF()
- }, cF(), rF = window.setInterval(() => {
- nF = YP[XP] ?? null, UP = {
- ...UP,
- loading: lF()
- }, cF();
+ }, aF()) : (QP = e, $P = t, BP = {
+ ...BP,
+ loading: oF()
+ }, aF(), eF = window.setInterval(() => {
+ $P = KP[qP] ?? null, BP = {
+ ...BP,
+ loading: oF()
+ }, aF();
}, 500));
}
-function Tde(e) {
+function Ode(e) {
let t = document.createElement("div");
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), HP.track.append(t);
- let r = LN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), zP.track.append(t);
+ let r = PN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => BN(r),
+ release: () => LN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return eF.add(a), a;
+ return ZP.add(a), a;
}
-function Ede(e, t) {
+function kde(e, t) {
return new Promise((n) => {
- e.release = rP(e.video, {
+ e.release = eP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- UP.open && vF(1);
+ BP.open && hF(1);
}
}), e.gone.then(n);
});
}
-function dF(e) {
- e && !e.disposed && (e.disposed = !0, eF.delete(e), e.leave(), e.release(), e.el.remove(), $P === e && ($P = null));
+function cF(e) {
+ e && !e.disposed && (e.disposed = !0, ZP.delete(e), e.leave(), e.release(), e.el.remove(), XP === e && (XP = null));
}
-var fF = [
+var lF = [
"loadeddata",
"canplay",
"error"
];
-function Dde(e) {
+function Ade(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), fF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), lF.forEach((e) => t.removeEventListener(e, i)), n());
};
- fF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Sde);
+ lF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, Tde);
e.gone.then(i);
});
}
-function pF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = bde(e.videoWidth, e.videoHeight, n);
+function uF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Cde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var mF = () => HP?.track.querySelectorAll("video").forEach(pF);
-function Ode(e) {
- delete e.dataset.fit, e.readyState >= 1 ? pF(e) : e.addEventListener("loadedmetadata", () => pF(e), { once: !0 });
+var dF = () => zP?.track.querySelectorAll("video").forEach(uF);
+function jde(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? uF(e) : e.addEventListener("loadedmetadata", () => uF(e), { once: !0 });
}
-function kde(e) {
- UP = {
- ...UP,
+function Mde(e) {
+ BP = {
+ ...BP,
wide: e
- }, cF(), mF();
+ }, aF(), dF();
}
-var hF = () => {
- let e = JP;
+var fF = () => {
+ let e = GP;
return H.fetchQuery({
- queryKey: pde(e, KP, qP),
- queryFn: () => _de(e, sF().sourceOffline),
+ queryKey: gde(e, UP, WP),
+ queryFn: () => bde(e, iF().sourceOffline),
staleTime: Infinity
});
};
-function Ade(e, t) {
+function Nde(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && HP && (HP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), iF = {
+ t && zP && (zP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), tF = {
video: e,
duration: n
- }, oF?.dispose(), oF = HP ? gN(HP.bar, t, { inset: 12 }) : null;
+ }, rF?.dispose(), rF = zP ? pN(zP.bar, t, { inset: 12 }) : null;
}
-function gF(e) {
- let t = iF?.duration();
- oF && t && (oF.prime(), oF.show(e, t));
-}
-async function _F(e = 0) {
- let t = YP[XP];
- if (!t || ZP) return;
- let n = GP;
- sF().route(t.id), ZP = !0, uF(e ? "切换中" : "加载中", t);
+function pF(e) {
+ let t = tF?.duration();
+ rF && t && (rF.prime(), rF.show(e, t));
+}
+async function mF(e = 0) {
+ let t = KP[qP];
+ if (!t || JP) return;
+ let n = HP;
+ iF().route(t.id), JP = !0, sF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await zP(t.id).catch((e) => {
- if (!(e instanceof CP)) throw e;
- }), n !== GP) return;
- let i = $P, a = !!(e && i);
- a || dF(i);
- let o = Tde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Ode(o.video), await Ede(o, t), await Dde(o), o.disposed || (kde(xde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await IP(t.id).catch((e) => {
+ if (!(e instanceof bP)) throw e;
+ }), n !== HP) return;
+ let i = XP, a = !!(e && i);
+ a || cF(i);
+ let o = Ode(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, jde(o.video), await kde(o, t), await Ade(o), o.disposed || (Mde(wde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), dF(i), o.el.style.transform = ""), o.disposed)) return;
- $P = o, r = null, o.video.play()?.catch(() => {}), UP = {
- ...UP,
+ })), await new Promise((e) => setTimeout(e, 210)), cF(i), o.el.style.transform = ""), o.disposed)) return;
+ XP = o, r = null, o.video.play()?.catch(() => {}), BP = {
+ ...BP,
idle: !1,
shown: {
item: t,
- index: XP,
- length: YP.length
+ index: qP,
+ length: KP.length
}
- }, Ade(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), uF(null);
+ }, Nde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), sF(null);
} catch {
- dF(r), n === GP && uF(null);
+ cF(r), n === HP && sF(null);
} finally {
- n === GP && (ZP = !1);
+ n === HP && (JP = !1);
}
}
-async function vF(e) {
- if (ZP || !UP.open) return;
- let t = GP;
- if (XP += e, uF("切换中", YP[XP] ?? null), XP >= YP.length - 3 && !QP) {
- QP = !0;
+async function hF(e) {
+ if (JP || !BP.open) return;
+ let t = HP;
+ if (qP += e, sF("切换中", KP[qP] ?? null), qP >= KP.length - 3 && !YP) {
+ YP = !0;
try {
- qP += 1;
- let e = await hF();
- t === GP && (YP = vde(YP, e));
+ WP += 1;
+ let e = await fF();
+ t === HP && (KP = xde(KP, e));
} catch {} finally {
- QP = !1;
+ YP = !1;
}
}
- t === GP && (XP >= YP.length && (XP = 0), XP < 0 && (XP = YP.length - 1), await _F(e));
+ t === HP && (qP >= KP.length && (qP = 0), qP < 0 && (qP = KP.length - 1), await mF(e));
}
-async function jde(e) {
- let t = ++GP;
- yF(), KP += 1, qP = 0, JP = mde(sF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), UP = {
- ...UP,
+async function Pde(e) {
+ let t = ++HP;
+ gF(), UP += 1, WP = 0, GP = _de(iF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), BP = {
+ ...BP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), uF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), sF("加载内容");
try {
- let n = await hF();
+ let n = await fF();
if (e && !n.some((t) => t.id === e)) {
- let t = await zP(e).catch((e) => {
- if (e instanceof CP) return null;
+ let t = await IP(e).catch((e) => {
+ if (e instanceof bP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== GP) return;
- if (YP = n, !YP.length) {
- bF(), sF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== HP) return;
+ if (KP = n, !KP.length) {
+ _F(), iF().warn("当前筛选下没有可直接播放的内容");
return;
}
- XP = Math.max(0, YP.findIndex((t) => t.id === e)), await _F();
+ qP = Math.max(0, KP.findIndex((t) => t.id === e)), await mF();
} catch {
- if (t !== GP) return;
- uF(null), bF();
+ if (t !== HP) return;
+ sF(null), _F();
}
}
-function yF() {
- clearInterval(rF), rF = 0, EF(), wF = null, iF = null, aF = !1, oF?.dispose(), oF = null, [...eF].forEach(dF), ZP = !1;
+function gF() {
+ clearInterval(eF), eF = 0, CF(), xF = null, tF = null, nF = !1, rF?.dispose(), rF = null, [...ZP].forEach(cF), JP = !1;
}
-function bF() {
- UP.open && (GP++, yF(), UP = BP, document.body.removeAttribute("data-immerse-open"), cF(), sF().closed());
+function _F() {
+ BP.open && (HP++, gF(), BP = LP, document.body.removeAttribute("data-immerse-open"), aF(), iF().closed());
}
-var xF = 0, SF = null, CF = 0, wF = null, TF = 0;
-function EF() {
- clearTimeout(xF), xF = 0, SF = null;
+var vF = 0, yF = null, bF = 0, xF = null, SF = 0;
+function CF() {
+ clearTimeout(vF), vF = 0, yF = null;
}
-function Mde(e) {
- let t = $P?.video;
+function Fde(e) {
+ let t = XP?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- SF && SF.side === n && r - SF.at <= 280 ? (EF(), aP(t, sF().seekSeconds() * n)) : (xF && (clearTimeout(xF), xF = 0, iP(t)), SF = {
+ yF && yF.side === n && r - yF.at <= 280 ? (CF(), nP(t, iF().seekSeconds() * n)) : (vF && (clearTimeout(vF), vF = 0, tP(t)), yF = {
side: n,
at: r
- }, xF = window.setTimeout(() => {
- xF = 0, SF = null, UP.open && iP($P?.video);
+ }, vF = window.setTimeout(() => {
+ vF = 0, yF = null, BP.open && tP(XP?.video);
}, 280));
}
-function Nde() {
- Date.now() < CF || iP($P?.video);
+function Ide() {
+ Date.now() < bF || tP(XP?.video);
}
-var DF = (e) => HP?.bar.toggleAttribute("data-scrubbing", e);
-function OF(e) {
- HP && (HP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var wF = (e) => zP?.bar.toggleAttribute("data-scrubbing", e);
+function TF(e) {
+ zP && (zP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function kF(e) {
+function EF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- wF = null;
+ xF = null;
return;
}
- let n = $P?.video;
- wF = {
+ let n = XP?.video;
+ xF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function AF(e) {
- if (!wF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - wF.x, n = e.touches[0].clientY - wF.y;
- if (!wF.axis) {
+function DF(e) {
+ if (!xF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - xF.x, n = e.touches[0].clientY - xF.y;
+ if (!xF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- wF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", wF.axis === "x" && DF(!0);
+ xF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", xF.axis === "x" && wF(!0);
}
- if (wF.axis !== "x") return;
- let r = $P?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), wF.to = Math.min(i, Math.max(0, wF.from + t / window.innerWidth * i)), OF(wF.to / i), gF(wF.to / i));
+ if (xF.axis !== "x") return;
+ let r = XP?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), xF.to = Math.min(i, Math.max(0, xF.from + t / window.innerWidth * i)), TF(xF.to / i), pF(xF.to / i));
}
-function jF(e) {
- if (!wF) return;
- let t = wF;
- if (wF = null, CF = Date.now() + 700, DF(!1), oF?.hide(), t.axis === "x") {
- let e = $P?.video;
+function OF(e) {
+ if (!xF) return;
+ let t = xF;
+ if (xF = null, bF = Date.now() + 700, wF(!1), rF?.hide(), t.axis === "x") {
+ let e = XP?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (EF(), vF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Mde(n.clientX));
+ Math.abs(i) > 60 ? (CF(), hF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Fde(n.clientX));
}
-function MF() {
- wF = null, DF(!1), oF?.hide();
+function kF() {
+ xF = null, wF(!1), rF?.hide();
}
-function NF(e) {
+function AF(e) {
let t = Date.now();
- t - TF < 260 || (TF = t, vF(e.deltaY > 0 ? 1 : -1));
+ t - SF < 260 || (SF = t, hF(e.deltaY > 0 ? 1 : -1));
}
-function PF(e) {
- let t = HP.bar.getBoundingClientRect();
+function jF(e) {
+ let t = zP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Pde(e) {
- iF?.duration() && (aF = !0, DF(!0), e.currentTarget.setPointerCapture(e.pointerId), OF(PF(e)), gF(PF(e)), e.preventDefault());
+function Lde(e) {
+ tF?.duration() && (nF = !0, wF(!0), e.currentTarget.setPointerCapture(e.pointerId), TF(jF(e)), pF(jF(e)), e.preventDefault());
}
-function Fde(e) {
- aF && OF(PF(e)), gF(PF(e));
+function Rde(e) {
+ nF && TF(jF(e)), pF(jF(e));
}
-function Ide(e) {
- if (e.pointerType !== "mouse" && oF?.hide(), !aF) return;
- aF = !1, DF(!1);
- let t = iF?.duration();
- iF && t && (iF.video.currentTime = t * PF(e));
+function zde(e) {
+ if (e.pointerType !== "mouse" && rF?.hide(), !nF) return;
+ nF = !1, wF(!1);
+ let t = tF?.duration();
+ tF && t && (tF.video.currentTime = t * jF(e));
}
-function Lde() {
- aF = !1, DF(!1), oF?.hide();
+function Bde() {
+ nF = !1, wF(!1), rF?.hide();
}
-function Rde() {
- aF || oF?.hide();
+function Vde() {
+ nF || rF?.hide();
}
-async function FF(e, t) {
- let n = await V(vP, {
+async function MF(e, t) {
+ let n = await V(hP, {
id: e,
kind: t
- }), r = H.getQueryData(hP(e));
- if (!r) return uP(e, {
+ }), r = H.getQueryData(fP(e));
+ if (!r) return sP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35063,7 +35063,7 @@ async function FF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(hP(e), i), uP(e, {
+ return H.setQueryData(fP(e), i), sP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35071,7 +35071,7 @@ async function FF(e, t) {
o_count: i.o_count
}), n;
}
-var zde = [
+var Hde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35088,31 +35088,31 @@ var zde = [
label: "记一次高潮"
}
];
-function IF(e) {
+function NF(e) {
return Ft({
- queryKey: hP(e ?? 0),
- queryFn: ({ signal: t }) => wP(e, t),
+ queryKey: fP(e ?? 0),
+ queryFn: ({ signal: t }) => xP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Bde({ kind: e, glyph: t, label: n, id: r }) {
- let i = IF(r), a = It({
+function Ude({ kind: e, glyph: t, label: n, id: r }) {
+ let i = NF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(hP(t))?.feedback || null;
+ let n = H.getQueryData(fP(t))?.feedback || null;
return {
- result: await FF(t, e),
+ result: await MF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- sF().toast(RP(e, t), { undo: async () => {
- e === "o" ? await FF(r, "o-undo") : (t.feedback && await FF(r, t.feedback), n && await FF(r, n));
+ iF().toast(FP(e, t), { undo: async () => {
+ e === "o" ? await MF(r, "o-undo") : (t.feedback && await MF(r, t.feedback), n && await MF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- vF(1);
+ hF(1);
}, 260);
},
- onError: (e) => sF().failure("更新反馈", e)
+ onError: (e) => iF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35143,11 +35143,11 @@ function Bde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Vde({ shown: e }) {
- let t = e?.item ?? null, n = IF(t?.id ?? null), r = n ? yde(n) : null, i = sF(), a = (e) => {
- e.preventDefault(), n && (bF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Wde({ shown: e }) {
+ let t = e?.item ?? null, n = NF(t?.id ?? null), r = n ? Sde(n) : null, i = iF(), a = (e) => {
+ e.preventDefault(), n && (_F(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (bF(), i.openItem(t.id));
+ t && (_F(), i.openItem(t.id));
}, s = r ? _o(r.name, r.ref, Za(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35176,18 +35176,18 @@ function Vde({ shown: e }) {
})]
});
}
-var Hde = { __html: Bs("媒体加载中") };
-function Ude({ view: e }) {
+var Gde = { __html: Bs("媒体加载中") };
+function Kde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return HP = {
+ return zP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", kF, { passive: !0 }), e.addEventListener("touchmove", AF, { passive: !1 }), e.addEventListener("touchend", jF, { passive: !1 }), e.addEventListener("touchcancel", MF, { passive: !0 }), e.addEventListener("wheel", NF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", kF), e.removeEventListener("touchmove", AF), e.removeEventListener("touchend", jF), e.removeEventListener("touchcancel", MF), e.removeEventListener("wheel", NF), HP = null;
+ }, e.addEventListener("touchstart", EF, { passive: !0 }), e.addEventListener("touchmove", DF, { passive: !1 }), e.addEventListener("touchend", OF, { passive: !1 }), e.addEventListener("touchcancel", kF, { passive: !0 }), e.addEventListener("wheel", AF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", EF), e.removeEventListener("touchmove", DF), e.removeEventListener("touchend", OF), e.removeEventListener("touchcancel", kF), e.removeEventListener("wheel", AF), zP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35204,10 +35204,10 @@ function Ude({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Nde
+ onClick: Ide
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: zde.map((e) => /* @__PURE__ */ (0, I.jsx)(Bde, {
+ children: Hde.map((e) => /* @__PURE__ */ (0, I.jsx)(Ude, {
...e,
id: a
}, e.kind))
@@ -35220,7 +35220,7 @@ function Ude({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Hde
+ dangerouslySetInnerHTML: Gde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35228,7 +35228,7 @@ function Ude({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: bF,
+ onClick: _F,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35237,42 +35237,42 @@ function Ude({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Pde,
- onPointerMove: Fde,
- onPointerUp: Ide,
- onPointerCancel: Lde,
- onPointerLeave: Rde,
+ onPointerDown: Lde,
+ onPointerMove: Rde,
+ onPointerUp: zde,
+ onPointerCancel: Bde,
+ onPointerLeave: Vde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Vde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(Wde, { shown: e.shown })
]
});
}
-var Wde = {
- open: jde,
- close: bF,
- isOpen: () => UP.open,
- activeVideo: () => UP.open ? $P?.video ?? null : null
+var qde = {
+ open: Pde,
+ close: _F,
+ isOpen: () => BP.open,
+ activeVideo: () => BP.open ? XP?.video ?? null : null
};
-function Gde(e) {
- if (!UP.open) return;
+function Jde(e) {
+ if (!BP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && vF(1), e.key === "ArrowUp" && vF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && hF(1), e.key === "ArrowUp" && hF(-1));
}
-function Kde(e) {
- let t = !VP;
- return VP = e, t && (document.addEventListener("keydown", Gde), addEventListener("resize", () => {
- UP.open && mF();
+function Yde(e) {
+ let t = !RP;
+ return RP = e, t && (document.addEventListener("keydown", Jde), addEventListener("resize", () => {
+ BP.open && dF();
}), addEventListener("pagehide", () => {
- eF.forEach((e) => BN(e.session));
- })), Wde;
+ ZP.forEach((e) => LN(e.session));
+ })), qde;
}
-function qde() {
- let e = (0, F.useSyncExternalStore)(Cde, () => UP);
- return VP ? /* @__PURE__ */ (0, I.jsx)(Ude, { view: e }) : null;
+function Xde() {
+ let e = (0, F.useSyncExternalStore)(Ede, () => BP);
+ return RP ? /* @__PURE__ */ (0, I.jsx)(Kde, { view: e }) : null;
}
// src/manage-header.ts
-var LF = {
+var PF = {
...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35280,47 +35280,47 @@ var LF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Jde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Yde(e) {
- let t = LF[e.path] ? "cleanup" : e.section;
+}, Zde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Qde(e) {
+ let t = PF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Xde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function RF(e) {
+var $de = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function FF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = LF[e.path] ?? "";
+ let n = PF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Yde(e),
+ pressed: Qde(e),
crumb: n,
- compact: Jde.has(e.path) || e.section === "configuration",
+ compact: Zde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Xde(e.trash),
+ text: $de(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var zF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var IF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), BF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${zF(e)}"/></svg>`, VF = "<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 Zde(e) {
- let t = RF(e);
+})[e]), LF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${IF(e)}"/></svg>`, RF = "<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 efe(e) {
+ let t = FF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${zF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${BF(r)}<span>${zF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${BF("chevron-right")}</li><li aria-current="true"><span>${zF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? VF : `<span data-lede-text="">${zF(t.lede.text)}</span>${t.lede.total ? Qde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${zF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${IF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${LF(r)}<span>${IF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${LF("chevron-right")}</li><li aria-current="true"><span>${IF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? RF : `<span data-lede-text="">${IF(t.lede.text)}</span>${t.lede.total ? tfe : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${IF(t.title)}</h2>` + i;
}
-var Qde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var tfe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function HF({ name: e }) {
+function zF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35329,7 +35329,7 @@ function HF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function $de({ name: e }) {
+function nfe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35337,88 +35337,88 @@ function $de({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var efe = (e, t) => {
+var rfe = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, tfe = (e, t) => ({
+}, ife = (e, t) => ({
classGroupId: e,
validator: t
-}), UF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), BF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), WF = "-", GF = [], nfe = "arbitrary..", rfe = (e) => {
- let t = afe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), VF = "-", HF = [], afe = "arbitrary..", ofe = (e) => {
+ let t = cfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return ife(e);
- let n = e.split(WF);
- return KF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return sfe(e);
+ let n = e.split(VF);
+ return UF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? efe(i, t) : t : i || GF;
+ return t ? i ? rfe(i, t) : t : i || HF;
}
- return n[e] || GF;
+ return n[e] || HF;
}
};
-}, KF = (e, t, n) => {
+}, UF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = KF(e, t + 1, i);
+ let n = UF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(WF) : e.slice(t).join(WF), s = a.length;
+ let o = t === 0 ? e.join(VF) : e.slice(t).join(VF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, ife = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, sfe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? nfe + r : void 0;
-})(), afe = (e) => {
+ return r ? afe + r : void 0;
+})(), cfe = (e) => {
let { theme: t, classGroups: n } = e;
- return ofe(n, t);
-}, ofe = (e, t) => {
- let n = UF();
+ return lfe(n, t);
+}, lfe = (e, t) => {
+ let n = BF();
for (let r in e) {
let i = e[r];
- qF(i, n, r, t);
+ WF(i, n, r, t);
}
return n;
-}, qF = (e, t, n, r) => {
+}, WF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- sfe(i, t, n, r);
+ ufe(i, t, n, r);
}
-}, sfe = (e, t, n, r) => {
- typeof e == "string" ? cfe(e, t, n) : typeof e == "function" ? lfe(e, t, n, r) : ufe(e, t, n, r);
-}, cfe = (e, t, n) => {
- let r = e === "" ? t : JF(t, e);
- r.classGroupId = n;
-}, lfe = (e, t, n, r) => {
- dfe(e) ? qF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(tfe(n, e)));
}, ufe = (e, t, n, r) => {
+ typeof e == "string" ? dfe(e, t, n) : typeof e == "function" ? ffe(e, t, n, r) : pfe(e, t, n, r);
+}, dfe = (e, t, n) => {
+ let r = e === "" ? t : GF(t, e);
+ r.classGroupId = n;
+}, ffe = (e, t, n, r) => {
+ mfe(e) ? WF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(ife(n, e)));
+}, pfe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- qF(o, JF(t, a), n, r);
+ WF(o, GF(t, a), n, r);
}
-}, JF = (e, t) => {
- let n = e, r = t.split(WF), i = r.length;
+}, GF = (e, t) => {
+ let n = e, r = t.split(VF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = UF(), n.nextPart.set(t, i)), n = i;
+ i || (i = BF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, dfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ffe = (e) => {
+}, mfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, hfe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35436,19 +35436,19 @@ var efe = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, YF = "!", XF = ":", pfe = [], ZF = (e, t, n, r, i) => ({
+}, KF = "!", qF = ":", gfe = [], JF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), mfe = (e) => {
+}), _fe = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === XF) {
+ if (o === qF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35460,13 +35460,13 @@ var efe = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(YF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(YF) && (c = s.slice(1), l = !0);
+ s.endsWith(KF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(KF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return ZF(t, l, c, u);
+ return JF(t, l, c, u);
};
if (t) {
- let e = t + XF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ZF(pfe, !1, t, void 0, !0);
+ let e = t + qF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : JF(gfe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35476,7 +35476,7 @@ var efe = (e, t) => {
});
}
return r;
-}, hfe = (e) => {
+}, vfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35488,18 +35488,18 @@ var efe = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, gfe = (e) => ({
- cache: ffe(e.cacheSize),
- parseClassName: mfe(e),
- sortModifiers: hfe(e),
- postfixLookupClassGroupIds: _fe(e),
- ...rfe(e)
-}), _fe = (e) => {
+}, yfe = (e) => ({
+ cache: hfe(e.cacheSize),
+ parseClassName: _fe(e),
+ sortModifiers: vfe(e),
+ postfixLookupClassGroupIds: bfe(e),
+ ...ofe(e)
+}), bfe = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, vfe = /\s+/, yfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(vfe), l = "";
+}, xfe = /\s+/, Sfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(xfe), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35519,7 +35519,7 @@ var efe = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + YF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + KF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35530,34 +35530,34 @@ var efe = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, bfe = (...e) => {
+}, Cfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = QF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = YF(n)) && (i && (i += " "), i += r);
return i;
-}, QF = (e) => {
+}, YF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = QF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = YF(e[r])) && (n && (n += " "), n += t);
return n;
-}, $F = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = gfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, XF = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = yfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = yfe(e, n);
+ let a = Sfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(bfe(...e));
-}, xfe = [], eI = (e) => {
- let t = (t) => t[e] || xfe;
+ return a = o, (...e) => a(Cfe(...e));
+}, wfe = [], ZF = (e) => {
+ let t = (t) => t[e] || wfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, tI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Sfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Cfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Efe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rI = (e) => Sfe.test(e), iI = (e) => !!e && !Number.isNaN(Number(e)), aI = (e) => !!e && Number.isInteger(Number(e)), oI = (e) => e.endsWith("%") && iI(e.slice(0, -1)), sI = (e) => Cfe.test(e), cI = () => !0, Ofe = (e) => wfe.test(e) && !Tfe.test(e), lI = () => !1, kfe = (e) => Efe.test(e), Afe = (e) => Dfe.test(e), jfe = (e) => !uI(e) && !hI(e), Mfe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Nfe = (e) => yI(e, CI, lI), uI = (e) => tI.test(e), dI = (e) => yI(e, wI, Ofe), fI = (e) => yI(e, Vfe, iI), Pfe = (e) => yI(e, EI, cI), Ffe = (e) => yI(e, TI, lI), pI = (e) => yI(e, xI, lI), Ife = (e) => yI(e, SI, Afe), mI = (e) => yI(e, DI, kfe), hI = (e) => nI.test(e), gI = (e) => bI(e, wI), Lfe = (e) => bI(e, TI), _I = (e) => bI(e, xI), Rfe = (e) => bI(e, CI), zfe = (e) => bI(e, SI), vI = (e) => bI(e, DI, !0), Bfe = (e) => bI(e, EI, !0), yI = (e, t, n) => {
- let r = tI.exec(e);
+}, QF = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $F = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Efe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Dfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ofe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, kfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Afe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, eI = (e) => Tfe.test(e), tI = (e) => !!e && !Number.isNaN(Number(e)), nI = (e) => !!e && Number.isInteger(Number(e)), rI = (e) => e.endsWith("%") && tI(e.slice(0, -1)), iI = (e) => Efe.test(e), aI = () => !0, jfe = (e) => Dfe.test(e) && !Ofe.test(e), oI = () => !1, Mfe = (e) => kfe.test(e), Nfe = (e) => Afe.test(e), Pfe = (e) => !sI(e) && !fI(e), Ffe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Ife = (e) => gI(e, bI, oI), sI = (e) => QF.test(e), cI = (e) => gI(e, xI, jfe), lI = (e) => gI(e, Wfe, tI), Lfe = (e) => gI(e, CI, aI), Rfe = (e) => gI(e, SI, oI), uI = (e) => gI(e, vI, oI), zfe = (e) => gI(e, yI, Nfe), dI = (e) => gI(e, wI, Mfe), fI = (e) => $F.test(e), pI = (e) => _I(e, xI), Bfe = (e) => _I(e, SI), mI = (e) => _I(e, vI), Vfe = (e) => _I(e, bI), Hfe = (e) => _I(e, yI), hI = (e) => _I(e, wI, !0), Ufe = (e) => _I(e, CI, !0), gI = (e, t, n) => {
+ let r = QF.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, bI = (e, t, n = !1) => {
- let r = nI.exec(e);
+}, _I = (e, t, n = !1) => {
+ let r = $F.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, xI = (e) => e === "position" || e === "percentage", SI = (e) => e === "image" || e === "url", CI = (e) => e === "length" || e === "size" || e === "bg-size", wI = (e) => e === "length", Vfe = (e) => e === "number", TI = (e) => e === "family-name", EI = (e) => e === "number" || e === "weight", DI = (e) => e === "shadow", OI = () => {
- let e = eI("color"), t = eI("font"), n = eI("text"), r = eI("font-weight"), i = eI("tracking"), a = eI("leading"), o = eI("breakpoint"), s = eI("container"), c = eI("spacing"), l = eI("radius"), u = eI("shadow"), d = eI("inset-shadow"), f = eI("text-shadow"), p = eI("drop-shadow"), m = eI("blur"), h = eI("perspective"), g = eI("aspect"), _ = eI("ease"), v = eI("animate"), y = () => [
+}, vI = (e) => e === "position" || e === "percentage", yI = (e) => e === "image" || e === "url", bI = (e) => e === "length" || e === "size" || e === "bg-size", xI = (e) => e === "length", Wfe = (e) => e === "number", SI = (e) => e === "family-name", CI = (e) => e === "number" || e === "weight", wI = (e) => e === "shadow", TI = () => {
+ let e = ZF("color"), t = ZF("font"), n = ZF("text"), r = ZF("font-weight"), i = ZF("tracking"), a = ZF("leading"), o = ZF("breakpoint"), s = ZF("container"), c = ZF("spacing"), l = ZF("radius"), u = ZF("shadow"), d = ZF("inset-shadow"), f = ZF("text-shadow"), p = ZF("drop-shadow"), m = ZF("blur"), h = ZF("perspective"), g = ZF("aspect"), _ = ZF("ease"), v = ZF("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35582,8 +35582,8 @@ var efe = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- hI,
- uI
+ fI,
+ sI
], S = () => [
"auto",
"hidden",
@@ -35595,43 +35595,43 @@ var efe = (e, t) => {
"contain",
"none"
], w = () => [
- hI,
- uI,
+ fI,
+ sI,
c
], T = () => [
- rI,
+ eI,
"full",
"auto",
...w()
], E = () => [
- aI,
+ nI,
"none",
"subgrid",
- hI,
- uI
+ fI,
+ sI
], D = () => [
"auto",
{ span: [
"full",
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
] },
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
], O = () => [
- aI,
+ nI,
"auto",
- hI,
- uI
+ fI,
+ sI
], k = () => [
"auto",
"min",
"max",
"fr",
- hI,
- uI
+ fI,
+ sI
], A = () => [
"start",
"end",
@@ -35651,7 +35651,7 @@ var efe = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- rI,
+ eI,
"auto",
"full",
"dvw",
@@ -35666,7 +35666,7 @@ var efe = (e, t) => {
...w()
], N = () => [
s,
- rI,
+ eI,
"screen",
"full",
"dvw",
@@ -35677,7 +35677,7 @@ var efe = (e, t) => {
"fit",
...w()
], te = () => [
- rI,
+ eI,
"screen",
"full",
"lh",
@@ -35690,13 +35690,13 @@ var efe = (e, t) => {
...w()
], P = () => [
e,
- hI,
- uI
+ fI,
+ sI
], ne = () => [
...b(),
- _I,
- pI,
- { position: [hI, uI] }
+ mI,
+ uI,
+ { position: [fI, sI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35707,25 +35707,25 @@ var efe = (e, t) => {
"auto",
"cover",
"contain",
- Rfe,
- Nfe,
- { size: [hI, uI] }
+ Vfe,
+ Ife,
+ { size: [fI, sI] }
], I = () => [
- oI,
- gI,
- dI
+ rI,
+ pI,
+ cI
], ie = () => [
"",
"none",
"full",
l,
- hI,
- uI
+ fI,
+ sI
], ae = () => [
"",
- iI,
- gI,
- dI
+ tI,
+ pI,
+ cI
], oe = () => [
"solid",
"dashed",
@@ -35749,32 +35749,32 @@ var efe = (e, t) => {
"color",
"luminosity"
], ce = () => [
- iI,
- oI,
- _I,
- pI
+ tI,
+ rI,
+ mI,
+ uI
], le = () => [
"",
"none",
m,
- hI,
- uI
+ fI,
+ sI
], ue = () => [
"none",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
], de = () => [
"none",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
], fe = () => [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
], pe = () => [
- rI,
+ eI,
"full",
...w()
];
@@ -35788,17 +35788,17 @@ var efe = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [sI],
- breakpoint: [sI],
- color: [cI],
- container: [sI],
- "drop-shadow": [sI],
+ blur: [iI],
+ breakpoint: [iI],
+ color: [aI],
+ container: [iI],
+ "drop-shadow": [iI],
ease: [
"in",
"out",
"in-out"
],
- font: [jfe],
+ font: [Pfe],
"font-weight": [
"thin",
"extralight",
@@ -35810,7 +35810,7 @@ var efe = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [sI],
+ "inset-shadow": [iI],
leading: [
"none",
"tight",
@@ -35827,11 +35827,11 @@ var efe = (e, t) => {
"distant",
"none"
],
- radius: [sI],
- shadow: [sI],
- spacing: ["px", iI],
- text: [sI],
- "text-shadow": [sI],
+ radius: [iI],
+ shadow: [iI],
+ spacing: ["px", tI],
+ text: [iI],
+ "text-shadow": [iI],
tracking: [
"tighter",
"tight",
@@ -35845,9 +35845,9 @@ var efe = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- rI,
- uI,
- hI,
+ eI,
+ sI,
+ fI,
g
] }],
container: ["container"],
@@ -35855,15 +35855,15 @@ var efe = (e, t) => {
"",
"normal",
"size",
- hI,
- uI
+ fI,
+ sI
] }],
- "container-named": [Mfe],
+ "container-named": [Ffe],
columns: [{ columns: [
- iI,
+ tI,
"auto",
- uI,
- hI,
+ sI,
+ fI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35960,13 +35960,13 @@ var efe = (e, t) => {
"collapse"
],
z: [{ z: [
- aI,
+ nI,
"auto",
- hI,
- uI
+ fI,
+ sI
] }],
basis: [{ basis: [
- rI,
+ eI,
"full",
"auto",
s,
@@ -35984,32 +35984,32 @@ var efe = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- iI,
- rI,
+ tI,
+ eI,
"auto",
"initial",
"none",
- uI
+ sI
] }],
grow: [{ grow: [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
shrink: [{ shrink: [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
order: [{ order: [
- aI,
+ nI,
"first",
"last",
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36116,15 +36116,15 @@ var efe = (e, t) => {
"font-size": [{ text: [
"base",
n,
- gI,
- dI
+ pI,
+ cI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Bfe,
- Pfe
+ Ufe,
+ Lfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36136,15 +36136,15 @@ var efe = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- oI,
- uI
+ rI,
+ sI
] }],
"font-family": [{ font: [
- Lfe,
- Ffe,
+ Bfe,
+ Rfe,
t
] }],
- "font-features": [{ "font-features": [uI] }],
+ "font-features": [{ "font-features": [sI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36153,14 +36153,14 @@ var efe = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- hI,
- uI
+ fI,
+ sI
] }],
"line-clamp": [{ "line-clamp": [
- iI,
+ tI,
"none",
- hI,
- fI
+ fI,
+ lI
] }],
leading: [{ leading: [
"none",
@@ -36169,16 +36169,16 @@ var efe = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"text-alignment": [{ text: [
"left",
@@ -36198,18 +36198,18 @@ var efe = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- iI,
+ tI,
"from-font",
"auto",
- hI,
- dI
+ fI,
+ cI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- iI,
+ tI,
"auto",
- hI,
- uI
+ fI,
+ sI
] }],
"text-transform": [
"uppercase",
@@ -36230,9 +36230,9 @@ var efe = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36243,8 +36243,8 @@ var efe = (e, t) => {
"text-bottom",
"sub",
"super",
- hI,
- uI
+ fI,
+ sI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36272,8 +36272,8 @@ var efe = (e, t) => {
] }],
content: [{ content: [
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36308,24 +36308,24 @@ var efe = (e, t) => {
"l",
"tl"
] },
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
],
radial: [
"",
- hI,
- uI
+ fI,
+ sI
],
conic: [
"",
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
]
},
- zfe,
- Ife
+ Hfe,
+ zfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36392,15 +36392,15 @@ var efe = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"outline-w": [{ outline: [
"",
- iI,
- gI,
- dI
+ tI,
+ pI,
+ cI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36408,35 +36408,35 @@ var efe = (e, t) => {
"inner",
"none",
u,
- vI,
- mI
+ hI,
+ dI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- vI,
- mI
+ hI,
+ dI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [iI, dI] }],
+ "ring-offset-w": [{ "ring-offset": [tI, cI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- vI,
- mI
+ hI,
+ dI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36458,7 +36458,7 @@ var efe = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [iI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [tI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36487,7 +36487,7 @@ var efe = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [hI, uI] }],
+ "mask-image-radial": [{ "mask-radial": [fI, sI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36498,7 +36498,7 @@ var efe = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [iI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [tI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36522,111 +36522,111 @@ var efe = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- hI,
- uI
+ fI,
+ sI
] }],
filter: [{ filter: [
"",
"none",
- hI,
- uI
+ fI,
+ sI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
contrast: [{ contrast: [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- vI,
- mI
+ hI,
+ dI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"hue-rotate": [{ "hue-rotate": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
invert: [{ invert: [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
saturate: [{ saturate: [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
sepia: [{ sepia: [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36642,39 +36642,39 @@ var efe = (e, t) => {
"shadow",
"transform",
"none",
- hI,
- uI
+ fI,
+ sI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- iI,
+ tI,
"initial",
- hI,
- uI
+ fI,
+ sI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- hI,
- uI
+ fI,
+ sI
] }],
delay: [{ delay: [
- iI,
- hI,
- uI
+ tI,
+ fI,
+ sI
] }],
animate: [{ animate: [
"none",
v,
- hI,
- uI
+ fI,
+ sI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- hI,
- uI
+ fI,
+ sI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36690,8 +36690,8 @@ var efe = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- hI,
- uI,
+ fI,
+ sI,
"",
"none",
"gpu",
@@ -36705,9 +36705,9 @@ var efe = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- aI,
- hI,
- uI
+ nI,
+ fI,
+ sI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36757,8 +36757,8 @@ var efe = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- hI,
- uI
+ fI,
+ sI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36844,15 +36844,15 @@ var efe = (e, t) => {
"scroll",
"contents",
"transform",
- hI,
- uI
+ fI,
+ sI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- iI,
- gI,
- dI,
- fI
+ tI,
+ pI,
+ cI,
+ lI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37110,16 +37110,16 @@ var efe = (e, t) => {
"selection"
]
};
-}, Hfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (kI(e, "cacheSize", t), kI(e, "prefix", n), kI(e, "experimentalParseClassName", r), AI(e.theme, a.theme), AI(e.classGroups, a.classGroups), AI(e.conflictingClassGroups, a.conflictingClassGroups), AI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), kI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), kI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), jI(e.theme, i.theme), jI(e.classGroups, i.classGroups), jI(e.conflictingClassGroups, i.conflictingClassGroups), jI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), MI(e, i, "postfixLookupClassGroups"), MI(e, i, "orderSensitiveModifiers"), e), kI = (e, t, n) => {
+}, Gfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (EI(e, "cacheSize", t), EI(e, "prefix", n), EI(e, "experimentalParseClassName", r), DI(e.theme, a.theme), DI(e.classGroups, a.classGroups), DI(e.conflictingClassGroups, a.conflictingClassGroups), DI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), EI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), EI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), OI(e.theme, i.theme), OI(e.classGroups, i.classGroups), OI(e.conflictingClassGroups, i.conflictingClassGroups), OI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), kI(e, i, "postfixLookupClassGroups"), kI(e, i, "orderSensitiveModifiers"), e), EI = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, AI = (e, t) => {
- if (t) for (let n in t) kI(e, n, t[n]);
-}, jI = (e, t) => {
- if (t) for (let n in t) MI(e, t, n);
-}, MI = (e, t, n) => {
+}, DI = (e, t) => {
+ if (t) for (let n in t) EI(e, n, t[n]);
+}, OI = (e, t) => {
+ if (t) for (let n in t) kI(e, t, n);
+}, kI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Ufe = (e, ...t) => typeof e == "function" ? $F(OI, e, ...t) : $F(() => Hfe(OI(), e), ...t), Wfe = [
+}, Kfe = (e, ...t) => typeof e == "function" ? XF(TI, e, ...t) : XF(() => Gfe(TI(), e), ...t), qfe = [
"large-title",
"display-1",
"display-2",
@@ -37133,17 +37133,17 @@ var efe = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Gfe = [
+], Jfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = Ufe({ extend: { classGroups: { "font-size": [{ text: Wfe.flatMap((e) => Gfe.map((t) => `${e}-${t}`)) }] } } });
-function NI(e) {
+], q = Kfe({ extend: { classGroups: { "font-size": [{ text: qfe.flatMap((e) => Jfe.map((t) => `${e}-${t}`)) }] } } });
+function AI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Kfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
+var Yfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, jI = AI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37165,9 +37165,9 @@ var Kfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
gray: "text-text-primary"
}
});
-function FI({ children: e, className: t, ref: n, container: r, ...i }) {
+function MI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Kfe(() => {
+ Yfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37203,7 +37203,7 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", PI.radius[o.variant], PI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", jI.radius[o.variant], jI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37220,37 +37220,37 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Rt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var II = null, LI = null, RI = /* @__PURE__ */ new Set();
-function qfe(e) {
- return RI.add(e), () => {
- RI.delete(e);
+var NI = null, PI = null, FI = /* @__PURE__ */ new Set();
+function Xfe(e) {
+ return FI.add(e), () => {
+ FI.delete(e);
};
}
-function Jfe() {
- for (let e of [...RI]) e();
+function Zfe() {
+ for (let e of [...FI]) e();
}
-var Yfe = { render(e) {
- LI = e, (0, Rt.flushSync)(Jfe);
+var Qfe = { render(e) {
+ PI = e, (0, Rt.flushSync)(Zfe);
} };
-function Xfe(e) {
- return II = e, LI = null, Yfe;
+function $fe(e) {
+ return NI = e, PI = null, Qfe;
}
-function Zfe() {
- let e = (0, F.useSyncExternalStore)(qfe, () => LI);
- return II && e ? /* @__PURE__ */ (0, I.jsx)(Qfe, {
- host: II,
+function epe() {
+ let e = (0, F.useSyncExternalStore)(Xfe, () => PI);
+ return NI && e ? /* @__PURE__ */ (0, I.jsx)(tpe, {
+ host: NI,
props: e
}) : null;
}
-function Qfe({ host: e, props: t }) {
- let n = RF(t);
+function tpe({ host: e, props: t }) {
+ let n = FF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)($fe, {
+ /* @__PURE__ */ (0, I.jsx)(npe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(epe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(rpe, {
host: e,
label: n.crumb
}) : null,
@@ -37259,13 +37259,13 @@ function Qfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(tpe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(ipe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function $fe({ host: e, pressed: t, menu: n }) {
+function npe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37275,7 +37275,7 @@ function $fe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(FI, {
+ children: /* @__PURE__ */ (0, I.jsx)(MI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37289,13 +37289,13 @@ function $fe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function epe({ host: e, label: t }) {
+function rpe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37305,20 +37305,20 @@ function epe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function tpe({ host: e, lede: t }) {
+function ipe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: VF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(npe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: RF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ape, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37328,7 +37328,7 @@ function tpe({ host: e, lede: t }) {
}) : null] })
});
}
-function npe({ text: e }) {
+function ape({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Js(t.current, e);
@@ -37338,29 +37338,29 @@ function npe({ text: e }) {
});
}
// src/core/text-lang.ts
-var rpe = /[぀-ヿㇰ-ㇿヲ-゚]/, ipe = /[㐀-鿿豈-﫿]/, ape = /[A-Za-z]/;
-function zI(e) {
+var ope = /[぀-ヿㇰ-ㇿヲ-゚]/, spe = /[㐀-鿿豈-﫿]/, cpe = /[A-Za-z]/;
+function II(e) {
let t = String(e ?? "");
- if (rpe.test(t)) return "ja";
- if (!ipe.test(t) && ape.test(t)) return "en";
+ if (ope.test(t)) return "ja";
+ if (!spe.test(t) && cpe.test(t)) return "en";
}
-var ope = (e) => {
- let t = zI(e);
+var lpe = (e) => {
+ let t = II(e);
return t ? ` lang="${t}"` : "";
-}, spe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, cpe = (e, t = e?.name) => {
+}, upe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, dpe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(spe, "") : n;
-}, lpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), upe = (e) => {
+ return e?.is_jav ? n.replace(upe, "") : n;
+}, fpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), ppe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(lpe) || t[0] || "";
+ return t.find(fpe) || t[0] || "";
};
-function BI(e, t = e?.name) {
- let n = cpe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function LI(e, t = e?.name) {
+ let n = dpe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = upe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = ppe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37371,23 +37371,23 @@ function BI(e, t = e?.name) {
badges: f
};
}
-var VI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+var RI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = LI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function HI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+function zI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = LI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ope(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${lpe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var UI = "/api/tasks", WI = ["tasks"];
-function dpe(e, t) {
+var BI = "/api/tasks", VI = ["tasks"];
+function mpe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37398,7 +37398,7 @@ function dpe(e, t) {
settled: n - r
};
}
-function fpe(e) {
+function hpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37409,11 +37409,11 @@ function fpe(e) {
}
return [...t.values()];
}
-var ppe = (e, t) => B(`${UI}?${new URLSearchParams({
+var gpe = (e, t) => B(`${BI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function mpe(...e) {
+function _pe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37421,26 +37421,26 @@ function mpe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var hpe = 2e3, gpe = 1e4, GI = (e) => e?.running?.length ? hpe : gpe, KI = (e) => B(UI, e), _pe = (e, t, n) => V(`${UI}/${e}/control`, { action: t }, "POST", n);
-async function vpe(e) {
+var vpe = 2e3, ype = 1e4, HI = (e) => e?.running?.length ? vpe : ype, UI = (e) => B(BI, e), bpe = (e, t, n) => V(`${BI}/${e}/control`, { action: t }, "POST", n);
+async function xpe(e) {
await H.fetchQuery({
- queryKey: WI,
- queryFn: () => KI(e)
+ queryKey: VI,
+ queryFn: () => UI(e)
});
}
-var ype = {
+var Spe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, bpe = {
+}, Cpe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, xpe = (e) => bpe[e] || e, qI = {
+}, wpe = (e) => Cpe[e] || e, WI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37517,7 +37517,7 @@ var ype = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, Spe = [
+}, Tpe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37539,14 +37539,14 @@ var ype = {
"paused_count",
"miss",
"incomplete"
-], Cpe = ["face_match_unavailable"], JI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Cpe.some((t) => e.result_summary?.[t] === !0) || Spe.some((t) => Number(e.result_summary?.[t]) > 0);
-function wpe(e) {
+], Epe = ["face_match_unavailable"], GI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Epe.some((t) => e.result_summary?.[t] === !0) || Tpe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Dpe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var YI = /* @__PURE__ */ new Set(["library-processing"]);
-function Tpe(e, t = !0) {
- if (!JI(e) && e.status !== "failed" || YI.has(e.task_key) && !t) return null;
+var KI = /* @__PURE__ */ new Set(["library-processing"]);
+function Ope(e, t = !0) {
+ if (!GI(e) && e.status !== "failed" || KI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37564,19 +37564,19 @@ function Tpe(e, t = !0) {
label: n[1]
} : null;
}
-function Epe(e) {
+function kpe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function Dpe(e) {
+function Ape(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) YI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) KI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function Ope(e) {
+function jpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37585,7 +37585,7 @@ function Ope(e) {
}
return t;
}
-function kpe(e, t) {
+function Mpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37607,12 +37607,12 @@ function kpe(e, t) {
}
return n;
}
-var Ape = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !JI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XI = (e) => e.status === "pending" || e.status === "running";
-function jpe(e) {
+var Npe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !GI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), qI = (e) => e.status === "pending" || e.status === "running";
+function Ppe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, $I(e.error) || Rpe(o) || (XI(e) && i > 0 ? `${QI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, XI(e.error) || Vpe(o) || (qI(e) && i > 0 ? `${YI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function ZI(e) {
+function JI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37621,19 +37621,19 @@ function ZI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function QI(e, t) {
+function YI(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function Mpe(e) {
+function Fpe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function $I(e) {
- let t = Mpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function XI(e) {
+ let t = Fpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var Npe = {
+var Ipe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37651,11 +37651,11 @@ var Npe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, eL = {
+}, ZI = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Ppe = {
+}, Lpe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37666,8 +37666,8 @@ var Npe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Fpe = (e) => Npe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${eL[t.toLowerCase()]} 资料页` : `已保存来自 ${eL[t.toLowerCase()]} 的资料`);
-function tL(e) {
+}, Rpe = (e) => Ipe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${ZI[t.toLowerCase()]} 资料页` : `已保存来自 ${ZI[t.toLowerCase()]} 的资料`);
+function QI(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37677,7 +37677,7 @@ function tL(e) {
minute: "2-digit"
});
}
-var Ipe = /* @__PURE__ */ new Set([
+var zpe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37686,20 +37686,20 @@ var Ipe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function nL(e) {
- let t = Lpe(e);
+function $I(e) {
+ let t = Bpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Lpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Ipe.has(e) && (e in qI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? $I(String(t)) : e === "outcome" || e === "result" ? Fpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${qI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Ppe[String(t)] || "批量操作"}` : `${qI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Bpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !zpe.has(e) && (e in WI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? XI(String(t)) : e === "outcome" || e === "result" ? Rpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${WI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Lpe[String(t)] || "批量操作"}` : `${WI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Rpe = (e) => nL(e).join(" · ");
+var Vpe = (e) => $I(e).join(" · ");
// src/react/use-entity-names.ts
-function rL() {
+function eL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function iL({ text: e, busy: t, placeholder: n }) {
+function tL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
@@ -37720,7 +37720,7 @@ function iL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var aL = NI({
+var nL = AI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37731,20 +37731,20 @@ var aL = NI({
small: "size-4 shrink-0"
}
});
-function oL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function rL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(aL.base, aL.size[t], n),
+ className: q(nL.base, nL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: aL.icon[t],
+ className: nL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function sL() {
+function iL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37758,7 +37758,7 @@ function sL() {
});
}
// src/react/components/use-stuck.ts
-function cL(e) {
+function aL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37775,7 +37775,7 @@ function cL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function lL(e, t = !0) {
+function oL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37789,17 +37789,17 @@ function lL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var zpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Hpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+function sL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(rL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? zpe : t,
+ icon: n && r === "spinner" ? Hpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37809,9 +37809,9 @@ function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Bpe({ title: e, children: t }) {
+function Upe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return cL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return aL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37824,13 +37824,13 @@ function Bpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(iL, {})
]
});
}
-function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = lL(), p = lL(u);
- return cL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function cL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = oL(), p = oL(u);
+ return aL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37855,27 +37855,27 @@ function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(iL, {})
]
});
}
-var Vpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function fL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Wpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function lL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(Vpe, r),
+ className: q(Wpe, r),
onClick: n,
children: e
});
}
-var Hpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function pL({ children: e, onPress: t, busy: n = !1 }) {
+var Gpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function uL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Hpe,
+ className: Gpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37885,13 +37885,13 @@ function pL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var mL = (e, t) => [
+var dL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function hL(e, t, n) {
+function fL(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37915,17 +37915,17 @@ function hL(e, t, n) {
h: e.offsetHeight
};
}
-function gL(e, t, n, r, { axis: i = "x" } = {}) {
+function pL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? hL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? fL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && mL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && dL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37946,8 +37946,8 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? hL(o, r, i) : null, l = a.current;
- s && l && mL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? fL(o, r, i) : null, l = a.current;
+ s && l && dL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37978,7 +37978,7 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var _L = NI({
+var mL = AI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -38011,52 +38011,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: mL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function vL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function hL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: mL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var yL = Symbol("default");
-function bL({ values: e, children: t }) {
+var gL = Symbol("default");
+function _L({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function xL(e) {
+function vL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -38090,11 +38090,11 @@ function xL(e) {
c
]);
}
-function SL(e, t) {
+function yL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || yL;
+ let e = t || gL;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -38103,8 +38103,8 @@ function SL(e, t) {
}
return n;
}
-function CL(e, t, n) {
- let { ref: r, ...i } = SL(n, e.slot) || {}, a = XC((0, F.useMemo)(() => VC(t, r), [t, r])), o = K(i, e);
+function bL(e, t, n) {
+ let { ref: r, ...i } = yL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38122,42 +38122,42 @@ function CL(e, t, n) {
...e.style
}), [o, a];
}
-function wL(e = !0) {
+function xL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return zS(() => {
+ return RS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function TL(e) {
+function SL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Upe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => VC(n, a), [n, a]);
- zS(() => {}, [e, r]);
+function Kpe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => BC(n, a), [n, a]);
+ RS(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var EL = {}, DL = new Proxy({}, { get(e, t) {
+var CL = {}, wL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = EL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Upe.bind(null, t)), EL[t] = n), n;
-} }), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = /*#__PURE__*/ (0, F.createContext)(null), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = {
+ let n = CL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Kpe.bind(null, t)), CL[t] = n), n;
+} }), TL = /*#__PURE__*/ (0, F.createContext)(null), EL = /*#__PURE__*/ (0, F.createContext)(null), DL = /*#__PURE__*/ (0, F.createContext)(null), OL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return ML(e, null, t);
+ return kL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return ML(e, t, n);
+ return kL(e, t, n);
}
};
-function ML(e, t, n) {
- return xS({
+function kL(e, t, n) {
+ return bS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38167,11 +38167,11 @@ function ML(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Wpe(e, t, n));
+ }), r, qpe(e, t, n));
}
});
}
-function Wpe(e, t, n) {
+function qpe(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38190,24 +38190,24 @@ function Wpe(e, t, n) {
}
return s;
}
-var NL = /*#__PURE__*/ (0, F.createContext)(jL);
-function PL(e) {
+var AL = /*#__PURE__*/ (0, F.createContext)(OL);
+function jL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, FL);
- let { elementType: n = "label", ...r } = e, i = DL[n];
+var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, ML);
+ let { elementType: n = "label", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Gpe = /*#__PURE__*/ (0, F.createContext)(null), LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, LL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Koe(e, t);
- i = qpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = kD(e), { hoverProps: l, isHovered: u } = ND({
+}), Jpe = /*#__PURE__*/ (0, F.createContext)(null), PL = /*#__PURE__*/ (0, F.createContext)({}), FL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, PL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = qoe(e, t);
+ i = Xpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = OD(e), { hoverProps: l, isHovered: u } = MD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38217,24 +38217,24 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = xL({
+ }, f = vL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = zC(i.id), m = zC(), h = i["aria-labelledby"];
+ }), p = RC(i.id), m = RC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && AT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && kT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Uw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(DL.button, {
+ let _ = Hw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(wL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38248,61 +38248,61 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ tw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Gpe.Provider, { value: { id: m } }, f.children));
-}), Kpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function qpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(Jpe.Provider, { value: { id: m } }, f.children));
+}), Ype = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Xpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Kpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Ype.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, zL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = DL[`h${r}`];
+var IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, IL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = wL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), VL = /*#__PURE__*/ (0, F.createContext)({}), Jpe = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, VL);
- let { elementType: n = "span", ...r } = e, i = DL[n];
+}), RL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, RL);
+ let { elementType: n = "span", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), Ype = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null);
-function Xpe(e, t) {
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Ype), a = XC((0, F.useMemo)(() => VC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...TL(e),
+}), zL = /*#__PURE__*/ (0, F.createContext)(null), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), Qpe = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null);
+function $pe(e, t) {
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Qpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...SL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? hse(o, i, a) : ZT(o, nE(e), a), a];
+ return [i ? gse(o, i, a) : XT(o, tE(e), a), a];
}
-var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, WL);
- let [i, a] = Xpe(e, n);
- return /*#__PURE__*/ F.createElement(KL.Provider, { value: {
+ [e, t] = bL(r, t, VL);
+ let [i, a] = $pe(e, n);
+ return /*#__PURE__*/ F.createElement(UL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Qpe, {
+ } }, /*#__PURE__*/ F.createElement(tme, {
...e,
ref: t
}));
-}), Qpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(KL), { isFocused: p, isFocusVisible: m, focusProps: h } = kD(), g = a || o, { hoverProps: _, isHovered: v } = ND({
+}), tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(UL), { isFocused: p, isFocusVisible: m, focusProps: h } = OD(), g = a || o, { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: g
- }), y = xL({
+ }), y = vL({
...e,
defaultClassName: u,
values: {
@@ -38317,8 +38317,8 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Uw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Hw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38332,20 +38332,20 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), qL = /*#__PURE__*/ (0, F.createContext)({}), JL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, qL);
+}), WL = /*#__PURE__*/ (0, F.createContext)({}), GL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, WL);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = ND({
+ let { hoverProps: l, isHovered: u } = MD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = kD({ within: !0 }), m = xL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = OD({ within: !0 }), m = vL({
...e,
values: {
isHovered: u,
@@ -38356,7 +38356,7 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38369,18 +38369,18 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), YL = /*#__PURE__*/ (0, F.createContext)({}), $pe = (e) => {
+}), KL = /*#__PURE__*/ (0, F.createContext)({}), nme = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, eme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, YL);
- let { hoverProps: n, isHovered: r } = ND({
+}, rme = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, KL);
+ let { hoverProps: n, isHovered: r } = MD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
...e,
values: {
isHovered: r,
@@ -38391,8 +38391,8 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(DL.input, {
- ...K($pe(e), o, n),
+ return /*#__PURE__*/ F.createElement(wL.input, {
+ ...K(nme(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38401,24 +38401,24 @@ var Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), tme = 0, nme = 100, rme = 1;
-function ime(e) {
- let { isDisabled: t = !1, minValue: n = tme, maxValue: r = nme, numberFormatter: i, step: a = rme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), ime = 0, ame = 100, ome = 1;
+function sme(e) {
+ let { isDisabled: t = !1, minValue: n = ime, maxValue: r = ame, numberFormatter: i, step: a = ome, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = aE(e, 0, e + a, a), Math.max(e, a);
+ return e = iE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => aE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => iE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(ZL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(ZL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(JL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(JL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = QL(e.value, e.defaultValue, e.onChange), f = QL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = tE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = YL(e.value, e.defaultValue, e.onChange), f = YL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = eE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38441,15 +38441,15 @@ function ime(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = aE(n, r, i, a);
- let o = XL(x.current, e, n);
+ n = iE(n, r, i, a);
+ let o = qL(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = XL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = qL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38470,15 +38470,15 @@ function ime(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return rE(te(e * (r - n) + n), n, r);
+ return nE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, aE(p[e] + i, n, r, a));
+ A(e, iE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, aE(p[e] - i, n, r, a));
+ A(e, iE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38507,31 +38507,31 @@ function ime(e) {
isDisabled: t
};
}
-function XL(e, t, n) {
+function qL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function ZL(e) {
+function JL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function QL(e, t, n) {
+function YL(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.createContext)(null), eR = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.createContext)(null), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, ame);
- let n = (0, F.useRef)(null), r = bse(e.formatOptions), i = ime({
+var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, cme);
+ let n = (0, F.useRef)(null), r = xse(e.formatOptions), i = sme({
...e,
numberFormatter: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = xse({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Sse({
...e,
label: o
- }, i, n), d = xL({
+ }, i, n), d = vL({
...e,
values: {
orientation: i.orientation,
@@ -38539,32 +38539,32 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Uw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(bL, { values: [
- [$L, i],
- [eR, {
+ }), f = Hw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(_L, { values: [
+ [XL, i],
+ [ZL, {
...c,
ref: n
}],
- [ome, u],
- [FL, {
+ [lme, u],
+ [ML, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ ] }, /*#__PURE__*/ F.createElement(wL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, eR);
- let n = (0, F.useContext)($L), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ND({
+}), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, ZL);
+ let n = (0, F.useContext)(XL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = xL({
+ }), l = vL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38574,7 +38574,7 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...K(o, s),
...l,
ref: t,
@@ -38582,14 +38582,14 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)($L), { ref: i } = SL(eR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = wL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Sse({
+}), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(XL), { ref: i } = yL(ZL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = xL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Cse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = kD(), { hoverProps: v, isHovered: y } = ND(e), b = xL({
+ }, r), { focusProps: g, isFocusVisible: _ } = OD(), { hoverProps: v, isHovered: y } = MD(e), b = vL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38600,8 +38600,8 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Uw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), x = Hw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(wL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38614,330 +38614,330 @@ var ame = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(bL, { values: [[FL, {
+ })), /*#__PURE__*/ F.createElement(_L, { values: [[ML, {
...f,
ref: c
}]] }, b.children));
-}), tR = {};
-tR = {
+}), QL = {};
+QL = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var nR = {};
-nR = {
+var $L = {};
+$L = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var rR = {};
-rR = {
+var eR = {};
+eR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var iR = {};
-iR = {
+var tR = {};
+tR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var aR = {};
-aR = {
+var nR = {};
+nR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var oR = {};
-oR = {
+var rR = {};
+rR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var sR = {};
-sR = {
+var iR = {};
+iR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var cR = {};
-cR = {
+var aR = {};
+aR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var lR = {};
-lR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var uR = {};
-uR = {
+var sR = {};
+sR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var dR = {};
-dR = {
+var cR = {};
+cR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var fR = {};
-fR = {
+var lR = {};
+lR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var pR = {};
-pR = {
+var uR = {};
+uR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var mR = {};
-mR = {
+var dR = {};
+dR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var hR = {};
-hR = {
+var fR = {};
+fR = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var gR = {};
-gR = {
+var pR = {};
+pR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var _R = {};
-_R = {
+var mR = {};
+mR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var vR = {};
-vR = {
+var hR = {};
+hR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var yR = {};
-yR = {
+var gR = {};
+gR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var bR = {};
-bR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var xR = {};
-xR = {
+var vR = {};
+vR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var SR = {};
-SR = {
+var yR = {};
+yR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var CR = {};
-CR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var wR = {};
-wR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var TR = {};
-TR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var ER = {};
-ER = {
+var CR = {};
+CR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var DR = {};
-DR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var OR = {};
-OR = {
+var TR = {};
+TR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var kR = {};
-kR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var AR = {};
-AR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var jR = {};
-jR = {
+var OR = {};
+OR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var MR = {};
-MR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var NR = {};
-NR = {
+var AR = {};
+AR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var PR = {};
-PR = {
+var jR = {};
+jR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var FR = {};
-FR = {
- "ar-AE": tR,
- "bg-BG": nR,
- "cs-CZ": rR,
- "da-DK": iR,
- "de-DE": aR,
- "el-GR": oR,
- "en-US": sR,
- "es-ES": cR,
- "et-EE": lR,
- "fi-FI": uR,
- "fr-FR": dR,
- "he-IL": fR,
- "hr-HR": pR,
- "hu-HU": mR,
- "it-IT": hR,
- "ja-JP": gR,
- "ko-KR": _R,
- "lt-LT": vR,
- "lv-LV": yR,
- "nb-NO": bR,
- "nl-NL": xR,
- "pl-PL": SR,
- "pt-BR": CR,
- "pt-PT": wR,
- "ro-RO": TR,
- "ru-RU": ER,
- "sk-SK": DR,
- "sl-SI": OR,
- "sr-SP": kR,
- "sv-SE": AR,
- "tr-TR": jR,
- "uk-UA": MR,
- "zh-CN": NR,
- "zh-TW": PR
+var MR = {};
+MR = {
+ "ar-AE": QL,
+ "bg-BG": $L,
+ "cs-CZ": eR,
+ "da-DK": tR,
+ "de-DE": nR,
+ "el-GR": rR,
+ "en-US": iR,
+ "es-ES": aR,
+ "et-EE": oR,
+ "fi-FI": sR,
+ "fr-FR": cR,
+ "he-IL": lR,
+ "hr-HR": uR,
+ "hu-HU": dR,
+ "it-IT": fR,
+ "ja-JP": pR,
+ "ko-KR": mR,
+ "lt-LT": hR,
+ "lv-LV": gR,
+ "nb-NO": _R,
+ "nl-NL": vR,
+ "pl-PL": yR,
+ "pt-BR": bR,
+ "pt-PT": xR,
+ "ro-RO": SR,
+ "ru-RU": CR,
+ "sk-SK": wR,
+ "sl-SI": TR,
+ "sr-SP": ER,
+ "sv-SE": DR,
+ "tr-TR": OR,
+ "uk-UA": kR,
+ "zh-CN": AR,
+ "zh-TW": jR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(LR);
+var NR = /*#__PURE__*/ (0, F.createContext)({}), PR = /*#__PURE__*/ (0, F.createContext)(null), pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(PR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function RR(e, t) {
+function FR(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(ume, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(pme, { target: e });
}, [
t?.target,
r,
@@ -38945,7 +38945,7 @@ function RR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function zR(e, t, n) {
+function IR(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38966,13 +38966,13 @@ function zR(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var BR = /*#__PURE__*/ (0, F.createContext)({}), dme = /*#__PURE__*/ (0, F.createContext)(null);
-function VR(e) {
+var LR = /*#__PURE__*/ (0, F.createContext)({}), mme = /*#__PURE__*/ (0, F.createContext)(null);
+function RR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(dme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(mme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE__*/ (0, F.createContext)({}), fme = /*#__PURE__*/ lw(class extends pS {
+var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE__*/ (0, F.createContext)({}), hme = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "separator";
}
@@ -38985,14 +38985,14 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = CL(e, t, UR);
+ [e, t] = bL(e, t, BR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = DL[c], { separatorProps: u } = Mce({
+ let l = wL[c], { separatorProps: u } = Fce({
...s,
elementType: n,
orientation: r
- }), d = Uw(e, { global: !0 });
+ }), d = Hw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -39003,12 +39003,12 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function WR(e) {
+function VR(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var GR = class {
+var HR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39052,19 +39052,19 @@ var GR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, KR = class e extends Set {
+}, UR = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function pme(e, t) {
+function gme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function qR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = tE((0, F.useMemo)(() => JR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => JR(e.defaultSelectedKeys, new KR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function WR(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = eE((0, F.useMemo)(() => GR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => GR(e.defaultSelectedKeys, new UR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39091,17 +39091,17 @@ function qR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !pme(e, d)) && f(e);
+ (r || !gme(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function JR(e, t) {
- return e ? e === "all" ? "all" : new KR(e) : t;
+function GR(e, t) {
+ return e ? e === "all" ? "all" : new UR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var YR = class e {
+var KR = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -39157,7 +39157,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && _D(this.collection, n, e) < 0) && (e = n);
+ (!e || n && gD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39165,7 +39165,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && _D(this.collection, n, e) > 0) && (e = n);
+ (!e || n && gD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39184,10 +39184,10 @@ var YR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new KR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new UR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new KR(e, r, t);
+ n = new UR(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -39195,7 +39195,7 @@ var YR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? _D(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? gD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39221,19 +39221,19 @@ var YR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new KR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new UR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new KR([t], t, t) : new KR();
+ let n = this.canSelectItem(t) ? new UR([t], t, t) : new UR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new KR();
+ let t = new UR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39245,7 +39245,7 @@ var YR = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(mD(pD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(pD(fD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39256,7 +39256,7 @@ var YR = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new KR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new UR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39297,9 +39297,9 @@ var YR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, mme = class {
+}, _me = class {
build(e, t) {
- return this.context = t, XR(() => this.iterateCollection(e));
+ return this.context = t, qR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39381,10 +39381,10 @@ var YR = class e {
...a,
key: l,
index: s,
- wrapper: hme(e.wrapper, a.wrapper)
+ wrapper: vme(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${ZR(t.type)}> in <${ZR(r?.type ?? "unknown parent type")}>. Only <${ZR(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${JR(t.type)}> in <${JR(r?.type ?? "unknown parent type")}>. Only <${JR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39406,7 +39406,7 @@ var YR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: XR(function* () {
+ childNodes: qR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39425,7 +39425,7 @@ var YR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function XR(e) {
+function qR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39433,17 +39433,17 @@ function XR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function hme(e, t) {
+function vme(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function ZR(e) {
+function JR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function QR(e, t, n) {
- let r = (0, F.useMemo)(() => new mme(), []), { children: i, items: a, collection: o } = e;
+function YR(e, t, n) {
+ let r = (0, F.useMemo)(() => new _me(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39457,27 +39457,27 @@ function QR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function $R(e) {
- let { filter: t, layoutDelegate: n } = e, r = qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = QR(e, (0, F.useCallback)((e) => t ? new GR(t(e)) : new GR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new YR(a, r, { layoutDelegate: n }), [
+function XR(e) {
+ let { filter: t, layoutDelegate: n } = e, r = WR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = YR(e, (0, F.useCallback)((e) => t ? new HR(t(e)) : new HR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new KR(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return ez(a, o), {
+ return ZR(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function gme(e, t) {
+function yme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return ez(n, r), {
+ return ZR(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function ez(e, t) {
+function ZR(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39504,15 +39504,15 @@ function ez(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function tz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Dw((e) => {
+function QR(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ew((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- zS(() => {
+ RS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: NT(t?.current),
+ root: MT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39527,42 +39527,42 @@ function tz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)(null), rz = /*#__PURE__*/ (0, F.createContext)(null), _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, nz);
- let n = (0, F.useContext)(rz);
- return n ? /*#__PURE__*/ F.createElement(iz, {
+var $R = /*#__PURE__*/ (0, F.createContext)(null), ez = /*#__PURE__*/ (0, F.createContext)(null), bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, $R);
+ let n = (0, F.useContext)(ez);
+ return n ? /*#__PURE__*/ F.createElement(tz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(vme, {
+ }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(xme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function vme({ props: e, listBoxRef: t, collection: n }) {
+function xme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(NL), i = $R({
+ let { layoutDelegate: r } = (0, F.useContext)(AL), i = XR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(iz, {
+ return /*#__PURE__*/ F.createElement(tz, {
state: i,
props: e,
listBoxRef: t
});
}
-function iz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = CL(t, n, OL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = gme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Fw(), { disabledBehavior: p, disabledKeys: m } = l, h = SD({
+function tz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = bL(t, n, TL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = xD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(NL), b = (0, F.useMemo)(() => t.keyboardDelegate || new wE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(AL), b = (0, F.useMemo)(() => t.keyboardDelegate || new CE({
collection: c,
collator: h,
ref: n,
@@ -39583,7 +39583,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Yse({
+ ]), { listBoxProps: x } = Xse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39615,7 +39615,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = kD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = OD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39623,7 +39623,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = xL({
+ }, ee = vL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39633,8 +39633,8 @@ function iz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Uw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let te = Hw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(wL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39645,60 +39645,60 @@ function iz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [nz, t],
- [rz, s],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [$R, t],
+ [ez, s],
+ [NR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [UR, { elementType: "div" }],
- [LR, { render: xme }],
- [AL, {
+ [BR, { elementType: "div" }],
+ [PR, { render: wme }],
+ [DL, {
name: "ListBoxSection",
- render: yme
+ render: Sme
}]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: zR(l, r, C),
- renderDropIndicator: RR(r, C)
+ persistedKeys: IR(l, r, C),
+ renderDropIndicator: FR(r, C)
}))), N, E));
}
-function yme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(rz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(IR), { CollectionBranch: s } = (0, F.useContext)(NL), [c, l] = wL(), { headingProps: u, groupProps: d } = Xse({
+function Sme(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(ez), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(NR), { CollectionBranch: s } = (0, F.useContext)(AL), [c, l] = xL(), { headingProps: u, groupProps: d } = Zse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = xL({
+ }), f = vL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Uw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), p = Hw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(wL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(LR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: RR(a, o)
+ renderDropIndicator: FR(a, o)
})));
}
-var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
- let r = XC(t), i = (0, F.useContext)(rz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Zse({
+var Cme = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ let r = YC(t), i = (0, F.useContext)(ez), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Qse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = ND({
+ }, i, r), { hoverProps: p, isHovered: m } = MD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = YC(e), { focusProps: g } = GC(e), _ = null;
+ }), { keyboardProps: h } = JC(e), { focusProps: g } = WC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39709,7 +39709,7 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = xL({
+ let y = o && o.isDragging(n.key), b = vL({
...e,
id: void 0,
children: e.children,
@@ -39727,7 +39727,7 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? DL.a : DL.div, S = Uw(e, { global: !0 });
+ let x = e.href ? wL.a : wL.div, S = Hw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39741,29 +39741,29 @@ var bme = /*#__PURE__*/ lw(gS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(bL, { values: [[VL, { slots: {
- [yL]: u,
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[RL, { slots: {
+ [gL]: u,
label: u,
description: d
- } }], [HR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [zR, { isSelected: f.isSelected }]] }, b.children));
});
-function xme(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Cme, {
+function wme(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(Eme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Sme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = xL({
+function Tme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = vL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
...n,
...a,
role: "option",
@@ -39771,10 +39771,10 @@ function Sme(e, t) {
"data-drop-target": r || void 0
}));
}
-var Cme = /*#__PURE__*/ (0, F.forwardRef)(Sme);
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(rz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+var Eme = /*#__PURE__*/ (0, F.forwardRef)(Tme);
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(ez), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39784,7 +39784,7 @@ lw(hS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = vL({
...s,
id: void 0,
children: n.rendered,
@@ -39797,7 +39797,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39806,18 +39806,18 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var wme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Dme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function az(e) {
- let [t, n] = tE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function nz(e) {
+ let [t, n] = eE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39835,15 +39835,15 @@ function az(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function oz(e, t = !0, n) {
+function rz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return zS(() => {
- if (!t && e.current) return FC(OS(e.current, "opacity", "0"), OS(e.current, "clip", "rect(0 0 0 0)"), OS(e.current, "clip-path", "inset(50%)"), OS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), zS(() => {
+ return RS(() => {
+ if (!t && e.current) return PC(DS(e.current, "opacity", "0"), DS(e.current, "clip", "rect(0 0 0 0)"), DS(e.current, "clip-path", "inset(50%)"), DS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), RS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), cz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), az(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function sz(e, t, n) {
+function iz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39853,13 +39853,13 @@ function sz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return cz(e, a, n, (0, F.useCallback)(() => {
+ return az(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function cz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Dw(n);
- zS(() => {
+function az(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Ew(n);
+ RS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39884,9 +39884,9 @@ function cz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.createContext)(null), dz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, lz);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = sz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = nw(), { direction: c } = Fw();
+var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, oz);
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = tw(), { direction: c } = Pw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39897,7 +39897,7 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Tme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Ome, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39906,13 +39906,13 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(uz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Tce({
+function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(sz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Oce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = oz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = xL({
+ }, e), g = i.popoverRef, _ = rz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = vL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39922,10 +39922,10 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- zS(() => {
+ RS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || CC() !== "pointer") && g.current && !NS(g.current) && PC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || SC() !== "pointer") && g.current && !MS(g.current) && NC(g.current);
}, [
x,
g,
@@ -39933,12 +39933,12 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [lz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [oz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- zS(E, [E]), jO({
+ RS(E, [E]), AO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39948,9 +39948,9 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- zS(() => bk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(i, { global: !0 }), d),
+ RS(() => yk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(wL.div, {
+ ...K(Hw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39965,17 +39965,17 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(wme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Dme.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(DD, {
+ } }, C), /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(ED, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(DD, {
+ }, O) : /*#__PURE__*/ F.createElement(ED, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39990,13 +39990,13 @@ function Tme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(uz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(sz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Eme = /*#__PURE__*/ (0, F.createContext)({});
+var kme = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function fz(e) {
- let t = az(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function lz(e) {
+ let t = nz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -40021,7 +40021,7 @@ function fz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Dme = class {
+var Ame = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -40064,8 +40064,8 @@ var Dme = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function pz(e) {
- let { onExpandedChange: t } = e, [n, r] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = qR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = QR(e, (0, F.useCallback)((e) => new Dme(e, { expandedKeys: n }), [n]), null);
+function uz(e) {
+ let { onExpandedChange: t } = e, [n, r] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YR(e, (0, F.useCallback)((e) => new Ame(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40073,31 +40073,31 @@ function pz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Ome(n, e));
+ r(jme(n, e));
},
setExpandedKeys: r,
- selectionManager: new YR(o, i)
+ selectionManager: new KR(o, i)
};
}
-function Ome(e, t) {
+function jme(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null);
-function kme(e) {
- let t = fz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = cD({
+var dz = /*#__PURE__*/ (0, F.createContext)(null), fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null);
+function Mme(e) {
+ let t = lz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = sD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return nw() ? null : /*#__PURE__*/ F.createElement(bL, { values: [
- [mz, {
+ return tw() ? null : /*#__PURE__*/ F.createElement(_L, { values: [
+ [dz, {
...i,
ref: a
}],
- [Cz, t],
- [gz, t],
- [lz, {
+ [bz, t],
+ [pz, t],
+ [oz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40105,14 +40105,14 @@ function kme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Pse, {
+ ] }, /*#__PURE__*/ F.createElement(Fse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Ame = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends pS {
+var Nme = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends fS {
static {
this.type = "submenutrigger";
}
@@ -40125,24 +40125,24 @@ var Ame = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, mz), /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(Mme, {
+var Pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = bL(e, t, dz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(Fme, {
props: e,
collection: n,
menuRef: t
}));
});
-function Mme({ props: e, collection: t, menuRef: n }) {
- [e, n] = CL(e, n, OL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = pz({
+function Fme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = bL(e, n, TL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = uz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(gz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(NL), { menuProps: u } = Qse({
+ }), s = (0, F.useContext)(pz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(AL), { menuProps: u } = $se({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = xL({
+ }, o, n), d = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40152,36 +40152,36 @@ function Mme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let p = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(wL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [hz, o],
- [UR, { elementType: "div" }],
- [AL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [fz, o],
+ [BR, { elementType: "div" }],
+ [DL, {
name: "MenuSection",
- render: vz
+ render: hz
}],
- [Ame, {
+ [Nme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [OL, null],
- [kL, null],
- [_z, o.selectionManager],
- [gz, s ?? fz({})]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(l, {
+ [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [TL, null],
+ [EL, null],
+ [mz, o.selectionManager],
+ [pz, s ?? lz({})]
+ ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: PL(o.selectionManager.focusedKey),
+ persistedKeys: jL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Nme = class extends YR {
+var Ime = class extends KR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40201,11 +40201,11 @@ var Nme = class extends YR {
return this.parent.childFocusStrategy;
}
};
-function vz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(hz), { CollectionBranch: a } = (0, F.useContext)(NL), [o, s] = wL(), { headingProps: c, groupProps: l } = ece({
+function hz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(fz), { CollectionBranch: a } = (0, F.useContext)(AL), [o, s] = xL(), { headingProps: c, groupProps: l } = tce({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = xL({
+ }), u = vL({
...e,
id: void 0,
children: void 0,
@@ -40213,31 +40213,31 @@ function vz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(_z), f = qR(e), p = e.selectionMode == null ? d : new Nme(d, f), m = SL(bz)?.shouldCloseOnSelect, h = Uw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), d = (0, F.useContext)(mz), f = WR(e), p = e.selectionMode == null ? d : new Ime(d, f), m = yL(_z)?.shouldCloseOnSelect, h = Hw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(wL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [BR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [LR, {
...c,
ref: o
}],
- [_z, p],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [mz, p],
+ [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ lw(gS, function(e, t, n) {
- [e, t] = CL(e, t, bz);
- let r = SL(bz)?.id, i = (0, F.useContext)(hz), a = XC(t), o = (0, F.useContext)(_z), { isVirtualized: s } = (0, F.useContext)(NL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = $se({
+var gz = /*#__PURE__*/ lw(pae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ [e, t] = bL(e, t, _z);
+ let r = yL(_z)?.id, i = (0, F.useContext)(fz), a = YC(t), o = (0, F.useContext)(mz), { isVirtualized: s } = (0, F.useContext)(AL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ece({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = ND({ isDisabled: f.isDisabled }), h = xL({
+ }, i, a), { hoverProps: p, isHovered: m } = MD({ isDisabled: f.isDisabled }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -40251,7 +40251,7 @@ var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? DL.a : DL.div, _ = Uw(e, { global: !0 });
+ }), g = e.href ? wL.a : wL.div, _ = Hw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40264,19 +40264,19 @@ var yz = /*#__PURE__*/ uw(fae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [VL, { slots: {
- [yL]: l,
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [RL, { slots: {
+ [gL]: l,
label: l,
description: u
} }],
- [Eme, d],
- [HR, { isSelected: f.isSelected }]
+ [kme, d],
+ [zR, { isSelected: f.isSelected }]
] }, h.children));
});
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(hz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(fz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40286,7 +40286,7 @@ lw(hS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = vL({
...s,
id: void 0,
children: n.rendered,
@@ -40299,7 +40299,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40308,89 +40308,89 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = CL(e, t, Sz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Ise({
+ [e, t] = bL(e, t, yz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Lse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Cz);
+ }, t), o = (0, F.useContext)(bz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = xL({
+ let s = vL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.section, {
+ }), c = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [zL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [IL, { slots: {
+ [gL]: {},
title: {
...i,
level: 2
}
} }],
- [VL, { slots: {
- [yL]: {},
+ [RL, { slots: {
+ [gL]: {},
description: a
} }],
- [LL, { slots: {
- [yL]: {},
+ [PL, { slots: {
+ [gL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Tz = typeof document < "u" && window.visualViewport;
-function Pme() {
- let e = sC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Sz = typeof document < "u" && window.visualViewport;
+function Lme() {
+ let e = oC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Ez());
+ } : Cz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Tz && Tz.scale > 1 || e(Ez());
+ Sz && Sz.scale > 1 || e(Cz());
}, i = (n) => {
- Tz && Tz.scale > 1 || ww(G(n)) && (t.current = bk((t) => {
+ Sz && Sz.scale > 1 || Cw(G(n)) && (t.current = yk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Ez()), YS() && XS() && window.addEventListener("blur", i, !0), Tz ? Tz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Tz ? Tz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Cz()), JS() && YS() && window.addEventListener("blur", i, !0), Sz ? Sz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), JS() && YS() && window.removeEventListener("blur", i, !0), Sz ? Sz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Ez() {
+function Cz() {
return {
- width: Tz ? Math.min(Tz.width * Tz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Tz ? Tz.height * Tz.scale : document.documentElement.clientHeight
+ width: Sz ? Math.min(Sz.width * Sz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Sz ? Sz.height * Sz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Fme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Ime = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Dz)) return /*#__PURE__*/ F.createElement(kz, {
+var Rme = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), zme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(wz)) return /*#__PURE__*/ F.createElement(Ez, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Oz, {
+ return /*#__PURE__*/ F.createElement(Tz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40400,15 +40400,15 @@ var Fme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(kz, {
+ }, /*#__PURE__*/ F.createElement(Ez, {
...f,
modalRef: t
}, s));
});
-function Lme(e, t) {
- [e, t] = CL(e, t, Fme);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = XC(t), o = (0, F.useRef)(null), s = sz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = sz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = sC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Rme, {
+function Bme(e, t) {
+ [e, t] = bL(e, t, Rme);
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(t), o = (0, F.useRef)(null), s = iz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = iz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = oC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Vme, {
...e,
state: i,
isExiting: u,
@@ -40417,12 +40417,12 @@ function Lme(e, t) {
onExitRef: c
});
}
-var Oz = /*#__PURE__*/ (0, F.forwardRef)(Lme);
-function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = oz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = dce({
+var Tz = /*#__PURE__*/ (0, F.forwardRef)(Bme);
+function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = rz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = fce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Sz), f = t ? zme(d, { isEntering: c }) : d, p = xL({
+ }, i, r), d = (0, F.useContext)(yz), f = t ? Hme(d, { isEntering: c }) : d, p = vL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40430,9 +40430,9 @@ function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Pme(), h, g;
+ }), m = Lme(), h, g;
if (typeof document < "u") {
- let e = MT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = jT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40442,18 +40442,18 @@ function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return zS(() => bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(DD, {
+ return RS(() => yk(() => o(!0)), []), /*#__PURE__*/ F.createElement(ED, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(wL.div, {
+ ...K(Hw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Dz, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [wz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40461,11 +40461,11 @@ function Rme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Cz, i],
- [Sz, f]
+ [bz, i],
+ [yz, f]
] }, p.children)));
}
-function zme(e, t) {
+function Hme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40482,8 +40482,8 @@ function zme(e, t) {
...t
};
}
-function kz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Dz), s = (0, F.useContext)(Cz), c = XC((0, F.useMemo)(() => VC(e.modalRef, n), [e.modalRef, n])), l = oz(c, o, e.onEnter), u = xL({
+function Ez(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(wz), s = (0, F.useContext)(bz), c = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = rz(c, o, e.onEnter), u = vL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40492,20 +40492,20 @@ function kz(e) {
state: s
}
});
- return zS(() => {
+ return RS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Uw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(wL.div, {
+ ...K(Hw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(pk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(fk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Bme = Math.round(Math.random() * 1e10), Vme = 0;
-function Hme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Bme}-${++Vme}`, [e.name]), [n, r] = tE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = KT({
+var Ume = Math.round(Math.random() * 1e10), Wme = 0;
+function Gme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Ume}-${++Wme}`, [e.name]), [n, r] = eE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = GT({
...e,
value: n
}), c = (t) => {
@@ -40527,16 +40527,16 @@ function Hme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, Ume);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = Hme({
+var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, Kme);
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = Gme({
...e,
validationBehavior: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Oce({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = jce({
...e,
label: o,
validationBehavior: r
- }, i), f = xL({
+ }, i), f = vL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40547,8 +40547,8 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), p = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40557,39 +40557,39 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Az, i],
- [FL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [Dz, i],
+ [ML, {
...c,
ref: a,
elementType: "span"
}],
- [VL, { slots: {
+ [RL, { slots: {
description: l,
errorMessage: u
} }],
- [HL, d]
- ] }, /*#__PURE__*/ F.createElement(VR, null, f.children)));
-}), Mz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [zL, d]
+ ] }, /*#__PURE__*/ F.createElement(RR, null, f.children)));
+}), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, Wme);
- let i = F.useContext(Az), a = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Dce({
- ...TL(e),
+ [e, t] = bL(r, t, qme);
+ let i = F.useContext(Dz), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ace({
+ ...SL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Nz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Az.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Gme, {
+ } }, /*#__PURE__*/ F.createElement(Jme, {
...e,
ref: t
}));
-}), Nz = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Nz), l = F.useContext(Az), { isFocused: u, isFocusVisible: d, focusProps: f } = kD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ND({
+}), Az = /*#__PURE__*/ (0, F.createContext)(null), Jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Az), l = F.useContext(Dz), { isFocused: u, isFocusVisible: d, focusProps: f } = OD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MD({
...e,
isDisabled: p
- }), g = xL({
+ }), g = vL({
...e,
defaultClassName: s,
values: {
@@ -40603,8 +40603,8 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Uw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), _ = Hw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40616,18 +40616,18 @@ var Ume = /*#__PURE__*/ (0, F.createContext)(null), Wme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Kme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = az(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Yme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = nz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = tE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = eE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40639,12 +40639,12 @@ function Kme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = $R({
+ }, d = XR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => qme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Xme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40654,7 +40654,7 @@ function Kme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = KT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = GT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40681,15 +40681,15 @@ function Kme(e) {
setFocused: g
};
}
-function qme(e) {
+function Xme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Jme(e) {
+function Zme(e) {
return e && e.__esModule ? e.default : e;
}
-var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, Pz);
+var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, jz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40704,24 +40704,24 @@ var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(Zme, {
+ return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement(ehe, {
props: e,
collection: n,
selectRef: t
}));
-}), Xme = [
- FL,
- LL,
- VL
+}), $me = [
+ ML,
+ PL,
+ RL
];
-function Zme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = SL(UL) || {}, i = e.validationBehavior ?? r ?? "native", a = Kme({
+function ehe({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = yL(BL) || {}, i = e.validationBehavior ?? r ?? "native", a = Yme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = kD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = wL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kce({
- ...TL(e),
+ }), { isFocusVisible: o, focusProps: s } = OD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = xL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Mce({
+ ...SL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40738,48 +40738,48 @@ function Zme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = xL({
+ ]), b = vL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Uw(e, { global: !0 });
+ }), x = Hw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Pz, e],
- [Fz, a],
- [Iz, p],
- [FL, {
+ return /*#__PURE__*/ F.createElement(_L, { values: [
+ [jz, e],
+ [Mz, a],
+ [Nz, p],
+ [ML, {
...d,
ref: l,
elementType: "span"
}],
- [LL, {
+ [PL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Cz, a],
- [lz, {
+ [bz, a],
+ [oz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Xme
+ clearContexts: $me
}],
- [nz, {
+ [$R, {
...m,
ref: S
}],
- [rz, a],
- [VL, { slots: {
+ [ez, a],
+ [RL, { slots: {
description: h,
errorMessage: g
} }],
- [HL, v]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ [zL, v]
+ ] }, /*#__PURE__*/ F.createElement(wL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40789,14 +40789,14 @@ function Zme({ 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__*/ F.createElement(jce, {
+ }, b.children, /*#__PURE__*/ F.createElement(Pce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, Iz);
- let n = (0, F.useContext)(Fz), { placeholder: r } = SL(Pz), i = n.selectedItems.map((e) => {
+for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, Nz);
+ let n = (0, F.useContext)(Mz), { placeholder: r } = yL(jz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40808,7 +40808,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Lse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Rse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40823,7 +40823,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
a,
o,
i
- ]), u = Vw(Jme(FR), "react-aria-components"), d = xL({
+ ]), u = Bw(Zme(MR), "react-aria-components"), d = vL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40834,33 +40834,33 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.span, {
+ }), f = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(VL.Provider, { value: void 0 }, d.children));
-}), $me = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(RL.Provider, { value: void 0 }, d.children));
+}), nhe = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, $me);
- let i = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nE(e), o = Nce({
- ...TL(e),
+ [e, t] = bL(r, t, nhe);
+ let i = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tE(e), o = Ice({
+ ...SL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(bL, { values: [[Lz, a], [Rz, {
+ return /*#__PURE__*/ F.createElement(_L, { values: [[Pz, a], [Fz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(the, {
+ }]] }, /*#__PURE__*/ F.createElement(ihe, {
...e,
ref: t
}));
-}), Rz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Rz), { isFocused: f, isFocusVisible: p, focusProps: m } = kD(), h = a || o, g = (0, F.useContext)(Lz), { hoverProps: _, isHovered: v } = ND({
+}), Fz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Fz), { isFocused: f, isFocusVisible: p, focusProps: m } = OD(), h = a || o, g = (0, F.useContext)(Pz), { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: h
- }), y = xL({
+ }), y = vL({
...e,
defaultClassName: u,
values: {
@@ -40875,8 +40875,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
isRequired: d || !1,
state: g
}
- }), b = Uw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Hw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40889,11 +40889,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), zz = 10, Bz = 5, Vz = class {
+}), Iz = 10, Lz = 5, Rz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40903,7 +40903,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Bz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > zz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Lz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Iz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40982,11 +40982,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Bz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Lz && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > zz && a) {
+ if (l > Iz && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -41001,7 +41001,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
boundaryContext: null
};
}
-}, nhe = class {
+}, ahe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41071,8 +41071,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ tw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Hz = "row-header-column-" + Math.random().toString(36).slice(2), Uz = "row-header-column-" + Math.random().toString(36).slice(2); Hz === Uz;) Uz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Wz(e, t) {
+}, zz = "row-header-column-" + Math.random().toString(36).slice(2), Bz = "row-header-column-" + Math.random().toString(36).slice(2); zz === Bz;) Bz = "row-header-column-" + Math.random().toString(36).slice(2);
+function Vz(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41156,13 +41156,13 @@ function Wz(e, t) {
textValue: ""
}));
}
-var rhe = class extends nhe {
+var ohe = class extends ahe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Hz,
+ key: zz,
value: null,
textValue: "",
level: 0,
@@ -41177,7 +41177,7 @@ var rhe = class extends nhe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Uz,
+ key: Bz,
value: null,
textValue: "",
level: 0,
@@ -41204,7 +41204,7 @@ var rhe = class extends nhe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Wz(s, a);
+ let l = Vz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41230,10 +41230,10 @@ var rhe = class extends nhe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return mD(this.body.childNodes)?.key ?? null;
+ return pD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return gD(this.body.childNodes)?.key ?? null;
+ return hD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41264,15 +41264,15 @@ var rhe = class extends nhe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function ihe(e) {
+function she(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function ahe(e) {
+function che(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Gz(e, t) {
+function Hz(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41280,19 +41280,19 @@ function Gz(e, t) {
}
return e;
}
-function Kz(e, t) {
- return e == null ? 2 ** 53 - 1 : Gz(e, t);
+function Uz(e, t) {
+ return e == null ? 2 ** 53 - 1 : Hz(e, t);
}
-function qz(e, t) {
- return e == null ? 0 : Gz(e, t);
+function Wz(e, t) {
+ return e == null ? 0 : Hz(e, t);
}
-function ohe(e, t, n, r, i) {
+function lhe(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- ihe(o) ? (l = Gz(o, e), s = !0) : (u = ahe(o), u <= 0 && (s = !0));
- let f = qz(t.minWidth ?? i?.(a) ?? 0, e), p = Kz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ she(o) ? (l = Hz(o, e), s = !0) : (u = che(o), u <= 0 && (s = !0));
+ let f = Wz(t.minWidth ?? i?.(a) ?? 0, e), p = Uz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41326,14 +41326,14 @@ function ohe(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = she(l);
+ let u = uhe(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function she(e) {
+function uhe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41341,7 +41341,7 @@ function she(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var che = class {
+var dhe = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41370,18 +41370,18 @@ var che = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), ohe(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), lhe(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, qz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Kz(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, Wz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Uz(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function lhe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new che({
+function fhe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new dhe({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41432,19 +41432,19 @@ function lhe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function uhe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function phe(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || WR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = pD(n, t);
- e = r === "last" ? gD(i)?.key ?? null : mD(i)?.key ?? null;
+ let i = fD(n, t);
+ e = r === "last" ? hD(i)?.key ?? null : pD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new YR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new KR(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41464,7 +41464,7 @@ function uhe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...pD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...fD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41482,11 +41482,11 @@ function uhe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var dhe = {
+var mhe = {
ascending: "descending",
descending: "ascending"
};
-function fhe(e) {
+function hhe(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41497,11 +41497,11 @@ function fhe(e) {
i,
r,
a
- ]), c = QR(e, (0, F.useCallback)((e) => new rhe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = uhe({
+ ]), c = YR(e, (0, F.useCallback)((e) => new ohe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = phe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41513,7 +41513,7 @@ function fhe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? dhe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? mhe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41526,7 +41526,7 @@ function fhe(e) {
treeColumn: o
};
}
-function phe(e, t) {
+function ghe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41535,10 +41535,10 @@ function phe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function mhe(e) {
+function _he(e) {
return e && e.__esModule ? e.default : e;
}
-var hhe = class extends _S {
+var vhe = class extends gS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41553,7 +41553,7 @@ var hhe = class extends _S {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new nB(-2);
+ return new $z(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41579,7 +41579,7 @@ var hhe = class extends _S {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Wz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = Vz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41660,28 +41660,28 @@ var hhe = class extends _S {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Qz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Yz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Jz = /*#__PURE__*/ (0, F.createContext)(null), ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = XC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- zS(() => {
+}, Gz = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = YC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ RS(() => {
let e = r.current;
- for (; e && e !== n.current && !MT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !jT(e);) e = e.parentElement;
i.current = e;
- }, [n]), jO({
+ }, [n]), AO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), zS(() => {
+ }), RS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: lhe,
+ useTableColumnResizeState: fhe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41692,17 +41692,17 @@ var hhe = class extends _S {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
render: e.render,
- ...Uw(e, { global: !0 }),
+ ...Hw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Jz.Provider, { value: s }, e.children));
-}), _he = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, _he);
- let n = qR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(Gz.Provider, { value: s }, e.children));
+}), bhe = /*#__PURE__*/ (0, F.createContext)(null), Kz = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, bhe);
+ let n = WR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41712,26 +41712,26 @@ var hhe = class extends _S {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(xhe.Provider, { value: s }, /*#__PURE__*/ F.createElement(pw, e));
- return /*#__PURE__*/ F.createElement(ow, {
+ ]), c = /*#__PURE__*/ F.createElement(whe.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
+ return /*#__PURE__*/ F.createElement(aw, {
content: c,
- createCollection: () => new hhe()
- }, (r) => /*#__PURE__*/ F.createElement(bhe, {
+ createCollection: () => new vhe()
+ }, (r) => /*#__PURE__*/ F.createElement(Che, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.table, {
+ }) : /*#__PURE__*/ F.createElement(wL.table, {
...e,
ref: t
});
-}), Zz = {
+}), Jz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41741,26 +41741,26 @@ var hhe = class extends _S {
rtl: "ArrowRight"
}
};
-function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = CL(e, t, OL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Jz);
- t = XC((0, F.useMemo)(() => VC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = bL(e, t, TL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Gz);
+ t = YC((0, F.useMemo)(() => BC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = fhe({
+ let d = hhe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = phe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(NL), { dragAndDropHooks: _ } = e, { gridProps: v } = Rce({
+ }), f = ghe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(AL), { dragAndDropHooks: _ } = e, { gridProps: v } = Vce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Fw(), [k] = (0, F.useState)(() => new Vz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new Rz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41775,7 +41775,7 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new wE({
+ let e = new CE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41795,12 +41795,12 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Zz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Zz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Jz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Jz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = kD(), ee = xL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = OD(), ee = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41816,19 +41816,19 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Yz, f],
- [Xz, P],
- [IR, {
+ let ne = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(_L, { values: [
+ [Kz, f],
+ [qz, P],
+ [NR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [LR, { render: jhe }],
- [OL, null],
- [kL, null]
- ] }, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(yhe, {
+ [PR, { render: Phe }],
+ [TL, null],
+ [EL, null]
+ ] }, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(She, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41838,55 +41838,55 @@ function bhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: zR(y, _, C)
+ persistedKeys: IR(y, _, C)
})))), E);
}
-var xhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends pS {
+var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends fS {
static {
this.type = "tableheader";
}
-}, She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.thead, {
+ }) : /*#__PURE__*/ F.createElement(wL.thead, {
...e,
ref: t
});
-}), $z = /*#__PURE__*/ uw(Qz, (e, t) => {
- let n = (0, F.useContext)(Yz).collection, r = xS({
+}), Xz = /*#__PURE__*/ lw(Yz, (e, t) => {
+ let n = (0, F.useContext)(Kz).collection, r = bS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(whe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Dhe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = NA(), { hoverProps: a, isHovered: o } = ND({
+ }), { rowGroupProps: i } = AA(), { hoverProps: a, isHovered: o } = MD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = xL({
+ }), s = vL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(She, {
- ...K(Uw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(The, {
+ ...K(Hw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(pw, {
+}, (e) => /*#__PURE__*/ F.createElement(fw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
+}, e.children)), Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41895,41 +41895,41 @@ var xhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends pS {
ref: t
});
});
-function whe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(Yz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(NL), { rowProps: a } = Wce({
+function Dhe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(Kz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(AL), { rowProps: a } = qce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Zce(n);
- return /*#__PURE__*/ F.createElement(Che, {
+ }, n, t), { checkboxProps: o } = ele(n);
+ return /*#__PURE__*/ F.createElement(Ehe, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [[WL, { slots: { selection: o } }], [GL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[VL, { slots: { selection: o } }], [HL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var The = class extends pS {
+var Ohe = class extends fS {
static {
this.type = "column";
}
-}, Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.th, {
+ }) : /*#__PURE__*/ F.createElement(wL.th, {
...e,
ref: t
});
-}), eB = /*#__PURE__*/ lw(The, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { isVirtualized: a } = (0, F.useContext)(NL), { columnHeaderProps: o, isPressed: s } = Vce({
+}), Zz = /*#__PURE__*/ cw(Ohe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Kz), { isVirtualized: a } = (0, F.useContext)(AL), { columnHeaderProps: o, isPressed: s } = Wce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = kD(), d = (0, F.useContext)(Xz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OD(), d = (0, F.useContext)(qz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = ND({ isDisabled: !e.allowsSorting }), h = xL({
+ let { hoverProps: p, isHovered: m } = MD({ isDisabled: !e.allowsSorting }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -41955,8 +41955,8 @@ var The = class extends pS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Uw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Ehe, {
+ let _ = Hw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(khe, {
...K(_, o, u, p),
...h,
style: g,
@@ -41968,29 +41968,29 @@ var The = class extends pS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[tB, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[Qz, {
column: n,
triggerRef: r
- }], [NL, jL]] }, h.children));
-}), tB = /*#__PURE__*/ (0, F.createContext)(null), Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Xz);
+ }], [AL, OL]] }, h.children));
+}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(qz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Vw(mhe(FR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Jz), { column: s, triggerRef: c } = (0, F.useContext)(tB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Uce({
+ let r = Bw(_he(MR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Gz), { column: s, triggerRef: c } = (0, F.useContext)(Qz), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Kce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = kD(), { hoverProps: _, isHovered: v } = ND(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Fw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = OD(), { hoverProps: _, isHovered: v } = MD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Pw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = XC(t), [w, T] = (0, F.useState)("");
+ let C = YC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = xL({
+ let E = vL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -42000,8 +42000,8 @@ var The = class extends pS {
isHovered: v,
resizableDirection: S
}
- }), D = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), D = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -42024,24 +42024,24 @@ var The = class extends pS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), nB = class extends mS {
+}), $z = class extends pS {
static {
this.type = "tablebody";
}
-}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(wL.tbody, {
...e,
ref: t
});
-}), rB = /*#__PURE__*/ uw(nB, (e, t, n) => {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(NL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(IR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), eB = /*#__PURE__*/ lw($z, (e, t, n) => {
+ let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(AL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(NR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = xL({
+ }, p = vL({
...e,
id: void 0,
children: void 0,
@@ -42050,33 +42050,33 @@ var The = class extends pS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(aB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(nB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = NA(), _ = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Ohe, {
+ let { rowGroupProps: g } = AA(), _ = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(jhe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Ihe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(zhe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: RR(s, c)
+ renderDropIndicator: FR(s, c)
}), m);
});
-(class extends mS {
+(class extends pS {
static {
this.type = "tablefooter";
}
});
-var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), khe = class extends pS {
+var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mhe = class extends fS {
static {
this.type = "item";
}
@@ -42088,31 +42088,31 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
}
return null;
}
-}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, nB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(wL.tr, {
...e,
ref: t
});
-}), oB = /*#__PURE__*/ uw(khe, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(NL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = qce({
+}), rB = /*#__PURE__*/ lw(Mhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Kz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(AL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Xce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = kD(), { isFocusVisible: _, focusProps: v } = kD({ within: !0 }), { hoverProps: y, isHovered: b } = ND({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = OD(), { isFocusVisible: _, focusProps: v } = OD({ within: !0 }), { hoverProps: y, isHovered: b } = MD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Xce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = $ce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = uE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = lE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42122,7 +42122,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = xL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = vL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42143,11 +42143,11 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
isExpanded: j,
level: n.level + 1
}
- }), ee = Uw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(aB, {
+ }), ee = Hw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(nB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42156,7 +42156,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(aB, {
+ }))), /*#__PURE__*/ F.createElement(nB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42172,17 +42172,17 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [VL, { slots: {
+ [gL]: {},
selection: x
} }],
- [GL, { slots: {
- [yL]: {},
+ [HL, { slots: {
+ [gL]: {},
selection: x
} }],
- [LL, { slots: {
- [yL]: {},
+ [PL, { slots: {
+ [gL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42190,8 +42190,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
style: { pointerEvents: "none" }
}
} }],
- [HR, { isSelected: p.isSelected }],
- [iB, { isFocusVisibleWithinRow: _ }]
+ [zR, { isSelected: p.isSelected }],
+ [tB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42199,34 +42199,34 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(pw, {
+ return /*#__PURE__*/ F.createElement(fw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Ahe = class extends pS {
+}), Nhe = class extends fS {
static {
this.type = "cell";
}
-}, sB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, iB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(wL.td, {
...e,
ref: t
});
-}), cB = /*#__PURE__*/ lw(Ahe, (e, t, n) => {
- let r = XC(t), i = (0, F.useContext)(Yz), { dragState: a } = (0, F.useContext)(IR), { isVirtualized: o } = (0, F.useContext)(NL);
+}), aB = /*#__PURE__*/ cw(Nhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(Kz), { dragState: a } = (0, F.useContext)(NR), { isVirtualized: o } = (0, F.useContext)(AL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = zce({
+ let { gridCellProps: s, isPressed: c } = Hce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = kD(), { hoverProps: f, isHovered: p } = ND({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(iB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = xL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OD(), { hoverProps: f, isHovered: p } = MD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(tB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = vL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42245,8 +42245,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Uw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(sB, {
+ }), S = Hw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(iB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42260,14 +42260,14 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), kh
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, x.children));
+ }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, x.children));
});
-function jhe(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Phe(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Fhe, {
+ return /*#__PURE__*/ F.createElement(Rhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42276,40 +42276,40 @@ function jhe(e, t) {
ref: t
});
}
-var Mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+var Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(wL.tr, {
...e,
ref: t
});
-}), Nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), Ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(wL.td, {
...e,
ref: t
});
});
-function Phe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Yz), { visuallyHiddenProps: c } = uE(), l = xL({
+function Lhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Kz), { visuallyHiddenProps: c } = lE(), l = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Mhe, {
- ...Uw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(Fhe, {
+ ...Hw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Nhe, {
+ }, /*#__PURE__*/ F.createElement(Ihe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42320,14 +42320,14 @@ function Phe(e, t) {
ref: i
}), l.children));
}
-var Fhe = /*#__PURE__*/ (0, F.forwardRef)(Phe);
-function Ihe() {
- let e = (0, F.useContext)(Yz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(IR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = uE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(aB, {
+var Rhe = /*#__PURE__*/ (0, F.forwardRef)(Lhe);
+function zhe() {
+ let e = (0, F.useContext)(Kz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(NR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = lE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(nB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42338,9 +42338,9 @@ function Ihe() {
ref: r
})));
}
-lw(hS, function(e, t, n) {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42350,7 +42350,7 @@ lw(hS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = xL({
+ let d = vL({
...c,
id: void 0,
children: n.rendered,
@@ -42358,10 +42358,10 @@ lw(hS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(aB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(nB, {
style: { height: 0 },
- inert: WR(!0)
- }, /*#__PURE__*/ F.createElement(sB, { style: {
+ inert: VR(!0)
+ }, /*#__PURE__*/ F.createElement(iB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42372,22 +42372,22 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(aB, {
- ...K(Uw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(nB, {
+ ...K(Hw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Lhe(e) {
- let [t, n] = tE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = $R({
+function Bhe(e) {
+ let [t, n] = eE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42409,24 +42409,24 @@ function Lhe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Rhe(e) {
- let t = Lhe({
+function Vhe(e) {
+ let t = Bhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? lB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? oB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = lB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = oB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function lB(e, t) {
+function oB(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42435,24 +42435,24 @@ function lB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, uB);
+var sB = /*#__PURE__*/ (0, F.createContext)(null), cB = /*#__PURE__*/ (0, F.createContext)(null), Hhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, sB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(Bhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Uhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Bhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Rhe({
+function Uhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Vhe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = kD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = OD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42460,12 +42460,12 @@ function Bhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = xL({
+ ]), l = vL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), u = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42473,20 +42473,20 @@ function Bhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, e], [dB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, e], [cB, i]] }, l.children));
}
-var fB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(dB) ? /*#__PURE__*/ F.createElement(Vhe, {
+var lB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(cB) ? /*#__PURE__*/ F.createElement(Whe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(pw, e);
+ }) : /*#__PURE__*/ F.createElement(fw, e);
});
-function Vhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(dB), { CollectionRoot: r } = (0, F.useContext)(NL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = SL(uB), o = XC(t), { tabListProps: s } = ele({
+function Whe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(cB), { CollectionRoot: r } = (0, F.useContext)(AL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yL(sB), o = YC(t), { tabListProps: s } = rle({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = xL({
+ }, n, o), c = vL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42494,30 +42494,30 @@ function Vhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Uw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), l = Hw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(wL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: PL(n.selectionManager.focusedKey)
+ persistedKeys: jL(n.selectionManager.focusedKey)
})));
}
-var Hhe = /*#__PURE__*/ lw(class extends pS {
+var Ghe = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(dB), i = XC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Qce({
+ let r = (0, F.useContext)(cB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = tle({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = kD(), { hoverProps: f, isHovered: p } = ND({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = OD(), { hoverProps: f, isHovered: p } = MD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = xL({
+ }), m = vL({
...e,
id: void 0,
children: n.rendered,
@@ -42530,7 +42530,7 @@ var Hhe = /*#__PURE__*/ lw(class extends pS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? DL.a : DL.div, g = Uw(e, { global: !0 });
+ }), h = n.props.href ? wL.a : wL.div, g = Hw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42540,54 +42540,54 @@ var Hhe = /*#__PURE__*/ lw(class extends pS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(HR.Provider, { value: { isSelected: o } }, m.children));
-}), Uhe = /*#__PURE__*/ tw(function(e, t) {
- let n = (0, F.useContext)(dB), r = XC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(zR.Provider, { value: { isSelected: o } }, m.children));
+}), Khe = /*#__PURE__*/ ew(function(e, t) {
+ let n = (0, F.useContext)(cB), r = YC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = sz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Whe, {
+ let s = iz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(qhe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Whe(e) {
- let t = (0, F.useContext)(dB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = tle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = kD(), d = t.selectedKey === e.id, f = oz(r) && !i, p = xL({
+function qhe(e) {
+ let t = (0, F.useContext)(cB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ile(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OD(), d = t.selectedKey === e.id, f = rz(r) && !i, p = vL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: WR(!d),
+ isInert: VR(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Uw(o, { global: !0 });
+ }), m = Hw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: WR(!d || e.inert),
+ inert: VR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, null], [dB, null]] }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, null], [cB, null]] }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
+var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, pB);
- let { hoverProps: n, isHovered: r } = ND(e), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
+}, Yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, uB);
+ let { hoverProps: n, isHovered: r } = MD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
...e,
values: {
isHovered: r,
@@ -42598,8 +42598,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(DL.textarea, {
- ...K(Ghe(e), o, n),
+ return /*#__PURE__*/ F.createElement(wL.textarea, {
+ ...K(Jhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42608,18 +42608,18 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), qhe = /*#__PURE__*/ (0, F.createContext)(null), Jhe = /*#__PURE__*/ tw(function(e, t) {
- [e, t] = CL(e, t, qhe);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = CL(e, i, kL);
- let [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = yse({
- ...TL(e),
+}), Xhe = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = bL(e, t, Xhe);
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = bL(e, i, EL);
+ let [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = bse({
+ ...SL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = xL({
+ }, [i]), h = vL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42628,8 +42628,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Uw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), g = Hw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(wL.div, {
...g,
...h,
ref: t,
@@ -42638,31 +42638,31 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [FL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [ML, {
...l,
ref: a
}],
- [YL, {
+ [KL, {
...u,
ref: m
}],
- [pB, {
+ [uB, {
...u,
ref: m
}],
- [qL, {
+ [WL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [VL, { slots: {
+ [RL, { slots: {
description: d,
errorMessage: f
} }],
- [HL, p]
+ [zL, p]
] }, h.children));
-}), Yhe = class e extends _S {
+}), Qhe = class e extends gS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42734,16 +42734,16 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Xhe = /*#__PURE__*/ (0, F.createContext)(null), mB = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, Xhe), /*#__PURE__*/ F.createElement(ow, {
- content: /*#__PURE__*/ F.createElement(pw, e),
- createCollection: () => new Yhe()
- }, (n) => /*#__PURE__*/ F.createElement(Qhe, {
+}, $he = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = bL(e, t, $he), /*#__PURE__*/ F.createElement(aw, {
+ content: /*#__PURE__*/ F.createElement(fw, e),
+ createCollection: () => new Qhe()
+ }, (n) => /*#__PURE__*/ F.createElement(tge, {
props: e,
collection: n,
treeRef: t
}));
-}), hB = {
+}), fB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42753,17 +42753,17 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Ghe = (e) => {
rtl: "ArrowRight"
}
};
-function Qhe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Fw(), a = SD({
+function tge({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Pw(), a = xD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(NL), [y, b] = tE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- age(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = pz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(AL), [y, b] = eE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ cge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = uz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42771,7 +42771,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = nle({
+ }), { gridProps: O } = ale({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42785,7 +42785,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new Vz());
+ let [te] = (0, F.useState)(() => new Rz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42793,7 +42793,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new wE({
+ let t = new CE({
collection: D.collection,
collator: a,
ref: n,
@@ -42815,12 +42815,12 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === hB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === hB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === fB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === fB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = kD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = OD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42828,7 +42828,7 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = xL({
+ }, ae = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42845,8 +42845,8 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Uw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let se = Hw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(wL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42856,54 +42856,54 @@ function Qhe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [mB, D],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [dB, D],
+ [NR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [LR, { render: tge }]
- ] }, s && /*#__PURE__*/ F.createElement(ige, null), /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(h, {
+ [PR, { render: ige }]
+ ] }, s && /*#__PURE__*/ F.createElement(sge, null), /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: zR(D.selectionManager, r, A),
+ persistedKeys: IR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: RR(r, A)
+ renderDropIndicator: FR(r, A)
}))), oe)), ee);
}
-var $he = /*#__PURE__*/ lw(class extends pS {
+var nge = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(gB), n = xL({
+ let t = (0, F.useContext)(pB), n = vL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, n.children);
-}), gB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ uw(class extends pS {
+ return /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, n.children);
+}), pB = /*#__PURE__*/ (0, F.createContext)(null), rge = /*#__PURE__*/ lw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(mB);
- t = XC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(IR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = _j({
+ let r = (0, F.useContext)(dB);
+ t = YC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(NR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = mj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = ND({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = MD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = kD(), { isFocusVisible: b, focusProps: x } = kD({ within: !0 }), { checkboxProps: S } = Jse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = OD(), { isFocusVisible: b, focusProps: x } = OD({ within: !0 }), { checkboxProps: S } = Yse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = uE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = lE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42942,7 +42942,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
A,
M,
j
- ]), N = xL({
+ ]), N = vL({
...e,
id: void 0,
children: n.rendered,
@@ -42959,7 +42959,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = xS({
+ let P = bS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42969,7 +42969,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = zC(), re = Uw(e, { global: !0 });
+ }), ne = RC(), re = Hw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42992,7 +42992,7 @@ var $he = /*#__PURE__*/ lw(class extends pS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(DL.div, {
+ }))), /*#__PURE__*/ F.createElement(wL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -43012,17 +43012,17 @@ var $he = /*#__PURE__*/ lw(class extends pS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [VL, { slots: {
+ [gL]: {},
selection: S
} }],
- [GL, { slots: {
- [yL]: {},
+ [HL, { slots: {
+ [gL]: {},
selection: S
} }],
- [LL, { slots: {
- [yL]: {},
+ [PL, { slots: {
+ [gL]: {},
chevron: {
...u,
ref: T
@@ -43033,13 +43033,13 @@ var $he = /*#__PURE__*/ lw(class extends pS {
style: { pointerEvents: "none" }
}
} }],
- [gB, { ...ee }],
- [HR, { isSelected: f.isSelected }]
+ [pB, { ...ee }],
+ [zR, { isSelected: f.isSelected }]
] }, P))));
});
-lw(hS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(NL), i = (0, F.useContext)(mB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+cw(mS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(AL), i = (0, F.useContext)(dB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43048,11 +43048,11 @@ lw(hS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = XC(t);
- let { rowProps: u, gridCellProps: d } = _j({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = YC(t);
+ let { rowProps: u, gridCellProps: d } = mj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = xL({
+ }, m = vL({
...c,
id: void 0,
children: n.rendered,
@@ -43065,7 +43065,7 @@ lw(hS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43074,9 +43074,9 @@ lw(hS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(DL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(wL.div, {
ref: t,
- ...K(Uw(e), p),
+ ...K(Hw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43084,12 +43084,12 @@ lw(hS, function(e, t, n) {
style: h
}, m.children)));
});
-function tge(e, t) {
- t = XC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function ige(e, t) {
+ t = YC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(rge, {
+ return /*#__PURE__*/ F.createElement(oge, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43098,8 +43098,8 @@ function tge(e, t) {
level: c
});
}
-function nge(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = uE(), c = xL({
+function age(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lE(), c = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43108,7 +43108,7 @@ function nge(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43121,9 +43121,9 @@ function nge(e, t) {
ref: i
}), c.children));
}
-var rge = /*#__PURE__*/ (0, F.forwardRef)(nge);
-function ige() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(IR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = uE();
+var oge = /*#__PURE__*/ (0, F.forwardRef)(age);
+function sge() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(NR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = lE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43135,13 +43135,13 @@ function ige() {
ref: n
})));
}
-function age(e, t) {
+function cge(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43149,7 +43149,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43157,7 +43157,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43165,7 +43165,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43173,7 +43173,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), mB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43181,7 +43181,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), hB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43189,7 +43189,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), gB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43197,7 +43197,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43205,7 +43205,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43213,7 +43213,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43221,7 +43221,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43229,7 +43229,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43237,7 +43237,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43245,7 +43245,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43253,7 +43253,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43261,7 +43261,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43269,7 +43269,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43277,7 +43277,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43285,7 +43285,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43293,7 +43293,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43301,7 +43301,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43309,7 +43309,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43317,7 +43317,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43325,7 +43325,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43333,7 +43333,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43341,7 +43341,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43349,7 +43349,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43357,7 +43357,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43365,7 +43365,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43373,7 +43373,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43381,7 +43381,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43389,7 +43389,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43397,7 +43397,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43405,7 +43405,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43413,7 +43413,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43421,7 +43421,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43429,7 +43429,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43437,7 +43437,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43445,7 +43445,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43453,7 +43453,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43461,7 +43461,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43469,7 +43469,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43477,7 +43477,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43485,7 +43485,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43493,7 +43493,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43501,7 +43501,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43509,7 +43509,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43517,7 +43517,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43525,7 +43525,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43533,7 +43533,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43541,7 +43541,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43549,7 +43549,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43557,7 +43557,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43565,7 +43565,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43573,7 +43573,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), Hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43581,7 +43581,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43589,7 +43589,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43597,7 +43597,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43605,7 +43605,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43613,7 +43613,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43621,7 +43621,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43629,7 +43629,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43637,7 +43637,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43645,7 +43645,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), Hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), Gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43653,7 +43653,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43661,7 +43661,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43669,7 +43669,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43677,7 +43677,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43685,7 +43685,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43693,7 +43693,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43701,7 +43701,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43709,7 +43709,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43717,7 +43717,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43725,7 +43725,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43733,7 +43733,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), Jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), Zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43741,7 +43741,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43749,7 +43749,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43757,7 +43757,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), $ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43765,7 +43765,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43773,7 +43773,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43781,7 +43781,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43789,7 +43789,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), e_e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43797,7 +43797,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), Qge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), t_e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43805,7 +43805,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43813,7 +43813,7 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), $ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), n_e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43823,8 +43823,8 @@ var oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "remixicon " + (n || "")
}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));
// src/react/boardui/components/base/input/label.tsx
-function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(IL, {
+function ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(NL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43835,7 +43835,7 @@ function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Pge, {
+ n && /* @__PURE__ */ (0, I.jsx)(Lge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43843,23 +43843,23 @@ function eV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function tV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Jpe, {
+function QB({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Zpe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var nV = (0, F.createContext)({});
-function rV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(nV.Provider, {
+var $B = (0, F.createContext)({});
+function eV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)($B.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Jhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43867,8 +43867,8 @@ function rV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-rV.displayName = "TextField";
-var iV = NI({
+eV.displayName = "TextField";
+var tV = AI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43883,44 +43883,44 @@ var iV = NI({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function aV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(nV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(JL, {
+function nV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)($B), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(GL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(iV.field, d ? iV.fieldWithAddonSize[u] : iV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(tV.field, d ? tV.fieldWithAddonSize[u] : tV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: iV.content,
+ className: tV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: iV.leftSection,
+ className: tV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: iV.icon,
+ className: tV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(eme, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(rme, {
ref: o,
...c,
- className: q(iV.input, l.inputClassName, a)
+ className: q(tV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: iV.icon,
+ className: tV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-aV.displayName = "InputBase";
-function oV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, I.jsx)(rV, {
+nV.displayName = "InputBase";
+function rV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(eV, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(eV, {
+ e && /* @__PURE__ */ (0, I.jsx)(ZB, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(nV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43929,25 +43929,25 @@ function oV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(tV, {
+ t && /* @__PURE__ */ (0, I.jsx)(QB, {
isInvalid: d,
children: t
})
] })
});
}
-oV.displayName = "Input";
+rV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var e_e = {
+var r_e = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl",
tutorial: "max-w-2xl"
};
-function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = EC();
- return /* @__PURE__ */ (0, I.jsx)(Oz, {
+function iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = TC();
+ return /* @__PURE__ */ (0, I.jsx)(Tz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43955,11 +43955,11 @@ function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(Ime, {
+ children: /* @__PURE__ */ (0, I.jsx)(zme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", e_e[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", r_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(xz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43967,7 +43967,7 @@ function sV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function cV({ children: e }) {
+function aV({ children: e }) {
return /* @__PURE__ */ (0, I.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",
@@ -43975,7 +43975,7 @@ function cV({ children: e }) {
});
}
// src/react/components/note.tsx
-function lV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function oV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44023,11 +44023,11 @@ function lV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var t_e = {
+var i_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function n_e({ target: e, children: t }) {
+function a_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -44035,11 +44035,11 @@ function n_e({ target: e, children: t }) {
children: t
});
}
-function uV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function sV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${t_e[i]}`,
+ className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${i_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44065,9 +44065,9 @@ function uV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var dV = /* @__PURE__ */ new Map();
-function fV(e) {
- let t = dV.get(e);
+var cV = /* @__PURE__ */ new Map();
+function lV(e) {
+ let t = cV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Cn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -44083,10 +44083,10 @@ function fV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, dV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, cV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function pV({ label: e, id: t, onPress: n }) {
+function uV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44101,60 +44101,60 @@ function pV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function mV(e) {
+function dV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var hV = ["library-shortcuts"], gV = "/api/library-shortcuts";
-function _V(e = !0) {
+var fV = ["library-shortcuts"], pV = "/api/library-shortcuts";
+function mV(e = !0) {
return Ft({
- queryKey: hV,
- queryFn: ({ signal: e }) => B(gV, e),
+ queryKey: fV,
+ queryFn: ({ signal: e }) => B(pV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function vV() {
+function hV() {
return It({
- mutationKey: hV,
- mutationFn: (e) => V(gV, e),
+ mutationKey: fV,
+ mutationFn: (e) => V(pV, e),
onSuccess: (e, t) => {
- H.setQueryData(hV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(fV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function yV(e, t) {
+function gV(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function r_e(e) {
+function o_e(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Pn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var bV = fV("star"), i_e = fV("bookmark-plus"), xV = fV("chevron-right"), SV = {
+var _V = lV("star"), s_e = lV("bookmark-plus"), vV = lV("chevron-right"), yV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, CV = {
- all: fV("star"),
- performer: fV("user-round"),
- creator: fV("user-round"),
- studio: fV("clapperboard"),
- series: fV("film"),
- agency: fV("briefcase"),
- tag: fV("tags"),
- filters: fV("list-filter")
-}, wV = [
+}, bV = {
+ all: lV("star"),
+ performer: lV("user-round"),
+ creator: lV("user-round"),
+ studio: lV("clapperboard"),
+ series: lV("film"),
+ agency: lV("briefcase"),
+ tag: lV("tags"),
+ filters: lV("list-filter")
+}, xV = [
["all", "全部"],
- ...Object.entries(SV),
+ ...Object.entries(yV),
["filters", "保存的筛选"]
];
-function TV({ label: e, children: t, ...n }) {
+function SV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44164,20 +44164,20 @@ function TV({ label: e, children: t, ...n }) {
children: t
});
}
-function EV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(a_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function CV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(c_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function a_e({ item: e }) {
- rL();
- let t = _V(!1), n = (0, F.useRef)(t.data), r = vV(), i = t.data && t.data !== n.current ? yV(t.data.favorites || [], e) : e.favorite ?? (t.data ? yV(t.data.favorites || [], e) : !1);
+function c_e({ item: e }) {
+ eL();
+ let t = mV(!1), n = (0, F.useRef)(t.data), r = hV(), i = t.data && t.data !== n.current ? gV(t.data.favorites || [], e) : e.favorite ?? (t.data ? gV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(TV, {
+ /* @__PURE__ */ (0, I.jsx)(SV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...mV(r.isPending),
+ ...dV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44188,9 +44188,9 @@ function a_e({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(bV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(_V, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44204,38 +44204,38 @@ function a_e({ item: e }) {
]
});
}
-function DV({ currentHref: e, kind: t }) {
+function wV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(uL, {
+ children: /* @__PURE__ */ (0, I.jsx)(sL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: bV,
+ icon: _V,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(o_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(l_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function o_e({ currentHref: e, kind: t, close: n }) {
- rL();
- let r = _V(), i = vV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function l_e({ currentHref: e, kind: t, close: n }) {
+ eL();
+ let r = mV(), i = hV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = gL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = pL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44248,7 +44248,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = wV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = xV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -44271,7 +44271,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44301,8 +44301,8 @@ function o_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- wV.map(([e, t]) => {
- let n = CV[e] || bV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ xV.map(([e, t]) => {
+ let n = bV[e] || _V, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44334,17 +44334,17 @@ function o_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(_V, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(i_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(s_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
]
})]
})]
@@ -44363,7 +44363,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44372,16 +44372,16 @@ function o_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: fV("list-filter"),
+ icon: lV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
onClick: n,
@@ -44400,7 +44400,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...mV(i.isPending),
+ ...dV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44415,7 +44415,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44424,7 +44424,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...mV(i.isPending),
+ ...dV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44435,16 +44435,16 @@ function o_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: fV("search"),
+ leadingIcon: lV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: bV,
+ icon: _V,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44454,7 +44454,7 @@ function o_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
onClick: n,
@@ -44468,25 +44468,25 @@ function o_e({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: r_e(e),
+ href: o_e(e),
"aria-label": nn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(s_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(u_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: nn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : SV[e.kind]
+ children: e.scope === "online" ? "在线标签" : yV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...mV(i.isPending),
+ ...dV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44504,8 +44504,8 @@ function o_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function s_e({ item: e }) {
- let t = CV[e.kind] || bV;
+function u_e({ item: e }) {
+ let t = bV[e.kind] || _V;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44523,11 +44523,11 @@ function s_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function c_e(e) {
+function d_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function l_e(e) {
+function f_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44541,7 +44541,7 @@ function l_e(e) {
})
});
}
-function u_e(e) {
+function p_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44555,7 +44555,7 @@ function u_e(e) {
})
});
}
-function OV(e) {
+function TV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44568,7 +44568,7 @@ function OV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function d_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function m_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
@@ -44576,14 +44576,14 @@ function d_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(u_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(p_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
@@ -44596,7 +44596,7 @@ function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(c_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(d_e, {
href: n,
className: s,
children: o
@@ -44609,14 +44609,14 @@ function kV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function AV() {
- return Fw().direction;
+function DV() {
+ return Pw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var jV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", f_e = "w-[266px]", p_e = "flex w-full flex-col gap-1 outline-none", MV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", NV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var OV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", h_e = "w-[266px]", g_e = "flex w-full flex-col gap-1 outline-none", kV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", AV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function m_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = AV(), l = (0, F.useContext)(NL), u = l === jL && !s.dragAndDropHooks ? FV : l;
+function __e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = DV(), l = (0, F.useContext)(AL), u = l === OL && !s.dragAndDropHooks ? MV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44633,23 +44633,23 @@ function m_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(NL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(AL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(ege, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === FV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === MV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = AV();
- return /* @__PURE__ */ (0, I.jsxs)(ege, {
+function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = DV();
+ return /* @__PURE__ */ (0, I.jsxs)(rge, {
...u,
ref: l,
textValue: t,
@@ -44658,10 +44658,10 @@ function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)($he, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? NB : jB : Tge);
+ children: [/* @__PURE__ */ (0, I.jsx)(nge, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? AB : OB : Oge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(g_e, {
+ /* @__PURE__ */ (0, I.jsx)(y_e, {
state: l,
id: u,
level: c,
@@ -44671,11 +44671,11 @@ function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(FL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44699,24 +44699,24 @@ function PV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var FV = {
- ...jL,
- CollectionRoot: h_e
+var MV = {
+ ...OL,
+ CollectionRoot: v_e
};
-function h_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(mB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {
+function v_e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(dB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(kx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(__e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(b_e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(jL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(OL.CollectionRoot, {
collection: e,
...t
});
}
-function g_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function y_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -44775,9 +44775,9 @@ function g_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function __e({ state: e, children: t }) {
- let n = Dx(), r = eS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(fS.div, {
+function b_e({ state: e, children: t }) {
+ let n = Ex(), r = $x(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(dS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44816,14 +44816,14 @@ function __e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(mB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(dB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var IV = {
+var NV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44837,8 +44837,8 @@ var IV = {
gap: "gap-1.5"
}
};
-function LV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = IV[t], c = n || r, l = o && !a;
+function PV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = NV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("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"),
@@ -44864,13 +44864,13 @@ function LV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function RV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = IV[n];
- return /* @__PURE__ */ (0, I.jsx)(Zpe, {
+function FV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = NV[n];
+ return /* @__PURE__ */ (0, I.jsx)(eme, {
ref: r,
...i,
className: (t) => q("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, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44880,7 +44880,7 @@ function RV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function zV() {
+function IV() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44892,43 +44892,43 @@ function zV() {
}, []), e;
}
// src/react/providers.tsx
-var BV = null;
-function v_e() {
- return BV?.isConnected || (BV = document.createElement("div"), BV.className = "peach-react", BV.dataset.reactOverlays = "", document.body.append(BV)), BV;
+var LV = null;
+function x_e() {
+ return LV?.isConnected || (LV = document.createElement("div"), LV.className = "peach-react", LV.dataset.reactOverlays = "", document.body.append(LV)), LV;
}
-function VV({ children: e }) {
+function RV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(iie, {
+ children: /* @__PURE__ */ (0, I.jsx)(aie, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(wD, {
- getContainer: v_e,
+ children: /* @__PURE__ */ (0, I.jsx)(CD, {
+ getContainer: x_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function y_e(e) {
+function S_e(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 b_e = (e) => {
+var C_e = (e) => {
switch (e) {
- case "success": return C_e;
- case "info": return T_e;
- case "warning": return w_e;
- case "error": return E_e;
+ case "success": return E_e;
+ case "info": return O_e;
+ case "warning": return D_e;
+ case "error": return k_e;
default: return null;
}
-}, x_e = Array(12).fill(0), S_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, w_e = Array(12).fill(0), T_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, x_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, w_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), C_e = /*#__PURE__*/ F.createElement("svg", {
+})))), E_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44939,7 +44939,7 @@ var b_e = (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"
-})), w_e = /*#__PURE__*/ F.createElement("svg", {
+})), D_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44950,7 +44950,7 @@ var b_e = (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"
-})), T_e = /*#__PURE__*/ F.createElement("svg", {
+})), O_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44961,7 +44961,7 @@ var b_e = (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"
-})), E_e = /*#__PURE__*/ F.createElement("svg", {
+})), k_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44972,7 +44972,7 @@ var b_e = (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"
-})), D_e = /*#__PURE__*/ F.createElement("svg", {
+})), A_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44993,7 +44993,7 @@ var b_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), O_e = () => {
+})), j_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -45001,7 +45001,7 @@ var b_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, k_e = 1, A_e = 100, HV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : k_e++, UV = new class {
+}, M_e = 1, N_e = 100, zV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : M_e++, BV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -45011,10 +45011,10 @@ var b_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - A_e;
+ let e = this.toasts.length - N_e;
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 = HV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = zV(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -45089,7 +45089,7 @@ var b_e = (e) => {
type: "default",
message: e
});
- else if (M_e(e) && !e.ok) {
+ else if (F_e(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" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -45133,7 +45133,7 @@ var b_e = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = HV(t);
+ let n = zV(t);
return this.create({
...t,
jsx: e(n),
@@ -45142,34 +45142,34 @@ var b_e = (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();
}
-}(), j_e = (e, t) => UV.message(e, t), M_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", WV = Object.assign(j_e, {
- success: UV.success,
- info: UV.info,
- warning: UV.warning,
- error: UV.error,
- custom: UV.custom,
- message: UV.message,
- promise: UV.promise,
- dismiss: UV.dismiss,
- loading: UV.loading
+}(), P_e = (e, t) => BV.message(e, t), F_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", VV = Object.assign(P_e, {
+ success: BV.success,
+ info: BV.info,
+ warning: BV.warning,
+ error: BV.error,
+ custom: BV.custom,
+ message: BV.message,
+ promise: BV.promise,
+ dismiss: BV.dismiss,
+ loading: BV.loading
}, {
- getHistory: () => UV.toasts,
- getToasts: () => UV.getActiveToasts()
+ getHistory: () => BV.toasts,
+ getToasts: () => BV.getActiveToasts()
});
-y_e("[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 GV(e) {
+S_e("[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 HV(e) {
return e.label !== void 0;
}
-var N_e = 3, P_e = "24px", F_e = "16px", KV = 4e3, I_e = 356, L_e = 14, R_e = 45, z_e = 200;
-function qV(...e) {
+var I_e = 3, L_e = "24px", R_e = "16px", UV = 4e3, z_e = 356, B_e = 14, V_e = 45, H_e = 200;
+function WV(...e) {
return e.filter(Boolean).join(" ");
}
-function B_e(e) {
+function U_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var V_e = (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] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || KV), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || KV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = O_e(), ke = F.useMemo(() => e.swipeDirections ?? B_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var W_e = (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] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || UV), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || UV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = j_e(), ke = F.useMemo(() => e.swipeDirections ?? U_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {
ce.current = be;
}, [be]), F.useEffect(() => {
@@ -45210,7 +45210,7 @@ var V_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, z_e);
+ }, H_e);
}, [
n,
d,
@@ -45241,18 +45241,18 @@ var V_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: qV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: WV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(S_e, {
- className: qV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(T_e, {
+ className: WV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || b_e(pe);
+ let Pe = n.icon || w?.[pe] || C_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: qV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: WV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -45295,7 +45295,7 @@ var V_e = (e) => {
if (P || !he) return;
we.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" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= R_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= V_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -45334,46 +45334,46 @@ var V_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: qV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? D_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: WV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? A_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: qV(C?.icon, n?.classNames?.icon)
+ className: WV(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {
"data-content": "",
- className: qV(C?.content, n?.classNames?.content)
+ className: WV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: qV(C?.title, n?.classNames?.title)
+ className: WV(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
"data-description": "",
- className: qV(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && GV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: WV(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && HV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- GV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ HV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: qV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && GV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: WV(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && HV(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- GV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ HV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: qV(C?.actionButton, n?.classNames?.actionButton)
+ className: WV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function JV() {
+function GV() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function H_e(e, t) {
+function G_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? F_e : P_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? R_e : L_e;
function o(e) {
[
"top",
@@ -45394,11 +45394,11 @@ function H_e(e, t) {
}) : o(a);
}), n;
}
-var YV = /*#__PURE__*/ F.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 = N_e, toastOptions: g, dir: _ = JV(), gap: v = L_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || UV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var KV = /*#__PURE__*/ F.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 = I_e, toastOptions: g, dir: _ = GV(), gap: v = B_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || BV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => UV.subscribe((e) => {
+ return F.useEffect(() => BV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45467,7 +45467,7 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? JV() : _,
+ dir: _ === "auto" ? GV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45477,10 +45477,10 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${I_e}px`,
+ "--width": `${z_e}px`,
"--gap": `${v}px`,
...m,
- ...H_e(l, u)
+ ...G_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45498,7 +45498,7 @@ var YV = /*#__PURE__*/ F.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__*/ F.createElement(V_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(W_e, {
key: n.id,
icons: y,
index: i,
@@ -45528,35 +45528,35 @@ var YV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), XV = "/api/library-processing", ZV = ["library-processing"], U_e = (e, t, n) => {
+}), qV = "/api/library-processing", JV = ["library-processing"], K_e = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${XV}?${r}`, t);
-}, W_e = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${qV}?${r}`, t);
+}, q_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function QV(e) {
+function YV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = W_e[e.current_action || ""];
+ let t = q_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function $V({ what: e, source: t }) {
+function XV({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var eH = (e) => !!e && [
+var ZV = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), tH = (e) => e?.status === "failed" && e.outcome === "partial", nH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", rH = "/?loc=&thumb=0";
-function iH(e) {
- if (!eH(e)) return "";
+].includes(e.status), QV = (e) => e?.status === "failed" && e.outcome === "partial", $V = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", eH = "/?loc=&thumb=0";
+function tH(e) {
+ if (!ZV(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45567,30 +45567,30 @@ function iH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var aH = (e) => B(XV, e);
-async function oH(e) {
+var nH = (e) => B(qV, e);
+async function rH(e) {
await H.fetchQuery({
- queryKey: ZV,
- queryFn: () => aH(e)
+ queryKey: JV,
+ queryFn: () => nH(e)
});
}
-var G_e = 2e3, K_e = 1e4, sH = "连接中断,正在重新读取处理进度", q_e = {
+var J_e = 2e3, Y_e = 1e4, iH = "连接中断,正在重新读取处理进度", X_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function J_e(e, t) {
+function Z_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function Y_e(e) {
- let t = q_e[e.trigger || ""];
+function Q_e(e) {
+ let t = X_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function cH(e, t) {
- return eH(e) ? G_e : t ? K_e : !1;
+function aH(e, t) {
+ return ZV(e) ? J_e : t ? Y_e : !1;
}
-var X_e = {
+var $_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45599,25 +45599,25 @@ var X_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, lH = {
+}, oH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Z_e(e) {
- let t = Object.entries(e).filter(([e, t]) => lH[e] && t > 0).map(([e, t]) => `${lH[e]} ${t.toLocaleString()} 部`);
+function eve(e) {
+ let t = Object.entries(e).filter(([e, t]) => oH[e] && t > 0).map(([e, t]) => `${oH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Q_e(e) {
+function tve(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = X_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${ZI(e.waited_seconds)}` : "";
+ let t = $_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${JI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function $_e(e) {
- let t = e.total ? `${QI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Q_e(e) + (t ? ` · ${t}` : "");
+function nve(e) {
+ let t = e.total ? `${YI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return tve(e) + (t ? ` · ${t}` : "");
}
-function eve(e) {
+function rve(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45631,22 +45631,22 @@ function eve(e) {
log: e.issues_log || ""
} : null;
}
-var uH = "peach.library-processing.announced", tve = 120;
-function dH(e) {
+var sH = "peach.library-processing.announced", ive = 120;
+function cH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < tve;
+ return !!e.job_id && t >= 0 && t < ive;
}
-function nve(e, t, n) {
- if (e.status === "complete" && (n || dH(e))) {
+function ave(e, t, n) {
+ if (e.status === "complete" && (n || cH(e))) {
try {
- if (e.job_id && localStorage.getItem(uH) === e.job_id) return;
- e.job_id && localStorage.setItem(uH, e.job_id);
+ if (e.job_id && localStorage.getItem(sH) === e.job_id) return;
+ e.job_id && localStorage.setItem(sH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var fH = NI({
+var lH = AI({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45663,15 +45663,15 @@ var fH = NI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function pH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(fH.base, fH.size[t], fH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function uH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(lH.base, lH.size[t], lH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: fH.icon[t],
+ className: lH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: fH.icon[t],
+ className: lH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45697,7 +45697,7 @@ function pH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function mH(e = "") {
+function dH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45722,10 +45722,10 @@ function mH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function hH({ state: e }) {
- let t = mH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(XV, e, "POST", t), (e) => {
- H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+function fH({ state: e }) {
+ let t = dH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(qV, e, "POST", t), (e) => {
+ H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45737,7 +45737,7 @@ function hH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...mV(t.busy === "skip_current"),
+ ...dV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45761,25 +45761,25 @@ function hH({ state: e }) {
]
});
}
-function rve({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(lV, {
+function ove({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(hH, { state: e }),
- children: $V(t)
+ action: /* @__PURE__ */ (0, I.jsx)(fH, { state: e }),
+ children: XV(t)
});
}
-function ive({ state: e, slow: t }) {
+function sve({ state: e, slow: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: $V(t)
- }), /* @__PURE__ */ (0, I.jsx)(hH, { state: e })]
+ children: XV(t)
+ }), /* @__PURE__ */ (0, I.jsx)(fH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var ave = {
+var cve = {
selection: {
type: Lg,
duration: .16,
@@ -45791,7 +45791,7 @@ var ave = {
bounce: 0
}
};
-function gH(e) {
+function pH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45812,7 +45812,7 @@ function gH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = dae(n, { transform: [r, E] }, ave[e]);
+ l = fae(n, { transform: [r, E] }, cve[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45848,24 +45848,24 @@ function gH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function _H(e) {
- let t = gH("hover");
- return /* @__PURE__ */ (0, I.jsx)(wz, {
+function mH(e) {
+ let t = pH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(xz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var vH = [
+var hH = [
"low",
"standard",
"high"
-], yH = [
+], gH = [
"低占用",
"标准",
"全速"
-], bH = fV("snail"), xH = fV("zap");
-function SH({ className: e }) {
+], _H = lV("snail"), vH = lV("zap");
+function yH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45896,12 +45896,12 @@ function SH({ className: e }) {
]
});
}
-var ove = [
- bH,
- xH,
- SH
+var lve = [
+ _H,
+ vH,
+ yH
];
-function sve({ animate: e }) {
+function uve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45933,8 +45933,8 @@ function sve({ animate: e }) {
} }, t))]
});
}
-function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, vH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, hH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45945,7 +45945,7 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), yH[a]]
+ }), gH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45953,19 +45953,19 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(_H, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(SH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(sme, {
+ /* @__PURE__ */ (0, I.jsxs)(ume, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45974,10 +45974,10 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(vH[e]);
+ e !== i && n(hH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45997,11 +45997,11 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(sve, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(cme, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(uve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(dme, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(lme, {
- "aria-label": yH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(fme, {
+ "aria-label": gH[a],
className: "processing-effort-thumb"
})
})
@@ -46015,8 +46015,8 @@ function CH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, vH.indexOf(e));
+function dve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, hH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46024,28 +46024,28 @@ function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${yH[s]}`,
+ "aria-label": `处理速度:${gH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: ove[s],
- trailingIcon: _B,
+ leadingIcon: lve[s],
+ trailingIcon: mB,
onClick: () => {
t || o(!a);
},
- children: yH[s]
+ children: gH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsx)(_H, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsx)(mH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(CH, {
+ children: /* @__PURE__ */ (0, I.jsx)(bH, {
value: e,
busy: t,
onChange: n,
@@ -46055,10 +46055,10 @@ function cve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function wH({ state: e, disabled: t = !1 }) {
- let n = mH(), r = (0, F.useRef)(!1), i = eH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
- t || n.busy || n.run(e.action, (t) => V(XV, e, "POST", t), (e) => {
- H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+function xH({ state: e, disabled: t = !1 }) {
+ let n = dH(), r = (0, F.useRef)(!1), i = ZV(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(qV, e, "POST", t), (e) => {
+ H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
});
}, l = () => {
let i = e.job_id;
@@ -46082,7 +46082,7 @@ function wH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(cve, {
+ /* @__PURE__ */ (0, I.jsx)(dve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46096,11 +46096,11 @@ function wH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? VB : zB,
+ leadingIcon: e.status === "paused" ? RB : IB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...mV(n.busy === "pause" || n.busy === "resume"),
+ ...dV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46112,11 +46112,11 @@ function wH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: JB,
+ leadingIcon: GB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...mV(n.busy === "cancel"),
+ ...dV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46128,11 +46128,11 @@ function wH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function TH({ toast: e, mode: t, monitor: n }) {
+function SH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: ZV,
- queryFn: ({ signal: e }) => aH(e),
- refetchInterval: (e) => cH(e.state.data, r)
+ queryKey: JV,
+ queryFn: ({ signal: e }) => nH(e),
+ refetchInterval: (e) => aH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -46143,8 +46143,8 @@ function TH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !eH(c);
- r && o(c), (r || t === "notice") && nve(c, e, r);
+ ].includes(n) && !ZV(c);
+ r && o(c), (r || t === "notice") && ave(c, e, r);
}, [
c,
t,
@@ -46156,7 +46156,7 @@ function TH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function EH({ label: e }) {
+function CH({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -46175,21 +46175,21 @@ function EH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var DH = 100, lve = .4;
-function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
- let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * DH;
+var wH = 100, fve = .4;
+function TH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
+ let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * wH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: a ? "meter" : "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": o,
"aria-valuenow": s(t),
- viewBox: `0 0 ${DH} 1`,
+ viewBox: `0 0 ${wH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: DH,
+ width: wH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46200,7 +46200,7 @@ function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: c(e),
- width: lve,
+ width: fve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46208,11 +46208,11 @@ function OH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function kH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function EH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(TH, {
label: e,
value: t,
max: n,
@@ -46220,11 +46220,11 @@ function kH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(EH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(CH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function AH(e) {
+function DH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46240,17 +46240,17 @@ function AH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return $_e(a ? {
+ return nve(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function uve({ state: e }) {
- return AH(e);
+function pve({ state: e }) {
+ return DH(e);
}
-function dve({ state: e }) {
- let t = AH(e);
- return /* @__PURE__ */ (0, I.jsx)(kH, {
+function mve({ state: e }) {
+ let t = DH(e);
+ return /* @__PURE__ */ (0, I.jsx)(EH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46258,7 +46258,7 @@ function dve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function jH({ open: e, children: t, ...n }) {
+function OH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46269,7 +46269,7 @@ function jH({ open: e, children: t, ...n }) {
children: t
});
}
-function MH(e) {
+function kH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46284,19 +46284,19 @@ function MH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function NH({ className: e, children: t }) {
+function AH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function PH({ className: e, children: t }) {
+function jH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function fve({ label: e, description: t, children: n }) {
+function hve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46312,7 +46312,7 @@ function fve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function gve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [n, e]
@@ -46320,12 +46320,12 @@ function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(PH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(jH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(PH, { children: s }), /* @__PURE__ */ (0, I.jsx)(NH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(jH, { children: s }), /* @__PURE__ */ (0, I.jsx)(AH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46342,13 +46342,13 @@ function pve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function mve({ children: e }) {
+function _ve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function hve({ divided: e = !1, children: t }) {
+function vve({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden [&>.ui-settings-facts]:-mr-3",
children: t
@@ -46357,7 +46357,7 @@ function hve({ divided: e = !1, children: t }) {
children: t
});
}
-function gve({ label: e, html: t }) {
+function yve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46367,7 +46367,7 @@ function gve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function _ve({ status: e, children: t }) {
+function bve({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -46376,34 +46376,34 @@ function _ve({ status: e, children: t }) {
}) : null, t]
});
}
-function FH({ role: e, children: t }) {
+function MH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function IH({ children: e }) {
+function NH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function LH({ children: e }) {
+function PH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function vve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(pH, {
+function xve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(uH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: OB,
+ trailingIcon: TB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46411,22 +46411,22 @@ function vve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function yve() {
- return /* @__PURE__ */ (0, I.jsx)(pH, {
+function Sve() {
+ return /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/tasks",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function bve({ children: e }) {
+function Cve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function xve({ term: e, children: t }) {
+function wve({ term: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, I.jsx)("dt", {
@@ -46438,7 +46438,7 @@ function xve({ term: e, children: t }) {
})]
});
}
-function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
@@ -46454,12 +46454,12 @@ function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -46475,7 +46475,7 @@ function RH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function Sve({ name: e }) {
+function Tve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46485,34 +46485,34 @@ function Sve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function zH({ mark: e }) {
+function IH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Sve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(Tve, { name: e });
}
// src/react/components/source-label.tsx
-var BH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Cve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var LH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Eve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: t })
});
}]));
-function wve({ className: e }) {
+function Dve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(zH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: "database" })
});
}
-var VH = (e) => Cve[BH(e)] ?? wve;
-function Tve({ site: e, label: t }) {
+var RH = (e) => Eve[LH(e)] ?? Dve;
+function Ove({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" || e === "dmm" ? `/site-mark?source=${e}` : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(zH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(IH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46523,24 +46523,24 @@ function Tve({ site: e, label: t }) {
})]
});
}
-function HH({ source: e, label: t }) {
- let n = BH(e);
+function zH({ source: e, label: t }) {
+ let n = LH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var UH = (e) => Xn(e).replace(/\s/g, ""), WH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : UH(e), Eve = (e, t) => {
- if (e === t) return UH(t);
+var BH = (e) => Xn(e).replace(/\s/g, ""), VH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : BH(e), kve = (e, t) => {
+ if (e === t) return BH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${UH(e)}-${UH(t)}`;
-}, GH = (e, t, n) => e === void 0 ? Eve(t, n) : `${e > 0 ? "约 " : ""}${UH(e)}`;
-function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = zV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${BH(e)}-${BH(t)}`;
+}, HH = (e, t, n) => e === void 0 ? kve(t, n) : `${e > 0 ? "约 " : ""}${BH(e)}`;
+function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = IV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
if (!e) return null;
let u = (e) => e.toLocaleString("zh-CN"), d = !!e.workload || !(!e.inventory || e.inventory.complete) || !!(e.unknown_files && e.inventory?.complete !== !1) || !!e.inventory?.errors;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46577,7 +46577,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(jH, {
+ }), /* @__PURE__ */ (0, I.jsx)(OH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46591,25 +46591,25 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(PB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- GH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ HH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", UH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", BH(e.used_bytes)] }),
" · 代理 ",
- UH(e.metered_used_bytes)
+ BH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46618,25 +46618,25 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)($B, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", UH(e.disk.estimated_bytes)]
+ children: ["约 ", BH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", WH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", VH(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : UH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : BH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", UH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", BH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46652,7 +46652,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? bB : _B,
+ trailingIcon: l ? _B : mB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46671,12 +46671,12 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(HH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(zH, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46698,7 +46698,7 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- WH(e.workload.metadata_average_bytes || 0),
+ VH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46708,8 +46708,8 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- UH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", GH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ BH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46722,15 +46722,15 @@ function KH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var qH = "peach.library-processing.collapsed";
-function JH(e) {
+var WH = "peach.library-processing.collapsed";
+function GH(e) {
try {
- return !e || sessionStorage.getItem(qH) !== e;
+ return !e || sessionStorage.getItem(WH) !== e;
} catch {
return !0;
}
}
-function Dve({ value: e, max: t }) {
+function Ave({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46760,17 +46760,17 @@ function Dve({ value: e, max: t }) {
})]
});
}
-function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => JH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
+function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => GH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && tH(e), _ = e?.status === "failed" && !g, v = eH(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && QV(e), _ = e?.status === "failed" && !g, v = ZV(e);
(0, F.useEffect)(() => {
- a(JH(e?.job_id)), m(!1);
+ a(GH(e?.job_id)), m(!1);
}, [e?.job_id]);
let y = () => {
if (!(o && (c.current = !0, s(!1), i))) {
try {
- i && e?.job_id ? sessionStorage.setItem(qH, e.job_id) : sessionStorage.removeItem(qH);
+ i && e?.job_id ? sessionStorage.setItem(WH, e.job_id) : sessionStorage.removeItem(WH);
} catch {}
i && m(!1), a(!i);
}
@@ -46800,7 +46800,7 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
r = !0, o.disconnect(), u.disconnect(), window.removeEventListener("resize", a), t.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !v && !_ && !g) return null;
- let b = t ? null : QV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : YV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46814,13 +46814,13 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Dve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Ave, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Cge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Ege, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Fge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Rge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46832,14 +46832,14 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), v ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: iH(e)
+ children: tH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: MH,
+ leadingIcon: kH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46851,24 +46851,24 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: xB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(KH, {
+ /* @__PURE__ */ (0, I.jsx)(UH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(ive, {
+ b ? /* @__PURE__ */ (0, I.jsx)(sve, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(jH, {
+ }), /* @__PURE__ */ (0, I.jsx)(OH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46885,14 +46885,14 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(hge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(vge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(gge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yge, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(dE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(uE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46905,11 +46905,11 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(uve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(pve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: nH
+ children: $V
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46923,20 +46923,20 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(pH, {
- href: rH,
+ g ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ href: eH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(wH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(xH, {
state: e,
disabled: !!t
}) : null
@@ -46946,67 +46946,67 @@ function YH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Ove(e) {
- let { job: t } = TH(e);
- return /* @__PURE__ */ (0, I.jsx)(YH, {
+function jve(e) {
+ let { job: t } = SH(e);
+ return /* @__PURE__ */ (0, I.jsx)(KH, {
state: t.data,
- problem: t.isError ? t.data ? sH : lr(t.error) : ""
+ problem: t.isError ? t.data ? iH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var XH = "peach.library-processing.visibility", ZH = /* @__PURE__ */ new Set(), QH = "";
-function kve() {
+var qH = "peach.library-processing.visibility", JH = /* @__PURE__ */ new Set(), YH = "";
+function Mve() {
try {
- return sessionStorage.getItem(XH) || "";
+ return sessionStorage.getItem(qH) || "";
} catch {
- return QH;
+ return YH;
}
}
-function Ave(e) {
- return ZH.add(e), () => {
- ZH.delete(e);
+function Nve(e) {
+ return JH.add(e), () => {
+ JH.delete(e);
};
}
-function $H(e, t) {
- QH = `${t ? "shown" : "hidden"}:${e}`;
+function XH(e, t) {
+ YH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(XH, QH);
+ sessionStorage.setItem(qH, YH);
} catch {}
- ZH.forEach((e) => e());
+ JH.forEach((e) => e());
}
-function eU(e) {
- let t = (0, F.useSyncExternalStore)(Ave, kve, () => "");
+function ZH(e) {
+ let t = (0, F.useSyncExternalStore)(Nve, Mve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var tU = "peach-library-processing";
-function jve({ toast: e }) {
- let { job: t, settled: n } = TH({
+var QH = "peach-library-processing";
+function Pve({ toast: e }) {
+ let { job: t, settled: n } = SH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = eU(a), c = t.isError ? i ? sH : lr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = ZH(a), c = t.isError ? i ? iH : lr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = eH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || dH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && WV.dismiss(tU), r.current = !1) : (WV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = ZV(i), t = i?.status === "failed" && (n?.job_id === i.job_id || cH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && VV.dismiss(QH), r.current = !1) : (VV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(YH, {
+ children: /* @__PURE__ */ (0, I.jsx)(KH, {
state: i,
problem: c,
measure: !0,
- onHide: () => $H(a, !1)
+ onHide: () => XH(a, !1)
})
}), {
- id: tU,
+ id: QH,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- $H(a, !1), r.current = !1;
+ XH(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47017,19 +47017,19 @@ function jve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && WV.dismiss(tU), r.current = !1;
+ r.current && VV.dismiss(QH), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var Mve = ["network-status"], Nve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function Pve(e) {
+var Fve = ["network-status"], Ive = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Lve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Fve() {
+function Rve() {
let e = Ft({
- queryKey: Mve,
+ queryKey: Fve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => Pve(e.state.data),
+ refetchInterval: (e) => Lve(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -47040,56 +47040,56 @@ function Fve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Nve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: Ive })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Ive(e) {
- let t = lL(gH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(fB, {
+function zve(e) {
+ let t = oL(pH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(lB, {
...e,
ref: t
});
}
-function nU(e) {
- let t = lL(gH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+function $H(e) {
+ let t = oL(pH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Oz, {
...e,
ref: t
});
}
-var rU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", iU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Lve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", aU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", oU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", sU = [
+var eU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", tU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", Bve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", nU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", rU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", iU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], cU = (e) => sU.some(([t]) => t === e) ? e : "library", lU = (e) => cU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Rve(e) {
+], aU = (e) => iU.some(([t]) => t === e) ? e : "library", oU = (e) => aU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Vve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var uU = (e, t, n, r, i, a) => ({
+var sU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), dU = (e, t, n, r, i) => uU(e, t, n, r, i), fU = [
+}), cU = (e, t, n, r, i) => sU(e, t, n, r, i), lU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- dU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- dU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- dU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- dU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ cU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ cU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ cU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ cU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -47098,23 +47098,23 @@ var uU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- dU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- dU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- dU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ cU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ cU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ cU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...uU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...sU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...uU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...sU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...uU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...sU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...uU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...sU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47126,15 +47126,15 @@ var uU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...dU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...cU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...dU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...cU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- dU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- dU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ cU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ cU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47143,10 +47143,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- dU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- dU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- dU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- dU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ cU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ cU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ cU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ cU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47155,10 +47155,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- dU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", lU("library"), "[data-catalog-frame]"),
- dU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", lU("discover"), "[data-jav-filter] [data-catalog-views]"),
- dU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", lU("discover"), "[aria-label=\"JAV 分区\"]"),
- dU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ cU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", oU("library"), "[data-catalog-frame]"),
+ cU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", oU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ cU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", oU("discover"), "[aria-label=\"JAV 分区\"]"),
+ cU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47167,9 +47167,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- dU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- dU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- dU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ cU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ cU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ cU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47178,9 +47178,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- dU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- dU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- dU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ cU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ cU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ cU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47189,11 +47189,11 @@ var uU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- dU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- dU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- dU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- dU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- dU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ cU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ cU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ cU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ cU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ cU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47202,10 +47202,10 @@ var uU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- dU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- dU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- dU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- dU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ cU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ cU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ cU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ cU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47214,9 +47214,9 @@ var uU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- dU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- dU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- dU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ cU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ cU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ cU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47225,18 +47225,18 @@ var uU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- dU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- dU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- dU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ cU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ cU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ cU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], zve = "当前浏览器 · 修改后自动保存", pU = "跟随馆藏 · 修改后自动保存", mU = "运行 Peach 的电脑 · 确认后保存配置", hU = (e, t, n = zve) => t.map(([t, r, i, a, o]) => uU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), gU = [
+], Hve = "当前浏览器 · 修改后自动保存", uU = "跟随馆藏 · 修改后自动保存", dU = "运行 Peach 的电脑 · 确认后保存配置", fU = (e, t, n = Hve) => t.map(([t, r, i, a, o]) => sU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), pU = [
{
id: "appearance",
kind: "settings",
title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: hU("appearance", [
+ steps: fU("appearance", [
[
"theme",
"主题",
@@ -47266,7 +47266,7 @@ var uU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- pU
+ uU
]
])
},
@@ -47275,7 +47275,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: hU("playback", [
+ steps: fU("playback", [
[
"batch",
"每批作品",
@@ -47331,13 +47331,13 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.jav,
summary: "封面与新作筛选。",
- steps: hU("jav", [
+ steps: fU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- pU
+ uU
],
[
"image",
@@ -47362,21 +47362,21 @@ var uU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- pU
+ uU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- pU
+ uU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- pU
+ uU
]
])
},
@@ -47385,12 +47385,12 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...hU("search", [[
+ steps: [...fU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], pU), ...hU("search", [[
+ ]], uU), ...fU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47402,7 +47402,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: hU("content", [[
+ steps: fU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47414,7 +47414,7 @@ var uU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: hU("library", [
+ steps: fU("library", [
[
"media",
"媒体库名称与外观",
@@ -47465,14 +47465,14 @@ var uU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], mU)
+ ], dU)
},
{
id: "subscriptions",
kind: "settings",
title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: hU("subscriptions", [
+ steps: fU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47499,14 +47499,14 @@ var uU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], mU)
+ ], dU)
},
{
id: "downloads",
kind: "settings",
title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: hU("downloads", [
+ steps: fU("downloads", [
[
"download",
"云下载",
@@ -47522,14 +47522,14 @@ var uU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], mU)
+ ], dU)
},
{
id: "network",
kind: "settings",
title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: hU("network", [
+ steps: fU("network", [
[
"port",
"访问地址与端口",
@@ -47550,14 +47550,14 @@ var uU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], mU)
+ ], dU)
},
{
id: "app-maintenance",
kind: "settings",
title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: hU("maintenance", [
+ steps: fU("maintenance", [
[
"updates",
"检查更新",
@@ -47603,14 +47603,14 @@ var uU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], mU)
+ ], dU)
},
{
id: "diagnostics",
kind: "settings",
title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: hU("diagnostics", [
+ steps: fU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47635,7 +47635,7 @@ var uU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Bve = {
+], Uve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47742,8 +47742,8 @@ var uU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of gU) for (let t of e.steps) t.details = Bve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
-var _U = [...fU, ...gU], Vve = [
+for (let e of pU) for (let t of e.steps) t.details = Uve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage" || t.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
+var mU = [...lU, ...pU], Wve = [
{
id: "browse",
kind: "interface",
@@ -47821,35 +47821,35 @@ var _U = [...fU, ...gU], Vve = [
]
}
];
-function Hve(e) {
- return e === "/" ? fU[0] : gU.find((t) => t.steps[0]?.route === e) || fU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || fU[0];
+function Gve(e) {
+ return e === "/" ? lU[0] : pU.find((t) => t.steps[0]?.route === e) || lU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || lU[0];
}
// src/onboarding/guide-state.ts
-var Uve = () => ({
+var Kve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function vU(e, t) {
+function hU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Wve(e, t) {
+function qve(e, t) {
let n = e.chapters[t.id];
- return !n || vU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || hU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Gve() {
+function Jve() {
return B("/api/tutorial-progress");
}
-function Kve(e, t) {
+function Yve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function qve(e, t, n, r, i) {
+function Xve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47867,99 +47867,99 @@ function qve(e, t, n, r, i) {
}
};
}
-var yU = null, bU = /* @__PURE__ */ new Set();
-function xU(e = {}) {
- bU.size || (yU = e);
- for (let t of bU) t(e);
+var gU = null, _U = /* @__PURE__ */ new Set();
+function vU(e = {}) {
+ _U.size || (gU = e);
+ for (let t of _U) t(e);
}
-function Jve(e) {
- if (bU.add(e), yU) {
- let t = yU;
- yU = null, queueMicrotask(() => {
- bU.has(e) && e(t);
+function Zve(e) {
+ if (_U.add(e), gU) {
+ let t = gU;
+ gU = null, queueMicrotask(() => {
+ _U.has(e) && e(t);
});
}
return () => {
- bU.delete(e);
+ _U.delete(e);
};
}
// src/react/components/card.tsx
-var Yve = "min-w-0", Xve = {
+var Qve = "min-w-0", $ve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Zve = {
+}, eye = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Qve = {
+}, tye = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, $ve = {
+}, nye = {
none: "",
default: "p-5"
-}, eye = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", tye = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function SU(e = {}) {
+}, rye = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", iye = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function yU(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Yve,
- Xve[t],
- Zve[s],
- $ve[n],
- a ? Qve[a] : "",
- r ? eye : "",
- i ? tye : "",
+ Qve,
+ $ve[t],
+ eye[s],
+ nye[n],
+ a ? tye[a] : "",
+ r ? rye : "",
+ i ? iye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var nye = {
- browse: GB,
- collect: SB,
- watch: BB,
- manage: MB,
- experience: RB,
- discovery: WB,
- storage: EB,
- system: KB
-}, rye = {
- basics: TB,
- "find-play": GB,
- entities: XB,
- jav: AB,
- save: SB,
- follow: WB,
- insights: xB,
- viewing: BB,
- devices: qB,
- external: DB,
- maintenance: YB,
- appearance: RB,
- playback: BB,
- content: kB,
- "search-settings": GB,
- "jav-settings": AB,
- subscriptions: WB,
- library: EB,
- downloads: DB,
- network: qB,
- "app-maintenance": YB,
- diagnostics: Bge
+var aye = {
+ browse: HB,
+ collect: yB,
+ watch: LB,
+ manage: kB,
+ experience: FB,
+ discovery: VB,
+ storage: CB,
+ system: UB
+}, oye = {
+ basics: SB,
+ "find-play": HB,
+ entities: qB,
+ jav: DB,
+ save: yB,
+ follow: VB,
+ insights: vB,
+ viewing: LB,
+ devices: WB,
+ external: wB,
+ maintenance: KB,
+ appearance: FB,
+ playback: LB,
+ content: EB,
+ "search-settings": HB,
+ "jav-settings": DB,
+ subscriptions: VB,
+ library: CB,
+ downloads: wB,
+ network: WB,
+ "app-maintenance": KB,
+ diagnostics: Uge
};
-function iye({ chapter: e, className: t = "size-5" }) {
- let n = rye[e] || TB;
+function sye({ chapter: e, className: t = "size-5" }) {
+ let n = oye[e] || SB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function CU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function bU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-guide-banner": "",
"data-guide-completed": i || void 0,
- className: SU({
+ className: yU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47988,8 +47988,8 @@ function CU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function wU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = vU(t, e), a = !i && !!t.chapters[e.id];
+function xU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = hU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47999,7 +47999,7 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(iye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(sye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -48011,7 +48011,7 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48019,17 +48019,17 @@ function wU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(yB, {
+ /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function TU() {
+function SU() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, I.jsx)(CB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48038,17 +48038,17 @@ function TU() {
})]
});
}
-function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = _U.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = vU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = _U.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
+function cye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = mU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = hU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = mU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(CU, {
+ /* @__PURE__ */ (0, I.jsxs)(bU, {
completed: u,
- icon: e === "interface" ? TB : KB,
+ icon: e === "interface" ? SB : UB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(TU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48061,26 +48061,26 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(eV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(nV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: GB
+ leadingIcon: HB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(wU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(xU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: GB,
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: HB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48098,12 +48098,12 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Vve.filter((t) => t.kind === e).map((e) => {
- let t = nye[e.id];
+ children: Wve.filter((t) => t.kind === e).map((e) => {
+ let t = aye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48128,8 +48128,8 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}),
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topic-chapters",
- children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(wU, {
- chapter: _U.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(xU, {
+ chapter: mU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48143,14 +48143,14 @@ function aye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var EU = "侧栏收起时,先点左上角的导航按钮。", DU = (...e) => ({
+var CU = "侧栏收起时,先点左上角的导航按钮。", wU = (...e) => ({
path: ["侧栏", ...e],
- hint: EU
-}), OU = (e) => ({
+ hint: CU
+}), TU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: EU
+ hint: CU
});
-function oye(e) {
+function lye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48168,7 +48168,7 @@ function oye(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Of[r];
- if (e) return OU(e);
+ if (e) return TU(e);
let t = kf[r];
if (t) return {
path: [
@@ -48176,11 +48176,11 @@ function oye(e) {
"Peach 配置",
t
],
- hint: EU
+ hint: CU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return DU("JAV", sU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || sU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return wU("JAV", iU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || iU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48190,9 +48190,9 @@ function oye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: EU
+ hint: CU
};
- case "preferences": return OU(Of.appearance);
+ case "preferences": return TU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48214,22 +48214,22 @@ function oye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return DU("首页");
+ return wU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return DU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ ].includes(t)) return wU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
let a = $f[t];
if (a?.nav && a.title) {
- let e = DU(a.title);
+ let e = wU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return DU("管理", a.title);
+ if (a?.section && a.title) return wU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function sye({ details: e }) {
+function uye({ details: e }) {
return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
className: "flex flex-col gap-3",
children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -48245,8 +48245,8 @@ function sye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = zV(), l = oye(e);
+function dye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = IV(), l = lye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48257,7 +48257,7 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
id: "driver-popover-title",
className: "text-body-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48274,7 +48274,7 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center gap-2 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)(Hge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Gge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48283,7 +48283,7 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(gB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48304,15 +48304,15 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "text-caption-1-regular text-text-secondary",
children: "导览期间不自动播放;退出后仍按原来的播放设置使用。"
}) : null,
- e.details?.length ? /* @__PURE__ */ (0, I.jsx)(RH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(sye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(uye, { details: e.details })
}) : null,
e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.scope
}) : null,
- r ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48366,14 +48366,14 @@ function cye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function kU(e, t, n) {
+function EU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, zt.createRoot)(r);
- return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(cye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(dye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function lye({ go: e }) {
+function fye({ go: e }) {
let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);
(0, F.useEffect)(() => {
let e = new AbortController();
@@ -48387,8 +48387,8 @@ function lye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(CU, {
- icon: Vge,
+ /* @__PURE__ */ (0, I.jsxs)(bU, {
+ icon: Wge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48399,7 +48399,7 @@ function lye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48415,7 +48415,7 @@ function lye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(MB, {
+ children: /* @__PURE__ */ (0, I.jsx)(kB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48434,7 +48434,7 @@ function lye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)($ge, {
+ children: /* @__PURE__ */ (0, I.jsx)(n_e, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48453,7 +48453,7 @@ function lye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(BB, {
+ children: /* @__PURE__ */ (0, I.jsx)(LB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48471,7 +48471,7 @@ function lye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(RH, {
+ /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48480,31 +48480,31 @@ function lye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: WB
+ icon: VB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: xB
+ icon: vB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: DB
+ icon: wB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: qB
+ icon: WB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: CB
+ icon: bB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48531,16 +48531,16 @@ function lye({ go: e }) {
]
});
}
-var AU = "tutorial-sync";
-function uye({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Uve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = zV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var DU = "tutorial-sync";
+function pye({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Kve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = IV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
C.current = l;
let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {
C.current = e, u(e);
}, N = async (e = !0) => {
let t = j.current;
try {
- let n = await Gve();
+ let n = await Jve();
return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);
} catch {
return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;
@@ -48550,7 +48550,7 @@ function uye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Kve(e.campaign, t);
+ let r = await Yve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48560,8 +48560,8 @@ function uye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? WV.dismiss(AU) : WV.error(p, {
- id: AU,
+ !p || t ? VV.dismiss(DU) : VV.error(p, {
+ id: DU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48572,7 +48572,7 @@ function uye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- WV.dismiss(AU);
+ VV.dismiss(DU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48593,7 +48593,7 @@ function uye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: kU,
+ mountPopover: EU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48632,12 +48632,12 @@ function uye({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = Jve((e) => {
+ let r = Zve((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
ie(), T.current = t, g(""), c("");
- let r = _U.find((t) => t.id === e.chapter);
+ let r = mU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48670,7 +48670,7 @@ function uye({ actions: e }) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Wve(C.current, t) : 0;
+ let i = r ? qve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48704,7 +48704,7 @@ function uye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: kU,
+ mountPopover: EU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48715,18 +48715,18 @@ function uye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(qve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(Xve(C.current, t.id, t.steps[w.current].id, n, e), {
action: "step",
chapter: t.id,
step: t.steps[w.current].id,
next: n,
skipped: e
}), n >= t.steps.length) {
- if (t.id === "basics" && vU(C.current, t) && te({
+ if (t.id === "basics" && hU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(vU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(hU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48739,8 +48739,8 @@ function uye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = Hve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(sV, {
+ let ce = Gve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(iV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48755,18 +48755,18 @@ function uye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭新手教程",
onPress: ae
})]
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-tools flex shrink-0 flex-col gap-4 px-6 pt-4 pb-3",
- children: /* @__PURE__ */ (0, I.jsx)(nU, {
+ children: /* @__PURE__ */ (0, I.jsx)($H, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: rU,
+ className: eU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48775,9 +48775,9 @@ function uye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Mz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
- className: iU,
+ className: tU,
children: t
}, e))
})
@@ -48788,7 +48788,7 @@ function uye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48800,12 +48800,12 @@ function uye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(lye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(aye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(fye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(cye, {
kind: a,
query: s,
setQuery: c,
@@ -48823,15 +48823,15 @@ function uye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var dye = 12e4, fye = 15e3, jU = () => document.visibilityState !== "hidden", MU = /* @__PURE__ */ new Set([
+var mye = 12e4, hye = 15e3, OU = () => document.visibilityState !== "hidden", kU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), NU = "/settings/maintenance#releaseUpdates";
-function pye() {
+]), AU = "/settings/maintenance#releaseUpdates";
+function gye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48842,23 +48842,23 @@ function pye() {
return null;
}
}
-function PU() {
- let e = (0, F.useRef)(pye()), [t, n] = (0, F.useState)(null);
+function jU() {
+ let e = (0, F.useRef)(gye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !jU()) return;
+ if (t || !OU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), fye);
+ let s = setTimeout(() => o.abort(), hye);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && jU() && (r = setTimeout(a, dye)));
+ clearTimeout(s), i === o && (i = void 0, !t && OU() && (r = setTimeout(a, mye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, jU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, OU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -48868,12 +48868,12 @@ function PU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function mye({ navigate: e }) {
- let { snapshot: t, refresh: n } = PU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function _ye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = jU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : MU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : kU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || MU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || kU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48896,22 +48896,22 @@ function mye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(pH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
- href: NU,
+ href: AU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(NU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(AU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(pH, {
+ }), /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48922,8 +48922,8 @@ function mye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function hye() {
- let e = (0, F.useContext)(YW), { pathname: t } = ef();
+function vye() {
+ let e = (0, F.useContext)(KW), { pathname: t } = ef();
return (0, F.useEffect)(() => {
e?.openSettings?.(Nf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -48933,7 +48933,7 @@ function hye() {
}, [e]), null;
}
// src/junk-queue.ts
-var FU = [
+var MU = [
[
"",
"全部",
@@ -48969,40 +48969,40 @@ var FU = [
"其它",
"hard-drive"
]
-], gye = (e) => FU.find(([t]) => t === e)?.[0] ?? "";
-function IU(e) {
+], yye = (e) => MU.find(([t]) => t === e)?.[0] ?? "";
+function NU(e) {
let t = new URLSearchParams(e);
return {
- kind: gye(t.get("type")),
+ kind: yye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function LU(e = "", t = "pending") {
+function PU(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 RU(e) {
+function FU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: LU("", "pending")
+ href: PU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: LU("", "dismissed")
+ href: PU("", "dismissed")
};
}
-var zU = (e) => e === "dismissed" ? "已排除" : "待判断", BU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function _ye({ kind: e, view: t }) {
- let n = FU.map(([n, r, i]) => `<a href="${LU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${BU(i)}${z(r)}</a>`).join(""), r = RU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(zU(t))}</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="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${BU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var IU = (e) => e === "dismissed" ? "已排除" : "待判断", LU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function bye({ kind: e, view: t }) {
+ let n = MU.map(([n, r, i]) => `<a href="${PU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${LU(i)}${z(r)}</a>`).join(""), r = FU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(IU(t))}</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="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${LU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function vye(e, t, n) {
+function xye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49016,7 +49016,7 @@ function vye(e, t, n) {
n
]);
}
-function yye(e, t) {
+function Sye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49029,33 +49029,33 @@ function yye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var VU = (0, F.createContext)("md");
-function HU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var RU = (0, F.createContext)("md");
+function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- vye(d, () => f(!1), [l, u]);
- let p = yye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Yme, {
+ xye(d, () => f(!1), [l, u]);
+ let p = Sye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Qme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(RL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(FL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Qme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(the, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(l_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(f_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(f_e, jV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(_me, {
+ className: q(h_e, OV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(bme, {
items: a,
- className: q(p_e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(VU.Provider, {
+ className: q(g_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(RU.Provider, {
value: r,
children: i
})
@@ -49063,16 +49063,16 @@ function HU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function UU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(VU);
- return /* @__PURE__ */ (0, I.jsx)(bme, {
+function BU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(RU);
+ return /* @__PURE__ */ (0, I.jsx)(Cme, {
...n,
- className: (t) => q(MV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => q(kV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var WU = NI({
+var VU = AI({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -49091,15 +49091,15 @@ var WU = NI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function GU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function HU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(WU.base, WU.variant[e], WU.color[t], n),
+ className: q(VU.base, VU.variant[e], VU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function KU({ artwork: e, identity: t = e.html, relayout: n }) {
+function UU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49118,7 +49118,7 @@ function KU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var qU = "/api/downloads", JU = ["downloads"], bye = "/api/downloads/cancel", xye = "/api/downloads/postprocess", YU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Sye = {
+var WU = "/api/downloads", GU = ["downloads"], Cye = "/api/downloads/cancel", wye = "/api/downloads/postprocess", KU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Tye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49128,21 +49128,21 @@ var qU = "/api/downloads", JU = ["downloads"], bye = "/api/downloads/cancel", xy
landed: "lime",
submitted: "neutral",
submit_pending: "yellow"
-}, XU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = BI({
+}, qU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = LI({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, ZU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Cye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function wye() {
+}, JU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Eye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Dye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...JU, "pages"],
+ queryKey: [...GU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${qU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${WU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => YU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => KU(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
id: "cloudDownloads",
@@ -49154,14 +49154,14 @@ function wye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Tye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Oye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49169,9 +49169,9 @@ function wye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: _B,
+ leadingIcon: mB,
className: "self-start",
- ...mV(t.isFetchingNextPage),
+ ...dV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49180,16 +49180,16 @@ function wye() {
]
});
}
-function Tye({ task: e, writable: t }) {
- rL();
- let n = ae(), r = mH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = ZU(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function Oye({ task: e, writable: t }) {
+ eL();
+ let n = ae(), r = dH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = JU(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- tL(e.submitted_at)
+ QI(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: JU });
+ n.invalidateQueries({ queryKey: GU });
}, g = () => {
- r.run("cancel", (t) => V(bye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Cye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49199,16 +49199,16 @@ function Tye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(qU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(WU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(xye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(wye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: SU({
+ className: yU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49219,14 +49219,14 @@ function Tye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(uM) },
+ style: { "--card-ratio": String(sM) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: {
kind: "cover",
html: So(u, "big")
@@ -49236,7 +49236,7 @@ function Tye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${XU(e)}`,
+ "aria-label": `打开作品详情:${qU(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -49247,19 +49247,19 @@ function Tye({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: XU(e),
+ title: qU(e),
children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: XU(e)
- }) : XU(e)
+ children: qU(e)
+ }) : qU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(GU, {
- color: Sye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(HU, {
+ color: Tye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(HU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49269,7 +49269,7 @@ function Tye({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(HH, {
+ children: /* @__PURE__ */ (0, I.jsx)(zH, {
source: e.provider,
label: e.provider_label
})
@@ -49296,7 +49296,7 @@ function Tye({ task: e, writable: t }) {
children: [d.map((e) => nn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(OH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(TH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49306,7 +49306,7 @@ function Tye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: r.error }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -49331,21 +49331,21 @@ function Tye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "cancel"),
+ ...dV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "resubmit"),
+ ...dV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(r.busy === "postprocess"),
+ ...dV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49360,37 +49360,37 @@ function Tye({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: XU(e)
+ children: qU(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, I.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || Cye(e)
+ children: l || Eye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var QU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), $U = (e, t) => !!QU(e) && QU(e) === QU(t);
+var YU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), XU = (e, t) => !!YU(e) && YU(e) === YU(t);
// src/react/components/ime.ts
-function eW(e) {
+function ZU(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function Eye({ className: e }) {
+function kye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function Dye(e) {
+function Aye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Dye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = mH(), b = (0, F.useRef)(null);
+function jye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Aye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = dH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49406,7 +49406,7 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => $U(e.code, t));
+ let r = (n.items || []).find((e) => XU(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49427,28 +49427,28 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsxs)(FH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(MH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Eye : GB,
+ leadingIcon: y.busy ? kye : HB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !eW(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !ZU(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(zU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49456,15 +49456,15 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "uncensored",
children: "无码"
})
@@ -49473,32 +49473,32 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(oV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(rV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), /* @__PURE__ */ (0, I.jsx)(rV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(FH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(FH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(MH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
@@ -49508,7 +49508,7 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, I.jsx)(FH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(MH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49532,20 +49532,20 @@ function Oye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var kye = {
+var Mye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度",
deferred: "网盘暂时没有响应,Peach 会自动重新提交,进度在任务中心"
};
-function tW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(sV, {
+function QU({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Aye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Nye, {
prefill: e,
close: t,
receipt: n,
@@ -49553,26 +49553,26 @@ function tW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Nye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: JU,
- queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e),
- refetchInterval: (e) => YU(e.state.data)
+ queryKey: GU,
+ queryFn: ({ signal: e }) => B(`${WU}?limit=50`, e),
+ refetchInterval: (e) => KU(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: xB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(jye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Pye, {
header: o,
snapshot: a,
prefill: e,
@@ -49585,7 +49585,7 @@ function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49601,8 +49601,8 @@ function Aye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = mH(), C = (0, F.useRef)(null), w = (e) => {
+function Pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = dH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49618,14 +49618,14 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(qU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: JU });
- let t = kye[e.outcome];
+ b(""), S.run("submit", (e) => V(WU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: GU });
+ let t = Mye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = ZU(e.task);
+ let n = JU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49649,7 +49649,7 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(FH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(MH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49657,22 +49657,22 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Oye, {
+ /* @__PURE__ */ (0, I.jsx)(jye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- $U(e, _?.code) || (v($U(e, n.code) ? n : null), f("")), m(e);
+ XU(e, _?.code) || (v(XU(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? $U(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? XU(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : $U(t?.code, n.code) ? t : null),
+ } : e : XU(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49684,38 +49684,38 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(LH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(HU, {
+ /* @__PURE__ */ (0, I.jsx)(PH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(zU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(HH, {
+ children: /* @__PURE__ */ (0, I.jsx)(zH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(FH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(MH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(lV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49723,17 +49723,17 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), $U(e, _?.code) || v(null);
+ m(e), XU(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(IH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49745,7 +49745,7 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...mV(S.busy === "submit"),
+ ...dV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49753,18 +49753,18 @@ function jye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var nW = "/api/wants", rW = ["wants"], Mye = (e) => [
+var $U = "/api/wants", eW = ["wants"], Fye = (e) => [
"wants",
"follow",
e
-], Nye = [
+], Iye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], iW = (e) => B(nW, e);
-function Pye(e, t) {
- H.setQueryData(rW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], tW = (e) => B($U, e);
+function Lye(e, t) {
+ H.setQueryData(eW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49772,21 +49772,21 @@ function Pye(e, t) {
} : n)
} : n);
}
-var Fye = (e, t) => B(`${nW}?follow=${encodeURIComponent(e)}`, t), aW = (e, t) => V(nW, {
+var Rye = (e, t) => B(`${$U}?follow=${encodeURIComponent(e)}`, t), nW = (e, t) => V($U, {
action: "add",
...e
-}, "POST", t), oW = (e, t) => V(nW, {
+}, "POST", t), rW = (e, t) => V($U, {
action: "remove",
ids: e
-}, "POST", t), Iye = (e, t) => V(nW, {
+}, "POST", t), zye = (e, t) => V($U, {
action: "reset",
ids: e
-}, "POST", t), sW = () => H.invalidateQueries({ queryKey: rW }), Lye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Rye(e) {
+}, "POST", t), iW = () => H.invalidateQueries({ queryKey: eW }), Bye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Vye(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} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
-var cW = [
+var aW = [
[
"taste",
"口味",
@@ -49794,7 +49794,7 @@ var cW = [
],
[
"release_date",
- Oj[1],
+ Tj[1],
"按发行日期排序"
],
[
@@ -49812,10 +49812,10 @@ var cW = [
"番号",
"按番号排序"
]
-], lW = [
+], oW = [
[
"release_date",
- Oj[1],
+ Tj[1],
"按发行日期排序"
],
[
@@ -49839,10 +49839,10 @@ var cW = [
"按口味匹配排序"
]
];
-function zye(e) {
+function Hye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Bye(e) {
+function Uye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49867,7 +49867,7 @@ function Bye(e) {
};
}
// src/react/jav/jav.ts
-function Vye(e) {
+function Wye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Pp(location.pathname + (t.size ? `?${t}` : ""), {
@@ -49875,13 +49875,13 @@ function Vye(e) {
state: Np.navigation.location.state
});
}
-var uW = (e, t = "taste", n = "desc") => [
+var sW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function dW(e, t, n = {}) {
+function cW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49890,7 +49890,7 @@ function dW(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
-function fW(e) {
+function lW(e) {
let t = new URLSearchParams(e), n = t.get("sort"), r = t.get("seed") || "";
return {
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
@@ -49898,12 +49898,12 @@ function fW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : lW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : oW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var pW = (e) => [
+var uW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49914,7 +49914,7 @@ var pW = (e) => [
e.dir,
e.seed
];
-function mW(e, t, n = "") {
+function dW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49930,7 +49930,7 @@ function mW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function Hye(e, t, n) {
+function Gye(e, t, n) {
let r = wo({
...e,
is_jav: !0
@@ -49939,40 +49939,40 @@ function Hye(e, t, n) {
let i = z(fo(e));
return So(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function Uye(e, t) {
+async function Kye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: rW,
- queryFn: () => iW(t),
+ queryKey: eW,
+ queryFn: () => tW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: uW("external"),
- queryFn: () => dW("external", t),
+ queryKey: sW("external"),
+ queryFn: () => cW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = fW(location.search);
+ let e = lW(location.search);
await H.ensureQueryData({
- queryKey: pW(e),
- queryFn: () => mW(e, t),
+ queryKey: uW(e),
+ queryFn: () => dW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function hW({ value: e }) {
+function fW({ value: e }) {
return /* @__PURE__ */ (0, I.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 Wye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = lL(a);
+var qye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function pW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = oL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49981,7 +49981,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(FI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(MI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49996,7 +49996,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? fV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? lV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -50005,7 +50005,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: Wye,
+ className: qye,
onClick: () => {
i || r(e.value);
},
@@ -50015,7 +50015,7 @@ function gW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function _W({ tab: e, navigate: t, find: n, search: r }) {
+function mW({ tab: e, navigate: t, find: n, search: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -50034,32 +50034,32 @@ function _W({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: sU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: iU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(lU(e))
+ onChange: (e) => t(oU(e))
})]
});
}
-function Gye({ navigate: e, receipt: t }) {
+function Jye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_W, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(tW, {
+ }), /* @__PURE__ */ (0, I.jsx)(QU, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Kye = [
+var Yye = [
[
[
{
@@ -53620,7 +53620,7 @@ var Kye = [
}
]
]
-], vW = [
+], hW = [
[
{
x: 0,
@@ -53917,89 +53917,89 @@ var Kye = [
rows: 2
}
]
-], yW = (e) => e.map((e) => ({
+], gW = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), bW = (e) => e.map((e) => ({
+})), _W = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), xW = [
+})), vW = [
(e) => e,
- yW,
- bW,
- (e) => yW(bW(e))
-], SW = vW.flatMap((e) => xW.map((t) => t(e))), qye = Kye.flatMap((e) => xW.map((t) => e.map(t)));
-SW.length;
-var Jye = (e, t) => {
+ gW,
+ _W,
+ (e) => gW(_W(e))
+], yW = hW.flatMap((e) => vW.map((t) => t(e))), Xye = Yye.flatMap((e) => vW.map((t) => e.map(t)));
+yW.length;
+var Zye = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
-}, CW = (e, t) => {
- let n = vW.length;
- return ((e + t * 2) % n + n) % n * xW.length + Jye(e, t) % xW.length;
-}, Yye = (e, t) => SW[CW(e, t)], Xye = (e, t, n) => n < 0 || n >= 12 ? null : qye[CW(e, t)][n], wW = 103.36, TW = 6.08, EW = 12 * wW, DW = 8 * wW, OW = 12, kW = (e, t) => (e % t + t) % t, Zye = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
-function AW(e, t) {
- let n = Math.max(1, Math.ceil(e / OW)), r = t ? 3 : Math.min(3, n);
+}, bW = (e, t) => {
+ let n = hW.length;
+ return ((e + t * 2) % n + n) % n * vW.length + Zye(e, t) % vW.length;
+}, Qye = (e, t) => yW[bW(e, t)], $ye = (e, t, n) => n < 0 || n >= 12 ? null : Xye[bW(e, t)][n], xW = 103.36, SW = 6.08, CW = 12 * xW, wW = 8 * xW, TW = 12, EW = (e, t) => (e % t + t) % t, ebe = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+function DW(e, t) {
+ let n = Math.max(1, Math.ceil(e / TW)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * EW,
- height: Math.ceil(n / r) * DW
+ width: r * CW,
+ height: Math.ceil(n / r) * wW
};
}
-function jW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Yye(e, t)[n];
+function OW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = Qye(e, t)[n];
return {
- x: e * EW + r * wW,
- y: t * DW + i * wW,
- width: a * wW - TW,
- height: o * wW - TW
+ x: e * CW + r * xW,
+ y: t * wW + i * xW,
+ width: a * xW - SW,
+ height: o * xW - SW
};
}
-function Qye(e) {
+function tbe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function MW(e, t, n) {
+function kW(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= OW) return null;
- let o = AW(e, t), s = o.height / DW;
+ ].every(Number.isInteger) || a < 0 || a >= TW) return null;
+ let o = DW(e, t), s = o.height / wW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : kW(r, o.columns), l = ((t ? i : kW(i, s)) * o.columns + c) * OW + a;
+ let c = t ? r : EW(r, o.columns), l = ((t ? i : EW(i, s)) * o.columns + c) * TW + a;
return t && l >= e ? null : {
- ...jW(r, i, a),
+ ...OW(r, i, a),
index: l % e,
key: n
};
}
-function $ye(e, t) {
+function nbe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / OW);
- return MW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % OW}`);
+ let n = Math.floor(t / TW);
+ return kW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % TW}`);
}
-function NW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = Xye(r, i, a);
+function AW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = $ye(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * EW + e.x * wW,
- y: i * DW + e.y * wW,
- width: e.cols * wW - TW,
- height: e.rows * wW - TW
+ x: r * CW + e.x * xW,
+ y: i * wW + e.y * xW,
+ width: e.cols * xW - SW,
+ height: e.rows * xW - SW
}]));
}
-function ebe(e) {
+function rbe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / OW), i = jW(e % 3, Math.floor(e / 3), r % OW);
+ let e = Math.floor(r / TW), i = OW(e % 3, Math.floor(e / 3), r % TW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * EW - TW : t,
+ width: e >= 36 ? 3 * CW - SW : t,
height: n
};
}
-function tbe(e, t, n, r) {
+function ibe(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -54008,22 +54008,22 @@ function tbe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function PW(e, t, n, r) {
+function jW(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = AW(e, t), s = o.height / DW, c = [];
- for (let n = Math.floor(a.y / DW); n <= Math.floor((a.y + a.height) / DW); n += 1) for (let r = Math.floor(a.x / EW); r <= Math.floor((a.x + a.width) / EW); r += 1) {
+ }, o = DW(e, t), s = o.height / wW, c = [];
+ for (let n = Math.floor(a.y / wW); n <= Math.floor((a.y + a.height) / wW); n += 1) for (let r = Math.floor(a.x / CW); r <= Math.floor((a.x + a.width) / CW); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : kW(r, o.columns), l = t ? n : kW(n, s);
- for (let s = 0; s < OW; s += 1) {
- let u = (l * o.columns + i) * OW + s;
+ let i = t ? r : EW(r, o.columns), l = t ? n : EW(n, s);
+ for (let s = 0; s < TW; s += 1) {
+ let u = (l * o.columns + i) * TW + s;
if (t && u >= e) continue;
- let d = jW(r, n, s);
- Zye(d, a) && c.push({
+ let d = OW(r, n, s);
+ ebe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54032,7 +54032,7 @@ function PW(e, t, n, r) {
}
return c;
}
-var nbe = class {
+var abe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54044,7 +54044,7 @@ var nbe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : MW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : kW(t, !1, e);
return r ? {
...r,
index: n
@@ -54074,7 +54074,7 @@ var nbe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * EW,
+ x: (e + 2) * CW,
y: 0
};
}
@@ -54087,10 +54087,10 @@ var nbe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / EW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / CW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, FW = [
+}, MW = [
"q",
"performer",
"series",
@@ -54105,39 +54105,39 @@ var nbe = class {
"dur_max",
"region"
];
-function rbe(e = {}) {
- return FW.some((t) => !!e[t]);
+function obe(e = {}) {
+ return MW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function ibe() {
+function sbe() {
if (document.querySelector("[data-wall-boot]")) return;
let e = innerWidth < 640 ? .68 : 1, t = document.createElement("div");
t.className = "peach-react", t.dataset.wallBoot = "", t.innerHTML = `<div data-video-wall="" data-fullscreen=""><div data-wall-viewport="" data-skeleton="wall" role="status" aria-busy="true" aria-label="正在读取播放墙"><div data-wall-world="" style="transform:translate3d(0px, 0px, 0) scale(${e})"></div></div></div>`, document.body.append(t);
let n = t.querySelector("[data-wall-viewport]").getBoundingClientRect();
- t.querySelector("[data-wall-world]").innerHTML = PW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = jW(12, !1, {
x: 0,
y: 0,
scale: e
}, n).map((e) => `<span data-wall-skeleton="" aria-hidden="true" style="--wall-left:${e.x}px;--wall-top:${e.y}px;--wall-width:${e.width}px;--wall-height:${e.height}px"></span>`).join("");
}
-function IW() {
+function NW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var abe = () => pu, LW = Np.navigation.seq, RW = Np.navigation.openEpoch, zW = Np.navigation.location.pathname, BW = {
- seq: LW,
+var cbe = () => pu, PW = Np.navigation.seq, FW = Np.navigation.openEpoch, IW = Np.navigation.location.pathname, LW = {
+ seq: PW,
claimed: !0,
- from: zW
+ from: IW
};
Np.listen((e) => {
- BW = {
+ LW = {
seq: e.seq,
- claimed: e.openEpoch === RW,
- from: zW
- }, RW = e.openEpoch, zW = e.location.pathname;
+ claimed: e.openEpoch === FW,
+ from: IW
+ }, FW = e.openEpoch, IW = e.location.pathname;
});
-var VW = !1;
-function HW(e) {
+var RW = !1;
+function zW(e) {
let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
return {
seq: t,
@@ -54149,7 +54149,7 @@ function HW(e) {
opened: e
};
}
-function obe(e, t, n, r) {
+function lbe(e, t, n, r) {
let i = { ...U }, a = hm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -54161,7 +54161,7 @@ function obe(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = tM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = Qj().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54175,7 +54175,7 @@ function obe(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Ij(o.get("sort"), o.get("dir"), s, c),
+ ...Nj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? ir() : i.seed || ir()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -54186,14 +54186,14 @@ function obe(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function UW(e) {
+function BW(e) {
let t = Np.navigation.seq;
mm("catalog", { ...U });
let n = e(), r = () => Np.navigation.seq === t, i = () => document.querySelector("#grid");
vm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => vm(r, i()));
}
-function sbe(e, t) {
- let n = { ...e }, r = HW(n.opened);
+function ube(e, t) {
+ let n = { ...e }, r = zW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -54205,39 +54205,39 @@ function sbe(e, t) {
if (r.opens === n.opens) {
if (r.epoch === n.epoch && n.opened) {
if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;
- UW(() => i.load());
+ BW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && BW.from !== "/");
+ r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && LW.from !== "/");
}
let { pathname: o, search: s } = Np.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = IU(s);
- VW = !0, Pp(LU(e, t), { replace: !0 });
+ let { kind: e, view: t } = NU(s);
+ RW = !0, Pp(PU(e, t), { replace: !0 });
return;
}
- let c = VW;
- VW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: obe(o, s, a, i) }), UW(() => i.open(o, {
+ let c = RW;
+ RW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: lbe(o, s, a, i) }), BW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function cbe() {
- let e = (0, F.useContext)(YW), t = JW(), n = (0, F.useSyncExternalStore)(Cu, abe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function dbe() {
+ let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(Cu, cbe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = HW(!Bf(Np.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (VW || BW.seq === LW ? t.opens = -1 : BW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = zW(!Bf(Np.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (RW || LW.seq === PW ? t.opens = -1 : LW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && sbe(i.current, e);
+ t.queued = !1, t.mounted && i.current && ube(i.current, e);
}));
}, [
t,
@@ -54246,7 +54246,7 @@ function cbe() {
e
]), null;
}
-function WW() {
+function VW() {
let { pathname: e } = ef();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -54255,23 +54255,23 @@ function WW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), IW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), NW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(eG, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(dbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });
}
-function lbe() {
- let e = (0, F.useContext)(YW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gye, {
+function fbe() {
+ let e = (0, F.useContext)(KW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Jye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var GW = () => pu, ube = () => mu;
-function dbe() {
- let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, ube), n = (0, F.useSyncExternalStore)(Cu, GW);
+var HW = () => pu, pbe = () => mu;
+function mbe() {
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, pbe), n = (0, F.useSyncExternalStore)(Cu, HW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54286,8 +54286,8 @@ function dbe() {
e
]), null;
}
-function KW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Cu, GW), r = (0, F.useRef)(void 0);
+function UW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Cu, HW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
let { claimed: e } = Np.navigation;
r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
@@ -54306,11 +54306,11 @@ function KW(e, t = !1) {
}));
}, [n]);
}
-function fbe() {
- let e = (0, F.useContext)(YW), t = (0, F.useRef)(e);
+function hbe() {
+ let e = (0, F.useContext)(KW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), KW((t) => {
+ }, [e]), UW((t) => {
let n = Np.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
e && a && (Gf(), t || Kf(Np.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
@@ -54319,8 +54319,8 @@ function fbe() {
});
}, []), null;
}
-function pbe({ path: e }) {
- JW();
+function gbe({ path: e }) {
+ GW();
let { location: t, seq: n, action: r } = Np.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
@@ -54332,24 +54332,24 @@ function pbe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(fbe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(hbe, {}, `${e} ${o.current.seq}`);
}
-function mbe() {
- let e = (0, F.useContext)(YW);
- return KW(() => {
+function _be() {
+ let e = (0, F.useContext)(KW);
+ return UW(() => {
e?.follow?.ground();
}), null;
}
-function hbe() {
- return /* @__PURE__ */ (0, I.jsx)(mbe, {}, JW());
+function vbe() {
+ return /* @__PURE__ */ (0, I.jsx)(_be, {}, GW());
}
// src/react/router/router.tsx
-var qW = (0, F.createContext)(0), JW = () => (0, F.useContext)(qW), YW = (0, F.createContext)(null);
-function gbe({ children: e }) {
+var WW = (0, F.createContext)(0), GW = () => (0, F.useContext)(WW), KW = (0, F.createContext)(null);
+function ybe({ children: e }) {
let [t, n] = (0, F.useState)(() => Np.navigation);
return (0, F.useLayoutEffect)(() => (n(Np.navigation), Np.listen((e) => {
(0, Rt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(WW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Tf, {
location: t.location,
@@ -54359,34 +54359,34 @@ function gbe({ children: e }) {
})
});
}
-function _be({ target: e }) {
+function bbe({ target: e }) {
let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function vbe(e, t, n) {
+function xbe(e, t, n) {
let r = new URL(e, window.location.href);
B6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function ybe() {
- let e = (0, F.useContext)(YW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
+function Sbe() {
+ let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(gp()), _p((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && vbe(t, e, r.current);
+ e && r.current && xbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_be, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(bbe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Cbe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(xbe, {
+ children: /* @__PURE__ */ (0, I.jsx)(wbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var bbe = class extends F.Component {
+var Cbe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -54397,12 +54397,12 @@ var bbe = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, xbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return e8(e.path) ? (0, Rt.createPortal)(oLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, wbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return e8(e.path) ? (0, Rt.createPortal)(lLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function Sbe({ children: e }) {
+function Tbe({ children: e }) {
let t = ef();
- JW();
+ GW();
let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Ef, {
@@ -54412,7 +54412,7 @@ function Sbe({ children: e }) {
path: e,
element: t.element
}, e)),
- Object.entries(nLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(aLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
@@ -54432,13 +54432,13 @@ function Sbe({ children: e }) {
path: e,
element: q6["/"].element
}, e)),
- Object.entries(rLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(oLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(hbe, {}) : q6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(vbe, {}) : q6["/"].element
}, e)),
jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
@@ -54454,7 +54454,7 @@ function Sbe({ children: e }) {
location: r ?? t,
children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(pbe, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(gbe, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
@@ -54462,38 +54462,38 @@ function Sbe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(hye, {})
+ element: /* @__PURE__ */ (0, I.jsx)(vye, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function Cbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(VV, { children: [n, /* @__PURE__ */ (0, I.jsx)(YW.Provider, {
+function Ebe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(RV, { children: [n, /* @__PURE__ */ (0, I.jsx)(KW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(gbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(ybe, {}),
- /* @__PURE__ */ (0, I.jsx)(lbe, {}),
- /* @__PURE__ */ (0, I.jsx)(dbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(jve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(mye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(uye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(Sbe, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(ybe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(Sbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(fbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(mbe, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Pve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Rve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(_ye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(pye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Tbe, { children: e })
] })
})] });
}
-var wbe = { onCaughtError: (e) => {
+var Dbe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, XW = {
+} }, qW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function ZW(e, t = "", n = "") {
+function JW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54505,14 +54505,14 @@ function ZW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function QW(e, t) {
+function YW(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function Tbe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(YW), a = mH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function Obe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(KW), a = dH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -54541,7 +54541,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54555,7 +54555,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54563,7 +54563,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54575,20 +54575,20 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(eV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(zU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(XW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: Object.entries(qW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54599,7 +54599,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54607,7 +54607,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54644,9 +54644,9 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(RH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54664,7 +54664,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: a.error
}) : null
@@ -54679,7 +54679,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...mV(a.busy === "remove"),
+ ...dV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -54691,13 +54691,13 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...mV(a.busy === "save"),
+ ...dV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...mV(a.busy === "preview"),
+ ...dV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54710,7 +54710,7 @@ function Tbe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function Ebe(e, t) {
+function kbe(e, t) {
(0, F.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -54733,34 +54733,34 @@ function Ebe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function $W() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(Dbe, {}) : null;
+function XW() {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Abe, {}) : null;
}
-function Dbe() {
- let e = ef(), t = (0, F.useContext)(YW);
+function Abe() {
+ let e = ef(), t = (0, F.useContext)(KW);
if (!jn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+ return /* @__PURE__ */ (0, I.jsx)(rL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: jB,
- onClick: () => t?.navigate(QW(e, r ? {
+ icon: OB,
+ onClick: () => t?.navigate(YW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Obe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(kbe, {
+function jbe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Mbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function kbe({ children: e, enabled: t }) {
+function Mbe({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -54780,7 +54780,7 @@ function kbe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(eG, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(ZW, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54788,14 +54788,14 @@ function kbe({ children: e, enabled: t }) {
]
});
}
-function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = ef(), i = (0, F.useContext)(YW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = ef(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Ebe(o, e);
+ kbe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...ZW(s, c),
+ ...JW(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -54809,11 +54809,11 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(QW(r, {
+ d(!1), i.navigate(YW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(jbe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Pbe, {
scope: s,
selected: c,
current: _,
@@ -54830,21 +54830,21 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(rL, {
"aria-label": "打开文件夹目录",
- icon: Uge,
+ icon: Kge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(d_e, {
+ /* @__PURE__ */ (0, I.jsxs)(m_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(kV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(EV, {
current: !c,
onClick: () => g(""),
- icon: jB,
+ icon: OB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(kV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(EV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54854,15 +54854,15 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(oL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(rL, {
"aria-label": "设置目录用途",
- icon: Age,
+ icon: Nge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54874,7 +54874,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54886,14 +54886,14 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(RV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(QW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(YW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${XW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${qW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54903,13 +54903,13 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Abe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Nbe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(sV, {
+ /* @__PURE__ */ (0, I.jsxs)(iV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54919,7 +54919,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54928,7 +54928,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Tbe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Obe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54936,7 +54936,7 @@ function eG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Abe({ nodes: e, go: t }) {
+function Nbe({ nodes: e, go: t }) {
let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -54947,7 +54947,7 @@ function Abe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jB,
+ leadingIcon: OB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54964,28 +54964,28 @@ function Abe({ nodes: e, go: t }) {
}) : null]
});
}
-function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(ZW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...ZW(e, "", u),
+function Pbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Ft(JW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
+ ...JW(e, "", u),
enabled: !!u.trim()
- }), f = zV();
+ }), f = IV();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let p = [...o].map(String), m = Nt({ queries: p.map((t) => ZW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => JW(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(PV, {
+ return /* @__PURE__ */ (0, I.jsx)(jV, {
id: e.id,
label: e.name,
- icon: jB,
- expandedIcon: NB,
+ icon: OB,
+ expandedIcon: AB,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(PV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(jV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -55001,15 +55001,15 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: GB,
+ leadingIcon: HB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -55044,20 +55044,20 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: jB,
+ leadingIcon: OB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: GB,
+ icon: HB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -55066,7 +55066,7 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(m_e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(__e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55074,11 +55074,11 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: jB,
+ icon: OB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55091,63 +55091,63 @@ function jbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var tG = "peach.catalog-view.v1", nG = /* @__PURE__ */ new Set(), rG = "cards";
-function iG() {
+var QW = "peach.catalog-view.v1", $W = /* @__PURE__ */ new Set(), eG = "cards";
+function tG() {
try {
- return localStorage.getItem(tG) === "list" ? "list" : "cards";
+ return localStorage.getItem(QW) === "list" ? "list" : "cards";
} catch {
- return rG;
+ return eG;
}
}
-function Mbe(e) {
- rG = e === "list" ? "list" : "cards";
+function Fbe(e) {
+ eG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(tG, rG);
+ localStorage.setItem(QW, eG);
} catch {}
- nG.forEach((e) => e());
+ $W.forEach((e) => e());
}
-function Nbe(e) {
- nG.add(e);
+function Ibe(e) {
+ $W.add(e);
let t = (t) => {
- (t.key === tG || t.key === null) && e();
+ (t.key === QW || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- nG.delete(e), removeEventListener("storage", t);
+ $W.delete(e), removeEventListener("storage", t);
};
}
-var aG = () => (0, F.useSyncExternalStore)(Nbe, iG, () => "cards");
+var nG = () => (0, F.useSyncExternalStore)(Ibe, tG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function oG() {
- let e = aG();
- return /* @__PURE__ */ (0, I.jsxs)(jz, {
+function rG() {
+ let e = nG();
+ return /* @__PURE__ */ (0, I.jsxs)(Oz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Mbe,
+ onChange: Fbe,
"data-entity-layout": "",
- className: aU,
- children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: nU,
+ children: [/* @__PURE__ */ (0, I.jsx)(kz, {
value: "cards",
"aria-label": "卡片",
- className: oU,
+ className: rU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(LB, {
+ children: /* @__PURE__ */ (0, I.jsx)(PB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Mz, {
+ }), /* @__PURE__ */ (0, I.jsx)(kz, {
value: "list",
"aria-label": "列表",
- className: oU,
+ className: rU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(zge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Hge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55156,8 +55156,8 @@ function oG() {
});
}
// src/react/components/icon-swap.tsx
-function sG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = EC();
+function iG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = TC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55173,114 +55173,114 @@ function sG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function cG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(sG, {
- a: uge,
- b: lge,
+function aG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: pge,
+ b: fge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var lG = (e) => typeof e == "string" ? e : "", uG = (e) => e.aliases;
-function dG(e, t = "") {
+var oG = (e) => typeof e == "string" ? e : "", sG = (e) => e.aliases;
+function cG(e, t = "") {
let n = Ji(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function fG(e, t = "") {
+function lG(e, t = "") {
let n = z(si(t || e)), r = Ji(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var pG = (e) => lG(e.title).trim() || "未命名内容", mG = (e, t) => oi(e, uG(t));
-function hG(e) {
+var uG = (e) => oG(e.title).trim() || "未命名内容", dG = (e, t) => oi(e, sG(t));
+function fG(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = lG(n.entity_name);
+ let n = t[0], r = oG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function gG(e, t) {
+function pG(e, t) {
let { src: n, fallback: r } = ci(e), i = si(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function _G(e, t, n) {
- let r = uG(n), i = e.credit, a = i?.poster;
+function mG(e, t, n) {
+ let r = sG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = oi(t, r);
return {
- author: n || lG(e.author) || lG(e.source_label) || "创作者未取得",
- avatar: gG(t, n),
+ author: n || oG(e.author) || oG(e.source_label) || "创作者未取得",
+ avatar: pG(t, n),
credited: "",
- entityName: hG(t)
+ entityName: fG(t)
};
}
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 && oi(c, r) || a;
return {
author: l,
- avatar: gG(c, l),
+ avatar: pG(c, l),
credited: i.credited || "",
- entityName: hG(c)
+ entityName: fG(c)
};
}
-function vG(e, t = e.primary) {
+function hG(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 = lG(e.primary.version);
+ let i = oG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = lG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = oG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function yG(e, t = e.primary) {
+function gG(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]) => dG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => cG(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function bG(e, t) {
- let n = lG(e.media_error);
+function _G(e, t) {
+ let n = oG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Pbe = 864e5, Fbe = (e, t) => {
+var Lbe = 864e5, Rbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Pbe;
+ return Number.isFinite(n) && n - t > Lbe;
};
-function xG(e, t) {
- let n = lG(e.published_at);
+function vG(e, t) {
+ let n = oG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Cr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: Fbe(n, t) ? " · 晚于现在" : ""
+ suffix: Rbe(n, t) ? " · 晚于现在" : ""
};
}
-function SG(e, t = Date.now()) {
- let n = xG(e, t);
+function yG(e, t = Date.now()) {
+ let n = vG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function CG(e, t = Date.now()) {
- let n = xG(e, t);
+function bG(e, t = Date.now()) {
+ let n = vG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var wG = /* @__PURE__ */ new Set(), TG = [], EG = null;
-function DG() {
- if (EG = null, !TG.length) return;
- let e = TG.splice(0, 200);
+var xG = /* @__PURE__ */ new Set(), SG = [], CG = null;
+function wG() {
+ if (CG = null, !SG.length) return;
+ let e = SG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), TG.length && (EG = setTimeout(DG, 800));
+ }).catch(() => {}), SG.length && (CG = setTimeout(wG, 800));
}
-function Ibe(e, t, n, r) {
+function zbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- wG.has(i) || (wG.add(i), TG.push(t === null ? {
+ xG.has(i) || (xG.add(i), SG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55289,25 +55289,25 @@ function Ibe(e, t, n, r) {
width: n,
height: r,
media: t
- }), EG ||= setTimeout(DG, 800));
+ }), CG ||= setTimeout(wG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Lbe = (e) => e === "videos", OG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Bbe = (e) => e === "videos", TG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Rbe = fV("shuffle"), zbe = fV("arrow-up"), Bbe = fV("arrow-down");
-function Vbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Lbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Vbe = lV("shuffle"), Hbe = lV("arrow-up"), Ube = lV("arrow-down");
+function Wbe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Bbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = gL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = gL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = gL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = pL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = pL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = pL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }), /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55336,19 +55336,19 @@ function Vbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Gbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Jbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ube, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Kbe, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(OG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(TG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55369,11 +55369,11 @@ function Vbe(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55382,17 +55382,17 @@ function Vbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Wbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(qbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Kbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Ybe, { ...e })
})] });
}
-var Hbe = [[
+var Gbe = [[
"videos",
"视频",
"play",
@@ -55403,7 +55403,7 @@ var Hbe = [[
"pics",
"image"
]];
-function Ube({ head: e, row: t, glide: n, onMedia: r }) {
+function Kbe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55411,7 +55411,7 @@ function Ube({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Hbe.map(([t, i, a, o]) => {
+ children: Gbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55429,7 +55429,7 @@ function Ube({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Wbe({ head: e, actions: t }) {
+function qbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55439,10 +55439,10 @@ function Wbe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: dG(n) }
+ dangerouslySetInnerHTML: { __html: cG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(OG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55455,7 +55455,7 @@ function Wbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function Gbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Jbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55503,7 +55503,7 @@ function Gbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function kG({ items: e, hidden: t, actions: n }) {
+function EG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55523,7 +55523,7 @@ function kG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Kbe(e) {
+function Ybe(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -55535,30 +55535,30 @@ function Kbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(qbe, {
+ /* @__PURE__ */ (0, I.jsx)(Xbe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Jbe, {
+ /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Zbe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)($be, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Ybe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
head: e.online,
actions: o
}) : null
] });
}
-function qbe({ text: e, busy: t }) {
+function Xbe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55569,22 +55569,22 @@ function qbe({ text: e, busy: t }) {
})
});
}
-function AG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+function DG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(Oz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: aU,
+ className: nU,
children: r.map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: oU,
+ className: rU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55594,38 +55594,38 @@ function AG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function jG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(uL, {
+function OG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(sL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Rbe,
+ icon: Vbe,
onPress: e
});
}
-function Jbe({ head: e, actions: t }) {
- let n = aG();
+function Zbe({ head: e, actions: t }) {
+ let n = nG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)($W, {}),
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(rG, {}),
+ /* @__PURE__ */ (0, I.jsx)(XW, {}),
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function MG({ sorts: e, onSort: t }) {
+function kG({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -55633,20 +55633,20 @@ function MG({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(sG, {
- a: zbe,
- b: Bbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: Hbe,
+ b: Ube,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Ybe({ head: e, actions: t }) {
+function Qbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55666,27 +55666,27 @@ function Ybe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function Xbe({ head: e, actions: t, helpers: n }) {
+function $be({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(jG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(OG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55701,8 +55701,8 @@ function Xbe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var Zbe = "peach.catalog.tiers.v1";
-function NG() {
+var exe = "peach.catalog.tiers.v1";
+function AG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55716,40 +55716,40 @@ function NG() {
};
}
}
-function Qbe(e) {
+function txe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Zbe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(exe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function $be(e) {
- let t = !e.tiers, n = oxe(e.comboHost);
+function nxe(e) {
+ let t = !e.tiers, n = lxe(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(EG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(nxe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(exe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(axe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(rxe, { ...e })
]
});
}
-function exe(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = gL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function rxe(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = pL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let d = !e.tiers, f = FG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = MG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55773,7 +55773,7 @@ function exe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
ec(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55817,23 +55817,23 @@ function exe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(txe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(ixe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(sxe, { ...e })
});
}
-function txe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(fL, {
+function ixe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(tL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55842,15 +55842,15 @@ function txe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function nxe(e) {
- rL();
+function axe(e) {
+ eL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = FG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = FG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? NG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = MG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = MG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? AG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || Qbe({
+ i || txe({
performers: f,
studios: p
});
@@ -55871,7 +55871,7 @@ function nxe(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55882,7 +55882,7 @@ function nxe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55891,13 +55891,13 @@ function nxe(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(PG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(rxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(tL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55905,7 +55905,7 @@ function nxe(e) {
}) : null]
});
}
-function rxe({ studio: e }) {
+function oxe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55923,7 +55923,7 @@ function rxe({ studio: e }) {
}) : e.fallback
});
}
-function PG({ kind: e }) {
+function jG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55939,43 +55939,43 @@ function PG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function ixe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = aG(), [o, s] = (0, F.useState)(!1);
+function sxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = nG(), [o, s] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(axe, { count: e }), /* @__PURE__ */ (0, I.jsx)(DV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(AG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(oG, {}),
- /* @__PURE__ */ (0, I.jsx)($W, {}),
- /* @__PURE__ */ (0, I.jsx)(MG, {
+ /* @__PURE__ */ (0, I.jsx)(rG, {}),
+ /* @__PURE__ */ (0, I.jsx)(XW, {}),
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function axe({ count: e }) {
+function cxe({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55986,7 +55986,7 @@ function axe({ count: e }) {
})
});
}
-function oxe(e) {
+function lxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -55996,7 +55996,7 @@ function oxe(e) {
};
}, [e]), t;
}
-function FG(e, t, n, r, i) {
+function MG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56039,8 +56039,8 @@ function FG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var IG = "100% 0px";
-function sxe(e, t) {
+var NG = "100% 0px";
+function uxe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && pc(a.current);
@@ -56066,7 +56066,7 @@ function sxe(e, t) {
fading: n === "fade"
};
}
-function LG({ message: e, onRetry: t }) {
+function PG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -56079,7 +56079,7 @@ function LG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function RG({ pending: e, skeletonHtml: t, children: n }) {
+function FG({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
@@ -56103,25 +56103,25 @@ function RG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function zG({ name: e }) {
+function IG({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function BG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
+function LG({ name: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
}
-function VG({ value: e, label: t, title: n }) {
+function RG({ value: e, label: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("time", {
"data-media-release": "",
dateTime: e,
title: n || t,
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "calendar" }), t]
});
}
-function HG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function zG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56139,12 +56139,12 @@ function HG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var cxe = 3;
-function lxe(e, t, n = cxe) {
+var dxe = 3;
+function fxe(e, t, n = dxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function UG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = lxe(e, t);
+function BG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = fxe(e, t);
if (!a) return null;
let o = [e.join(" · "), t.length ? `共同标签:${t.join("、")}` : ""].filter(Boolean).join("\n");
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
@@ -56159,15 +56159,15 @@ function UG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsx)(xz, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-pre-line break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -56176,63 +56176,63 @@ function UG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var WG = "peach.library-colors.v1", GG = null, KG = /* @__PURE__ */ new Set();
-function uxe() {
+var VG = "peach.library-colors.v1", HG = null, UG = /* @__PURE__ */ new Set();
+function pxe() {
try {
- let e = JSON.parse(localStorage.getItem(WG) || "{}");
+ let e = JSON.parse(localStorage.getItem(VG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function qG(e) {
- GG = e;
+function WG(e) {
+ HG = e;
try {
- localStorage.setItem(WG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(VG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- KG.forEach((t) => t(e));
+ UG.forEach((t) => t(e));
}
-function JG() {
- return GG;
+function GG() {
+ return HG;
}
-function dxe(e) {
- return KG.add(e), () => {
- KG.delete(e);
+function mxe(e) {
+ return UG.add(e), () => {
+ UG.delete(e);
};
}
// src/react/components/library-tint.ts
-var YG = /* @__PURE__ */ new Map(), XG = !1, ZG = /* @__PURE__ */ new Set();
-function fxe(e) {
+var KG = /* @__PURE__ */ new Map(), qG = !1, JG = /* @__PURE__ */ new Set();
+function hxe(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
return t.remove(), n;
}
-function QG(e) {
- YG = e;
+function YG(e) {
+ KG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...YG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${fxe(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...KG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${hxe(e.color)}}`).join("\n");
}
-function $G(e) {
- QG(e), ZG.forEach((e) => e());
+function XG(e) {
+ YG(e), JG.forEach((e) => e());
}
-var eK = (e) => new Map(e.map((e) => [e.id, {
+var ZG = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: _s[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), tK = !1;
-function pxe() {
- if (tK) return;
- tK = !0, dxe((e) => $G(eK(e)));
- let e = JG();
+}])), QG = !1;
+function gxe() {
+ if (QG) return;
+ QG = !0, mxe((e) => XG(ZG(e)));
+ let e = GG();
if (e) {
- QG(eK(e));
+ YG(ZG(e));
return;
}
- let t = Object.entries(uxe()).filter(([, e]) => e);
- t.length && QG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(pxe()).filter(([, e]) => e);
+ t.length && YG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56240,56 +56240,56 @@ function pxe() {
color: t
}])));
}
-function mxe() {
- XG || JG() || (XG = !0, B("/api/libraries").then((e) => qG(e.libraries || [])).catch(() => {
- XG = !1;
+function _xe() {
+ qG || GG() || (qG = !0, B("/api/libraries").then((e) => WG(e.libraries || [])).catch(() => {
+ qG = !1;
}));
}
-function hxe(e, t) {
- let n = YG.get(e) ?? {
+function vxe(e, t) {
+ let n = KG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- $G(new Map([...YG, [e, {
+ XG(new Map([...KG, [e, {
...n,
color: t
}]]));
}
-function gxe(e) {
- return ZG.add(e), () => {
- ZG.delete(e);
+function yxe(e) {
+ return JG.add(e), () => {
+ JG.delete(e);
};
}
-function nK({ names: e = !1 } = {}) {
- return pxe(), e && mxe(), (0, F.useSyncExternalStore)(gxe, () => YG, () => YG);
+function $G({ names: e = !1 } = {}) {
+ return gxe(), e && _xe(), (0, F.useSyncExternalStore)(yxe, () => KG, () => KG);
}
// src/react/components/row-click.ts
-var _xe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function rK(e, t) {
+var bxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function eK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(_xe);
+ let r = n.closest(bxe);
return !r || !t.contains(r) || r === t;
}
-function iK(e) {
+function tK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var aK = 9 / 16, oK = "未命名视频", vxe = {
+var nK = 9 / 16, rK = "未命名视频", xxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, yxe = {
+}, Sxe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function bxe(e) {
+function Cxe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56317,16 +56317,16 @@ function bxe(e) {
label: "尚未探查"
};
}
-function sK({ item: e }) {
+function iK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && yxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Sxe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function cK({ item: e, actions: t }) {
+function aK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56345,10 +56345,10 @@ function cK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function lK(e, t, n) {
- return t === "short" ? aK : bM(n);
+function oK(e, t, n) {
+ return t === "short" ? nK : _M(n);
}
-function uK(e) {
+function sK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -56380,7 +56380,7 @@ function uK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56390,16 +56390,16 @@ function uK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n })
})
};
}
-function xxe() {
+function wxe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56418,7 +56418,7 @@ function xxe() {
})]
});
}
-function Sxe({ item: e, actions: t, on: n, onChange: r }) {
+function Txe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56433,22 +56433,22 @@ function Sxe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function dK(e, t) {
+function cK(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- rL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = nK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
+function Exe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ eL();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = $G(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = lK(e, t, n), w = S ? n.size : "small", T = C === aK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || oK, A = o.titleHtml(e, O).trim() || z(oK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : bxe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = uK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = oK(e, t, n), w = S ? n.size : "small", T = C === nK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || rK, A = o.titleHtml(e, O).trim() || z(rK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Cxe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = sK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56475,10 +56475,10 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === aK ? "" : void 0,
+ "data-pic-portrait": C === nK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: E,
identity: D,
relayout: (e) => El(e, w)
@@ -56492,11 +56492,11 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56512,7 +56512,7 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-copy-key": ee ? `media.duration.${ee.key}` : void 0,
children: ee ? ee.label : Jn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(cK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(aK, {
item: e,
actions: s
}) : null,
@@ -56528,22 +56528,22 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(xxe, {}),
+ /* @__PURE__ */ (0, I.jsx)(wxe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(Sxe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Txe, {
item: e,
actions: s,
on: p,
@@ -56558,27 +56558,27 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), dK(u.current, -a);
+ e.stopPropagation(), cK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), dK(u.current, a);
+ e.stopPropagation(), cK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "expand" })
})
]
})
@@ -56598,7 +56598,7 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: iK,
+ onMouseDown: tK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56636,33 +56636,33 @@ function Cxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-facts": "",
- children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(RG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(UG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(BG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(HG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(zG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(iK, { item: e })
]
})]
})
]
});
}
-function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : vxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Dxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : xxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56674,14 +56674,14 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: iK,
+ onMouseDown: tK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56693,13 +56693,13 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(cK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(aK, {
item: e,
actions: i
})
@@ -56710,7 +56710,7 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56738,29 +56738,29 @@ function wxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(sK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(iK, { item: e })
]
})]
})]
});
}
-function Txe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(wxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Cxe, { ...e });
+function Oxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Dxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Exe, { ...e });
}
-var fK = (0, F.memo)(Txe), Exe = 1100, Dxe = 340, Oxe = 5e3;
-function kxe(e, t, n) {
+var lK = (0, F.memo)(Oxe), kxe = 1100, Axe = 340, jxe = 5e3;
+function Mxe(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, Oxe);
+ }, s = () => o(!1), c = setTimeout(s, jxe);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
});
}
-function pK({ load: e, canFlip: t, referrerPolicy: n }) {
+function uK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -56802,11 +56802,11 @@ function pK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => kxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => Mxe(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, Exe);
+ p(), e.cycle = setInterval(p, kxe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56815,7 +56815,7 @@ function pK({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Dxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Axe, () => {
e.armed = null, m();
});
},
@@ -56825,8 +56825,8 @@ function pK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var mK = fV("play");
-function Axe({ src: e }) {
+var dK = lV("play");
+function Nxe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56839,8 +56839,8 @@ function Axe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var hK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function jxe({ faces: e, fallback: t, onOpenEntity: n }) {
+var fK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
+function Pxe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -56848,18 +56848,18 @@ function jxe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${hK} cursor-pointer outline-none`,
+ className: `${fK} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: _o(e.name, e, Za(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${hK} mt-0.5`,
+ className: `${fK} mt-0.5`,
children: t
});
}
-function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = pK({
+function pK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = uK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56886,11 +56886,11 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Axe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Nxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56920,7 +56920,7 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(mK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56933,8 +56933,8 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(mK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(jxe, {
+ children: /* @__PURE__ */ (0, I.jsx)(dK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Pxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56957,20 +56957,20 @@ function gK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var _K = {
+var mK = {
x: 16,
y: 16,
scale: 1
-}, Mxe = .65, Nxe = 1.6, vK = (e) => Math.min(Nxe, Math.max(Mxe, e)), yK = (e, t, n, r) => ({
+}, Fxe = .65, Ixe = 1.6, hK = (e) => Math.min(Ixe, Math.max(Fxe, e)), gK = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function Pxe(e, t, n) {
+function Lxe(e, t, n) {
let r = 120 / t.scale, i = -e.x / e.scale, a = -e.y / e.scale, o = -t.x / t.scale - r, s = -t.y / t.scale - r;
return i >= o && a >= s && i + n.width / e.scale <= o + n.width / t.scale + r * 2 && a + n.height / e.scale <= s + n.height / t.scale + r * 2;
}
-function Fxe(e, t, n = _K, r = !1) {
+function Rxe(e, t, n = mK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -57002,12 +57002,12 @@ function Fxe(e, t, n = _K, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = tbe(e, o.current, ebe(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = ibe(e, o.current, rbe(r), c && !f && !n), h = s.current;
s.current = p;
let g = window.devicePixelRatio || 1, _ = a.current;
_ && (_.style.transform = `translate3d(${Math.round(p.x * g) / g}px, ${Math.round(p.y * g) / g}px, 0) scale(${p.scale})`, (p.x !== h.x || p.y !== h.y || p.scale !== h.scale) && (_.style.willChange = "transform", m.current !== null && clearTimeout(m.current), m.current = setTimeout(() => {
m.current = null, _.style.willChange = "";
- }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !Pxe(p, u.current, o.current)) && (u.current = p, l({
+ }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !Lxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57037,7 +57037,7 @@ function Fxe(e, t, n = _K, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = yK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = gK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
}
let a = Math.hypot(t.x, t.y) < .5, o = a ? t.x : t.x * n, c = a ? t.y : t.y * n;
y({
@@ -57050,13 +57050,13 @@ function Fxe(e, t, n = _K, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = yK(n, vK(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = gK(n, hK(n.scale * t.factor), t.x, t.y)), e && (n = {
...n,
x: n.x + e.x,
y: n.y + e.y
}), y(n);
} else t && Object.assign(n, {
- scale: vK((n.scale || s.current.scale) * t.factor),
+ scale: hK((n.scale || s.current.scale) * t.factor),
anchorX: t.x,
anchorY: t.y
}), e && (n.x += e.x, n.y += e.y), f.current === null && (n.scale || n.x || n.y) && (n.previous = 0, f.current = requestAnimationFrame(x));
@@ -57098,7 +57098,7 @@ function Fxe(e, t, n = _K, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || b() ? y(a, !0, n) : p.current = dS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = uS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57123,7 +57123,7 @@ function Fxe(e, t, n = _K, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ..._K }, !0);
+ v(), y({ ...mK }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57184,16 +57184,16 @@ function Fxe(e, t, n = _K, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Ixe = {
+var zxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Lxe = {
+}, Bxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Rxe(e, t, n) {
+function Vxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57234,15 +57234,15 @@ function Rxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = eS(), x = Rxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Hxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = $x(), x = Vxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(xn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(fS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(dS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57252,7 +57252,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Lxe,
+ transition: b ? { duration: 0 } : Bxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57260,7 +57260,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...mV(C),
+ ...dV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57310,7 +57310,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...mV(d),
+ ...dV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57356,7 +57356,7 @@ function zxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function bK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function _K({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -57392,7 +57392,7 @@ function bK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function xK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function vK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -57415,7 +57415,7 @@ function xK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Bxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Uxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57424,28 +57424,28 @@ var Bxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Vxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Wxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(bK, {
+ children: /* @__PURE__ */ (0, I.jsx)(_K, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(xK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(vK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? LP(e.part_label) : "",
+ e.part_label ? PP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(KU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(UU, { artwork: To(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? LP(e.part_label) : "",
+ e.part_label ? PP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57453,7 +57453,7 @@ function Vxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function Hxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Gxe(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -57468,17 +57468,17 @@ function Hxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function SK(e = `${location.pathname}${location.search}`) {
+function yK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of FW) t.delete(e);
+ for (let e of MW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function CK() {
+function bK() {
let e = new URLSearchParams(Np.navigation.location.search).get("returnTo") || "/";
Np.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = To(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@ -57491,7 +57491,7 @@ var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(KU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && fl(e, r);
@@ -57499,31 +57499,31 @@ var wK = /* @__PURE__ */ new Map(), TK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function Kxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
- let e = wK.get(f);
+ let e = xK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new nbe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, F.useState)(() => m?.exploration || new abe()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Ft({
- queryKey: gP(M || {
+ queryKey: pP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => TP(M, {
+ queryFn: ({ signal: e }) => SP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === OP(N, O || w?.id || null)) || w, P = Fxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === TP(N, O || w?.id || null)) || w, P = Rxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = eS(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = $x(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57538,7 +57538,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return e.className = "peach-react", e;
});
(0, F.useLayoutEffect)(() => {
- document.body.append(Ce), IW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), NW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
let [we, Te] = (0, F.useState)(() => Bf(Np.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
Ae.current = !!e.length;
@@ -57557,20 +57557,20 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (wK.delete(f), wK.set(f, {
+ Ae.current && (xK.delete(f), xK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), wK.size > 8 && wK.delete(wK.keys().next().value));
+ }), xK.size > 8 && xK.delete(xK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = PW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
+ let Ne = jW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
...e,
index: -1
})) : t ? Ne : h.assign(Ne, e.length, n).map((t) => t.index < e.length || w && t.key === E ? t : {
...t,
index: -1
- }), Fe = w && (t ? MW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? NW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? kW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? AW(e.length, t, Fe) : /* @__PURE__ */ new Map();
Fe && !Pe.some((e) => e.key === Fe.key) && Pe.push(Fe);
let Le = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -57611,7 +57611,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Le(!1), Oe.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(NW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(AW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Ve = () => {
te && y.current && (Me(), Le(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, He = async (e = te) => {
@@ -57633,7 +57633,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = kP(N || null, oe || 0);
+ let e = EP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57655,7 +57655,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (P.view.size.width / 2 - r.x) / r.scale,
y: (P.view.size.height / 2 - r.y) / r.scale
- }, o = t ? $ye(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? nbe(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57747,7 +57747,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(TK, {
+ children: /* @__PURE__ */ (0, I.jsx)(SK, {
item: w,
image: Ee,
big: !0
@@ -57755,7 +57755,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(TK, {
+ children: /* @__PURE__ */ (0, I.jsx)(SK, {
item: w,
image: Ee,
big: !0
@@ -57784,7 +57784,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Qe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ze(Qe).startsWith(Qe.code) ? Ze(Qe).slice(Qe.code.length).trim() : Ze(Qe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Qe.performers?.join(" · ") || Qe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? LP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? PP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57801,7 +57801,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57811,7 +57811,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(zxe, {
+ /* @__PURE__ */ (0, I.jsx)(Hxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57833,7 +57833,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Vxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Wxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57849,7 +57849,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: we,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : CK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : bK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57860,7 +57860,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: CK,
+ onClick: bK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57869,7 +57869,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(jG, {
+ children: /* @__PURE__ */ (0, I.jsx)(OG, {
busy: r,
onPress: () => void Ye()
})
@@ -57935,7 +57935,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => Np.push(SK()),
+ onClick: () => Np.push(yK()),
children: "清除筛选"
})]
}) : null
@@ -57991,7 +57991,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = !!w && t.key === E, r = n ? w : e[t.index], i = Ie.get(t.key) || t, a = !re && !n, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(fS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(dS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -58012,7 +58012,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !n && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: Ixe,
+ layout: zxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58045,7 +58045,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!n && ["Enter", " "].includes(e.key) && (e.preventDefault(), Be(r, t, !1));
},
children: n ? $e : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(TK, {
+ /* @__PURE__ */ (0, I.jsx)(SK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58071,7 +58071,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(r.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(fS.span, {
+ /* @__PURE__ */ (0, I.jsx)(dS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58083,7 +58083,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -58113,20 +58113,20 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...mV(r),
+ ...dV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(lV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...mV(r),
+ ...dV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58136,7 +58136,7 @@ function Uxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var EK = [
+var CK = [
"loc",
"creator",
"performer",
@@ -58155,19 +58155,19 @@ var EK = [
"jav",
"thumb"
];
-function Wxe(e = typeof location > "u" ? "/" : location.href) {
+function qxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...EK,
+ ...CK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Gxe(e, t) {
+async function Jxe(e, t) {
let n = new URLSearchParams();
- for (let t of EK) e[t] && n.set(t, e[t]);
+ for (let t of CK) 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 || [],
@@ -58178,9 +58178,9 @@ async function Gxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function DK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function wK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Wxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(qxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58198,12 +58198,12 @@ function DK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Kxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || DK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${SK()}">清除筛选</a>` });
+function Yxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || wK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${yK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function OK({ label: e, maintenance: t = !1, children: n }) {
- let r = gH("hover");
+function TK({ label: e, maintenance: t = !1, children: n }) {
+ let r = pH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58213,13 +58213,13 @@ function OK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function kK({ option: e, metadataOnly: t, onRun: n }) {
+function EK({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(MV, i ? "cursor-not-allowed opacity-50" : NV, "text-body-2-medium"),
+ className: q(kV, i ? "cursor-not-allowed opacity-50" : AV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58230,12 +58230,12 @@ function kK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Xxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await U_e(e, t.signal, a);
+ let o = await K_e(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -58260,7 +58260,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(CH, {
+ children: /* @__PURE__ */ (0, I.jsx)(bH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58268,7 +58268,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(KH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(UH, {
traffic: s,
initial: !0
}) : null,
@@ -58280,7 +58280,7 @@ function qxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);
(0, F.useEffect)(() => () => l.current?.close(), []);
let [p, m] = (0, F.useState)(!1), h = {
@@ -58328,7 +58328,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? mV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? dV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58363,7 +58363,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xxe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58372,11 +58372,11 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(pH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: vB,
+ trailingIcon: hB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58394,7 +58394,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: _B,
+ leadingIcon: mB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58404,27 +58404,27 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(dz, {
+ /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: jV,
- children: /* @__PURE__ */ (0, I.jsxs)(wz, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsxs)(xz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(OK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(TK, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(EK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(OK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(TK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58436,7 +58436,7 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(kK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(EK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58447,48 +58447,48 @@ function AK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function jK(e, t) {
+function OK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !To(e, "small", !1, t).html).map((e) => e.id))];
}
-function MK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Jxe, {
+function kK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Zxe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Jxe({ assetIds: e, onComplete: t, className: n }) {
+function Zxe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: ZV,
- queryFn: ({ signal: e }) => aH(e),
- refetchInterval: (e) => cH(e.state.data, !0)
+ queryKey: JV,
+ queryFn: ({ signal: e }) => nH(e),
+ refetchInterval: (e) => aH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = It({
- mutationFn: (t) => V(XV, {
+ mutationFn: (t) => V(qV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+ a(e.job_id || null), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !eH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !ZV(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || eH(u), f = l.error ? lr(l.error) : r.error ? sH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${eH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || ZV(u), f = l.error ? lr(l.error) : r.error ? iH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${ZV(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(lV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(AK, {
+ children: /* @__PURE__ */ (0, I.jsx)(DK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58499,10 +58499,10 @@ function Jxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58510,31 +58510,31 @@ function Jxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Yxe(e) {
- return Xxe(e) || typeof e == "function" || Zxe(e);
+function Qxe(e) {
+ return $xe(e) || typeof e == "function" || eSe(e);
}
-function Xxe(e) {
+function $xe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Zxe(e) {
+function eSe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function NK(e, t) {
- return e == null ? null : Yxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function AK(e, t) {
+ return e == null ? null : Qxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function Qxe(e) {
+function tSe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? NK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : NK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? AK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : AK(n.cell, t.getContext());
}
- return "header" in e && e.header ? NK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? NK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? AK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? AK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function $xe({ update: e, notify: t, unwatched: n }) {
+function nSe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58651,7 +58651,7 @@ function $xe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function eSe(e, t, n) {
+function rSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58659,38 +58659,38 @@ function eSe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var PK = [], FK = 0, { link: IK, unlink: tSe, propagate: nSe, checkDirty: LK, shallowPropagate: RK } = /* @__PURE__ */ $xe({
+var jK = [], MK = 0, { link: NK, unlink: iSe, propagate: aSe, checkDirty: PK, shallowPropagate: FK } = /* @__PURE__ */ nSe({
update(e) {
return e._update();
},
notify(e) {
- PK[BK++] = e, e.flags &= -3;
+ jK[LK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, UK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, BK(e));
}
-}), zK = 0, BK = 0, VK, HK = 0;
-function rSe(e) {
+}), IK = 0, LK = 0, RK, zK = 0;
+function oSe(e) {
try {
- ++HK, e();
+ ++zK, e();
} finally {
- --HK || WK();
+ --zK || VK();
}
}
-function UK(e) {
+function BK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = tSe(n, e);
+ for (; n !== void 0;) n = iSe(n, e);
}
-function WK() {
- if (!(HK > 0)) {
- for (; zK < BK;) {
- let e = PK[zK];
- PK[zK++] = void 0, e.notify();
+function VK() {
+ if (!(zK > 0)) {
+ for (; IK < LK;) {
+ let e = jK[IK];
+ jK[IK++] = void 0, e.notify();
}
- zK = 0, BK = 0;
+ IK = 0, LK = 0;
}
}
-function iSe(e, t) {
+function sSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58699,53 +58699,53 @@ function iSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return VK !== void 0 && IK(i, VK, FK), i._snapshot;
+ return RK !== void 0 && NK(i, RK, MK), i._snapshot;
},
subscribe(e) {
- let t = eSe(e), n = { current: !1 }, r = aSe(() => {
- i.get(), n.current ? (VK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = rSe(e), n = { current: !1 }, r = cSe(() => {
+ i.get(), n.current ? (RK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = VK, o = t?.compare ?? Object.is;
- if (n) VK = i, ++FK, i.depsTail = void 0;
+ let a = RK, o = t?.compare ?? Object.is;
+ if (n) RK = i, ++MK, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- VK = a, n && (i.flags &= -5), UK(i);
+ RK = a, n && (i.flags &= -5), BK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && LK(i.deps, i)) {
+ if (e & 16 || e & 32 && PK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && RK(e);
+ e !== void 0 && FK(e);
}
} else e & 32 && (i.flags = e & -33);
- return VK !== void 0 && IK(i, VK, FK), i._snapshot;
+ return RK !== void 0 && NK(i, RK, MK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (nSe(e), RK(e), WK());
+ e !== void 0 && (aSe(e), FK(e), VK());
}
}, i;
}
-function aSe(e) {
+function cSe(e) {
let t = () => {
- let t = VK;
- VK = n, ++FK, n.depsTail = void 0, n.flags = 6;
+ let t = RK;
+ RK = n, ++MK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- VK = t, n.flags &= -5, UK(n);
+ RK = t, n.flags &= -5, BK(n);
}
}, n = {
deps: void 0,
@@ -58755,16 +58755,16 @@ function aSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && LK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && PK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, UK(this);
+ this.flags = 0, this.depsTail = void 0, BK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function GK(e, t) {
+function HK(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -58778,17 +58778,17 @@ function GK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = KK(e);
- if (n.length !== KK(t).length) return !1;
+ let n = UK(e);
+ if (n.length !== UK(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function KK(e) {
+function UK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var oSe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = rw();
+var lSe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = nw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58832,33 +58832,33 @@ var oSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), qK = /* @__PURE__ */ o(((e, t) => {
- t.exports = oSe();
-})), sSe = qK();
-function cSe(e, t) {
+})), WK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = lSe();
+})), uSe = WK();
+function dSe(e, t) {
return e === t;
}
-function JK(e, t = (e) => e, n) {
- let r = n?.compare ?? cSe, i = (0, F.useCallback)((t) => {
+function GK(e, t = (e) => e, n) {
+ let r = n?.compare ?? dSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, sSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, uSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function lSe(e) {
- let t = JK(e.source, e.selector, { compare: GK });
+function fSe(e) {
+ let t = GK(e.source, e.selector, { compare: HK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function uSe(e) {
+function pSe(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function dSe(e) {
+function mSe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58888,7 +58888,7 @@ function dSe(e) {
}
};
}
-function fSe(e, t = Object.is) {
+function hSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58901,28 +58901,28 @@ function fSe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function pSe() {
- return dSe({
- createAtom: iSe,
- batch: rSe
+function gSe() {
+ return mSe({
+ createAtom: sSe,
+ batch: oSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function YK(e, t) {
+function KK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function XK(e) {
- if (Array.isArray(e)) return e.map(XK);
+function qK(e) {
+ if (Array.isArray(e)) return e.map(qK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? QK() : {}, r = Object.keys(e);
+ let n = t === null ? YK() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: XK(e[i]),
+ value: qK(e[i]),
writable: !0
});
}
@@ -58930,7 +58930,7 @@ function XK(e) {
}
return e;
}
-function ZK(e, t) {
+function JK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58938,53 +58938,53 @@ function ZK(e, t) {
}
return e;
}
-function QK() {
+function YK() {
return Object.create(null);
}
-function $K(e, t) {
+function XK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function eq(e, t) {
+function ZK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => YK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => KK(n, e));
};
}
-function tq(e) {
+function QK(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function nq(e) {
+function $K(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var mSe = 3;
-function hSe(e, t) {
- return rq(e, t, mSe);
+var _Se = 3;
+function vSe(e, t) {
+ return eq(e, t, _Se);
}
-function rq(e, t, n) {
+function eq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !tq(e) || !tq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = nq(e), i = nq(t);
+ if (n <= 0 || !QK(e) || !QK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = $K(e), i = $K(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !rq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !eq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function iq(e, t, n, r = hSe) {
+function tq(e, t, n, r = vSe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = YK(n, e);
+ let t = KK(n, e);
return r(e, t) ? e : t;
});
}
-function gSe(e) {
+function ySe(e) {
return e instanceof Function;
}
-function _Se(e, t) {
+function bSe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58994,7 +58994,7 @@ function _Se(e, t) {
};
return r(e), n;
}
-var vSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var xSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -59008,23 +59008,23 @@ var vSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function aq(e) {
+function nq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function oq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function rq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return vSe({
+ return xSe({
...a,
...o
});
}
-function sq(e, t = "_") {
+function iq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59032,10 +59032,10 @@ function sq(e, t = "_") {
parentName: n
};
}
-function cq(e, t, n) {
+function aq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = sq(r);
- t[n] = a ? oq({
+ let { fnKey: n, fnName: o } = iq(r);
+ t[n] = a ? rq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59044,15 +59044,15 @@ function cq(e, t, n) {
}) : i;
}
}
-function lq(e, t, n, r) {
+function oq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = sq(i);
+ let { fnKey: r, fnName: s } = iq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = oq({
+ this[i] = rq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59068,17 +59068,17 @@ function lq(e, t, n, r) {
};
}
}
-function uq(e, t, n, ...r) {
+function sq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function ySe(e) {
+function SSe(e) {
return e.row.getValue(e.column.id);
}
-function bSe(e) {
+function CSe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function xSe(e) {
+function wSe(e) {
return {
table: e.table,
column: e.column,
@@ -59089,18 +59089,18 @@ function xSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var SSe = { assignCellPrototype: (e, t) => {
- lq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => ySe(e) },
- cell_renderValue: { fn: (e) => bSe(e) },
+var TSe = { assignCellPrototype: (e, t) => {
+ oq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => SSe(e) },
+ cell_renderValue: { fn: (e) => CSe(e) },
cell_getContext: {
- fn: (e) => xSe(e),
+ fn: (e) => wSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function CSe(e) {
+function ESe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59108,7 +59108,7 @@ function CSe(e) {
}
return e._columnPrototype;
}
-function wSe(e, t, n, r) {
+function DSe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59128,53 +59128,53 @@ function wSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = CSe(e), u = Object.create(l);
+ let l = ESe(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function dq(e) {
+function cq(e) {
return e.getIsVisible?.() ?? !0;
}
-function TSe(e) {
+function OSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function fq(e, t) {
+function lq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function pq(e, t, n, r) {
+function uq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function mq(e, t) {
+function dq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function ESe(e) {
+function kSe(e) {
e.autoResetExpanded?.();
}
-function hq(e) {
+function fq(e) {
e.autoResetPageIndex?.();
}
-function DSe(e) {
+function ASe(e) {
e.autoResetSorting?.();
}
-function OSe(e) {
+function jSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function kSe(e) {
+function MSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function ASe(e) {
+function NSe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return fq(e.table, t);
+ return lq(e.table, t);
}
return [e];
}
-function jSe(e) {
+function PSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59185,53 +59185,53 @@ function jSe(e) {
...e.options.defaultColumn
};
}
-function gq(e, t, n, r = 0) {
+function pq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = wSe(e, o, r, n), c = o;
- s.columns = c.columns ? gq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = DSe(e, o, r, n), c = o;
+ s.columns = c.columns ? pq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function MSe(e) {
- return gq(e, e.options.columns);
+function FSe(e) {
+ return pq(e, e.options.columns);
}
-function NSe(e) {
+function ISe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function PSe(e) {
- let t = QK(), n = e.getAllFlatColumns();
+function LSe(e) {
+ let t = YK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function FSe(e) {
- return fq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function RSe(e) {
+ return lq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function ISe(e) {
- let t = QK(), n = e.getAllLeafColumns();
+function zSe(e) {
+ let t = YK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function LSe(e, t) {
+function BSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var RSe = {
+var VSe = {
assignColumnPrototype: (e, t) => {
- lq("coreColumnsFeature", e, t, {
+ oq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => kSe(e),
+ fn: (e) => MSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => ASe(e),
+ fn: (e) => NSe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59242,25 +59242,25 @@ var RSe = {
});
},
constructTableAPIs: (e) => {
- cq("coreColumnsFeature", e, {
+ aq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => jSe(e),
+ fn: () => PSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => MSe(e),
+ fn: () => FSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => NSe(e),
+ fn: () => ISe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => PSe(e),
+ fn: () => LSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => FSe(e),
+ fn: () => RSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59269,15 +59269,15 @@ var RSe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => ISe(e),
+ fn: () => zSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => LSe(e, t) }
+ table_getColumn: { fn: (t) => BSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function zSe(e) {
+function HSe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59285,38 +59285,38 @@ function zSe(e) {
}
return e._headerPrototype;
}
-function _q(e, t, n) {
- let r = zSe(e), i = Object.create(r);
+function mq(e, t, n) {
+ let r = HSe(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function vq(e, t = 1) {
+function hq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- dq(i) && i.columns.length && (n = Math.max(n, vq(i.columns, t + 1)));
+ cq(i) && i.columns.length && (n = Math.max(n, hq(i.columns, t + 1)));
}
return n;
}
-function BSe(e, t) {
+function USe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function VSe(e, t, n, r) {
+function WSe(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function HSe(e, t) {
+function GSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function yq(e, t, n, r, i, a) {
+function gq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: BSe(r, t),
+ id: USe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59324,10 +59324,10 @@ function yq(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
- let e = _q(n, u, {
- id: VSe(r, t, u.id, a.id),
+ let e = mq(n, u, {
+ id: WSe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(HSe(s, u)) : void 0,
+ placeholderId: d ? String(GSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59336,18 +59336,18 @@ function yq(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && yq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && gq(s, t - 1, n, r, i, a);
}
-function bq(e) {
+function _q(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!dq(n.column)) continue;
+ if (!cq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- bq(n.subHeaders);
+ _q(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- dq(t.column) && (r += t.colSpan);
+ cq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59357,37 +59357,37 @@ function bq(e) {
} else n.rowSpan = 1;
}
}
-function USe(e, t, n, r) {
- let i = vq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = _q(n, t[e], {
+function KSe(e, t, n, r) {
+ let i = hq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = mq(n, t[e], {
depth: i,
index: e
}));
- return yq(s, i - 1, n, r, a, o), a.reverse(), bq(a[0]?.headers ?? []), a;
+ return gq(s, i - 1, n, r, a, o), a.reverse(), _q(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function xq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) xq(e.subHeaders[n], t);
+function vq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) vq(e.subHeaders[n], t);
t.push(e);
}
-function WSe(e) {
+function qSe(e) {
let t = [];
- return xq(e, t), t;
+ return vq(e, t), t;
}
-function GSe(e) {
+function JSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function KSe(e) {
- return USe(e.getAllColumns(), pq(e, TSe(e), (e) => e.id), e);
+function YSe(e) {
+ return KSe(e.getAllColumns(), uq(e, OSe(e), (e) => e.id), e);
}
-function qSe(e) {
+function XSe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function JSe(e) {
+function ZSe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59395,7 +59395,7 @@ function JSe(e) {
}
return n;
}
-function YSe(e) {
+function QSe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59404,23 +59404,23 @@ function YSe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var XSe = {
+var $Se = {
assignHeaderPrototype: (e, t) => {
- lq("coreHeadersFeature", e, t, {
+ oq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => WSe(e),
+ fn: (e) => qSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => GSe(e),
+ fn: (e) => JSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- cq("coreHeadersFeature", e, {
+ aq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => KSe(e),
+ fn: () => YSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59431,22 +59431,22 @@ var XSe = {
]
},
table_getFooterGroups: {
- fn: () => qSe(e),
+ fn: () => XSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => JSe(e),
+ fn: () => ZSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => YSe(e),
+ fn: () => QSe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function ZSe(e) {
+function eCe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59454,98 +59454,98 @@ function ZSe(e) {
}
return e._rowPrototype;
}
-var QSe = (e, t, n, r, i, a, o) => {
- let s = ZSe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = QK(), c._valuesCache = QK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var tCe = (e, t, n, r, i, a, o) => {
+ let s = eCe(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = YK(), c._valuesCache = YK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function $Se() {
- return (e) => oq({
+function nCe() {
+ return (e) => rq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => eCe(e, e.options.data),
- onAfterUpdate: aq(() => {
- ESe(e), hq(e), DSe(e), OSe(e);
+ fn: () => rCe(e, e.options.data),
+ onAfterUpdate: nq(() => {
+ kSe(e), fq(e), ASe(e), jSe(e);
})
});
}
-function Sq(e, t, n, r = 0, i) {
+function yq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = QSe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
- t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Sq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = tCe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = yq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function eCe(e, t) {
+function rCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: YK()
};
- return n.rows = Sq(e, n, t), n;
+ return n.rows = yq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function tCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? $Se()(e)), e._rowModels.coreRowModel();
+function iCe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? nCe()(e)), e._rowModels.coreRowModel();
}
-function nCe(e) {
+function aCe(e) {
return e.getCoreRowModel();
}
-function rCe(e) {
+function oCe(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function iCe(e) {
+function sCe(e) {
return e.getFilteredRowModel();
}
-function aCe(e) {
+function cCe(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function oCe(e) {
+function lCe(e) {
return e.getGroupedRowModel();
}
-function sCe(e) {
+function uCe(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function cCe(e) {
+function dCe(e) {
return e.getSortedRowModel();
}
-function lCe(e) {
+function fCe(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function uCe(e) {
+function pCe(e) {
return e.getExpandedRowModel();
}
-function dCe(e) {
+function mCe(e) {
return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
}
-function fCe(e) {
+function hCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var pCe = { constructTableAPIs: (e) => {
- cq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => tCe(e) },
- table_getPreFilteredRowModel: { fn: () => nCe(e) },
- table_getFilteredRowModel: { fn: () => rCe(e) },
- table_getPreGroupedRowModel: { fn: () => iCe(e) },
- table_getGroupedRowModel: { fn: () => aCe(e) },
- table_getPreSortedRowModel: { fn: () => oCe(e) },
- table_getSortedRowModel: { fn: () => sCe(e) },
- table_getPreExpandedRowModel: { fn: () => cCe(e) },
- table_getExpandedRowModel: { fn: () => lCe(e) },
- table_getPrePaginatedRowModel: { fn: () => uCe(e) },
- table_getPaginatedRowModel: { fn: () => dCe(e) },
- table_getRowModel: { fn: () => fCe(e) }
+var gCe = { constructTableAPIs: (e) => {
+ aq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => iCe(e) },
+ table_getPreFilteredRowModel: { fn: () => aCe(e) },
+ table_getFilteredRowModel: { fn: () => oCe(e) },
+ table_getPreGroupedRowModel: { fn: () => sCe(e) },
+ table_getGroupedRowModel: { fn: () => cCe(e) },
+ table_getPreSortedRowModel: { fn: () => lCe(e) },
+ table_getSortedRowModel: { fn: () => uCe(e) },
+ table_getPreExpandedRowModel: { fn: () => dCe(e) },
+ table_getExpandedRowModel: { fn: () => fCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => pCe(e) },
+ table_getPaginatedRowModel: { fn: () => mCe(e) },
+ table_getRowModel: { fn: () => hCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function mCe(e) {
+function _Ce(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59553,48 +59553,48 @@ function mCe(e) {
}
return e._cellPrototype;
}
-function hCe(e, t, n) {
- let r = mCe(n), i = Object.create(r);
+function vCe(e, t, n) {
+ let r = _Ce(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function gCe(e) {
+function yCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function _Ce(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? mq(e, t).rows : t.rows;
+function bCe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? dq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function vCe(e, t) {
- if ($K(e._valuesCache, t)) return e._valuesCache[t];
+function xCe(e, t) {
+ if (XK(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function yCe(e, t) {
- if ($K(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function SCe(e, t) {
+ if (XK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function bCe(e, t) {
+function CCe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function xCe(e) {
- return _Se(e.subRows, (e) => e.subRows);
+function wCe(e) {
+ return bSe(e.subRows, (e) => e.subRows);
}
-function SCe(e) {
+function TCe(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function CCe(e) {
+function ECe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function wCe(e) {
+function DCe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59603,77 +59603,77 @@ function wCe(e) {
}
return t.reverse();
}
-function TCe(e) {
+function OCe(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = hCe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = vCe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function ECe(e) {
- let t = QK(), n = e.getAllCells();
+function kCe(e) {
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function DCe(e, t, n, r) {
+function ACe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function OCe(e, t, n) {
+function jCe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var kCe = {
+var MCe = {
assignRowPrototype: (e, t) => {
- lq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => gCe(e) },
+ oq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => yCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => ECe(e),
+ fn: (e) => kCe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => TCe(e),
+ fn: (e) => OCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => xCe(e),
+ fn: (e) => wCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => CCe(e) },
- row_getParentRows: { fn: (e) => wCe(e) },
- row_getUniqueValues: { fn: (e, t) => yCe(e, t) },
- row_getValue: { fn: (e, t) => vCe(e, t) },
- row_renderValue: { fn: (e, t) => bCe(e, t) }
+ row_getParentRow: { fn: (e) => ECe(e) },
+ row_getParentRows: { fn: (e) => DCe(e) },
+ row_getUniqueValues: { fn: (e, t) => SCe(e, t) },
+ row_getValue: { fn: (e, t) => xCe(e, t) },
+ row_renderValue: { fn: (e, t) => CCe(e, t) }
});
},
constructTableAPIs: (e) => {
- cq("coreRowsFeature", e, {
+ aq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => _Ce(e),
+ fn: () => bCe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => DCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => OCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => ACe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => jCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => SCe(e),
+ fn: () => TCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function Cq(e, t, n = (e, t) => e === t) {
+function bq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -59684,13 +59684,13 @@ function Cq(e, t, n = (e, t) => e === t) {
}
});
}
-function wq(e, t, n = (e, t) => e === t) {
+function xq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- Cq(e, t, n), e._reactivity.commit?.();
+ bq(e, t, n), e._reactivity.commit?.();
});
}
-function ACe(e) {
- let t = XK(e.initialState);
+function NCe(e) {
+ let t = qK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59701,7 +59701,7 @@ function ACe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function jCe(e, t) {
+function PCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59733,26 +59733,26 @@ function jCe(e, t) {
}
});
}
-function Tq(e, t, n) {
- let r = jCe(e, YK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && wq(e, r.state ?? null);
+function Sq(e, t, n) {
+ let r = PCe(e, KK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && xq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var MCe = {
- coreCellsFeature: SSe,
- coreColumnsFeature: RSe,
- coreHeadersFeature: XSe,
- coreRowModelsFeature: pCe,
- coreRowsFeature: kCe,
+var FCe = {
+ coreCellsFeature: TSe,
+ coreColumnsFeature: VSe,
+ coreHeadersFeature: $Se,
+ coreRowModelsFeature: gCe,
+ coreRowsFeature: MCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- cq("coreTablesFeature", e, {
- table_reset: { fn: () => ACe(e) },
- table_setOptions: { fn: (t) => Tq(e, t) }
+ aq("coreTablesFeature", e, {
+ table_reset: { fn: () => NCe(e) },
+ table_setOptions: { fn: (t) => Sq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Eq() {
+function Cq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59767,21 +59767,21 @@ function Eq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Dq(e) {
+function wq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function NCe(e, t = {}) {
+function ICe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), XK(t);
+ }), qK(t);
}
-function PCe(e) {
+function LCe(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...MCe,
+ ...FCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59819,7 +59819,7 @@ function PCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = NCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = ICe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59827,14 +59827,14 @@ function PCe(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && $K(i, n)) {
+ if (i && XK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Cq(v), v.store = uSe(t.createReadonlyAtom(() => {
+ bq(v), v.store = pSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59842,7 +59842,7 @@ function PCe(e) {
}
return e;
}, {
- compare: GK,
+ compare: HK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59852,107 +59852,107 @@ function PCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function FCe() {
- return QK();
+function RCe() {
+ return YK();
}
-function Oq(e, t) {
- Aq(e) && Mq(e.table, (n) => {
- let r = Object.assign(QK(), n), i = t ?? !uq(e, "getIsVisible", kq), a = e.getLeafColumns();
+function Tq(e, t) {
+ Dq(e) && kq(e.table, (n) => {
+ let r = Object.assign(YK(), n), i = t ?? !sq(e, "getIsVisible", Eq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Aq(t) && (r[t.id] = i);
+ Dq(t) && (r[t.id] = i);
}
return r;
});
}
-function kq(e) {
+function Eq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => uq(e, "getIsVisible", kq)) : ($K(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => sq(e, "getIsVisible", Eq)) : (XK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Aq(e) {
+function Dq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function ICe(e) {
+function zCe(e) {
return (t) => {
- Oq(e, t.target.checked);
+ Tq(e, t.target.checked);
};
}
-function LCe(e) {
+function BCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- uq(r.column, "getIsVisible", kq) && n.push(r);
+ sq(r.column, "getIsVisible", Eq) && n.push(r);
}
- return pq(e.table, n, (e) => e.column.id, () => uq(e, "getVisibleCellsByColumnId", jq));
+ return uq(e.table, n, (e) => e.column.id, () => sq(e, "getVisibleCellsByColumnId", Oq));
}
-function jq(e) {
- let t = QK(), n = e.getAllCells();
+function Oq(e) {
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- uq(r.column, "getIsVisible", kq) && (t[r.column.id] = r);
+ sq(r.column, "getIsVisible", Eq) && (t[r.column.id] = r);
}
return t;
}
-function RCe(e) {
- return e.getAllFlatColumns().filter((e) => uq(e, "getIsVisible", kq));
+function VCe(e) {
+ return e.getAllFlatColumns().filter((e) => sq(e, "getIsVisible", Eq));
}
-function zCe(e) {
- return e.getAllLeafColumns().filter((e) => uq(e, "getIsVisible", kq));
+function HCe(e) {
+ return e.getAllLeafColumns().filter((e) => sq(e, "getIsVisible", Eq));
}
-function Mq(e, t) {
- iq(e, "columnVisibility", t);
+function kq(e, t) {
+ tq(e, "columnVisibility", t);
}
-function BCe(e, t) {
- Mq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.columnVisibility ?? {})));
+function UCe(e, t) {
+ kq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.columnVisibility ?? {})));
}
-function Nq(e, t) {
- t ??= !Pq(e);
- let n = QK(), r = e.getAllLeafColumns();
+function Aq(e, t) {
+ t ??= !jq(e);
+ let n = YK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Aq(i);
+ n[i.id] = t || !Dq(i);
}
- Mq(e, n);
+ kq(e, n);
}
-function Pq(e) {
- return !e.getAllLeafColumns().some((e) => !uq(e, "getIsVisible", kq));
+function jq(e) {
+ return !e.getAllLeafColumns().some((e) => !sq(e, "getIsVisible", Eq));
}
-function VCe(e) {
- return e.getAllLeafColumns().some((e) => uq(e, "getIsVisible", kq));
+function WCe(e) {
+ return e.getAllLeafColumns().some((e) => sq(e, "getIsVisible", Eq));
}
-function HCe(e) {
+function GCe(e) {
return (t) => {
- Nq(e, t.target.checked);
+ Aq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Fq = {
+var Mq = {
getInitialState: (e) => ({
- columnVisibility: FCe(),
+ columnVisibility: RCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: eq("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: ZK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- lq("columnVisibilityFeature", e, t, {
+ oq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => kq(e),
+ fn: (e) => Eq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Aq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => ICe(e) },
- column_toggleVisibility: { fn: (e, t) => Oq(e, t) }
+ column_getCanHide: { fn: (e) => Dq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => zCe(e) },
+ column_toggleVisibility: { fn: (e, t) => Tq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- lq("columnVisibilityFeature", e, t, {
+ oq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => LCe(e),
+ fn: (e) => BCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59960,15 +59960,15 @@ var Fq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => jq(e),
+ fn: (e) => Oq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- cq("columnVisibilityFeature", e, {
+ aq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => RCe(e),
+ fn: () => VCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59978,7 +59978,7 @@ var Fq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => zCe(e),
+ fn: () => HCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59987,51 +59987,51 @@ var Fq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => Mq(e, t) },
- table_resetColumnVisibility: { fn: (t) => BCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => Nq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => Pq(e) },
- table_getIsSomeColumnsVisible: { fn: () => VCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => HCe(e) }
+ table_setColumnVisibility: { fn: (t) => kq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => UCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => Aq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => jq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => WCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => GCe(e) }
});
}
-}, Iq = 0, Lq = 10;
-function Rq() {
+}, Nq = 0, Pq = 10;
+function Fq() {
return {
- pageIndex: Iq,
- pageSize: Lq
+ pageIndex: Nq,
+ pageSize: Pq
};
}
-function UCe(e) {
+function KCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Iq) === Iq) return;
- Vq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Nq) === Nq) return;
+ Rq(e, !0);
}
}
-function zq(e, t) {
- iq(e, "pagination", t);
+function Iq(e, t) {
+ tq(e, "pagination", t);
}
-function WCe(e, t) {
- zq(e, t ? Rq() : XK(e.initialState.pagination ?? Rq()));
+function qCe(e, t) {
+ Iq(e, t ? Fq() : qK(e.initialState.pagination ?? Fq()));
}
-function Bq(e, t) {
- zq(e, (n) => {
- let r = YK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function Lq(e, t) {
+ Iq(e, (n) => {
+ let r = KK(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
};
});
}
-function Vq(e, t) {
- Bq(e, t ? Iq : e.initialState.pagination?.pageIndex ?? Iq);
+function Rq(e, t) {
+ Lq(e, t ? Nq : e.initialState.pagination?.pageIndex ?? Nq);
}
-function GCe(e, t) {
- Hq(e, t ? Lq : e.initialState.pagination?.pageSize ?? Lq);
+function JCe(e, t) {
+ zq(e, t ? Pq : e.initialState.pagination?.pageSize ?? Pq);
}
-function Hq(e, t) {
- zq(e, (e) => {
- let n = Math.max(1, YK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function zq(e, t) {
+ Iq(e, (e) => {
+ let n = Math.max(1, KK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -60039,231 +60039,231 @@ function Hq(e, t) {
};
});
}
-function KCe(e) {
- let t = Uq(e), n = [];
+function YCe(e) {
+ let t = Bq(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function qCe(e) {
+function XCe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function JCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
+function ZCe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function YCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Iq, n = Uq(e);
+function QCe(e) {
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function XCe(e) {
- return Bq(e, (e) => e - 1);
+function $Ce(e) {
+ return Lq(e, (e) => e - 1);
}
-function ZCe(e) {
- return Bq(e, (e) => e + 1);
+function ewe(e) {
+ return Lq(e, (e) => e + 1);
}
-function QCe(e) {
- return Bq(e, 0);
+function twe(e) {
+ return Lq(e, 0);
}
-function $Ce(e) {
- let t = Uq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return Bq(e, t - 1);
+function nwe(e) {
+ let t = Bq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return Lq(e, t - 1);
}
-function Uq(e) {
+function Bq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Wq(e), r = e.atoms.pagination?.get()?.pageSize ?? Lq;
+ let n = Vq(e), r = e.atoms.pagination?.get()?.pageSize ?? Pq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Wq(e) {
+function Vq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Gq = {
+var Hq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Rq(),
+ ...Fq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: eq("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: ZK("pagination", e) }),
constructTableAPIs: (e) => {
- cq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => UCe(e) },
- table_setPagination: { fn: (t) => zq(e, t) },
- table_resetPagination: { fn: (t) => WCe(e, t) },
- table_setPageIndex: { fn: (t) => Bq(e, t) },
- table_resetPageIndex: { fn: (t) => Vq(e, t) },
- table_setPageSize: { fn: (t) => Hq(e, t) },
- table_getPageCount: { fn: () => Uq(e) },
- table_resetPageSize: { fn: (t) => GCe(e, t) },
- table_getPageOptions: { fn: () => KCe(e) },
- table_getCanPreviousPage: { fn: () => qCe(e) },
- table_getCanNextPage: { fn: () => JCe(e) },
- table_getCanLastPage: { fn: () => YCe(e) },
- table_previousPage: { fn: () => XCe(e) },
- table_nextPage: { fn: () => ZCe(e) },
- table_firstPage: { fn: () => QCe(e) },
- table_lastPage: { fn: () => $Ce(e) },
- table_getRowCount: { fn: () => Wq(e) }
+ aq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => KCe(e) },
+ table_setPagination: { fn: (t) => Iq(e, t) },
+ table_resetPagination: { fn: (t) => qCe(e, t) },
+ table_setPageIndex: { fn: (t) => Lq(e, t) },
+ table_resetPageIndex: { fn: (t) => Rq(e, t) },
+ table_setPageSize: { fn: (t) => zq(e, t) },
+ table_getPageCount: { fn: () => Bq(e) },
+ table_resetPageSize: { fn: (t) => JCe(e, t) },
+ table_getPageOptions: { fn: () => YCe(e) },
+ table_getCanPreviousPage: { fn: () => XCe(e) },
+ table_getCanNextPage: { fn: () => ZCe(e) },
+ table_getCanLastPage: { fn: () => QCe(e) },
+ table_previousPage: { fn: () => $Ce(e) },
+ table_nextPage: { fn: () => ewe(e) },
+ table_firstPage: { fn: () => twe(e) },
+ table_lastPage: { fn: () => nwe(e) },
+ table_getRowCount: { fn: () => Vq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function ewe() {
- return QK();
+function rwe() {
+ return YK();
}
-function Kq(e, t) {
+function Uq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function twe(e, t) {
- e._lastSelectedRowId = null, Kq(e, t ? QK() : Object.assign(QK(), XK(e.initialState.rowSelection ?? {})));
+function iwe(e, t) {
+ e._lastSelectedRowId = null, Uq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.rowSelection ?? {})));
}
-function qq(e, t, n) {
- e._lastSelectedRowId = null, Kq(e, (r) => {
- if (t = t === void 0 ? !uq(e, "getIsAllRowsSelected", Xq) : t, n?.deselectAll && !t) return QK();
- let i = Object.assign(QK(), r), a = e.getPreGroupedRowModel().flatRows;
+function Wq(e, t, n) {
+ e._lastSelectedRowId = null, Uq(e, (r) => {
+ if (t = t === void 0 ? !sq(e, "getIsAllRowsSelected", qq) : t, n?.deselectAll && !t) return YK();
+ let i = Object.assign(YK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- oJ(t, e) && (i[t.id] = !0);
+ rJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- nJ(e) && delete i[e.id];
+ $q(e) && delete i[e.id];
});
return i;
});
}
-function Jq(e, t, n) {
- e._lastSelectedRowId = null, Kq(e, (r) => {
- let i = t === void 0 ? !uq(e, "getIsAllPageRowsSelected", Zq) : t;
- if (n?.deselectAll && !i) return QK();
- let a = Object.assign(QK(), r);
+function Gq(e, t, n) {
+ e._lastSelectedRowId = null, Uq(e, (r) => {
+ let i = t === void 0 ? !sq(e, "getIsAllPageRowsSelected", Jq) : t;
+ if (n?.deselectAll && !i) return YK();
+ let a = Object.assign(YK(), r);
return e.getRowModel().rows.forEach((t) => {
- aJ(a, t.id, i, !0, e, !0);
+ nJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function nwe(e) {
+function awe(e) {
return e.getCoreRowModel();
}
-function rwe(e) {
+function owe(e) {
let t = e.getCoreRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: YK()
};
}
-function iwe(e) {
+function swe(e) {
let t = e.getFilteredRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: YK()
};
}
-function awe(e) {
+function cwe(e) {
let t = e.getSortedRowModel();
- return uq(e, "getIsSomeRowsSelected", Qq) ? lJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: QK()
+ rowsById: YK()
};
}
-function Yq(e) {
+function Kq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function Xq(e) {
+function qq(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !uJ(t, n) && oJ(t, e)) && (r = !1);
+ t.some((t) => !sJ(t, n) && rJ(t, e)) && (r = !1);
}
return r;
}
-function Zq(e) {
+function Jq(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (uJ(a, n)) !i && oJ(a, r) && (i = !0);
- else if (oJ(a, r)) return !1;
+ if (sJ(a, n)) !i && rJ(a, r) && (i = !0);
+ else if (rJ(a, r)) return !1;
}
return i;
}
-function Qq(e) {
- return uq(e, "getSelectedRowIds", Yq).length > 0;
+function Yq(e) {
+ return sq(e, "getSelectedRowIds", Kq).length > 0;
}
-function owe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => nJ(e)).some((e) => eJ(e) || uq(e, "getIsSomeSelected", tJ));
+function lwe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => $q(e)).some((e) => Zq(e) || sq(e, "getIsSomeSelected", Qq));
}
-function swe(e) {
+function uwe(e) {
return (t) => {
- qq(e, t.target.checked);
+ Wq(e, t.target.checked);
};
}
-function cwe(e) {
+function dwe(e) {
return (t) => {
- Jq(e, t.target.checked);
+ Gq(e, t.target.checked);
};
}
-function $q(e, t, n) {
- let r = eJ(e);
- Kq(e.table, (i) => {
+function Xq(e, t, n) {
+ let r = Zq(e);
+ Uq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(QK(), i);
- return aJ(a, e.id, t, (n?.selectChildren ?? !0) && iJ(e), e.table), !t && n?.deselectParents && sJ(a, e), a;
+ let a = Object.assign(YK(), i);
+ return nJ(a, e.id, t, (n?.selectChildren ?? !0) && tJ(e), e.table), !t && n?.deselectParents && iJ(a, e), a;
});
}
-function eJ(e) {
- return uJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function Zq(e) {
+ return sJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function tJ(e) {
- return dJ(e) === "some";
+function Qq(e) {
+ return cJ(e) === "some";
}
-function lwe(e) {
- return dJ(e) === "all";
+function fwe(e) {
+ return cJ(e) === "all";
}
-function nJ(e) {
+function $q(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function rJ(e) {
+function eJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function iJ(e) {
+function tJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function uwe(e, t) {
- let n = nJ(e);
+function pwe(e, t) {
+ let n = $q(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- a.options.enableRowRangeSelection !== !1 && s !== null && iJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && dwe(e, s, o, t) || $q(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && tJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && mwe(e, s, o, t) || Xq(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function dwe(e, t, n, r) {
+function mwe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !iJ(s) || !iJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !tJ(s) || !tJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return Kq(a, (e) => {
- let t = Object.assign(QK(), e);
+ return Uq(a, (e) => {
+ let t = Object.assign(YK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- nJ(s) && iJ(s) && (aJ(t, s.id, n, i, a), !n && r?.deselectParents && sJ(t, s));
+ $q(s) && tJ(s) && (nJ(t, s.id, n, i, a), !n && r?.deselectParents && iJ(t, s));
}
return t;
}), !0;
}
-function aJ(e, t, n, r, i, a) {
+function nJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (iJ(o) || Object.keys(e).forEach((t) => delete e[t]), nJ(o) && (e[t] = !0)) : (!a || nJ(o)) && delete e[t], r && o.subRows.length && rJ(o) && o.subRows.forEach((t) => aJ(e, t.id, n, r, i, a));
+ n ? (tJ(o) || Object.keys(e).forEach((t) => delete e[t]), $q(o) && (e[t] = !0)) : (!a || $q(o)) && delete e[t], r && o.subRows.length && eJ(o) && o.subRows.forEach((t) => nJ(e, t.id, n, r, i, a));
}
-function oJ(e, t) {
- if (!nJ(e)) return !1;
+function rJ(e, t) {
+ if (!$q(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60279,7 +60279,7 @@ function oJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!rJ(r)) {
+ if (!eJ(r)) {
s = !1;
break;
}
@@ -60287,50 +60287,50 @@ function oJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function sJ(e, t) {
+function iJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function cJ(e, t, n, r) {
+function aJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = uJ(o, t);
+ let o = e[a], s = sJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = cJ(o.subRows, t, n, r);
+ let e = aJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- ZK(t, o), t.subRows = e, i.push(t);
+ JK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function lJ(e, t) {
- let n = [], r = QK(), i = t.atoms.rowSelection?.get() ?? {};
+function oJ(e, t) {
+ let n = [], r = YK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: cJ(e.rows, i, n, r),
+ rows: aJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function uJ(e, t) {
- return !!($K(t, e.id) && t[e.id]);
+function sJ(e, t) {
+ return !!(XK(t, e.id) && t[e.id]);
}
-function dJ(e) {
+function cJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (nJ(o) && (i = !0, uJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = dJ(o);
+ if ($q(o) && (i = !0, sJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = cJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var fJ = {
+var lJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60338,11 +60338,11 @@ var fJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: ewe(),
+ rowSelection: rwe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: eq("rowSelection", e),
+ onRowSelectionChange: ZK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60353,11 +60353,11 @@ var fJ = {
}
}),
assignRowPrototype: (e, t) => {
- lq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => $q(e, t, n) },
- row_getIsSelected: { fn: (e) => eJ(e) },
+ oq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => Xq(e, t, n) },
+ row_getIsSelected: { fn: (e) => Zq(e) },
row_getIsSomeSelected: {
- fn: (e) => tJ(e),
+ fn: (e) => Qq(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60365,44 +60365,44 @@ var fJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => lwe(e),
+ fn: (e) => fwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => nJ(e) },
- row_getCanSelectSubRows: { fn: (e) => rJ(e) },
- row_getCanMultiSelect: { fn: (e) => iJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => uwe(e, t) }
+ row_getCanSelect: { fn: (e) => $q(e) },
+ row_getCanSelectSubRows: { fn: (e) => eJ(e) },
+ row_getCanMultiSelect: { fn: (e) => tJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => pwe(e, t) }
});
},
constructTableAPIs: (e) => {
- cq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Kq(e, t) },
- table_resetRowSelection: { fn: (t) => twe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => qq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => Jq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => nwe(e) },
+ aq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Uq(e, t) },
+ table_resetRowSelection: { fn: (t) => iwe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => Wq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => Gq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => awe(e) },
table_getSelectedRowModel: {
- fn: () => rwe(e),
+ fn: () => owe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => iwe(e),
+ fn: () => swe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => awe(e),
+ fn: () => cwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => Yq(e),
+ fn: () => Kq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => Xq(e),
+ fn: () => qq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60411,7 +60411,7 @@ var fJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Zq(e),
+ fn: () => Jq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60420,48 +60420,48 @@ var fJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Qq(e),
+ fn: () => Yq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => owe(e),
+ fn: () => lwe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => swe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => cwe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => uwe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => dwe(e) }
});
}
-}, fwe = /([0-9]+)/gm;
+}, hwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function pwe(e) {
+function gwe(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var pJ = /* @__PURE__ */ pwe({ sort: (e, t) => mwe(e, t) });
-function mwe(e, t) {
+var uJ = /* @__PURE__ */ gwe({ sort: (e, t) => _we(e, t) });
+function _we(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function hwe() {
+function vwe() {
return [];
}
-function mJ(e, t) {
- iq(e, "sorting", t);
+function dJ(e, t) {
+ tq(e, "sorting", t);
}
-function hJ(e, t) {
- mJ(e, t ? [] : XK(e.initialState.sorting ?? []));
+function fJ(e, t) {
+ dJ(e, t ? [] : qK(e.initialState.sorting ?? []));
}
-function gwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && hJ(e);
+function ywe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && fJ(e);
}
-function gJ(e) {
+function pJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -60469,7 +60469,7 @@ function gJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(fwe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(hwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60478,9 +60478,9 @@ function gJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return pJ;
+ return uJ;
}
-function _J(e) {
+function mJ(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -60488,14 +60488,14 @@ function _J(e) {
}
return "desc";
}
-function vJ(e) {
+function hJ(e) {
let t = e.table._rowModelFns.sortFns;
- return gSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? gJ(e) : t?.[e.columnDef.sortFn] ?? pJ;
+ return ySe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? pJ(e) : t?.[e.columnDef.sortFn] ?? uJ;
}
-function yJ(e, t, n) {
- let r = xJ(e, n && CJ(e)), i = t !== void 0;
- mJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && CJ(e) && n);
+function gJ(e, t, n) {
+ let r = vJ(e, n && bJ(e)), i = t !== void 0;
+ dJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && bJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60511,40 +60511,40 @@ function yJ(e, t, n) {
}], c;
});
}
-function bJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? _J(e) === "desc" ? "desc" : "asc";
+function _J(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? mJ(e) === "desc" ? "desc" : "asc";
}
-function xJ(e, t) {
- let n = bJ(e), r = wJ(e);
+function vJ(e, t) {
+ let n = _J(e), r = xJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function SJ(e) {
+function yJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function CJ(e) {
+function bJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function wJ(e) {
+function xJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function _we(e) {
+function bwe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function vwe(e) {
- mJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function xwe(e) {
+ dJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function ywe(e) {
- let t = SJ(e);
+function Swe(e) {
+ let t = yJ(e);
return (n) => {
- t && yJ(e, void 0, CJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && gJ(e, void 0, bJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var TJ = {
+var SJ = {
getInitialState(e) {
return {
- sorting: hwe(),
+ sorting: vwe(),
...e
};
},
@@ -60557,58 +60557,58 @@ var TJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: eq("sorting", e),
+ onSortingChange: ZK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- lq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => gJ(e) },
- column_getAutoSortDir: { fn: (e) => _J(e) },
- column_getSortFn: { fn: (e) => vJ(e) },
- column_toggleSorting: { fn: (e, t, n) => yJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => bJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => xJ(e, t) },
- column_getCanSort: { fn: (e) => SJ(e) },
- column_getCanMultiSort: { fn: (e) => CJ(e) },
- column_getIsSorted: { fn: (e) => wJ(e) },
- column_getSortIndex: { fn: (e) => _we(e) },
- column_clearSorting: { fn: (e) => vwe(e) },
- column_getToggleSortingHandler: { fn: (e) => ywe(e) }
+ oq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => pJ(e) },
+ column_getAutoSortDir: { fn: (e) => mJ(e) },
+ column_getSortFn: { fn: (e) => hJ(e) },
+ column_toggleSorting: { fn: (e, t, n) => gJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => _J(e) },
+ column_getNextSortingOrder: { fn: (e, t) => vJ(e, t) },
+ column_getCanSort: { fn: (e) => yJ(e) },
+ column_getCanMultiSort: { fn: (e) => bJ(e) },
+ column_getIsSorted: { fn: (e) => xJ(e) },
+ column_getSortIndex: { fn: (e) => bwe(e) },
+ column_clearSorting: { fn: (e) => xwe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Swe(e) }
});
},
constructTableAPIs(e) {
- cq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => gwe(e) },
- table_setSorting: { fn: (t) => mJ(e, t) },
- table_resetSorting: { fn: (t) => hJ(e, t) }
+ aq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => ywe(e) },
+ table_setSorting: { fn: (t) => dJ(e, t) },
+ table_resetSorting: { fn: (t) => fJ(e, t) }
});
}
-}, bwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function EJ(e, t) {
+}, Cwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function CJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = PCe({
+ let t = LCe({
...e,
features: {
- coreReactivityFeature: pSe(),
+ coreReactivityFeature: gSe(),
...e.features
}
});
- return t.Subscribe = ((e) => lSe({
+ return t.Subscribe = ((e) => fSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = Qxe, {
+ })), t.FlexRender = tSe, {
table: t,
- rootSource: fSe(t.store, GK)
+ rootSource: hSe(t.store, HK)
};
}), i = n;
- Tq(i, (t) => ({
+ Sq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = JK(r, t, { compare: GK });
- return bwe(() => {
- r.markCommitted(o), wq(i, a ?? null, GK);
+ let a = i.options.state, o = r.get(), s = GK(r, t, { compare: HK });
+ return Cwe(() => {
+ r.markCommitted(o), xq(i, a ?? null, HK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60620,10 +60620,10 @@ function EJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function DJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function wJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(vhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(xhe, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60631,7 +60631,7 @@ function DJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility.v1", xwe = {
+var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility.v1", wwe = {
select: {
width: 48,
min: 48,
@@ -60707,14 +60707,14 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, Swe = {
+}, Twe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, Cwe = {
+}, Ewe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60730,7 +60730,7 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, AJ = [
+}, DJ = [
"select",
"name",
"people",
@@ -60748,13 +60748,13 @@ var OJ = "peach.catalog-column-widths.v1", kJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: Cwe[e],
- ...xwe[e],
+ label: Ewe[e],
+ ...wwe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Swe[e] !== !1
+ visible: Twe[e] !== !1
}));
-function jJ(e) {
+function OJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60762,11 +60762,11 @@ function jJ(e) {
return {};
}
}
-function wwe() {
- return MJ(AJ, OJ, kJ);
+function Dwe() {
+ return kJ(DJ, TJ, EJ);
}
-function MJ(e, t, n) {
- let r = jJ(t), i = jJ(n);
+function kJ(e, t, n) {
+ let r = OJ(t), i = OJ(n);
return e.filter((e) => e.id !== "select" && (e.required || (typeof i[e.id] == "boolean" ? i[e.id] === !0 : e.visible))).map((e) => {
let t = r[e.id], n = typeof t == "number" && Number.isFinite(t) && !(e.flex && t === e.width);
return {
@@ -60778,43 +60778,43 @@ function MJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var NJ = "peach.catalog.completion-row";
-function PJ() {
+var AJ = "peach.catalog.completion-row";
+function jJ() {
try {
- return localStorage.getItem(NJ) === "1";
+ return localStorage.getItem(AJ) === "1";
} catch {
return !1;
}
}
-function Twe(e) {
+function Owe(e) {
try {
- e ? localStorage.setItem(NJ, "1") : localStorage.removeItem(NJ);
+ e ? localStorage.setItem(AJ, "1") : localStorage.removeItem(AJ);
} catch {}
}
-var Ewe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var kwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function FJ(e) {
+function MJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : e === "people" || e === "library" || e === "studio" ? `<span data-list-skeleton-mark="${e}"><b class="skeleton-sheen"></b><i class="skeleton-sheen"></i></span>` : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function Dwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + IJ(wwe(), PJ() ? Ewe : "") + "</div>";
+function Awe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + NJ(Dwe(), jJ() ? kwe : "") + "</div>";
}
-function IJ(e, t = "") {
- let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${FJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+function NJ(e, t = "") {
+ let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${MJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
return "<div data-list-skeleton aria-hidden=\"true\"><div data-list-skeleton-tools><i class=\"skeleton-sheen\"></i></div>" + t + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div>`;
}
-function LJ(e, t) {
- return iG() === "list" ? Dwe(e) : ac(e, {
+function PJ(e, t) {
+ return tG() === "list" ? Awe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Owe = () => {
+var jwe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function FJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
@@ -60828,11 +60828,11 @@ function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && rK(e, r) && n(r.dataset.key);
+ r && eK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(ghe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(yhe, {
className: "relative min-w-0",
- onResizeStart: Owe,
+ onResizeStart: jwe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60842,8 +60842,8 @@ function RJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function zJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(HU, {
+function IJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(zU, {
...r,
size: n,
renderValue: t
@@ -60853,14 +60853,14 @@ function zJ({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, I.jsx)(HU, {
+ return /* @__PURE__ */ (0, I.jsx)(zU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function BJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60899,11 +60899,11 @@ function BJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function VJ({ label: e, options: t, sorting: n, onChange: r }) {
+function RJ({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(IJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60913,10 +60913,10 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60924,7 +60924,7 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: cG,
+ leadingIcon: aG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60936,7 +60936,7 @@ function VJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function zJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60951,7 +60951,7 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60961,11 +60961,11 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(BJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(LJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -60978,7 +60978,7 @@ function HJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function UJ(e) {
+function BJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60986,17 +60986,17 @@ function UJ(e) {
return {};
}
}
-function WJ(e, t) {
+function VJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function kwe(e, t) {
+function Mwe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
})), [r, i] = (0, F.useState)(() => {
- let r = UJ(e);
+ let r = BJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -61013,7 +61013,7 @@ function kwe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), WJ(e, a);
+ i(a), VJ(e, a);
},
reset: () => {
i(n({}));
@@ -61023,26 +61023,26 @@ function kwe(e, t) {
}
};
}
-function Awe(e, t, n, r = {}) {
+function Nwe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
- }), [a, o] = (0, F.useState)(() => i(UJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(BJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), WJ(e, n);
+ o(n), VJ(e, n);
}
};
}
-function GJ(e, t, n) {
+function HJ(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = kwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Awe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = Mwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Nwe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -61061,15 +61061,15 @@ function GJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function jwe() {
- return GJ("catalog", AJ, {
- widths: OJ,
- visibility: kJ
+function Pwe() {
+ return HJ("catalog", DJ, {
+ widths: TJ,
+ visibility: EJ
});
}
// src/react/components/rating-stars.tsx
-var KJ = fV("star");
-function qJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var UJ = lV("star");
+function WJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-stars": "",
@@ -61092,25 +61092,25 @@ function qJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(KJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(UJ, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(KJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(UJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(KJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(UJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Mwe({ item: e, actions: t }) {
- let { rating: n } = e, r = mH(), i = (0, F.useRef)(0), a = pP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- uP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Fwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = dH(), i = (0, F.useRef)(0), a = uP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ sP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61122,11 +61122,11 @@ function Mwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -61139,7 +61139,7 @@ function Mwe({ item: e, actions: t }) {
}) : null]
});
}
-function JJ(e) {
+function GJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61154,7 +61154,7 @@ function JJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function KJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61166,10 +61166,10 @@ function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(pH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(uH, {
size: "small",
href: e.href,
- trailingIcon: vB,
+ trailingIcon: hB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61178,15 +61178,15 @@ function YJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(YJ, {
+function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(KJ, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(RV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61206,14 +61206,14 @@ function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(jV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(_H, {
+ className: q(OV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(mH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61222,13 +61222,13 @@ function XJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function ZJ({ preferences: e, label: t = "表格" }) {
+function JJ({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(XJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61256,39 +61256,39 @@ function ZJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function QJ({ preferences: e, id: t }) {
+function YJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Dhe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Ahe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function $J(e, t) {
+function XJ(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function eY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = $J(e, n);
- return /* @__PURE__ */ (0, I.jsx)(RV, {
+function ZJ({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = XJ(e, n);
+ return /* @__PURE__ */ (0, I.jsx)(FV, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !$J(e, n).all;
+ let t = !XJ(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Nwe = Dq({
- rowSortingFeature: TJ,
- rowSelectionFeature: fJ,
- rowPaginationFeature: Gq,
- columnVisibilityFeature: Fq
-}), tY = AJ.map((e) => e.id), Pwe = [
+var Iwe = wq({
+ rowSortingFeature: SJ,
+ rowSelectionFeature: lJ,
+ rowPaginationFeature: Hq,
+ columnVisibilityFeature: Mq
+}), QJ = DJ.map((e) => e.id), Lwe = [
{
id: "name",
label: "名称"
@@ -61325,12 +61325,12 @@ var Nwe = Dq({
id: "played",
label: "观看时间"
}
-], nY = /* @__PURE__ */ new Map();
-function Fwe(e) {
- let t = jwe(), n = nK(), r = oP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], $J = /* @__PURE__ */ new Map();
+function Rwe(e) {
+ let t = Pwe(), n = $G(), r = rP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
- }), [a, o] = (0, F.useState)(() => nY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => $J.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61338,7 +61338,7 @@ function Fwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- nY.set(i, a);
+ $J.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61369,9 +61369,9 @@ function Fwe(e) {
libraryEmpty: (await B("/api/items?limit=1&thumb=0", t)).total === 0
};
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : jK(f, e.layout.javImage), [h] = (0, F.useState)(PJ);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : OK(f, e.layout.javImage), [h] = (0, F.useState)(jJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && Twe(m.length > 0);
+ d.data && !d.isPlaceholderData && Owe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61403,19 +61403,19 @@ function Fwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = EJ({
- features: Nwe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = CJ({
+ features: Iwe,
columns: (0, F.useMemo)(() => {
- let t = Eq();
+ let t = Cq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(eY, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(ZJ, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(RV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(FV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61427,7 +61427,7 @@ function Fwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Iwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(zwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61436,12 +61436,12 @@ function Fwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Lwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Bwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Vwe, {
item: t.original,
props: e
})
@@ -61497,7 +61497,7 @@ function Fwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Mwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Fwe, {
item: t.original,
actions: e.actions
})
@@ -61518,13 +61518,13 @@ function Fwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => JJ(e.original.last_played)
+ cell: ({ row: e }) => GJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => JJ(e.original.first_seen)
+ cell: ({ row: e }) => GJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61532,7 +61532,7 @@ function Fwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => tY.indexOf(e.id) - tY.indexOf(t.id));
+ ]).sort((e, t) => QJ.indexOf(e.id) - QJ.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61595,9 +61595,9 @@ function Fwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(VJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(JJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(RJ, {
label: "作品列表",
- options: Pwe,
+ options: Lwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61607,21 +61607,21 @@ function Fwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(MK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(kK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(RJ, {
+ /* @__PURE__ */ (0, I.jsx)(FJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(DJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(wJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61632,48 +61632,48 @@ function Fwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)($z, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(eB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(Xz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Zz, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [NK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [AK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(OV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(QJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(YJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(eB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(Zz, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(rB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(eB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(rB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: FJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(aB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: MJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(rB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: NK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(aB, { children: AK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(HJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61684,9 +61684,9 @@ function Fwe(e) {
]
});
}
-function Iwe({ item: e, props: t, disabled: n }) {
+function zwe({ item: e, props: t, disabled: n }) {
let r = To(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- rL();
+ eL();
let l = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, u = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), d = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61706,7 +61706,7 @@ function Iwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: r,
relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61758,17 +61758,17 @@ function Iwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function Lwe({ item: e }) {
- let t = nK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function Bwe({ item: e }) {
+ let t = $G({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
return n?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${n.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(zH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Rwe({ item: e, props: t }) {
- rL();
- let { avatar: n, who: r } = uK(e);
+function Vwe({ item: e, props: t }) {
+ eL();
+ let { avatar: n, who: r } = sK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61780,22 +61780,22 @@ function Rwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function rY(e) {
- let t = aG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Bwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Fwe, { ...e }, n);
+function eY(e) {
+ let t = nG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Uwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${rP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Rwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Vwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(Wwe, { ...e }, r);
}
-function zwe({ name: e }) {
+function Hwe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function iY({ children: e, selectMode: t }) {
+function tY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61811,8 +61811,8 @@ function iY({ children: e, selectMode: t }) {
children: e
});
}
-function Bwe(e) {
- let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(fK, {
+function Uwe(e) {
+ let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(lK, {
item: i,
variant: r,
layout: e.layout,
@@ -61826,13 +61826,13 @@ function Bwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(iY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(tY, {
selectMode: e.selectMode,
children: i
});
}
-function Vwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Gue(e) : Wue(e), [s] = (0, F.useState)(() => e.wall ? sP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? sP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function Wwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Jue(e) : que(e), [s] = (0, F.useState)(() => e.wall ? iP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? iP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61858,7 +61858,7 @@ function Vwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => que(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Xue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61868,7 +61868,7 @@ function Vwe(e) {
e.mix,
a,
r.javImage
- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || rbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Qye(e.item) ? [e.item] : []), y = a ? [] : jK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Hwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || obe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && tbe(e.item) ? [e.item] : []), y = a ? [] : OK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Gwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61896,12 +61896,12 @@ function Vwe(e) {
let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
let e = await u.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Wwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(qwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(fK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(lK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61913,8 +61913,8 @@ function Vwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Uxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${oP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Kxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${rP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61922,7 +61922,7 @@ function Vwe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? xn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? Kxe({
+ emptyHtml: u.data && !v.length ? Yxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61937,7 +61937,7 @@ function Vwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(LG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61954,12 +61954,12 @@ function Vwe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Xue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Uwe, {
+ children: $ue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Kwe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61969,14 +61969,14 @@ function Vwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(MK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(kK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(FG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function aY({ entity: e, load: t, enabled: n, children: r }) {
+function nY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -62018,7 +62018,7 @@ function aY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: IG });
+ }, { rootMargin: NG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62041,18 +62041,18 @@ function aY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Hs(Vs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Hwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", oP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Gwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", rP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && cP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && aP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62078,7 +62078,7 @@ function Hwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${Yue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Que(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62092,9 +62092,9 @@ function Hwe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Jue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Zue(n.length - t, h, l);
if (!g.length) return;
- let _ = cP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = aP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -62111,7 +62111,7 @@ function Hwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Uwe({ cut: e, props: t, onOpen: n }) {
+function Kwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62127,12 +62127,12 @@ function Uwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(zwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Hwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(fK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(lK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62147,17 +62147,17 @@ function Uwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function oY(e, t, n) {
+function rY(e, t, n) {
return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function qwe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => lP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), oY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = oY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(gK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => oP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), rY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = rY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(pK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62167,12 +62167,12 @@ function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : oY(e, {
+ artworkIdentity: c === "small" ? l.html : rY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => El(e, c),
- ratio: lK(e, "grid", t),
+ ratio: oK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62183,37 +62183,37 @@ function Wwe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function sY(e) {
+async function iY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var Gwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Kwe = "/api/duplicates?limit=120", cY = ["duplicates"], lY = "/api/batch", uY = (e) => B(Kwe, e), qwe = /[\s\-_.()[\]【】/\\]/;
-function Jwe(e) {
+var Jwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ywe = "/api/duplicates?limit=120", aY = ["duplicates"], oY = "/api/batch", sY = (e) => B(Ywe, e), Xwe = /[\s\-_.()[\]【】/\\]/;
+function Zwe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !qwe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Xwe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Ywe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Xwe(e) {
+var Qwe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function $we(e) {
await Promise.all([H.fetchQuery({
- queryKey: cY,
- queryFn: () => uY(e)
- }), sY(e)]);
+ queryKey: aY,
+ queryFn: () => sY(e)
+ }), iY(e)]);
}
-var Zwe = {
+var eTe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, Qwe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), dY = (e, t) => Qwe(e, t).filter((t) => e.some((e) => e.location !== t)), $we = (e, t) => t.filter((t) => e.some((e) => dY(e.files, [t]).length));
-function eTe(e, t) {
+}, tTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), cY = (e, t) => tTe(e, t).filter((t) => e.some((e) => e.location !== t)), nTe = (e, t) => t.filter((t) => e.some((e) => cY(e.files, [t]).length));
+function rTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62232,19 +62232,19 @@ function eTe(e, t) {
}
return n;
}
-function tTe(e, t) {
+function iTe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function nTe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(lY, {
+async function aTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(oY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var fY = "/api/media-repair", pY = ["media-repair"], mY = ["media-repair", "libraries"], rTe = {
+var lY = "/api/media-repair", uY = ["media-repair"], dY = ["media-repair", "libraries"], oTe = {
status: "idle",
library: "",
stage: "",
@@ -62256,39 +62256,39 @@ var fY = "/api/media-repair", pY = ["media-repair"], mY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, hY = (e) => B(fY, e), gY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function iTe(e) {
+}, fY = (e) => B(lY, e), pY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function sTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: pY,
- queryFn: () => hY(e)
+ queryKey: uY,
+ queryFn: () => fY(e)
}), H.fetchQuery({
- queryKey: mY,
- queryFn: () => gY(e)
+ queryKey: dY,
+ queryFn: () => pY(e)
})]);
}
-var _Y = (e) => Number(e).toLocaleString();
-function aTe(e) {
+var mY = (e) => Number(e).toLocaleString();
+function cTe(e) {
if (e.status === "running") {
- let t = e.total ? `${_Y(Math.min(e.checked || 0, e.total))} / ${_Y(e.total)}` : "准备中";
+ let t = e.total ? `${mY(Math.min(e.checked || 0, e.total))} / ${mY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${_Y(e.repaired)} 部,${_Y(e.failed)} 部修不了` : `修好 ${_Y(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${mY(e.repaired)} 部,${mY(e.failed)} 部修不了` : `修好 ${mY(e.repaired)} 部` : "";
}
-var oTe = (e) => `${_Y(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, sTe = "/api/quality-goals?limit=200", vY = ["quality-goals"], yY = (e) => B(sTe, e);
-async function cTe(e) {
+var lTe = (e) => `${mY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, uTe = "/api/quality-goals?limit=200", hY = ["quality-goals"], gY = (e) => B(uTe, e);
+async function dTe(e) {
await H.fetchQuery({
- queryKey: vY,
- queryFn: () => yY(e)
+ queryKey: hY,
+ queryFn: () => gY(e)
});
}
-var lTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var fTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function bY(e, t, n, r, i, a = i || !e.has(r)) {
+function _Y(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;
}
// src/react/review/review.ts
-var uTe = "/api/review", dTe = "/api/review/decision", fTe = "/api/review/genre", xY = ["review"], SY = {
+var pTe = "/api/review", mTe = "/api/review/decision", hTe = "/api/review/genre", vY = ["review"], yY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62298,40 +62298,40 @@ var uTe = "/api/review", dTe = "/api/review/decision", fTe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, pTe = Object.keys(SY), mTe = "metadata_fields", CY = (e) => typeof e == "string" && Object.hasOwn(SY, e), hTe = {
+}, gTe = Object.keys(yY), _Te = "metadata_fields", bY = (e) => typeof e == "string" && Object.hasOwn(yY, e), vTe = {
creator_tags: "creator",
western_identity: "creator"
-}, wY = [
+}, xY = [
"pending",
"later",
"ignored"
-], TY = {
+], SY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, gTe = {
+}, yTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, EY = (e) => e === "later" || e === "ignored" ? e : "pending", DY = (e, t) => t === "pending" ? {
+}, CY = (e) => e === "later" || e === "ignored" ? e : "pending", wY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function _Te(e, t) {
+function bTe(e, t) {
return {
...e,
- ...t(DY(e, "pending")),
+ ...t(wY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function vTe(e, t) {
+function xTe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
-function OY(e, t) {
+function TY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62348,10 +62348,10 @@ function OY(e, t) {
}
return [...n.values()];
}
-function yTe(e, t, n) {
- return n && OY(e, t).find((e) => e.key === n)?.rows || e;
+function STe(e, t, n) {
+ return n && TY(e, t).find((e) => e.key === n)?.rows || e;
}
-function bTe(e, t) {
+function CTe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62359,32 +62359,32 @@ function bTe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function xTe(e) {
+function wTe(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function STe(e, t, n, r, i, a) {
- return bY(e, t, n, r, i, a);
+function TTe(e, t, n, r, i, a) {
+ return _Y(e, t, n, r, i, a);
}
-function CTe(e, t) {
+function ETe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function kY(e, t) {
+function EY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var AY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function wTe(e, t) {
- let n = kY(e, t), r = AY(e, t);
+var DY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function DTe(e, t) {
+ let n = EY(e, t), r = DY(e, t);
return r ? `${n} · ${r}` : n;
}
-var TTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", ETe = (e) => String(e.tags || "").split("|").filter(Boolean), DTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function OTe(e) {
+var OTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", kTe = (e) => String(e.tags || "").split("|").filter(Boolean), ATe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function jTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function kTe(e, t, n, r) {
+function MTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62400,22 +62400,22 @@ function kTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var ATe = (e) => ({
+var NTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function jY(e) {
- let t = await B(uTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${TY[e]}状态未取得,请刷新或更新写入端`);
+async function OY(e) {
+ let t = await B(pTe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${SY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function jTe(e) {
- let t = await V(dTe, e);
+async function PTe(e) {
+ let t = await V(mTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(xY, (t) => t && _Te(t, (t) => ({
+ H.setQueryData(vY, (t) => t && bTe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62431,33 +62431,33 @@ async function jTe(e) {
}
return t;
}
-function MTe(e, t) {
- let n = H.getQueryData(xY);
- return n && wY.flatMap((t) => DY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function FTe(e, t) {
+ let n = H.getQueryData(vY);
+ return n && xY.flatMap((t) => wY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var NTe = (e, t) => V(fTe, {
+var ITe = (e, t) => V(hTe, {
genre: e,
tag: t
});
-async function PTe(e) {
+async function LTe(e) {
await H.fetchQuery({
- queryKey: xY,
- queryFn: () => jY(e)
+ queryKey: vY,
+ queryFn: () => OY(e)
});
}
-function FTe(e, t, n) {
+function RTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(xY, (t) => {
+ r.size && H.setQueryData(vY, (t) => {
if (!t) return t;
- let i = wY.flatMap((n) => DY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = xY.flatMap((n) => wY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(wY.map((o) => {
- let s = DY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(xY.map((o) => {
+ let s = wY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62484,272 +62484,272 @@ function FTe(e, t, n) {
};
});
}
-var ITe = () => H.invalidateQueries({
- queryKey: xY,
+var zTe = () => H.invalidateQueries({
+ queryKey: vY,
exact: !0
});
-function LTe(e, t) {
+function BTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var RTe = "/api/links", MY = "/api/links/check", NY = "/api/links/prune", PY = ["links"], FY = ["links", "check"], IY = ["links", "prune"], zTe = {
+var VTe = "/api/links", kY = "/api/links/check", AY = "/api/links/prune", jY = ["links"], MY = ["links", "check"], NY = ["links", "prune"], HTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function LY(e) {
+async function PY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var RY = (e) => B(RTe, e), zY = (e) => V(MY, { status_only: !0 }, "POST", e), BTe = ({ retry: e, checkId: t }) => LY(V(MY, e ? {
+var FY = (e) => B(VTe, e), IY = (e) => V(kY, { status_only: !0 }, "POST", e), UTe = ({ retry: e, checkId: t }) => PY(V(kY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), BY = (e) => B(NY, e), VTe = ({ checkId: e, ids: t }) => LY(V(NY, {
+} : { restart: !0 })), LY = (e) => B(AY, e), WTe = ({ checkId: e, ids: t }) => PY(V(AY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), VY = (e) => Number(e || 0).toLocaleString(), HTe = (e) => `已删除 ${VY(e.removed)} 条;${e.marked ? `已隐退女优的 ${VY(e.marked)} 条留作不可点的记录;` : ""}保留 ${VY(e.recovered)} 条未确认失效的链接。`;
-function UTe(e) {
+})), RY = (e) => Number(e || 0).toLocaleString(), GTe = (e) => `已删除 ${RY(e.removed)} 条;${e.marked ? `已隐退女优的 ${RY(e.marked)} 条留作不可点的记录;` : ""}保留 ${RY(e.recovered)} 条未确认失效的链接。`;
+function KTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${VY(e.checked)} / ${VY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${RY(e.checked)} / ${RY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var HY = "/api/configuration", UY = "/api/pick-folder", WY = "/api/settings", GY = "/api/follow/schedule", KY = "/api/feeds/schedule", qY = "/api/thumbnail-jobs", JY = ["settings"], YY = ["follow-schedule"], XY = ["feed-schedule"], ZY = ["thumbnail-jobs"], WTe = "/api/media-processing", GTe = ["media-processing"], KTe = (e) => B(WTe, e), QY = (e) => B(WY, e), qTe = (e) => B(GY, e), JTe = (e) => B(KY, e), YTe = (e) => B(qY, e);
-function XTe(e = H) {
+var zY = "/api/configuration", BY = "/api/pick-folder", VY = "/api/settings", HY = "/api/follow/schedule", UY = "/api/feeds/schedule", qTe = "/api/thumbnail-jobs", WY = ["settings"], GY = ["follow-schedule"], KY = ["feed-schedule"], qY = ["thumbnail-jobs"], JY = "/api/media-processing", JTe = ["media-processing"], YTe = (e) => B(JY, e), YY = (e) => B(VY, e), XTe = (e) => B(HY, e), ZTe = (e) => B(UY, e), QTe = (e) => B(qTe, e);
+function $Te(e = H) {
return e.fetchQuery({
- queryKey: JY,
- queryFn: ({ signal: e }) => QY(e),
+ queryKey: WY,
+ queryFn: ({ signal: e }) => YY(e),
staleTime: 0
}).catch(() => null);
}
-function $Y() {
+function XY() {
return It({
- mutationFn: (e) => V(WY, e),
- onSuccess: (e) => H.setQueryData(JY, e)
+ mutationFn: (e) => V(VY, e),
+ onSuccess: (e) => H.setQueryData(WY, e)
});
}
-function ZTe() {
+function eEe() {
return It({
- mutationFn: (e) => V(GY, {
+ mutationFn: (e) => V(HY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(YY, e)
+ onSuccess: (e) => H.setQueryData(GY, e)
});
}
-var QTe = {
+var tEe = {
follow: {
- url: `${GY}/run`,
- key: YY
+ url: `${HY}/run`,
+ key: GY
},
feed: {
- url: `${KY}/run`,
- key: XY
+ url: `${UY}/run`,
+ key: KY
}
};
-function $Te(e) {
- let { url: t, key: n } = QTe[e];
+function nEe(e) {
+ let { url: t, key: n } = tEe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var eEe = (e) => e?.running ? 3e3 : !1;
-function tEe() {
+var rEe = (e) => e?.running ? 3e3 : !1;
+function iEe() {
return It({
- mutationFn: (e) => V(qY, { mode: e }),
- onSuccess: (e) => H.setQueryData(ZY, e)
+ mutationFn: (e) => V(qTe, { mode: e }),
+ onSuccess: (e) => H.setQueryData(qY, e)
});
}
// src/react/data-cleanup/organize.ts
-var nEe = "/api/organize", rEe = "/api/organize/preview", iEe = "/api/organize/apply", aEe = "/api/organize/rollback", eX = ["organize"], oEe = "/api/organize/example", sEe = (e, t, n) => B(`${oEe}?${new URLSearchParams({
+var aEe = "/api/organize", oEe = "/api/organize/preview", sEe = "/api/organize/apply", cEe = "/api/organize/rollback", ZY = ["organize"], lEe = "/api/organize/example", uEe = (e, t, n) => B(`${lEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), tX = (e) => B(nEe, e);
-async function cEe(e) {
+})}`, n), QY = (e) => B(aEe, e);
+async function dEe(e) {
await H.fetchQuery({
- queryKey: eX,
- queryFn: () => tX(e)
+ queryKey: ZY,
+ queryFn: () => QY(e)
});
}
-var lEe = (e) => V(rEe, e), uEe = (e) => V(UY, { initial: e }), dEe = (e) => e.kind === "apply" ? V(iEe, {
+var fEe = (e) => V(oEe, e), pEe = (e) => V(BY, { initial: e }), mEe = (e) => e.kind === "apply" ? V(sEe, {
...e.request,
confirm: !0
-}) : V(aEe, { confirm: !0 });
-async function fEe(e) {
- H.setQueryData(eX, (t) => t && {
+}) : V(cEe, { confirm: !0 });
+async function hEe(e) {
+ H.setQueryData(ZY, (t) => t && {
...t,
templates: e
});
try {
- await V(WY, { organizeTemplates: e });
+ await V(VY, { organizeTemplates: e });
} catch {}
}
-var pEe = (e, t) => e && {
+var gEe = (e, t) => e && {
...e,
...t
-}, mEe = /目录模板|分隔符|盘符|`\.`/;
-function hEe(e) {
+}, _Ee = /目录模板|分隔符|盘符|`\.`/;
+function vEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var nX = (e) => Number(e || 0).toLocaleString();
-function gEe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${nX(e.counts.change)} 个文件会改名或移动,${nX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var $Y = (e) => Number(e || 0).toLocaleString();
+function yEe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${$Y(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${$Y(e.counts.change)} 个文件会改名或移动,${$Y(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function _Ee(e) {
+function bEe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能退回` : ""}。` : `已整理 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${$Y(r)} 个文件${n ? `,${$Y(n)} 行未能退回` : ""}。` : `已整理 ${$Y(r)} 个文件${n ? `,${$Y(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var vEe = "/api/orphan-records", yEe = "/api/orphan-records/attach", rX = ["orphan-records"], bEe = [
+var xEe = "/api/orphan-records", SEe = "/api/orphan-records/attach", eX = ["orphan-records"], CEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], iX = (e) => B(vEe, e), xEe = (e, t) => V(yEe, {
+], tX = (e) => B(xEe, e), wEe = (e, t) => V(SEe, {
id: e,
target: t
-}), SEe = (e) => V(lY, {
+}), TEe = (e) => V(oY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), CEe = (e) => [
+}), EEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], wEe = (e) => [...bEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...CEe(e)].filter(Boolean).join(" · "), TEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", EEe = (e) => [e.name, TEe(e.duration)].filter(Boolean).join(" · "), aX = "/api/resource-sync/scan", oX = "/api/resource-sync/apply", sX = ["resource-sync", "scan"], cX = ["resource-sync", "apply"], lX = (e) => V(aX, {
+], DEe = (e) => [...CEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...EEe(e)].filter(Boolean).join(" · "), OEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", kEe = (e) => [e.name, OEe(e.duration)].filter(Boolean).join(" · "), nX = "/api/resource-sync/scan", rX = "/api/resource-sync/apply", iX = ["resource-sync", "scan"], aX = ["resource-sync", "apply"], oX = (e) => V(nX, {
background: !0,
status_only: !0
-}, "POST", e), DEe = () => V(aX, {
+}, "POST", e), AEe = () => V(nX, {
background: !0,
restart: !0
-}), uX = (e) => B(oX, e), OEe = (e) => V(oX, {
+}), sX = (e) => B(rX, e), jEe = (e) => V(rX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), dX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function kEe(e) {
- dX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
- queryKey: sX,
- queryFn: () => lX(e)
+}), cX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function MEe(e) {
+ cX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+ queryKey: iX,
+ queryFn: () => oX(e)
}), H.fetchQuery({
- queryKey: cX,
- queryFn: () => uX(e)
+ queryKey: aX,
+ queryFn: () => sX(e)
})]);
}
-var AEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fX = (e) => Number(e || 0).toLocaleString(), jEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mX = (e) => e.vanish ? `${fX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", hX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", MEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录和 ${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。${hX(e)}${mX(e)}`, NEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录(含回收站里的)、${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。来源根目录保留。${hX(e)}${mX(e)}`, PEe = (e) => e.online ? [
- `找不到文件 · 共 ${fX(e.total)} 项`,
- e.vanish ? `${fX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${fX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${fX(e.total)} 项`;
-function gX(e) {
+var NEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), lX = (e) => Number(e || 0).toLocaleString(), PEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", uX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), dX = (e) => e.vanish ? `${lX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", fX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", FEe = (e) => `将永久删除文件已不在盘上的 ${lX(uX(e))} 条记录和 ${lX(e.empty)} 个空文件夹,并清理 ${lX(e.cache?.files)} 个闲置缓存。${fX(e)}${dX(e)}`, IEe = (e) => `将永久删除文件已不在盘上的 ${lX(uX(e))} 条记录(含回收站里的)、${lX(e.empty)} 个空文件夹,并清理 ${lX(e.cache?.files)} 个闲置缓存。来源根目录保留。${fX(e)}${dX(e)}`, LEe = (e) => e.online ? [
+ `找不到文件 · 共 ${lX(e.total)} 项`,
+ e.vanish ? `${lX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${lX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${lX(e.total)} 项`;
+function pX(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 ? `${fX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${fX(n)} 个文件夹没有删除` : "",
- r.length ? `${fX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${lX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${lX(n)} 个文件夹没有删除` : "",
+ r.length ? `${lX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var FEe = (e, t) => {
- let { rest: n } = gX(e), r = `已永久删除 ${fX(e.purged)} 条失效记录和 ${fX(e.dirs_removed)} 个空文件夹,清理 ${fX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${fX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${fX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var REe = (e, t) => {
+ let { rest: n } = pX(e), r = `已永久删除 ${lX(e.purged)} 条失效记录和 ${lX(e.dirs_removed)} 个空文件夹,清理 ${lX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${lX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${lX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, _X = ["performer-delete-candidates"], vX = (e) => B("/api/performer/delete-candidates", e), IEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), LEe = (e) => V("/api/performer/delete", {
+}, mX = ["performer-delete-candidates"], hX = (e) => B("/api/performer/delete-candidates", e), zEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), BEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), REe = "/api/review?counts=1", yX = ["review", "counts"], zEe = "/api/ads?limit=1", bX = ["junk-summary"], xX = "/api/items?state=trash&limit=1", SX = ["trash-summary"], BEe = [
+}), VEe = "/api/review?counts=1", gX = ["review", "counts"], HEe = "/api/ads?limit=1", _X = ["junk-summary"], vX = "/api/items?state=trash&limit=1", yX = ["trash-summary"], UEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], CX = (e) => B(REe, e), wX = (e) => B(zEe, e), TX = (e) => {
+], bX = (e) => B(VEe, e), xX = (e) => B(HEe, e), SX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${xX}&library=${encodeURIComponent(t)}` : xX, e);
-}, EX = (e) => Number(e || 0).toLocaleString();
-function VEe(e) {
- let t = SY, 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 B(t ? `${vX}&library=${encodeURIComponent(t)}` : vX, e);
+}, CX = (e) => Number(e || 0).toLocaleString();
+function WEe(e) {
+ let t = yY, 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 HEe(e) {
+function GEe(e) {
if (!e) return "";
- let t = BEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${EX(e.dismissed_total)}`), t.join(" · ");
-}
-var UEe = [
- [yX, ({ signal: e }) => CX(e)],
- [vY, ({ signal: e }) => yY(e)],
- [SX, ({ signal: e }) => TX(e)],
- [bX, ({ signal: e }) => wX(e)],
- [cY, ({ signal: e }) => uY(e)]
+ let t = UEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${CX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${CX(e.dismissed_total)}`), t.join(" · ");
+}
+var KEe = [
+ [gX, ({ signal: e }) => bX(e)],
+ [hY, ({ signal: e }) => gY(e)],
+ [yX, ({ signal: e }) => SX(e)],
+ [_X, ({ signal: e }) => xX(e)],
+ [aY, ({ signal: e }) => sY(e)]
];
-async function WEe(e) {
- for (let [t, n] of UEe) H.prefetchQuery({
+async function qEe(e) {
+ for (let [t, n] of KEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await oH(e);
+ await rH(e);
}
-async function GEe(e, t) {
+async function JEe(e, t) {
switch (e) {
case "organize":
- await cEe(t);
+ await dEe(t);
break;
case "media-repair":
- await iTe(t);
+ await sTe(t);
break;
case "resource-sync":
- await sY(t), await kEe(t);
+ await iY(t), await MEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: rX,
- queryFn: () => iX(t)
+ queryKey: eX,
+ queryFn: () => tX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: _X,
- queryFn: () => vX(t)
+ queryKey: mX,
+ queryFn: () => hX(t)
});
break;
case "links": await Promise.all([
H.prefetchQuery({
- queryKey: PY,
- queryFn: () => RY(t)
+ queryKey: jY,
+ queryFn: () => FY(t)
}),
H.prefetchQuery({
- queryKey: FY,
- queryFn: () => zY(t)
+ queryKey: MY,
+ queryFn: () => IY(t)
}),
H.prefetchQuery({
- queryKey: IY,
- queryFn: () => BY(t)
+ queryKey: NY,
+ queryFn: () => LY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var DX = (e) => ["feed-new", e ?? "home"], KEe = 8, qEe = 1500;
-function JEe(e, t, n) {
+var wX = (e) => ["feed-new", e ?? "home"], YEe = 8, XEe = 1500;
+function ZEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62760,33 +62760,33 @@ function JEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function YEe(e, t, n) {
- let r = new URLSearchParams({ limit: String(tM().value.feedLimit) });
+async function QEe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(Qj().value.feedLimit) });
e && r.set("entity", String(e));
let i = await Tn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await JEe(s, KEe, qEe), {
+ return n && o.length && await ZEe(s, YEe, XEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var OX = (e, t, n = !1) => ({
- queryKey: DX(e),
- queryFn: () => YEe(e, t, n),
+var TX = (e, t, n = !1) => ({
+ queryKey: wX(e),
+ queryFn: () => QEe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), kX = (e, t) => Tn("/api/feeds/discovery", {
+}), EX = (e, t) => Tn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function XEe(e) {
- H.removeQueries({ queryKey: DX(null) }), await H.fetchQuery(OX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function $Ee(e) {
+ H.removeQueries({ queryKey: wX(null) }), await H.fetchQuery(TX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var AX = [
+var DX = [
"loc",
"creator",
"tag",
@@ -62800,52 +62800,52 @@ var AX = [
"browse",
"folder",
"folder_recursive"
-], jX = {
+], OX = {
media: "videos",
set: 0
-}, MX = (e, t) => [
+}, kX = (e, t) => [
"entity",
e,
t
-], ZEe = (e, t, n, r) => [
+], eDe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], NX = (e, t, n, r) => [
+], AX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], PX = (e) => String(e || "").split(",").filter(Boolean), QEe = (e, t) => PX(e).includes(t);
-function FX(e, t, n, r, i = 0) {
+], jX = (e) => String(e || "").split(",").filter(Boolean), tDe = (e, t) => jX(e).includes(t);
+function MX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...PX(n.tag)])].join(",")), a.set("tag_match", "all")), 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 AX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...jX(n.tag)])].join(",")), a.set("tag_match", "all")), 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 DX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function IX(e, t, n, r, i, a, o) {
- let s = FX(e, t, n, r, i);
+async function NX(e, t, n, r, i, a, o) {
+ let s = MX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await Tn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var LX = (e) => {
+var PX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = FX(e.kind, e.name, e.filters, t).toString();
+ }, n = MX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: ZEe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => IX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: eDe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => NX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, RX = (e, t) => ({
- queryKey: MX(e, t),
+}, FX = (e, t) => ({
+ queryKey: kX(e, t),
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function $Ee(e, t, n, r, i, a) {
+function nDe(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)}` : ""}`;
@@ -62854,10 +62854,10 @@ function $Ee(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 zX = (e, t, n, r) => ({
- queryKey: NX(e, t, n, r),
+var IX = (e, t, n, r) => ({
+ queryKey: AX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn($Ee(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(nDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62870,8 +62870,8 @@ var zX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), BX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function eDe(e) {
+}), LX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function rDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62882,25 +62882,25 @@ async function eDe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(MX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(RX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: DX(Number(t.id)) }), H.fetchQuery(OX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(LX(e)),
- H.fetchInfiniteQuery(zX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(zX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(kX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(FX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: wX(Number(t.id)) }), H.fetchQuery(TX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(PX(e)),
+ H.fetchInfiniteQuery(IX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(IX(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var VX = [
+var RX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], HX = "mb-4 flex flex-wrap gap-2";
-function tDe(e) {
- let t = VX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${HX}">${VX.map(([e, n]) => Os({
+], zX = "mb-4 flex flex-wrap gap-2";
+function iDe(e) {
+ let t = RX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${zX}">${RX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62908,45 +62908,45 @@ function tDe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var nDe = "/api/follow/authors", rDe = "/api/follow/tags", iDe = (e) => [
+var aDe = "/api/follow/authors", oDe = "/api/follow/tags", sDe = (e) => [
"follow",
"authors",
e
-], aDe = (e, t) => [
+], cDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function oDe(e, t, n) {
+function lDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${nDe}?${r}`;
+ return e && r.set("q", e), `${aDe}?${r}`;
}
-function sDe(e, t, n, r) {
+function uDe(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), `${rDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${oDe}?${i}`;
}
-var cDe = (e, t, n, r) => B(oDe(e, t, n), r), lDe = (e, t, n, r, i) => B(sDe(e, t, n, r), i), uDe = "/api/index", UX = {
+var dDe = (e, t, n, r) => B(lDe(e, t, n), r), fDe = (e, t, n, r, i) => B(uDe(e, t, n, r), i), pDe = "/api/index", BX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, dDe = {
+}, mDe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, WX = [
+}, VX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62956,31 +62956,31 @@ var cDe = (e, t, n, r) => B(oDe(e, t, n), r), lDe = (e, t, n, r, i) => B(sDe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], GX = [
+], HX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], KX = {
+], UX = {
people: 120,
tags: 100
-}, qX = (e) => e !== "tags", JX = (e) => e === "studios" || e === "agencies";
-function YX(e) {
- if (e.kind === "creators" && e.category === "animation") return YX({
+}, WX = (e) => e !== "tags", GX = (e) => e === "studios" || e === "agencies";
+function KX(e) {
+ if (e.kind === "creators" && e.category === "animation") return KX({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? GX : WX : e.kind === "performers" && t === "local" ? VX : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? HX : VX : e.kind === "performers" && t === "local" ? RX : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function XX(e) {
+function qX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -63000,50 +63000,50 @@ function XX(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var ZX = (e, t, n = "all") => [
+var JX = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function QX(e, t, n, r, i) {
+function YX(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), `${uDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${pDe}?${a}`;
}
-function $X(e, t = KX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? KX.people : t, r = {
+function XX(e, t = UX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? UX.people : t, r = {
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 {
...r,
- queryKey: ZX(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(QX(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: JX(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(YX(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: ZX("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(QX("tags", e.q, e.category, n, t), r)
+ queryKey: JX("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(YX("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: iDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => cDe(e.q, n, t, r)
+ queryKey: sDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => dDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: aDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => lDe(e.q, e.category, n, t, r)
+ queryKey: cDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => fDe(e.q, e.category, n, t, r)
};
}
}
-async function fDe(e, t) {
- let n = $X(XX(YX(e)));
+async function hDe(e, t) {
+ let n = XX(qX(KX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -63055,20 +63055,20 @@ async function fDe(e, t) {
staleTime: Infinity
});
}
-var pDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], mDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, eZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", hDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, gDe = {
+var gDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], _De = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, ZX = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", vDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, yDe = {
numeric: !0,
sensitivity: "base"
};
-function tZ(e, t) {
+function QX(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", gDe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", yDe))) {
let e = er(t(r.k).normalize("NFKC"), "").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]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function nZ({ html: e, face: t, company: n, big: r }) {
+function $X({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -63080,18 +63080,18 @@ function nZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var _De = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", vDe = fV("rss");
-function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var bDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", xDe = lV("rss");
+function eZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: SU({
+ className: yU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${_De} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${bDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63100,10 +63100,10 @@ function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(vDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(xDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63119,9 +63119,9 @@ function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function iZ({ kind: e, items: t, layout: n, props: r }) {
- let i = JX(e) || e === "series";
- rL();
+function tZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = GX(e) || e === "series";
+ eL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63129,16 +63129,16 @@ function iZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || dDe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(rZ, {
+ let n = t.entity_kind || mDe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(eZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${hDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${vDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(nZ, {
+ children: /* @__PURE__ */ (0, I.jsx)($X, {
html: o.html,
face: o.face,
company: i,
@@ -63148,15 +63148,15 @@ function iZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function yDe({ items: e, layout: t, props: n }) {
- rL();
+function SDe({ items: e, layout: t, props: n }) {
+ eL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(rZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(eZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: nn("creator", e.k, e.entity_id),
@@ -63165,7 +63165,7 @@ function yDe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(nZ, {
+ children: /* @__PURE__ */ (0, I.jsx)($X, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -63174,8 +63174,8 @@ function yDe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var aZ = (e) => e.replace(/\s+/g, " ").trim();
-function oZ(e) {
+var nZ = (e) => e.replace(/\s+/g, " ").trim();
+function rZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -63183,12 +63183,12 @@ function oZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return aZ(n);
+ return nZ(n);
}
-function sZ(e) {
+function iZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && oZ(e) && !cZ(e)) {
+ if (e.matches("a") && rZ(e) && !aZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -63201,7 +63201,7 @@ function sZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function cZ(e) {
+function aZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -63212,19 +63212,19 @@ function cZ(e) {
}
return !1;
}
-function bDe() {
+function CDe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {
- let n = sZ(t), r = e.getBoundingClientRect();
+ let n = iZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, u = () => {
clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);
}, d = (a, o) => {
if (c() || !(a instanceof Element)) return;
let d = a.closest("[title]");
- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (oZ(d) !== aZ(n) || cZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !sZ(d)) return;
+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (rZ(d) !== nZ(n) || aZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !iZ(d)) return;
(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;
let i = d.getAttribute("data-tooltip-copy-key");
i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));
@@ -63249,32 +63249,32 @@ function bDe() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !ds(n, t)) return;
- let r = sZ(t);
+ let r = iZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
}
// src/board-controls.ts
-function lZ(e) {
+function oZ(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}%`);
}
-var uZ = /* @__PURE__ */ new WeakSet();
-function xDe() {
- if (uZ.has(document)) return;
- uZ.add(document);
+var sZ = /* @__PURE__ */ new WeakSet();
+function wDe() {
+ if (sZ.has(document)) return;
+ sZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(lZ), CDe(e), SDe(e);
+ e.querySelectorAll("input[type=range]").forEach(oZ), EDe(e), TDe(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]") && lZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && oZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && lZ(e.target);
- }), bDe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && oZ(e.target);
+ }), CDe();
}
-function SDe(e) {
+function TDe(e) {
let t = ".ui-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;
@@ -63298,15 +63298,15 @@ function SDe(e) {
r.observe(e);
});
}
-var dZ = /* @__PURE__ */ new Map();
-function CDe(e) {
+var cZ = /* @__PURE__ */ new Map();
+function EDe(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 = dZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = cZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -63315,7 +63315,7 @@ function CDe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Wc(t, r, a, "x"), r = a, dZ.set(n, a);
+ Wc(t, r, a, "x"), r = a, cZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63331,8 +63331,8 @@ function CDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var fZ = "/vendor/swiper/14.4.0/", pZ = null, wDe = () => pZ ??= Promise.all([new Promise((e, t) => {
- let n = `${fZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var lZ = "/vendor/swiper/14.4.0/", uZ = null, DDe = () => uZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${lZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -63346,11 +63346,11 @@ var fZ = "/vendor/swiper/14.4.0/", pZ = null, wDe = () => pZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${fZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${lZ}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 pZ = null, e;
+ throw uZ = null, e;
});
-function TDe(e, t, n) {
+function ODe(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);
@@ -63371,46 +63371,46 @@ function TDe(e, t, n) {
}
};
}
-var mZ = (e) => {
+var dZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, EDe = (e) => e.asset?.name || e.name || "未命名图片";
-function DDe(e, t) {
+}, kDe = (e) => e.asset?.name || e.name || "未命名图片";
+function ADe(e, t) {
let n = e.asset;
- if (n) return [nr[n.location ?? ""] || n.location || "来源未知", mZ(n.size)].join(" · ");
+ if (n) return [nr[n.location ?? ""] || n.location || "来源未知", dZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? mZ(e.size) : ""
+ e.size ? dZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var hZ = null, gZ = null, ODe = 0;
-function kDe() {
- return gZ && hZ?.isConnected || (gZ?.unmount(), hZ = document.createElement("div"), hZ.className = "peach-react", hZ.dataset.photoLightboxHost = "", document.body.append(hZ), gZ = (0, zt.createRoot)(hZ)), gZ;
+var fZ = null, pZ = null, jDe = 0;
+function MDe() {
+ return pZ && fZ?.isConnected || (pZ?.unmount(), fZ = document.createElement("div"), fZ.className = "peach-react", fZ.dataset.photoLightboxHost = "", document.body.append(fZ), pZ = (0, zt.createRoot)(fZ)), pZ;
}
-async function _Z(e, t, n) {
+async function mZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await wDe();
+ r = await DDe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = kDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(ADe, {
+ let i = MDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(NDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++ODe)));
+ }, ++jDe)));
}
-function vZ() {
- gZ && (0, Rt.flushSync)(() => gZ.render(null));
+function hZ() {
+ pZ && (0, Rt.flushSync)(() => pZ.render(null));
}
-function ADe({ slides: e, index: t, Swiper: n, host: r }) {
+function NDe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
at: t,
text: ""
@@ -63453,7 +63453,7 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = TDe(e, a, b);
+ i(t, 0), h.current = ODe(e, a, b);
let m = il(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();
};
@@ -63470,13 +63470,13 @@ function ADe({ 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) : vZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : hZ());
};
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, F.useLayoutEffect)(() => {
- m.current && lZ(m.current);
+ m.current && oZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63507,18 +63507,18 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), vZ();
+ e.preventDefault(), hZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && vZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && hZ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: vZ,
+ onClick: hZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63654,10 +63654,10 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: EDe(j)
+ children: kDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: DDe(j, x[_])
+ children: ADe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63695,41 +63695,41 @@ function ADe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function jDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(MDe, {
+function PDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(FDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(NDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(IDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(IDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(zDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var yZ = KX.people;
-function MDe({ roster: e, props: t }) {
+var gZ = UX.people;
+function FDe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(yZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + yZ);
+ }), [n, r]), [a, o] = (0, F.useState)(gZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + gZ);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function NDe(e) {
+function IDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(eY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63751,33 +63751,33 @@ function NDe(e) {
})
});
}
-var PDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var LDe = (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 || "官方样张"
-})), bZ = (e) => e.sample === !0, xZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, SZ = (e) => bZ(e) ? `/sample-thumb?${xZ(e)}` : `/photo-thumb?id=${e.id}`, FDe = (e) => bZ(e) ? {
- src: `/sample-image?${xZ(e)}`,
- thumb: SZ(e),
+})), _Z = (e) => e.sample === !0, vZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, yZ = (e) => _Z(e) ? `/sample-thumb?${vZ(e)}` : `/photo-thumb?id=${e.id}`, RDe = (e) => _Z(e) ? {
+ src: `/sample-image?${vZ(e)}`,
+ thumb: yZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: SZ(e),
+ thumb: yZ(e),
name: e.name || "",
asset: e
};
-function IDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(PDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function zDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(LDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- _Z(e, o.map(FDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(LDe, {
+ mZ(e, o.map(RDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(BDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63795,7 +63795,7 @@ function IDe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(CZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bZ, {
label: e.code,
title: e.name,
meta: [
@@ -63807,7 +63807,7 @@ function IDe({ 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, I.jsx)(CZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(bZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63816,14 +63816,14 @@ function IDe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function CZ({ label: e, title: t, meta: n }) {
+function bZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63840,7 +63840,7 @@ function CZ({ label: e, title: t, meta: n }) {
]
});
}
-function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function BDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63849,7 +63849,7 @@ function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: SZ(e),
+ src: yZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63859,9 +63859,9 @@ function LDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var RDe = 2e3, zDe = (e) => e, BDe = (e, t) => t;
-function wZ(e) {
- let { queryKey: t, jobOf: n = zDe, withJob: r = BDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var VDe = 2e3, HDe = (e) => e, UDe = (e, t) => t;
+function xZ(e) {
+ let { queryKey: t, jobOf: n = HDe, withJob: r = UDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
(0, F.useEffect)(() => {
l.current = e;
});
@@ -63870,7 +63870,7 @@ function wZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? RDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? VDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63894,13 +63894,13 @@ function wZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var TZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function VDe(e, t) {
- return t ? TZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var SZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function WDe(e, t) {
+ return t ? SZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function HDe({ sources: e, report: t }) {
- let n = TZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = wZ({
+function GDe({ sources: e, report: t }) {
+ let n = SZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = xZ({
queryKey: zr,
queryFn: ({ signal: e }) => vi(e),
start: (e) => xi(e),
@@ -63914,20 +63914,20 @@ function HDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...mV(s),
+ ...dV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var UDe = (e) => Number(e) > 0;
-function EZ({ name: e, actions: t, children: n, ...r }) {
+var KDe = (e) => Number(e) > 0;
+function CZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Pn("creator", e),
@@ -63937,15 +63937,15 @@ function EZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var DZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var wZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: fG(e) }
+ dangerouslySetInnerHTML: { __html: lG(e) }
});
-function WDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function qDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(DZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(wZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63964,8 +63964,8 @@ function WDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function GDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(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) => Ibe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+function JDe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(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) => zbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -63973,7 +63973,7 @@ function GDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = pK({
+ let C = uK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -63981,7 +63981,7 @@ function GDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = _G(u, n, i), D = pG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = bG(u, i), j = yG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = mG(u, n, i), D = uG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = _G(u, i), j = gG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -63996,7 +63996,7 @@ function GDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: iK,
+ onMouseDown: tK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -64010,7 +64010,7 @@ function GDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(WDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(qDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64018,7 +64018,7 @@ function GDe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(DZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(wZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -64038,7 +64038,7 @@ function GDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: fG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: lG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64051,7 +64051,7 @@ function GDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- UDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ KDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64122,7 +64122,7 @@ function GDe(e) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
- children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(CZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -64140,31 +64140,31 @@ function GDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: vG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: hG(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-byline": "",
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(CZ, {
name: E.entityName,
actions: l,
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(BG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(VG, {
+ children: /* @__PURE__ */ (0, I.jsx)(RG, {
value: u.published_at || "",
- label: CG(u),
- title: SG(u)
+ label: bG(u),
+ title: yG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64174,10 +64174,10 @@ function GDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(UG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(BG, {
reasons: e.reason.reasons,
tags: e.reason.tags.map((e) => Ll(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(HG, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(zG, {
"data-follow-labels": "",
tags: k,
label: Ll,
@@ -64202,9 +64202,9 @@ function GDe(e) {
]
});
}
-var OZ = (0, F.memo)(GDe);
+var TZ = (0, F.memo)(JDe);
// src/react/components/use-masonry-grid.ts
-function KDe(e, t) {
+function YDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64239,37 +64239,37 @@ function KDe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var kZ = [
+var EZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], AZ = kZ.map(([e]) => e);
-function jZ(e) {
+], DZ = EZ.map(([e]) => e);
+function OZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: AZ.find((e) => e === n) || "list",
+ tab: DZ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function MZ(e) {
+function kZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function NZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : MZ({
- tab: t || jZ(e).tab,
+function AZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : kZ({
+ tab: t || OZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var jZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), qDe = fV("settings"), FZ = fV("chevron-down"), JDe = fV("history"), YDe = fV("arrow-up"), XDe = fV("arrow-down"), ZDe = [[
+}), XDe = lV("settings"), MZ = lV("chevron-down"), ZDe = lV("history"), QDe = lV("arrow-up"), $De = lV("arrow-down"), eOe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64278,7 +64278,7 @@ var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function QDe(e, t, n) {
+function tOe(e, t, n) {
return (0, F.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) => {
@@ -64326,7 +64326,7 @@ function QDe(e, t, n) {
n
]);
}
-function $De(e) {
+function nOe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ra(t, r)), o = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
@@ -64334,7 +64334,7 @@ function $De(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = QDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = tOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -64368,10 +64368,10 @@ function $De(e) {
p,
i
]);
- let m = tOe(e, !!s);
+ let m = iOe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IZ, {}), /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NZ, {}), /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64384,7 +64384,7 @@ function $De(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, mG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, dG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -64393,7 +64393,7 @@ function $De(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64402,7 +64402,7 @@ function $De(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(IZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(NZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64413,20 +64413,20 @@ function $De(e) {
dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(nOe, {
+ /* @__PURE__ */ (0, I.jsx)(aOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(rOe, {
+ /* @__PURE__ */ (0, I.jsx)(oOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(iOe, {
+ /* @__PURE__ */ (0, I.jsx)(sOe, {
facets: u,
view: t,
total: _,
@@ -64434,7 +64434,7 @@ function $De(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(aOe, {
+ /* @__PURE__ */ (0, I.jsx)(cOe, {
conditions: g,
onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
@@ -64446,8 +64446,8 @@ function $De(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(oOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(sOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(lOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(uOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64470,14 +64470,14 @@ function $De(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(aY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(nY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(eOe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(MZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(rOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64488,7 +64488,7 @@ function $De(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : JDe,
+ leadingIcon: m.olderBusy ? void 0 : ZDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64506,7 +64506,7 @@ function $De(e) {
})
] });
}
-function IZ({ children: e }) {
+function NZ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64514,30 +64514,30 @@ function IZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
- leadingIcon: qDe,
+ leadingIcon: XDe,
"data-follow-manage": "",
- href: LZ(),
+ href: PZ(),
children: "管理关注"
}), e]
})]
});
}
-function eOe({ busy: e, error: t, load: n }) {
+function rOe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(MZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: t,
onRetry: n
}) : null] });
}
-function tOe(e, t) {
+function iOe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
helpers: n,
actions: r
@@ -64599,12 +64599,12 @@ function tOe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function aOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => mG(e.authorSources.get(t) || [], n);
+ let o = (t) => dG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64612,14 +64612,14 @@ function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = hG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = fG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: gG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: pG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(CZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64636,7 +64636,7 @@ function nOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function rOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function oOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64657,13 +64657,13 @@ function rOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = gL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = gL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function sOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = pL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64715,7 +64715,7 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(PZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)(jZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64735,7 +64735,7 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(jZ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64748,10 +64748,10 @@ function iOe({ 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: fG(t, n) }
+ dangerouslySetInnerHTML: { __html: lG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(jZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Da(e.groups, n)}`,
@@ -64769,23 +64769,23 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(DV, {
+ /* @__PURE__ */ (0, I.jsx)(wV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(jG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: i.photoLayout,
- options: ZDe,
+ options: eOe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64815,9 +64815,9 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Sa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(sG, {
- a: YDe,
- b: XDe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: QDe,
+ b: $De,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64828,7 +64828,7 @@ function iOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function aOe({ conditions: e, onDrop: t, onClear: n }) {
+function cOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64853,21 +64853,21 @@ function aOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function oOe({ count: e }) {
+function lOe({ count: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-broken": "",
- dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(LZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(PZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var LZ = () => NZ(window.location.search);
-function sOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var PZ = () => AZ(window.location.search);
+function uOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(cOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(dOe, {
facets: t,
data: n,
context: r,
@@ -64879,29 +64879,29 @@ function sOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function cOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = zZ(r), u = i ? {
+function dOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = IZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = KDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = YDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, I.jsx)(OZ, {
+ return /* @__PURE__ */ (0, I.jsx)(TZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(RZ(t, s)),
+ selected: r.selected.has(FZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(RZ(t, s)) || "",
- failure: l.failures.get(RZ(t, s)) || "",
+ busy: l.busy.get(FZ(t, s)) || "",
+ failure: l.failures.get(FZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(lOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(fOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64924,22 +64924,22 @@ function cOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function RZ(e, t) {
+function FZ(e, t) {
return ga(e, t.media).id;
}
-function lOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function fOe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64948,12 +64948,12 @@ function lOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var uOe = {
+var pOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function zZ(e) {
+function IZ(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ra(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@ -64976,7 +64976,7 @@ function zZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(uOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(pOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65021,9 +65021,9 @@ function zZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function dOe(e) {
+function mOe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65031,13 +65031,13 @@ function dOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(RG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(FG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(hOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(aY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65047,8 +65047,8 @@ function dOe(e) {
})
});
}
-function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = zZ({
+function hOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = IZ({
view: e,
revision: 0,
actions: c
@@ -65066,7 +65066,7 @@ function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ga(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(OZ, {
+ return /* @__PURE__ */ (0, I.jsx)(TZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -65079,11 +65079,11 @@ function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(pOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gOe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: VDe(n.sources || [], e.author)
+ sources: WDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65092,21 +65092,21 @@ function fOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function pOe({ searched: e, clear: t, actions: n, sources: r }) {
+function gOe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(HDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(GDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65115,7 +65115,7 @@ function pOe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function BZ(e) {
+function LZ(e) {
return {
x0: 0,
y0: 0,
@@ -65123,7 +65123,7 @@ function BZ(e) {
y1: e.height
};
}
-function VZ(e) {
+function RZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -65131,40 +65131,40 @@ function VZ(e) {
y1: Math.round(e.y1)
};
}
-function HZ(e) {
+function zZ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function UZ(e, t) {
- if (!HZ(e)) return {
+function BZ(e, t) {
+ if (!zZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return BZ(e);
+ if (t == null || !(t > 0)) return LZ(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 VZ({
+ return RZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function mOe(e, t) {
- if (!HZ(e) || !(t > 0)) return BZ(e);
+function _Oe(e, t) {
+ if (!zZ(e) || !(t > 0)) return LZ(e);
let n = Math.min(e.width, e.height * t);
- return VZ({
+ return RZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function hOe(e, t, n) {
- if (!HZ(t) || !(n > 0)) return BZ(t);
- let r = WZ(e, t), i = UZ({
+function vOe(e, t, n) {
+ if (!zZ(t) || !(n > 0)) return LZ(t);
+ let r = VZ(e, t), i = BZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -65175,8 +65175,8 @@ function hOe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function WZ(e, t, n = null, r = "width") {
- if (!HZ(t)) return {
+function VZ(e, t, n = null, r = "width") {
+ if (!zZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -65185,43 +65185,43 @@ function WZ(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 VZ({
+ return RZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function GZ(e, t, n, r) {
+function HZ(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 VZ({
+ return RZ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function KZ(e, t, n, r = null) {
- if (!HZ(n) || !(t > 0)) return e;
+function UZ(e, t, n, r = null) {
+ if (!zZ(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 WZ({
+ return VZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function gOe(e, t, n, r, i = null) {
+function yOe(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 WZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return VZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function _Oe(e, t) {
- return HZ(t) ? {
+function bOe(e, t) {
+ return zZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -65233,8 +65233,8 @@ function _Oe(e, t) {
height: 0
};
}
-function vOe(e, t) {
- if (!HZ(t)) return {
+function xOe(e, t) {
+ if (!zZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -65244,7 +65244,7 @@ function vOe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function yOe(e, t) {
+function SOe(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}%`,
@@ -65253,15 +65253,15 @@ function yOe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function qZ(e, t, n) {
+function WZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function bOe(e, t) {
+function COe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var xOe = .02, JZ = 1.08;
-function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var wOe = .02, GZ = 1.08;
+function KZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
u(!1);
@@ -65280,8 +65280,8 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: qZ(e, n.clientWidth, r.width),
- dy: qZ(t, n.clientHeight, r.height)
+ dx: WZ(e, n.clientWidth, r.width),
+ dy: WZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -65298,22 +65298,22 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(GZ(n.box, o.dx, o.dy, r)) : i(gOe(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));
+ n.mode === "move" ? i(HZ(n.box, o.dx, o.dy, r)) : i(yOe(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 g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * xOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * wOe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(GZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(KZ(n, e.key === "-" ? 1 / JZ : JZ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(HZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(UZ(n, e.key === "-" ? 1 / GZ : GZ, r, t)));
}
- let v = n && r ? _Oe(WZ(n, r, t), r) : null, y = v ? bOe(v, d) : !1, b = v ? {
+ let v = n && r ? bOe(VZ(n, r, t), r) : null, y = v ? COe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65332,7 +65332,7 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- HZ({
+ zZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -65371,7 +65371,7 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(KZ(n, e.deltaY > 0 ? JZ : 1 / JZ, r, t));
+ n && r && i(UZ(n, e.deltaY > 0 ? GZ : 1 / GZ, 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, I.jsx)("span", {
@@ -65393,13 +65393,13 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var SOe = "/api/avatar-choices", XZ = "/api/avatar-pick", COe = "/api/avatar-code-cover", ZZ = "/api/avatar-frame", wOe = "/avatar-choice", QZ = (e, t) => [
+var TOe = "/api/avatar-choices", qZ = "/api/avatar-pick", EOe = "/api/avatar-code-cover", JZ = "/api/avatar-frame", DOe = "/avatar-choice", YZ = (e, t) => [
"avatar-choices",
e,
t
-], $Z = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, eQ = (e, t, n, r = "") => `${wOe}${$Z(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), tQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", TOe = (e, t, n) => B(SOe + $Z(e, t), n), EOe = (e) => V(COe, { code: e });
-async function DOe(e, t, n) {
- let r = await V(ZZ, {
+], XZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, ZZ = (e, t, n, r = "") => `${DOe}${XZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), QZ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", OOe = (e, t, n) => B(TOe + XZ(e, t), n), kOe = (e) => V(EOe, { code: e });
+async function AOe(e, t, n) {
+ let r = await V(JZ, {
kind: e,
id: t,
ref: n.ref
@@ -65412,12 +65412,12 @@ async function DOe(e, t, n) {
bases: r.bases
};
}
-var OOe = (e, t, n) => V(ZZ, {
+var jOe = (e, t, n) => V(JZ, {
kind: e,
id: t,
url: n
-}), kOe = (e, t, n) => nQ(`${ZZ}${$Z(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function nQ(e, t) {
+}), MOe = (e, t, n) => $Z(`${JZ}${XZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function $Z(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65426,17 +65426,17 @@ async function nQ(e, t) {
if (n.ok) return r;
throw new sr(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function rQ(e, t, n) {
+function eQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? hOe(e.focus, t, n) : UZ(t, n);
+ return e.focus && r ? vOe(e.focus, t, n) : BZ(t, n);
}
-var AOe = (e) => e.crop && HZ({
+var NOe = (e) => e.crop && zZ({
width: e.width,
height: e.height
});
-async function jOe(e, t, n) {
+async function POe(e, t, n) {
if (!("file" in n)) {
- await V(XZ, {
+ await V(qZ, {
kind: e,
id: t,
...n
@@ -65449,19 +65449,19 @@ async function jOe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await nQ(`${XZ}${$Z(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await $Z(`${qZ}${XZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var iQ = 2;
-function MOe(e, t) {
+var tQ = 2;
+function FOe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, iQ).join("」「")}」`}${n.length > iQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, tQ).join("」「")}」`}${n.length > tQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var NOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function POe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${NOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var IOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function LOe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${IOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var aQ = (e) => e.cast > 1, FOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, IOe = {
+var nQ = (e) => e.cast > 1, ROe = (e) => nQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, zOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65471,7 +65471,7 @@ var aQ = (e) => e.cast > 1, FOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function LOe(e) {
+function BOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65482,19 +65482,19 @@ function LOe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var ROe = (e) => `${IOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), zOe = 8, BOe = 3 / 4;
-async function VOe(e, t, n) {
+var VOe = (e) => `${zOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (nQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), HOe = 8, UOe = 3 / 4;
+async function WOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await DOe(e, t, n.choice) };
- case "code": return { choice: await EOe(n.code) };
- case "url": return { choice: await OOe(e, t, n.url) };
+ case "choice": return { choice: await AOe(e, t, n.choice) };
+ case "code": return { choice: await kOe(n.code) };
+ case "url": return { choice: await jOe(e, t, n.url) };
case "file": return {
- choice: await kOe(e, t, n.file),
+ choice: await MOe(e, t, n.file),
file: n.file
};
}
}
-function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function GOe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -65504,17 +65504,17 @@ function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(oge, {
+ children: /* @__PURE__ */ (0, I.jsx)(lge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(UOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(KOe, {
kind: e,
entityId: t,
name: n,
@@ -65523,24 +65523,24 @@ function HOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = zV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = QZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function KOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = IV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = YZ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => TOe(e, t, n),
+ queryFn: ({ signal: n }) => OOe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
});
(0, F.useEffect)(() => () => {
- m.current && H.removeQueries({ queryKey: QZ(e, t) });
+ m.current && H.removeQueries({ queryKey: YZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => jOe(e, t, n),
+ mutationFn: (n) => POe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => VOe(e, t, n),
+ mutationFn: (n) => WOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65561,39 +65561,39 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : POe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : LOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(cV, { children: /* @__PURE__ */ (0, I.jsx)(ZB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(aV, { children: /* @__PURE__ */ (0, I.jsx)(JB, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(GU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(HU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? FOe(d.choice) : MOe(n, x)
+ children: d ? ROe(d.choice) : FOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(h.isFetching),
+ ...dV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65603,14 +65603,14 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: xB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(GOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(JOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65630,7 +65630,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: zOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: HOe }, (e, t) => /* @__PURE__ */ (0, I.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",
@@ -65643,8 +65643,8 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: ROe(n),
- ...mV(w),
+ title: VOe(n),
+ ...dV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65653,8 +65653,8 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
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, I.jsx)(WOe, {
- src: eQ(e, t, n.ref, tQ(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(qOe, {
+ src: ZZ(e, t, n.ref, QZ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65663,15 +65663,15 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- aQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ nQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(GU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(HU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65693,7 +65693,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65703,7 +65703,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...mV(v("code")),
+ ...dV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65712,7 +65712,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...mV(v("file")),
+ ...dV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65732,7 +65732,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65742,7 +65742,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...mV(v("url")),
+ ...dV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65756,7 +65756,7 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function WOe({ src: e, choice: t }) {
+function qOe({ src: e, choice: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
(0, F.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -65764,7 +65764,7 @@ function WOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = AOe(t) ? yOe(rQ(t, s, BOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = NOe(t) ? SOe(eQ(t, s, UOe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -65790,23 +65790,23 @@ function WOe({ src: e, choice: t }) {
})]
});
}
-function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = tQ(n, s), m = eQ(e, t, s, p), h = zV();
+function JOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = QZ(n, s), m = ZZ(e, t, s, p), h = IV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? vOe(d, l) : null;
+ let _ = d && l ? xOe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.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: [m ? /* @__PURE__ */ (0, I.jsx)(YZ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(KZ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), HZ(e) && f(s === n.ref ? rQ(n, e, 1) : UZ(e, 1));
+ u(e), zZ(e) && f(s === n.ref ? eQ(n, e, 1) : BZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65820,7 +65820,7 @@ function GOe({ 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: LOe(e)
+ children: BOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65840,12 +65840,12 @@ function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...mV(r),
+ ...dV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(r),
+ ...dV(r),
onClick: () => {
r || a(null);
},
@@ -65853,7 +65853,7 @@ function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...mV(r),
+ ...dV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65868,17 +65868,17 @@ function GOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var oQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
+var rQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function iQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: IB,
+ icon: NB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...mV(!!n),
+ ...dV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65886,9 +65886,9 @@ function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function KOe({ code: e }) {
- let t = mH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(sQ, {
+function YOe({ code: e }) {
+ let t = dH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(iQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65903,8 +65903,8 @@ function KOe({ code: e }) {
}
});
}
-function cQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? oQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
+function aQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? rQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65921,8 +65921,8 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(KOe, { code: e.code });
- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(sQ, {
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(YOe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(iQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -65971,8 +65971,8 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function lQ({ code: e, person: t, detail: n = !1 }) {
- rL();
+function oQ({ code: e, person: t, detail: n = !1 }) {
+ eL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65986,7 +65986,7 @@ function lQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: er(nn("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: oQ(e, `actor:${t.source_actor_id}`),
+ src: rQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -65996,8 +65996,8 @@ function lQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(YW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function sQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, F.useContext)(KW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66029,7 +66029,7 @@ function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
+ }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(oQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -66038,7 +66038,7 @@ function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function dQ({ name: e }) {
+function cQ({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -66048,20 +66048,20 @@ function dQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function fQ(e, t) {
+function lQ(e, t) {
t.style.removeProperty("max-height");
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, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var pQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function mQ(e, t, n, r) {
+var uQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function dQ(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && pQ(n.current) ? fQ(t.current, n.current) : i.current();
+ t.current && uQ(n.current) ? lQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -66075,17 +66075,17 @@ function mQ(e, t, n, r) {
n
]);
}
-function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function fQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, pQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, uQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !pQ(s.current) && (s.current.showPopover(), fQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !uQ(s.current) && (s.current.showPopover(), lQ(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 mQ(c, o, s, f), (0, F.useEffect)(() => {
+ return dQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -66111,7 +66111,7 @@ function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && pQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && uQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66129,16 +66129,16 @@ function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function XOe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
- pQ(o.current) && o.current.hidePopover(), c(!1);
+ uQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !pQ(o.current) && (o.current.showPopover(), fQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !uQ(o.current) && (o.current.showPopover(), lQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return mQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && pQ(o.current) && fQ(i.current, o.current);
+ return dQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && uQ(o.current) && lQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -66147,7 +66147,7 @@ function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(dQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(cQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -66181,29 +66181,29 @@ function qOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function ZOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(kme, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(Mme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ children: /* @__PURE__ */ (0, I.jsx)(cQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: jV,
+ className: OV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(jme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Pme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(yz, {
+ /* @__PURE__ */ (0, I.jsx)(gz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66211,34 +66211,34 @@ function JOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(xz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(vz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(fme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(yz, { children: /* @__PURE__ */ (0, I.jsxs)(xz, {
+ /* @__PURE__ */ (0, I.jsx)(hme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(gz, { children: /* @__PURE__ */ (0, I.jsxs)(vz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var YOe = (e) => e === "studio" || e === "agency", gQ = (e) => e === "performer" || e === "creator", XOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function ZOe(e, t = "zh-CN") {
+var QOe = (e) => e === "studio" || e === "agency", pQ = (e) => e === "performer" || e === "creator", $Oe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function eke(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
}));
}
-function _Q(e) {
+function mQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -66250,13 +66250,13 @@ function _Q(e) {
linked: !1
} : null;
}
-function vQ(e, t) {
+function hQ(e, t) {
let n = Kn(e, "performer"), r = Un(t);
return r && [e.label, n].map(Un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var yQ = (e) => ({ site: zn(e) });
-function QOe(e, t) {
- let n = _Q(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var gQ = (e) => ({ site: zn(e) });
+function tke(e, t) {
+ let n = mQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -66266,7 +66266,7 @@ function QOe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${vQ(e, n)} · ${t}`
+ title: `${hQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -66274,11 +66274,11 @@ function QOe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (gQ(t) && e.link_kind !== "social") return {
+ if (pQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: vQ(e, n),
- mark: yQ(e)
+ title: hQ(e, n),
+ mark: gQ(e)
};
if (e.link_kind === "social") {
let t = Hn(r);
@@ -66286,7 +66286,7 @@ function QOe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : yQ(e)
+ mark: t ? { brand: t } : gQ(e)
};
}
return {
@@ -66294,12 +66294,12 @@ function QOe(e, t) {
url: r,
title: e.label || "",
text: Kn(e, t, i),
- mark: yQ(e)
+ mark: gQ(e)
};
});
- return [...r, ...$Oe(a)];
+ return [...r, ...nke(a)];
}
-function $Oe(e) {
+function nke(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66307,8 +66307,8 @@ function $Oe(e) {
sources: t.map((e) => e.label)
}];
}
-var bQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function eke(e) {
+var _Q = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function rke(e) {
return [
[
"legal_name",
@@ -66364,7 +66364,7 @@ function eke(e) {
}]
}] : []);
}
-function tke(e) {
+function ike(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66421,14 +66421,14 @@ function tke(e) {
tags: e.tags
}), t;
}
-function xQ(e, t = 4) {
+function vQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function nke(e) {
+function ake(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 ? {
@@ -66438,7 +66438,7 @@ function nke(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function rke(e) {
+function oke(e) {
return go({
id: e.id,
hasImage: e.has_image,
@@ -66449,9 +66449,9 @@ function rke(e) {
standIn: e.avatar_stand_in
});
}
-function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- rL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = gQ(e), u = YOe(e), d = l ? tke(n.profile) : u ? eke(n.company_profile) : [], f = QOe(n, e), p = bQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function ske({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ eL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = pQ(e), u = QOe(e), d = l ? ike(n.profile) : u ? rke(n.company_profile) : [], f = tke(n, e), p = _Q(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -66464,7 +66464,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ake, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cke, {
kind: e,
name: s,
helpers: o,
@@ -66472,7 +66472,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(HOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(GOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66487,17 +66487,17 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: zI(s),
+ lang: II(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(JOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(ZOe, {
current: n.canonical_name,
- choices: ZOe(n, Xt()),
+ choices: eke(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(EV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(CV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66511,7 +66511,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)(oke, {
+ /* @__PURE__ */ (0, I.jsx)(lke, {
kind: e,
entity: n,
actions: a
@@ -66532,14 +66532,14 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(fke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(hke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(pke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(gke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(lke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(fke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66548,11 +66548,11 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(uke, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(pke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(dke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(mke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -66571,7 +66571,7 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${rke(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${oke(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66579,14 +66579,14 @@ function ike({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
+ }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(sQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function ake({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function cke({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z(er(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -66600,8 +66600,8 @@ function ake({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function oke({ kind: e, entity: t, actions: n }) {
- let r = _Q(t), i = (e, t) => (r) => {
+function lke({ kind: e, entity: t, actions: n }) {
+ let r = mQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("agency", r.name, r.id),
@@ -66610,44 +66610,44 @@ function oke({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = nke(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = ake(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(yQ, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(cke, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(dke, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(dQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(cQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(e),
+ lang: II(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(hQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(fQ, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(CQ, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(bQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66669,61 +66669,61 @@ function oke({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(yQ, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(ske, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(uke, { aliases: s }) : null
]
});
}
-function ske({ aliases: e }) {
- let { shown: t, rest: n } = xQ(e, 3);
+function uke({ aliases: e }) {
+ let { shown: t, rest: n } = vQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(dQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(cQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(hQ, {
+ n ? /* @__PURE__ */ (0, I.jsx)(fQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(CQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(bQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function cke({ follow: e, actions: t }) {
+function dke({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66732,7 +66732,7 @@ function cke({ follow: e, actions: t }) {
})]
});
}
-function lke({ follow: e, displayName: t, actions: n }) {
+function fke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66746,12 +66746,12 @@ function lke({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(lV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...mV(r === e.key),
+ ...dV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66766,37 +66766,37 @@ function lke({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function SQ({ entity: e }) {
+function yQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function CQ({ label: e, names: t }) {
+function bQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: zI(e.name),
+ lang: II(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function uke({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function pke({ glyph: e, label: t, clip: n, children: r }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(cQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function dke({ tags: e }) {
- let { shown: t, rest: n } = xQ(e);
+function mke({ tags: e }) {
+ let { shown: t, rest: n } = vQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(hQ, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(fQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66812,10 +66812,10 @@ function dke({ tags: e }) {
})
}) : null] });
}
-function wQ({ mark: e }) {
+function xQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(cQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -66823,7 +66823,7 @@ function wQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function fke({ link: e }) {
+function hke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66832,19 +66832,19 @@ function fke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(xQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(wQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(xQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(wQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(xQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66856,7 +66856,7 @@ function fke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(xQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66871,7 +66871,7 @@ function fke({ link: e }) {
});
}
}
-function pke({ entity: e, actions: t, helpers: n }) {
+function gke({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -66889,33 +66889,33 @@ function pke({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [bQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [_Q(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(dQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(cQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(qOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(XOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: XOe(r)
+ tip: $Oe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var mke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function hke(e, t, n) {
+var _ke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function vke(e, t, n) {
let [r, i] = (0, F.useState)(() => _a(e));
r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
@@ -66994,7 +66994,7 @@ function hke(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ea,
- seed: mke()
+ seed: _ke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -67024,8 +67024,8 @@ function hke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function gke(e) {
- let { kind: t, name: n } = e, r = Ft(RX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function yke(e) {
+ let { kind: t, name: n } = e, r = Ft(FX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -67043,17 +67043,17 @@ function gke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(yke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(Ske, {
...e,
entity: r.data
});
}
-function TQ(e) {
+function SQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -67065,22 +67065,22 @@ function TQ(e) {
};
return n(r), r.n;
}
-var _ke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function vke(e, t) {
+var bke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function xke(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function yke(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 = Lt(zX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || BX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function Ske(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 = Lt(IX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || LX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
- } : jX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : OX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = hke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = vke(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = LX(e), A = Ft(k), j = TQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = PX(e), A = Ft(k), j = SQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -67090,26 +67090,26 @@ function yke(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => IX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
- ...zX(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => NX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
+ ...IX(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = TQ(JSON.stringify(NX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = SQ(JSON.stringify(AX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : BX(t),
+ codeSets: t.id ? [] : LX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Ft({
- ...OX(d, o.feedRowHtml),
+ ...TX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: DX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: wX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -67143,7 +67143,7 @@ function yke(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: MX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: kX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -67177,7 +67177,7 @@ function yke(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(MX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(kX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -67231,10 +67231,10 @@ function yke(e) {
let e = await Tn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: DX(d) });
+ me.current && await H.invalidateQueries({ queryKey: wX(d) });
})();
},
- feedAction: kX,
+ feedAction: EX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -67282,19 +67282,19 @@ function yke(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : jX));
+ } : OX));
},
setState: (e) => s.route({
...i,
state: e
- }, jX),
+ }, OX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = LX({
+ let r = s.reshuffleVideos(), a = PX({
kind: t,
name: n,
filters: {
@@ -67308,7 +67308,7 @@ function yke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = _ke(), a = await H.fetchInfiniteQuery(zX(t, n, re, r)).catch(() => null);
+ let r = bke(), a = await H.fetchInfiniteQuery(IX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67343,7 +67343,7 @@ function yke(e) {
k: e.k,
label: Ll(e.k),
n: e.n,
- selected: QEe(i.tag, e.k)
+ selected: tDe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67378,14 +67378,14 @@ function yke(e) {
creator: "",
studio: "",
owner: ""
- }, jX), Ne = "", Pe = !1;
+ }, OX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = PX(i.tag).length;
+ let e = jX(i.tag).length;
Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : vke(oe, BX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : xke(oe, LX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67402,7 +67402,7 @@ function yke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(ike, {
+ /* @__PURE__ */ (0, I.jsx)(ske, {
kind: t,
name: n,
entity: r,
@@ -67412,7 +67412,7 @@ function yke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Vbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Wbe, {
kind: t,
name: n,
view: w,
@@ -67429,9 +67429,9 @@ function yke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Obe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(jbe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(dOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(mOe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67445,16 +67445,16 @@ function yke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(bke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(Cke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(jDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PDe, {
kind: t,
name: n,
view: w,
@@ -67487,9 +67487,9 @@ function yke(e) {
}), c.body)
] });
}
-function bke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("search"),
+function Cke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67497,14 +67497,14 @@ function bke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67513,30 +67513,30 @@ function bke({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var EQ = ["diagnostics"], DQ = (e) => B("/api/diagnostics", e);
-async function xke(e) {
+var CQ = ["diagnostics"], wQ = (e) => B("/api/diagnostics", e);
+async function wke(e) {
await H.fetchQuery({
- queryKey: EQ,
- queryFn: () => DQ(e),
+ queryKey: CQ,
+ queryFn: () => wQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function Ske({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Ft(OX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function Tke({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Ft(TX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: DX(null) }));
- }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: wX(null) }));
+ }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(sQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: kX,
+ act: EX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var Cke = fV("search");
-function OQ({ label: e, value: t, onQuery: n }) {
+var Eke = lV("search");
+function TQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
clearTimeout(o.current), i(t);
@@ -67553,27 +67553,27 @@ function OQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(eV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(nV, {
type: "search",
- leadingIcon: Cke,
+ leadingIcon: Eke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || eW(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || ZU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
});
}
// src/react/index/tag-pagination.ts
-function kQ(e) {
+function EQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67590,7 +67590,7 @@ function kQ(e) {
}), [e])
};
}
-function AQ(e, t, n) {
+function DQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67607,11 +67607,11 @@ function AQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var OQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), MQ = fV("pencil"), NQ = (e, t) => ({
+}), kQ = lV("pencil"), AQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67620,7 +67620,7 @@ var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function wke({ tag: e, actions: t }) {
+function Dke({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -67629,13 +67629,13 @@ function wke({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": eZ(t.online, e.cat),
+ "data-tag-cat": ZX(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 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, I.jsx)(jQ, {}),
+ /* @__PURE__ */ (0, I.jsx)(OQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67646,32 +67646,32 @@ function wke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(CV, { item: AQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kQ, {})
}) : null
]
});
}
-function PQ({ groups: e, actions: t }) {
+function jQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: SU({
+ className: yU({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(hW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(fW, { value: n.length })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(wke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(Dke, {
tag: e,
actions: t
}, e.k))
@@ -67679,26 +67679,26 @@ function PQ({ groups: e, actions: t }) {
}, e))
});
}
-var Tke = "\xA0";
-function FQ({ tags: e, actions: t }) {
+var Oke = "\xA0";
+function MQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": eZ(t.online, e.cat),
+ "data-tag-cat": ZX(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": eZ(t.online, e.cat),
+ "data-tag-cat": ZX(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + Tke
+ children: e.label + Oke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67707,16 +67707,16 @@ function FQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(EV, { item: NQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(TV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(CV, { item: AQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var Eke = [[
+var kke = [[
"cloud",
"标签云",
"tags"
@@ -67725,34 +67725,34 @@ var Eke = [[
"字母表",
"text-aa"
]];
-function IQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = lL();
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+function NQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = oL();
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(fL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(lL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(fL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(lL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : eZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : ZX(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(jQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(OQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67773,19 +67773,19 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(jz, {
+ /* @__PURE__ */ (0, I.jsx)(Oz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${aU}`,
- children: Eke.map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `ml-auto ${nU}`,
+ children: kke.map(([e, t, n]) => {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: oU,
+ className: rU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67797,13 +67797,13 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function Dke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(xj, {
+function Ake({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(vj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(RV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67834,74 +67834,74 @@ function Dke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var LQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var PQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), RQ = null, zQ = { "--floating-radius": "var(--radius-2xl)" }, BQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
-function VQ() {
- let e = RQ;
- RQ = null, e?.root.unmount();
-}
-var HQ = (e, t) => {
- if (RQ?.host === e) return;
- VQ();
+}), FQ = null, IQ = { "--floating-radius": "var(--radius-2xl)" }, LQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
+function RQ() {
+ let e = FQ;
+ FQ = null, e?.root.unmount();
+}
+var zQ = (e, t) => {
+ if (FQ?.host === e) return;
+ RQ();
let n = (0, zt.createRoot)(e);
- RQ = {
+ FQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(VV, { children: [/* @__PURE__ */ (0, I.jsx)(YV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(RV, { children: [/* @__PURE__ */ (0, I.jsx)(KV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...zQ,
+ ...IQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${BQ(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${LQ(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${BQ(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${LQ(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: LQ(t.success, !0),
- error: LQ(t.error, !1)
+ success: PQ(t.success, !0),
+ error: PQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(YV, {
+ }), /* @__PURE__ */ (0, I.jsx)(KV, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...zQ,
+ ...IQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: BQ(24)
+ bottom: LQ(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: BQ(16)
+ bottom: LQ(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, Oke = 6e3, UQ = (e, t) => {
+}, jke = 6e3, BQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? WV.error : WV.success, r = t.action;
+ let n = t.alert ? VV.error : VV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Oke,
+ duration: t.timeout > 0 ? t.timeout : jke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67909,7 +67909,7 @@ var HQ = (e, t) => {
}
} : void 0
});
-}, WQ = (e) => e.id ?? e.entity_id, GQ = {
+}, VQ = (e) => e.id ?? e.entity_id, HQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67917,26 +67917,26 @@ var HQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, KQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function qQ(e, t, n) {
+}, UQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function WQ(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
return !(await ll({
- title: GQ[e.operation],
+ title: HQ[e.operation],
body: i,
- confirmLabel: GQ[e.operation],
+ confirmLabel: HQ[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), UQ(`tag-management-${Date.now()}`, {
- html: `已${GQ[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), BQ(`tag-management-${Date.now()}`, {
+ html: `已${HQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function GQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67945,24 +67945,24 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, F.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? WQ(t[0]) : 0
+ target_id: t[0] ? VQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = sl({
- title: GQ[t.operation],
+ title: HQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(WQ),
+ ids: t.selected.map(VQ),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await KQ(n, e.signal)
+ plan: await UQ(n, e.signal)
};
}
});
@@ -67973,14 +67973,14 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await qQ(r.command, r.plan, e.signal) && t.done();
+ await WQ(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(kke, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Mke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67989,8 +67989,8 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function kke({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? WQ(t[0]) : 0);
+function Mke({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? VQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -68003,28 +68003,28 @@ function kke({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(oV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(rV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(zJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(IJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(WQ(t)) === String(e));
- n && s(WQ(n));
+ let n = t.find((t) => String(VQ(t)) === String(e));
+ n && s(VQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(UU, {
- id: String(WQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ id: String(VQ(e)),
children: e.k
- }, WQ(e)))
+ }, VQ(e)))
});
}
// src/react/index/tag-manager.tsx
-function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function KQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
o,
_,
@@ -68032,7 +68032,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = kQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = EQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -68049,25 +68049,25 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- AQ(E.data?.total, C, w);
+ DQ(E.data?.total, C, w);
let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = mH(), ee = E.data?.items || [], N = ee, te = (s ? GX : WX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = dH(), ee = E.data?.items || [], N = ee, te = (s ? HX : VX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? tZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? QX(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return qQ(n, await KQ(n, t), t);
+ return WQ(n, await UQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(WQ), oe = {
+ }, ae = re.map(VQ), oe = {
online: s,
favorites: s,
picked: k,
@@ -68088,13 +68088,13 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(OQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(TQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IQ, {
+ /* @__PURE__ */ (0, I.jsx)(NQ, {
categories: te,
category: h,
online: s,
@@ -68122,7 +68122,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(uL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68130,11 +68130,11 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(uL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(uL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68143,7 +68143,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68151,19 +68151,19 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(jQ, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(MQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(HJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -68173,11 +68173,11 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(xj, {
+ /* @__PURE__ */ (0, I.jsxs)(vj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68199,7 +68199,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!M.busy),
+ ...dV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68209,7 +68209,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!M.busy),
+ ...dV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68218,7 +68218,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(JQ, {
+ A ? /* @__PURE__ */ (0, I.jsx)(GQ, {
operation: A,
selected: re,
scope: o,
@@ -68229,7 +68229,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var Ake = [
+var Nke = [
{
value: "studios",
label: "厂牌",
@@ -68245,7 +68245,7 @@ var Ake = [
label: "系列",
symbol: "list"
}
-], jke = [{
+], Pke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68253,7 +68253,7 @@ var Ake = [
value: "online",
label: "在线",
symbol: "rss"
-}], Mke = [
+}], Fke = [
{
value: "performers",
label: "艺人",
@@ -68269,7 +68269,7 @@ var Ake = [
label: "在线",
symbol: "rss"
}
-], Nke = {
+], Ike = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68298,20 +68298,20 @@ var Ake = [
"layout-grid"
]]
};
-function Pke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(nU, {
- "aria-label": `${UX[e]}索引版式`,
+function Lke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)($H, {
+ "aria-label": `${BX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${rU}`,
- children: Nke[e === "series" ? "series" : JX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = fV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `flex-none ${eU}`,
+ children: Ike[e === "series" ? "series" : GX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
- className: Lve,
+ className: Bve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68321,8 +68321,8 @@ function Pke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function Fke(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => YX({
+function Rke(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => KX({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -68335,8 +68335,8 @@ function Fke(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(YX(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = UX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(KX(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = BX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -68355,7 +68355,7 @@ function Fke(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = kQ(JSON.stringify(r)), E = $X(XX(r), w.pageSize), D = Lt({
+ }, { pagination: w, onChange: T } = EQ(JSON.stringify(r)), E = XX(qX(r), w.pageSize), D = Lt({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -68370,7 +68370,7 @@ function Fke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = pDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = gDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -68378,8 +68378,8 @@ function Fke(e) {
D.isPending,
D.isPlaceholderData,
r
- ]), AQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : mDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), DQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : _De(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
te && !D.isPlaceholderData && (N.current = {
key: ee,
counts: te
@@ -68395,15 +68395,15 @@ function Fke(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? tZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? QX(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: jke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Pke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68413,8 +68413,8 @@ function Fke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : JX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: Ake,
+ }) : GX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Nke,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68423,7 +68423,7 @@ function Fke(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? GX : WX).filter(re);
+ }, le = (x ? HX : VX).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68438,10 +68438,10 @@ function Fke(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- qX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ WX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68450,18 +68450,18 @@ function Fke(e) {
})
})
}) : null,
- qX(h) ? /* @__PURE__ */ (0, I.jsx)(Pke, {
+ WX(h) ? /* @__PURE__ */ (0, I.jsx)(Lke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(wV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: fV("pencil"),
+ leadingIcon: lV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68469,7 +68469,7 @@ function Fke(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OQ, {
+ /* @__PURE__ */ (0, I.jsx)(TQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68478,8 +68478,8 @@ function Fke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(gW, {
- tabs: Mke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Fke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68491,7 +68491,7 @@ function Fke(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(YQ, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(KQ, {
scope: _,
search: g,
category: y,
@@ -68505,8 +68505,8 @@ function Fke(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: HX,
- children: VX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ className: zX,
+ children: RX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68514,7 +68514,7 @@ function Fke(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(IQ, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
categories: le,
category: y,
online: x,
@@ -68530,7 +68530,7 @@ function Fke(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: k,
skeletonHtml: () => h === "tags" ? rc({
mode: v,
@@ -68542,8 +68542,8 @@ function Fke(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68552,7 +68552,7 @@ function Fke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Lke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Bke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68561,12 +68561,12 @@ function Fke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(yDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(SDe, {
items: O,
layout: c,
props: e
});
- if (qX(h)) return /* @__PURE__ */ (0, I.jsx)(iZ, {
+ if (WX(h)) return /* @__PURE__ */ (0, I.jsx)(tZ, {
kind: h,
items: O,
layout: c,
@@ -68577,10 +68577,10 @@ function Fke(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(jQ, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(MQ, {
tags: ie,
actions: t
});
@@ -68589,7 +68589,7 @@ function Fke(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(HJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68614,7 +68614,7 @@ function Fke(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Dke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Ake, {
count: u.size,
match: f,
onMatch: p,
@@ -68628,7 +68628,7 @@ function Fke(e) {
]
});
}
-var Ike = {
+var zke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68636,9 +68636,9 @@ var Ike = {
agencies: "事务所",
series: "系列"
};
-function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV("search"),
+function Bke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68647,16 +68647,16 @@ function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Ike[e], a = /* @__PURE__ */ (0, I.jsx)(vL, {
+ let i = n && e === "performers" ? "创作者" : zke[e], a = /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: fV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68664,15 +68664,15 @@ function Lke({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var XQ = {
+var qQ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Rke = (e) => XQ[e.junk_kind || "other"] || XQ.other;
-function zke(e) {
+}, Vke = (e) => qQ[e.junk_kind || "other"] || qQ.other;
+function Hke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68683,40 +68683,40 @@ function zke(e) {
glyph: "check"
};
}
-var ZQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Bke = (e, t) => [
+var JQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Uke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Vke({ kind: e, view: t }) {
+function Wke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Hke(e, t) {
- let n = await B(`/api/ads?${Vke(e)}`, t);
+async function Gke(e, t) {
+ let n = await B(`/api/ads?${Wke(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function QQ({ name: e }) {
+function YQ({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var $Q = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = Rke(e), m = String(e.name || ""), h = zke(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]") || $Q(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var XQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function Kke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = Vke(e), m = String(e.name || ""), h = Hke(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]") || XQ(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), $Q(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), XQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -68747,7 +68747,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: iK,
+ onMouseDown: tK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68755,7 +68755,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(YQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68767,7 +68767,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(QQ, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(YQ, { name: "check" })
})
]
}),
@@ -68804,7 +68804,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: Bs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(QQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : /* @__PURE__ */ (0, I.jsx)(YQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68816,7 +68816,7 @@ function Uke({ 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, I.jsx)(QQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(YQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68828,7 +68828,7 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(QQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(YQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68843,9 +68843,9 @@ function Uke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Wke = (0, F.memo)(Uke);
+var qke = (0, F.memo)(Kke);
// src/react/components/collection-summary.tsx
-function e$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function ZQ({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.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
@@ -68871,31 +68871,31 @@ function e$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function t$({ name: e }) {
+function QQ({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function n$({ scope: e, count: t }) {
+function $Q({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = zV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = gL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FU.map(([e]) => ZQ(t, e)).join(",") : ""}`), l = RU(s), u = (e) => {
+function Jke({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = IV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = pL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? MU.map(([e]) => JQ(t, e)).join(",") : ""}`), l = FU(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") || LU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || PU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)(e$, {
- label: zU(s),
+ children: /* @__PURE__ */ (0, I.jsx)(ZQ, {
+ label: IU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68915,17 +68915,17 @@ function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- FU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: LU(e, s),
+ MU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: PU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(t$, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)(QQ, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(n$, {
+ /* @__PURE__ */ (0, I.jsx)($Q, {
scope: e,
- count: t ? ZQ(t, e) : 0
+ count: t ? JQ(t, e) : 0
})
]
}, e || "all")),
@@ -68939,9 +68939,9 @@ function Gke({ 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, I.jsx)(t$, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)(QQ, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(n$, {
+ /* @__PURE__ */ (0, I.jsx)($Q, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68953,33 +68953,33 @@ function Gke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Kke = fV("check"), qke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Jke(e) {
+var Yke = lV("check"), Xke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Zke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Bke(t, e.revision),
- queryFn: ({ signal: e }) => Hke(t, e),
- placeholderData: (e, n) => n && qke(n.queryKey, t) ? e : void 0
+ queryKey: Uke(t, e.revision),
+ queryFn: ({ signal: e }) => Gke(t, e),
+ placeholderData: (e, n) => n && Xke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Yke(e.countRow), i = n.isPending;
+ let r = Qke(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Jke, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Xke, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)($ke, {
props: e,
data: n.data,
pending: i,
@@ -68987,7 +68987,7 @@ function Jke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Yke(e) {
+function Qke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68997,8 +68997,8 @@ function Yke(e) {
};
}, [e]), t;
}
-function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = sxe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function $ke({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = uxe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69006,16 +69006,16 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(LG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(uV, {
- icon: Kke,
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: Yke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69028,7 +69028,7 @@ function Xke({ 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, I.jsx)(Wke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(qke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69037,7 +69037,7 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Zke, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(eAe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -69047,14 +69047,14 @@ function Xke({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function Zke({ onMore: e }) {
+function eAe({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: IG });
+ }, { rootMargin: NG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -69064,22 +69064,22 @@ function Zke({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var Qke = SU({
+var tAe = yU({
padding: "none",
className: "overflow-hidden"
-}), r$ = {
+}), e$ = {
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"
-}, i$ = {
+}, t$ = {
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"
};
-function a$(e) {
- return `${Qke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function n$(e) {
+ return `${tAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
-var o$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", s$ = {
- face: SU({
+var r$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", i$ = {
+ face: yU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69091,34 +69091,34 @@ var o$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", s
summary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",
detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",
arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"
-}, $ke = [
+}, nAe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], eAe = [
+], rAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function tAe(e = {}) {
- return `${SU({
+function iAe(e = {}) {
+ return `${yU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var nAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", rAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function c$({ interactive: e = !1 } = {}) {
- return SU({
+var aAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", oAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function a$({ interactive: e = !1 } = {}) {
+ return yU({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var l$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function iAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var o$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function sAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -69151,13 +69151,13 @@ function iAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function aAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function cAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.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, I.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${$ke[n % 4]} ${eAe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nAe[n % 4]} ${rAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69178,96 +69178,96 @@ function aAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var u$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", d$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", f$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", p$ = "disabled data-skeleton-action", oAe = "aria-disabled=\"true\"", m$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, h$ = (e, t, n) => `<div class="${r$[n]}"><div class="flex flex-col gap-2">
+var s$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", c$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", l$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", u$ = "disabled data-skeleton-action", lAe = "aria-disabled=\"true\"", d$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, f$ = (e, t, n) => `<div class="${e$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function sAe() {
- return m$(`<section aria-label="扫描与采集" class="${a$("stack")}" data-cleanup-task data-cleanup-processing>
- ${h$("扫描与采集", u$, "stack")}
- <footer class="${i$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
+function uAe() {
+ return d$(`<section aria-label="扫描与采集" class="${n$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${f$("扫描与采集", s$, "stack")}
+ <footer class="${t$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
label: "同步新增文件",
- attrs: p$
+ attrs: u$
})}${Os({
glyph: "chevron-down",
- attrs: `${p$} aria-label="更多同步方式"`
+ attrs: `${u$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function cAe() {
- return m$(`<section aria-label="媒体修复" class="${a$("split")}" data-cleanup-task data-cleanup-processing>
- ${h$("媒体修复", d$, "split")}
- <footer class="${i$.split}">${As(f$, {
+function dAe() {
+ return d$(`<section aria-label="媒体修复" class="${n$("split")}" data-cleanup-task data-cleanup-processing>
+ ${f$("媒体修复", c$, "split")}
+ <footer class="${t$.split}">${As(l$, {
className: "w-48",
- attrs: oAe
+ attrs: lAe
})}${Os({
label: "开始修复",
- attrs: p$
+ attrs: u$
})}</footer>
</section>`);
}
-function lAe() {
- let e = (e, t, n, r = "") => `<div class="${s$.face}"><span class="${s$.icon}">${Ts(t, "size-5")}</span><span class="${s$.body}"><span class="${s$.title}">${e}</span><span class="${s$.summary}">${n}</span>${r ? `<span class="${s$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", s$.arrow)}</div>`, t = (e, t) => `<div class="${c$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${f$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${f$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function fAe() {
+ let e = (e, t, n, r = "") => `<div class="${i$.face}"><span class="${i$.icon}">${Ts(t, "size-5")}</span><span class="${i$.body}"><span class="${i$.title}">${e}</span><span class="${i$.summary}">${n}</span>${r ? `<span class="${i$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", i$.arrow)}</div>`, t = (e, t) => `<div class="${a$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${l$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${l$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
- <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${l$}">${[
+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${o$}">${[
["人工复核", "square-check-big"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${sAe()}</div>
- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${o$}">${r(!1)}</div></section>
- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${o$}">${r(!0)}</div></section>
+ <div id="libraryProcessing" class="scroll-mt-20">${uAe()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${r$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${r$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var uAe = SU({
+var pAe = yU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), dAe = "border-t border-border-button-default p-4 first:border-t-0";
-function fAe({ id: e, children: t }) {
+}), mAe = "border-t border-border-button-default p-4 first:border-t-0";
+function hAe({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function g$({ id: e, gap: t = "none", children: n }) {
+function p$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function _$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function m$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: a$(e),
+ className: n$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: r$[e],
+ className: e$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: i$[e],
+ className: t$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function v$({ className: e, ...t }) {
+function h$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: q("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function y$({ title: e, href: t, children: n }) {
+function g$({ title: e, href: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(v$, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(h$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -69277,23 +69277,23 @@ function y$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var pAe = {
+var gAe = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function b$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(GU, {
+function _$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(HU, {
"data-status-tone": e,
variant: "caption",
- color: pAe[e],
+ color: gAe[e],
...t
});
}
// src/react/components/path-line.tsx
-function mAe({ className: e }) {
+function _Ae({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69306,8 +69306,8 @@ function mAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var hAe = "打开文件管理器失败,请重试";
-function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var vAe = "打开文件管理器失败,请重试";
+function v$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
l.current = !1;
@@ -69318,7 +69318,7 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
try {
await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");
} catch (e) {
- l.current && c(e instanceof sr ? e.message : hAe);
+ l.current && c(e instanceof sr ? e.message : vAe);
} finally {
l.current && o(!1);
}
@@ -69333,12 +69333,12 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(oL, {
- icon: mAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: _Ae,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...mV(a)
+ ...dV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69348,7 +69348,7 @@ function x$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function gAe(e, t) {
+async function yAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69371,69 +69371,69 @@ async function gAe(e, t) {
rows: n
}, null, 2);
}
-function _Ae(e, t) {
+function bAe(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var vAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", yAe = (e) => {
+var xAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", SAe = (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(",")}。`;
-}, bAe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + yAe(e);
-function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = eve(e), o = mH(), s = mH(), [c, l] = (0, F.useState)(""), u = eH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = Z_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && tH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = QV(e), y = zV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(XV, {
+}, CAe = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + SAe(e);
+function wAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = rve(e), o = dH(), s = dH(), [c, l] = (0, F.useState)(""), u = ZV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = eve(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && QV(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = YV(e), y = IV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(qV, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(ZV, n), l(t ? e.job_id : "");
+ H.setQueryData(JV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!o.busy),
- onClick: () => void o.run("export", (t) => gAe(e, t), (t) => {
- _Ae(e.job_id, t), i("已导出问题清单");
+ ...dV(!!o.busy),
+ onClick: () => void o.run("export", (t) => yAe(e, t), (t) => {
+ bAe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? nH : "",
+ m ? $V : "",
f
].filter(Boolean).join("\n") : f || `这一趟有 ${(e.issue_count || 0).toLocaleString()} 项问题。`;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- v ? /* @__PURE__ */ (0, I.jsx)(rve, {
+ v ? /* @__PURE__ */ (0, I.jsx)(ove, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
title: "处理较慢",
- children: vAe
+ children: xAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "success",
title: "处理完成",
- children: bAe(n)
+ children: CAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: p ? m ? "warning" : "error" : "neutral",
className: "gap-0 p-3",
title: p ? m ? "处理已结束,部分项目需处理" : "处理未完成" : void 0,
action: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- m ? /* @__PURE__ */ (0, I.jsx)(pH, {
- href: rH,
+ m ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ href: eH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69447,7 +69447,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...mV(!!s.busy),
+ ...dV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69455,7 +69455,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3",
- children: /* @__PURE__ */ (0, I.jsx)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69463,7 +69463,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: /* @__PURE__ */ (0, I.jsx)("ul", {
ref: y,
className: "max-h-96 overflow-y-auto",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(y$, {
+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(g$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69479,7 +69479,7 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(x$, {
+ children: /* @__PURE__ */ (0, I.jsx)(v$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69492,70 +69492,70 @@ function xAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null] }),
children: S
}) : null,
- e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...mV(!!s.busy),
+ ...dV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function S$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = TH(e), o = It({
- mutationFn: (e) => V(XV, e),
+function y$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SH(e), o = It({
+ mutationFn: (e) => V(qV, e),
onSuccess: (e) => {
- a(), H.setQueryData(ZV, e), H.invalidateQueries({ queryKey: ZV });
+ a(), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = eU(c), u = o.error ? lr(o.error) : r.isError ? r.data ? sH : lr(r.error) : "", d = o.isPending || eH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = ZH(c), u = o.error ? lr(o.error) : r.isError ? r.data ? iH : lr(r.error) : "", d = o.isPending || ZV(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(_$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(m$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/sources",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(pH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(pH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/review",
size: "small",
- trailingIcon: vB,
+ trailingIcon: hB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(AK, {
+ /* @__PURE__ */ (0, I.jsx)(DK, {
scan: !0,
busy: o.isPending,
- occupied: eH(s),
+ occupied: ZV(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(Y_e(s))
+ onOccupied: () => t(Q_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69565,7 +69565,7 @@ function S$(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(g$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(p$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69573,31 +69573,31 @@ function S$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (eH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (ZV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => $H(c, !0),
+ onClick: () => XH(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: u$
+ children: s$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(b$, { children: "已暂停" })
- }) : eH(s) ? /* @__PURE__ */ (0, I.jsx)(dve, { state: s }) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(_$, { children: "已暂停" })
+ }) : ZV(s) ? /* @__PURE__ */ (0, I.jsx)(mve, { state: s }) : null,
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: iH(s)
+ children: tH(s)
}) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)(KH, { traffic: s.traffic }) : null,
- eH(s) ? /* @__PURE__ */ (0, I.jsx)(wH, { state: s }) : null
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)(UH, { traffic: s.traffic }) : null,
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)(xH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(xAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(wAe, {
state: s,
problem: u,
settled: i,
@@ -69612,32 +69612,32 @@ function S$(e) {
});
}
// src/react/playlists/playlists.ts
-var SAe = "/api/playlists", C$ = "/api/playlist", w$ = ["playlists"], T$ = (e) => B(SAe, e);
-async function CAe(e) {
+var TAe = "/api/playlists", b$ = "/api/playlist", x$ = ["playlists"], S$ = (e) => B(TAe, e);
+async function EAe(e) {
await H.fetchQuery({
- queryKey: w$,
- queryFn: () => T$(e),
+ queryKey: x$,
+ queryFn: () => S$(e),
staleTime: 0
});
}
-var wAe = () => H.invalidateQueries({
- queryKey: w$,
+var DAe = () => H.invalidateQueries({
+ queryKey: x$,
exact: !0
-}), TAe = (e) => e.current_asset_id || e.preview_asset_id || null, EAe = (e) => `/poster?id=${e}&c=4`, DAe = (e) => V(C$, {
+}), OAe = (e) => e.current_asset_id || e.preview_asset_id || null, kAe = (e) => `/poster?id=${e}&c=4`, AAe = (e) => V(b$, {
action: "create",
name: e,
asset_ids: []
-}), OAe = (e, t) => V(C$, {
+}), jAe = (e, t) => V(b$, {
action: "rename",
id: e,
name: t
-}), kAe = (e) => V(C$, {
+}), MAe = (e) => V(b$, {
action: "delete",
id: e
-}), AAe = (e) => B(`${C$}?id=${e}`).catch(() => null);
-function jAe(e) {
+}), NAe = (e) => B(`${b$}?id=${e}`).catch(() => null);
+function PAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(C$, {
+ return V(b$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69646,28 +69646,32 @@ function jAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var E$ = "/api/custom-metadata", D$ = ["custom-metadata"], O$ = (e) => B(E$, e), MAe = "/api/scraping", NAe = "/api/scraping/settings", PAe = "/api/scraping/check", k$ = "/api/scraping/cover", FAe = "/api/scraping/amane-bridge", IAe = "/api/scraping/amane-bridge/check", LAe = "/api/scraping/amane-bridge/rebuild", A$ = ["scraping"], j$ = ["scraping", "cover"], M$ = ["scraping", "amane-bridge"], RAe = 262144, N$ = (e) => B(MAe, e), P$ = (e) => B(k$, e), F$ = (e) => B(FAe, e);
-async function zAe(e) {
+var C$ = "/api/custom-metadata", w$ = ["custom-metadata"], T$ = (e) => B(C$, e), FAe = "/api/scraping", IAe = "/api/scraping/settings", LAe = "/api/scraping/check", E$ = "/api/scraping/check-all", D$ = "/api/scraping/cover", RAe = "/api/scraping/amane-bridge", zAe = "/api/scraping/amane-bridge/check", BAe = "/api/scraping/amane-bridge/rebuild", O$ = ["scraping"], k$ = ["scraping", "cover"], A$ = ["scraping", "check-all"], j$ = ["scraping", "amane-bridge"], VAe = 262144, M$ = (e) => B(FAe, e), N$ = (e) => B(D$, e), P$ = (e) => B(E$, e), F$ = (e) => B(RAe, e);
+async function HAe(e) {
await Promise.all([
H.fetchQuery({
- queryKey: A$,
+ queryKey: O$,
+ queryFn: () => M$(e)
+ }),
+ H.fetchQuery({
+ queryKey: k$,
queryFn: () => N$(e)
}),
H.fetchQuery({
- queryKey: j$,
+ queryKey: A$,
queryFn: () => P$(e)
}),
H.fetchQuery({
- queryKey: M$,
+ queryKey: j$,
queryFn: () => F$(e)
}),
H.fetchQuery({
- queryKey: D$,
- queryFn: () => O$(e)
+ queryKey: w$,
+ queryFn: () => T$(e)
})
]);
}
-function BAe(e, t) {
+function UAe(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
var I$ = /* @__PURE__ */ new Set([
@@ -69694,7 +69698,7 @@ function R$(e) {
};
}
var z$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function WAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
@@ -69785,7 +69789,7 @@ function VAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function HAe(e, t, n = Math.random) {
+function GAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -69794,7 +69798,7 @@ function HAe(e, t, n = Math.random) {
return r.filter((e) => !t.some((t) => z$(t) === z$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var UAe = () => ({
+var KAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69820,7 +69824,7 @@ var UAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), B$ = (e) => VAe({
+}), B$ = (e) => WAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69829,8 +69833,8 @@ var UAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), WAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), V$ = 4e3, GAe = 5e3, H$ = 1200;
-function KAe(e) {
+}), qAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), V$ = 4e3, JAe = 5e3, H$ = 1200;
+function YAe(e) {
if (window.requestIdleCallback) {
let t = window.requestIdleCallback(e, { timeout: V$ });
return () => window.cancelIdleCallback(t);
@@ -69843,13 +69847,13 @@ var U$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function qAe(e) {
+function XAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= UAe();
+ n.current ??= KAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= YAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= QAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => {
@@ -69860,7 +69864,7 @@ function qAe(e) {
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);
let l = { close: s.close };
t.current.expose(l), s.warm();
- let u = window.setInterval(s.rotatePlaceholder, GAe);
+ let u = window.setInterval(s.rotatePlaceholder, JAe);
return () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), window.clearInterval(u), r.cancelRoll(), r.recommendationRequest++, t.current.expose(null);
};
@@ -69868,7 +69872,7 @@ function qAe(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 = B$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(ZAe, {
+ let c = B$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(eje, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69902,7 +69906,7 @@ function qAe(e) {
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: JAe(e)
+ children: ZAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69916,7 +69920,7 @@ function qAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(XAe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)($Ae, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69955,7 +69959,7 @@ function W$(e, t) {
}
}
var G$ = "\xA0";
-function JAe(e) {
+function ZAe(e) {
let t = L$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
@@ -69990,7 +69994,7 @@ function JAe(e) {
})]
}, n));
}
-function YAe(e, t, n, r) {
+function QAe(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 () => {
@@ -70036,7 +70040,7 @@ function YAe(e, t, n, r) {
let n = e().helpers;
n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, W$(t.recommendations.map(R$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = KAe(() => {
+ t.cancelIdle(), t.cancelIdle = YAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
@@ -70072,9 +70076,9 @@ function YAe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, h(), r();
}, x = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : HAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : GAe(t.pool, o()), t.active = -1;
let a = n();
- a && (WAe(B$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (qAe(B$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70101,10 +70105,10 @@ function YAe(e, t, n, r) {
};
return {
input: (n) => {
- t.cancelRoll(), !eW(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !ZU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (eW(n)) return;
+ if (ZU(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70151,7 +70155,7 @@ function YAe(e, t, n, r) {
rotatePlaceholder: d
};
}
-function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function $Ae({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70165,9 +70169,9 @@ function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(hW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(fW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(FI, {
+ return /* @__PURE__ */ (0, I.jsxs)(MI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70177,8 +70181,8 @@ function XAe({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var K$ = (e) => e.preventDefault();
-function ZAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- rL();
+function eje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ eL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70341,8 +70345,8 @@ function J$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var Y$ = ["configuration"], X$ = (e) => B(HY, e);
-async function QAe(e) {
+var Y$ = ["configuration"], X$ = (e) => B(zY, e);
+async function tje(e) {
await H.fetchQuery({
queryKey: Y$,
queryFn: () => X$(e)
@@ -70395,7 +70399,7 @@ function $$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function $Ae({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function nje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -70429,7 +70433,7 @@ function $Ae({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var eje = [
+var rje = [
[
"strength",
"强度",
@@ -70456,8 +70460,8 @@ var eje = [
100
]
];
-function tje({ host: e, spot: t, index: n, glow: r }) {
- let i = hle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = zV(), [l, u] = (0, F.useState)("all");
+function ije({ host: e, spot: t, index: n, glow: r }) {
+ let i = vle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = IV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70470,7 +70474,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = qj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
+ r[t].color = Wj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70495,7 +70499,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70507,7 +70511,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: vle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: xle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70521,7 +70525,7 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: yle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Sle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70538,8 +70542,8 @@ function tje({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function nje({ host: e }) {
- let t = e.store.value.homeGlow, n = Bj(t.preset);
+function aje({ host: e }) {
+ let t = e.store.value.homeGlow, n = Lj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70558,10 +70562,10 @@ function nje({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: gle(t.preset)
+ children: yle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(LM, {
+ /* @__PURE__ */ (0, I.jsx)(PM, {
store: e.store,
label: "光晕配色"
}),
@@ -70572,7 +70576,7 @@ function nje({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: eje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)($Ae, {
+ children: rje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(nje, {
field: r,
label: i,
max: a,
@@ -70593,7 +70597,7 @@ function nje({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Yj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Kj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70612,7 +70616,7 @@ function nje({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Lj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(tje, {
+ children: Pj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(ije, {
host: e,
spot: n,
index: r,
@@ -70624,7 +70628,7 @@ function nje({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var rje = {
+var oje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70678,8 +70682,8 @@ function t1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = rje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Ej(Number(localStorage.getItem(e1(e))), o, s, n && n > 0 ? n : l);
+ let a = oje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Cj(Number(localStorage.getItem(e1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -70746,7 +70750,7 @@ function n1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function ije({ className: e, ref: t, ...n }) {
+function sje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: q("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
@@ -70754,7 +70758,7 @@ function ije({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function aje({ keys: e, plus: t }) {
+function cje({ keys: e, plus: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-keycaps": "",
children: e.map((e, n) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t && n ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -70769,7 +70773,7 @@ function aje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var r1 = "peach.sfw-shortcut", oje = "Shift+KeyS", i1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, sje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, cje = /* @__PURE__ */ new Set([
+var r1 = "peach.sfw-shortcut", lje = "Shift+KeyS", i1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, uje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, dje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
@@ -70802,12 +70806,12 @@ function o1(e) {
].filter(Boolean).join("+");
}
function s1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && cje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && dje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
}
function c1(e) {
- return sje.test(e);
+ return uje.test(e);
}
-function lje(e) {
+function fje(e) {
if (c1(e.code)) return { state: "waiting" };
if (!i1.test(e.code)) return {
state: "invalid",
@@ -70828,13 +70832,13 @@ function lje(e) {
shortcut: t
};
}
-function uje(e, t) {
+function pje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
function l1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var dje = {
+var mje = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70845,8 +70849,8 @@ var dje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function fje(e) {
- return dje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function hje(e) {
+ return mje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
function u1(e, t, n = l1()) {
let r = n ? [
@@ -70865,13 +70869,13 @@ function u1(e, t, n = l1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [fje(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [hje(t)] : []];
}
function d1(e, t = l1()) {
return u1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var pje = 600, f1 = {
+var gje = 600, f1 = {
ctrl: !1,
alt: !1,
shift: !1,
@@ -70882,7 +70886,7 @@ var pje = 600, f1 = {
shift: e.shiftKey,
meta: e.metaKey
});
-function mje({ current: e, onChange: t }) {
+function _je({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
modifiers: f1,
code: null
@@ -70904,7 +70908,7 @@ function mje({ current: e, onChange: t }) {
modifiers: p1(e),
code: n ? null : e.code
}), a("");
- let r = lje(e);
+ let r = fje(e);
r.state === "invalid" && a(r.problem), r.state === "done" && (t(r.shortcut), l(r.shortcut), u());
}, r = (e) => {
e.stopPropagation(), s((t) => t.code === null ? {
@@ -70917,7 +70921,7 @@ function mje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), pje);
+ let e = window.setTimeout(() => l(null), gje);
return () => window.clearTimeout(e);
}, [c]);
let d = l1(), f = (e, t, n) => u1(e, t, d).map((e) => ({
@@ -70926,7 +70930,7 @@ function mje({ current: e, onChange: t }) {
})), p = (e) => ({
label: e,
state: "slot"
- }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = o1(e) !== oje, _ = c ? `已改为 ${d1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
+ }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = o1(e) !== lje, _ = c ? `已改为 ${d1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: "SFW 快捷键" }), /* @__PURE__ */ (0, I.jsx)("small", {
@@ -70937,10 +70941,10 @@ function mje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(aje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(cje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(ije, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sje, {
"data-shortcut-keys": "",
"aria-label": `当前快捷键 ${d1(e, d)}`,
children: d1(e, d)
@@ -70967,7 +70971,7 @@ function mje({ current: e, onChange: t }) {
}
// src/react/sidebar/sidebar-order.ts
function m1(e) {
- let { mutate: t } = $Y();
+ let { mutate: t } = XY();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -70981,8 +70985,8 @@ function h1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var hje = "__home__", g1 = (e) => e === "" ? hje : e;
-function gje({ host: e }) {
+var vje = "__home__", g1 = (e) => e === "" ? vje : e;
+function yje({ host: e }) {
let t = m1(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, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
let a = h1(n, e, r, i);
a && t(a);
@@ -71044,9 +71048,9 @@ function gje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71060,7 +71064,7 @@ function gje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71070,7 +71074,7 @@ function gje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71082,7 +71086,7 @@ function gje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "eye-off" })
})
]
})]
@@ -71102,13 +71106,13 @@ function gje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(HF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71126,7 +71130,7 @@ function gje({ host: e }) {
onClick: () => {
s(g1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, g1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -71149,7 +71153,7 @@ var _1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], _je = [
+], bje = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71158,7 +71162,7 @@ var _1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], vje = [["desc", "降序"], ["asc", "升序"]], yje = [[
+], xje = [["desc", "降序"], ["asc", "升序"]], Sje = [[
"cover",
"官方封面",
""
@@ -71166,7 +71170,7 @@ var _1 = [
"thumbnail",
"预览图",
""
-]], bje = [
+]], Cje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71185,32 +71189,32 @@ var _1 = [
"切片",
"隐藏切片"
]
-], xje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
+], wje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", v1 = null, y1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, b1 = 0, x1 = null, S1 = /* @__PURE__ */ new Set();
-function Sje(e) {
+function Tje(e) {
return S1.add(e), () => {
S1.delete(e);
};
}
-function Cje() {
+function Eje() {
for (let e of [...S1]) e();
}
function C1(e) {
y1 = {
...y1,
...e
- }, (0, Rt.flushSync)(Cje);
+ }, (0, Rt.flushSync)(Eje);
}
-async function wje(e) {
+async function Dje(e) {
let t = y1.epoch, n = await e.configurable();
y1.open && y1.epoch === t && C1({ configurable: n });
}
-function Tje(e = "") {
+function Oje(e = "") {
let t = v1;
if (!t) return;
let n = _1.findIndex(([t]) => t === e);
@@ -71219,7 +71223,7 @@ function Tje(e = "") {
return;
}
os(), b1 += 1, x1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = XTe();
+ let r = $Te();
C1({
open: !0,
closing: !1,
@@ -71228,7 +71232,7 @@ function Tje(e = "") {
tab: n >= 0 ? n : y1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), wje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Dje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function w1(e = !0) {
if (!y1.open || y1.closing) return;
@@ -71242,31 +71246,31 @@ function w1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Eje = {
- open: Tje,
+var kje = {
+ open: Oje,
close: w1,
isOpen: () => y1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function Dje(e) {
- return v1 = e, Eje;
+function Aje(e) {
+ return v1 = e, kje;
}
-function Oje() {
- let e = (0, F.useSyncExternalStore)(Sje, () => y1);
- return v1 ? /* @__PURE__ */ (0, I.jsx)(jje, {
+function jje() {
+ let e = (0, F.useSyncExternalStore)(Tje, () => y1);
+ return v1 ? /* @__PURE__ */ (0, I.jsx)(Pje, {
host: v1,
view: e
}) : null;
}
-function kje(e) {
+function Mje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(xje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(wje)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
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 T1 = (e) => `settings-tab-${e}`, E1 = (e) => `settings-group-${e}`;
-function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function Nje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -71338,7 +71342,7 @@ function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: n }) : /* @__PURE__ */ (0, I.jsx)($de, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(zF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(nfe, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71349,9 +71353,9 @@ function Aje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })
]
})
})
@@ -71394,7 +71398,7 @@ function k1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function jje({ host: e, view: t }) {
+function Pje({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -71426,7 +71430,7 @@ function jje({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: kje,
+ onKeyDown: Mje,
onClick: (e) => {
e.target === e.currentTarget && w1();
},
@@ -71440,13 +71444,13 @@ function jje({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
children: _1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(pV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
id: "settingsClose",
label: "关闭设置",
onPress: () => w1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Aje, {
+ /* @__PURE__ */ (0, I.jsx)(Nje, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -71515,7 +71519,7 @@ function jje({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(nje, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(aje, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71527,18 +71531,18 @@ function jje({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(gje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(yje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Nje, {
+ /* @__PURE__ */ (0, I.jsx)(Ije, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(Pje, {
+ /* @__PURE__ */ (0, I.jsx)(Lje, {
host: e,
tab: t.tab,
epoch: d
@@ -71547,7 +71551,7 @@ function jje({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Rje, {
+ /* @__PURE__ */ (0, I.jsx)(Vje, {
host: e,
epoch: d
}),
@@ -71569,7 +71573,7 @@ function jje({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
href: "/taste",
onClick: () => w1(!1),
@@ -71589,7 +71593,7 @@ function jje({ host: e, view: t }) {
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(mje, {
+ }), /* @__PURE__ */ (0, I.jsx)(_je, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71600,7 +71604,7 @@ function jje({ host: e, view: t }) {
})
});
}
-function Mje(e, t) {
+function Fje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
@@ -71610,7 +71614,7 @@ function Mje(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Nje({ host: e, tab: t, epoch: n }) {
+function Ije({ 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, I.jsxs)(D1, {
index: 1,
@@ -71642,7 +71646,7 @@ function Nje({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, I.jsx)($$, {
id: "defaultSortSetting",
label: "默认排序",
- options: _je,
+ options: bje,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -71651,7 +71655,7 @@ function Nje({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, I.jsx)($$, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: vje,
+ options: xje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71659,7 +71663,7 @@ function Nje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Mje(e, o)
+ decorate: (e) => Fje(e, o)
})]
})
}),
@@ -71700,7 +71704,7 @@ function Nje({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Ej(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Cj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71709,14 +71713,14 @@ function Nje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(Lje, {
+ /* @__PURE__ */ (0, I.jsx)(Bje, {
host: e,
epoch: n
})
]
});
}
-function Pje({ host: e, tab: t, epoch: n }) {
+function Lje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(D1, {
index: 2,
@@ -71726,7 +71730,7 @@ function Pje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(Fje, {
+ /* @__PURE__ */ (0, I.jsx)(Rje, {
host: e,
epoch: n
}),
@@ -71736,7 +71740,7 @@ function Pje({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: yje,
+ options: Sje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71760,7 +71764,7 @@ function Pje({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Ej(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Cj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -71773,7 +71777,7 @@ function Pje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- bje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Ije, {
+ Cje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(zje, {
host: e,
id: t,
settingKey: n,
@@ -71783,12 +71787,12 @@ function Pje({ host: e, tab: t, epoch: n }) {
]
});
}
-function Fje({ host: e, epoch: t }) {
+function Rje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: JY,
- queryFn: ({ signal: e }) => QY(e),
+ queryKey: WY,
+ queryFn: ({ signal: e }) => YY(e),
staleTime: 0
- }), r = $Y(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ }), r = XY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(k1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
@@ -71813,13 +71817,13 @@ function Fje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Ije({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = $Y(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
+function zje({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = XY(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Xc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@ -71843,7 +71847,7 @@ function Ije({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Lje({ host: e, epoch: t }) {
+function Bje({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(O1, {
@@ -71878,8 +71882,8 @@ function Lje({ host: e, epoch: t }) {
})
] });
}
-function Rje({ host: e, epoch: t }) {
- let n = e.store.value, r = $Y();
+function Vje({ host: e, epoch: t }) {
+ let n = e.store.value, r = XY();
return /* @__PURE__ */ (0, I.jsx)(k1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -71889,14 +71893,14 @@ function Rje({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Ej(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Cj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function zje(e, t, n, r) {
+function Hje(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -72032,7 +72036,7 @@ function zje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var A1 = "__home__", Bje = {
+var A1 = "__home__", Uje = {
creator: 26,
tag: 30,
tech: 16
@@ -72044,7 +72048,7 @@ var A1 = "__home__", Bje = {
},
epoch: 0
}, P1 = /* @__PURE__ */ new Set();
-function Vje(e) {
+function Wje(e) {
return P1.add(e), () => {
P1.delete(e);
};
@@ -72052,7 +72056,7 @@ function Vje(e) {
function F1() {
for (let e of [...P1]) e();
}
-var Hje = {
+var Gje = {
render(e) {
N1 = {
...N1,
@@ -72066,7 +72070,7 @@ var Hje = {
}, (0, Rt.flushSync)(F1);
}
};
-function Uje(e) {
+function Kje(e) {
return M1 = e, N1 = {
...N1,
props: {
@@ -72074,26 +72078,26 @@ function Uje(e) {
filters: {},
latest: null
}
- }, Hje;
+ }, Gje;
}
-function Wje() {
- let e = (0, F.useSyncExternalStore)(Vje, () => N1);
- return M1 ? /* @__PURE__ */ (0, I.jsx)(Gje, {
+function qje() {
+ let e = (0, F.useSyncExternalStore)(Wje, () => N1);
+ return M1 ? /* @__PURE__ */ (0, I.jsx)(Jje, {
host: M1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Gje({ host: e, props: t, epoch: n }) {
+function Jje({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(Kje, {
+ /* @__PURE__ */ (0, I.jsx)(Yje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(Jje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(Zje, {
host: e,
content: t.content,
filters: t.filters,
@@ -72101,8 +72105,8 @@ function Gje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Kje({ host: e, epoch: t, version: n }) {
- let r = m1(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, F.useRef)(null), l = (0, F.useRef)(null), u = gL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Yje({ host: e, epoch: t, version: n }) {
+ let r = m1(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, F.useRef)(null), l = (0, F.useRef)(null), u = pL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || A1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -72121,7 +72125,7 @@ function Kje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = zje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = Hje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -72157,7 +72161,7 @@ function Kje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(HF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(zF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || A1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -72180,7 +72184,7 @@ function Kje({ host: e, epoch: t, version: n }) {
}), p) : null] });
}
var I1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function qje(e) {
+function Xje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72194,7 +72198,7 @@ function qje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Jje({ host: e, content: t, filters: n, latest: r }) {
+function Zje({ 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(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && ec(e.scroll, "drawer");
@@ -72203,8 +72207,8 @@ function Jje({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? Yje(e, t.facets, n, r, i) : Xje(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(Zje, {
+ let a = t.kind === "catalog" ? Qje(e, t.facets, n, r, i) : $je(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(eMe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72213,8 +72217,8 @@ function Jje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function Yje(e, t, n, r, i) {
- let a = qje(r), o = (t, r, i) => {
+function Qje(e, t, n, r, i) {
+ let a = Xje(r), o = (t, r, i) => {
if (!t.length) return null;
let o = I1(n, r);
return /* @__PURE__ */ (0, I.jsx)(z1, {
@@ -72239,12 +72243,12 @@ function Yje(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)($je, {
+ body: /* @__PURE__ */ (0, I.jsx)(nMe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Bje[d],
+ limit: Uje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72283,7 +72287,7 @@ function Yje(e, t, n, r, i) {
} : null
];
}
-function Xje(e, t, n) {
+function $je(e, t, n) {
let r = t.providers || [], i = I1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -72330,7 +72334,7 @@ function L1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function eMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => L1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -72356,7 +72360,7 @@ function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72377,8 +72381,8 @@ function Zje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var R1 = (0, F.createContext)(() => {});
-function Qje({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+function tMe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(zF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -72401,7 +72405,7 @@ function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(Qje, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(tMe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72416,7 +72420,7 @@ function z1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function $je({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function nMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, F.useContext)(R1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -72457,7 +72461,7 @@ function $je({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
}) : null] });
}
function B1({ rows: e, host: t, selected: n, badges: r }) {
@@ -72566,11 +72570,11 @@ function U1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", eMe = [
+var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", rMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], tMe = [
+], iMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72601,7 +72605,7 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], nMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", rMe = [
+], aMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", G1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", K1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", q1 = "只填域名,留空用默认地址", oMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72691,7 +72695,7 @@ var W1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", iMe = "peach.configuration.shape.v1";
+], J1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", sMe = "peach.configuration.shape.v1";
function Y1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -72700,11 +72704,11 @@ function Y1() {
return {};
}
}
-function aMe(e, t) {
+function cMe(e, t) {
try {
let n = Y1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(iMe, JSON.stringify({
+ localStorage.setItem(sMe, JSON.stringify({
...n,
[e]: t
}));
@@ -72715,16 +72719,16 @@ var X1 = (e) => Y1()[e], Z1 = (e) => e === !0, Q1 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: e0
-}), s0 = (e, 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">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, oMe = (e, t, n) => {
+}), s0 = (e, 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">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, c0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, lMe = (e, t, n) => {
let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${a0()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${oMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n, r = "") => {
+}, l0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${lMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? s0(n, i) : ""}</div></section>`, u0 = (e, t, n, r = "") => {
let i = `<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>`;
return `<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">${r ? `<div class="flex min-w-0 items-center gap-3">${r}${i}</div>` : i}${n}</div>`;
-}, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${As(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, sMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${sMe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, cMe = rMe;
-function lMe(e = X1("credentials")) {
+}, d0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => u0(e, t, `<span class="skeleton ${n}"></span>`), f0 = (e, t = "", n = "4em") => u0(e, t, t0(n)), p0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, m0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, h0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${n0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, g0 = (e) => `<div class="flex flex-col gap-1">${m0(e)}${As(t0("8em"))}</div>`, _0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${r0("16px", "16px")}${e}</span>`, v0 = (e) => `<span class="inline-flex items-center gap-1">${a0()}${e}</span>`, y0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, uMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), b0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${uMe.has(e) ? t0("100%") + t0("80%") + t0("6em") : t0("6em")}</dd></div>`).join("")}</dl>`, dMe = oMe;
+function fMe(e = X1("credentials")) {
let t = new Set($1(e?.done, 64, String));
- return cMe.map((e) => {
+ return dMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72733,19 +72737,19 @@ function lMe(e = X1("credentials")) {
};
});
}
-function uMe(e) {
+function pMe(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = i0() + (n && !e.done ? t.map(() => i0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${r0("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? p0(z(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + p0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? p0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => h0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${o0("保存配置")}</div>${y0("凭据文件")}</div></div>` : "";
return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${y0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function x0() {
- let e = lMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = fMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return l0("来源凭据", c0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(uMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(pMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? t0("5em") : "" });
}
function S0() {
let e = $1(X1("indexers")?.open, 20, Z1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${t0("6em")}${t0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${h0("名称")}${h0("Torznab 地址")}${h0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${_0("启用")}${o0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -72760,25 +72764,25 @@ function T0() {
let e = X1("cloudProxy"), t = $1(e?.accounts, 12, (e) => Array.isArray(e) ? [Z1(e[0]), Z1(e[1])] : [!1, !1]), n = Q1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${m0(v0(t0("6em")))}${p0(t0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${m0(v0(t0("8em")))}${p0(t0("50%"))}${w0("数据代理", e)}${w0("API 代理", t)}<div class="flex justify-end">${o0("保存配置")}</div></div>`).join("") : p0(t0("60%"));
return l0("CloudDrive 代理", c0(`${p0(J1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), o0("重新读取", "secondary"));
}
-var E0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, dMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var E0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, mMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
attrs: e0
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${E0("来源", As(t0("6em")), "w-full @lg:w-60")}${E0("读取策略", As(t0("4em")), "w-full @lg:w-32")}${e > 1 ? E0("移到媒体库", As(t0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, fMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, hMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Os({
label: "自动识别",
variant: "secondary",
attrs: e0
})}${n0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(t0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${dMe(t).repeat(e)}<div class="flex">${Os({
+ <div data-library-folders>${mMe(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
attrs: e0
-})}</div></div></div>`, pMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, mMe = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function hMe(e = X1("media")) {
+})}</div></div></div>`, gMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${W1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, _Me = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function vMe(e = X1("media")) {
let t = $1(e?.folders, 12, (e) => Q1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -72788,7 +72792,7 @@ function hMe(e = X1("media")) {
cloud: !1
};
}
-function gMe() {
+function yMe() {
let e = X1("discovery"), t = Z1(e?.enabled), n = t && Z1(e?.cloud), r = n && Z1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${n0()}</span>${As(t0("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
@@ -72796,13 +72800,13 @@ function gMe() {
})}</div>`;
return l0("自动发现新文件", c0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${i0()}</div>`) + d0("发现新文件后自动入库", t ? t0("10em") : "") + d0("监视本机文件夹", t && Z1(e?.watchLocal) ? t0("12em") : "") + d0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? u0("Webhook 配置", t0("20em"), "") : "") + (r ? c0(y0("查看配置"), !0) : "") + (n ? c0(`<div class="flex flex-col gap-3">${m0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Q1(e?.prefixes, 20))}</div><div>${o0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? o0("更换密钥", "secondary") : "") + o0("保存配置"));
}
-var _Me = () => {
- let e = hMe();
- return l0("媒体库与目录", c0(`${pMe}<div class="flex flex-col gap-4">${e.folders.map((t) => fMe(t, e.folders.length)).join("")}</div>
+var bMe = () => {
+ let e = vMe();
+ return l0("媒体库与目录", c0(`${gMe}<div class="flex flex-col gap-4">${e.folders.map((t) => hMe(t, e.folders.length)).join("")}</div>
<div class="self-start">${o0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${G1}</p>
- ${e.cloud ? mMe : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + gMe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, vMe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), yMe = () => {
+ ${e.cloud ? _Me : ""}<span class="text-body-medium text-text-primary">${t0("15em")}</span>`), o0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? T0() : "") + yMe() + l0("番号识别规则", c0(`${t0("90%")}${t0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), o0("保存配置")) + l0("视频预览", d0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + d0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + d0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, xMe = () => `<div>${o0("采集来源与登录状态", "secondary")}</div>` + x0() + l0("关注采集", u0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + f0("订阅源拉取") + d0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + f0("头像刷新", "重新获取关注创作者的头像。") + f0("favicon 刷新", "重新获取来源站点的图标。")) + S0() + l0("作品资料站点", c0(`<p class="text-body-2-regular text-text-secondary">${K1}</p>${h0(v0("JavDB 地址"), q1)}${h0(v0("MISSAV 地址"), q1)}`), o0("保存配置")), SMe = () => {
let e = X1("downloads"), t = Z1(e?.pikpak), n = Z1(e?.pikpakRoots) ? g0(v0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${m0(v0("PikPak 根目录对应的媒体目录"))}${p0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Z1(e?.cloud) ? l0("云下载", c0(h0("CloudDrive2 地址") + h0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Z1(e?.has115) ? h0(v0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? h0(v0("PikPak 目标目录"), "目录要已经存在。") + n : "") + h0("等待上限(小时)", t0("14em"))), o0("检查连接", "secondary") + o0("保存配置")) : "", i = Z1(e?.pikpakLoggedIn);
return r + (t ? l0("PikPak 账号", i ? b0(["账号", t0("4em")]) : c0(h0("账号") + h0("密码") + _0("保存密码,登录过期时自动重新登录")), i ? o0("登出", "secondary") : (Z1(e?.browserLogin) ? o0("用浏览器登录", "secondary") : "") + o0("登录"), {
aside: i0(),
@@ -72816,7 +72820,7 @@ var _Me = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function bMe(e) {
+function CMe(e) {
let t = e === "locked" ? "" : h0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + h0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (D0[e] ? p0(D0[e]) : "") + (e === "open" ? r0("100%", "64px") : "") + (e === "password" || e === "legacy" ? _0("关闭访问密码") : "") + (e === "password" ? h0("当前访问密码 *") : "") + t;
}
@@ -72824,20 +72828,20 @@ function k0() {
let e = X1("devices");
return l0("已登录的设备", Array.from({ length: Math.max(1, Q1(e?.rows, 8)) }, () => u0(t0("8em"), t0("14em"), t0("3em"), r0("20px", "20px"))).join(""), Z1(e?.manageable) ? o0("撤销其他设备", "secondary") : "", Z1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var xMe = () => {
+var wMe = () => {
let e = X1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Z1(e?.tunnelNamed), r = (n && Z1(e?.tunnelNamedMode) ? p0(O0.named) + h0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + h0("隧道令牌", t0("16em")) : p0(O0.quick)) + (Z1(e?.tunnelNote) ? r0("100%", "64px") : ""), i = Q1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${h0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${o0("复制地址", "secondary")}</div>`).join("");
- return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(bMe(t)), t === "locked" ? "" : o0("保存配置")) + (t === "password" || t === "legacy" ? k0() : "") + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
-}, SMe = [
+ return (i || Z1(e?.port) ? l0("访问地址", c0(a + (i ? r0("100%", "40px") : "") + (Z1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${m0("谁可以访问")}${r0("min(100%, 20em)", "36px")}</div>` + (Z1(e?.lan) ? h0("局域网访问地址") : "") : "") + (Z1(e?.port) ? h0("端口") : "")), Z1(e?.port) ? o0("保存配置") : "", Z1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + l0("访问密码", c0(CMe(t)), t === "locked" ? "" : o0("保存配置")) + (t === "password" || t === "legacy" ? k0() : "") + l0("Cloudflare 公网入口", c0((n ? r0("10.5em", "36px") : "") + r), o0("启动公网入口", n ? "secondary" : "primary") + (n ? o0("保存配置") : ""), { aside: i0() }) + l0("Peach 代理", d0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Z1(e?.proxyAddress) ? c0(h0("代理地址"), !0) : ""), o0("保存配置"));
+}, TMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], CMe = () => {
+], EMe = () => {
let e = X1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -72848,25 +72852,25 @@ var xMe = () => {
return l0("检查更新", b0(t) + (n ? c0(p0(t0("50%")).repeat(n), !0) : ""), o0("检查更新"), {
aside: i0("4em"),
status: t0("5em")
- }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : SMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
+ }) + l0("自动更新", d0("自动检查新版本") + d0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + d0("检查频率", Z1(e?.autoUpdateHelp) ? t0("12em") : "", "ui-configuration-skeleton-select"), o0("保存配置")) + l0("开机自启", d0("开机后启动 Peach") + d0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + d0("在桌面创建快捷方式", Z1(e?.desktopNote) ? t0("12em") : "") + (Z1(e?.startupNote) ? c0(p0(t0("60%")), !0) : ""), o0("保存配置")) + l0("视频播放", d0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + l0("存储空间", b0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => u0(t0("6em"), "", t0("4em"))).join("") : c0(p0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? c0(p0(t0("80%")).repeat(i), !0) : ""), o0("更改位置", "secondary") + o0(r ? "重新统计" : "统计占用")) + (c || l ? l0("数据上传", c + l) : "") + l0("运行信息", b0(a.length ? a : TMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${u0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", o0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? l0("卸载 Peach", (Z1(e?.uninstallHelp) ? c0(p0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + d0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + c0(y0("数据目录"), !0), o0("卸载 Peach"), { status: t0("16em") }) : "");
};
-function wMe(e) {
+function DMe(e) {
switch (e) {
case "系统诊断": return U1();
- case "来源与订阅": return vMe();
- case "下载渠道": return yMe();
- case "网络与访问": return xMe();
- case "应用与维护": return CMe();
- default: return _Me();
+ case "来源与订阅": return xMe();
+ case "下载渠道": return SMe();
+ case "网络与访问": return wMe();
+ case "应用与维护": return EMe();
+ default: return bMe();
}
}
-function TMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${wMe(e)}</div></div></div>`;
+function OMe(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${DMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var A0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), j0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", M0 = (e, t, n) => `<span data-entity-layout="" class="${aU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${oU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${j0}>${A0(r)}</span>`).join("")}</span>`;
+var A0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), j0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", M0 = (e, t, n) => `<span data-entity-layout="" class="${nU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${rU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${j0}>${A0(r)}</span>`).join("")}</span>`;
function N0(e, t, { folders: n = !0 } = {}) {
- let r = iG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? M0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${j0}>${A0("ri-folder-3-line")}</button>` : "";
+ let r = tG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? M0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${j0}>${A0("ri-folder-3-line")}</button>` : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${j0}>${A0("shuffle")}</button>${a}${M0("馆藏显示方式", r, [[
"cards",
"卡片",
@@ -72883,13 +72887,13 @@ var P0 = 64, F0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), EMe = (e) => e.repeat(P0), I0 = (e) => EMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function DMe(e, t, n) {
- let r = e.map((e) => `<a href="${F0(e.href)}" data-catalog-view="${F0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${F0(e.label)}</a>`).join(""), i = NG();
+})[e]), kMe = (e) => e.repeat(P0), I0 = (e) => kMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function AMe(e, t, n) {
+ let r = e.map((e) => `<a href="${F0(e.href)}" data-catalog-view="${F0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${F0(e.label)}</a>`).join(""), i = AG();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${I0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${I0("studio")}</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="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(P0) + `</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-summary=""><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>${Es()}</span>` + (n ? N0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.visibility.v1", OMe = {
+var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.visibility.v1", jMe = {
name: {
width: 300,
min: 240,
@@ -72935,7 +72939,7 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, kMe = {
+}, MMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72945,7 +72949,7 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, AMe = {
+}, NMe = {
code: "code",
dur: "duration",
score: "source_score",
@@ -72962,17 +72966,17 @@ var L0 = "peach.table.jav-releases.widths.v1", R0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: kMe[e],
- ...OMe[e],
+ label: MMe[e],
+ ...jMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function jMe() {
- return MJ(z0, L0, R0);
+function PMe() {
+ return kJ(z0, L0, R0);
}
// src/jav-skeleton.ts
-var B0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, MMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, V0 = "w-full min-w-0";
+var B0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, FMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, V0 = "w-full min-w-0";
function H0() {
return [
"w-20",
@@ -72983,10 +72987,10 @@ function H0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function U0(e, t = fM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${B0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${MMe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${B0("80%")}${B0("60%")}${B0("40%")}</div></div>`).join("")}</div>`;
- let n = bM({
- ...yM({
+function U0(e, t = lM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${B0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${FMe("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${B0("80%")}${B0("60%")}${B0("40%")}</div></div>`).join("")}</div>`;
+ let n = _M({
+ ...gM({
active: !0,
home: !1,
portrait: !1
@@ -73002,24 +73006,24 @@ function U0(e, t = fM()) {
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-var NMe = {
+var IMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function PMe(e) {
- let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${B0("100%")}</div>${U0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${FMe()}${iG() === "list" ? `<div data-catalog-table>${IJ(jMe())}</div>` : U0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${IMe()}${U0(e)}</section>`;
+function LMe(e) {
+ let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${B0("100%")}</div>${U0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${RMe()}${tG() === "list" ? `<div data-catalog-table>${NJ(PMe())}</div>` : U0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${zMe()}${U0(e)}</section>`;
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, NMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, IMe[e] || "筛选")}</div>${Os({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${sU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${iU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
${n}</div></div>`;
}
-function FMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = lW.map(([e, r, i]) => ({
+function RMe() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = oW.map(([e, r, i]) => ({
key: e,
label: r,
ariaLabel: i,
@@ -73036,14 +73040,14 @@ function FMe() {
${N0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
+ value: lM(),
+ options: iM
}, { folders: !1 })}
</div>
</div>`;
}
-function IMe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${fM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
+function zMe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${lM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div 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 data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${H0()}</div></div>
@@ -73052,14 +73056,14 @@ function IMe() {
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Es()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${cW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${aW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
var W0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", G0 = (e = "60%") => `<span class="${W0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, K0 = "disabled data-skeleton-action", q0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function LMe() {
+function BMe() {
let e = [
"馆藏视频",
"看过",
@@ -73100,7 +73104,7 @@ function LMe() {
</section>
</div></div>`;
}
-function RMe() {
+function VMe() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -73156,7 +73160,7 @@ function RMe() {
</div>
</div></div>`;
}
-function zMe() {
+function HMe() {
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="${W0} 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">${G0("70%")}</span>
@@ -73184,7 +73188,7 @@ function zMe() {
${t.repeat(2)}
</div></div>`;
}
-function BMe() {
+function UMe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${W0} 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">${G0("80%")}</h3><p class="text-body-2-regular">${G0("60%")}</p></div>
@@ -73202,14 +73206,14 @@ function BMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe = () => `${J0("80%")}${J0("48%")}`, Y0 = (e, t) => e.repeat(t), X0 = "disabled data-skeleton-action", Z0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, HMe = "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", $0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, WMe = () => `${J0("80%")}${J0("48%")}`, Y0 = (e, t) => e.repeat(t), X0 = "disabled data-skeleton-action", Z0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Q0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, GMe = "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", $0 = () => `<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="${HMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z0("3em")}</b></div>`).join("")}</div>`, UMe = (e = "") => kZ.some(([t]) => t === e) ? e : "list", e2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${kZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, t2 = (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>`, WMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${GMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Z0("3em")}</b></div>`).join("")}</div>`, KMe = (e = "") => EZ.some(([t]) => t === e) ? e : "list", e2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${EZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, t2 = (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>`, qMe = ({ table: e, sort: t, dir: n }) => {
let r = ur.find(([e]) => e === t)[1];
return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${Z0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
@@ -73244,7 +73248,7 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
size: "small",
glyph: "trash",
attrs: X0
-})}</span>`, GMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${t2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Z0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q0(14, 14)}</span>${Q0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${Z0("113px")}</span>${n2()}</span></div>`, r2 = (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>${Q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Z0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+})}</span>`, JMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${t2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Z0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Q0(14, 14)}</span>${Q0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${Z0("113px")}</span>${n2()}</span></div>`, r2 = (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>${Q0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Z0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -73261,13 +73265,13 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
glyph: "chevron-up",
label: "收起",
attrs: X0
-})}</span></span></div><div data-source-divider>${Y0(GMe(), e)}</div></section>`, KMe = () => {
+})}</span></span></div><div data-source-divider>${Y0(JMe(), e)}</div></section>`, YMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, qMe = [
+}, XMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73275,13 +73279,13 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], JMe = {
+], ZMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, i2 = "<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>", YMe = (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>${qMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${JMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${i2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y0(`<tr>${[
+}, i2 = "<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>", QMe = (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>${XMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${ZMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${i2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Y0(`<tr>${[
t2(),
`<span class="flex min-w-0 items-center gap-2">${Q0(32, 32, !0)}${Z0("5em")}</span>`,
Z0("10em"),
@@ -73289,39 +73293,39 @@ var J0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, VMe
Q0(48, 24),
Z0("113px"),
n2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, XMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Z0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q0(204, 32)}</div></div>`, ZMe = () => `<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 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${Z0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, $Me = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Z0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Q0(204, 32)}</div></div>`, eNe = () => `<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 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${Z0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${Z0(e)}</span>`).join("")}</div>`, QMe = (e) => {
- let t = UMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<div class="flex flex-col gap-4">${ZMe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || KMe(), a = n ? YMe(i, r) : `${t2("全选本页")}<div class="flex flex-col gap-3">${r2(3)}${r2(4)}${r2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<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 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${WMe({
+].map((e) => `<span class="text-body-medium">${Z0(e)}</span>`).join("")}</div>`, tNe = (e) => {
+ let t = KMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<div class="flex flex-col gap-4">${eNe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || YMe(), a = n ? QMe(i, r) : `${t2("全选本页")}<div class="flex flex-col gap-3">${r2(3)}${r2(4)}${r2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${$0()}<div class="flex flex-col gap-6">${e2(t)}<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 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${qMe({
table: n,
...r
- })}${a}${XMe(n, i)}</div></div></div></div></div>`;
+ })}${a}${$Me(n, i)}</div></div></div></div></div>`;
};
-function $Me() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${J0("85%")}${J0("65%")}${Y0(VMe(), 4)}</div></aside></div>`;
+function nNe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${J0("85%")}${J0("65%")}${Y0(WMe(), 4)}</div></aside></div>`;
}
-function eNe(e, t = {}) {
+function rNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = LMe();
+ if (e === "/stats") n = BMe();
else if (e === "/jav") {
- let e = cU(new URLSearchParams(location.search).get("tab"));
- n = PMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = RMe();
- else if (e === "/subscriptions") n = QMe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = TMe(kf[e.split("/")[2]]);
+ let e = aU(new URLSearchParams(location.search).get("tab"));
+ n = LMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = VMe();
+ else if (e === "/subscriptions") n = tNe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = OMe(kf[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${Z0("8em")}</span><span class="text-caption-1-regular">${Z0("14em")}</span>${Z0("60%")}${Z0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Z0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = zMe();
- else if (e === "/quality-goals") n = BMe();
+ else if (e === "/duplicates") n = HMe();
+ else if (e === "/quality-goals") n = UMe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Os({
label: "新建",
attrs: X0
@@ -73330,7 +73334,7 @@ function eNe(e, t = {}) {
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function tNe(e) {
+function iNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -73338,10 +73342,10 @@ function tNe(e) {
}
function a2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return tNe(n ?? t.body);
+ return iNe(n ?? t.body);
}
var o2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function nNe(e) {
+function aNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
let t = e.matches(o2) ? e : e.querySelector(o2);
@@ -73354,13 +73358,13 @@ function s2(e) {
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var c2 = (e) => ["follow-item", e], rNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, iNe = "/api/follow/save", aNe = "/api/follow/media/hide", l2 = class extends Error {
+var c2 = (e) => ["follow-item", e], oNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, sNe = "/api/follow/save", cNe = "/api/follow/media/hide", l2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function u2(e, t) {
- let n = await B(rNe(e), t);
+ let n = await B(oNe(e), t);
for (let t of n.groups || []) {
let r = la(t).find((t) => t.id === e);
if (r) return {
@@ -73372,7 +73376,7 @@ async function u2(e, t) {
}
throw new l2();
}
-function oNe(e) {
+function lNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = la(t.group).find((t) => t.id === e);
@@ -73390,13 +73394,13 @@ async function d2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? oNe(e.id);
+ } : H.getQueryData(n) ?? lNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
queryFn: () => u2(e.id, t)
}), await i;
}
-function sNe(e, t, n, r) {
+function uNe(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 && va(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,
@@ -73411,32 +73415,32 @@ function sNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var cNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), lNe = {
+var dNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), fNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, uNe = {
+}, pNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function dNe(e) {
+function mNe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return lNe[t] || t;
+ return fNe[t] || t;
} catch {
return "外部文件页";
}
}
function f2(e, t) {
- return uNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return pNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function fNe(e, t, n = "") {
+function hNe(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;
@@ -73445,16 +73449,16 @@ function fNe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var pNe = (e) => String(e.name || "").trim(), p2 = (e, t) => e.tag_types?.[t] || "unknown", mNe = /* @__PURE__ */ new Set([
+var gNe = (e) => String(e.name || "").trim(), p2 = (e, t) => e.tag_types?.[t] || "unknown", _Ne = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function hNe(e, t) {
+function vNe(e, t) {
let n = p2(e, t);
- return `r34-${mNe.has(n) ? n : "general"}`;
+ return `r34-${_Ne.has(n) ? n : "general"}`;
}
var m2 = [
"copyright",
@@ -73463,7 +73467,7 @@ var m2 = [
"general",
"metadata"
];
-function gNe(e, t) {
+function yNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = m2.indexOf(p2(e, t));
return n < 0 ? m2.length : n;
@@ -73474,12 +73478,12 @@ function h2(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 _Ne = (e, t) => ({
+var bNe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), g2 = (e) => e?.size ? { size: e.size } : {};
-function vNe(e, t) {
+function xNe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -73500,7 +73504,7 @@ function vNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", v2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", y2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", b2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", x2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", S2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", C2 = "disabled data-skeleton-action", w2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, T2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, E2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, D2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, bNe = [
+var SNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", v2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", y2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", b2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", x2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", S2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", C2 = "disabled data-skeleton-action", w2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, T2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, E2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, D2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, CNe = [
"3em",
"5em",
"5em",
@@ -73510,7 +73514,7 @@ var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2
"8em",
"8em",
"10em"
-], xNe = [
+], wNe = [
"5.8em",
"6.4em",
"7em",
@@ -73525,9 +73529,9 @@ var yNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", _2
size: "small",
label: w2(t)
});
-function SNe() {
- return `<section class="${a$("stack")}">
- <div class="${r$.stack}">${E2("整理", "mb-3")}
+function TNe() {
+ return `<section class="${n$("stack")}">
+ <div class="${e$.stack}">${E2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${_2}</p>
<div class="mt-3 flex flex-col gap-3">
<div class="flex min-w-0 flex-wrap items-start gap-2">${As(w2("3em"), {
@@ -73539,28 +73543,28 @@ function SNe() {
</div>
<p class="text-caption-1-regular text-text-secondary">${v2}</p>
${D2(w2("12em"), { label: "文件名模板" })}${D2(w2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${bNe.map((e) => O2("secondary", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${CNe.map((e) => O2("secondary", e)).join("")}</div></div>
<p class="text-caption-1-regular text-text-secondary">路径示例:${w2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${xNe.map((e) => O2("ghost", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${wNe.map((e) => O2("ghost", e)).join("")}</div></div>
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${y2}</p>
</div>
</div>
- <footer class="${i$.stack}">${Os({
+ <footer class="${t$.stack}">${Os({
label: "预览",
attrs: C2
})}</footer>
</section>`;
}
-var CNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${a$("split")}"><div class="${r$.split}">${E2("资源同步", "mb-2")}
+var ENe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${n$("split")}"><div class="${e$.split}">${E2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${b2}</p></div>
- <footer class="${i$.split}">${Os({
+ <footer class="${t$.split}">${Os({
glyph: "git-compare",
label: "检查文件",
attrs: C2
})}</footer></section>
-</section>`, k2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${w2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${w2("14em")}</small>` : ""}</div>`, wNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${a$("stack")}"><div class="${r$.stack}">${E2("链接管理", "mb-2")}
+</section>`, k2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${w2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${w2("14em")}</small>` : ""}</div>`, DNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${n$("stack")}"><div class="${e$.stack}">${E2("链接管理", "mb-2")}
<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${k2("链接总数", !0)}${[
0,
1,
@@ -73571,7 +73575,7 @@ var CNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
"10em",
"8em"
].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${T2(16, 16)}${w2(e)}${T2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${i$.stack}">${Os({
+ <footer class="${t$.stack}">${Os({
glyph: "link",
label: "检查死链",
attrs: C2
@@ -73579,7 +73583,7 @@ var CNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
</section>`;
function A2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${t2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${i2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${t2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${SU({
+ return `<div data-data-table-panel class="${yU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
@@ -73601,14 +73605,14 @@ function A2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${w2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${w2(e)}</span><small class="text-caption-1-regular">${w2(t)}</small></span>`, ENe = {
+var ONe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${w2(e)}</span><small class="text-caption-1-regular">${w2(t)}</small></span>`, kNe = {
organize: {
label: "正在读取整理配置",
- body: SNe
+ body: TNe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: CNe
+ body: ENe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
@@ -73620,7 +73624,7 @@ var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${TNe("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${ONe("70%", "40%")}</span>`
},
{
label: "个人记录",
@@ -73642,11 +73646,11 @@ var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: cAe
+ body: dAe
},
links: {
label: "正在读取链接统计",
- body: wNe
+ body: DNe
},
"batch-delete": {
label: "正在读取女优列表",
@@ -73681,7 +73685,7 @@ var TNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
}
};
function j2(e) {
- let { label: t, body: n } = ENe[e];
+ let { label: t, body: n } = kNe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
@@ -73693,7 +73697,7 @@ var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), DNe = [
+}), ANe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73703,15 +73707,15 @@ var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], ONe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], jNe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${DNe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${ANe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, kNe = {
- "/data-cleanup": () => lAe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, MNe = {
+ "/data-cleanup": () => fAe(),
...Object.fromEntries(Yf.map((e) => [e.path, () => j2(e.key)])),
"/resource-sync": () => j2("resource-sync"),
- "/review": () => ONe(),
+ "/review": () => jNe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${M2("正在读取采集来源", {
cards: !0,
@@ -73721,13 +73725,13 @@ var M2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
})}</div>`
};
function N2(e, { followLayout: t, followSort: n, followDir: r }) {
- return eNe(e, {
+ return rNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (kNe[e] ?? (() => M2("正在读取页面")))();
+ }) || (MNe[e] ?? (() => M2("正在读取页面")))();
}
var P2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function F2(e, t) {
@@ -73748,17 +73752,17 @@ function I2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: /* @__PURE__ */ (0, I.jsx)(PG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: QB,
+ icon: YB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73862,7 +73866,7 @@ function R2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(ANe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(NNe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73881,7 +73885,7 @@ function R2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function ANe({ item: e, selected: t, onSelect: n, render: r }) {
+function NNe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -73907,7 +73911,7 @@ function ANe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var jNe = (e, t, n) => [
+var PNe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -73929,19 +73933,19 @@ function z2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-var MNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function NNe(e, t, n) {
+var FNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function INe(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !MNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !FNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
return {
reasons: a && c?.author_key === a ? ["同创作者"] : [],
tags: l
};
};
}
-async function PNe(e, t, n, r) {
+async function LNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
..._a(i),
status: "new",
@@ -73964,13 +73968,13 @@ async function PNe(e, t, n, r) {
var B2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), FNe = 20;
+}), RNe = 20;
function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Ft({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = mH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = dH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73981,7 +73985,7 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}, (e) => d(e));
}, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)([]), S = (e) => {
x((t) => [...t, Un(e)]), s(e);
- }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < FNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < RNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -74005,7 +74009,7 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...mV(!!g.busy),
+ ...dV(!!g.busy),
onClick: () => _(e),
children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "pencil" })
}),
@@ -74025,11 +74029,11 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? bB : _B,
+ trailingIcon: v ? _B : mB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(INe, {
+ /* @__PURE__ */ (0, I.jsx)(zNe, {
tags: e,
candidates: h,
label: a,
@@ -74041,11 +74045,11 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74054,7 +74058,7 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(JQ, {
+ u ? /* @__PURE__ */ (0, I.jsx)(GQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -74063,8 +74067,8 @@ function V2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = zV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function zNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = IV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -74109,7 +74113,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? ide(_, t, FP()) : {
+ let w = p ? sde(_, t, MP()) : {
recent: [],
results: [],
create: ""
@@ -74123,7 +74127,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!eW(t.nativeEvent)) {
+ if (!ZU(t.nativeEvent)) {
if (t.key === "Escape") t.preventDefault(), t.stopPropagation(), C(), c.current?.focus();
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
if (t.preventDefault(), !T.length) return;
@@ -74172,7 +74176,7 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...mV(!!i),
+ ...dV(!!i),
children: /* @__PURE__ */ (0, I.jsx)(B2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
@@ -74247,8 +74251,8 @@ function INe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function LNe({ item: e, label: t, actions: n }) {
- let r = mH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function BNe({ item: e, label: t, actions: n }) {
+ let r = dH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -74271,7 +74275,7 @@ function LNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && IP(s);
+ o === "add" && NP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -74288,9 +74292,9 @@ function LNe({ item: e, label: t, actions: n }) {
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
children: [/* @__PURE__ */ (0, I.jsx)(V2, {
- tags: gNe(e, t).map((t) => ({
+ tags: yNe(e, t).map((t) => ({
k: t,
- cat: hNe(e, t)
+ cat: vNe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74299,19 +74303,19 @@ function LNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => mV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ busyAttrs: () => dV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var H2 = (e) => Number(e) > 0, RNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var H2 = (e) => Number(e) > 0, VNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), U2 = R("external-link", "ui-externalmark");
-function zNe(e) {
+function HNe(e) {
let { id: t, actions: n } = e, r = Ft({
queryKey: c2(t),
queryFn: ({ signal: e }) => u2(t, e)
@@ -74319,10 +74323,10 @@ function zNe(e) {
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(HNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(GNe, {
...e,
data: r.data,
- context: _Ne(r.data, a),
+ context: bNe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74333,7 +74337,7 @@ function zNe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(W2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? BNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(VNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: r.isError ? UNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(WNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74341,8 +74345,8 @@ function zNe(e) {
})
});
}
-var BNe = (e) => e instanceof l2 || e instanceof sr && e.status === 404;
-function VNe({ onBack: e }) {
+var UNe = (e) => e instanceof l2 || e instanceof sr && e.status === 404;
+function WNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74360,8 +74364,8 @@ var W2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = sNe(c, l, n, i), d = JNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function GNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = uNe(c, l, n, i), d = ZNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74381,7 +74385,7 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? cNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(J2, {
+ let g = !u.embedded.length && u.collection ? dNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(J2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -74394,7 +74398,7 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(GNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(JNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74404,14 +74408,14 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(WNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(KNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(YNe, {
item: c,
data: e,
context: t,
@@ -74423,7 +74427,7 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, I.jsx)(L2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(UNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(KNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74433,10 +74437,10 @@ function HNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function KNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: jNe(e.item.id, t, n),
- queryFn: ({ signal: r }) => PNe(e, t, n, r)
+ queryKey: PNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => LNe(e, t, n, r)
}), [s] = (0, F.useState)(() => M2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -74444,7 +74448,7 @@ function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = z2(o.data?.pages || [], e, t, n), u = NNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = z2(o.data?.pages || [], e, t, n), u = INe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
...r,
sources: d,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
@@ -74459,7 +74463,7 @@ function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(OZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(TZ, {
variant: "next",
group: e,
media: t,
@@ -74477,8 +74481,8 @@ function UNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function WNe({ 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, F.useRef)(null), p = vNe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function qNe({ 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, F.useRef)(null), p = xNe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -74499,7 +74503,7 @@ function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void _Z(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void mZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -74507,7 +74511,7 @@ function WNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: dG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: cG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, I.jsx)(R2, {
@@ -74546,18 +74550,18 @@ function q2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function GNe({ group: e, itemId: t, helpers: n, actions: r }) {
+function JNe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = va(e), a = q2(n);
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${pG(e.primary)} · ${i.length} 个视频`,
+ summary: `${uG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = fNe(e, n, i ? n.provider_label : ""), o = i ? dG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(xK, {
+ let i = e.duplicates.includes(n), a = hNe(e, n, i ? n.provider_label : ""), o = i ? cG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(vK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
@@ -74579,7 +74583,7 @@ function GNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: SG(n)
+ children: yG(n)
})]
})]
}, n.id);
@@ -74597,17 +74601,17 @@ function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${pG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Bxe, {
+ summary: `${uG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Uxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(xK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(vK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
@@ -74616,7 +74620,7 @@ function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(G2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: pNe(n)
+ children: gNe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74624,13 +74628,13 @@ function J2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function YNe({ 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 = yG(d, e), p = _G(e, h2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = bG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = gG(d, e), p = mG(e, h2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = _G(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74646,7 +74650,7 @@ function KNe({ 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: vG(d, e) + z(pG(e)) }
+ dangerouslySetInnerHTML: { __html: hG(d, e) + z(uG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74662,7 +74666,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: SG(e) }),
+ /* @__PURE__ */ (0, I.jsx)("span", { children: yG(e) }),
H2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
@@ -74680,7 +74684,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(EZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(CZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -74712,7 +74716,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(qNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(XNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74735,7 +74739,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [dNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [mNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: U2 }
})]
@@ -74837,7 +74841,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(RNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(K2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(VNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74846,7 +74850,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(LNe, {
+ /* @__PURE__ */ (0, I.jsx)(BNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74855,7 +74859,7 @@ function KNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function qNe({ text: e }) {
+function XNe({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -74868,7 +74872,7 @@ function qNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: zI(e),
+ lang: II(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74880,7 +74884,7 @@ function qNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function JNe(e, t, n) {
+function ZNe(e, t, n) {
let r = e.id, i = c2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -74900,7 +74904,7 @@ function JNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && sW(), t.toast(yNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && iW(), t.toast(SNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74910,7 +74914,7 @@ function JNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(iNe, { item: r }),
+ mutationFn: () => V(sNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74918,7 +74922,7 @@ function JNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(aNe, {
+ await V(cNe, {
item: r,
media: e,
hidden: t
@@ -74934,12 +74938,12 @@ function JNe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: Mye(r),
- queryFn: ({ signal: e }) => Fye(r, e)
+ queryKey: Fye(r),
+ queryFn: ({ signal: e }) => Rye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await oW([e.id]) : await aW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await rW([e.id]) : await nW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), sW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), iW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74979,7 +74983,7 @@ function JNe(e, t, n) {
}
// src/react/components/identity-cell.tsx
function Y2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- rL();
+ eL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
@@ -75077,7 +75081,7 @@ function Z2(e) {
// src/react/item-detail/catalog-picture.tsx
function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(cQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(aQ, {
item: {
code: e.code,
has_cover: !1,
@@ -75091,7 +75095,7 @@ function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -75109,20 +75113,20 @@ function Q2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var $2 = (e) => ["jav-detail", e], e4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), YNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), t4 = (e, t) => H.ensureQueryData({
+var $2 = (e) => ["jav-detail", e], e4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), QNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), t4 = (e, t) => H.ensureQueryData({
queryKey: $2(e.code),
queryFn: () => e4(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function XNe(e, t) {
+function $Ne(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
var n4 = "peach.playback-target.v1", r4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function ZNe() {
+function ePe() {
try {
return localStorage.getItem(n4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
@@ -75130,7 +75134,7 @@ function ZNe() {
}
}
function i4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(ZNe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = mH();
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(ePe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = dH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
@@ -75177,12 +75181,12 @@ function i4({ id: e, onOpened: t }) {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...mV(f.busy === "open"),
+ ...dV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(IH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(NH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -75191,16 +75195,16 @@ function i4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(oV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(FH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(MH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var QNe = NI({
+var tPe = AI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75262,8 +75266,8 @@ var QNe = NI({
}
}
});
-function $Ne({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = QNe[t];
+function nPe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = tPe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("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"),
@@ -75274,11 +75278,11 @@ function $Ne({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function a4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(ehe, {
+ return /* @__PURE__ */ (0, I.jsx)(rhe, {
ref: i,
...a,
className: (t) => q("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, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)($Ne, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nPe, {
state: e,
size: n,
shape: r
@@ -75289,7 +75293,7 @@ function a4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var ePe = "/api/cover-crop", tPe = (e, t) => V(ePe, {
+var rPe = "/api/cover-crop", iPe = (e, t) => V(rPe, {
code: e,
box: t
});
@@ -75307,7 +75311,7 @@ function o4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function aPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -75318,12 +75322,12 @@ function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
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, I.jsx)(o4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(rPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(oPe, {
code: e,
coverUrl: t,
box: n,
@@ -75332,9 +75336,9 @@ function nPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = zV(), f = It({
- mutationFn: (t) => tPe(e, t),
+function oPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = IV(), f = It({
+ mutationFn: (t) => iPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75346,19 +75350,19 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : mOe(e, no);
- c(WZ(t, e, null));
+ } : _Oe(e, no);
+ c(VZ(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(cV, { children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(aV, { children: /* @__PURE__ */ (0, I.jsx)(o4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(BL, {
+ /* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75367,14 +75371,14 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: xB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75384,14 +75388,14 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.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, I.jsx)(YZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(KZ, {
src: t,
aspect: l ? no : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- HZ(e) && p(e);
+ zZ(e) && p(e);
},
onBox: c
})
@@ -75401,7 +75405,7 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, I.jsx)(a4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(WZ(s, a, no));
+ u(e), e && s && a && c(VZ(s, a, no));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75411,14 +75415,14 @@ function rPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(m),
+ ...dV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...mV(m),
+ ...dV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75436,14 +75440,14 @@ var s4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), l4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function iPe(e) {
+function sPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? gP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => TP(t, e.helpers, n),
+ queryKey: t ? pP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => SP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? OP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: hP(a ?? 0),
- queryFn: ({ signal: e }) => wP(a, e),
+ }), i = t && r.data || null, a = i ? TP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: fP(a ?? 0),
+ queryFn: ({ signal: e }) => xP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75456,7 +75460,7 @@ function iPe(e) {
"data-item-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(u4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75466,9 +75470,9 @@ function iPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(aPe, {
+ return /* @__PURE__ */ (0, I.jsx)(cPe, {
...e,
- item: tde(o.data, i),
+ item: ide(o.data, i),
queue: i
}, o.data.id);
}
@@ -75481,23 +75485,23 @@ var u4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function aPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = bPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function cPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = CPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(_P, {
+ n?.kind === "playlist" && V(mP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = YN() ? "" : dde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = kP(n, t.id);
+ let s = KN() ? "" : mde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = EP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(oPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lPe, {
item: t,
gate: s,
helpers: i,
@@ -75510,7 +75514,7 @@ function aPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(dPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(mPe, {
item: t,
queue: n,
write: a,
@@ -75519,13 +75523,13 @@ function aPe(e) {
})]
}), /* @__PURE__ */ (0, I.jsx)(L2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(cPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(dPe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(yPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(SPe, {
...e,
item: n ? {
...t,
@@ -75534,7 +75538,7 @@ function aPe(e) {
}) : null
})] });
}
-function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function lPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Ft({
queryKey: $2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -75624,7 +75628,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(f.isFetching),
+ ...dV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75633,7 +75637,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(sPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(uPe, {
item: e,
badge: y,
helpers: n,
@@ -75674,7 +75678,7 @@ function oPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function sPe({ item: e, badge: t, helpers: n, actions: r }) {
+function uPe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -75699,8 +75703,8 @@ function sPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = sde(e), a = (0, F.useRef)(null), o = uPe(e, t, r), s = (0, F.useRef)(o);
+function dPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = ude(e), a = (0, F.useRef)(null), o = pPe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -75708,7 +75712,7 @@ function cPe({ 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 = lPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = fPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75727,7 +75731,7 @@ function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(bK, {
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75736,11 +75740,11 @@ function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${ade[i.edition_label] || "censored"}`,
+ className: `javedition ${cde[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && DP(i);
- return /* @__PURE__ */ (0, I.jsxs)(xK, {
+ }) : null, s = e.kind === "playlist" && wP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(vK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75779,14 +75783,14 @@ function cPe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? LP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? PP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function lPe(e, t) {
- let n = It({ mutationFn: (t) => V(_P, {
+function fPe(e, t) {
+ let n = It({ mutationFn: (t) => V(mP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75799,11 +75803,11 @@ function lPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function uPe(e, t, n) {
- let r = gP({
+function pPe(e, t, n) {
+ let r = pP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, EP(e)), e), a = (t) => V(_P, {
+ }), i = (e) => (H.setQueryData(r, CP(e)), e), a = (t) => V(mP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75819,8 +75823,8 @@ function uPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = lde(s, t, r, c);
- if (ude(l, s)) return;
+ let l = fde(s, t, r, c);
+ if (pde(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75862,7 +75866,7 @@ function uPe(e, t, n) {
}
};
}
-function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function mPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -75870,7 +75874,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(fPe, {
+ /* @__PURE__ */ (0, I.jsx)(hPe, {
item: e,
queue: t,
helpers: r,
@@ -75882,7 +75886,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(mPe, {
+ /* @__PURE__ */ (0, I.jsx)(_Pe, {
item: e,
write: n
}),
@@ -75921,24 +75925,24 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(hPe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(gPe, {
+ /* @__PURE__ */ (0, I.jsx)(yPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(MK, {
- assetIds: jK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(kK, {
+ assetIds: OK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: hP(e.id) });
+ H.invalidateQueries({ queryKey: fP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(_Pe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(bPe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -76032,7 +76036,7 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(vPe, {
+ /* @__PURE__ */ (0, I.jsx)(xPe, {
item: e,
open: s,
write: n
@@ -76056,8 +76060,8 @@ function dPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = Z2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + cde(e, t);
+function hPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = Z2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + dde(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76084,23 +76088,23 @@ function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(MH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(nPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(aPe, {
code: e.cover_key || e.code || "",
coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: hP(e.id),
+ queryKey: fP(e.id),
exact: !0
- }), dP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), cP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(pPe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(gPe, {
id: e.id,
actions: r,
onStatus: i
@@ -76110,7 +76114,7 @@ function fPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function pPe({ id: e, actions: t, onStatus: n }) {
+function gPe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -76143,15 +76147,15 @@ function pPe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, I.jsx)(s4, { name: "folder-sync" })
})] });
}
-function mPe({ item: e, write: t }) {
- let n = pP(e.rating);
+function _Pe({ item: e, write: t }) {
+ let n = uP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": fP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
+ "data-value": lP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76165,12 +76169,12 @@ function mPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Zue(e.rating)
+ children: ede(e.rating)
})]
});
}
-function hPe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => nde(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function vPe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => ade(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, I.jsx)(Y2, {
kind: e,
@@ -76216,7 +76220,7 @@ function hPe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: _B,
+ trailingIcon: mB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76241,12 +76245,12 @@ function hPe({ item: e, actions: t }) {
})]
});
}
-function gPe({ item: e, write: t, helpers: n, actions: r }) {
+function yPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(V2, {
id: "detailTags",
- tags: rde(e, n),
+ tags: ode(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76257,8 +76261,8 @@ function gPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function _Pe({ item: e }) {
- let t = fde(e);
+function bPe({ item: e }) {
+ let t = hde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76292,7 +76296,7 @@ function _Pe({ item: e }) {
})]
});
}
-function vPe({ item: e, open: t, write: n }) {
+function xPe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -76331,10 +76335,10 @@ function vPe({ item: e, open: t, write: n }) {
})]
});
}
-function yPe(e) {
+function SPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: Que(t.id, n),
- queryFn: async ({ signal: e }) => (await B(ede(t.id, n), e)).items || []
+ queryKey: tde(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(rde(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(I2, {
wireDrag: r.wireDrag,
@@ -76344,7 +76348,7 @@ function yPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(eY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76360,8 +76364,8 @@ function yPe(e) {
}) : /* @__PURE__ */ (0, I.jsx)(c4, { html: o })
});
}
-function bPe(e, t, n) {
- let r = e.id, i = hP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function CPe(e, t, n) {
+ let r = e.id, i = fP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76377,7 +76381,7 @@ function bPe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return uP(r, n), t;
+ return sP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76392,7 +76396,7 @@ function bPe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(vP, t === void 0 ? { kind: e } : {
+ let n = await m(hP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76412,21 +76416,21 @@ function bPe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = mP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${pP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = dP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${uP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(RP(e, r), { undo: async () => {
+ t.toast(FP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(bP, {});
+ let e = await m(_P, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(bP, {})).watch_later });
+ p({ watch_later: (await m(_P, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76436,9 +76440,9 @@ function bPe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(xP, { wanted: !e.wanted });
+ }), r = await m(vP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(xP, e));
+ n(await m(vP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76452,7 +76456,7 @@ function bPe(e, t, n) {
});
u("保存中…");
try {
- o(await m(SP, {
+ o(await m(yP, {
liked: a,
reason: i
}));
@@ -76462,7 +76466,7 @@ function bPe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(SP, r));
+ o(await m(yP, r));
} });
});
},
@@ -76471,30 +76475,30 @@ function bPe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => MP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(yP, {
+ p((t) => kP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(gP, {
operation: "add",
tag: e.k
- }), p((t) => NP(t, e));
+ }), p((t) => AP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(yP, {
+ let e = await m(gP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- jP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => NP(e, {
+ OP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => AP(e, {
k: i,
cat: "general"
- })), IP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(yP, {
+ })), NP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(gP, {
operation: "remove",
tag: i
- }), p((e) => MP(e, i));
+ }), p((e) => kP(e, i));
} }));
});
}
@@ -76513,12 +76517,12 @@ function p4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function xPe(e, t = Date.now()) {
+function wPe(e, t = Date.now()) {
let n = p4(e);
return n !== void 0 && f4(t) > n ? Infinity : d4;
}
function m4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : xPe(t, n) === Infinity ? f4(e) > p4(t) : n - e < d4;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : wPe(t, n) === Infinity ? f4(e) > p4(t) : n - e < d4;
}
// src/react/wants/resource-cache.ts
var h4 = "peach.want-resources.v2";
@@ -76540,11 +76544,11 @@ function v4() {
return [];
}
}
-function SPe(e, t) {
+function TPe(e, t) {
let n = v4().find((t) => t.code === e);
return n && m4(n.saved, t) ? n : void 0;
}
-function CPe(e) {
+function EPe(e) {
let t = new Map(v4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -76553,7 +76557,7 @@ function CPe(e) {
}
return n;
}
-function wPe(e, t) {
+function DPe(e, t) {
if (t.state === "ready" && g4(t)) try {
let n = v4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(h4, JSON.stringify([{
@@ -76564,11 +76568,11 @@ function wPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function TPe(e) {
+function OPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function EPe(e) {
+function kPe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
@@ -76583,7 +76587,7 @@ function y4({ icon: e, children: t, title: n }) {
});
}
function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = mH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => SPe(h, e.release_date), [h, e.release_date]);
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = dH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => TPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76603,7 +76607,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", wPe(h, i), i;
+ return m.current = n && i.state === "busy", DPe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -76618,7 +76622,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Pye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Lye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76626,7 +76630,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await V(qU, {
+ let n = await V(WU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76637,7 +76641,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: JU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: GU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76655,39 +76659,39 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: UB,
- ...mV(x),
+ leadingIcon: BB,
+ ...dV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(EH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(CH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(lV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- children: EPe(e)
+ children: kPe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: OB,
+ trailingIcon: TB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76702,7 +76706,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(GU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76717,25 +76721,25 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, I.jsx)(y4, {
- icon: Lge,
+ icon: Bge,
children: e.source
}),
/* @__PURE__ */ (0, I.jsx)(y4, {
- icon: FB,
+ icon: MB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: TPe(e.size)
+ children: OPe(e.size)
}),
e.files ? /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: Ege,
+ icon: kge,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, I.jsx)(y4, {
- icon: fge,
+ icon: hge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(y4, {
- icon: HB,
+ icon: zB,
children: e
}, e))
]
@@ -76744,11 +76748,11 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(vL, {
+ /* @__PURE__ */ (0, I.jsx)(hL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: OB,
+ trailingIcon: TB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76757,18 +76761,18 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: wge,
- ...mV(f.busy === `copy:${e.id}`),
+ leadingIcon: Dge,
+ ...dV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? VH(v.key) : _ge,
+ leadingIcon: v ? RH(v.key) : bge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...mV(f.busy === e.id),
+ ...dV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76779,7 +76783,7 @@ function b4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(RH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(FH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76802,7 +76806,7 @@ function S4() {
return [];
}
}
-function DPe(e, t) {
+function APe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -76812,7 +76816,7 @@ function DPe(e, t) {
i.length <= 2e6 && localStorage.setItem(x4, i);
} catch {}
}
-function OPe(e, t) {
+function jPe(e, t) {
let n = S4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
@@ -76824,11 +76828,11 @@ function OPe(e, t) {
saved: i
} : void 0;
}
-function kPe(e, t, n) {
+function MPe(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && m4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function APe(e) {
+function NPe(e) {
let t = (0, F.useRef)(!1), n = Ft({
queryKey: $2(e.code),
queryFn: ({ signal: n }) => {
@@ -76843,14 +76847,14 @@ function APe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(jPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(PPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(C4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(C4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(n.error),
onRetry: r
}) : null]
@@ -76866,7 +76870,7 @@ var C4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function PPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -76886,13 +76890,13 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = mH(), m = () => {
- p.run("want", async (e) => d ? (await oW([d], e), null) : (await aW({ code: t.code }, e)).want.id, (t) => {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = dH(), m = () => {
+ p.run("want", async (e) => d ? (await rW([d], e), null) : (await nW({ code: t.code }, e)).want.id, (t) => {
f(t), H.setQueryData($2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), sW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), iW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76909,7 +76913,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(PPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(cQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(LPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(aQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
@@ -76918,7 +76922,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(cQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(aQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76932,7 +76936,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(MPe, { item: t }),
+ /* @__PURE__ */ (0, I.jsx)(FPe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(E4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
@@ -76948,7 +76952,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(NPe, {
+ /* @__PURE__ */ (0, I.jsx)(IPe, {
item: t,
navigate: n.navigate
}),
@@ -76987,14 +76991,14 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: zI(t.summary),
+ lang: II(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(a),
+ ...dV(a),
onClick: i,
children: "立即重试"
}),
@@ -77003,10 +77007,10 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(hL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: OB,
+ trailingIcon: TB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77016,7 +77020,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...mV(!!p.busy),
+ ...dV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77034,16 +77038,16 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(FPe, {
+ /* @__PURE__ */ (0, I.jsx)(RPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(IPe, {
+ /* @__PURE__ */ (0, I.jsx)(zPe, {
item: t,
actions: n,
readOnly: r
@@ -77051,7 +77055,7 @@ function jPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(tW, {
+ /* @__PURE__ */ (0, I.jsx)(QU, {
prefill: l,
close: () => u(null),
receipt: n.receipt
@@ -77067,7 +77071,7 @@ var w4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function MPe({ item: e }) {
+function FPe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = Z2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
@@ -77084,7 +77088,7 @@ function MPe({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(a),
+ lang: II(a),
children: a
})] }) : null]
})
@@ -77098,7 +77102,7 @@ function MPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(MH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kH, {})
})
})]
});
@@ -77110,13 +77114,13 @@ function E4({ score: e, review: t = !1 }) {
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(qJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function NPe({ item: e, navigate: t }) {
+function IPe({ item: e, navigate: t }) {
let n = (e, n) => t(Pn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -77132,7 +77136,7 @@ function NPe({ item: e, navigate: t }) {
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(lQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(oQ, {
code: e.code,
person: r,
detail: !0
@@ -77158,18 +77162,18 @@ function NPe({ item: e, navigate: t }) {
})]
});
}
-function PPe({ src: e }) {
+function LPe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Rue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Vue(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -77182,8 +77186,8 @@ function PPe({ src: e }) {
}) : null
});
}
-function FPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => OPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function RPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => jPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77192,12 +77196,12 @@ function FPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => kPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => MPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await YNe(e, n, t, s.current);
- if (DPe(e, i), !i.ok || i.cache_stale) {
+ let i = await QNe(e, n, t, s.current);
+ if (APe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -77207,7 +77211,7 @@ function FPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: XNe
+ getNextPageParam: $Ne
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77215,10 +77219,10 @@ function FPe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? lr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(RH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(FH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(pge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(gge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77267,28 +77271,28 @@ function FPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: zI(e.content),
+ lang: II(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetching),
+ ...dV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(lV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetching),
+ ...dV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77296,13 +77300,13 @@ function FPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...mV(c.isFetchingNextPage),
+ ...dV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(lV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77314,15 +77318,15 @@ function FPe({ code: e, count: t, released: n }) {
})
});
}
-function IPe({ item: e, actions: t, readOnly: n }) {
+function zPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: JU,
+ queryKey: GU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${qU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${WU}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)(RH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(w4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
@@ -77346,16 +77350,16 @@ function IPe({ item: e, actions: t, readOnly: n }) {
}
// src/react/stage/stage-player.ts
var D4 = null, O4 = null, k4 = null, A4 = null, j4 = null, M4 = !1, N4 = 0, P4 = null, F4 = () => !1, I4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function LPe(e, t) {
- D4 = e, F4 = () => t.isOpen(), P4 = () => t.requestClose(), Xle({
+function BPe(e, t) {
+ D4 = e, F4 = () => t.isOpen(), P4 = () => t.requestClose(), $le({
...e.player,
stage: () => document.getElementById("stage")
- }), Zle({
+ }), eue({
inMiniplayer: (e) => O4?.player === e,
kind: (e) => O4?.player === e ? O4.kind : k4?.kind ?? A4?.kind ?? "item",
expand: () => n3(),
toMiniplayer: () => r3()
- }), L4 || (L4 = !0, addEventListener("pagehide", () => WN()));
+ }), L4 || (L4 = !0, addEventListener("pagehide", () => VN()));
}
var L4 = !1;
function R4() {
@@ -77365,10 +77369,10 @@ function R4() {
function z4(e) {
A4 = e;
}
-var RPe = () => A4;
+var VPe = () => A4;
function B4(e, t) {
let { kind: n, item: r, media: i = null } = t, a = I4(n, r.id, i?.index ?? null);
- if (O4 && O4.key === a) return BPe(e, O4);
+ if (O4 && O4.key === a) return UPe(e, O4);
O4 && t3();
let o = {
player: null,
@@ -77380,7 +77384,7 @@ function B4(e, t) {
k4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = rP(s, {
+ let c = eP(s, {
kind: n,
item: r,
media: i,
@@ -77393,10 +77397,10 @@ function B4(e, t) {
});
return () => {
let e = !!o.player && O4?.player === o.player;
- k4 === o && (k4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), WN());
+ k4 === o && (k4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), VN());
};
}
-async function zPe(e, t, n) {
+async function HPe(e, t, n) {
let r = await Tn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
@@ -77420,9 +77424,9 @@ async function zPe(e, t, n) {
s || (s = !0, e && A4 === a && H4(!0), o(), A4 === a && z4(null));
};
}
-function BPe(e, t) {
+function UPe(e, t) {
let { player: n } = t;
- $4(t), O4 = null, e3(), n.el().classList.remove("vjs-peach-mini"), tP(e), e.append(n.el()), qM(n);
+ $4(t), O4 = null, e3(), n.el().classList.remove("vjs-peach-mini"), QN(e), e.append(n.el()), WM(n);
let r = {
player: n,
kind: t.kind,
@@ -77431,9 +77435,9 @@ function BPe(e, t) {
key: t.key
};
k4 = r;
- let i = nP(n, e);
- return JM(n), () => {
- k4 === r && (k4 = null), i(), O4?.player !== n && (KM() === n && qM(null), FN(n), WN());
+ let i = $N(n, e);
+ return GM(n), () => {
+ k4 === r && (k4 = null), i(), O4?.player !== n && (UM() === n && WM(null), MN(n), VN());
};
}
var V4 = () => {
@@ -77446,7 +77450,7 @@ function H4(e) {
let n = k4, r = n?.player, i = A4;
if (!n || !r || r.isDisposed() || !i || !j4) return;
let a = R4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && WPe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && qPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77461,11 +77465,11 @@ function W4(e) {
j4 = e, j4 && Z4();
}
var G4 = () => !!O4 && !O4.pending && !O4.player.isDisposed();
-function VPe() {
+function WPe() {
return G4() ? j4?.frame.querySelector("video") ?? null : null;
}
-function HPe() {
- return F4() ? document.getElementById("stage")?.querySelector("video") ?? null : V4()?.el().querySelector("video") ?? VPe();
+function GPe() {
+ return F4() ? document.getElementById("stage")?.querySelector("video") ?? null : V4()?.el().querySelector("video") ?? WPe();
}
function K4(e) {
j4 && (j4.title.textContent = e.title || "", j4.sub.textContent = e.sub || "", j4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -77514,7 +77518,7 @@ function Q4(e) {
function $4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function UPe() {
+function KPe() {
let e = j4?.root;
if (!e) return;
let t = e.hidden;
@@ -77535,7 +77539,7 @@ function e3() {
e.style.transform = "";
}
}
-function WPe(e, t) {
+function qPe(e, t) {
if (!j4) return;
let n = {
...e,
@@ -77543,13 +77547,13 @@ function WPe(e, t) {
off: [],
pending: !1
};
- O4 = n, N4++, e.player.el().classList.add("vjs-peach-mini"), j4.frame.prepend(e.player.el()), K4(t), Q4(n), UPe(), JM(e.player);
+ O4 = n, N4++, e.player.el().classList.add("vjs-peach-mini"), j4.frame.prepend(e.player.el()), K4(t), Q4(n), KPe(), GM(e.player);
}
function t3() {
let e = O4;
e && $4(e), O4 = null, N4++;
let t = e?.player ?? null;
- t && KM() === t && qM(null), FN(t), t && WN(), j4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), WM(), e3();
+ t && UM() === t && WM(null), MN(t), t && VN(), j4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), VM(), e3();
}
function n3() {
if (!G4() || !O4) return;
@@ -77559,7 +77563,7 @@ function n3() {
function r3() {
G4() && !F4() ? n3() : F4() && V4() && P4 && (M4 = !0, P4());
}
-function GPe() {
+function JPe() {
let e = O4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -77572,7 +77576,7 @@ function i3(e) {
function a3(e) {
return !(!G4() || !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 || R4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function KPe(e) {
+async function YPe(e) {
if (!G4() || !O4 || !j4) return;
let t = ++N4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
if (t !== N4 || !G4() || !O4 || !j4 || !n || n.error) return;
@@ -77581,7 +77585,7 @@ async function KPe(e) {
return;
}
let r = O4;
- $4(r), KM() === r.player && qM(null), FN(r.player), WN(), j4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ $4(r), UM() === r.player && WM(null), MN(r.player), VN(), j4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", j4.frame.prepend(i);
let a = {
@@ -77590,14 +77594,14 @@ async function KPe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- K4(a), rP(i, {
+ K4(a), eP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== N4) {
- r && KM() === r && qM(null), FN(r);
+ r && UM() === r && WM(null), MN(r);
return;
}
if (!r) {
@@ -77624,9 +77628,9 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), qPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, s3 = (e) => (t) => {
+}), XPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, s3 = (e) => (t) => {
t.stopPropagation(), e();
-}, JPe = (0, F.memo)(function() {
+}, ZPe = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => (W4({
root: e.current,
@@ -77638,7 +77642,7 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => W4(null)), []), (0, F.useEffect)(() => ZPe(e.current, t.current), []), (0, F.useEffect)(() => YPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => W4(null)), []), (0, F.useEffect)(() => eFe(e.current, t.current), []), (0, F.useEffect)(() => QPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77688,8 +77692,8 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: s3(GPe),
- dangerouslySetInnerHTML: qPe
+ onClick: s3(JPe),
+ dangerouslySetInnerHTML: XPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
@@ -77728,7 +77732,7 @@ var o3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function YPe(e) {
+function QPe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -77742,7 +77746,7 @@ function YPe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function XPe(e, t, n) {
+function $Pe(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
@@ -77764,7 +77768,7 @@ function XPe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function ZPe(e, t) {
+function eFe(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 = {
@@ -77790,7 +77794,7 @@ function ZPe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), XPe(e, i.dx, i.dy));
+ }, 0), $Pe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77809,25 +77813,25 @@ function _3() {
if (!c3) throw Error("舞台还没有接上宿主(configureStage)");
return c3;
}
-function QPe(e) {
+function tFe(e) {
return d3.add(e), () => {
d3.delete(e);
};
}
-function $Pe() {
+function nFe() {
for (let e of [...d3]) e();
}
function v3() {
- (0, Rt.flushSync)($Pe);
+ (0, Rt.flushSync)(nFe);
}
-function eFe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(tFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(JPe, {})] });
+function rFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(iFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(ZPe, {})] });
}
var y3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: $Me() }
+ dangerouslySetInnerHTML: { __html: nNe() }
});
function b3(e) {
let t = e.currentTarget;
@@ -77836,14 +77840,14 @@ function b3(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function x3() {
- let e = g3(), t = e && nNe(e);
+ let e = g3(), t = e && aNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
}))) : S3();
}
-function tFe({ view: e }) {
+function iFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -77851,7 +77855,7 @@ function tFe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(iPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(APe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(zNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(sPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(NPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(HNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77878,7 +77882,7 @@ function tFe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ children: /* @__PURE__ */ (0, I.jsx)(CD, {
getContainer: () => a2(t.current),
children: i
})
@@ -77971,7 +77975,7 @@ function w3(e) {
}
};
}
-function nFe(e, t) {
+function aFe(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 = () => {
@@ -77988,7 +77992,7 @@ function T3(e) {
let t = g3();
return !l3 || l3.content.kind !== e || m3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function rFe(e) {
+async function oFe(e) {
!u3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (u3 = {
left: window.scrollX,
top: window.scrollY,
@@ -77996,7 +78000,7 @@ async function rFe(e) {
});
let t = T3(e.kind);
if (t) {
- await aFe(e, t);
+ await cFe(e, t);
return;
}
l3 && E3({ miniplayer: !1 });
@@ -78009,12 +78013,12 @@ async function rFe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? AP(i.props, r.signal) : i.kind === "jav" ? t4(i.props, r.signal) : d2(i.props, r.signal);
+ let a = i.kind === "item" ? DP(i.props, r.signal) : i.kind === "jav" ? t4(i.props, r.signal) : d2(i.props, r.signal);
if (n !== f3 || l3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = iFe(i);
+ let o = sFe(i);
l3 = {
...l3,
phase: o ? "content" : "skeleton"
@@ -78035,31 +78039,31 @@ async function rFe(e) {
l3 = {
...l3,
phase: c ? "content" : "reveal"
- }, v3(), c || nFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, v3(), c || aFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function iFe(e) {
+function sFe(e) {
if (e.kind === "jav") return !!H.getQueryData($2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(c2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(gP(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(pP(t)) : null;
if (t && !r) return !1;
- let i = r ? OP(r, n) : n;
- return i != null && !!H.getQueryData(hP(i));
+ let i = r ? TP(r, n) : n;
+ return i != null && !!H.getQueryData(fP(i));
}
-async function aFe(e, t) {
+async function cFe(e, t) {
let n = ++f3;
p3?.abort();
let r = new AbortController();
p3 = r, h3 = !1;
let i = w3(e);
try {
- i.kind === "item" ? await AP(i.props, r.signal) : i.kind === "jav" ? await t4(i.props, r.signal) : await d2(i.props, r.signal);
+ i.kind === "item" ? await DP(i.props, r.signal) : i.kind === "jav" ? await t4(i.props, r.signal) : await d2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== f3 || !l3 || T3(e.kind) !== t) return;
- e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN), Nl(t), WM(), l3 = {
+ e.kind === "jav" ? t3() : U4(e.kind, e.id ?? NaN), Nl(t), VM(), l3 = {
...l3,
request: e,
content: i,
@@ -78068,7 +78072,7 @@ async function aFe(e, t) {
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function oFe() {
+function lFe() {
s2(null);
let e = g3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -78083,7 +78087,7 @@ function oFe() {
function E3({ miniplayer: e = !0 } = {}) {
if (f3++, p3?.abort(), p3 = null, H4(e), !l3) return;
let t = g3();
- t && Nl(t), WM(), s2(null), t?.open && t.close(), l3 = null, m3 = !1, h3 = !1, v3(), z4(null), document.body.removeAttribute("data-detail-open");
+ t && Nl(t), VM(), s2(null), t?.open && t.close(), l3 = null, m3 = !1, h3 = !1, v3(), z4(null), document.body.removeAttribute("data-detail-open");
let n = u3;
u3 = null;
let r = () => {
@@ -78095,7 +78099,7 @@ function E3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function sFe(e) {
+function uFe(e) {
l3 && (l3 = {
...l3,
content: l3.content.kind === "item" ? {
@@ -78113,62 +78117,62 @@ function sFe(e) {
}
}, v3());
}
-function cFe() {
- let e = RPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, _3().player.settings().javImage) : "";
+function dFe() {
+ let e = VPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, _3().player.settings().javImage) : "";
if (!n) return;
let r = V4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var lFe = {
- open: rFe,
- update: sFe,
- exit: oFe,
+var fFe = {
+ open: oFe,
+ update: uFe,
+ exit: lFe,
dispose: E3,
requestClose: S3,
requestEscape: x3,
- repaintPoster: cFe,
+ repaintPoster: dFe,
isOpen: () => !!l3,
showing: () => l3 && T3(l3.content.kind) ? l3.content.kind : null,
- activeVideo: () => HPe(),
- mountWallPlayer: zPe,
+ activeVideo: () => GPe(),
+ mountWallPlayer: HPe,
toggleTheater: () => {
- l3 && SN(!_3().player.settings().theaterMode);
+ l3 && yN(!_3().player.settings().theaterMode);
},
toggleMiniplayer: () => r3(),
closeMiniplayer: () => t3(),
miniplayerActive: () => G4(),
miniplayerTakesCard: (e) => a3(e),
miniplayerPlay: (e) => {
- KPe(e);
+ YPe(e);
}
};
-function uFe(e) {
- return c3 = e, LPe(e, {
+function pFe(e) {
+ return c3 = e, BPe(e, {
isOpen: () => !!l3,
requestClose: S3
- }), lFe;
+ }), fFe;
}
-function dFe() {
- let e = (0, F.useSyncExternalStore)(QPe, () => l3);
- return c3 ? /* @__PURE__ */ (0, I.jsx)(eFe, { view: e }) : null;
+function mFe() {
+ let e = (0, F.useSyncExternalStore)(tFe, () => l3);
+ return c3 ? /* @__PURE__ */ (0, I.jsx)(rFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var fFe = "/api/stats", D3 = ["stats"], O3 = (e) => B(fFe, e);
-async function pFe(e) {
+var hFe = "/api/stats", D3 = ["stats"], O3 = (e) => B(hFe, e);
+async function gFe(e) {
await H.fetchQuery({
queryKey: D3,
queryFn: () => O3(e)
});
}
-var k3 = (e) => e != null && Number.isFinite(e), mFe = (e) => k3(e) ? e.toLocaleString() : "未取得", hFe = (e, t) => k3(e) && k3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, gFe = (e, t) => {
- let n = hFe(e, t);
+var k3 = (e) => e != null && Number.isFinite(e), _Fe = (e) => k3(e) ? e.toLocaleString() : "未取得", vFe = (e, t) => k3(e) && k3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, yFe = (e, t) => {
+ let n = vFe(e, t);
return !n && k3(e) && e > 0 && k3(t) && t > 0 ? "<1%" : `${n}%`;
}, A3 = (e) => {
if (!k3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, j3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, M3 = (e) => (e.max_reached || 0) * 100, _Fe = (e) => e.kind === "online" ? "在线直接观看" : j3(e) < M3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", vFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function yFe(e, t = 6) {
+}, j3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, M3 = (e) => (e.max_reached || 0) * 100, bFe = (e) => e.kind === "online" ? "在线直接观看" : j3(e) < M3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", xFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function SFe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -78178,7 +78182,7 @@ function yFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, SFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), CFe = {
+var CFe = (e) => Math.max(1, ...e) * 1.1, wFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, TFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), EFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78186,10 +78190,10 @@ var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, wFe = (e) => e.map((e) => ({
- name: CFe[e.k] ?? e.k,
+}, DFe = (e) => e.map((e) => ({
+ name: EFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), TFe = {
+})).sort((e, t) => t.value - e.value), OFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -78197,7 +78201,7 @@ var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t
}, N3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), EFe = (e) => N3(e, TFe), DFe = [
+})), kFe = (e) => N3(e, OFe), AFe = [
[
1,
1,
@@ -78233,7 +78237,7 @@ var bFe = (e) => Math.max(1, ...e) * 1.1, xFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], OFe = (e) => DFe.map(([t, n, r]) => ({
+], jFe = (e) => AFe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -78268,7 +78272,7 @@ function I3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function kFe(e, t) {
+function MFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
@@ -78290,13 +78294,13 @@ function B3(e, t) {
function V3(e) {
return e.value;
}
-function AFe(e) {
+function NFe(e) {
return e.index;
}
-function jFe(e) {
+function PFe(e) {
return e.nodes;
}
-function MFe(e) {
+function FFe(e) {
return e.links;
}
function H3(e, t) {
@@ -78311,8 +78315,8 @@ function U3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function NFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = AFe, c = kFe, l, u, d = jFe, f = MFe, p = 6;
+function IFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = NFe, c = MFe, l, u, d = PFe, f = FFe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -78497,7 +78501,7 @@ function NFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var W3 = Math.PI, G3 = 2 * W3, K3 = 1e-6, PFe = G3 - K3;
+var W3 = Math.PI, G3 = 2 * W3, K3 = 1e-6, LFe = G3 - K3;
function q3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -78538,7 +78542,7 @@ q3.prototype = J3.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) > K3 || Math.abs(this._y1 - l) > K3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G3 + G3), d > PFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K3 && (this._ += "A" + n + "," + n + ",0," + +(d >= W3) + "," + 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) > K3 || Math.abs(this._y1 - l) > K3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % G3 + G3), d > LFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K3 && (this._ += "A" + n + "," + n + ",0," + +(d >= W3) + "," + 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";
@@ -78554,25 +78558,25 @@ function Y3(e) {
};
}
// node_modules/d3-shape/src/point.js
-function FFe(e) {
+function RFe(e) {
return e[0];
}
-function IFe(e) {
+function zFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var LFe = Array.prototype.slice;
+var BFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function RFe(e) {
+function VFe(e) {
return e.source;
}
-function zFe(e) {
+function HFe(e) {
return e.target;
}
-function BFe(e) {
- var t = RFe, n = zFe, r = FFe, i = IFe, a = null;
+function UFe(e) {
+ var t = VFe, n = HFe, r = RFe, i = zFe, a = null;
function o() {
- var o, s = LFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = BFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = J3(), 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) {
@@ -78587,54 +78591,54 @@ function BFe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function VFe(e, t, n, r, i) {
+function WFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function HFe() {
- return BFe(VFe);
+function GFe() {
+ return UFe(WFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function UFe(e) {
+function KFe(e) {
return [e.source.x1, e.y0];
}
-function WFe(e) {
+function qFe(e) {
return [e.target.x0, e.y1];
}
-function GFe() {
- return HFe().source(UFe).target(WFe);
+function JFe() {
+ return GFe().source(KFe).target(qFe);
}
// src/react/taste/taste.ts
-var KFe = "/api/taste", X3 = "/api/taste/refresh", qFe = "/api/taste/import", Z3 = "/api/taste/source", Q3 = (e) => ["taste", e], JFe = ["taste", "refresh"], YFe = [
+var YFe = "/api/taste", X3 = "/api/taste/refresh", XFe = "/api/taste/import", Z3 = "/api/taste/source", Q3 = (e) => ["taste", e], ZFe = ["taste", "refresh"], QFe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], XFe = 2e3, ZFe = (e) => e?.stale && !e.error ? XFe : !1, QFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], $Fe = 2e3, eIe = (e) => e?.stale && !e.error ? $Fe : !1, tIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", $Fe = (e, t) => V(Z3, {
+}) : "—", nIe = (e, t) => V(Z3, {
...e,
window: t
-}), $3 = (e, t, n = !1) => B(`${KFe}?window=${e}${n ? "&retry=1" : ""}`, t), eIe = (e) => B(X3, e);
-async function tIe(e, t) {
+}), $3 = (e, t, n = !1) => B(`${YFe}?window=${e}${n ? "&retry=1" : ""}`, t), rIe = (e) => B(X3, e);
+async function iIe(e, t) {
await H.fetchQuery({
queryKey: Q3(e),
queryFn: () => $3(e, t)
});
}
-var nIe = (e) => V(X3, {
+var aIe = (e) => V(X3, {
window: e,
background: !0
-}), rIe = (e, t) => V(Z3, {
+}), oIe = (e, t) => V(Z3, {
operation: "remove",
source_key: e,
window: t
});
-async function iIe(e) {
- let t = await fetch(qFe, {
+async function sIe(e) {
+ let t = await fetch(XFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78652,8 +78656,8 @@ async function iIe(e) {
}
return n;
}
-var aIe = 1e4, e6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function oIe(e) {
+var cIe = 1e4, e6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function lIe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
@@ -78662,31 +78666,31 @@ function oIe(e) {
}) : e6(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var sIe = A3, cIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), lIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function uIe(e) {
+var uIe = A3, dIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), fIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function pIe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function dIe(e) {
- let t = e.map(lIe), n = Math.max(1, ...t);
+function mIe(e) {
+ let t = e.map(fIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var t6 = (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 fIe(e) {
+function hIe(e) {
let t = t6(e, 6);
return t.length < 3 ? [] : t;
}
var n6 = {
width: 720,
height: 435
-}, pIe = {
+}, gIe = {
source: 145,
target: 545
-}, r6 = 30, mIe = 240;
+}, r6 = 30, _Ie = 240;
function i6(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -78694,7 +78698,7 @@ function i6(e, t, n) {
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function hIe(e = []) {
+function vIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = i6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = i6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -78706,7 +78710,7 @@ function hIe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * r6 + mIe), u = NFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(r6).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * r6 + _Ie), u = IFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(r6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78721,7 +78725,7 @@ function hIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = GFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = JFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78752,14 +78756,14 @@ function hIe(e = []) {
height: l + n6.height - 404
};
}
-var gIe = (e) => tr(e, 17), a6 = {
+var yIe = (e) => tr(e, 17), a6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, _Ie = [[
+}, bIe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78767,7 +78771,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], vIe = [[
+]], xIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78775,7 +78779,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], yIe = [[
+]], SIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78783,7 +78787,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], bIe = [
+]], CIe = [
[
"studios",
"厂牌",
@@ -78799,7 +78803,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"系列",
"file-stack"
]
-], xIe = [[
+], wIe = [[
"local",
"本地",
"hard-drive"
@@ -78807,7 +78811,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"online",
"在线",
"rss"
-]], SIe = [
+]], TIe = [
[
"performers",
"艺人",
@@ -78823,7 +78827,7 @@ var gIe = (e) => tr(e, 17), a6 = {
"在线",
"rss"
]
-], CIe = [[
+], EIe = [[
"cloud",
"标签云",
"tags"
@@ -78850,12 +78854,12 @@ var c6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), wIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), DIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", CIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function TIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = a6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? yIe : c ? vIe : _Ie, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", EIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function OIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = a6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? SIe : c ? xIe : bIe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -78867,24 +78871,24 @@ function TIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? c6(xIe, n, "词表") : e === "performers" || e === "creators" ? c6(SIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? c6(bIe, e, "资料类型") : ""}
- ${e === "tags" ? wIe(r) : ""}
- ${e === "performers" && n !== "online" ? tDe(i) : ""}
+ ${e === "tags" ? c6(wIe, n, "词表") : e === "performers" || e === "creators" ? c6(TIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? c6(CIe, e, "资料类型") : ""}
+ ${e === "tags" ? DIe(r) : ""}
+ ${e === "performers" && n !== "online" ? iDe(i) : ""}
${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var EIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var kIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function l6(e, t, n) {
- let r = TIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== EIe(r) && (e.innerHTML = r, pc(e));
+ let r = OIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== kIe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var DIe = () => pu, OIe = () => Ql, u6 = () => document.getElementById("index");
+var AIe = () => pu, jIe = () => Ql, u6 = () => document.getElementById("index");
function d6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, DIe);
+ let r = (0, F.useSyncExternalStore)(Cu, AIe);
ef();
let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78932,10 +78936,10 @@ function d6(e, t, n = {}) {
i
]);
}
-async function kIe(e, t, n, r) {
+async function MIe(e, t, n, r) {
let i = u6();
if (!i) return;
- let a = `/${t}`, o = s6(t, n), s = o6(tM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ let a = `/${t}`, o = s6(t, n), s = o6(Qj().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
c || (e.surfaceChanged("index", a), l6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
...o,
layout: s,
@@ -78947,23 +78951,23 @@ async function kIe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), vm(r, i));
}
-function AIe(e) {
+function NIe(e) {
let t = u6(), n = t ? mp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function jIe({ epoch: e }) {
- let t = (0, F.useContext)(YW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+function PIe({ epoch: e }) {
+ let t = (0, F.useContext)(KW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
return d6(e, (e, i) => {
- t && kIe(t, r, n.search, i);
- }, { shown: () => AIe(`/${r}`) }), null;
+ t && MIe(t, r, n.search, i);
+ }, { shown: () => NIe(`/${r}`) }), null;
}
-function MIe() {
- let e = JW(), t = (0, F.useSyncExternalStore)(Cu, OIe), n = (0, F.useRef)(t);
+function FIe() {
+ let e = GW(), t = (0, F.useSyncExternalStore)(Cu, jIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(u6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(jIe, { epoch: e }, e);
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(PIe, { epoch: e }, e);
}
-function NIe(e) {
+function IIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78978,7 +78982,7 @@ function NIe(e) {
} : null;
}
var f6 = /* @__PURE__ */ new WeakMap();
-function PIe(e) {
+function LIe(e) {
let t = f6.get(e);
return t || (t = {
helpers: {
@@ -78995,7 +78999,7 @@ function p6() {
let e = u6(), t = e ? mp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function FIe(e, t, n, r, i, a, o) {
+async function RIe(e, t, n, r, i, a, o) {
let s = u6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -79019,7 +79023,7 @@ async function FIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: PIe(e),
+ card: LIe(e),
resolvedEntity: o,
restoreNavigation: gm(),
actions: {
@@ -79036,8 +79040,8 @@ async function FIe(e, t, n, r, i, a, o) {
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
}) && a() && p6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
}
-function IIe({ target: e }) {
- let t = (0, F.useContext)(YW), n = JW(), r = ef();
+function zIe({ target: e }) {
+ let t = (0, F.useContext)(KW), n = GW(), r = ef();
return d6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
@@ -79069,7 +79073,7 @@ function IIe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, u6()?.querySelector("[data-entity-filter]")) : FIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, u6()?.querySelector("[data-entity-filter]")) : RIe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
@@ -79079,13 +79083,13 @@ function IIe({ target: e }) {
})();
}, { shown: () => p6() && !u6()?.hidden }), null;
}
-function LIe() {
- let e = NIe(ef().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(IIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function BIe() {
+ let e = IIe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(zIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var m6 = () => document.getElementById("stats"), RIe = () => yu;
-async function zIe(e, t) {
+var m6 = () => document.getElementById("stats"), VIe = () => yu;
+async function HIe(e, t) {
let n = m6(), r = e.follow;
if (!n || !r) return;
let i = hm("follow"), a = r.refresh(i), o = r.props();
@@ -79101,16 +79105,16 @@ async function zIe(e, t) {
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && vm(t, n.querySelector("[data-filter-frame]"));
}
-function BIe() {
+function UIe() {
let e = m6(), t = e ? mp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function VIe() {
- let e = (0, F.useContext)(YW);
- return d6(JW(), (t, n) => {
- e && zIe(e, n);
+function WIe() {
+ let e = (0, F.useContext)(KW);
+ return d6(GW(), (t, n) => {
+ e && HIe(e, n);
}, {
- shown: BIe,
+ shown: UIe,
onCovered: () => {
Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
@@ -79120,7 +79124,7 @@ function h6(e) {
let t = e ? mp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function HIe(e, t) {
+async function GIe(e, t) {
let n = m6();
n && (e.surfaceChanged("playlists", "/playlists"), F2(n, N2("/playlists", {
followLayout: "",
@@ -79131,36 +79135,36 @@ async function HIe(e, t) {
isCurrent: t
}), t() && vm(t));
}
-function UIe() {
- let e = (0, F.useContext)(YW), t = (0, F.useSyncExternalStore)(Cu, RIe), n = (0, F.useRef)(t);
+function KIe() {
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, VIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = m6();
h6(e) && xp(e, { revision: t });
- }, [t]), d6(JW(), (t, n) => {
- e && HIe(e, n);
+ }, [t]), d6(GW(), (t, n) => {
+ e && GIe(e, n);
}, { shown: () => {
let e = m6();
return h6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function WIe() {
+function qIe() {
let e = new URLSearchParams(Np.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function GIe() {
- let e = (0, F.useContext)(YW);
- return KW(() => {
- e?.openImmerse(WIe());
+function JIe() {
+ let e = (0, F.useContext)(KW);
+ return UW(() => {
+ e?.openImmerse(qIe());
}, !0), null;
}
-function KIe() {
- return /* @__PURE__ */ (0, I.jsx)(GIe, {}, JW());
+function YIe() {
+ return /* @__PURE__ */ (0, I.jsx)(JIe, {}, GW());
}
// src/react/router/pages/managed.tsx
-var qIe = () => pu > 0, g6 = () => (0, F.useSyncExternalStore)(Cu, qIe), _6 = () => tM().value.followLayout === "table" ? "table" : "default", v6 = () => new URLSearchParams(window.location.search);
+var XIe = () => pu > 0, g6 = () => (0, F.useSyncExternalStore)(Cu, XIe), _6 = () => Qj().value.followLayout === "table" ? "table" : "default", v6 = () => new URLSearchParams(window.location.search);
function y6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
@@ -79174,11 +79178,11 @@ function b6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function JIe(e, t) {
+async function ZIe(e, t) {
if (e === "/jav") {
let e = await y6(t);
return t.live ? {
- tab: cU(v6().get("tab")),
+ tab: aU(v6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -79195,15 +79199,15 @@ async function JIe(e, t) {
if (e === "/review") {
let e = v6().get("category") || "", n = await y6(t);
return t.live ? {
- category: CY(e) ? e : "",
- queue: EY(v6().get("queue")),
+ category: bY(e) ? e : "",
+ queue: CY(v6().get("queue")),
...b6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = jZ("?" + v6().toString()), n = await y6(t);
+ let e = OZ("?" + v6().toString()), n = await y6(t);
if (!t.live) return null;
- let r = tM().value;
+ let r = Qj().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
@@ -79213,10 +79217,10 @@ async function JIe(e, t) {
}
return {};
}
-async function YIe(e, t, n) {
+async function QIe(e, t, n) {
let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
- if (e === "/jav" && cU(v6().get("tab")) === "library") {
- Np.replace(Rve(window.location.search));
+ if (e === "/jav" && aU(v6().get("tab")) === "library") {
+ Np.replace(Vve(window.location.search));
return;
}
if (e === "/subscriptions" && v6().get("tab") === "wants") {
@@ -79248,7 +79252,7 @@ async function YIe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await JIe(e, n);
+ let o = await ZIe(e, n);
if (!o) return;
let s = await yp(e, o, {
container: a,
@@ -79265,18 +79269,18 @@ async function YIe(e, t, n) {
}
}
function x6({ path: e }) {
- let t = JW();
+ let t = GW();
ef();
let n = Bf(Np.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(XIe, {
+ return /* @__PURE__ */ (0, I.jsx)($Ie, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function XIe({ path: e, covered: t }) {
- let n = (0, F.useContext)(YW), r = g6(), i = (0, F.useRef)(null);
+function $Ie({ path: e, covered: t }) {
+ let n = (0, F.useContext)(KW), r = g6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -79287,14 +79291,14 @@ function XIe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && YIe(e, n, a);
+ a.live && QIe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function ZIe() {
+function eLe() {
let e = g6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
@@ -79308,11 +79312,11 @@ function ZIe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var S6 = [], C6 = "peach.chunkReloadAt", QIe = 3e4;
-async function $Ie() {
+var S6 = [], C6 = "peach.chunkReloadAt", tLe = 3e4;
+async function nLe() {
try {
let e = Number(sessionStorage.getItem(C6) || 0);
- if (Date.now() - e < QIe || !(await fetch("/healthz", {
+ if (Date.now() - e < tLe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -79325,7 +79329,7 @@ function w6(e) {
});
return S6.push(r), {
preload: () => r().catch(async (e) => {
- throw await $Ie(), e;
+ throw await nLe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79333,7 +79337,7 @@ function w6(e) {
}
};
}
-function eLe() {
+function rLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...S6], n = () => {
@@ -79350,14 +79354,14 @@ async function T6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), P6 = w6(async () => {
+var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-CFCDLKSG.js")), P6 = w6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-ubxQHJd0.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), F6 = w6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), I6 = w6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), L6 = w6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function tLe(e, t, n) {
+}), F6 = w6(() => import("./peach-app.activity-page-B3CjUhvF.js")), I6 = w6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), L6 = w6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function iLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -79367,7 +79371,7 @@ function tLe(e, t, n) {
}
var R6 = (e) => ({
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: e }),
- prefetch: (t, n) => T6(P6, Promise.all([QAe(n), ...e === "/settings/diagnostics" ? [xke(n)] : []]).then(() => {})),
+ prefetch: (t, n) => T6(P6, Promise.all([tje(n), ...e === "/settings/diagnostics" ? [wke(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79383,7 +79387,7 @@ var R6 = (e) => ({
}), z6 = {
...Yf.reduce((e, t) => (e[t.path] = {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: t.path }),
- prefetch: (e, n) => T6(A6, GEe(t.key, n)),
+ prefetch: (e, n) => T6(A6, JEe(t.key, n)),
page: (e, n) => {
let { DataCleanupToolPage: r } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79395,7 +79399,7 @@ var R6 = (e) => ({
}, e), {}),
"/jav": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/jav" }),
- prefetch: (e, t) => T6(E6, Uye(e.tab, t)),
+ prefetch: (e, t) => T6(E6, Kye(e.tab, t)),
page: (e, t) => {
let { JavPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79407,7 +79411,7 @@ var R6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/stats" }),
- prefetch: (e, t) => T6(D6, pFe(t)),
+ prefetch: (e, t) => T6(D6, gFe(t)),
page: (e, t) => {
let { StatsPage: n } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79418,7 +79422,7 @@ var R6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/taste" }),
- prefetch: (e, t) => T6(O6, tIe("all", t)),
+ prefetch: (e, t) => T6(O6, iIe("all", t)),
page: (e, t, n) => {
let { TastePage: r } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79431,7 +79435,7 @@ var R6 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/review" }),
- prefetch: (e, t) => T6(k6, PTe(t)),
+ prefetch: (e, t) => T6(k6, LTe(t)),
page: (e, t) => {
let { ReviewPage: n } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79446,20 +79450,20 @@ var R6 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/data-cleanup" }),
- prefetch: (e, t) => T6(A6, WEe(t)),
+ prefetch: (e, t) => T6(A6, qEe(t)),
page: (e, t, n) => {
let { DataCleanupPage: r } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => tLe(e, t, n),
+ open: (e) => iLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/duplicates" }),
- prefetch: (e, t) => T6(j6, Xwe(t)),
+ prefetch: (e, t) => T6(j6, $we(t)),
page: (e, t) => {
let { DuplicatesPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79471,13 +79475,13 @@ var R6 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/quality-goals" }),
- prefetch: (e, t) => T6(M6, cTe(t)),
+ prefetch: (e, t) => T6(M6, dTe(t)),
page: (e, t) => {
let { QualityGoalsPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: HI,
- javDisplayName: VI,
+ javTitleHtml: zI,
+ javDisplayName: RI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -79485,7 +79489,7 @@ var R6 = (e) => ({
},
"/sources": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/sources" }),
- prefetch: (e, t) => T6(N6, zAe(t)),
+ prefetch: (e, t) => T6(N6, HAe(t)),
page: (e, t) => {
let { ScrapingPage: n } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
@@ -79499,7 +79503,7 @@ var R6 = (e) => ({
"/settings/diagnostics": R6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, I.jsx)(x6, { path: "/tasks" }),
- prefetch: (e, t) => T6(F6, vpe(t)),
+ prefetch: (e, t) => T6(F6, xpe(t)),
page: () => {
let { ActivityPage: e } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
@@ -79519,10 +79523,10 @@ var R6 = (e) => ({
});
}
}
-}, B6 = (e) => Object.hasOwn(z6, e), nLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(ZIe, {}) } }, rLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(KIe, {}) } }, V6 = {
+}, B6 = (e) => Object.hasOwn(z6, e), aLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(eLe, {}) } }, oLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(YIe, {}) } }, V6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
- prefetch: (e, t) => T6(L6, CAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(KIe, {}),
+ prefetch: (e, t) => T6(L6, EAe(t)),
page: (e, t) => {
let { PlaylistsPage: n } = L6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79535,14 +79539,14 @@ var R6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(VIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(WIe, {}),
prefetch: (e, t) => oa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)($De, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nOe, { ...e })
}
}, H6 = (e) => Object.hasOwn(V6, e), U6 = {
- element: /* @__PURE__ */ (0, I.jsx)(MIe, {}),
- prefetch: (e, t) => fDe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Fke, {
+ element: /* @__PURE__ */ (0, I.jsx)(FIe, {}),
+ prefetch: (e, t) => hDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Rke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79563,9 +79567,9 @@ var R6 = (e) => ({
"/tags": U6,
"/series": U6
}, G6 = {
- element: /* @__PURE__ */ (0, I.jsx)(LIe, {}),
- prefetch: (e) => eDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(gke, { ...e })
+ element: /* @__PURE__ */ (0, I.jsx)(BIe, {}),
+ prefetch: (e) => rDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(yke, { ...e })
}, K6 = {
"/performers/*": G6,
"/studios/*": G6,
@@ -79575,60 +79579,60 @@ var R6 = (e) => ({
"/tags/*": G6
}, q6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(rY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(eY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(WW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Jke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Zke, { ...e })
}
-}, J6 = (e) => Object.hasOwn(q6, e), iLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Ove, { ...e }) : /* @__PURE__ */ (0, I.jsx)(S$, { ...e }), Y6 = {
+}, J6 = (e) => Object.hasOwn(q6, e), sLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(jve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(y$, { ...e }), Y6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)($be, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nxe, { ...e })
},
"feed-new": {
- prefetch: (e) => XEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Ske, { ...e })
+ prefetch: (e) => $Ee(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Tke, { ...e })
},
"library-processing": {
- prefetch: (e, t) => oH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(iLe, { ...e })
+ prefetch: (e, t) => rH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(sLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(qAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(XAe, { ...e })
}
}, X6 = (e) => Object.hasOwn(Y6, e), Z6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(fle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(hle, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Zle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Zfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(epe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(qde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Oje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(jje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Wje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(qje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(dFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(mFe, {})
}
}, Q6 = (e) => Object.hasOwn(Z6, e), $6 = [
"/",
@@ -79650,21 +79654,21 @@ var e8 = (e) => B6(e) || H6(e) || Object.hasOwn(W6, e) || Object.hasOwn(K6, e) |
function t8(e) {
return B6(e) ? z6[e] : H6(e) ? V6[e] : J6(e) ? q6[e] : X6(e) ? Y6[e] : Q6(e) ? Z6[e] : Object.hasOwn(W6, e) ? W6[e] : K6[e];
}
-function aLe(e, t, n) {
+function cLe(e, t, n) {
return e8(e) ? t8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function oLe(e, t, n, r) {
+function lLe(e, t, n, r) {
return t8(e).page(t, n, r);
}
// src/react/application-residents.ts
var n8 = null, r8 = null, i8 = 0, a8 = /* @__PURE__ */ new Set();
-function sLe(e) {
+function uLe(e) {
return n8 = e, r8 && e(r8), () => {
n8 === e && (n8 = null);
};
}
-function cLe(e) {
- return n8 && (r8 = e, n8(e), pp(Promise.resolve(aLe)), eLe()), Promise.resolve();
+function dLe(e) {
+ return n8 && (r8 = e, n8(e), pp(Promise.resolve(cLe)), rLe()), Promise.resolve();
}
async function o8(e, t, n = (e) => e) {
let r = i8;
@@ -79675,61 +79679,61 @@ async function o8(e, t, n = (e) => e) {
place: () => n(t)
}) || r !== i8 || !n8) throw new DOMException("应用已卸载", "AbortError");
}
-function lLe() {
+function fLe() {
i8 += 1, n8 = null, r8 = null, s8 = null, c8 = null, d8 = null, f8 = null, m8 = null, h8 = null, _8 = null, v8 = null, b8 = null, x8 = null, C8 = null, w8 = null, E8 = null;
for (let e of a8) e.remove();
- a8.clear(), VQ();
+ a8.clear(), RQ();
}
var s8 = null, c8 = null;
function l8(e) {
return s8 ??= (async () => {
- let t = uFe(e), n = document.createElement("div");
+ let t = pFe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await o8("stage", n, (e) => (document.body.append(e), e)), c8 = t, t;
})(), s8;
}
var u8 = () => c8, d8 = null, f8 = null;
-function uLe(e) {
+function pLe(e) {
return d8 ??= (async () => {
- let t = Kde(e), n = document.createElement("div");
+ let t = Yde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await o8("immerse", n, (e) => (document.body.append(e), e)), f8 = t, t;
})(), d8;
}
var p8 = () => f8, m8 = null, h8 = null;
-function dLe(e) {
+function mLe(e) {
return m8 ??= (async () => {
- let t = Dje(e), n = document.createElement("div");
+ let t = Aje(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await o8("settings-panel", n, (e) => (document.body.append(e), e)), h8 = t, t;
})(), m8;
}
var g8 = () => h8, _8 = null, v8 = null;
-function fLe(e) {
+function hLe(e) {
return _8 ??= (async () => {
- let t = Uje(e);
+ let t = Kje(e);
return await o8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), v8 = t, t;
})(), _8;
}
var y8 = () => v8, b8 = null, x8 = null;
-function pLe(e) {
+function gLe(e) {
return b8 ??= (async () => {
- let t = Xfe(e);
+ let t = $fe(e);
return await o8("manage-header", e.root, (e) => (e.replaceChildren(), e)), x8 = t, t;
})(), b8;
}
var S8 = () => x8, C8 = null, w8 = null;
-function mLe(e) {
+function _Le(e) {
return C8 ??= (async () => {
- let t = dle(e);
+ let t = mle(e);
return await o8("batch-dock", e.root), w8 = t, t;
})(), C8;
}
var T8 = () => w8, E8 = null;
-function hLe(e) {
+function vLe(e) {
return E8 ??= (async () => {
- qle(e), await o8("glow-picker", e.root);
+ Xle(e), await o8("glow-picker", e.root);
})(), E8;
}
function D8(e, t, n, r) {
- HQ(e, t), UQ(n, r);
+ zQ(e, t), BQ(n, r);
}
// src/application/receipts.js
var O8 = {
@@ -79741,8 +79745,8 @@ var O8 = {
rollSeed: void 0,
seededSample: void 0
};
-function gLe() {
- HQ(L("#toasts"), {
+function yLe() {
+ zQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}), O8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), O8.toastSeq = 0, O8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
@@ -79785,7 +79789,7 @@ function gLe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var _Le = [
+var bLe = [
"loc",
"creator",
"studio",
@@ -79807,9 +79811,9 @@ var _Le = [
"folder_recursive"
];
function k8(e, t, n, r = n.defaultSort) {
- return Ij(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return Nj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function vLe(e, t, n) {
+function xLe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = jn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -79835,18 +79839,18 @@ function vLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function yLe(e, t) {
+function SLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function bLe(e) {
+function CLe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of _Le) {
+ for (let t of bLe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Nj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Aj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function xLe(e, t, n) {
+function wLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79862,7 +79866,7 @@ function xLe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Fj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Mj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79883,7 +79887,7 @@ function A8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var SLe = class {
+var TLe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79928,16 +79932,16 @@ var SLe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, j8 = Infinity, M8 = 0, CLe = (e, t = M8) => [
+}, j8 = Infinity, M8 = 0, ELe = (e, t = M8) => [
"facets",
e,
t
-], wLe = (e, t, n = M8) => [
+], DLe = (e, t, n = M8) => [
"tops",
e,
t,
n
-], TLe = (e, t = M8) => [
+], OLe = (e, t = M8) => [
"tops",
e,
t
@@ -79946,20 +79950,20 @@ async function N8(e) {
let t = String(e), n = await Tn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Tn(`/api/tops?${r}`));
}
-function ELe(e, t) {
+function kLe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: CLe(e),
+ queryKey: ELe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: j8
}), H.fetchQuery({
- queryKey: wLe(t, e),
+ queryKey: DLe(t, e),
queryFn: () => N8(t),
staleTime: j8
})]);
}
-function DLe(e) {
+function ALe(e) {
return H.fetchQuery({
- queryKey: TLe(e),
+ queryKey: OLe(e),
queryFn: () => N8(e),
staleTime: j8
});
@@ -80080,11 +80084,11 @@ var F8 = [
"follow",
"activity",
"configuration"
-], OLe = (e) => I8.filter(([t]) => L8.includes(t) && (t !== "configuration" || e)), R8 = I8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], jLe = (e) => I8.filter(([t]) => L8.includes(t) && (t !== "configuration" || e)), R8 = I8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), kLe = [...F8, ...R8], ALe = {
+]]), MLe = [...F8, ...R8], NLe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80120,7 +80124,7 @@ function H8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Va({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function jLe(e) {
+function PLe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
@@ -80221,11 +80225,11 @@ var U8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, W8 = new U8();
-function MLe() {
+function FLe() {
return W8.dispose(), W8 = new U8(), W8;
}
// src/application/source-action.ts
-function NLe(e) {
+function ILe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -80240,18 +80244,18 @@ function NLe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var G8 = () => Object.fromEntries(AX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+var G8 = () => Object.fromEntries(DX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
function K8(e, t) {
let n = new URLSearchParams(e), r = G8();
- for (let e of AX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+ for (let e of DX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Ij(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Nj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function q8(e) {
let t = new URLSearchParams();
- for (let n of AX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Nj(e.sort || "") || t.set(n, e[n]);
+ for (let n of DX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Aj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function J8(e) {
@@ -80265,11 +80269,11 @@ function Y8(e, t) {
let n = new URLSearchParams(q8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function PLe(e, t, n, r) {
+function LLe(e, t, n, r) {
let i = Y8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function FLe() {
+function RLe() {
let e = "";
return {
fresh(t, n) {
@@ -80290,10 +80294,10 @@ function FLe() {
};
}
// src/react/entity-page/photo-surface.ts
-function ILe(e, t) {
+function zLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function LLe(e) {
+function BLe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -80315,12 +80319,12 @@ function LLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function RLe(e, t, n) {
+function VLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(PLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(LLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80347,7 +80351,7 @@ function RLe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Pj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = jj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80398,7 +80402,7 @@ function RLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function zLe(e) {
+function HLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80408,7 +80412,7 @@ function zLe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function BLe(e, t) {
+function ULe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
@@ -80430,11 +80434,11 @@ function BLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function VLe(e) {
- let t = FLe(), n = {
+function WLe(e) {
+ let t = RLe(), n = {
...e.helpers,
- portraitImg: BLe
- }, r = RLe(e.controller, n, e.actions);
+ portraitImg: ULe
+ }, r = VLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80443,12 +80447,12 @@ function VLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: zLe(e.loading),
- photos: LLe(e.photos)
+ loading: HLe(e.loading),
+ photos: BLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function HLe(e) {
+function GLe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -80475,23 +80479,23 @@ var X8 = {
function Z8(e) {
return e.has_cover ? So(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Hs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : So(e, "big").replace(/ src="[^"]*"/, ` src="${z(fo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function ULe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Z8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? HI({
+function KLe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Z8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? zI({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${uM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${sM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${HLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${GLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function WLe() {
+function qLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -80510,7 +80514,7 @@ function e5(e) {
localStorage.setItem($8, e ? "1" : "0");
} catch {}
}
-function GLe() {
+function JLe() {
try {
let e = localStorage.getItem($8);
return e === "1" || e !== "0" && null;
@@ -80521,7 +80525,7 @@ function GLe() {
function t5(e) {
!e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = X8.feedNewSkeletonHtml())));
}
-function KLe(e, t) {
+function YLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80530,8 +80534,8 @@ function KLe(e, t) {
});
}
function n5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${uM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return KLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(ULe).join("")}${r}</div>`;
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${sM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return YLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(KLe).join("")}${r}</div>`;
}
function r5(e) {
e && (s9(e), Z.appSettings.feedAutoScroll && Bc(e));
@@ -80539,7 +80543,7 @@ function r5(e) {
function i5(e) {
return jn(e) && e !== "/junk-files";
}
-function qLe() {
+function XLe() {
let e = L("#feedNew");
hp(e) ? e.hidden = X.homeHasFeed !== !0 : (t5(e), yp("feed-new", {
host: e,
@@ -80558,26 +80562,26 @@ function a5() {
function o5() {
X8.feedRevision += 1, xp(L("#feedNew"), { revision: X8.feedRevision }), l5({ feedRevision: X8.feedRevision });
}
-function JLe() {
+function ZLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
var s5 = 0;
-function YLe([e]) {
+function QLe([e]) {
let t = e.contentRect.width >= X8.HERO_WIDE_PX;
cancelAnimationFrame(s5), s5 = requestAnimationFrame(() => {
s5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function XLe() {
- X8.FEED_SKELETON_CARDS = 8, X8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${uM}"></div>
+function $Le() {
+ X8.FEED_SKELETON_CARDS = 8, X8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${sM}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
<div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(X8.FEED_SKELETON_CARDS)}</div>`, X8.entityShapes = null, X8.entityShapesComplete = !1, X8.hasEntityShape = (e, t) => X8.entityShapesComplete || !!X8.entityShapes?.has(`${e}/${Un(t)}`), X8.hasEntityPart = (e, t, n) => !!t && !!X8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), X8.feedNewSkeletonSection = () => `<section class="feednew">${X8.feedNewSkeletonHtml()}</section>`, X8.COSTAR_SKELETON_PEOPLE = 12, X8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(X8.COSTAR_SKELETON_PEOPLE)}</div></div>`, X8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, X8.feedRevision = 0, X8.feedNewHelpers = {
feedRowHtml: n5,
wireFeedRow: (e) => r5(e)
- }, X8.feedNewActions = { settled: (e) => e5(e) }, X8.HERO_WIDE_PX = 900, W8.resize(YLe).observe(L("#index"));
+ }, X8.feedNewActions = { settled: (e) => e5(e) }, X8.HERO_WIDE_PX = 900, W8.resize(QLe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function ZLe(e, t, n, r = "") {
+function eRe(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -80638,14 +80642,14 @@ function u5() {
return Jl;
}
function d5(e, t, n = c7()) {
- return WRe(n).map(([n, r]) => {
- let i = e === n, a = Pj(n, e, t);
+ return qRe(n).map(([n, r]) => {
+ let i = e === n, a = jj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Mj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Mj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && kj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? kj(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -80653,7 +80657,7 @@ function f5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function p5() {
- return ILe({
+ return zLe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -80666,12 +80670,12 @@ function m5() {
Y.photos.sync();
}
function h5() {
- p5() ? Ble(gM()) : kM();
+ p5() ? Ule(pM()) : EM();
}
-function QLe(e) {
+function tRe(e) {
Y.photos.setSize(e);
}
-var g5 = NLe({
+var g5 = ILe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -80683,7 +80687,7 @@ async function _5(e) {
let t = { textContent: "" };
return await g5(e, t), t.textContent;
}
-async function $Le(e) {
+async function nRe(e) {
let t = { textContent: "" }, n = [];
return await v5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -80722,17 +80726,17 @@ async function v5(e, t, n) {
t.textContent = Y.sourceHint(e.message), O8.actionFailure("核对目录", e);
}
}
-function eRe(e) {
+function rRe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function tRe(e, t) {
+function iRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && W8.handler(r, "onclick", () => g5(Number(r.dataset.reveal), n, { button: r })), i && W8.handler(i, "onclick", () => v5(Number(i.dataset.sync), n, t));
}
-async function nRe(e, t) {
+async function aRe(e, t) {
let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80774,12 +80778,12 @@ function y5(e, t) {
let n = ["performer", "studio"].includes(e) && X8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Es()}${e === "agency" ? "" : N0(d5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${j0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${j0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${j0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = ZLe(e, r, e === "agency" ? oc({
+ value: lM(),
+ options: iM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${j0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${j0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${j0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = eRe(e, r, e === "agency" ? oc({
kind: "performers",
layout: F5.peopleIndexLayout()
- }) : LJ("正在读取作品", bM(yM({
+ }) : PJ("正在读取作品", _M(gM({
active: n,
home: !1,
portrait: !1
@@ -80801,7 +80805,7 @@ function x5(e) {
function S5(e, t) {
T9(Y.application.fresh(e, t));
}
-function rRe() {
+function oRe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -80824,7 +80828,7 @@ function rRe() {
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function iRe() {
+function sRe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!c5(), Y.entityPageLive = (e, t) => {
let n = c5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -80842,9 +80846,9 @@ function iRe() {
feedRowHtml: n5,
receipt: (e, t) => O8.actionReceipt(e, t),
failure: (e, t) => O8.actionFailure(e, t),
- aliasForm: (e, t) => nRe(e, t),
- sourceToolsHtml: (e) => eRe(e),
- wireSourceTools: (e, t) => tRe(e, t),
+ aliasForm: (e, t) => aRe(e, t),
+ sourceToolsHtml: (e) => rRe(e),
+ wireSourceTools: (e, t) => iRe(e, t),
comboItems: (e) => B7(e),
sortKeys: (e, t, n) => d5(e, t, n)
}, Y.entityFollowActions = {
@@ -80869,8 +80873,8 @@ function iRe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function aRe() {
- Y.application = VLe({
+function cRe() {
+ Y.application = WLe({
controller: {
context: () => {
let e = u5();
@@ -80893,12 +80897,12 @@ function aRe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: X8.feedRevision,
- photoSize: gM(),
- photoLayout: _M(),
- photoLayouts: lM,
+ photoSize: pM(),
+ photoLayout: mM(),
+ photoLayouts: oM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: fM(),
- javLayouts: sM,
+ javLayout: lM(),
+ javLayouts: iM,
states: X.VIEW_PILLS,
peopleLayout: F5.peopleIndexLayout(),
layout: X7(),
@@ -80920,8 +80924,8 @@ function aRe() {
U.seed = e, Su();
},
setJavLayout: d7,
- javLayout: fM,
- setPhotoLayout: SM,
+ javLayout: lM,
+ setPhotoLayout: yM,
syncPhotoWalls: m5,
openEntity: S5,
photoViewActive: p5,
@@ -80946,15 +80950,15 @@ function aRe() {
},
photos: {
preferences: () => ({
- size: gM(),
- layout: _M(),
+ size: pM(),
+ layout: mM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: l5,
pushFollow: A9,
syncDensity: h5,
- storeSize: Rle
+ storeSize: Vle
},
helpers: Y.entityPageHelpers,
actions: {
@@ -80970,7 +80974,7 @@ function aRe() {
}
// src/application/playlists.js
var C5 = { playlistWrite: void 0 };
-function oRe(e, t) {
+function lRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -80986,7 +80990,7 @@ function w5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function sRe({ title: e, count: t, save: n }) {
+async function uRe({ title: e, count: t, save: n }) {
let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -81007,7 +81011,7 @@ async function sRe({ title: e, count: t, save: n }) {
}), T9("/playlists");
} }));
}
-async function cRe(e) {
+async function dRe(e) {
let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Gs(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = sl({
title: "加入播放列表",
@@ -81056,7 +81060,7 @@ function T5() {
let e = mp(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (G5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function lRe(e) {
+function fRe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
@@ -81064,7 +81068,7 @@ function lRe(e) {
function E5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function uRe() {
+function pRe() {
C5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -81083,18 +81087,18 @@ function O5(e, t, n, r, i = !1) {
};
}
function k5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = bY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+ let o = n === "follow", s = _Y(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
...O5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function dRe(e, t, n, r) {
+function mRe(e, t, n, r) {
let i = D5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: IU(n).view === "dismissed"
+ junkDismissed: NU(n).view === "dismissed"
};
}
// src/application/selection.js
@@ -81116,7 +81120,7 @@ function j5() {
}), A9({
selected: new Set(Zl),
selectMode: Ql
- }), A5.batchDockProps = xRe(), T8() && (T8().render(A5.batchDockProps), Z.syncGlassOptics());
+ }), A5.batchDockProps = wRe(), T8() && (T8().render(A5.batchDockProps), Z.syncGlassOptics());
}
function M5(e, t = !1) {
W(O5({
@@ -81124,25 +81128,25 @@ function M5(e, t = !1) {
followSelected: Zl
}, P5(), D5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), j5();
}
-function fRe() {
+function hRe() {
return [...z5.gridCards()].map((e) => +e.dataset.id);
}
function N5(e, t = !1) {
W(k5({
selected: Xl,
followSelected: Zl
- }, P5(), D5(location.pathname), fRe(), e, t)), M5(!0);
+ }, P5(), D5(location.pathname), hRe(), e, t)), M5(!0);
}
-function pRe() {
+function gRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function mRe(e, t = !1) {
+function _Re(e, t = !1) {
W(k5({
selected: Xl,
followSelected: Zl
- }, P5(), "follow", pRe(), e, t)), M5(!0);
+ }, P5(), "follow", gRe(), e, t)), M5(!0);
}
-async function hRe(e, t) {
+async function vRe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81211,7 +81215,7 @@ async function hRe(e, t) {
}
});
}
-async function gRe() {
+async function yRe() {
let e = [...Xl];
if (!e.length) return;
let t = sl({
@@ -81243,7 +81247,7 @@ async function gRe() {
let { confirmed: n, result: r } = await t.done;
n && (M5(!1, !0), await p7(), O8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function _Re(e, t) {
+async function bRe(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -81278,7 +81282,7 @@ async function _Re(e, t) {
}
});
}
-async function vRe(e, t) {
+async function xRe(e, t) {
let n = [...Xl];
if (!n.length) return;
let r = {
@@ -81324,8 +81328,8 @@ async function vRe(e, t) {
}
});
}
-function yRe() {
- mLe({
+function SRe() {
+ _Le({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
A5.BATCH_RUNNERS[e]?.(t, n);
@@ -81334,7 +81338,7 @@ function yRe() {
e.render(A5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function bRe() {
+function CRe() {
A5.batchDockProps = {
count: 0,
context: "catalog",
@@ -81347,14 +81351,14 @@ function bRe() {
["other", "其他"],
["none", "撤回判定"]
], A5.BATCH_RUNNERS = {
- batch: hRe,
- region: gRe,
- follow: _Re,
- junk: vRe,
+ batch: vRe,
+ region: yRe,
+ follow: bRe,
+ junk: xRe,
clear: () => M5(!1, !0)
}, W8.handler(L("#density"), "onclick", () => {
- p5() ? QLe(gM() === "big" ? "small" : "big") : zle();
- }), kM(), jl({
+ p5() ? tRe(pM() === "big" ? "small" : "big") : Hle();
+ }), EM(), jl({
selecting: () => Ql,
censored: () => r9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -81374,8 +81378,8 @@ function P5() {
followLastSelectedId: eu
};
}
-function xRe() {
- return dRe({
+function wRe() {
+ return mRe({
selected: Xl,
followSelected: Zl
}, location.pathname, location.search, U.state);
@@ -81385,22 +81389,22 @@ var F5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function SRe() {
+function TRe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function CRe() {
- return jZ(location.search);
+function ERe() {
+ return OZ(location.search);
}
-function wRe(e) {
- return MZ(e);
+function DRe(e) {
+ return kZ(e);
}
-function TRe(e) {
- Q.route(wRe(e));
+function ORe(e) {
+ Q.route(DRe(e));
}
-function ERe(e = "") {
- return NZ(location.search, e);
+function kRe(e = "") {
+ return AZ(location.search, e);
}
-function DRe(e) {
+function ARe(e) {
return H8(e);
}
function I5(e) {
@@ -81409,7 +81413,7 @@ function I5(e) {
function L5() {
L("#stats").hidden = !0, L("#index").hidden = !1, W7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function ORe(e, t) {
+function jRe(e, t) {
W({ state: {
...U,
state: "",
@@ -81420,16 +81424,16 @@ function ORe(e, t) {
function R5(e) {
F5.controller.openFollowAuthor(e);
}
-function kRe(e) {
+function MRe(e) {
F5.controller.openFollowTag(e);
}
-function ARe() {
- $.FOLLOW_MANAGE_TABS = AZ, W8.listen(document, "click", (e) => {
+function NRe() {
+ $.FOLLOW_MANAGE_TABS = DZ, W8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && E5("媒体库与入库");
}), F5.peopleIndexLayout = () => o6(Z.appSettings.peopleLayout), F5.personAvatar = V8;
}
-function jRe() {
- F5.controller = jLe({
+function PRe() {
+ F5.controller = PLe({
route: Q.route,
followView: D9,
adoptFollowView: O9,
@@ -81455,7 +81459,7 @@ function B5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = _ye(IU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && k7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = bye(NU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && k7({
count: null,
...M7()
})), L("#loadSentinel").hidden = !0, q7()) return;
@@ -81475,13 +81479,13 @@ function H5() {
});
return Promise.race([z5.entityShapesReady ||= Q8(), e]);
}
-function MRe() {
+function FRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), V5(), ibe();
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), V5(), sbe();
else if (/^\/assets\/\d+$/.test(e)) V5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) V5();
else if (e === "/junk-files") B5("正在读取垃圾文件");
- else if (e === "/jav" && cU(new URLSearchParams(location.search).get("tab")) === "library") B5("正在读取馆藏");
+ else if (e === "/jav" && aU(new URLSearchParams(location.search).get("tab")) === "library") B5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
V5();
let t = L("#stats");
@@ -81495,12 +81499,12 @@ function MRe() {
});
} else Q.routeMeta(e) ? B5() : (W7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function NRe() {
+function IRe() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => M2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: gM()
+ gridSize: pM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -81511,12 +81515,12 @@ function NRe() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), z5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
}), z5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), z5.managementPlaceholder = (e) => N2(e, {
- followLayout: SRe(),
+ followLayout: TRe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(CRe())
+ }))(ERe())
}), z5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", z5.entityShapesReady = null, z5.ENTITY_SHAPES_WAIT = 400, z5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, y9();
@@ -81530,7 +81534,7 @@ var U5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function PRe(e, t, n) {
+function LRe(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-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${U5(r)}"/></svg>`;
@@ -81538,7 +81542,7 @@ function PRe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function FRe(e, t, n, r = !1) {
+function RRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81587,7 +81591,7 @@ function K5() {
function q5() {
L("#javLibraryHeader").hidden = !jn(location.pathname) || !c7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, i5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", O7(), t7(), r7();
}
-function IRe() {
+function zRe() {
Q.route("/"), q5();
}
function J5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -81615,7 +81619,7 @@ function J5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function Y5(e) {
- Lze({
+ Bze({
...D9(),
...e
}), b9({ filters: $.followSidebarFilters() });
@@ -81630,7 +81634,7 @@ function Z5(e) {
function Q5() {
X5() && Z5(!1);
}
-function LRe() {
+function BRe() {
du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
W({ runtimeConfigurable: !!e.configurable }), du && e7() && t7();
}).catch(() => {}));
@@ -81648,12 +81652,12 @@ function $5(e = "", t = !1) {
replace: !0,
state: Np.navigation.location.state
});
- return e ||= Nf(location.pathname), dLe(W5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), mLe(W5.settingsHost()).then((t) => (t.open(e), t));
}
-function RRe() {
+function VRe() {
Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
}
-function zRe() {
+function HRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
@@ -81688,31 +81692,31 @@ function zRe() {
}
};
}
-function BRe() {
+function URe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = PRe(Z.appSettings.sidebarOrder, W5.NAV_CATALOG, h7), e.querySelector("[data-sidebar-head]").append(...t), W8.listen(e, "click", (e) => {
+ e.innerHTML = LRe(Z.appSettings.sidebarOrder, W5.NAV_CATALOG, h7), e.querySelector("[data-sidebar-head]").append(...t), W8.listen(e, "click", (e) => {
if (y8()) return;
let t = e.target.closest?.("[data-nav]");
t && g7(t.dataset.nav);
- }), fLe(zRe()).then((e) => e.render(W5.sidebarProps)).catch(() => {});
+ }), hLe(HRe()).then((e) => e.render(W5.sidebarProps)).catch(() => {});
}
-async function VRe() {
+async function WRe() {
let e = W8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && nM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && $j(t, (e) => Z.settingsEffects[e]?.());
}
function e7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
function t7() {
let e = e7();
- LRe(), e && V5(), L("#count").classList.toggle("no-tagbar", !!e), x9(), e !== "trash" && (A5.trashCount = null), n7(e);
+ BRe(), e && V5(), L("#count").classList.toggle("no-tagbar", !!e), x9(), e !== "trash" && (A5.trashCount = null), n7(e);
}
-function HRe(e) {
+function GRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -81723,16 +81727,16 @@ function HRe(e) {
}
function n7(e = e7()) {
r7();
- let t = HRe(e), n = S8();
+ let t = GRe(e), n = S8();
if (n) n.render(t);
else {
- let e = Zde(t);
+ let e = efe(t);
e !== W5.manageHeaderSkeleton && (W5.manageHeaderSkeleton = e, W5.manageHeaderRoot().innerHTML = e);
}
- let r = RF(t)?.title || "";
+ let r = FF(t)?.title || "";
r !== W5.lastManagePageLabel && (W5.lastManagePageLabel = r, r && tc(W5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function URe() {
+function KRe() {
let e = W5.manageHeaderRoot();
W8.listen(e, "click", (e) => {
if (S8()) return;
@@ -81742,7 +81746,7 @@ function URe() {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && R7();
- }), pLe({
+ }), gLe({
root: e,
openManage: s7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -81787,35 +81791,35 @@ function o7(e) {
}
function s7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(LU()), q5(), x9(), L7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(PU()), q5(), x9(), L7());
}
function c7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function WRe(e = c7()) {
- let t = Dj.filter(([e]) => e !== "seed");
- return e ? [Oj, ...t] : t;
+function qRe(e = c7()) {
+ let t = wj.filter(([e]) => e !== "seed");
+ return e ? [Tj, ...t] : t;
}
function l7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function u7() {
- return pM(l7());
+ return uM(l7());
}
-function GRe(e) {
- Ile(e), f7(), L("#grid").hidden || $7();
+function JRe(e) {
+ zle(e), f7(), L("#grid").hidden || $7();
}
function d7(e) {
- xM(e), f7(), $7();
+ vM(e), f7(), $7();
}
function f7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === u7();
}), X.catalogFilterProps && k7({ layout: j7() });
}
-function KRe(e) {
- Lle(e), f7(), $7();
+function YRe(e) {
+ Ble(e), f7(), $7();
}
async function p7() {
P8(), X.mixRelatedCache.clear(), await Promise.all([m7(), L7()]);
@@ -81874,11 +81878,11 @@ function _7() {
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Nn, t[0]), r = jn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
L("#selectMode").hidden = !i, L("#density").hidden = !a, m5(), !i && Ql && M5(!1, !0);
}
-function qRe() {
+function XRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== W5.mobileFilterHost || location.pathname !== W5.mobileFilterPath) && (W5.mobileFilterScroll = null), W5.mobileFilterHost = t, W5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- W5.mobileFilterScroll = FRe(W5.mobileFilterScroll, n, innerWidth <= 760, r);
+ W5.mobileFilterScroll = RRe(W5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && W5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -81892,46 +81896,46 @@ function qRe() {
});
}
}
-function JRe() {
- qRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function ZRe() {
+ XRe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
function v7() {
W5.stickyFrame ||= W8.frame(() => {
- W5.stickyFrame = 0, JRe();
+ W5.stickyFrame = 0, ZRe();
});
}
-function YRe() {
+function QRe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), W8.handler(L("#filterBtn"), "onclick", () => Z5(!L("#drawer").classList.contains("open"))), W5.SIDEBAR_ITEMS = F8, W5.MANAGE_SECTIONS = I8, W5.MANAGE_MENU_SECTIONS = L8, W5.manageMenuSections = () => OLe(du === !0), W5.OPTIONAL_SIDEBAR_ITEMS = R8, W5.NAV_CATALOG = kLe, W5.DIRECT_MANAGE_NAV = ALe, W5.settingsHost = () => ({
+ }), W8.handler(L("#filterBtn"), "onclick", () => Z5(!L("#drawer").classList.contains("open"))), W5.SIDEBAR_ITEMS = F8, W5.MANAGE_SECTIONS = I8, W5.MANAGE_MENU_SECTIONS = L8, W5.manageMenuSections = () => jLe(du === !0), W5.OPTIONAL_SIDEBAR_ITEMS = R8, W5.NAV_CATALOG = MLe, W5.DIRECT_MANAGE_NAV = NLe, W5.settingsHost = () => ({
selectSection: (e) => Pp(Pf(e), {
replace: !0,
state: Np.navigation.location.state
}),
- closed: RRe,
+ closed: VRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Qo(e),
navCatalog: W5.NAV_CATALOG,
- themeOptions: jle,
- videoLayouts: sM,
+ themeOptions: Ple,
+ videoLayouts: iM,
followInitialRanges: z8,
videoLayout: () => u7(),
- setVideoLayout: KRe,
+ setVideoLayout: YRe,
censored: r9,
setCensored: a9,
sfwShortcut: o9,
- setSfwShortcut: gze,
+ setSfwShortcut: yze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: _ze,
+ setHighContrast: bze,
receipt: (e) => O8.actionReceipt(e),
failure: O8.actionFailure,
- syncRemote: (e) => nM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => $j(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
@@ -81978,22 +81982,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function XRe() {
+function $Re() {
X.initialParams.has("loc") || (U.loc = y7(U.loc), Su());
}
function y7(e) {
- return yLe(e, Z.sourceOnline);
+ return SLe(e, Z.sourceOnline);
}
function b7(e = U) {
- return bLe(e);
+ return CLe(e);
}
-function ZRe() {
- W(A8(xLe(U, Z.appSettings, O8.rollSeed)));
+function eze() {
+ W(A8(wLe(U, Z.appSettings, O8.rollSeed)));
}
function x7(e = null) {
- ZRe(), e && (Object.assign(U, e), Su()), Q.route(e ? b7() : "/"), X.clearSearchField(), d9(!1), x9(), L7();
+ eze(), e && (Object.assign(U, e), Su()), Q.route(e ? b7() : "/"), X.clearSearchField(), d9(!1), x9(), L7();
}
-function QRe(e, t = null) {
+function tze(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? h9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : N5(n);
}
@@ -82002,13 +82006,13 @@ function S7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function $Re(e, t) {
+function nze(e, t) {
u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : C7(e, t);
}
function C7(e, t) {
- e.edition_group ? wze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Tze(e.part_group.seed_id, e.id, !0, t) : h9(e.id, !0, null, t);
+ e.edition_group ? Dze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Oze(e.part_group.seed_id, e.id, !0, t) : h9(e.id, !0, null, t);
}
-async function eze(e, t) {
+async function rze(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
@@ -82025,7 +82029,7 @@ async function eze(e, t) {
O8.actionFailure("更新稍后看", e);
}
}
-async function tze(e, t) {
+async function ize(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82049,8 +82053,8 @@ async function tze(e, t) {
throw O8.actionFailure("操作", e), e;
}
}
-async function nze(e, t, n, r) {
- let i = Number(e.rating) || 0, a = mP(i, t), o = async (t, r) => {
+async function aze(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = dP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82064,7 +82068,7 @@ async function nze(e, t, n, r) {
};
try {
let e = await o(a, r);
- O8.actionReceipt(e ? `已评 ${pP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ O8.actionReceipt(e ? `已评 ${uP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || O8.actionFailure("评分", e), e;
}
@@ -82093,7 +82097,7 @@ async function w7(e) {
e[n] && t.set(n, e[n]);
});
}
- return ELe(t.toString(), X.topsQueryParams(e).toString());
+ return kLe(t.toString(), X.topsQueryParams(e).toString());
}
function T7(e) {
u5().type !== "entity" && k7({ tags: N7(e) }), b9({ filters: { ...e } }), V7();
@@ -82119,7 +82123,7 @@ function D7(e) {
} }), Q.route(b7()), q5(), L7();
} else e(U), Su(), Q.route(b7()), T7(U), E7(Jl);
}
-function rze() {
+function oze() {
return {
tiers: null,
tiersPending: !1,
@@ -82155,9 +82159,9 @@ function k7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || rze(),
+ ...X.catalogFilterProps || oze(),
...e
- }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = DMe(X.catalogViews(), X.catalogFilterProps.state, M7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = AMe(X.catalogViews(), X.catalogFilterProps.state, M7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => xp(t, X.catalogFilterProps)).finally(() => {
@@ -82182,17 +82186,17 @@ function A7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Pj(e, U.sort, U.dir);
+ let t = jj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, Su(), t9());
},
- reshuffle: () => hze(),
+ reshuffle: () => vze(),
setLayout: (e) => {
- c7() ? d7(e) : GRe(e);
+ c7() ? d7(e) : JRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await DLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await ALe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(P7) : n.map(F7);
}
};
@@ -82201,13 +82205,13 @@ function j7() {
return c7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: fM(),
- options: sM
+ value: lM(),
+ options: iM
} : l7() ? {
name: "home-layout",
label: "首页卡片版式",
value: u7(),
- options: sM
+ options: iM
} : null;
}
function M7() {
@@ -82245,7 +82249,7 @@ function F7(e) {
logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function ize(e, t) {
+function sze(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? k7({
tiersPending: !0,
state: e.state || ""
@@ -82268,7 +82272,7 @@ async function L7() {
U.seed || "",
c7()
]);
- ize(n, e);
+ sze(n, e);
let i;
try {
i = await w7(t);
@@ -82324,7 +82328,7 @@ async function L7() {
latest: null
});
}
-function aze(e, t) {
+function cze(e, t) {
c9.total = e, U.state === "trash" && (A5.trashCount = {
total: c9.total,
shown: t
@@ -82393,12 +82397,12 @@ async function H7() {
filters: U
},
detailReturnBarsContext: null
- }), d9(!1), U.state === "ads") return cze(e);
+ }), d9(!1), U.state === "ads") return dze(e);
X.controller.page === "/junk-files" && W7(), B5(), q5();
let t = G7(e);
if (i5(location.pathname) && U.browse !== "folders") {
if (await z5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- qLe();
+ XLe();
} else a5();
return V7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -82410,10 +82414,10 @@ function W7() {
Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
}
function G7(e) {
- return Y7("/", sze, e, { place: zze });
+ return Y7("/", uze, e, { place: Hze });
}
-function oze(e) {
- return Y7("/junk-files", uze, e);
+function lze(e) {
+ return Y7("/junk-files", pze, e);
}
function K7() {
return !!mp(L("#grid"));
@@ -82441,17 +82445,17 @@ function Y7(e, t, n, r = {}) {
}
function X7() {
let e = l7();
- return yM({
+ return gM({
active: c7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
function Z7(e = "正在读取作品") {
- return LJ(e, Q7());
+ return PJ(e, Q7());
}
function Q7() {
- return U ? bM(X7()) : 16 / 9;
+ return U ? _M(X7()) : 16 / 9;
}
function $7() {
q7() && (Nl(L("#grid")), J7({
@@ -82462,7 +82466,7 @@ function $7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function sze() {
+function uze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -82485,9 +82489,9 @@ function sze() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !c7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: aze,
+ onCount: cze,
onCountFailed: () => k7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : DK({
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : wK({
jav: c7() && !t,
configurable: du,
filtered: !t
@@ -82495,11 +82499,11 @@ function sze() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function cze(e) {
+function dze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && K7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (W7(), B5("正在读取垃圾文件")), q5(), V7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), oze(e);
+ return X.controller.page === "/junk-files" && K7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (W7(), B5("正在读取垃圾文件")), q5(), V7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), lze(e);
}
-async function lze(e, t) {
+async function fze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82524,9 +82528,9 @@ async function lze(e, t) {
throw O8.actionFailure("操作", e), e;
}
}
-function uze() {
+function pze() {
return {
- ...IU(location.search),
+ ...NU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82542,8 +82546,8 @@ function uze() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function dze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => k8(e, t, Z.appSettings, n), W(A8(vLe(location, Z.appSettings, O8.rollSeed))), X.searchValueSnapshot = {
+function mze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => k8(e, t, Z.appSettings, n), W(A8(xLe(location, Z.appSettings, O8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82564,21 +82568,21 @@ function dze() {
};
};
}
-function fze() {
+function hze() {
W8.handler(L("#wallBtn"), "onclick", () => {
M5(!1, !0);
let e = u5(), t = {
...Y.activeFilterState(),
jav: c7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Hxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Gxe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => HI(e, t),
- displayName: (e, t) => VI(e, t),
+ titleHtml: (e, t) => zI(e, t),
+ displayName: (e, t) => RI(e, t),
tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -82586,11 +82590,11 @@ function fze() {
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: C7,
- open: (e, t) => $Re(e, t),
- openResource: (e, t) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : QRe(e, t),
+ open: (e, t) => nze(e, t),
+ openResource: (e, t) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : tze(e, t),
openShort: (e) => u8()?.miniplayerTakesCard(e) ? u8().miniplayerPlay(e.id) : v9(e.id),
openShorts: () => v9(),
- openMix: (e, t) => Cze(e, e, !0, t),
+ openMix: (e, t) => Eze(e, e, !0, t),
openEntity: (e, t) => S5(e, t),
openUnowned: () => x7({ owner: "none" }),
toggleTag: (e) => {
@@ -82599,9 +82603,9 @@ function fze() {
});
},
toggleSelection: (e, t) => N5(e, t),
- watchLater: (e, t) => eze(e, t),
- rate: (e, t, n, r) => nze(e, t, n, r),
- resourceOperation: (e, t) => tze(e, t),
+ watchLater: (e, t) => rze(e, t),
+ rate: (e, t, n, r) => aze(e, t, n, r),
+ resourceOperation: (e, t) => ize(e, t),
mixRelated: (e) => S7(e),
canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -82641,7 +82645,7 @@ function fze() {
X.catalogFilterProps && k7({ comboHidden: !0 });
};
}
-function pze() {
+function gze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Ql && M5(!1, !0), Q.route(e);
@@ -82658,10 +82662,10 @@ function pze() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => lze(e, t)
+ operate: (e, t) => fze(e, t)
};
}
-X.controller = new SLe();
+X.controller = new TLe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82695,7 +82699,7 @@ async function e9() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), XRe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), $Re(), Z.sourceOnline;
}
function t9() {
let e = Q.surfacePath();
@@ -82706,7 +82710,7 @@ function t9() {
state: Np.navigation.location.state
}), t;
}
-function mze(e) {
+function _ze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82738,7 +82742,7 @@ function n9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: mze(e.k),
+ dot: _ze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82751,7 +82755,7 @@ function n9(e, t) {
duration: !!e.stats?.duration
};
}
-async function hze(e = !1) {
+async function vze(e = !1) {
if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || c9.stageOpen() || c9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -82789,47 +82793,47 @@ function a9(e) {
function o9() {
return a1(localStorage.getItem("peach.sfw-shortcut")) || a1("Shift+KeyS");
}
-function gze(e) {
+function yze(e) {
e ? localStorage.setItem(r1, o1(e)) : localStorage.removeItem(r1), Z.settingsStore.notify();
}
-function _ze(e) {
+function bze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function s9(e) {
return Ac(e, { drag: !0 });
}
-function vze() {
+function xze() {
["#nrow", "#count"].forEach((e) => s9(L(e))), document.querySelectorAll(".tier,.srow").forEach(s9);
}
-function yze() {
+function Sze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function bze() {
+function Cze() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = tM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), aM(), Ple(), AM(), NM(), PM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = Qj(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), nM(), Lle(), DM(), AM(), jM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
Zt(Z.appSettings.performerNameLanguage), z5.syncPageTitle(location.href), X.barsRendered = "", L7();
},
- theme: () => aM(),
+ theme: () => nM(),
uiSounds: () => {
Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
},
- glowFrame: () => MM(),
+ glowFrame: () => kM(),
glow: () => {
- MM(), NM();
+ kM(), AM();
},
batchSize: () => {
location.pathname === "/" && H7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
+ U.sort = Z.appSettings.defaultSort, U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
},
sortDirection: () => {
- U.dir = Fj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
+ U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && t9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -82838,14 +82842,14 @@ function bze() {
},
seekSeconds: () => $7(),
groupCollapse: () => m7(),
- feedAutoScroll: () => JLe(),
+ feedAutoScroll: () => ZLe(),
feedLimit: () => o5(),
feedCompilations: () => o5(),
miniplayer: () => {
Z.appSettings.miniplayer || u8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), $7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Sze();
+ ao(document, Z.appSettings.javImage), $7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Tze();
},
searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82856,7 +82860,7 @@ function bze() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Ws;
}
-function xze() {
+function wze() {
Z.CENSOR_KEY = "peach-censor", i9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82892,7 +82896,7 @@ function d9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), v7(), e && Q.route(nu || "/");
}
-function Sze() {
+function Tze() {
u8()?.repaintPoster();
}
function f9(e, t, n, r, i = null, a = {}) {
@@ -82917,13 +82921,13 @@ function f9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => h9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
} else return h9(n == null ? null : +n, !1, s, i, r);
}
-function Cze(e, t = e, n = !0, r = null) {
+function Eze(e, t = e, n = !0, r = null) {
return f9("mix", e, t, n, r);
}
-function wze(e, t = e, n = !0, r = null) {
+function Dze(e, t = e, n = !0, r = null) {
return f9("editions", e, t, n, r);
}
-function Tze(e, t = e, n = !0, r = null) {
+function Oze(e, t = e, n = !0, r = null) {
return f9("parts", e, t, n, r);
}
function p9(e, t = null, n = !0) {
@@ -83021,9 +83025,9 @@ async function _9(e, t = !0) {
}), v7());
}
async function v9(e = null, t = !0) {
- t ? (c9.requestedImmerseId = e, Q.route("/immerse")) : (u8()?.closeMiniplayer(), await (await uLe(c9.immerseHost)).open(e));
+ t ? (c9.requestedImmerseId = e, Q.route("/immerse")) : (u8()?.closeMiniplayer(), await (await pLe(c9.immerseHost)).open(e));
}
-function Eze() {
+function kze() {
c9.total = 0, c9.facets = null, c9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -83039,11 +83043,11 @@ function Eze() {
openItem: (e) => void h9(e)
}, c9.stageOpen = () => !!u8()?.isOpen();
}
-function Dze() {
+function Aze() {
c9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => HI(e),
- displayName: (e) => VI(e),
+ titleHtml: (e) => zI(e),
+ displayName: (e) => RI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
@@ -83092,12 +83096,12 @@ function Dze() {
openTag: (e) => D7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => cRe(e),
- saveMix: (e) => sRe(e),
+ addToPlaylist: (e) => dRe(e),
+ saveMix: (e) => uRe(e),
editPlaylist: () => T9("/playlists"),
openPlaylists: () => T9("/playlists"),
reveal: (e) => _5(e),
- sync: (e) => $Le(e),
+ sync: (e) => nRe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Gf(), d9(!0, !1, { miniplayer: !1 })), await H7());
},
@@ -83107,7 +83111,7 @@ function Dze() {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => VI(e),
+ displayName: (e) => RI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => x7(),
openItem: (e) => void h9(e),
@@ -83171,7 +83175,7 @@ function w9() {
function T9(e) {
Q.route(e), W({ pageOpens: pu + 1 });
}
-function Oze() {
+function jze() {
Q.routeMeta = (e) => {
let t = ep(e);
return t ? { route: t } : null;
@@ -83179,7 +83183,7 @@ function Oze() {
let t = ep(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? v9(yze()) : e === "/follow" ? j9() : e === "/playlists" || Q.catalogPage(e) ? T9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ERe() : e) : (M5(!1, !0), T9(I5({
+ e === "/immerse" ? v9(Sze()) : e === "/follow" ? j9() : e === "/playlists" || Q.catalogPage(e) ? T9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? kRe() : e) : (M5(!1, !0), T9(I5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83188,7 +83192,7 @@ function Oze() {
})));
};
}
-function kze() {
+function Mze() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -83207,15 +83211,15 @@ function kze() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Aze(e, t, n) {
+function Nze(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function jze(e, t = 0, n = 0) {
- return n > 0 ? Aze(e, t, n) : Hs(e);
+function Pze(e, t = 0, n = 0) {
+ return n > 0 ? Nze(e, t, n) : Hs(e);
}
-async function Mze(e) {
+async function Fze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83230,14 +83234,14 @@ async function Mze(e) {
await t(2e3);
}
}
-function Nze(e) {
+function Ize(e) {
let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => jze(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 || Hs, r = e.progress || ((e, t, n) => Pze(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", s = sessionStorage.getItem(o) || void 0, c = !1;
- Mze({
+ Fze({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83286,7 +83290,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function Pze(e) {
+function Lze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
O8.toast({ text: Hi(e) }, {
warn: !!t,
@@ -83301,7 +83305,7 @@ function Pze(e) {
function E9() {
return ka(D9());
}
-function Fze() {
+function Rze() {
return $.controller.read();
}
function D9() {
@@ -83322,17 +83326,17 @@ function D9() {
function O9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function Ize() {
+function zze() {
let e = mp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function k9() {
- return !!Ize();
+ return !!zze();
}
function A9(e) {
k9() && xp(L("#stats"), e);
}
-function Lze(e, t = {}) {
+function Bze(e, t = {}) {
return $.controller.route(e, t);
}
function j9(e = !1) {
@@ -83356,16 +83360,16 @@ async function M9(e, t = !0, n = null, r = !1) {
resume: t ? null : l9()
}), v7();
}
-async function Rze() {
- await u9(), d9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && k9() ? (Fze(), A9({ view: D9() })) : W({ pageOpens: pu + 1 }));
+async function Vze() {
+ await u9(), d9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && k9() ? (Rze(), A9({ view: D9() })) : W({ pageOpens: pu + 1 }));
}
-function zze(e) {
+function Hze(e) {
let t = document.createElement("div");
return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Bze() {
+function Uze() {
$.followFeedHelpers = zl({
wireDrag: (e) => {
e && s9(e);
@@ -83374,22 +83378,22 @@ function Bze() {
e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Nze
+ jobProgress: Ize
}), $.followFeedActions = {
loaded: (e) => J5(e),
openDetail: (e) => M9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => mRe(e, t),
+ toggleSelection: (e, t) => _Re(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), m5();
},
setPhotoLayout: (e) => {
- SM(e), m5();
+ yM(e), m5();
},
canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => O8.actionReceipt(e, { undo: t }),
failure: (e, t) => O8.actionFailure(e, t),
- checkReport: (e) => Pze(e)
+ checkReport: (e) => Lze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
@@ -83399,7 +83403,7 @@ function Bze() {
view: D9,
adoptView: O9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Rze(),
+ close: () => void Vze(),
open: (e, t, n) => void M9(e, !0, t, n),
drawer: J5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
@@ -83409,7 +83413,7 @@ function Bze() {
canFlip: $.followFeedActions.canFlip
});
}
-function Vze() {
+function Wze() {
$.controller = Ma({
location: () => location,
view: D9,
@@ -83427,8 +83431,8 @@ function Vze() {
preferences: () => ({
selectMode: Ql,
selected: Zl,
- photoSize: gM(),
- photoLayout: _M(),
+ photoSize: pM(),
+ photoLayout: mM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: k9,
@@ -83453,8 +83457,8 @@ function Vze() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function Hze() {
- xDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), W8.own(Yc()), Wa(document.body), X.homeHasFeed = GLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, W5.sidebarProps = {
+function Gze() {
+ wDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), W8.own(Yc()), Wa(document.body), X.homeHasFeed = JLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, W5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -83465,12 +83469,12 @@ function Hze() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function Uze() {
- xU({ reopen: !0 });
+async function Kze() {
+ vU({ reopen: !0 });
}
-function Wze() {
+function qze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), W8.handler(document.getElementById("tutorialBtn"), "onclick", () => xU()), xU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), W8.handler(document.getElementById("tutorialBtn"), "onclick", () => vU()), vU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -83532,15 +83536,15 @@ var N9 = [
size: 5
}
];
-function Gze() {
+function Jze() {
return N9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Kze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), P9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function qze(e) {
+var Yze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), P9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function Xze(e) {
let t = await e("/api/search/recommendations"), n = (e, t, n, r = "") => ({
value: String(e.code || e.display_title || e.title || e.name || "未命名作品"),
id: e.id,
@@ -83575,7 +83579,7 @@ async function qze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Kze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Yze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83590,9 +83594,9 @@ async function qze(e) {
let i = ha(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = _G(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = mG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
(a === "images" ? t : e).push({
- value: pG(o),
+ value: uG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83615,7 +83619,7 @@ async function qze(e) {
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
avatarHtml: H8(e),
- subtitle: e.latest ? `最新更新于 ${CG({ published_at: e.latest })}` : "更新时间未取得"
+ subtitle: e.latest ? `最新更新于 ${bG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
groups: N9.map((e) => {
let t = a[e.kind] ?? [];
@@ -83630,7 +83634,7 @@ async function qze(e) {
};
}
// src/application/search-morph.js
-function Jze(e, t, n, r, i, a, o) {
+function Zze(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -83655,7 +83659,7 @@ var F9 = {
function I9() {
F9.searchControl?.close();
}
-function Yze(e) {
+function Qze(e) {
let t = e ? to({
...e,
is_jav: !!e.code
@@ -83674,7 +83678,7 @@ function R9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Uc();
t.classList.add("search-morphing");
- let h = t.animate(Jze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(Zze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -83683,13 +83687,13 @@ function R9(e) {
F9.searchMorph === h && L9();
});
}
-function Xze() {
+function $ze() {
return c9.immerseOpen() ? p8().activeVideo() : u8()?.activeVideo() || null;
}
-function Zze(e) {
+function eBe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function Qze() {
+function tBe() {
F9.searchControl = null, F9.searchActions = {
search: (e) => {
X.rememberSearchValue(), d9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? b7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
@@ -83701,11 +83705,11 @@ function Qze() {
$.followMediaView = t, M9(e, !0, n);
}
}, F9.searchHelpers = {
- pool: () => Gxe(U, Tn),
- recommendations: () => qze(Tn),
- pendingRecommendations: Gze,
+ pool: () => Jxe(U, Tn),
+ recommendations: () => Xze(Tn),
+ pendingRecommendations: Jze,
rollPlaceholder: (e, t) => Qs(e, t),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Z8(e) : Yze(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Z8(e) : Qze(e)}</span>`,
present: (e) => cs(e),
dismiss: (e) => ls(e),
wireScroller: (e) => Ac(e),
@@ -83739,7 +83743,7 @@ function Qze() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function $ze() {
+function nBe() {
F9.searchMorph = null, F9.searchMorphViewport = innerWidth, W8.listen.bind(W8, window)("resize", () => {
innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
}, { passive: !0 }), W8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), W8.handler(L("#searchBtn"), "onclick", () => {
@@ -83781,8 +83785,8 @@ function $ze() {
}
return;
}
- if (Zze(e.target)) return;
- if (!e.defaultPrevented && uje(e, o9())) {
+ if (eBe(e.target)) return;
+ if (!e.defaultPrevented && pje(e, o9())) {
e.preventDefault(), a9(!r9());
return;
}
@@ -83794,26 +83798,26 @@ function $ze() {
return;
}
}
- let t = Xze();
+ let t = $ze();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), u8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), aP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), nP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), iP(t);
+ e.preventDefault(), tP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), yN(t, ".vjs-mute-control");
+ e.preventDefault(), gN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), yN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), gN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -83824,7 +83828,7 @@ function $ze() {
});
}
// src/history/links.ts
-function eBe(e) {
+function rBe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -83847,23 +83851,23 @@ var z9 = {
shellActions: void 0,
routing: void 0
};
-function tBe() {
+function iBe() {
let e = W8, t = (e) => {
e.kind === "item" ? h9(e.id, !1) : e.kind === "jav" ? _9(e.code, !1) : e.kind === "follow" ? M9(e.id, !1) : f9(e.queue, e.key, e.item, !1);
};
- if (WLe(), z5.entityShapesReady = Q8(), MRe(), location.pathname === "/") {
+ if (qLe(), z5.entityShapesReady = Q8(), FRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, i7(L("#catalogPageHeading"), e.get("q")));
}
- i5(decodeURIComponent(location.pathname)) && t5(L("#feedNew")), BRe(), z9.shellActions = {
+ i5(decodeURIComponent(location.pathname)) && t5(L("#feedNew")), URe(), z9.shellActions = {
openSettings: (e) => $5(e, !0),
closeSettings: () => g8()?.close(!1),
openItem: (e) => void h9(e),
openEntity: (e, t) => void S5(e, t),
openTag: (e) => {
- IRe(), z7(e);
+ zRe(), z7(e);
},
- openTasteSignal: oRe,
+ openTasteSignal: lRe,
navigate: (e) => {
let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
@@ -83882,9 +83886,9 @@ function tBe() {
toast: (e, t) => O8.toast(e, t),
failure: O8.actionFailure,
revealSource: _5,
- reopenTutorial: Uze,
- routeReview: lRe,
- routeFollowManage: TRe,
+ reopenTutorial: Kze,
+ routeReview: fRe,
+ routeFollowManage: ORe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -83895,10 +83899,10 @@ function tBe() {
},
exitSelectMode: () => M5(!1, !1),
personAvatar: (e, t, n) => F5.personAvatar(e, t, n),
- authorAvatar: (e) => DRe(e),
- showIndexTags: ORe,
+ authorAvatar: (e) => ARe(e),
+ showIndexTags: jRe,
openFollowAuthor: R5,
- openFollowTag: kRe,
+ openFollowTag: MRe,
openPlaylist: (e, t) => void p9(e, t, !0),
canFlip: () => !Ql && !r9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -83959,23 +83963,23 @@ function tBe() {
}
}
}, z9.routing = !1, e.listen(document, "click", (e) => {
- let t = eBe(e);
+ let t = rBe(e);
t && (e.preventDefault(), z9.shellActions.navigate(t));
}), W8.own(Np.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && d9(!1), z9.routing && !e.claimed && w9();
- })), cLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), URe(), yRe(), t7(), Promise.all([
+ })), dLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), KRe(), SRe(), t7(), Promise.all([
e9(),
- VRe(),
+ WRe(),
z5.entityShapesReady
]).then(() => {
- e.isActive && (z5.wantsDiscoveryBars() && L7().catch((e) => console.error("首页横条装载失败", e)), x9(), vze(), z9.routing = !0, W({ pageOpens: 1 }), w9(), v7());
+ e.isActive && (z5.wantsDiscoveryBars() && L7().catch((e) => console.error("首页横条装载失败", e)), x9(), xze(), z9.routing = !0, W({ pageOpens: 1 }), w9(), v7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var B9 = !1;
-async function nBe(e, t) {
+async function aBe(e, t) {
if (B9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -83997,7 +84001,7 @@ async function nBe(e, t) {
}
}
// src/application/chrome.js
-function rBe() {
+function oBe() {
(() => {
let e = W8, t = [
"#brandHome",
@@ -84059,7 +84063,7 @@ function rBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- qG(t.libraries);
+ WG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84097,14 +84101,14 @@ function rBe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && nBe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), aM();
+ t.getAttribute("aria-pressed") !== "true" && aBe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), nM();
});
- })), aM();
+ })), nM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
- e.own(y.dispose), e.own(Kle(v)), hLe({
+ e.own(y.dispose), e.own(Yle(v)), vLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -84247,8 +84251,8 @@ function rBe() {
})(), Z5(!X5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var iBe = 200, aBe = 400, oBe = 240;
-function sBe() {
+var sBe = 200, cBe = 400, lBe = 240;
+function uBe() {
let e = document.createElement("div");
e.className = "navprogress", e.setAttribute("aria-hidden", "true"), e.append(document.createElement("i")), document.body.append(e);
let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => up() || t.size > 0, s = () => {
@@ -84259,12 +84263,12 @@ function sBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, iBe);
+ }, sBe);
} else clearTimeout(n), n = 0, !(e.dataset.state !== "running" || r) && (r = window.setTimeout(() => {
e.dataset.state = "done", r = window.setTimeout(() => {
r = 0, delete e.dataset.state;
- }, oBe);
- }, Math.max(0, aBe - (performance.now() - i))));
+ }, lBe);
+ }, Math.max(0, cBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84281,15 +84285,15 @@ function sBe() {
};
}
// src/application/initialize.js
-function cBe() {
- Hze(), Oze(), NRe(), kze(), bze(), gLe(), dze(), Wze(), rRe(), Eze(), bRe(), fze(), XLe(), uRe(), Bze(), ARe(), iRe(), Vze(), jRe(), aRe(), YRe(), pze(), Qze(), Dze(), $ze(), xze(), tBe(), rBe(), W8.own(sBe()), W8.own(W7), W8.own(S9);
+function dBe() {
+ Gze(), jze(), IRe(), Mze(), Cze(), yLe(), mze(), qze(), oRe(), kze(), CRe(), hze(), $Le(), pRe(), Uze(), NRe(), sRe(), Wze(), PRe(), cRe(), QRe(), gze(), tBe(), Aze(), nBe(), wze(), iBe(), oBe(), W8.own(uBe()), W8.own(W7), W8.own(S9);
}
// src/ui-kit/middle-truncate.ts
-var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, dBe = (e) => uBe ? [...uBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
+var fBe = "…", pBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, mBe = (e) => pBe ? [...pBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + lBe + (r ? e.slice(-r).join("") : "");
-}, fBe = (e, t) => {
+ return e.slice(0, n).join("") + fBe + (r ? e.slice(-r).join("") : "");
+}, hBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -84297,23 +84301,23 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, pBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, mBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, hBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, gBe = /[＀-￯]/u, _Be = (e) => mBe.test(e) ? 1 : hBe.test(e) && !gBe.test(e) ? 2 : 0, vBe = (e) => {
+}, gBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, _Be = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, vBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, yBe = /[＀-￯]/u, bBe = (e) => _Be.test(e) ? 1 : vBe.test(e) && !yBe.test(e) ? 2 : 0, xBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = _Be(r);
+ let e = bBe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, yBe = null, bBe = (e, t) => {
- let n = getComputedStyle(e), r = (yBe ||= document.createElement("canvas")).getContext("2d");
+}, SBe = null, CBe = (e, t) => {
+ let n = getComputedStyle(e), r = (SBe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, dBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += vBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, mBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += xBe(e) * s), t;
};
-}, xBe = [
+}, wBe = [
"font-family",
"font-size",
"font-weight",
@@ -84338,7 +84342,7 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], J9 = null, SBe = (e) => {
+], J9 = null, TBe = (e) => {
if (!J9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", J9 = {
@@ -84347,10 +84351,10 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
};
}
J9.box.isConnected || document.documentElement.append(J9.box);
- let t = getComputedStyle(e), n = xBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
- return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(xBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
-}, CBe = 8, wBe = (e) => {
- for (let t = 0; e.length && t < CBe; t++) {
+ let t = getComputedStyle(e), n = wBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(wBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
+}, EBe = 8, DBe = (e) => {
+ for (let t = 0; e.length && t < EBe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = q9(e.fit.parts, t), e.group.append(n), n;
@@ -84368,28 +84372,28 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, TBe = (e) => {
+}, OBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = pBe.test(e), i = bBe(n.element, r);
- if (n.kept = fBe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = gBe.test(e), i = CBe(n.element, r);
+ if (n.kept = hBe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: SBe(n.element),
+ group: TBe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- wBe(t);
-}, EBe = (e) => {
+ DBe(t);
+}, kBe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, DBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return EBe(e);
+}, ABe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return kBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84398,7 +84402,7 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, OBe = () => {
+}, jBe = () => {
U9 = 0;
let e = [];
for (let t of H9) {
@@ -84406,12 +84410,12 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
n && t.isConnected && e.push({
element: t,
state: n,
- available: DBe(t),
- parts: dBe(n.full),
+ available: ABe(t),
+ parts: mBe(n.full),
kept: 0
});
}
- H9.clear(), TBe(e.filter((e) => e.available > 0));
+ H9.clear(), OBe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? q9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -84419,28 +84423,28 @@ var lBe = "…", uBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, Y9 = (e) => {
- V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(OBe));
-}, kBe = (e) => {
+ V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(jBe));
+}, MBe = (e) => {
e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
}), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
-}, ABe = (e) => {
+}, NBe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && kBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(kBe);
+ t.matches("[data-middle-truncate]") && MBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(MBe);
};
-function jBe(e = document) {
+function PBe(e = document) {
K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
G9 = new ResizeObserver((e) => e.forEach((e) => {
t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
}));
let n = G9;
- ABe(e.documentElement || e);
+ NBe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(ABe);
+ e.addedNodes.forEach(NBe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
let r = V9.get(n);
@@ -84466,7 +84470,7 @@ function jBe(e = document) {
return K9 = a, a;
}
// src/react/result-updates.tsx
-var MBe = [
+var FBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84491,15 +84495,15 @@ var MBe = [
"follow",
"entity",
"index"
-], NBe = [
+], IBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], PBe = {
+], LBe = {
catalog: [
- ...MBe,
+ ...FBe,
...X9,
"review",
"taste"
@@ -84509,19 +84513,19 @@ var MBe = [
"stats",
"taste"
],
- discoveries: NBe,
+ discoveries: IBe,
review: ["review"],
artwork: [
- ...MBe,
+ ...FBe,
...X9,
- ...NBe,
+ ...IBe,
"avatar-choices"
]
};
-function FBe() {
+function RBe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of PBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of LBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84534,67 +84538,67 @@ function FBe() {
})), t || Promise.resolve();
};
}
-function IBe() {
+function zBe() {
let e = Ft({
- queryKey: WI,
- queryFn: ({ signal: e }) => KI(e),
- refetchInterval: (e) => GI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(FBe), r = e.data?.result_versions;
+ queryKey: VI,
+ queryFn: ({ signal: e }) => UI(e),
+ refetchInterval: (e) => HI(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(RBe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
// src/react/application.tsx
var Z9 = null;
-function LBe(e) {
+function BBe(e) {
Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
}
-function RBe() {
+function VBe() {
if (!Z9) {
- let e = MLe();
+ let e = FLe();
Z9 = {
effects: e,
owners: 0
- }, e.own(jBe(document)), e.own(() => {
+ }, e.own(PBe(document)), e.own(() => {
Nl(), H.cancelQueries();
- }), e.own(lLe), e.own(Cp), e.own(os);
+ }), e.own(fLe), e.own(Cp), e.own(os);
}
return Z9.owners += 1, Z9.effects.resume(), Z9;
}
-function zBe() {
+function HBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Z9 === null, n = RBe(), r = sLe(t);
+ let e = Z9 === null, n = VBe(), r = uLe(t);
if (e) try {
- cBe();
+ dBe();
} catch (e) {
throw r(), n.effects.dispose(), Z9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => LBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => BBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Cbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(Ebe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(IBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(zBe, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function BBe(e) {
+function UBe(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, wbe);
+ let n = (0, zt.createRoot)(e, Dbe);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- Q9.get(e) === n && (Q9.delete(e), r(), Z9 && LBe(Z9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(zBe, {}))), n;
+ Q9.get(e) === n && (Q9.delete(e), r(), Z9 && BBe(Z9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(HBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-BBe($9);
-export { BL as $2ec61d1d4f780267$export$a8a3e93435678ff9, JL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, rB as $76d00c5a4edb230a$export$76ccd210b9029917, eB as $76d00c5a4edb230a$export$816b5d811295e6bc, oB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, cB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, $z as $76d00c5a4edb230a$export$f850895b287ef28e, Uhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Hhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, zhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, fB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Khe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, wz as $f2ff30fde7b014be$export$3ddf2d174ce01153, jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Mz as $fe21c36db05242bb$export$d7b12c4107be0d61, kge as $l, Uj as ACCENTS, IAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, LAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, KU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, vL as ButtonLink, WB as Bx, s$ as CLEANUP_ENTRY, o$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, HY as CONFIGURATION_URL, RAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, D$ as CUSTOM_SOURCES_KEY, E$ as CUSTOM_SOURCES_URL, oG as CatalogViewToggle, RV as Checkbox, LV as CheckboxGlyph, OV as ChevronSortDown, GU as Chip, tW as CloudDownloadDialog, MH as CollapseChevron, jH as CollapseRegion, e$ as CollectionSummary, mTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, mEe as DIRECTORY_TEMPLATE_ERROR, cW as DISCOVERY_SORTS, JU as DOWNLOADS_KEY, qU as DOWNLOADS_URL, cY as DUPLICATES_KEY, HJ as DataTableFooter, RJ as DataTableFrame, VJ as DataTableSort, RH as Disclosure, wye as DownloadsPanel, vge as E3, hTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, IB as Ea, n_e as EmptyFocusButton, uV as EmptyState, IH as ErrorText, Kge as Eu, vve as ExternalLink, Vr as FEEDS_KEY, XY as FEED_SCHEDULE_KEY, i$ as FIELDSET_FOOT, pIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, YY as FOLLOW_SCHEDULE_KEY, xve as Fact, bve as FactList, LH as FieldLabel, _$ as Fieldset, g$ as FieldsetTitle, Bpe as FilterGlass, dL as FilterGlassRows, uL as FilterIconButton, fL as FilterPill, _ve as Footer, VB as Gg, pL as GlassPill, JB as HN, FH as Help, tV as HintText, aIe as IDLE_POLL_MS, rTe as IDLE_REPAIR, oL as IconButton, OQ as IndexSearch, oV as Input, aV as InputBase, y$ as IssueRow, sM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, _W as JavHeader, Zwe as KEEP_LABELS, cge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, ZV as LIBRARY_PROCESSING_KEY, PY as LINKS_KEY, FY as LINK_CHECK_KEY, zTe as LINK_KINDS, IY as LINK_PRUNE_KEY, nr as LOC, eV as Label, S$ as LibraryProcessingCard, DV as LibraryShortcuts, pH as LinkButton, jge as Lo, EH as LoadingDots, bge as M6, GTe as MEDIA_PROCESSING_KEY, WTe as MEDIA_PROCESSING_URL, pY as MEDIA_REPAIR_KEY, fY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, MV as MENU_ITEM, NV as MENU_ITEM_INTERACTIVE, jV as MENU_POPOVER_SURFACE, Nge as Ma, _H as MenuDialog, gK as MixCard, sV as ModalFrame, Sx as MotionConfigContext, QB as NR, v$ as NameLink, lV as Note, Qge as OA, eX as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, zB as OV, wB as P7, _X as PERFORMER_DELETE_KEY, Nye as PHASES, UY as PICK_FOLDER_URL, l$ as PLAIN_STAT_STRIP, w$ as PLAYLISTS_KEY, eMe as POLICY_COLUMNS, nMe as POLICY_COVER_NOTE, tMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, BJ as Pagination, x$ as PathLine, XB as Pf, FI as PillTabList, iAe as PlainStat, OH as Progress, vY as QUALITY_GOALS_KEY, YB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, lW as RELEASE_SORTS, AMe as RELEASE_SORT_COLUMNS, d$ as REPAIR_CARD_TEXT, mY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, uAe as RESULT_PANEL, dAe as RESULT_SECTION, pTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, gTe as REVIEW_DECISION_LABELS, xY as REVIEW_KEY, SY as REVIEW_LABELS, wY as REVIEW_QUEUES, TY as REVIEW_QUEUE_LABELS, LG as RetryNote, Xge as Rf, $B as Rk, mve as Rows, PAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, NAe as SCRAPING_SETTINGS_URL, iU as SEGMENT, rU as SEGMENTED_TRACK, JY as SETTINGS_KEY, WY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, nAe as STAT_STRIP, rAe as STAT_STRIP_SIX, pve as Section, fAe as SectionHeading, gve as SectionSkeleton, nU as SegmentedRadioGroup, Ive as SegmentedTabList, AG as Segments, zJ as Select, HU as Select$1, $$ as SelectField, UU as SelectItem, YJ as SelectionActions, xj as SelectionDock, XJ as SelectionPopover, NH as SettingsCard, fve as SettingsRow, PH as SettingsSectionLabel, jG as Shuffle, Tve as SiteLabel, cG as SortDirectionIcon, MG as SortKeys, lQ as SourceAvatar, HH as SourceLabel, zH as SourceMark, hve as Stack, aAe as StatCard, b$ as StatusLabel, qge as Su, a4 as Switch, WI as TASKS_KEY, JFe as TASTE_REFRESH_KEY, YFe as TASTE_WINDOWS, ZY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, ype as TRIGGER_LABELS, DJ as Table, ZJ as TableColumnControls, QJ as TableColumnResizer, eY as TableSelectionHeader, YQ as TagManager, yve as TaskCenterLink, kH as TaskProgress, rV as TextField, nV as TextFieldContext, LB as Un, Zge as Uz, rW as WANTS_KEY, b4 as WantMagnets, Yg as WithPromise, OB as Wt, FB as Xc, ZB as Xf, AB as Xl, kB as Xt, EB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, qB as _p, Yge as aB, Ei as addAlias, Ti as addSource, aW as addWant, dS as animate, B as apiGet, V as apiSend, tM as appSettingsStore, NEe as applyConfirmText, gX as applyLeftovers, MEe as applyPlanText, FEe as applyText, aM as applyTheme, by as asNumber, xEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, hq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, hEe as baseName, nTe as batchOperate, Fue as beginPlayerGuidePreview, Ej as boundedPreference, $we as bulkCloudPreferences, mV as busyProps, Jge as cB, CPe as cachedMagnetStates, Ug as calcGeneratorVelocity, CTe as canApprove, vg as cancelFrame, EEe as candidateText, SU as cardClass, bM as cardRatio, FJ as catalogListSkeletonCellHtml, PB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, UTe as checkLine, Hi as checkReceipt, Ui as checkSummary, BAe as checkText, Ki as checkedText, rK as clickedBlank, Q5 as closeDrawerAfterNav, Gwe as cloudLocations, T0 as cloudProxySkeleton, WC as clsx, Ige as cn, lv as collectMotionValues, Fq as columnVisibilityFeature, SJ as column_getCanSort, vJ as column_getSortFn, xTe as commonReviewSources, eW as composingKey, Af as configurationSection, $Fe as configureTasteBrowser, ll as confirmModal, _pe as controlTask, ZK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Eq as createColumnHelper, DAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, MTe as currentReviewRow, q as cx, xge as d6, UB as dZ, kTe as decisionPayload, ATe as decisionReceipt, OTe as defaultChoice, LEe as deletePerformerVideos, kAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Hye as discoveryArtwork, uW as discoveryKey, zye as discoveryScore, d9 as disposeStage, Ywe as distinctName, Bi as dropSources, Gge as du, eTe as duplicateVictims, ZI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, mq as expandRowModel, _B as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, vi as fetchCheckJob, X$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, O$ as fetchCustomSources, vX as fetchDeletePerformers, IEe as fetchDeletePlan, DQ as fetchDiagnostics, dW as fetchDiscoveries, uY as fetchDuplicates, ppe as fetchEarlier, JTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, qTe as fetchFollowSchedule, wX as fetchJunkSummary, aH as fetchLibraryProcessing, zY as fetchLinkCheck, BY as fetchLinkPrune, RY as fetchLinkStats, KTe as fetchMediaProcessing, hY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, sEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, T$ as fetchPlaylists, yY as fetchQualityGoals, mW as fetchReleases, gY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, jY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, N$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, KI as fetchTasks, $3 as fetchTaste, eIe as fetchTasteJob, YTe as fetchThumbnailJobs, TX as fetchTrashSummary, iW as fetchWants, yTe as filterReviewRows, er as firstGrapheme, NK as flexRender, hIe as flowGraph, gIe as flowLabel, mFe as fmtCount, Jn as fmtDur, Xn as fmtSize, fpe as foldByKind, kpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, jpe as followupDetail, dpe as followupTally, _g as frame, SB as g4, Rq as getDefaultPaginationState, yM as gridLayout, li as groupByAuthor, Ope as groupFollowups, OY as groupReviewRows, AEe as hasChanges, dX as hasResourceRoots, JI as hasResultProblems, oIe as historySpan, vB as i2, iIe as importTasteExport, S0 as indexersSkeleton, zg as interpolate, sW as invalidateWants, XI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, CY as isReviewCategory, Ape as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, fM as javLayout, H0 as javTagSkeleton, HEe as junkBreakdown, AAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, sge as l1, mge as l7, Dpe as latestOfKind, $n as leadingGraphemes, EFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, CB as m7, HB as mM, Dn as mapLimit, Ai as markItem, P3 as max, wFe as mediumRows, mpe as mergeFinished, F3 as min, LTe as mirrorText, oTe as missingToolText, dY as mixedCloudPreferences, tL as momentText, fS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Sge as oe, _Ee as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, DTe as pendingGenres, gFe as percentText, uEe as pickOrganizeFolder, c$ as plainStatClass, gEe as planSummary, A3 as playedFor, vFe as playedItemUrl, GI as pollInterval, Ys as popCount, EAe as posterUrl, hxe as previewLibraryColor, lEe as previewOrganize, lTe as previewUrl, Tpe as problemDestination, eH as processingActive, QI as progressText, VH as providerIcon, HTe as pruneText, pX as purgeCount, SEe as purgeOrphan, GB as pv, Wge as qE, H as queryClient, yB as r2, fIe as radarRows, xFe as radialArc, SFe as radialBarSize, bFe as radialCeiling, yFe as radialSlices, IN as randomId, uIe as rankDetail, dIe as rankShares, M3 as reachedShare, $I as readableErrorHeadline, Bye as recommendationScore, NTe as recordGenre, wEe as recordsText, jAe as recreatePlaylist, wAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, fW as releaseFilters, pW as releaseKey, Vi as reloadFollowManage, ITe as reloadReview, aMe as rememberShape, fEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, rIe as removeTasteSource, oW as removeWants, Oi as renameAliasGroup, OAe as renamePlaylist, Se as replaceEqualDeep, OFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, qK as require_with_selector, Iye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, J_e as restartEffectText, TAe as resumeAssetId, vTe as reviewGroupingOptions, DY as reviewQueueData, EY as reviewQueueOf, VEe as reviewSummary, bTe as reviewWindow, TTe as rowEvidence, AY as rowFieldName, Gq as rowPaginationFeature, fJ as rowSelectionFeature, TJ as rowSortingFeature, kY as rowSubject, ETe as rowTags, wTe as rowTitle, dge as s5, ki as saveCredential, jEe as scanLine, eEe as schedulePollInterval, Rye as searchNote, STe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, FTe as settleReviewRows, Jwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, aq as skipFirstRun, NI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, PEe as sourceMeta, Bs as spinnerHtml, Lg as spring, fV as spriteGlyph, xi as startCheck, BTe as startLinkCheck, VTe as startLinkPrune, dEe as startOrganize, Si as startResolve, OEe as startResourceApply, DEe as startResourceScan, nIe as startTasteRefresh, tAe as statCardClass, xpe as statusLabel, aTe as statusLine, Qr as statusText, xM as storeJavLayout, jTe as submitDecision, nL as summaryItems, Dq as tableFeatures, oq as tableMemo, di as tableRows, wpe as taskIssues, Epe as taskSubject, e6 as tasteDate, cIe as tasteDimensions, sIe as tasteHours, Q3 as tasteKey, ZFe as tasteRefetchInterval, QFe as tasteTime, zI as textLang, I0 as tierPlaceholdersHtml, ch as time, Dge as tl, hi as toggleGroup, t6 as topScores, Rge as um, Mge as uo, mH as useAction, wZ as useBackgroundJob, aG as useCatalogView, PU as useClientUpdates, bm as useConstant, rL as useEntityNames, lL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, nK as useLibraryTints, It as useMutation, zV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, $Te as useRunSchedule, ZTe as useSaveFollowSchedule, $Y as useSaveSettings, tEe as useSaveThumbnailMode, EJ as useTable, GJ as useTablePreferences, gL as useViewGlide, tTe as victimBytes, Oge as vl, Lye as wantName, _Fe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, pEe as withOrganizeJob, Vye as writeJavQuery, yge as z3 };
+UBe($9);
+export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, Khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ghe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Yhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Mge as $l, Bj as ACCENTS, zAe as AMANE_BRIDGE_CHECK_URL, j$ as AMANE_BRIDGE_KEY, BAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, hL as ButtonLink, VB as Bx, A$ as CHECK_ALL_KEY, i$ as CLEANUP_ENTRY, r$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, VAe as COOKIE_TEXT_LIMIT, k$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, w$ as CUSTOM_SOURCES_KEY, C$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, ZQ as CollectionSummary, _Te as DEFAULT_CATEGORY, dr as DEFAULT_SORT, CQ as DIAGNOSTICS_KEY, _Ee as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, Dye as DownloadsPanel, xge as E3, vTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, NB as Ea, a_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Yge as Eu, xve as ExternalLink, Vr as FEEDS_KEY, KY as FEED_SCHEDULE_KEY, t$ as FIELDSET_FOOT, gIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, EZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, GY as FOLLOW_SCHEDULE_KEY, wve as Fact, Cve as FactList, PH as FieldLabel, m$ as Fieldset, p$ as FieldsetTitle, Upe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, bve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, cIe as IDLE_POLL_MS, oTe as IDLE_REPAIR, rL as IconButton, TQ as IndexSearch, rV as Input, nV as InputBase, g$ as IssueRow, iM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, _X as JUNK_KEY, mW as JavHeader, eTe as KEEP_LABELS, dge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, HTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, y$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Pge as Lo, CH as LoadingDots, Cge as M6, JTe as MEDIA_PROCESSING_KEY, JY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Ige as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, xx as MotionConfigContext, YB as NR, h$ as NameLink, oV as Note, t_e as OA, ZY as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, eX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, mX as PERFORMER_DELETE_KEY, Iye as PHASES, BY as PICK_FOLDER_URL, o$ as PLAIN_STAT_STRIP, x$ as PLAYLISTS_KEY, rMe as POLICY_COLUMNS, aMe as POLICY_COVER_NOTE, iMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, LJ as Pagination, v$ as PathLine, qB as Pf, MI as PillTabList, sAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, NMe as RELEASE_SORT_COLUMNS, c$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, aX as RESOURCE_APPLY_KEY, iX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, pAe as RESULT_PANEL, mAe as RESULT_SECTION, gTe as REVIEW_CATEGORIES, gX as REVIEW_COUNTS_KEY, yTe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, $ge as Rf, XB as Rk, _ve as Rows, E$ as SCRAPING_CHECK_ALL_URL, LAe as SCRAPING_CHECK_URL, D$ as SCRAPING_COVER_URL, O$ as SCRAPING_KEY, IAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, WY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, aAe as STAT_STRIP, oAe as STAT_STRIP_SIX, gve as Section, hAe as SectionHeading, yve as SectionSkeleton, $H as SegmentedRadioGroup, zve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, $$ as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, hve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, Ove as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, oQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, vve as Stack, cAe as StatCard, _$ as StatusLabel, Xge as Su, a4 as Switch, VI as TASKS_KEY, ZFe as TASTE_REFRESH_KEY, QFe as TASTE_WINDOWS, qY as THUMBNAIL_JOBS_KEY, yX as TRASH_KEY, Spe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, KQ as TagManager, Sve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, e_e as Uz, eW as WANTS_KEY, b4 as WantMagnets, Jg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, Qge as aB, Ei as addAlias, Ti as addSource, nW as addWant, uS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, IEe as applyConfirmText, pX as applyLeftovers, FEe as applyPlanText, REe as applyText, nM as applyTheme, yy as asNumber, wEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, fq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, vEe as baseName, aTe as batchOperate, Rue as beginPlayerGuidePreview, Cj as boundedPreference, nTe as bulkCloudPreferences, dV as busyProps, Zge as cB, EPe as cachedMagnetStates, Hg as calcGeneratorVelocity, ETe as canApprove, vg as cancelFrame, kEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, KTe as checkLine, Hi as checkReceipt, Ui as checkSummary, UAe as checkText, Ki as checkedText, eK as clickedBlank, Q5 as closeDrawerAfterNav, Jwe as cloudLocations, T0 as cloudProxySkeleton, UC as clsx, zge as cn, cv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, wTe as commonReviewSources, ZU as composingKey, Af as configurationSection, nIe as configureTasteBrowser, ll as confirmModal, bpe as controlTask, JK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Cq as createColumnHelper, AAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, FTe as currentReviewRow, q as cx, wge as d6, BB as dZ, MTe as decisionPayload, NTe as decisionReceipt, jTe as defaultChoice, BEe as deletePerformerVideos, MAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Gye as discoveryArtwork, sW as discoveryKey, Hye as discoveryScore, d9 as disposeStage, Qwe as distinctName, Bi as dropSources, Jge as du, rTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, P$ as fetchCheckAllJob, vi as fetchCheckJob, X$ as fetchConfiguration, N$ as fetchCoverJob, _i as fetchCredentials, T$ as fetchCustomSources, hX as fetchDeletePerformers, zEe as fetchDeletePlan, wQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, gpe as fetchEarlier, ZTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, XTe as fetchFollowSchedule, xX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, YTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, QY as fetchOrganize, uEe as fetchOrganizeExample, tX as fetchOrphanRecords, ji as fetchPending, S$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, yi as fetchResolveJob, sX as fetchResourceApply, oX as fetchResourceScan, OY as fetchReview, bX as fetchReviewCounts, YY as fetchSettings, M$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, UI as fetchTasks, $3 as fetchTaste, rIe as fetchTasteJob, QTe as fetchThumbnailJobs, SX as fetchTrashSummary, tW as fetchWants, STe as filterReviewRows, er as firstGrapheme, AK as flexRender, vIe as flowGraph, yIe as flowLabel, _Fe as fmtCount, Jn as fmtDur, Xn as fmtSize, hpe as foldByKind, Mpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, Ppe as followupDetail, mpe as followupTally, _g as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, li as groupByAuthor, jpe as groupFollowups, TY as groupReviewRows, NEe as hasChanges, cX as hasResourceRoots, GI as hasResultProblems, lIe as historySpan, hB as i2, sIe as importTasteExport, S0 as indexersSkeleton, wee as interpolate, iW as invalidateWants, qI as isActive, $r as isBroken, qr as isLayout, yv as isMotionValue, bY as isReviewCategory, Npe as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, lM as javLayout, H0 as javTagSkeleton, GEe as junkBreakdown, NAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, uge as l1, _ge as l7, Ape as latestOfKind, $n as leadingGraphemes, kFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, Ai as markItem, P3 as max, DFe as mediumRows, _pe as mergeFinished, F3 as min, BTe as mirrorText, lTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, dS as motion, uv as motionValue, rn as nameFallback, Ue as notifyManager, Tge as oe, bEe as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, ATe as pendingGenres, yFe as percentText, pEe as pickOrganizeFolder, a$ as plainStatClass, yEe as planSummary, A3 as playedFor, xFe as playedItemUrl, HI as pollInterval, Ys as popCount, kAe as posterUrl, vxe as previewLibraryColor, fEe as previewOrganize, fTe as previewUrl, Ope as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, GTe as pruneText, uX as purgeCount, TEe as purgeOrphan, HB as pv, qge as qE, H as queryClient, gB as r2, hIe as radarRows, wFe as radialArc, TFe as radialBarSize, CFe as radialCeiling, SFe as radialSlices, NN as randomId, pIe as rankDetail, mIe as rankShares, M3 as reachedShare, XI as readableErrorHeadline, Uye as recommendationScore, ITe as recordGenre, DEe as recordsText, PAe as recreatePlaylist, DAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Vi as reloadFollowManage, zTe as reloadReview, cMe as rememberShape, hEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, oIe as removeTasteSource, rW as removeWants, Oi as renameAliasGroup, jAe as renamePlaylist, Se as replaceEqualDeep, jFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, zye as resetWants, mr as resolveFollowSort, Gg as resolveStartTime, Z_e as restartEffectText, OAe as resumeAssetId, xTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, WEe as reviewSummary, CTe as reviewWindow, OTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, kTe as rowTags, DTe as rowTitle, mge as s5, ki as saveCredential, PEe as scanLine, rEe as schedulePollInterval, Vye as searchNote, TTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, RTe as settleReviewRows, Zwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, LEe as sourceMeta, Bs as spinnerHtml, Lg as spring, lV as spriteGlyph, xi as startCheck, UTe as startLinkCheck, WTe as startLinkPrune, mEe as startOrganize, Si as startResolve, jEe as startResourceApply, AEe as startResourceScan, aIe as startTasteRefresh, iAe as statCardClass, wpe as statusLabel, cTe as statusLine, Qr as statusText, vM as storeJavLayout, PTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, di as tableRows, Dpe as taskIssues, kpe as taskSubject, e6 as tasteDate, dIe as tasteDimensions, uIe as tasteHours, Q3 as tasteKey, eIe as tasteRefetchInterval, tIe as tasteTime, II as textLang, I0 as tierPlaceholdersHtml, ch as time, Age as tl, hi as toggleGroup, t6 as topScores, Vge as um, Fge as uo, dH as useAction, xZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, bm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, nEe as useRunSchedule, eEe as useSaveFollowSchedule, XY as useSaveSettings, iEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, iTe as victimBytes, jge as vl, Bye as wantName, bFe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, gEe as withOrganizeJob, Wye as writeJavQuery, Sge as z3 };
-//# debugId=f801708c-39a2-426c-b8b8-125b72b1203f
\ No newline at end of file
+//# debugId=86b9d852-8d38-467c-b4d6-d39c782496c0
\ No newline at end of file
diff --git a/web/dist/peach-app.scraping-page-C4xFEKWF.js b/web/dist/peach-app.scraping-page-C4xFEKWF.js
deleted file mode 100644
index b51de7b2b..000000000
--- a/web/dist/peach-app.scraping-page-C4xFEKWF.js
+++ /dev/null
@@ -1,618 +0,0 @@
-(function() {
- try {
- var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0752b745-04e9-4673-a42e-cc26f852a1f8", e._sentryDebugIdIdentifier = "sentry-dbid-0752b745-04e9-4673-a42e-cc26f852a1f8");
- } catch {}
-})();
-import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, AMANE_BRIDGE_CHECK_URL as t, AMANE_BRIDGE_KEY as n, AMANE_BRIDGE_REBUILD_URL as r, Button as i, COVER_JOB_KEY as a, CUSTOM_SOURCES_KEY as o, CUSTOM_SOURCES_URL as s, Checkbox as c, Disclosure as l, ErrorText as u, ExternalLink as d, Fact as f, FactList as p, FieldLabel as m, Footer as h, Help as g, Input as _, LinkButton as v, LoadingDots as y, Note as b, Rows as ee, SCRAPING_CHECK_URL as te, SCRAPING_COVER_URL as x, SCRAPING_KEY as S, SCRAPING_SETTINGS_URL as ne, SEGMENT as re, SEGMENTED_TRACK as ie, Section as C, SegmentedRadioGroup as ae, Select$1 as oe, SelectField as w, SelectItem as se, SettingsRow as ce, Stack as T, StatusLabel as E, __toESM as D, apiSend as O, busyProps as k, checkText as le, composingKey as A, confirmModal as j, errorMessage as M, esc as N, fetchAmaneBridge as P, fetchCoverJob as F, fetchCustomSources as I, fetchSources as L, i2 as ue, queryClient as R, require_jsx_runtime as z, require_react as B, spinnerHtml as V, useAction as H, useBackgroundJob as U, useMutation as W, useQuery as G } from "./peach-app.js";
-import { CodeBlock as de } from "./peach-app.code-block-CyDva4Ms.js";
-import { Page as K } from "./peach-app.page-QAncjzM1.js";
-import { SiteMark as q } from "./peach-app.site-mark-D_VlIyJz.js";
-import { ConnectionStatus as fe } from "./peach-app.connection-status-DI6kgn3i.js";
-// src/react/scraping/custom-sources.tsx
-var J = /* @__PURE__ */ D(B(), 1), Y = z(), pe = [
- ["code", "番号"],
- ["title", "标题"],
- ["studio", "厂牌"],
- ["series", "系列"],
- ["release_date", "发行日期"],
- ["performers", "演员(文本数组)"],
- ["tags", "标签(文本数组)"]
-], me = [
- ["censored", "有码"],
- ["amateur", "素人"],
- ["uncensored", "无码"],
- ["fc2", "FC2"],
- ["kmib", "韩国 MIB"],
- ["other", "其他"],
- ["unsure", "待核番号"],
- ["unknown", "未知"]
-], he = () => ({
- name: "",
- endpoint: "",
- enabled: !1,
- fields: {
- code: "id",
- title: "title"
- },
- content_types: ["censored"]
-});
-function ge({ receipt: e }) {
- let [t, n] = (0, J.useState)(null), r = G({
- queryKey: o,
- queryFn: ({ signal: e }) => I(e)
- }), a = H(), c = (e) => R.setQueryData(o, e), l = !!(r.isPending || r.error || r.data?.items.length || a.error), d = /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: () => n(he()),
- children: "添加来源"
- });
- return /* @__PURE__ */ (0, Y.jsxs)(C, {
- title: "自定义元数据来源",
- children: [
- l ? /* @__PURE__ */ (0, Y.jsxs)(T, { children: [
- r.isPending ? /* @__PURE__ */ (0, Y.jsx)("div", {
- "aria-busy": "true",
- "data-skeleton": "",
- "aria-label": "读取自定义来源"
- }) : null,
- r.error ? /* @__PURE__ */ (0, Y.jsx)(u, { children: M(r.error) }) : null,
- r.data?.items.map((t) => /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-wrap items-center gap-3",
- children: [
- /* @__PURE__ */ (0, Y.jsx)("span", {
- className: "min-w-0 flex-1",
- children: t.name
- }),
- /* @__PURE__ */ (0, Y.jsx)(E, {
- tone: t.enabled ? "success" : "neutral",
- children: t.enabled ? "已启用" : "已停用"
- }),
- /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: () => n(t),
- children: "编辑"
- }),
- /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- ...k(a.busy === t.id),
- onClick: () => void a.run(t.id, (e) => O(s, {
- ...t,
- enabled: !t.enabled
- }, "POST", e), (n) => {
- c(n), e(t.enabled ? "已停用来源" : "已启用来源");
- }),
- children: t.enabled ? "停用" : "启用"
- }),
- /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "danger",
- onClick: () => j({
- title: "删除自定义来源",
- body: `删除「${N(t.name)}」后,采集将不再查询这个来源。`,
- confirmLabel: "删除来源",
- danger: !0,
- onConfirm: async () => {
- c(await O(s, {
- action: "delete",
- id: t.id
- })), n(null), e("已删除来源");
- }
- }),
- children: "删除"
- })
- ]
- }, t.id)),
- a.error ? /* @__PURE__ */ (0, Y.jsx)(u, { children: a.error }) : null
- ] }) : null,
- t ? null : l ? /* @__PURE__ */ (0, Y.jsx)(h, { children: d }) : /* @__PURE__ */ (0, Y.jsx)(T, { children: /* @__PURE__ */ (0, Y.jsx)("div", {
- className: "flex justify-end",
- children: d
- }) }),
- t ? /* @__PURE__ */ (0, Y.jsx)(_e, {
- initial: t,
- cancel: () => n(null),
- saved: (t) => {
- c(t), n(null), e("已保存来源");
- }
- }, t.id || "new") : null
- ]
- });
-}
-function _e({ initial: e, cancel: t, saved: n }) {
- let [r, a] = (0, J.useState)(e), [o, l] = (0, J.useState)(""), [d, f] = (0, J.useState)(""), p = (0, J.useRef)(0), v = H(), y = (e) => {
- p.current++, a((t) => ({
- ...t,
- ...e
- })), f("");
- };
- return /* @__PURE__ */ (0, Y.jsxs)("form", {
- "aria-label": "元数据来源配置",
- "aria-busy": v.busy === "preview",
- onSubmit: (e) => {
- e.preventDefault(), v.run("save", (e) => O(s, r, "POST", e), n);
- },
- children: [/* @__PURE__ */ (0, Y.jsxs)(T, { children: [
- /* @__PURE__ */ (0, Y.jsx)(_, {
- label: "来源名称",
- value: r.name,
- maxLength: 80,
- onChange: (e) => y({ name: e })
- }),
- /* @__PURE__ */ (0, Y.jsx)(_, {
- label: "JSON 接口地址",
- value: r.endpoint,
- maxLength: 2048,
- placeholder: "https://example.com/api/movies/{code}",
- onChange: (e) => y({ endpoint: e })
- }),
- /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, Y.jsx)(m, { children: "来源连接方式" }), /* @__PURE__ */ (0, Y.jsx)(w, {
- id: "custom-source-network",
- label: "来源连接方式",
- epoch: 0,
- value: r.network || "direct",
- options: [["direct", "直连"], ["peach_proxy", "Peach 代理"]],
- onPick: (e) => y({ network: e })
- })]
- }),
- /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, Y.jsx)(m, { children: "接口番号格式" }), /* @__PURE__ */ (0, Y.jsx)(w, {
- id: "custom-source-code-format",
- label: "接口番号格式",
- epoch: 0,
- value: r.code_format || "original",
- options: [
- ["original", "原样"],
- ["lowercase", "小写"],
- ["compact", "去掉连字符"],
- ["underscore", "连字符转下划线"]
- ],
- onPick: (e) => y({ code_format: e })
- })]
- }),
- /* @__PURE__ */ (0, Y.jsx)(g, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
- pe.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(_, {
- label: `${t}字段路径`,
- value: r.fields[e] || "",
- onChange: (t) => {
- let n = { ...r.fields };
- t ? n[e] = t : delete n[e], y({ fields: n });
- }
- }, e)),
- /* @__PURE__ */ (0, Y.jsx)("div", {
- className: "flex flex-wrap gap-3",
- role: "group",
- "aria-label": "适用内容类型",
- children: me.map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(c, {
- isSelected: r.content_types.includes(e),
- onChange: (t) => y({ content_types: t ? [...r.content_types, e] : r.content_types.filter((t) => t !== e) }),
- children: t
- }, e))
- }),
- /* @__PURE__ */ (0, Y.jsx)(c, {
- isSelected: r.enabled,
- onChange: (e) => y({ enabled: e }),
- children: "启用来源"
- }),
- /* @__PURE__ */ (0, Y.jsx)(_, {
- label: "试查番号(回车查询)",
- value: o,
- onChange: (e) => {
- p.current++, l(e), f("");
- },
- onKeyDown: (e) => {
- if (e.key !== "Enter" || A(e.nativeEvent)) return;
- e.preventDefault();
- let t = p.current;
- v.run("preview", (e) => O(s, {
- ...r,
- code: o,
- action: "preview"
- }, "POST", e), (e) => {
- t === p.current && f(JSON.stringify(e.record, null, 2));
- }, (e) => {
- t === p.current && v.setError(M(e));
- });
- }
- }),
- v.busy === "preview" ? /* @__PURE__ */ (0, Y.jsxs)(g, {
- role: "status",
- children: [/* @__PURE__ */ (0, Y.jsx)("span", { dangerouslySetInnerHTML: { __html: V("正在试查来源") } }), "正在试查来源"]
- }) : null,
- d ? /* @__PURE__ */ (0, Y.jsx)(de, {
- code: d,
- language: "json",
- label: "元数据接口返回"
- }) : null,
- v.error ? /* @__PURE__ */ (0, Y.jsx)(u, { children: v.error }) : null
- ] }), /* @__PURE__ */ (0, Y.jsxs)(h, { children: [/* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- type: "button",
- onClick: t,
- children: "取消"
- }), /* @__PURE__ */ (0, Y.jsx)(i, {
- type: "submit",
- ...k(v.busy === "save"),
- children: "保存来源"
- })] })]
- });
-}
-// src/react/scraping/scraping-page.tsx
-var X = [["peach", "Peach 代理"], ["direct", "直接连接"]];
-function Z(e) {
- return X.some(([t]) => t === e) || !e ? [...X] : [...X, [e, e]];
-}
-function Q(e) {
- try {
- return new URL(e).host || e;
- } catch {
- return e;
- }
-}
-var $ = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function ve() {
- return /* @__PURE__ */ (0, Y.jsx)(q, { source: "github" });
-}
-function ye({ source: t, toast: n }) {
- let [r, a] = (0, J.useState)(t.network), [o, s] = (0, J.useState)(""), [c, l] = (0, J.useState)(""), [f, p] = (0, J.useState)($[0][0]), [g, y] = (0, J.useState)(""), [x, w] = (0, J.useState)(""), D = (0, J.useRef)(null);
- function A() {
- s(""), l(""), y(""), w(""), D.current && (D.current.value = "");
- }
- let j = W({
- mutationFn: (e) => O(ne, {
- source: t.source,
- network: r,
- cookie: o,
- cookies_text: c,
- revoke: e
- }),
- onSuccess: (e, t) => {
- R.setQueryData(S, (t) => t && {
- ...t,
- sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
- }), A(), n(t ? "Cookie 已撤销" : "来源设置已保存");
- }
- }), N = W({ mutationFn: () => O(te, { source: t.source }) }), P = j.isPending || N.isPending, F = (e) => {
- e.preventDefault(), !P && (N.reset(), j.mutate(!1));
- }, I = () => {
- P || (N.reset(), j.mutate(!0));
- }, L = () => {
- P || (j.reset(), N.mutate());
- };
- async function z(e) {
- let t = e.currentTarget, n = t.files?.[0];
- if (l(""), w(""), !n) y("");
- else if (n.size > 262144) t.value = "", y(""), w("Cookie 文本超过 256 KiB");
- else try {
- let e = await n.text();
- l(e), y(n.name);
- } catch {
- w("Cookie 文件未读取,请重新选择");
- }
- }
- let B = x || (j.error ? M(j.error) : "") || (N.error ? M(N.error) : ""), V = N.data?.results ?? [], H = r === "peach" || t.accepts_cookie || t.browser || !!B || V.length > 0;
- return /* @__PURE__ */ (0, Y.jsxs)(C, {
- title: t.label,
- onSubmit: F,
- aside: /* @__PURE__ */ (0, Y.jsxs)("span", {
- className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, Y.jsx)(q, { source: t.source }), t.login ? /* @__PURE__ */ (0, Y.jsx)(d, {
- href: t.login,
- children: Q(t.login)
- }) : null]
- }),
- children: [
- /* @__PURE__ */ (0, Y.jsx)(ee, { children: /* @__PURE__ */ (0, Y.jsx)(ce, {
- label: "连接方式",
- children: /* @__PURE__ */ (0, Y.jsx)(oe, {
- "aria-label": "连接方式",
- className: "w-44 min-w-0",
- selectedKey: r,
- onSelectionChange: (e) => {
- e !== null && a(String(e));
- },
- children: Z(r).map(([e, t]) => /* @__PURE__ */ (0, Y.jsx)(se, {
- id: e,
- children: t
- }, e))
- })
- }) }),
- t.cooldown_until && t.cooldown_until > Date.now() / 1e3 ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "warning",
- children: /* @__PURE__ */ (0, Y.jsxs)("span", {
- className: "inline-flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, Y.jsx)(E, {
- tone: "warning",
- children: "冷却中"
- }), /* @__PURE__ */ (0, Y.jsxs)("span", { children: [
- "可在 ",
- (/* @__PURE__ */ new Date(t.cooldown_until * 1e3)).toLocaleString("zh-CN"),
- " 后重试。"
- ] })]
- })
- }) : null,
- H ? /* @__PURE__ */ (0, Y.jsxs)(T, {
- divided: !0,
- children: [
- r === "peach" ? /* @__PURE__ */ (0, Y.jsx)("span", {
- className: "self-start",
- children: /* @__PURE__ */ (0, Y.jsx)(v, {
- href: "/settings/library#peachProxy",
- size: "small",
- trailingIcon: ue,
- children: "配置 Peach 代理"
- })
- }) : null,
- t.browser ? /* @__PURE__ */ (0, Y.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: "人机验证由本机浏览器自动完成;需要点击时窗口会弹出。这台机器上不需要 Cookie。"
- }) : null,
- t.accepts_cookie && !t.browser ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
- /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, Y.jsx)("span", {
- className: "self-start",
- children: /* @__PURE__ */ (0, Y.jsx)(E, {
- tone: t.cookie_saved ? "success" : "neutral",
- children: t.cookie_saved ? "Cookie 已保存" : "Cookie 未配置"
- })
- }), /* @__PURE__ */ (0, Y.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: t.cookie_saved ? "登录有效性待验证。" : "需要登录时,任选一种方式提供 Cookie。"
- })]
- }),
- /* @__PURE__ */ (0, Y.jsx)(ae, {
- "aria-label": "提供 Cookie 的方式(二选一)",
- value: f,
- onChange: (e) => {
- p(e), A();
- },
- className: ie,
- children: $.map(([t, n]) => /* @__PURE__ */ (0, Y.jsx)(e, {
- value: t,
- className: re,
- children: n
- }, t))
- }),
- f === "paste" ? /* @__PURE__ */ (0, Y.jsx)(_, {
- type: "password",
- label: "Cookie",
- autoComplete: "off",
- value: o,
- onChange: s
- }) : /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-col gap-2",
- children: [
- /* @__PURE__ */ (0, Y.jsx)(m, { children: "Netscape Cookie 文件(.txt)" }),
- /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: () => D.current?.click(),
- children: "选择文件"
- }), /* @__PURE__ */ (0, Y.jsx)("span", {
- className: "min-w-0 text-body-2-regular break-all text-text-secondary",
- children: g || "未选择文件"
- })]
- }),
- /* @__PURE__ */ (0, Y.jsx)("input", {
- ref: D,
- type: "file",
- accept: ".txt",
- tabIndex: -1,
- "aria-hidden": !0,
- className: "hidden",
- onChange: (e) => {
- z(e);
- }
- })
- ]
- })
- ] }) : null,
- B ? /* @__PURE__ */ (0, Y.jsx)(u, { children: B }) : null,
- V.map((e) => /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: e.ok ? "success" : "error",
- children: /* @__PURE__ */ (0, Y.jsxs)("span", {
- className: "flex flex-col items-start gap-1",
- children: [/* @__PURE__ */ (0, Y.jsx)(fe, {
- tone: e.ok ? "success" : "error",
- children: e.ok ? "可访问" : "连接失败"
- }), /* @__PURE__ */ (0, Y.jsx)("span", { children: le(e, t.label) })]
- })
- }, e.label))
- ]
- }) : null,
- /* @__PURE__ */ (0, Y.jsxs)(h, { children: [
- t.accepts_cookie && t.cookie_saved ? /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: I,
- ...k(P),
- children: "撤销 Cookie"
- }) : null,
- /* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: L,
- ...k(P),
- children: "检查连接"
- }),
- /* @__PURE__ */ (0, Y.jsx)(i, {
- type: "submit",
- ...k(P),
- children: "保存"
- })
- ] })
- ]
- });
-}
-function be({ toast: e }) {
- let [t, n] = (0, J.useState)(""), { running: r, outcome: o, start: s } = U({
- queryKey: a,
- queryFn: ({ signal: e }) => F(e),
- start: () => O(x, { code: t }),
- onFinish: (t) => {
- t.status === "complete" && e(t.result || "封面采集完成");
- }
- }), c = (e) => {
- e.preventDefault(), !(r || s.isPending || !t.trim()) && s.mutate();
- }, l = s.error ? M(s.error) : o?.status === "failed" ? o.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, Y.jsx)(C, {
- title: "高清封面",
- onSubmit: c,
- children: /* @__PURE__ */ (0, Y.jsxs)(T, { children: [
- /* @__PURE__ */ (0, Y.jsxs)("div", {
- className: "flex flex-wrap items-end gap-2",
- children: [/* @__PURE__ */ (0, Y.jsx)("div", {
- className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, Y.jsx)(_, {
- "aria-label": "馆藏番号",
- isRequired: !0,
- isDisabled: r,
- value: t,
- onChange: n,
- placeholder: "输入馆藏番号,如 ABW-232"
- })
- }), /* @__PURE__ */ (0, Y.jsx)(i, {
- type: "submit",
- disabled: !t.trim(),
- ...k(r || s.isPending),
- children: "抓取封面"
- })]
- }),
- r ? /* @__PURE__ */ (0, Y.jsx)(y, { label: "正在抓取封面" }) : null,
- l ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "error",
- children: l
- }) : null,
- o?.status === "complete" ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "success",
- children: o.result || "封面采集完成"
- }) : null
- ] })
- });
-}
-function xe({ toast: e }) {
- let { query: a, running: o, outcome: s, start: c } = U({
- queryKey: n,
- queryFn: ({ signal: e }) => P(e),
- start: () => O(r, {}),
- jobOf: (e) => e.job,
- withJob: (e, t) => e && {
- ...e,
- job: t
- },
- onFinish: (t) => {
- t.status === "complete" && e(t.result || "amane 桥已重建");
- }
- }), u = W({ mutationFn: () => O(t, {}) }), m = a.data;
- if (!m) return a.error ? /* @__PURE__ */ (0, Y.jsx)(C, {
- id: "amane",
- title: "amane",
- children: /* @__PURE__ */ (0, Y.jsx)(T, { children: /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "error",
- children: M(a.error)
- }) })
- }) : null;
- let _ = o || c.isPending || u.isPending, v = c.error ? M(c.error) : u.error ? M(u.error) : s?.status === "failed" ? s.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, Y.jsxs)(C, {
- id: "amane",
- title: "amane",
- aside: /* @__PURE__ */ (0, Y.jsx)(d, {
- href: m.repository,
- leadingIcon: ve,
- children: m.repository
- }),
- children: [
- /* @__PURE__ */ (0, Y.jsxs)(p, { children: [
- /* @__PURE__ */ (0, Y.jsx)(f, {
- term: "已安装版本",
- children: m.installed_version || "未安装"
- }),
- /* @__PURE__ */ (0, Y.jsx)(f, {
- term: "上游最新版本",
- children: u.data?.latest ?? "尚未检查"
- }),
- /* @__PURE__ */ (0, Y.jsx)(f, {
- term: "运行环境",
- children: m.installed ? "已安装" : "未安装"
- }),
- /* @__PURE__ */ (0, Y.jsxs)(f, {
- term: "内置站点",
- children: [m.sites.length.toLocaleString(), " 个"]
- })
- ] }),
- /* @__PURE__ */ (0, Y.jsxs)(T, {
- divided: !0,
- children: [
- m.sites.length ? /* @__PURE__ */ (0, Y.jsx)(l, {
- summary: "查看内置站点",
- children: /* @__PURE__ */ (0, Y.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: m.sites.map((e) => e.label).join("、")
- })
- }) : null,
- m.problem ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "error",
- children: m.problem
- }) : /* @__PURE__ */ (0, Y.jsxs)(g, { children: [
- "amane(",
- m.license,
- ")提供这些内置站点的解析能力。首次需要时,Peach 会自动准备锁定的 ",
- m.version,
- " 版本;安装包内已有可用环境时直接使用。 手动安装也使用此版本,不随上游自动升级。"
- ] }),
- o ? /* @__PURE__ */ (0, Y.jsx)(y, { label: "正在重建运行环境" }) : null,
- v ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "error",
- children: v
- }) : null,
- s?.status === "complete" ? /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "success",
- children: s.result || "amane 桥已重建"
- }) : null
- ]
- }),
- /* @__PURE__ */ (0, Y.jsxs)(h, { children: [/* @__PURE__ */ (0, Y.jsx)(i, {
- variant: "secondary",
- onClick: () => {
- _ || u.mutate();
- },
- ...k(u.isPending),
- children: "检查上游版本"
- }), /* @__PURE__ */ (0, Y.jsx)(i, {
- disabled: !!m.problem,
- onClick: () => {
- _ || c.mutate();
- },
- ...k(o || c.isPending),
- children: m.installed ? "重新安装" : "安装"
- })] })
- ]
- });
-}
-function Se({ toast: e }) {
- let t = G({
- queryKey: S,
- queryFn: ({ signal: e }) => L(e)
- }), n = t.data;
- return n ? /* @__PURE__ */ (0, Y.jsxs)(K, { children: [
- /* @__PURE__ */ (0, Y.jsx)("p", {
- className: "text-body-2-regular text-text-secondary",
- children: "高清图片可能要经代理才能下载,先检查连接。"
- }),
- /* @__PURE__ */ (0, Y.jsx)(be, { toast: e }),
- /* @__PURE__ */ (0, Y.jsx)(ge, { receipt: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, Y.jsx)(ye, {
- source: t,
- toast: e
- }, t.source)),
- /* @__PURE__ */ (0, Y.jsx)(xe, { toast: e })
- ] }) : /* @__PURE__ */ (0, Y.jsx)(K, { children: /* @__PURE__ */ (0, Y.jsx)(b, {
- tone: "error",
- title: "采集来源读取失败",
- children: t.error ? M(t.error) : "读取采集来源失败"
- }) });
-}
-export { Se as ScrapingPage, Q as linkHost, Z as networkOptions };
-
-//# debugId=0752b745-04e9-4673-a42e-cc26f852a1f8
\ No newline at end of file
diff --git a/web/dist/peach-app.scraping-page-CFCDLKSG.js b/web/dist/peach-app.scraping-page-CFCDLKSG.js
new file mode 100644
index 000000000..fa005bd27
--- /dev/null
+++ b/web/dist/peach-app.scraping-page-CFCDLKSG.js
@@ -0,0 +1,728 @@
+(function() {
+ try {
+ var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "14c1e974-8ca8-4012-b8f7-793ccb5fcab6", e._sentryDebugIdIdentifier = "sentry-dbid-14c1e974-8ca8-4012-b8f7-793ccb5fcab6");
+ } catch {}
+})();
+import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, AMANE_BRIDGE_CHECK_URL as t, AMANE_BRIDGE_KEY as n, AMANE_BRIDGE_REBUILD_URL as r, Button as i, CHECK_ALL_KEY as a, COVER_JOB_KEY as o, CUSTOM_SOURCES_KEY as s, CUSTOM_SOURCES_URL as c, Checkbox as l, Disclosure as u, ErrorText as d, ExternalLink as f, Fact as p, FactList as m, FieldLabel as h, Footer as g, Help as _, Input as v, IssueRow as y, LinkButton as ee, LoadingDots as b, Note as x, Progress as S, Rows as te, SCRAPING_CHECK_ALL_URL as C, SCRAPING_CHECK_URL as ne, SCRAPING_COVER_URL as w, SCRAPING_KEY as T, SCRAPING_SETTINGS_URL as re, SEGMENT as ie, SEGMENTED_TRACK as ae, Section as E, SegmentedRadioGroup as oe, Select$1 as se, SelectField as D, SelectItem as ce, SettingsRow as le, Stack as O, StatusLabel as k, __toESM as A, apiSend as j, busyProps as M, checkText as ue, composingKey as de, confirmModal as N, errorMessage as P, esc as F, fetchAmaneBridge as I, fetchCheckAllJob as L, fetchCoverJob as R, fetchCustomSources as z, fetchSources as fe, i2 as pe, momentText as me, queryClient as B, require_jsx_runtime as he, require_react as ge, spinnerHtml as _e, useAction as V, useBackgroundJob as H, useMutation as U, useQuery as W } from "./peach-app.js";
+import { CodeBlock as ve } from "./peach-app.code-block-CyDva4Ms.js";
+import { Page as G } from "./peach-app.page-QAncjzM1.js";
+import { SiteMark as K } from "./peach-app.site-mark-D_VlIyJz.js";
+import { ConnectionStatus as ye } from "./peach-app.connection-status-DI6kgn3i.js";
+// src/react/scraping/custom-sources.tsx
+var q = /* @__PURE__ */ A(ge(), 1), J = he(), be = [
+ ["code", "番号"],
+ ["title", "标题"],
+ ["studio", "厂牌"],
+ ["series", "系列"],
+ ["release_date", "发行日期"],
+ ["performers", "演员(文本数组)"],
+ ["tags", "标签(文本数组)"]
+], xe = [
+ ["censored", "有码"],
+ ["amateur", "素人"],
+ ["uncensored", "无码"],
+ ["fc2", "FC2"],
+ ["kmib", "韩国 MIB"],
+ ["other", "其他"],
+ ["unsure", "待核番号"],
+ ["unknown", "未知"]
+], Se = () => ({
+ name: "",
+ endpoint: "",
+ enabled: !1,
+ fields: {
+ code: "id",
+ title: "title"
+ },
+ content_types: ["censored"]
+});
+function Ce({ receipt: e }) {
+ let [t, n] = (0, q.useState)(null), r = W({
+ queryKey: s,
+ queryFn: ({ signal: e }) => z(e)
+ }), a = V(), o = (e) => B.setQueryData(s, e), l = !!(r.isPending || r.error || r.data?.items.length || a.error), u = /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: () => n(Se()),
+ children: "添加来源"
+ });
+ return /* @__PURE__ */ (0, J.jsxs)(E, {
+ title: "自定义元数据来源",
+ children: [
+ l ? /* @__PURE__ */ (0, J.jsxs)(O, { children: [
+ r.isPending ? /* @__PURE__ */ (0, J.jsx)("div", {
+ "aria-busy": "true",
+ "data-skeleton": "",
+ "aria-label": "读取自定义来源"
+ }) : null,
+ r.error ? /* @__PURE__ */ (0, J.jsx)(d, { children: P(r.error) }) : null,
+ r.data?.items.map((t) => /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-3",
+ children: [
+ /* @__PURE__ */ (0, J.jsx)("span", {
+ className: "min-w-0 flex-1",
+ children: t.name
+ }),
+ /* @__PURE__ */ (0, J.jsx)(k, {
+ tone: t.enabled ? "success" : "neutral",
+ children: t.enabled ? "已启用" : "已停用"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: () => n(t),
+ children: "编辑"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ ...M(a.busy === t.id),
+ onClick: () => void a.run(t.id, (e) => j(c, {
+ ...t,
+ enabled: !t.enabled
+ }, "POST", e), (n) => {
+ o(n), e(t.enabled ? "已停用来源" : "已启用来源");
+ }),
+ children: t.enabled ? "停用" : "启用"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "danger",
+ onClick: () => N({
+ title: "删除自定义来源",
+ body: `删除「${F(t.name)}」后,采集将不再查询这个来源。`,
+ confirmLabel: "删除来源",
+ danger: !0,
+ onConfirm: async () => {
+ o(await j(c, {
+ action: "delete",
+ id: t.id
+ })), n(null), e("已删除来源");
+ }
+ }),
+ children: "删除"
+ })
+ ]
+ }, t.id)),
+ a.error ? /* @__PURE__ */ (0, J.jsx)(d, { children: a.error }) : null
+ ] }) : null,
+ t ? null : l ? /* @__PURE__ */ (0, J.jsx)(g, { children: u }) : /* @__PURE__ */ (0, J.jsx)(O, { children: /* @__PURE__ */ (0, J.jsx)("div", {
+ className: "flex justify-end",
+ children: u
+ }) }),
+ t ? /* @__PURE__ */ (0, J.jsx)(we, {
+ initial: t,
+ cancel: () => n(null),
+ saved: (t) => {
+ o(t), n(null), e("已保存来源");
+ }
+ }, t.id || "new") : null
+ ]
+ });
+}
+function we({ initial: e, cancel: t, saved: n }) {
+ let [r, a] = (0, q.useState)(e), [o, s] = (0, q.useState)(""), [u, f] = (0, q.useState)(""), p = (0, q.useRef)(0), m = V(), y = (e) => {
+ p.current++, a((t) => ({
+ ...t,
+ ...e
+ })), f("");
+ };
+ return /* @__PURE__ */ (0, J.jsxs)("form", {
+ "aria-label": "元数据来源配置",
+ "aria-busy": m.busy === "preview",
+ onSubmit: (e) => {
+ e.preventDefault(), m.run("save", (e) => j(c, r, "POST", e), n);
+ },
+ children: [/* @__PURE__ */ (0, J.jsxs)(O, { children: [
+ /* @__PURE__ */ (0, J.jsx)(v, {
+ label: "来源名称",
+ value: r.name,
+ maxLength: 80,
+ onChange: (e) => y({ name: e })
+ }),
+ /* @__PURE__ */ (0, J.jsx)(v, {
+ label: "JSON 接口地址",
+ value: r.endpoint,
+ maxLength: 2048,
+ placeholder: "https://example.com/api/movies/{code}",
+ onChange: (e) => y({ endpoint: e })
+ }),
+ /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)(h, { children: "来源连接方式" }), /* @__PURE__ */ (0, J.jsx)(D, {
+ id: "custom-source-network",
+ label: "来源连接方式",
+ epoch: 0,
+ value: r.network || "direct",
+ options: [["direct", "直连"], ["peach_proxy", "Peach 代理"]],
+ onPick: (e) => y({ network: e })
+ })]
+ }),
+ /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)(h, { children: "接口番号格式" }), /* @__PURE__ */ (0, J.jsx)(D, {
+ id: "custom-source-code-format",
+ label: "接口番号格式",
+ epoch: 0,
+ value: r.code_format || "original",
+ options: [
+ ["original", "原样"],
+ ["lowercase", "小写"],
+ ["compact", "去掉连字符"],
+ ["underscore", "连字符转下划线"]
+ ],
+ onPick: (e) => y({ code_format: e })
+ })]
+ }),
+ /* @__PURE__ */ (0, J.jsx)(_, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
+ be.map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(v, {
+ label: `${t}字段路径`,
+ value: r.fields[e] || "",
+ onChange: (t) => {
+ let n = { ...r.fields };
+ t ? n[e] = t : delete n[e], y({ fields: n });
+ }
+ }, e)),
+ /* @__PURE__ */ (0, J.jsx)("div", {
+ className: "flex flex-wrap gap-3",
+ role: "group",
+ "aria-label": "适用内容类型",
+ children: xe.map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(l, {
+ isSelected: r.content_types.includes(e),
+ onChange: (t) => y({ content_types: t ? [...r.content_types, e] : r.content_types.filter((t) => t !== e) }),
+ children: t
+ }, e))
+ }),
+ /* @__PURE__ */ (0, J.jsx)(l, {
+ isSelected: r.enabled,
+ onChange: (e) => y({ enabled: e }),
+ children: "启用来源"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(v, {
+ label: "试查番号(回车查询)",
+ value: o,
+ onChange: (e) => {
+ p.current++, s(e), f("");
+ },
+ onKeyDown: (e) => {
+ if (e.key !== "Enter" || de(e.nativeEvent)) return;
+ e.preventDefault();
+ let t = p.current;
+ m.run("preview", (e) => j(c, {
+ ...r,
+ code: o,
+ action: "preview"
+ }, "POST", e), (e) => {
+ t === p.current && f(JSON.stringify(e.record, null, 2));
+ }, (e) => {
+ t === p.current && m.setError(P(e));
+ });
+ }
+ }),
+ m.busy === "preview" ? /* @__PURE__ */ (0, J.jsxs)(_, {
+ role: "status",
+ children: [/* @__PURE__ */ (0, J.jsx)("span", { dangerouslySetInnerHTML: { __html: _e("正在试查来源") } }), "正在试查来源"]
+ }) : null,
+ u ? /* @__PURE__ */ (0, J.jsx)(ve, {
+ code: u,
+ language: "json",
+ label: "元数据接口返回"
+ }) : null,
+ m.error ? /* @__PURE__ */ (0, J.jsx)(d, { children: m.error }) : null
+ ] }), /* @__PURE__ */ (0, J.jsxs)(g, { children: [/* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ type: "button",
+ onClick: t,
+ children: "取消"
+ }), /* @__PURE__ */ (0, J.jsx)(i, {
+ type: "submit",
+ ...M(m.busy === "save"),
+ children: "保存来源"
+ })] })]
+ });
+}
+// src/react/scraping/scraping-page.tsx
+var Y = [["peach", "Peach 代理"], ["direct", "直接连接"]];
+function X(e) {
+ return Y.some(([t]) => t === e) || !e ? [...Y] : [...Y, [e, e]];
+}
+function Z(e) {
+ try {
+ return new URL(e).host || e;
+ } catch {
+ return e;
+ }
+}
+var Q = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function Te() {
+ return /* @__PURE__ */ (0, J.jsx)(K, { source: "github" });
+}
+function Ee({ source: t, toast: n }) {
+ let [r, a] = (0, q.useState)(t.network), [o, s] = (0, q.useState)(""), [c, l] = (0, q.useState)(""), [u, p] = (0, q.useState)(Q[0][0]), [m, _] = (0, q.useState)(""), [y, b] = (0, q.useState)(""), S = (0, q.useRef)(null);
+ function C() {
+ s(""), l(""), _(""), b(""), S.current && (S.current.value = "");
+ }
+ let w = U({
+ mutationFn: (e) => j(re, {
+ source: t.source,
+ network: r,
+ cookie: o,
+ cookies_text: c,
+ revoke: e
+ }),
+ onSuccess: (e, t) => {
+ B.setQueryData(T, (t) => t && {
+ ...t,
+ sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
+ }), C(), n(t ? "Cookie 已撤销" : "来源设置已保存");
+ }
+ }), D = U({ mutationFn: () => j(ne, { source: t.source }) }), A = w.isPending || D.isPending, de = (e) => {
+ e.preventDefault(), !A && (D.reset(), w.mutate(!1));
+ }, N = () => {
+ A || (D.reset(), w.mutate(!0));
+ }, F = () => {
+ A || (w.reset(), D.mutate());
+ };
+ async function I(e) {
+ let t = e.currentTarget, n = t.files?.[0];
+ if (l(""), b(""), !n) _("");
+ else if (n.size > 262144) t.value = "", _(""), b("Cookie 文本超过 256 KiB");
+ else try {
+ let e = await n.text();
+ l(e), _(n.name);
+ } catch {
+ b("Cookie 文件未读取,请重新选择");
+ }
+ }
+ let L = y || (w.error ? P(w.error) : "") || (D.error ? P(D.error) : ""), R = D.data?.results ?? [], z = r === "peach" || t.accepts_cookie || t.browser || !!L || R.length > 0;
+ return /* @__PURE__ */ (0, J.jsxs)(E, {
+ title: t.label,
+ onSubmit: de,
+ aside: /* @__PURE__ */ (0, J.jsxs)("span", {
+ className: "flex min-w-0 items-center gap-1",
+ children: [/* @__PURE__ */ (0, J.jsx)(K, { source: t.source }), t.login ? /* @__PURE__ */ (0, J.jsx)(f, {
+ href: t.login,
+ children: Z(t.login)
+ }) : null]
+ }),
+ children: [
+ /* @__PURE__ */ (0, J.jsx)(te, { children: /* @__PURE__ */ (0, J.jsx)(le, {
+ label: "连接方式",
+ children: /* @__PURE__ */ (0, J.jsx)(se, {
+ "aria-label": "连接方式",
+ className: "w-44 min-w-0",
+ selectedKey: r,
+ onSelectionChange: (e) => {
+ e !== null && a(String(e));
+ },
+ children: X(r).map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(ce, {
+ id: e,
+ children: t
+ }, e))
+ })
+ }) }),
+ t.cooldown_until && t.cooldown_until > Date.now() / 1e3 ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "warning",
+ children: /* @__PURE__ */ (0, J.jsxs)("span", {
+ className: "inline-flex flex-wrap items-center gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)(k, {
+ tone: "warning",
+ children: "冷却中"
+ }), /* @__PURE__ */ (0, J.jsxs)("span", { children: [
+ "可在 ",
+ (/* @__PURE__ */ new Date(t.cooldown_until * 1e3)).toLocaleString("zh-CN"),
+ " 后重试。"
+ ] })]
+ })
+ }) : null,
+ z ? /* @__PURE__ */ (0, J.jsxs)(O, {
+ divided: !0,
+ children: [
+ r === "peach" ? /* @__PURE__ */ (0, J.jsx)("span", {
+ className: "self-start",
+ children: /* @__PURE__ */ (0, J.jsx)(ee, {
+ href: "/settings/library#peachProxy",
+ size: "small",
+ trailingIcon: pe,
+ children: "配置 Peach 代理"
+ })
+ }) : null,
+ t.browser ? /* @__PURE__ */ (0, J.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "人机验证由本机浏览器自动完成;需要点击时窗口会弹出。这台机器上不需要 Cookie。"
+ }) : null,
+ t.accepts_cookie && !t.browser ? /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [
+ /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)("span", {
+ className: "self-start",
+ children: /* @__PURE__ */ (0, J.jsx)(k, {
+ tone: t.cookie_saved ? "success" : "neutral",
+ children: t.cookie_saved ? "Cookie 已保存" : "Cookie 未配置"
+ })
+ }), /* @__PURE__ */ (0, J.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t.cookie_saved ? "登录有效性待验证。" : "需要登录时,任选一种方式提供 Cookie。"
+ })]
+ }),
+ /* @__PURE__ */ (0, J.jsx)(oe, {
+ "aria-label": "提供 Cookie 的方式(二选一)",
+ value: u,
+ onChange: (e) => {
+ p(e), C();
+ },
+ className: ae,
+ children: Q.map(([t, n]) => /* @__PURE__ */ (0, J.jsx)(e, {
+ value: t,
+ className: ie,
+ children: n
+ }, t))
+ }),
+ u === "paste" ? /* @__PURE__ */ (0, J.jsx)(v, {
+ type: "password",
+ label: "Cookie",
+ autoComplete: "off",
+ value: o,
+ onChange: s
+ }) : /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [
+ /* @__PURE__ */ (0, J.jsx)(h, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-3",
+ children: [/* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: () => S.current?.click(),
+ children: "选择文件"
+ }), /* @__PURE__ */ (0, J.jsx)("span", {
+ className: "min-w-0 text-body-2-regular break-all text-text-secondary",
+ children: m || "未选择文件"
+ })]
+ }),
+ /* @__PURE__ */ (0, J.jsx)("input", {
+ ref: S,
+ type: "file",
+ accept: ".txt",
+ tabIndex: -1,
+ "aria-hidden": !0,
+ className: "hidden",
+ onChange: (e) => {
+ I(e);
+ }
+ })
+ ]
+ })
+ ] }) : null,
+ L ? /* @__PURE__ */ (0, J.jsx)(d, { children: L }) : null,
+ R.map((e) => /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: e.ok ? "success" : "error",
+ children: /* @__PURE__ */ (0, J.jsxs)("span", {
+ className: "flex flex-col items-start gap-1",
+ children: [/* @__PURE__ */ (0, J.jsx)(ye, {
+ tone: e.ok ? "success" : "error",
+ children: e.ok ? "可访问" : "连接失败"
+ }), /* @__PURE__ */ (0, J.jsx)("span", { children: ue(e, t.label) })]
+ })
+ }, e.label))
+ ]
+ }) : null,
+ /* @__PURE__ */ (0, J.jsxs)(g, { children: [
+ t.accepts_cookie && t.cookie_saved ? /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: N,
+ ...M(A),
+ children: "撤销 Cookie"
+ }) : null,
+ /* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: F,
+ ...M(A),
+ children: "检查连接"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(i, {
+ type: "submit",
+ ...M(A),
+ children: "保存"
+ })
+ ] })
+ ]
+ });
+}
+var De = {
+ ok: "success",
+ auth: "warning",
+ http: "error",
+ cooldown: "warning",
+ network: "error",
+ skipped: "neutral"
+}, $ = [
+ "ok",
+ "auth",
+ "cooldown",
+ "http",
+ "network",
+ "skipped"
+];
+function Oe(e, t) {
+ return t.label === "来源页面" ? e.label : `${e.label} 高清图片`;
+}
+function ke({ toast: e }) {
+ let { job: t, running: n, start: r } = H({
+ queryKey: a,
+ queryFn: ({ signal: e }) => L(e),
+ start: () => j(C, {}),
+ onFinish: (t) => {
+ B.invalidateQueries({
+ queryKey: T,
+ exact: !0
+ }), t.status === "complete" && e(t.failed ? `检查完成,${t.failed} 项未通过` : "检查完成,全部可连接");
+ }
+ }), o = (e) => {
+ e.preventDefault(), !(n || r.isPending) && r.mutate();
+ }, s = (t?.results ?? []).flatMap((e) => e.results.map((t) => ({
+ name: Oe(e, t),
+ check: t
+ }))), c = s.filter(({ check: e }) => e.outcome === "ok"), l = s.filter(({ check: e }) => e.outcome !== "ok").sort((e, t) => $.indexOf(e.check.outcome) - $.indexOf(t.check.outcome)), d = r.error ? P(r.error) : t?.status === "failed" ? t.error || "检查未完成" : "", f = t?.status === "complete" && t.completed_at ? [me((/* @__PURE__ */ new Date(t.completed_at * 1e3)).toISOString()), t.elapsed_s === void 0 ? "" : `用时 ${t.elapsed_s.toFixed(1)} 秒`].filter(Boolean).join(" · ") : "";
+ return /* @__PURE__ */ (0, J.jsxs)(E, {
+ id: "check-all",
+ title: "连接检查",
+ onSubmit: o,
+ children: [/* @__PURE__ */ (0, J.jsxs)(O, { children: [
+ /* @__PURE__ */ (0, J.jsx)(_, { children: "检查各来源页面与 DMM 高清图片服务器,最多四个来源同时进行;正在冷却的来源不再请求。可连接只说明检查地址可达,不代表登录有效。" }),
+ n ? /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-col gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)(S, {
+ label: "连接检查进度",
+ value: t?.checked ?? 0,
+ max: t?.total ?? 0
+ }), /* @__PURE__ */ (0, J.jsxs)(_, {
+ role: "status",
+ children: [
+ "已检查 ",
+ t?.checked ?? 0,
+ " / ",
+ t?.total ?? 0,
+ " 个来源"
+ ]
+ })]
+ }) : null,
+ d ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ children: d
+ }) : null,
+ s.length ? /* @__PURE__ */ (0, J.jsx)("div", {
+ className: "flex flex-wrap gap-2",
+ children: $.map((e) => {
+ let t = s.filter(({ check: t }) => t.outcome === e).length;
+ return t ? /* @__PURE__ */ (0, J.jsxs)(k, {
+ tone: De[e],
+ children: [
+ s.find(({ check: t }) => t.outcome === e)?.check.outcome_label,
+ " ",
+ t
+ ]
+ }, e) : null;
+ })
+ }) : null,
+ l.length ? /* @__PURE__ */ (0, J.jsx)("ul", {
+ className: "flex min-w-0 flex-col",
+ children: l.map(({ name: e, check: t }) => /* @__PURE__ */ (0, J.jsx)(y, {
+ title: e,
+ children: /* @__PURE__ */ (0, J.jsxs)("span", {
+ className: "flex flex-wrap items-center gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)(k, {
+ tone: De[t.outcome],
+ children: t.outcome_label
+ }), t.message ? /* @__PURE__ */ (0, J.jsx)("span", {
+ className: "text-body-2-regular text-text-secondary",
+ children: t.message
+ }) : null]
+ })
+ }, e))
+ }) : null,
+ c.length ? /* @__PURE__ */ (0, J.jsx)(u, {
+ summary: `可连接的 ${c.length} 项`,
+ children: /* @__PURE__ */ (0, J.jsx)(m, { children: c.map(({ name: e, check: t }) => /* @__PURE__ */ (0, J.jsx)(p, {
+ term: e,
+ children: [t.width ? `${t.width} × ${t.height}` : "", t.elapsed_s === void 0 ? "" : `${t.elapsed_s.toFixed(2)} 秒`].filter(Boolean).join(" · ")
+ }, e)) })
+ }) : null
+ ] }), /* @__PURE__ */ (0, J.jsx)(g, {
+ status: f ? `上次检查 ${f}` : void 0,
+ children: /* @__PURE__ */ (0, J.jsx)(i, {
+ type: "submit",
+ ...M(n || r.isPending),
+ children: "全部检查"
+ })
+ })]
+ });
+}
+function Ae({ toast: e }) {
+ let [t, n] = (0, q.useState)(""), { running: r, outcome: a, start: s } = H({
+ queryKey: o,
+ queryFn: ({ signal: e }) => R(e),
+ start: () => j(w, { code: t }),
+ onFinish: (t) => {
+ t.status === "complete" && e(t.result || "封面采集完成");
+ }
+ }), c = (e) => {
+ e.preventDefault(), !(r || s.isPending || !t.trim()) && s.mutate();
+ }, l = s.error ? P(s.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, J.jsx)(E, {
+ title: "高清封面",
+ onSubmit: c,
+ children: /* @__PURE__ */ (0, J.jsxs)(O, { children: [
+ /* @__PURE__ */ (0, J.jsxs)("div", {
+ className: "flex flex-wrap items-end gap-2",
+ children: [/* @__PURE__ */ (0, J.jsx)("div", {
+ className: "min-w-0 flex-1",
+ children: /* @__PURE__ */ (0, J.jsx)(v, {
+ "aria-label": "馆藏番号",
+ isRequired: !0,
+ isDisabled: r,
+ value: t,
+ onChange: n,
+ placeholder: "输入馆藏番号,如 ABW-232"
+ })
+ }), /* @__PURE__ */ (0, J.jsx)(i, {
+ type: "submit",
+ disabled: !t.trim(),
+ ...M(r || s.isPending),
+ children: "抓取封面"
+ })]
+ }),
+ r ? /* @__PURE__ */ (0, J.jsx)(b, { label: "正在抓取封面" }) : null,
+ l ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ children: l
+ }) : null,
+ a?.status === "complete" ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "success",
+ children: a.result || "封面采集完成"
+ }) : null
+ ] })
+ });
+}
+function je({ toast: e }) {
+ let { query: a, running: o, outcome: s, start: c } = H({
+ queryKey: n,
+ queryFn: ({ signal: e }) => I(e),
+ start: () => j(r, {}),
+ jobOf: (e) => e.job,
+ withJob: (e, t) => e && {
+ ...e,
+ job: t
+ },
+ onFinish: (t) => {
+ t.status === "complete" && e(t.result || "amane 桥已重建");
+ }
+ }), l = U({ mutationFn: () => j(t, {}) }), d = a.data;
+ if (!d) return a.error ? /* @__PURE__ */ (0, J.jsx)(E, {
+ id: "amane",
+ title: "amane",
+ children: /* @__PURE__ */ (0, J.jsx)(O, { children: /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ children: P(a.error)
+ }) })
+ }) : null;
+ let h = o || c.isPending || l.isPending, v = c.error ? P(c.error) : l.error ? P(l.error) : s?.status === "failed" ? s.error || "重建未完成" : "";
+ return /* @__PURE__ */ (0, J.jsxs)(E, {
+ id: "amane",
+ title: "amane",
+ aside: /* @__PURE__ */ (0, J.jsx)(f, {
+ href: d.repository,
+ leadingIcon: Te,
+ children: d.repository
+ }),
+ children: [
+ /* @__PURE__ */ (0, J.jsxs)(m, { children: [
+ /* @__PURE__ */ (0, J.jsx)(p, {
+ term: "已安装版本",
+ children: d.installed_version || "未安装"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(p, {
+ term: "上游最新版本",
+ children: l.data?.latest ?? "尚未检查"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(p, {
+ term: "运行环境",
+ children: d.installed ? "已安装" : "未安装"
+ }),
+ /* @__PURE__ */ (0, J.jsxs)(p, {
+ term: "内置站点",
+ children: [d.sites.length.toLocaleString(), " 个"]
+ })
+ ] }),
+ /* @__PURE__ */ (0, J.jsxs)(O, {
+ divided: !0,
+ children: [
+ d.sites.length ? /* @__PURE__ */ (0, J.jsx)(u, {
+ summary: "查看内置站点",
+ children: /* @__PURE__ */ (0, J.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: d.sites.map((e) => e.label).join("、")
+ })
+ }) : null,
+ d.problem ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ children: d.problem
+ }) : /* @__PURE__ */ (0, J.jsxs)(_, { children: [
+ "amane(",
+ d.license,
+ ")提供这些内置站点的解析能力。首次需要时,Peach 会自动准备锁定的 ",
+ d.version,
+ " 版本;安装包内已有可用环境时直接使用。 手动安装也使用此版本,不随上游自动升级。"
+ ] }),
+ o ? /* @__PURE__ */ (0, J.jsx)(b, { label: "正在重建运行环境" }) : null,
+ v ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ children: v
+ }) : null,
+ s?.status === "complete" ? /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "success",
+ children: s.result || "amane 桥已重建"
+ }) : null
+ ]
+ }),
+ /* @__PURE__ */ (0, J.jsxs)(g, { children: [/* @__PURE__ */ (0, J.jsx)(i, {
+ variant: "secondary",
+ onClick: () => {
+ h || l.mutate();
+ },
+ ...M(l.isPending),
+ children: "检查上游版本"
+ }), /* @__PURE__ */ (0, J.jsx)(i, {
+ disabled: !!d.problem,
+ onClick: () => {
+ h || c.mutate();
+ },
+ ...M(o || c.isPending),
+ children: d.installed ? "重新安装" : "安装"
+ })] })
+ ]
+ });
+}
+function Me({ toast: e }) {
+ let t = W({
+ queryKey: T,
+ queryFn: ({ signal: e }) => fe(e)
+ }), n = t.data;
+ return n ? /* @__PURE__ */ (0, J.jsxs)(G, { children: [
+ /* @__PURE__ */ (0, J.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "高清图片可能要经代理才能下载,先检查连接。"
+ }),
+ /* @__PURE__ */ (0, J.jsx)(ke, { toast: e }),
+ /* @__PURE__ */ (0, J.jsx)(Ae, { toast: e }),
+ /* @__PURE__ */ (0, J.jsx)(Ce, { receipt: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, J.jsx)(Ee, {
+ source: t,
+ toast: e
+ }, t.source)),
+ /* @__PURE__ */ (0, J.jsx)(je, { toast: e })
+ ] }) : /* @__PURE__ */ (0, J.jsx)(G, { children: /* @__PURE__ */ (0, J.jsx)(x, {
+ tone: "error",
+ title: "采集来源读取失败",
+ children: t.error ? P(t.error) : "读取采集来源失败"
+ }) });
+}
+export { Me as ScrapingPage, Z as linkHost, X as networkOptions };
+
+//# debugId=14c1e974-8ca8-4012-b8f7-793ccb5fcab6
\ No newline at end of file