Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 统一通知外框并协同逐项结果刷新

longmeidaod1d72b6b328a
diff --cc docs/REUSE.md
index 877fa2e67,09caed5dd..d51b65687
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@@ -609,13 -615,3 +615,15 @@@ Python 复用 MIT 许可的 [Ruff](http
`scripts/dev/copy-editor.js` 复用官网本地预览的 `edit-client.js` 交互:文字范围提示、原位编辑、按钮文字就近输入、回车和失焦保存、Esc 取消。
应用的 React 与动态页面使用现有静态文案定位、摘要校验和备份入口;演示站使用浏览器草稿。两者只在 `?edit` 启用,无新增依赖。
+
+## 馆藏处理控制与耗时预估
+
+扫描、探测、资料请求和九宫格复用 `process_library`、`scan_location`、`SourceTransport`、`frame_capture` 与已有影片检查点;任务恢复沿用 `BackgroundJob`、`job_recovery` 和 `task_run`,用户暂停意图单独持久保存。当前树及 `library_processing.py` 的 Git 历史已核对,安装暂停只用于安装事务,不能直接代表用户暂停。Python 标准库 `threading.Event` 与 `contextvars.ContextVar` 提供等待唤醒和当前任务隔离,沿用项目 Python 版本,跨 Windows 与 macOS,无额外依赖体积;许可证为 PSF,官方文档与实现见 [threading](https://docs.python.org/3/library/threading.html) 和 [contextvars](https://docs.python.org/3/library/contextvars.html)。现有 APScheduler 3.11.3 用于定时派发,不能暂停已进入媒体读取的函数,因此不承担安全停点。隔离测试使用临时账本、暂停线程与模拟时钟验证安全停点、跨重启意图、低占用间隔和暂停预算补偿,不读取真实媒体、不发外部请求。
+
+`processing_control` 保留 Peach 的阶段、模式与估时策略:启动仅汇总账本文件数和大小,优先使用本机同类完成耗时;未知新增明确不在初始范围内。阶段样本形成后按实际耗时校准,并返回估时范围、依据和范围所指阶段。处理强度为低占用、标准和高强度:低占用采用单线程 FFmpeg 与较大单项间隔,标准采用两个解码、滤镜和编码线程与短间隔,高强度采用工具自动线程且没有额外间隔。amane 低占用逐站查询,其余沿用现有调度;各档均遵守来源限流,单资产流水线与暂停检查点共用。强度只作用于当前任务,历史耗时按档位系数归一,初始与切换时的范围属于粗估,实际样本继续校准。持久状态不修改 ledger schema,不改变生产入口。
+
+任务卡复用 Sonner 2.0.8(MIT)的 `toast.custom`、稳定任务 id 与无限停留时间;`processing` 和 `receipts` 两个栈按 `toasterId` 分流,普通回执按任务面板实测高度避让。任务卡在路由根观察共享 Query 缓存,收起只隐藏正文,暂停、速度与估时仍可见。React Aria 1.22.1 的 Slider、Popover 与现有 BoardUI Button 承担键盘、焦点与浮层行为,三档对应 `low/standard/high`;最高档流光使用 SVG 与 CSS,浮层关闭后卸载,暂停与后台页面停止运动。界面重建依据与差异见 [控件取证](reference-snapshots/processing-task-controls.md)。无新增依赖。问题明细沿用 `state/library-processing-<job_id>.issues.jsonl`。
+
+站点强调色检查覆盖进度、焦点、选中态、操作按钮与流光:旧 `--feedback-success` 引用既有强调色色阶;RSS 订阅保留橙色,信息、成功、警告、错误、品牌与图表分类保留语义色。
++
++普通 Toast 与扫描任务卡共用 Agent Progress 外框,16px 半径由通知栈内的既有 token 解析,细边框与接触阴影分别复用 `border-button-default`、`elevation-xs`,不改变内容排版。浏览器回归核对桌面、手机和明暗主题下的外框一致性,并以同一任务、同一内容回放外框基线生成对比图。
diff --cc docs/STATUS.md
index c025dcf67,f8f37b8cc..e1a5cee43
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@@ -1,6 -1,6 +1,6 @@@
# Peach 运行核验
--最后核验:2026-10-17
++最后核验:2026-10-18
查 `/healthz`;[待办](PRODUCT_BACKLOG.md)、[复用清单](REUSE.md)、[长期约定](HANDOFF.md)。
@@@ -32,8 -32,8 +32,8 @@@
- Python 最低与默认 3.14;Windows FFmpeg/ffprobe 在 `peach-data/tools/ffmpeg`,macOS 走 PATH。
- amane 0.20.0,安装一致;[功能与接入](reference-snapshots/upstream-review.md)。
- 发行名 `peach`、目录名 `peach-app`;Mac 维护与重启见待办 26。
-- 扫描、采集 120 秒无进展预警;资料 90 秒、封面 240 秒超时可重试;见 `state/library-processing-<job_id>.issues.jsonl`。
+- 扫描/采集支持暂停、三档速度、估时;无进展预警 120 秒,资料/封面超时 90/240 秒;见 [复用清单](REUSE.md)。
- - 口味、复核、关注按账本、文件版本缓存;女优资料后继每轮存量至多 16 条。
+ - 资料逐项提交,页面按结果版本刷新;女优资料后继每轮存量至多 16 条。
- 下载后处理:16 条旧失败任务保留,部分资产已移动;`task_run` 外键异常 242 条未清理。
- [标签归一](reference-snapshots/tag-vocabulary-audit.md)
- 种子 `2026-10-17.1`:1,199 实体、13 撤销(ADR-0106);`0047` 已应用。
diff --cc docs/reference-snapshots/processing-task-controls.md
index 790bd11aa,000000000..1f35dd089
mode 100644,000000..100644
--- a/docs/reference-snapshots/processing-task-controls.md
+++ b/docs/reference-snapshots/processing-task-controls.md
@@@ -1,24 -1,0 +1,24 @@@
+# 扫描任务控件取证
+
+2026-10-18 通过隔离 `agent-browser` 会话检查公开演示。本文件为人工取证笔记,不作为上游 Markdown 快照登记。
+
+## 公开参考
+
- - [Agent Progress](https://www.boardui.com/components/agent-progress):实测可展开与收起,阶段行高 32px、行间距 6px,标题行高 20px。官方示例按 `stepDuration` 推进。
++- [Agent Progress](https://www.boardui.com/components/agent-progress):实测外框宽 341px,`rounded-2xl` 对应 16px 圆角,1px `border-button-default` 边框,`background-primary-default` 表面,`shadow-xs` 对应浅色 `0 1px 2px / 5%` 接触阴影。可展开与收起,阶段行高 32px、行间距 6px,标题行高 20px。官方示例按 `stepDuration` 推进。
+- [Composer Panel](https://www.boardui.com/components/composer-panel):实测模型菜单内的 Effort 浮层有六个停点,轨道宽 240px、高 27px;拖柄宽 21px、高 27px,左右预留各 10.5px。最高档在轨道内用两层 canvas 绘制流光,装饰不接收指针,滑块由 React Aria 驱动。
+- 用户截图确认最高档保留流光,三档文案上方为最慢/最快,下方为占用少/占用多。用户明确要求参考公开代码和 CSS 自行实现组件。
+
+公开演示截图存于本机 `attic/evidence/20261017-processing-controls/`:
+
+| 文件 | SHA-256 |
+| --- | --- |
+| `reference-effort.png` | `20551f789bb235a3ec1da5c17e8616d9a189b5b6750003dee29349d789ca0d66` |
+| `reference-agent-progress.png` | `179620ca3e3fedb40c2cc5d1899e79a46fd15d10871d45f337cacfc8db2bb288` |
+
+## Peach 适配
+
- 保留折叠后可找回进度的交互;常驻任务面位于右下角,圆角、阴影和文字沿用站点浮层 token。未知总量不显示百分比;圆环表达当前阶段完成率,正文来自实际任务阶段和文件名。后端逐资产执行资料、封面和预览,页面不按演示计时器自动完成阶段。
++保留折叠后可找回进度的交互;常驻任务面位于右下角。普通 Toast 和任务卡共用 Agent Progress 外框:通知栈内的浮层半径引用既有 `radius-2xl`,边框沿用 `border-button-default`,阴影沿用 `elevation-xs`;内容宽度、字号、内边距与控制排版各自保留。未知总量不显示百分比;圆环表达当前阶段完成率,正文来自实际任务阶段和文件名。后端逐资产执行资料、封面和预览,页面不按演示计时器自动完成阶段。
+
+Effort 是重建方案,不是官方 Pro 源码副本。轨道与拖柄采用实测几何,圆角使用站点 token,六档调整为低占用、标准、全速三档;键盘和拖动沿用 React Aria Slider,最高档用 SVG 流光和 CSS 粒子替代 canvas。流光形状与波动是根据用户截图重建,未取得上游绘制算法,不能称为逐帧复刻。所有流光层读取站点强调色色阶,默认蓝色可随配色切换。
+
+任务面复用 Sonner 的持久通知,普通回执在上方独立堆叠;收起保留暂停、速度与预计时间,运行及暂停时不能自动或滑动关闭。完成后撤下任务卡,由既有去重逻辑发送一条回执;失败保留查看入口并允许关闭。
diff --cc frontend/e2e/notification-shell.test.ts
index 000000000,000000000..22ee7da94
new file mode 100644
--- /dev/null
+++ b/frontend/e2e/notification-shell.test.ts
@@@ -1,0 -1,0 +1,68 @@@
++import assert from 'node:assert/strict';
++import { mkdir } from 'node:fs/promises';
++import path from 'node:path';
++import { after, before, describe, it } from 'node:test';
++import type { Browser } from 'playwright-core';
++import { launch, visit, VIEWPORTS } from './harness.ts';
++
++describe('通知和任务卡的共用外框', () => {
++ let browser: Browser;
++ before(async () => { browser = await launch() });
++ after(async () => { await browser?.close() });
++ for (const viewport of VIEWPORTS) for (const theme of ['light', 'dark']) {
++ it(`${viewport.name} ${theme}:外框一致,正文布局稳定`, async () => {
++ const opened = await visit(browser, '/data-cleanup', viewport, page => page.route('**/api/library-processing',
++ route => route.fulfill({ json: { status: 'paused', job_id: 'shell-preview', checked: 38, total: 100,
++ stage: '采集缺失资料', current_asset_name: '示例影片.mp4', speed_mode: 'standard' } })));
++ const { page } = opened;
++ const artifacts = path.resolve('..', 'build', 'agent-verification', 'processing-controls');
++ await mkdir(artifacts, { recursive: true });
++ try {
++ const task = page.locator('#toasts [data-processing-dock]');
++ await task.waitFor();
++ await page.evaluate(async theme => {
++ document.documentElement.dataset.theme = theme;
++ document.documentElement.classList.toggle('dark', theme === 'dark');
++ const entry = '/dist/peach-app.js', ui = await import(entry);
++ ui.showToast(document.getElementById('toasts'), { success: '', error: '' }, 'shell-receipt',
++ { html: '配置已保存', alert: false, timeout: Infinity, action: null });
++ }, theme);
++ const receipt = page.locator('#toasts [data-sonner-toast][data-styled="true"]').filter({ hasText: '配置已保存' });
++ await receipt.waitFor();
++ await page.waitForFunction(() => [...document.querySelectorAll('#toasts [data-sonner-toast]')]
++ .every(node => node.getAttribute('data-mounted') === 'true' && node.getAnimations().length === 0));
++ const measure = () => page.evaluate(() => [...document.querySelectorAll<HTMLElement>(
++ '#toasts [data-sonner-toast][data-styled="true"],#toasts [data-processing-dock]')].map(node => {
++ const css = getComputedStyle(node), box = node.getBoundingClientRect();
++ return { radius: css.borderRadius, shadow: css.boxShadow, border: css.border,
++ width: box.width, height: box.height, padding: css.padding };
++ }));
++ const aligned = await measure();
++ assert.equal(aligned.length, 2);
++ assert.equal(aligned[0]!.radius, '16px');
++ assert.equal(aligned[0]!.radius, aligned[1]!.radius);
++ assert.equal(aligned[0]!.shadow, aligned[1]!.shadow);
++ assert.equal(aligned[0]!.border, aligned[1]!.border);
++ const box = (await task.boundingBox())!, top = (await receipt.boundingBox())!.y;
++ const clip = { x: Math.max(0, viewport.width - 600), y: Math.max(0, top - 20),
++ width: Math.min(viewport.width, 600), height: viewport.height - Math.max(0, top - 20) };
++ assert.ok(box.x >= 0 && box.x + box.width <= viewport.width);
++ await page.screenshot({ path: path.join(artifacts, `${viewport.name}-${theme}-shell-after.png`), clip });
++ // 同一任务和布局下回放外框基线参数。
++ await page.evaluate(() => document.querySelectorAll<HTMLElement>('#toasts [data-sonner-toaster]')
++ .forEach(node => node.style.removeProperty('--floating-radius')));
++ const baseline = await page.addStyleTag({ content:
++ '#toasts :is([data-sonner-toast][data-styled=true],[data-processing-dock]){box-shadow:var(--elevation-dropdown)!important}' });
++ const original = await measure();
++ for (let at = 0; at < aligned.length; at++) {
++ assert.equal(aligned[at]!.width, original[at]!.width);
++ assert.equal(aligned[at]!.height, original[at]!.height);
++ assert.equal(aligned[at]!.padding, original[at]!.padding);
++ }
++ await page.screenshot({ path: path.join(artifacts, `${viewport.name}-${theme}-shell-before.png`), clip });
++ await baseline.evaluate(node => node.remove());
++ assert.deepEqual(opened.problems, []);
++ } finally { await opened.close() }
++ });
++ }
++});
diff --cc frontend/src/react/application.tsx
index ed80df6d0,7726b798e..6c7229eeb
--- a/frontend/src/react/application.tsx
+++ b/frontend/src/react/application.tsx
@@@ -56,7 -57,7 +57,7 @@@ export function Application()
queueMicrotask(() => finalizeResources(current));
};
}, []);
- return <RouterRoot actions={actions} processing />;
- return <RouterRoot actions={actions} background={actions ? <ResultUpdates /> : null} />;
++ return <RouterRoot actions={actions} processing background={actions ? <ResultUpdates /> : null} />;
}
const roots = new WeakMap<Element, Root>();
export function mountApplication(host: Element): Root {
diff --cc frontend/src/react/router/router.tsx
index c16b5434e,dea3b728e..a474a5db9
--- a/frontend/src/react/router/router.tsx
+++ b/frontend/src/react/router/router.tsx
@@@ -216,9 -215,11 +216,11 @@@ function RouteGroups({ children }: { ch
}
/** 整棵路由树。`children` 画在页面组 `path="*"` 的元素里面,只给测试用:跟着它挂一次就说明元素没被重挂。 */
- export function RouterRoot({ children, actions = null, processing = false }: { children?: ReactNode; actions?: ShellActions | null; processing?: boolean }) {
-export function RouterRoot({ children, actions = null, background }:
- { children?: ReactNode; actions?: ShellActions | null; background?: ReactNode }) {
++export function RouterRoot({ children, actions = null, background, processing = false }:
++ { children?: ReactNode; actions?: ShellActions | null; background?: ReactNode; processing?: boolean }) {
return (
<Providers>
+ {background}
<ShellActionsContext.Provider value={actions}>
<PeachRouter>
<ManagedSurface />
diff --cc frontend/src/react/toaster.tsx
index a02a81f1b,7c49270df..820cf4c78
--- a/frontend/src/react/toaster.tsx
+++ b/frontend/src/react/toaster.tsx
@@@ -18,6 -17,6 +18,8 @@@ const glyph = (html: string, draw: bool
);
let mounted: { host: Element; root: Root } | null = null;
++/* Agent Progress 的 rounded-2xl 外框,沿用现有半径 token 并限定在通知栈内。 */
++const FRAME = { '--floating-radius': 'var(--radius-2xl)' } as CSSProperties;
/** 应用卸载时撤下 Sonner 的订阅与计时;同一宿主之后可重新挂载。 */
export function unmountToaster(): void {
@@@ -34,18 -33,12 +36,18 @@@ export const mountToaster: typeof Bundl
/* 底边读 `--toast-bottom`:教程卡在右下角时,遗留层把它写成卡上沿之上的位置;没写就是
Sonner 的默认边距。栈为长回执留出空间,每条回执的宽度由内容决定。 */
root.render(
- <Toaster position="bottom-right" closeButton gap={8}
- style={{ '--width': 'min(560px, calc(100vw - 48px))' } as CSSProperties}
- offset={{ right: 24, bottom: 'var(--toast-bottom, 24px)' }}
- mobileOffset={{ right: 16, left: 16, bottom: 'var(--toast-bottom, 16px)' }}
+ <Providers><Toaster id="receipts" position="bottom-right" closeButton gap={8}
- style={{ '--width': 'min(560px, calc(100vw - 48px))' } as CSSProperties}
++ style={{ ...FRAME, '--width': 'min(560px, calc(100vw - 48px))' } as CSSProperties}
+ offset={{ right: 24, bottom: 'calc(var(--toast-bottom, 24px) + var(--processing-toast-space, 0px))' }}
+ mobileOffset={{ right: 16, left: 16, bottom: 'calc(var(--toast-bottom, 16px) + var(--processing-toast-space, 0px))' }}
toastOptions={{ closeButtonAriaLabel: '关闭提示' }} containerAriaLabel="通知"
- icons={{ success: glyph(icons.success, true), error: glyph(icons.error, false) }} />,
+ icons={{ success: glyph(icons.success, true), error: glyph(icons.error, false) }} />
+ <Toaster id="processing" position="bottom-right" gap={8}
- style={{ '--width': 'min(400px, calc(100vw - 32px))' } as CSSProperties}
++ style={{ ...FRAME, '--width': 'min(400px, calc(100vw - 32px))' } as CSSProperties}
+ offset={{ right: 24, bottom: 'var(--toast-bottom, 24px)' }}
+ mobileOffset={{ right: 16, left: 16, bottom: 'var(--toast-bottom, 16px)' }}
+ toastOptions={{ closeButtonAriaLabel: '关闭任务提示' }} containerAriaLabel="后台任务" />
+ </Providers>,
);
};
diff --cc src/peach/library_processing.py
index ebd54666b,353bcb407..6fd18439d
--- a/src/peach/library_processing.py
+++ b/src/peach/library_processing.py
@@@ -1673,23 -1704,29 +1710,34 @@@ def _scan_sources(config, db_path, *, l
result.online_roots.append(translated_root)
if scan:
registered = scan_location(db_path, source, root, declared_roots=config.locations,
- mounts=mounts, report=lambda line: update(stage='扫描文件'))
+ mounts=mounts, report=lambda line: None,
+ progress=lambda files, size: update(
+ stage='扫描文件', scanned=result.scanned + files,
+ scanned_bytes=result.scanned_bytes + size,
+ checked=0, total=0, current_action='scanning_files'))
result.scanned += registered.files
+ result.scanned_bytes += registered.total_bytes
- result.probed += probe_unmeasured(
- db_path, ffprobe, source, root, config=config,
- report=lambda done, total: update(stage='读取时长与分辨率', checked=done, total=total))
+ if stage == SCAN_STAGE:
+ result.probed += probe_unmeasured(
+ db_path, ffprobe, source, root, config=config,
+ report=lambda done, total: update(stage='读取时长与分辨率', checked=done, total=total))
reattach_in(db_path, registered.new_ids)
update(scanned=result.scanned, probed=result.probed)
- elif stage == COLLECT_STAGE:
- result.probed += probe_unmeasured(
+ return result
+
+
+ def _probe_sources(config, db_path, locations, online_roots, asset_ids, update):
+ """已登记视频按可访问来源逐项读取媒体属性。"""
+ probed = 0
+ ffprobe = _ffprobe_path(config)
+ for source, roots in locations.items():
+ for root in roots:
+ if translate_ledger_path(root) in online_roots:
+ probed += probe_unmeasured(
db_path, ffprobe, source, root, asset_ids=asset_ids, config=config,
report=lambda done, total: update(stage='读取时长与分辨率', checked=done, total=total))
- return result
+ update(probed=probed)
+ return probed
def _collection_rows(db_path, *, locations, online_roots, asset_ids):
@@@ -2066,64 -2163,34 +2189,34 @@@ def process_library(config, db_path, ca
current_asset_id=row['id'], current_asset_name=Path(str(row['name'] or '')).name,
current_action='reading_local', current_started_at=time.time(),
current_deadline_at=None)
- target_key = f"asset:{row['id']}"
- video = translate_ledger_path(row['path'])
- # 文件在不在看目录列表,不单独 stat:一部片一个文件夹的网盘上,那是每行一半的往返。
- try:
- files = listing.files(video.parent)
- except OSError:
- files = {}
- if video.name.casefold() not in files:
- issue(row, '媒体文件不可访问', action='reading_local', retryable=True)
- continue
- code = _provider_code(row['code']) or release_code_from_filename(row['name'])
- payload = None
- nfo, posters = sidecars(video, files)
- if nfo:
- try:
- payload, raw = read_nfo(nfo)
- if payload['id'] and code and not same_release_code(code, payload['id']):
- raise ValueError('文件名与 NFO 番号冲突,请复核')
- code = code or _provider_code(payload['id'])
- except (OSError, ValueError, ET.ParseError) as error:
- issue(row, str(error), action='reading_local')
- payload = None
- if not code and not payload:
- # 没有番号不是问题项:账本里两万多行是创作者作品,本来就没有番号,
- # 逐行报「未识别到番号」只会把真正要处理的几十条淹掉。它们只登记本地海报:
- # 正片旁边的同名 PNG/JPG 落在 `{id}_4.jpg` 后卡片和详情直接用这一张。
- try:
- state['covers'] += int(_local_poster(
- video, f"{row['id']}_4",
- config.directory('generated') / 'posters', posters=posters))
- except (OSError, ValueError):
- issue(row, '本地封面无法读取', action='reading_local', retryable=True)
- update(checked=index + 1, candidates=len(scoped_groups()),
- current_asset_id=None, current_asset_name='', current_action='',
- current_started_at=None, current_deadline_at=None)
+ local = _read_local_metadata(config, db_path, row, cover_root, listing, state, update, issue)
+ if local is None:
continue
- if code and not row['code']:
- with closing(sqlite3.connect(db_path, timeout=30)) as connection, connection:
- write_owned_fields(connection, [row['id']], {'code': code},
- SCAN_FILENAME, require_empty=True)
- state['identified'] += 1
- try:
- poster_root = cover_root if code else config.directory('generated') / 'posters'
- state['covers'] += int(_local_poster(video, code or f"{row['id']}_4", poster_root, payload,
- posters=posters))
- except (OSError, ValueError):
- issue(row, '本地封面无法读取', action='reading_local', retryable=True)
- entries = []
- if payload:
- evidence_path = config.directory('sources') / 'library-metadata' / (hashlib.sha256(raw).hexdigest() + '.nfo')
- evidence_path.parent.mkdir(parents=True, exist_ok=True)
- evidence_path.write_bytes(raw)
- entries.append(('local_nfo', payload, evidence_path))
+ code, verify_existing, payload, entries = local
local_fields = _fields(payload, genre_decisions) if payload else {}
- missing = list(COLLECTED_FIELDS) if nfo else _missing_fields(row, local_fields)
+ publish(row, code, local_fields, verify_existing, entries)
+ if code or payload:
+ prepared.append((index, row, code, verify_existing, local_fields, entries,
+ state['issue_count'] == issues_before))
+ update(checked=index + 1)
+ flush_candidates(force=True)
+ if stage in (ALL_STAGES, COLLECT_STAGE):
+ _probe_sources(config, db_path, locations, sources.online_roots, scope_ids, update)
+ if not metadata_only(config.directory('state')):
+ _generate_previews(config, rows, database, update=update, issue=issue, guard=guard,
+ completed=checkpoints.completed['completed_previews'],
+ checkpoint=lambda row: checkpoints.mark('completed_previews', row, flush_state))
+ for index, row, code, verify_existing, local_fields, local_entries, local_ok in prepared:
+ guard.check()
+ issues_before = state['issue_count']
- update(checked=index, total=len(rows), current_asset_id=row['id'],
++ update(stage='采集缺失资料', checked=index, total=len(rows), current_asset_id=row['id'],
+ current_asset_name=Path(str(row['name'] or '')).name)
+ target_key = f"asset:{row['id']}"
+ missing = list(COLLECTED_FIELDS) if verify_existing else _missing_fields(row, local_fields)
found, covers = remote.collect(row, code, missing, cover_root, update=update, issue=issue,
- answered=() if nfo else _answered_sources(groups, target_key, missing))
- entries.extend(found)
+ answered=() if verify_existing else _answered_sources(groups, target_key, missing),
+ received=lambda entries, row=row, code=code, fields=local_fields, verify=verify_existing:
+ publish(row, code, fields, verify, entries))
state['covers'] += covers
covered.append((row['id'], covers))
update(stage='保存资料候选', current_action='writing_candidates',
diff --cc src/peach/processing_control.py
index ef8000f40,000000000..e2cf50ca0
mode 100644,000000..100644
--- a/src/peach/processing_control.py
+++ b/src/peach/processing_control.py
@@@ -1,340 -1,0 +1,355 @@@
+"""馆藏任务的安全停点、处理偏好和带依据的耗时范围。"""
+from __future__ import annotations
+
+import json
+import math
+import sqlite3
+import threading
+import time
+from contextlib import contextmanager, closing, nullcontext
+from contextvars import ContextVar
+
+from .fsutil import atomic_write_text
+
+CURRENT = ContextVar('peach_library_processing_control', default=None)
+_CONTROLS = {}
+_LOCK = threading.Lock()
+MODES = ('low', 'standard', 'high')
+MODE_FACTORS = {'low': 1.8, 'standard': 1.0, 'high': 0.75}
+IO_INTERVALS = {
+ 'low': {'scan': 0.008, 'probe': 0.75, 'network': 1.5, 'frame': 0.75, 'work': 0.15},
+ 'standard': {'scan': 0.002, 'probe': 0.2, 'network': 0.25, 'frame': 0.2, 'work': 0.03},
+ 'high': {},
+}
+
+
+def valid_mode(value):
+ if value not in MODES:
+ raise ValueError('请选择低占用、标准或高强度模式')
+ return value
+
+
+def _read(path):
+ try:
+ data = json.loads(path.read_text(encoding='utf-8'))
+ return data if isinstance(data, dict) else {}
+ except (OSError, ValueError):
+ return {}
+
+
+def control_for(config):
+ path = (config.directory('state') / 'library-processing-control.json').resolve()
+ with _LOCK:
+ if path not in _CONTROLS:
+ _CONTROLS[path] = ProcessingControl(path)
+ return _CONTROLS[path]
+
+
+def task_control(config, state_file):
+ return control_for(config) if state_file is None else None
+
+
+def bind_control(control, *args, **kwargs):
+ return control.bind(*args, **kwargs) if control is not None else nullcontext()
+
+
+def checkpoint_values(values):
+ before = time.monotonic()
+ checkpoint()
+ waited = time.monotonic() - before
+ for key in ('current_started_at', 'current_deadline_at'):
+ if values.get(key):
+ values[key] += waited
+
+
+def interrupted_state(control):
+ return dict(status='paused', error='', completed_at=None) if control is not None and control.paused else {}
+
+
+def resume_fields(state, values):
+ waited = values.pop('resumed_after', 0)
+ for key in ('current_started_at', 'current_deadline_at', 'last_progress_at'):
+ if waited and state.get(key):
+ state[key] += waited
+
+
+def checkpoint(kind='work'):
+ control = CURRENT.get()
+ if control is not None:
+ control.checkpoint(kind)
+
+
+def low_mode():
+ control = CURRENT.get()
+ return control is not None and control.mode == 'low'
+
+
+def mode_ratio(target, previous='standard'):
+ return MODE_FACTORS[valid_mode(target)] / MODE_FACTORS[valid_mode(previous)]
+
+
+def ffmpeg_options(*, filter_option=None):
+ """当前馆藏任务的 FFmpeg 线程选项;高强度与独立调用使用工具默认值。"""
+ control = CURRENT.get()
+ threads = {'low': 1, 'standard': 2}.get(control.mode) if control is not None else None
+ if threads is None:
+ return []
+ value = str(threads)
+ return ['-threads', value, *([filter_option, value] if filter_option else [])]
+
+
+class ActiveDeadline(float):
+ """单调时钟截止点随本任务的用户暂停时长平移。"""
+ def __new__(cls, value, control, paused=None):
+ result = super().__new__(cls, value)
+ result.control = control
+ result.paused = control.paused_seconds if paused is None else paused
+ return result
+
+ def effective(self):
+ return float(self) + self.control.paused_seconds - self.paused
+
+ def __sub__(self, other):
+ return self.effective() - other
+
+ def __rsub__(self, other):
+ return other - self.effective()
+
+ def __add__(self, other):
+ return ActiveDeadline(float(self) + other, self.control, self.paused)
+
+ __radd__ = __add__
+
+ def __lt__(self, other):
+ return self.effective() < other
+
+ def __le__(self, other):
+ return self.effective() <= other
+
+ def __gt__(self, other):
+ return self.effective() > other
+
+ def __ge__(self, other):
+ return self.effective() >= other
+
+
+def deadline_after(seconds):
+ value, control = time.monotonic() + seconds, CURRENT.get()
+ return ActiveDeadline(value, control) if control is not None else value
+
+
+class ProcessingControl:
+ def __init__(self, path):
+ self.path = path
+ self.lock = threading.RLock()
+ data = _read(path)
+ self.mode = data.get('speed_mode') if data.get('speed_mode') in MODES else 'standard'
+ self.job_id = data.get('job_id')
+ self.paused = data.get('paused') is True
+ self.event = threading.Event()
+ self.event.set()
+ self.publish = None
+ self.active = lambda: True
+ self.db_path = None
+ self.next_work = {}
+ self.paused_seconds = 0.0
+ self.reloaded_at = 0.0
+
+ def refresh(self, force=False):
+ with self.lock:
+ now = time.monotonic()
+ if not force and now - self.reloaded_at < 0.5:
+ return
+ self.reloaded_at = now
+ data = _read(self.path)
+ if data.get('job_id') == self.job_id or self.publish is None:
+ self.job_id = data.get('job_id', self.job_id)
+ self.paused = data.get('paused', self.paused)
+ mode = data.get('speed_mode', self.mode)
+ if mode in MODES and self.mode != mode:
+ self.mode = mode
+ self.next_work.clear()
+
+ def _save(self):
+ atomic_write_text(self.path, json.dumps(dict(
+ speed_mode=self.mode, job_id=self.job_id, paused=self.paused)) + '\n')
+
+ def request(self, action, job_id=None, mode=None):
+ with self.lock:
+ if job_id is not None and job_id != self.job_id:
+ raise ValueError('任务已变化,请刷新页面后重试')
+ if action == 'set_speed':
+ self.mode = valid_mode(mode)
+ self.next_work.clear()
+ else:
+ self.paused = action == 'pause'
+ self._save()
+ self.event.set()
+
+ def select_job(self, job_id):
+ """调用方完成任务身份校验后,承接尚未进入首个安全停点的任务。"""
+ with self.lock:
+ if self.job_id != job_id:
+ self.job_id, self.paused, self.paused_seconds = job_id, False, 0.0
+
+ @contextmanager
+ def bind(self, job_id, *, publish, active, db_path, mode=None):
+ with self.lock:
+ self.select_job(job_id)
+ if mode is not None:
+ self.mode = valid_mode(mode)
+ self.publish, self.active, self.db_path = publish, active, db_path
+ self.next_work.clear()
+ self._save()
+ token = CURRENT.set(self)
+ try:
+ yield self
+ finally:
+ CURRENT.reset(token)
+ self.publish = None
+
+ def checkpoint(self, kind='work'):
+ from .update_tasks import check_pause
+ started = None
+ while True:
+ check_pause(self.db_path)
+ self.refresh()
+ if not self.active():
+ raise InterruptedError('处理任务已停止')
+ with self.lock:
+ paused, mode = self.paused, self.mode
+ self.event.clear()
+ if paused:
+ if started is None:
+ started = time.monotonic()
+ self.publish(status='paused', speed_mode=mode)
+ self.event.wait(0.25)
+ continue
+ if started is not None:
+ spent = time.monotonic() - started
+ self.paused_seconds += spent
+ self.publish(status='running', speed_mode=mode, resumed_after=spent)
+ started = None
+ # 控制只作用于当前馆藏任务;在单项 I/O 之间留出空档。
+ delay = IO_INTERVALS[mode].get(kind, 0)
+ remaining = self.next_work.get(kind, 0) - time.monotonic()
+ if remaining > 0:
+ self.event.wait(min(0.25, remaining))
+ continue
+ self.next_work[kind] = time.monotonic() + delay
+ return
+
+
+def user_paused(db_path, job_id):
+ from .update_tasks import state_for
+ data = _read(state_for(db_path).parent / 'library-processing-control.json')
+ return data.get('job_id') == job_id and data.get('paused') is True
+
+
+def initial_estimate(config, db_path, stage, asset_ids=None, mode=None):
+ """仅使用账本统计,不在启动 HTTP 请求里遍历媒体目录。"""
+ mode = mode or control_for(config).mode
+ query = "SELECT COUNT(*), COALESCE(SUM(size),0) FROM asset WHERE medium='video' AND disposal IS NULL"
+ parameters = []
+ if asset_ids is not None:
+ query += ' AND id IN (' + ','.join('?' * len(asset_ids)) + ')'
+ parameters += asset_ids
+ if stage == 'previews':
+ query += " AND location='local' AND (snapshot_path IS NULL OR snapshot_path='')"
+ if config.locations:
+ query += ' AND location IN (' + ','.join('?' * len(config.locations)) + ')'
+ parameters += list(config.locations)
+ with closing(sqlite3.connect(db_path, timeout=30)) as connection:
+ count, size = connection.execute(query, parameters).fetchone()
+ # 抽帧只读取局部数据;文件总大小仅作为编解码复杂度的温和修正,不按全量读取估时。
+ size_factor = min(2.0, max(0.8, (size / max(1, count) / 1024**3) ** 0.15))
+ seconds = {'scan': 0.2, 'metadata': 8.0, 'previews': 12.0 * size_factor,
+ 'collect': 20.0 * size_factor, 'all': 20.2 * size_factor}[stage]
+ history = _read(config.directory('state') / 'library-processing-timing.json')
+ sample = history.get(stage)
+ historical = isinstance(sample, (int, float)) and math.isfinite(sample) and sample > 0
+ if historical:
+ seconds = sample
+ factor = MODE_FACTORS[valid_mode(mode)]
+ known = bool(count) or asset_ids is not None or stage not in ('scan', 'all')
+ estimate = count * seconds * factor
+ return dict(speed_mode=mode,
+ eta_seconds_min=max(1, math.ceil(estimate * 0.4)) if known and count else 0 if known else None,
+ eta_seconds_max=max(1, math.ceil(estimate * 2.5)) if known and count else 0 if known else None,
+ eta_kind='historical' if historical else 'estimating', eta_initial=True,
+ eta_scope='本趟处理(已登记文件,未含未知新增)' if stage in ('scan', 'all') else '本趟处理',
+ eta_basis=f'根据已登记的 {count} 个视频、{size / 1024**3:.1f} GiB'
+ + ('及本机同类历史耗时粗估' if historical else '粗估,运行后校准')
+ if known else '正在统计新目录的文件数量和大小',
+ estimate_file_count=count, estimate_bytes=size)
+
+
+class ProcessingEstimate:
+ def __init__(self, config, state, control):
+ self.config, self.control = config, control
+ self.started = time.monotonic()
+ self.phase = None
+ self.phase_started = self.started
+ self.base_done = 0
++ self.last_done = 0
+ self.paused_at_start = control.paused_seconds if control is not None else 0
+ self.mode = state['speed_mode']
+
+ def paused_elapsed(self):
+ return self.control.paused_seconds - self.paused_at_start if self.control is not None else 0
+
++ def _phase_estimate(self, state, phase, done, total):
++ """阶段切换时用该阶段保守范围起算,采样只消费当前阶段的增量。"""
++ rates = {'local': 0.2, 'metadata': 8.0, 'previews': 12.0, 'probe': 1.0}
++ seconds = max(0, total - done) * rates.get(phase, 0) * MODE_FACTORS[self.mode]
++ known = phase in rates and total > 0
++ state.update(eta_seconds_min=math.ceil(seconds * 0.4) if known else None,
++ eta_seconds_max=math.ceil(seconds * 2.5) if known else None,
++ eta_kind='estimating', eta_initial=True, eta_scope=f"当前阶段:{state.get('stage') or '准备处理'}",
++ eta_basis='根据当前阶段待处理数量粗估,运行后校准')
++
+ def update(self, state):
+ mode = self.control.mode if self.control is not None else self.mode
+ if mode != self.mode:
+ ratio = mode_ratio(mode, self.mode)
+ for key in ('eta_seconds_min', 'eta_seconds_max'):
+ if isinstance(state.get(key), (int, float)):
+ state[key] = math.ceil(state[key] * ratio)
+ self.mode, self.phase = mode, None
+ state['eta_initial'] = True
+ state['speed_mode'] = mode
+ if state.get('status') in ('complete', 'failed'):
+ state.update(eta_seconds_min=0, eta_seconds_max=0)
+ if state.get('status') == 'complete' and state.get('estimate_file_count', 0) > 0:
+ elapsed = max(0.01, time.monotonic() - self.started - self.paused_elapsed())
+ path = self.config.directory('state') / 'library-processing-timing.json'
+ history = _read(path)
+ history[state['requested_stage']] = elapsed / state['estimate_file_count'] / MODE_FACTORS[mode]
+ atomic_write_text(path, json.dumps(history) + '\n')
+ return
+ if state.get('status') != 'running':
+ return
+ stage = state.get('stage')
+ phase = ('previews' if stage == '生成预览图' else
- 'metadata' if stage in ('读取本地资料', '采集缺失资料', '采集缺失封面', '保存资料候选') else
++ 'local' if stage == '读取本地资料' else
++ 'metadata' if stage in ('采集缺失资料', '采集缺失封面', '保存资料候选') else
+ 'probe' if stage == '读取时长与分辨率' else None)
+ done, total = state.get('checked', 0), state.get('total', 0)
+ now = time.monotonic() - self.paused_elapsed()
- if phase != self.phase:
++ if phase != self.phase or done < self.last_done:
++ if self.phase is not None:
++ self._phase_estimate(state, phase, done, total)
+ self.phase, self.phase_started, self.base_done = phase, now, done
++ self.last_done = done
+ completed = done - self.base_done
+ if phase is None or completed < 2 or total <= done:
+ return
+ elapsed = max(0.01, now - self.phase_started)
+ per_item = elapsed / completed
+ # 采样增多时收窄当前阶段的范围,范围所指阶段随结果一同返回。
+ uncertainty = max(0.2, 1 / math.sqrt(completed))
+ remaining = (total - done) * per_item
+ state.update(eta_seconds_min=max(1, math.ceil(remaining * (1 - uncertainty))),
+ eta_seconds_max=max(1, math.ceil(remaining * (1 + uncertainty))),
+ eta_kind='measured', eta_initial=False, eta_scope=f'当前阶段:{stage}',
+ eta_basis=f'根据当前阶段已完成的 {completed} 个视频耗时校准')
diff --cc tests/test_metadata_library.py
index cf1c29a51,e894139d6..c0841b5f7
--- a/tests/test_metadata_library.py
+++ b/tests/test_metadata_library.py
@@@ -86,6 -86,171 +86,223 @@@ def _archive_pages(url)
class LibraryNfoTests(unittest.TestCase):
+ @windows_ledger_roots
+ def test_a_later_source_requires_review_to_replace_a_field_filled_during_the_run(self):
+ media = self.root / 'media'
+ media.mkdir()
+ (media / 'SSIS-057.mp4').write_bytes(b'video')
+ (media / 'SSIS-057.nfo').write_text(
+ '<movie><id>SSIS-057</id><title>本地标题</title></movie>', encoding='utf-8')
+ db = fresh_ledger(self.root)
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': (str(media),)})
+ database = LedgerDatabase(db)
+ provider = stub_provider()
+ provider.cover.return_value = False
+
+ def tags():
+ with database.read_connection() as connection:
+ return {row[0] for row in connection.execute(
+ "SELECT tag FROM asset_tag WHERE asset_id=1 AND tag NOT LIKE '演员:%'")}
+
+ def query(code, source='r18dev', **kwargs):
+ if source == 'javdb':
+ self.assertIn('巨乳', tags())
+ return {'id': code, 'genres': ['高跟鞋', '絲襪']}
+ if source == 'dmm':
+ raise NotFound('没有')
+ return {'id': code, 'title': '本地标题', 'maker': 'Prestige', 'release_date': '2023-05-26',
+ 'actresses': [{'japanese_name': '涼森れむ'}], 'genres': ['巨乳']}
+
+ provider.query.side_effect = query
+ with patch('peach.library_processing._enrich_finished_performers',
+ return_value={'aliases': 0, 'avatars': 0, 'conflicts': 0, 'failed': 0}):
+ process_library(config, db, self.root / 'generated', self.root / 'covers',
+ provider_factory=lambda: provider, database=database,
+ route_overrides='censored=r18dev,javdb')
+ self.assertEqual(tags(), {'巨乳'})
+ group = next(row for row in read_rows(self.root / 'generated/library-metadata-field-candidates.csv')
+ if row['field'] == 'tags')
+ choice = next(item for item in json.loads(group['candidates_json']) if item['source'] == 'javdb')
+ self.assertTrue(choice['requires_review'])
+ from peach.web_contract import WebContract
+ from peach.web_review import q_review, w_review_decision
+ contract = WebContract(db, candidate_root=self.root / 'generated', database=database)
+ pending = q_review(contract)['sections']['metadata_fields']
+ decision = next(item for item in pending if item['field'] == 'tags')
+ w_review_decision(contract, {'category': 'metadata_fields', 'item_key': decision['item_key'],
+ 'status': 'approved', 'candidate_key': choice['candidate_key'],
+ 'expected_revision': decision['asset_mutation_revision']})
+ self.assertEqual(tags(), {'高跟', '丝袜'})
+
+ @windows_ledger_roots
+ def test_a_confirmed_site_is_visible_before_another_site_reaches_its_deadline(self):
+ from peach.library_processing import LibraryMetadataProvider
+ from peach.jav_cover_fetch import DeadlineExceeded
+ media = self.root / 'media'
+ media.mkdir()
+ (media / 'ABW-358.mp4').write_bytes(b'video')
+ db = fresh_ledger(self.root)
+ with closing(sqlite3.connect(db)) as connection, connection:
+ connection.execute("INSERT INTO asset(path,name,location,medium,code) VALUES(?,?,'local','video','ABW-358')",
+ (str(media / 'ABW-358.mp4'), 'ABW-358.mp4'))
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': (str(media),)})
+ provider = LibraryMetadataProvider.__new__(LibraryMetadataProvider)
+ provider.cover = Mock(return_value=False)
+ provider.transport = Mock()
+ seen = []
+
+ def site(source, code, **kwargs):
+ if source == 'avbase':
+ return {'id': code, 'title': '已确认来源标题'}
+ if source == 'javbus':
+ with closing(sqlite3.connect(db)) as connection:
+ seen.extend(connection.execute('SELECT catalog_title FROM asset').fetchone())
+ self.assertTrue((config.directory('sources') / 'library-metadata/ABW-358-avbase.json').is_file())
+ raise DeadlineExceeded('等待另一站超时')
+ raise NotFound('没有')
+
+ provider.site = site
+ with patch('peach.library_processing._enrich_finished_performers',
+ return_value={'aliases': 0, 'avatars': 0, 'conflicts': 0, 'failed': 0}):
+ process_library(config, db, self.root / 'generated', self.root / 'covers', stage='metadata',
+ provider_factory=lambda: provider, database=LedgerDatabase(db),
+ route_overrides='censored=avbase,javbus,javdb')
+ self.assertEqual(seen, ['已确认来源标题'])
+ candidates = read_rows(self.root / 'generated/library-metadata-field-candidates.csv')
+ self.assertEqual(json.loads(candidates[0]['candidates_json'])[0]['source'], 'avbase')
+
+ @windows_ledger_roots
+ def test_metadata_checkpoint_is_saved_when_evidence_was_flushed_before_cover_finished(self):
+ media = self.root / 'media'
+ media.mkdir()
+ (media / 'ABW-358.mp4').write_bytes(b'video')
+ db = fresh_ledger(self.root)
+ with closing(sqlite3.connect(db)) as connection, connection:
+ connection.execute("INSERT INTO asset(path,name,location,medium,code) VALUES(?,?,'local','video','ABW-358')",
+ (str(media / 'ABW-358.mp4'), 'ABW-358.mp4'))
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': (str(media),)})
+ provider = stub_provider()
+ provider.query.return_value = {'id': 'ABW-358', 'title': '已保存资料'}
+ provider.cover.return_value = False
+ with patch('peach.library_processing.CANDIDATE_FLUSH_SECONDS', 0):
+ result = process_library(config, db, self.root / 'generated', self.root / 'covers',
+ stage='metadata', provider_factory=lambda: provider)
+ self.assertEqual(len(result['completed_metadata']), 1)
+ provider.query.reset_mock()
+ process_library(config, db, self.root / 'generated', self.root / 'covers', stage='metadata',
+ provider_factory=lambda: provider, resume_state=result)
+ provider.query.assert_not_called()
+
++ @windows_ledger_roots
++ def test_user_pause_keeps_published_fields_and_resumes_the_same_collection(self):
++ import threading
++ from peach.processing_control import control_for
++ media = self.root / 'media'
++ media.mkdir()
++ video = media / 'ABW-358.mp4'
++ video.write_bytes(b'video')
++ db = fresh_ledger(self.root)
++ with closing(sqlite3.connect(db)) as connection, connection:
++ connection.execute("INSERT INTO asset(path,name,location,medium,code) VALUES(?,?,'local','video','ABW-358')",
++ (str(video), video.name))
++ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
++ locations={'local': (str(media),)})
++ provider = stub_provider()
++ provider.query.return_value = {'id': 'ABW-358', 'title': '已确认资料'}
++ provider.cover.return_value = False
++ control = control_for(config)
++ paused, requested = threading.Event(), threading.Event()
++ results, errors = [], []
++ def report(state):
++ if state['status'] == 'paused':
++ paused.set()
++ elif state.get('auto_applied', 0) and not requested.is_set():
++ requested.set()
++ control.request('pause', state['job_id'])
++ def run():
++ try:
++ results.append(process_library(config, db, self.root / 'generated', self.root / 'covers',
++ stage='metadata', speed_mode='high', job_id='one', report=report,
++ provider_factory=lambda: provider, database=LedgerDatabase(db)))
++ except BaseException as exc:
++ errors.append(exc)
++ with patch('peach.library_processing.CANDIDATE_FLUSH_SECONDS', 0), \
++ patch('peach.library_processing._enrich_finished_performers',
++ return_value={'aliases': 0, 'avatars': 0, 'conflicts': 0, 'failed': 0}):
++ thread = threading.Thread(target=run)
++ thread.start()
++ try:
++ self.assertTrue(paused.wait(5), errors)
++ with closing(sqlite3.connect(db)) as connection:
++ self.assertEqual(connection.execute('SELECT catalog_title FROM asset').fetchone()[0], '已确认资料')
++ self.assertTrue(read_rows(self.root / 'generated/library-metadata-field-candidates.csv'))
++ self.assertEqual(snapshot(config)['status'], 'paused')
++ finally:
++ control.request('resume', 'one')
++ thread.join(5)
++ self.assertFalse(thread.is_alive())
++ self.assertEqual(errors, [])
++ self.assertEqual((results[0]['job_id'], results[0]['status']), ('one', 'complete'))
++ self.assertGreater(results[0]['auto_applied'], 0)
++
+ @windows_ledger_roots
+ def test_all_local_titles_are_committed_before_the_first_online_request(self):
+ media = self.root / 'media'
+ media.mkdir()
+ db = fresh_ledger(self.root)
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': (str(media),)})
+ for code in ('ABW-358', 'ABW-359'):
+ (media / f'{code}.mp4').write_bytes(b'video')
+ (media / f'{code}.nfo').write_text(
+ f'<movie><id>{code}</id><title>本地 {code}</title></movie>', encoding='utf-8')
+ seen = []
+
+ def query(*args, **kwargs):
+ with closing(sqlite3.connect(db)) as connection:
+ seen.append(connection.execute('SELECT catalog_title FROM asset ORDER BY id').fetchall())
+ raise KeyboardInterrupt()
+
+ provider = stub_provider()
+ provider.query.side_effect = query
+ def previews(*args, **kwargs):
+ with closing(sqlite3.connect(db)) as connection:
+ self.assertEqual(connection.execute('SELECT catalog_title FROM asset ORDER BY id').fetchall(),
+ [('本地 ABW-358',), ('本地 ABW-359',)])
+
+ with self.assertRaises(KeyboardInterrupt), patch('peach.library_processing._generate_previews', side_effect=previews):
+ process_library(config, db, self.root / 'generated', self.root / 'covers',
+ provider_factory=lambda: provider, database=LedgerDatabase(db))
+ self.assertEqual(seen, [[('本地 ABW-358',), ('本地 ABW-359',)]])
+ self.assertTrue(read_rows(self.root / 'generated/library-metadata-field-candidates.csv'))
+
+ @windows_ledger_roots
+ def test_confirmed_online_fields_are_committed_while_cover_fetch_is_pending(self):
+ media = self.root / 'media'
+ media.mkdir()
+ (media / 'ABW-358.mp4').write_bytes(b'video')
+ db = fresh_ledger(self.root)
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': (str(media),)})
+ provider = stub_provider()
+ provider.query.return_value = {'id': 'ABW-358', 'title': '已确认标题', 'maker': 'Prestige',
+ 'release_date': '2023-05-26', 'actresses': [{'japanese_name': '涼森れむ'}]}
+ visible = []
+
+ def cover(*args, **kwargs):
+ with closing(sqlite3.connect(db)) as connection:
+ visible.extend(connection.execute('SELECT catalog_title FROM asset').fetchone())
+ raise KeyboardInterrupt()
+
+ provider.cover.side_effect = cover
+ with self.assertRaises(KeyboardInterrupt):
+ process_library(config, db, self.root / 'generated', self.root / 'covers',
+ provider_factory=lambda: provider, database=LedgerDatabase(db))
+ self.assertEqual(visible, ['已确认标题'])
+
@windows_ledger_roots
def test_targeted_collection_keeps_global_progress_and_unrelated_candidates(self):
media = self.root / 'media'
@@@ -1978,7 -2144,7 +2196,6 @@@
def test_management_controls_keep_credentials_and_empty_sections_visible(self):
root = Path(__file__).resolve().parents[1]
-- source = (root / 'frontend/src/application/catalog.js').read_text(encoding='utf-8')
# 关注管理那一屏在 React 里:能加来源的站才进候选,缺必填凭据的那一行默认展开,
# 一个站都没配也照样把整块列出来(空清单不等于这块不存在)。
follow = root / 'frontend/src/react/follow-manage'
@@@ -1987,7 -2153,7 +2204,6 @@@
self.assertIn('const rows = (credentials.providers || []).filter((row) => row.followable);', add)
self.assertIn("defaultOpen={row.requirement === 'required' && !credentialDone(row)}>", creds)
self.assertIn('const rows = data.providers || [];', creds)
-- self.assertIn("mode:'notice'", source)
configuration = (root / 'frontend/src/react/settings/configuration-page.tsx').read_text(encoding='utf-8')
self.assertNotIn("'/api/library-processing'", configuration)
page = (root / 'frontend/src/react/data-cleanup/data-cleanup-page.tsx').read_text(encoding='utf-8')
diff --cc tests/test_metadata_performer_profiles.py
index 0e192d057,0e192d057..c20a66ea7
--- a/tests/test_metadata_performer_profiles.py
+++ b/tests/test_metadata_performer_profiles.py
@@@ -78,6 -78,6 +78,19 @@@ class ImportedPerformerProfileTests(uni
self.assertTrue((self.root / "avatars" / "performer-7.img").is_file())
transport.assert_called_once()
++ def test_refreshed_approval_selects_the_confirmed_profile_evidence(self):
++ with self.database.write_transaction() as connection:
++ connection.execute(
++ "UPDATE review_decision SET note=? WHERE category='metadata_fields' AND item_key='asset:1:performers'",
++ (json.dumps({'candidate_key': 'earlier-evidence', 'refreshed_candidate_key': 'profile'}),))
++ transport = Mock()
++ result = enrich_performer_profiles(
++ self.database, [self.group(url='')], self.root / 'avatars', self.root / 'providers',
++ transport_factory=lambda: transport)
++ self.assertEqual(result['aliases'], 2)
++ self.assertEqual(result['avatars'], 0)
++ transport.assert_not_called()
++
def test_a_javdb_actor_id_lands_as_a_performer_external_ref(self):
"""javdb 的演员 id 落进账本,人物页的 JavDB 入口就是靠它拼出来的。
diff --cc tests/test_processing_control.py
index 0d3063713,000000000..eb229f9df
mode 100644,000000..100644
--- a/tests/test_processing_control.py
+++ b/tests/test_processing_control.py
@@@ -1,428 -1,0 +1,473 @@@
+"""馆藏处理控制与启动粗估的隔离行为回归。"""
+import json
+import tempfile
+import threading
+import unittest
+from contextlib import closing
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import Mock, patch
+
+from peach import job_recovery
+from peach.processing_control import (CURRENT, ProcessingControl, ProcessingEstimate,
+ checkpoint, control_for, initial_estimate, user_paused, deadline_after)
+from peach.settings_file import PeachConfig
+from peach.web_library_processing import w_library_processing
+from support.ledger import fresh_ledger
+
+
+class ProcessingControlTests(unittest.TestCase):
+ def setUp(self):
+ temporary = tempfile.TemporaryDirectory()
+ self.addCleanup(temporary.cleanup)
+ self.root = Path(temporary.name).resolve()
+ self.config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': ('R:\\Media',)})
+ self.db = fresh_ledger(self.root)
+
+ def seed(self, count=10):
+ import sqlite3
+ with closing(sqlite3.connect(self.db)) as connection, connection:
+ for index in range(count):
+ connection.execute('INSERT INTO asset(location,path,name,medium,size) VALUES(?,?,?,?,?)',
+ ('local', f'R:\\Media\\{index}.mp4', f'{index}.mp4', 'video', 1024**3))
+
+ def test_start_estimate_uses_known_count_size_and_scoped_selection(self):
+ self.seed()
+ estimate = initial_estimate(self.config, self.db, 'all')
+ chosen = initial_estimate(self.config, self.db, 'all', [1, 2])
+ low = initial_estimate(self.config, self.db, 'all', mode='low')
+ high = initial_estimate(self.config, self.db, 'all', mode='high')
+ self.assertEqual(estimate['estimate_file_count'], 10)
+ self.assertEqual(estimate['estimate_bytes'], 10 * 1024**3)
+ self.assertGreater(estimate['eta_seconds_max'], estimate['eta_seconds_min'])
+ self.assertLess(chosen['eta_seconds_max'], estimate['eta_seconds_max'])
+ self.assertGreater(low['eta_seconds_max'], estimate['eta_seconds_max'])
+ self.assertLess(high['eta_seconds_max'], estimate['eta_seconds_max'])
+ self.assertTrue(estimate['eta_initial'])
+ self.assertIn('未含未知新增', estimate['eta_scope'])
+
+ def test_new_directory_reports_counting_without_invented_time(self):
+ estimate = initial_estimate(self.config, self.db, 'scan')
+ self.assertIsNone(estimate['eta_seconds_min'])
+ self.assertIsNone(estimate['eta_seconds_max'])
+ self.assertIn('统计', estimate['eta_basis'])
+
+ def test_progress_calibrates_range_and_paused_time_does_not_count(self):
+ self.seed()
+ state = dict(initial_estimate(self.config, self.db, 'metadata'),
+ requested_stage='metadata', status='running', stage='读取本地资料', checked=0, total=10)
+ with patch('peach.processing_control.time.monotonic', return_value=100):
+ estimate = ProcessingEstimate(self.config, state, None)
+ estimate.update(state)
+ state['checked'] = 2
+ with patch('peach.processing_control.time.monotonic', return_value=110):
+ estimate.update(state)
+ self.assertEqual(state['eta_kind'], 'measured')
+ self.assertFalse(state['eta_initial'])
+ self.assertLessEqual(state['eta_seconds_min'], 40)
+ self.assertGreaterEqual(state['eta_seconds_max'], 40)
+ frozen = (state['eta_seconds_min'], state['eta_seconds_max'])
+ state['status'] = 'paused'
+ with patch('peach.processing_control.time.monotonic', return_value=9999):
+ estimate.update(state)
+ self.assertEqual((state['eta_seconds_min'], state['eta_seconds_max']), frozen)
+
++ def test_metadata_passes_use_independent_measured_samples(self):
++ self.seed()
++ state = dict(initial_estimate(self.config, self.db, 'metadata'),
++ requested_stage='metadata', status='running', stage='读取本地资料', checked=0, total=10)
++ with patch('peach.processing_control.time.monotonic', return_value=100):
++ estimate = ProcessingEstimate(self.config, state, None)
++ estimate.update(state)
++ state['checked'] = 3
++ with patch('peach.processing_control.time.monotonic', return_value=103):
++ estimate.update(state)
++ self.assertEqual(state['eta_kind'], 'measured')
++ state.update(stage='采集缺失资料', checked=0)
++ with patch('peach.processing_control.time.monotonic', return_value=200):
++ estimate.update(state)
++ self.assertTrue(state['eta_initial'])
++ self.assertEqual(state['eta_kind'], 'estimating')
++ self.assertEqual(state['eta_scope'], '当前阶段:采集缺失资料')
++ state['checked'] = 2
++ with patch('peach.processing_control.time.monotonic', return_value=204):
++ estimate.update(state)
++ self.assertLessEqual(state['eta_seconds_min'], 16)
++ self.assertGreaterEqual(state['eta_seconds_max'], 16)
++ self.assertLess(state['eta_seconds_max'], 40)
++
++ def test_progress_count_rewind_starts_a_new_sample_for_same_stage(self):
++ self.seed()
++ state = dict(initial_estimate(self.config, self.db, 'metadata'),
++ requested_stage='metadata', status='running', stage='读取时长与分辨率', checked=0, total=10)
++ with patch('peach.processing_control.time.monotonic', return_value=100):
++ estimate = ProcessingEstimate(self.config, state, None)
++ estimate.update(state)
++ state['checked'] = 5
++ with patch('peach.processing_control.time.monotonic', return_value=150):
++ estimate.update(state)
++ state['checked'] = 0
++ with patch('peach.processing_control.time.monotonic', return_value=200):
++ estimate.update(state)
++ self.assertEqual(state['eta_kind'], 'estimating')
++ state['checked'] = 2
++ with patch('peach.processing_control.time.monotonic', return_value=202):
++ estimate.update(state)
++ self.assertLessEqual(state['eta_seconds_min'], 8)
++ self.assertGreaterEqual(state['eta_seconds_max'], 8)
++ self.assertLess(state['eta_seconds_max'], 20)
++
+ def test_pause_waits_at_checkpoint_and_resume_releases_same_job(self):
+ control = control_for(self.config)
+ entered, paused, finished = threading.Event(), threading.Event(), threading.Event()
+ errors = []
+ def publish(**values):
+ if values['status'] == 'paused':
+ paused.set()
+ def worker():
+ try:
+ with control.bind('one', publish=publish, active=lambda: True, db_path=self.db, mode='high'):
+ entered.set()
+ control.request('pause', 'one')
+ checkpoint('probe')
+ finished.set()
+ except BaseException as exc:
+ errors.append(exc)
+ thread = threading.Thread(target=worker)
+ thread.start()
+ self.addCleanup(lambda: control.request('resume', 'one'))
+ self.addCleanup(lambda: thread.join(2))
+ self.assertTrue(entered.wait(2))
+ self.assertTrue(paused.wait(2))
+ self.assertFalse(finished.is_set())
+ self.assertTrue(user_paused(self.db, 'one'))
+ control.request('resume', 'one')
+ thread.join(2)
+ self.assertFalse(thread.is_alive())
+ self.assertTrue(finished.is_set())
+ self.assertEqual(errors, [])
+ self.assertFalse(user_paused(self.db, 'one'))
+
+ def test_saved_pause_intent_prevents_automatic_restart(self):
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='high'):
+ control.request('pause', 'one')
+ restored = ProcessingControl(control.path)
+ self.assertTrue(restored.paused)
+ self.assertEqual(restored.mode, 'high')
+ job_recovery.save(self.db, 'library-processing', 'one', {'stage': 'scan'}, waiting=True)
+ handler = Mock()
+ self.assertEqual(job_recovery.resume(self.db, {'library-processing': handler}), [])
+ handler.assert_not_called()
+
+ def test_low_mode_leaves_io_gaps_and_preserves_unrelated_context(self):
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='low'), \
+ patch('peach.processing_control.time.monotonic', return_value=10), \
+ patch.object(control.event, 'wait', side_effect=lambda _: control.request('set_speed', mode='standard')) as wait:
+ checkpoint('network')
+ checkpoint('network')
+ wait.assert_called_once()
+ self.assertIsNone(CURRENT.get())
+ checkpoint('network')
+ restored = ProcessingControl(control.path)
+ self.assertEqual(restored.mode, 'standard')
+
+ def test_stale_job_control_is_rejected(self):
+ contract = SimpleNamespace(library_processing_job=Mock())
+ contract.library_processing_job.snapshot.return_value = {'job_id': 'current', 'status': 'running'}
+ with patch('peach.web_library_processing.settings_file.active', return_value=self.config):
+ with self.assertRaisesRegex(ValueError, '任务已变化'):
+ w_library_processing(contract, {'action': 'pause', 'job_id': 'stale'})
+ with self.assertRaisesRegex(ValueError, '任务已变化'):
+ w_library_processing(contract, {'action': 'set_speed', 'job_id': 'stale', 'speed_mode': 'low'})
+
+ def test_completed_timing_is_available_for_next_initial_estimate(self):
+ self.seed()
+ state = dict(initial_estimate(self.config, self.db, 'metadata'),
+ requested_stage='metadata', status='running')
+ with patch('peach.processing_control.time.monotonic', return_value=100):
+ estimate = ProcessingEstimate(self.config, state, None)
+ state['status'] = 'complete'
+ with patch('peach.processing_control.time.monotonic', return_value=200):
+ estimate.update(state)
+ next_run = initial_estimate(self.config, self.db, 'metadata')
+ self.assertEqual(next_run['eta_kind'], 'historical')
+ self.assertTrue(next_run['eta_initial'])
+ self.assertEqual(json.loads((self.config.directory('state') / 'library-processing-timing.json').read_text()),
+ {'metadata': 10.0})
+
+ def test_action_deadline_keeps_the_same_budget_after_user_pause(self):
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db), \
+ patch('peach.processing_control.time.monotonic', return_value=100):
+ deadline = deadline_after(90)
+ self.assertEqual(deadline - 110, 80)
+ control.paused_seconds += 3600
+ self.assertEqual(deadline - 3710, 80)
+ self.assertEqual((deadline + 5) - 3710, 85)
+ self.assertTrue(3710 < deadline)
+ self.assertTrue(3800 > deadline)
+
+ def test_web_pause_and_resume_preserve_running_job_and_initial_estimate(self):
+ from peach.jobs import BackgroundJob
+ from peach.library_processing import _save, state_path
+ from peach.web_library_processing import q_library_processing
+ from peach.repository import LedgerDatabase
+ from peach.task_runs import TaskRunStore
+ database_root = self.config.directory('database')
+ database_root.mkdir(parents=True)
+ db = fresh_ledger(database_root)
+ job = BackgroundJob('library-processing', runs=TaskRunStore(LedgerDatabase(db)))
+ contract = SimpleNamespace(db_path=db, library_processing_job=job,
+ candidate_root=self.root / 'candidates', cover_root=self.root / 'covers',
+ database=job.runs.database, cache_bust=lambda: None)
+ entered, advance, paused, done = (threading.Event() for _ in range(4))
+ calls, errors = [], []
+ def process(*_args, **kwargs):
+ identity = kwargs['job_id']
+ calls.append(identity)
+ def report(**values):
+ kwargs['report'](values)
+ if values.get('status') == 'paused':
+ paused.set()
+ try:
+ with control_for(self.config).bind(identity, publish=report, active=lambda: True, db_path=db):
+ _save(state_path(self.config), dict(job_id=identity, status='running', requested_stage='metadata'))
+ entered.set()
+ advance.wait(2)
+ checkpoint()
+ done.set()
+ return {'status': 'complete'}
+ except BaseException as exc:
+ errors.append(exc)
+ raise
+ with patch('peach.web_library_processing.settings_file.active', return_value=self.config), \
+ patch('peach.web_library_processing.process_library', side_effect=process):
+ initial = w_library_processing(contract, {'stage': 'metadata', 'speed_mode': 'high'})
+ self.assertIn('eta_seconds_max', initial)
+ self.assertEqual(initial['speed_mode'], 'high')
+ self.assertTrue(entered.wait(2))
+ run_id = initial['run_id']
+ identity = initial['job_id']
+ reply = w_library_processing(contract, {'action': 'pause', 'job_id': identity})
+ self.assertEqual(reply['status'], 'pausing')
+ advance.set()
+ self.assertTrue(paused.wait(2))
+ self.assertEqual(q_library_processing(contract, {})['status'], 'paused')
+ self.assertFalse(done.is_set())
+ w_library_processing(contract, {'action': 'resume', 'job_id': identity})
+ job.thread.join(2)
+ self.assertTrue(done.is_set())
+ self.assertEqual(job.snapshot()['status'], 'complete')
+ self.assertEqual(job.snapshot()['run_id'], run_id)
+ self.assertEqual(calls, [identity])
+ self.assertEqual(errors, [])
+ self.assertEqual(job.runs.get(run_id).status, 'succeeded')
+
+ def test_low_mode_ffmpeg_uses_single_decode_filter_and_encode_threads(self):
+ from peach.frame_capture import capture_frame
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='low'), \
+ patch('peach.frame_capture.subprocess.run', return_value=SimpleNamespace(stderr=b'')) as run:
+ capture_frame('ffmpeg', 'video.mp4', 1, self.root / 'frame.jpg')
+ command = run.call_args.args[0]
+ self.assertEqual(command.count('-threads'), 2)
+ self.assertEqual(command[command.index('-filter_threads') + 1], '1')
+
+ def test_user_paused_job_keeps_identity_and_progress_through_service_restart(self):
+ from peach.jobs import BackgroundJob
+ from peach.library_processing import _save, state_path
+ from peach.repository import LedgerDatabase
+ from peach.task_runs import TaskRunStore
+ database_root = self.config.directory('database')
+ database_root.mkdir(parents=True)
+ db = fresh_ledger(database_root)
+ runs = TaskRunStore(LedgerDatabase(db))
+ first = BackgroundJob('library-processing', runs=runs)
+ contract = SimpleNamespace(db_path=db, library_processing_job=first,
+ candidate_root=self.root / 'candidates', cover_root=self.root / 'covers',
+ database=runs.database, cache_bust=lambda: None)
+ entered, advance, paused = (threading.Event() for _ in range(3))
+ identities, resumes = [], []
+ def process(*_args, **kwargs):
+ identity = kwargs['job_id']
+ identities.append(identity)
+ resumes.append(kwargs['resume_state'])
+ state = dict(job_id=identity, requested_stage='metadata', status='running', completed_metadata=['1:R:\\a.mp4'])
+ def report(**values):
+ values.pop('resumed_after', None)
+ state.update(values)
+ _save(state_path(self.config), state)
+ kwargs['report'](dict(state))
+ if state['status'] == 'paused':
+ paused.set()
+ with control_for(self.config).bind(identity, publish=report, active=kwargs['active'], db_path=db):
+ _save(state_path(self.config), state)
+ if len(identities) == 1:
+ entered.set()
+ advance.wait(2)
+ checkpoint()
+ return {'status': 'complete'}
+ with patch('peach.web_library_processing.settings_file.active', return_value=self.config), \
+ patch('peach.web_library_processing.process_library', side_effect=process):
+ initial = w_library_processing(contract, {'stage': 'metadata', 'speed_mode': 'high'})
+ self.assertTrue(entered.wait(2))
+ w_library_processing(contract, {'action': 'pause', 'job_id': initial['job_id']})
+ advance.set()
+ self.assertTrue(paused.wait(2))
+ first.stop()
+ self.assertEqual(runs.get(initial['run_id']).status, 'pending')
+ self.assertEqual(runs.get(initial['run_id']).progress_label, '已暂停,等待继续')
+ second = BackgroundJob('library-processing', runs=runs)
+ contract.library_processing_job = second
+ w_library_processing(contract, {'action': 'resume', 'job_id': initial['job_id']})
+ second.thread.join(2)
+ self.assertEqual(identities, [initial['job_id'], initial['job_id']])
+ self.assertEqual(resumes[1]['completed_metadata'], ['1:R:\\a.mp4'])
+ self.assertEqual(second.snapshot()['status'], 'complete')
+ self.assertEqual(second.snapshot()['run_id'], initial['run_id'])
+ self.assertEqual(control_for(self.config).mode, 'high')
+ self.assertEqual(runs.get(initial['run_id']).status, 'succeeded')
+
+ def test_three_intensities_set_distinct_io_start_intervals(self):
+ control = control_for(self.config)
+ intervals = {}
+ for mode in ('low', 'standard', 'high'):
+ with self.subTest(mode=mode), \
+ control.bind(mode, publish=lambda **_: None, active=lambda: True, db_path=self.db, mode=mode), \
+ patch('peach.processing_control.time.monotonic', return_value=10):
+ checkpoint('network')
+ intervals[mode] = control.next_work['network'] - 10
+ self.assertGreater(intervals['low'], intervals['standard'])
+ self.assertGreater(intervals['standard'], intervals['high'])
+ self.assertEqual(intervals['high'], 0)
+
+ def test_three_intensities_set_decode_filter_and_encode_threads(self):
+ from peach.frame_capture import capture_frame, tile_frames
+ control = control_for(self.config)
+ for mode, threads in (('low', '1'), ('standard', '2'), ('high', None)):
+ with self.subTest(mode=mode), \
+ control.bind(mode, publish=lambda **_: None, active=lambda: True, db_path=self.db, mode=mode), \
+ patch('peach.frame_capture.checkpoint'), \
+ patch('peach.frame_capture.subprocess.run', return_value=SimpleNamespace(stderr=b'')) as run:
+ capture_frame('ffmpeg', 'video.mp4', 1, self.root / 'frame.jpg')
+ tile_frames('ffmpeg', 'frame%02d.jpg', 3, 3, self.root / 'tile.jpg')
+ for call, filter_option in zip(run.call_args_list, ('-filter_threads', '-filter_complex_threads')):
+ command = call.args[0]
+ if threads is None:
+ self.assertNotIn('-threads', command)
+ self.assertNotIn(filter_option, command)
+ else:
+ self.assertEqual(command.count('-threads'), 2)
+ self.assertEqual(command[command.index(filter_option) + 1], threads)
+ self.assertEqual([command[index + 1] for index, value in enumerate(command)
+ if value == '-threads'], [threads, threads])
+
+ def test_intensity_switch_recalibrates_estimate_in_every_direction(self):
+ self.seed()
+ control = control_for(self.config)
+ for initial, target in (('low', 'standard'), ('standard', 'high'), ('high', 'low')):
+ with self.subTest(initial=initial, target=target), \
+ control.bind(initial, publish=lambda **_: None, active=lambda: True,
+ db_path=self.db, mode=initial):
+ state = dict(initial_estimate(self.config, self.db, 'metadata', mode=initial),
+ status='paused', requested_stage='metadata')
+ estimate = ProcessingEstimate(self.config, state, control)
+ old = state['eta_seconds_max']
+ control.request('set_speed', mode=target)
+ estimate.update(state)
+ self.assertEqual(state['speed_mode'], target)
+ if target == 'low':
+ self.assertGreater(state['eta_seconds_max'], old)
+ else:
+ self.assertLess(state['eta_seconds_max'], old)
+
+ def test_high_intensity_honors_installation_pause(self):
+ from peach.jobs import JobPaused
+ from peach import update_tasks
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='high'):
+ token = update_tasks.reserve(self.db)
+ try:
+ with self.assertRaises(JobPaused):
+ checkpoint('frame')
+ finally:
+ update_tasks.release(self.db, token)
+ checkpoint('frame')
+ self.assertEqual(control.mode, 'high')
+
+ def test_high_history_is_normalized_for_every_initial_intensity(self):
+ self.seed()
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='high'):
+ state = dict(initial_estimate(self.config, self.db, 'metadata', mode='high'),
+ requested_stage='metadata', status='running')
+ with patch('peach.processing_control.time.monotonic', return_value=100):
+ estimate = ProcessingEstimate(self.config, state, control)
+ state['status'] = 'complete'
+ with patch('peach.processing_control.time.monotonic', return_value=175):
+ estimate.update(state)
+ history = json.loads((self.config.directory('state') / 'library-processing-timing.json').read_text())
+ self.assertEqual(history['metadata'], 10.0)
+ low, standard, high = [initial_estimate(self.config, self.db, 'metadata', mode=mode)
+ for mode in ('low', 'standard', 'high')]
+ self.assertEqual(high['eta_kind'], 'historical')
+ self.assertGreater(low['eta_seconds_max'], standard['eta_seconds_max'])
+ self.assertGreater(standard['eta_seconds_max'], high['eta_seconds_max'])
+
+ def test_high_intensity_and_pause_intent_are_shared_between_control_instances(self):
+ control = control_for(self.config)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='standard'):
+ external = ProcessingControl(control.path)
+ external.request('set_speed', 'one', mode='high')
+ external.request('pause', 'one')
+ control.refresh(force=True)
+ self.assertEqual(control.mode, 'high')
+ self.assertTrue(control.paused)
+ external.request('resume', 'one')
+ control.refresh(force=True)
+ self.assertFalse(control.paused)
+ self.assertEqual(control.mode, 'high')
+
+ def test_api_switches_between_all_intensities_with_proportional_paused_estimates(self):
+ from peach.jobs import BackgroundJob
+ control = control_for(self.config)
+ job = BackgroundJob('library-processing')
+ job.state = dict(job_id='one', status='paused', speed_mode='low', eta_seconds_min=180, eta_seconds_max=360)
+ contract = SimpleNamespace(db_path=self.db, library_processing_job=job)
+ with control.bind('one', publish=lambda **_: None, active=lambda: True, db_path=self.db, mode='low'), \
+ patch('peach.web_library_processing.settings_file.active', return_value=self.config):
+ control.request('pause', 'one')
+ high = w_library_processing(contract, {'action': 'set_speed', 'job_id': 'one', 'speed_mode': 'high'})
+ self.assertEqual((high['speed_mode'], high['status']), ('high', 'paused'))
+ self.assertEqual((high['eta_seconds_min'], high['eta_seconds_max']), (75, 150))
+ standard = w_library_processing(contract, {'action': 'set_speed', 'job_id': 'one', 'speed_mode': 'standard'})
+ self.assertEqual((standard['eta_seconds_min'], standard['eta_seconds_max']), (100, 200))
+ low = w_library_processing(contract, {'action': 'set_speed', 'job_id': 'one', 'speed_mode': 'low'})
+ self.assertEqual((low['eta_seconds_min'], low['eta_seconds_max']), (180, 360))
+ self.assertTrue(control.paused)
+
+ def test_scan_progress_accumulates_discovered_counts_across_roots(self):
+ from peach.library_processing import _scan_sources
+ reports = []
+ config = PeachConfig(self.root, self.root / 'config.toml', present=True,
+ locations={'local': ('R:\\Media', 'R:\\Other')})
+ def scan(*_args, **kwargs):
+ kwargs['progress'](1, 10)
+ kwargs['progress'](2, 30)
+ return SimpleNamespace(files=2, total_bytes=30, new_ids=[])
+ with patch('peach.library_processing.scan_location', side_effect=scan), \
+ patch('peach.library_processing._online_source_root', return_value=self.root), \
+ patch('peach.library_processing._ffprobe_path', return_value=None), \
+ patch('peach.library_processing.probe_unmeasured', return_value=0), \
+ patch('peach.library_processing.reattach_in'):
+ result = _scan_sources(config, self.db, locations=config.locations, asset_ids=None,
+ stage='scan', guard=Mock(), update=lambda **values: reports.append(values),
+ issue=lambda *_args, **_kwargs: None)
+ discovering = [row for row in reports if row.get('current_action') == 'scanning_files']
+ self.assertEqual([row['scanned'] for row in discovering], [1, 2, 3, 4])
+ self.assertEqual([row['scanned_bytes'] for row in discovering], [10, 30, 40, 60])
+ self.assertTrue(all(row['total'] == 0 for row in discovering))
+ self.assertEqual((result.scanned, result.scanned_bytes), (4, 60))
diff --cc tests/test_source_assertion_ratchet.py
index 07d2e6e27,07d2e6e27..245424426
--- a/tests/test_source_assertion_ratchet.py
+++ b/tests/test_source_assertion_ratchet.py
@@@ -43,7 -43,7 +43,7 @@@ BASELINE: dict[str, int] =
"test_follow_web.py": 1,
"test_frontend_build.py": 20,
"test_job_status.py": 3,
-- "test_metadata_library.py": 6,
++ "test_metadata_library.py": 5,
"test_repo_hygiene.py": 2,
"test_scripts.py": 13,
"test_social_avatar_harvest.py": 2,
diff --cc web/css/17-overlay.css
index 075e6b719,5643d56a8..c2deff2b4
--- a/web/css/17-overlay.css
+++ b/web/css/17-overlay.css
@@@ -1,16 -1,14 +1,17 @@@
/* ── Toast:Sonner 的栈,Board 的面 ──
堆叠、悬停展开、滑动关闭与悬停暂停计时照 Sonner(`frontend/src/react/toaster.tsx`);面、线、
-- 圆角、阴影和字取 Board 浮层那一套,和菜单、教程卡是同一种东西。颜色变量写在每条 toast
++ 外框采用 Agent Progress 的圆角、细边和接触阴影。颜色变量写在每条 toast
自己身上,压过 Sonner 按浅色主题挂在栈上的那一组,两档主题都跟着 Board token 走。
层级回到站内的 popover 档:Sonner 自带的九位数会连 tooltip 一起盖住。 */
#toasts [data-sonner-toaster]{z-index:var(--layer-popover);font:var(--board-body)}
+#toasts .processing-task-toast{width:100%;right:0}
- [data-processing-dock]{border-radius:var(--floating-radius);box-shadow:var(--elevation-dropdown);width:100%}
++[data-processing-dock]{width:100%}
#toasts [data-sonner-toast][data-styled=true]{--normal-bg:var(--color-background-primary-default);
--normal-border:var(--color-border-button-default);--normal-text:var(--color-text-primary);
width:max-content;min-width:min(400px,100%);max-width:100%;right:0;
-- padding:18px 20px;gap:12px;flex-wrap:wrap;border-radius:var(--floating-radius);font:var(--board-body);
-- box-shadow:var(--elevation-dropdown)}
++ padding:18px 20px;gap:12px;flex-wrap:wrap;font:var(--board-body)}
++#toasts :is([data-sonner-toast][data-styled=true],[data-processing-dock]){
++ border-radius:var(--floating-radius);box-shadow:var(--elevation-xs)}
/* 正文按实际内容参与排布,上限留出图标、间距与 Sonner 的光学校正边距。 */
#toasts [data-sonner-toast][data-styled=true] [data-content]{flex:1 1 auto;
max-width:calc(100% - 28px - var(--toast-icon-margin-start) - var(--toast-icon-margin-end))}
diff --cc web/dist/peach-app.js
index 275802df7,d0e460048..d05e990bc
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@@ -28848,232 -28468,232 +28848,232 @@@ tE =
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
- var Ice = {};
- Ice = {
-var ZT = {};
-ZT = {
++var nE = {};
++nE = {
collapse: "Ahenda",
expand: "Laienda"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
- var Lce = {};
- Lce = {
-var QT = {};
-QT = {
++var rE = {};
++rE = {
collapse: "Pienennä",
expand: "Laajenna"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
- var Rce = {};
- Rce = {
-var $T = {};
-$T = {
++var Ice = {};
++Ice = {
collapse: "Réduire",
expand: "Développer"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
- var zce = {};
- zce = {
-var eE = {};
-eE = {
++var Lce = {};
++Lce = {
collapse: "כווץ",
expand: "הרחב"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
- var Bce = {};
- Bce = {
-var tE = {};
-tE = {
++var Rce = {};
++Rce = {
collapse: "Sažmi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
- var Vce = {};
- Vce = {
-var Oce = {};
-Oce = {
++var zce = {};
++zce = {
collapse: "Összecsukás",
expand: "Kibontás"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
- var Hce = {};
- Hce = {
-var kce = {};
-kce = {
++var Bce = {};
++Bce = {
collapse: "Comprimi",
expand: "Espandi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
- var Uce = {};
- Uce = {
-var Ace = {};
-Ace = {
++var Vce = {};
++Vce = {
collapse: "折りたたむ",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
- var Wce = {};
- Wce = {
-var jce = {};
-jce = {
++var Hce = {};
++Hce = {
collapse: "접기",
expand: "펼치기"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
- var Gce = {};
- Gce = {
-var Mce = {};
-Mce = {
++var Uce = {};
++Uce = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
- var Kce = {};
- Kce = {
-var Nce = {};
-Nce = {
++var Wce = {};
++Wce = {
collapse: "Sakļaut",
expand: "Izvērst"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
- var qce = {};
- qce = {
-var Pce = {};
-Pce = {
++var Gce = {};
++Gce = {
collapse: "Skjul",
expand: "Utvid"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
- var Jce = {};
- Jce = {
-var Fce = {};
-Fce = {
++var Kce = {};
++Kce = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
- var Yce = {};
- Yce = {
-var Ice = {};
-Ice = {
++var qce = {};
++qce = {
collapse: "Zwiń",
expand: "Rozwiń"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
- var Xce = {};
- Xce = {
-var Lce = {};
-Lce = {
++var Jce = {};
++Jce = {
collapse: "Recolher",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
- var Zce = {};
- Zce = {
-var Rce = {};
-Rce = {
++var Yce = {};
++Yce = {
collapse: "Colapsar",
expand: "Expandir"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
- var Qce = {};
- Qce = {
-var zce = {};
-zce = {
++var Xce = {};
++Xce = {
collapse: "Restrângeți",
expand: "Extindeți"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
- var $ce = {};
- $ce = {
-var Bce = {};
-Bce = {
++var Zce = {};
++Zce = {
collapse: "Свернуть",
expand: "Развернуть"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
- var ele = {};
- ele = {
-var Vce = {};
-Vce = {
++var Qce = {};
++Qce = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
- var tle = {};
- tle = {
-var Hce = {};
-Hce = {
++var $ce = {};
++$ce = {
collapse: "Strni",
expand: "Razširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
- var nle = {};
- nle = {
-var Uce = {};
-Uce = {
++var ele = {};
++ele = {
collapse: " Skupi",
expand: "Proširi"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
- var rle = {};
- rle = {
-var Wce = {};
-Wce = {
++var tle = {};
++tle = {
collapse: "Dölj",
expand: "Expandera"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
- var ile = {};
- ile = {
-var Gce = {};
-Gce = {
++var nle = {};
++nle = {
collapse: "Daralt",
expand: "Genişlet"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
- var ale = {};
- ale = {
-var Kce = {};
-Kce = {
++var rle = {};
++rle = {
collapse: "Згорнути",
expand: "Розгорнути"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
- var ole = {};
- ole = {
-var qce = {};
-qce = {
++var ile = {};
++ile = {
collapse: "折叠",
expand: "扩展"
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
- var sle = {};
- sle = {
-var Jce = {};
-Jce = {
++var ale = {};
++ale = {
collapse: "收合",
expand: "展開"
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/intlStrings.mjs
- var cle = {};
- cle = {
-var Yce = {};
-Yce = {
- "ar-AE": UT,
- "bg-BG": WT,
- "cs-CZ": GT,
- "da-DK": KT,
- "de-DE": qT,
- "el-GR": JT,
- "en-US": YT,
- "es-ES": XT,
- "et-EE": ZT,
- "fi-FI": QT,
- "fr-FR": $T,
- "he-IL": eE,
- "hr-HR": tE,
- "hu-HU": Oce,
- "it-IT": kce,
- "ja-JP": Ace,
- "ko-KR": jce,
- "lt-LT": Mce,
- "lv-LV": Nce,
- "nb-NO": Pce,
- "nl-NL": Fce,
- "pl-PL": Ice,
- "pt-BR": Lce,
- "pt-PT": Rce,
- "ro-RO": zce,
- "ru-RU": Bce,
- "sk-SK": Vce,
- "sl-SI": Hce,
- "sr-SP": Uce,
- "sv-SE": Wce,
- "tr-TR": Gce,
- "uk-UA": Kce,
- "zh-CN": qce,
- "zh-TW": Jce
++var ole = {};
++ole = {
+ "ar-AE": JT,
+ "bg-BG": YT,
+ "cs-CZ": XT,
+ "da-DK": ZT,
+ "de-DE": QT,
+ "el-GR": $T,
+ "en-US": eE,
+ "es-ES": tE,
- "et-EE": Ice,
- "fi-FI": Lce,
- "fr-FR": Rce,
- "he-IL": zce,
- "hr-HR": Bce,
- "hu-HU": Vce,
- "it-IT": Hce,
- "ja-JP": Uce,
- "ko-KR": Wce,
- "lt-LT": Gce,
- "lv-LV": Kce,
- "nb-NO": qce,
- "nl-NL": Jce,
- "pl-PL": Yce,
- "pt-BR": Xce,
- "pt-PT": Zce,
- "ro-RO": Qce,
- "ru-RU": $ce,
- "sk-SK": ele,
- "sl-SI": tle,
- "sr-SP": nle,
- "sv-SE": rle,
- "tr-TR": ile,
- "uk-UA": ale,
- "zh-CN": ole,
- "zh-TW": sle
++ "et-EE": nE,
++ "fi-FI": rE,
++ "fr-FR": Ice,
++ "he-IL": Lce,
++ "hr-HR": Rce,
++ "hu-HU": zce,
++ "it-IT": Bce,
++ "ja-JP": Vce,
++ "ko-KR": Hce,
++ "lt-LT": Uce,
++ "lv-LV": Wce,
++ "nb-NO": Gce,
++ "nl-NL": Kce,
++ "pl-PL": qce,
++ "pt-BR": Jce,
++ "pt-PT": Yce,
++ "ro-RO": Xce,
++ "ru-RU": Zce,
++ "sk-SK": Qce,
++ "sl-SI": $ce,
++ "sr-SP": ele,
++ "sv-SE": tle,
++ "tr-TR": nle,
++ "uk-UA": rle,
++ "zh-CN": ile,
++ "zh-TW": ale
};
//#endregion
//#region node_modules/react-aria/dist/private/tree/useTreeItem.mjs
- function lle(e) {
-function Xce(e) {
++function sle(e) {
return e && e.__esModule ? e.default : e;
}
- function ule(e, t, n) {
- let { node: r } = e, i = Ose(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Zy(lle(cle), "@react-aria/tree"), s = {
-function Zce(e, t, n) {
- let { node: r } = e, i = bse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = eb(Xce(Yce), "@react-aria/tree"), s = {
++function cle(e, t, n) {
++ let { node: r } = e, i = Ose(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Zy(sle(ole), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
@@@ -29092,12 -28712,12 +29092,12 @@@
}
//#endregion
//#region src/react/components/selection-dock.tsx
- var dle = "(prefers-reduced-motion: reduce)", fle = () => matchMedia(dle).matches, ple = (e) => {
- let t = matchMedia(dle);
-var Qce = "(prefers-reduced-motion: reduce)", $ce = () => matchMedia(Qce).matches, ele = (e) => {
- let t = matchMedia(Qce);
++var lle = "(prefers-reduced-motion: reduce)", ule = () => matchMedia(lle).matches, dle = (e) => {
++ let t = matchMedia(lle);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
};
- function mle({ children: e, count: t, label: n }) {
- let r = m_(), i = (0, S.useSyncExternalStore)(ple, fle, () => !1), { isFocusVisible: a } = wae(), o = i || a, s = {
-function tle({ children: e, count: t, label: n }) {
- let r = m_(), i = (0, S.useSyncExternalStore)(ele, $ce, () => !1), { isFocusVisible: a } = Rv(), o = i || a, s = {
++function fle({ children: e, count: t, label: n }) {
++ let r = m_(), i = (0, S.useSyncExternalStore)(dle, ule, () => !1), { isFocusVisible: a } = wae(), o = i || a, s = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@@ -29133,18 -28753,18 +29133,18 @@@
}), e]
});
}
--function nE({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, C.jsx)(__, { children: e ? /* @__PURE__ */ (0, C.jsx)(mle, { ...t }, "selection") : null });
- return /* @__PURE__ */ (0, C.jsx)(__, { children: e ? /* @__PURE__ */ (0, C.jsx)(tle, { ...t }, "selection") : null });
++function iE({ visible: e, ...t }) {
++ return /* @__PURE__ */ (0, C.jsx)(__, { children: e ? /* @__PURE__ */ (0, C.jsx)(fle, { ...t }, "selection") : null });
}
//#endregion
//#region src/react/batch-dock/batch-dock-api.ts
--var rE = {
++var aE = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
- function hle(e, t = !1) {
-function nle(e, t = !1) {
++function ple(e, t = !1) {
switch (e) {
case "trash": return [
{
@@@ -29160,7 -28780,7 +29160,7 @@@
glyph: "trash",
danger: !0
},
-- rE
++ aE
];
case "junk": return [
t ? {
@@@ -29181,7 -28801,7 +29181,7 @@@
glyph: "trash",
danger: !0
},
-- rE
++ aE
];
case "follow": return [
{
@@@ -29202,7 -28822,7 +29202,7 @@@
label: "忽略",
glyph: "eye-off"
},
-- rE
++ aE
];
default: return [
{
@@@ -29236,48 -28856,48 +29236,48 @@@
glyph: "trash",
danger: !0
},
-- rE
++ aE
];
}
}
//#endregion
//#region src/react/batch-dock/batch-dock-island.tsx
- var iE = null, gle = {
-var iE = null, rle = {
++var oE = null, mle = {
count: 0,
context: "catalog",
junkDismissed: !1
--}, aE = /* @__PURE__ */ new Set();
- function _le(e) {
-function ile(e) {
-- return aE.add(e), () => {
-- aE.delete(e);
++}, sE = /* @__PURE__ */ new Set();
++function hle(e) {
++ return sE.add(e), () => {
++ sE.delete(e);
};
}
- function vle() {
-function ale() {
-- for (let e of [...aE]) e();
++function gle() {
++ for (let e of [...sE]) e();
}
- var yle = { render(e) {
- gle = e, (0, ht.flushSync)(vle);
-var ole = { render(e) {
- rle = e, (0, gt.flushSync)(ale);
++var _le = { render(e) {
++ mle = e, (0, ht.flushSync)(gle);
} };
- function ble(e) {
- return iE = e, yle;
-function sle(e) {
- return iE = e, ole;
++function vle(e) {
++ return oE = e, _le;
}
- function xle() {
- let e = (0, S.useSyncExternalStore)(_le, () => gle);
- return iE ? /* @__PURE__ */ (0, C.jsx)(Sle, {
-function cle() {
- let e = (0, S.useSyncExternalStore)(ile, () => rle);
- return iE ? /* @__PURE__ */ (0, C.jsx)(lle, {
-- host: iE,
++function yle() {
++ let e = (0, S.useSyncExternalStore)(hle, () => mle);
++ return oE ? /* @__PURE__ */ (0, C.jsx)(ble, {
++ host: oE,
props: e
}) : null;
}
- function Sle({ host: e, props: t }) {
-function lle({ host: e, props: t }) {
++function ble({ host: e, props: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
-- children: /* @__PURE__ */ (0, C.jsx)(nE, {
++ children: /* @__PURE__ */ (0, C.jsx)(iE, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: hle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, C.jsxs)("button", {
- children: nle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, C.jsxs)("button", {
++ children: ple(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@@ -29294,12 -28914,12 +29294,12 @@@
}
//#endregion
//#region src/number-setting.ts
--function oE(e, t, n, r) {
++function cE(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
//#endregion
//#region src/settings-store.ts
- function Cle(e, t) {
-function ule(e, t) {
++function xle(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@@ -29319,7 -28939,7 +29319,7 @@@
}
//#endregion
//#region src/sort-preferences.ts
- var wle = [
-var dle = [
++var Sle = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@@ -29328,7 -28948,7 +29328,7 @@@
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
- ], sE = ["release", "发行时间"], Tle = [...wle, sE].map(([e]) => e), cE = {
-], sE = ["release", "发行时间"], fle = [...dle, sE].map(([e]) => e), cE = {
++], lE = ["release", "发行时间"], Cle = [...Sle, lE].map(([e]) => e), uE = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@@ -29337,28 -28957,28 +29337,28 @@@
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
- }, Ele = {
-}, ple = {
++}, wle = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
- }, Dle = (e, t, n = cE) => (n[e] || [])[+(t === "asc")] || "", lE = (e, t = cE) => t[e] ? "desc" : "";
-}, mle = (e, t, n = cE) => (n[e] || [])[+(t === "asc")] || "", lE = (e, t = cE) => t[e] ? "desc" : "";
--function uE(e, t, n, r = cE) {
++}, Tle = (e, t, n = uE) => (n[e] || [])[+(t === "asc")] || "", dE = (e, t = uE) => t[e] ? "desc" : "";
++function fE(e, t, n, r = uE) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
-- dir: lE(e, r)
++ dir: dE(e, r)
};
}
--function dE(e, t, n) {
++function pE(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
--function fE(e, t, n, r, i = n) {
- let a = e ? Ele[e] : void 0, o = a ? a[0] : e, s = o && Tle.includes(o) ? o : i;
- let a = e ? ple[e] : void 0, o = a ? a[0] : e, s = o && fle.includes(o) ? o : i;
-- return cE[s] ? {
++function mE(e, t, n, r, i = n) {
++ let a = e ? wle[e] : void 0, o = a ? a[0] : e, s = o && Cle.includes(o) ? o : i;
++ return uE[s] ? {
sort: s,
-- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : dE(s, n, r)
++ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : pE(s, n, r)
} : {
sort: s,
dir: ""
@@@ -29366,15 -28986,15 +29366,15 @@@
}
//#endregion
//#region src/appearance/home-glow.ts
--var pE = [
++var hE = [
"spot1",
"spot2",
"spot3"
- ], Ole = [
-], hle = [
++], Ele = [
"光晕一",
"光晕二",
"光晕三"
- ], kle = "native", mE = [
-], gle = "native", mE = [
++], Dle = "native", gE = [
[
"ash",
"灰雾",
@@@ -29680,7 -29300,7 +29680,7 @@@
"rose"
],
[
- kle,
- gle,
++ Dle,
"玻璃原色",
{
spot1: {
@@@ -29698,7 -29318,7 +29698,7 @@@
},
"blue"
]
- ], hE = (e) => e === kle, gE = [...mE.map(([e, t]) => [e, t]), ["custom", "自定义"]], Ale = (e) => (gE.find(([t]) => t === e) || gE[0])[1], _E = (e) => structuredClone((mE.find(([t]) => t === e) || mE[0])[2]), jle = [
-], hE = (e) => e === gle, gE = [...mE.map(([e, t]) => [e, t]), ["custom", "自定义"]], _le = (e) => (gE.find(([t]) => t === e) || gE[0])[1], _E = (e) => structuredClone((mE.find(([t]) => t === e) || mE[0])[2]), vle = [
++], _E = (e) => e === Dle, vE = [...gE.map(([e, t]) => [e, t]), ["custom", "自定义"]], Ole = (e) => (vE.find(([t]) => t === e) || vE[0])[1], yE = (e) => structuredClone((gE.find(([t]) => t === e) || gE[0])[2]), kle = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@@ -29711,7 -29331,7 +29711,7 @@@
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
- ], vE = "blue", Mle = (e) => jle.some(([t]) => t === e) ? e : vE, Nle = (e) => (mE.find(([t]) => t === e) || [])[3] || "blue", Ple = [
-], vE = "blue", yle = (e) => vle.some(([t]) => t === e) ? e : vE, ble = (e) => (mE.find(([t]) => t === e) || [])[3] || "blue", xle = [
++], bE = "blue", Ale = (e) => kle.some(([t]) => t === e) ? e : bE, jle = (e) => (gE.find(([t]) => t === e) || [])[3] || "blue", Mle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@@ -29721,7 -29341,7 +29721,7 @@@
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
- ], Fle = [
-], Sle = [
++], Nle = [
[
"gray",
"云灰",
@@@ -30117,11 -29737,11 +30117,11 @@@
"霁蓝",
"#6686b8"
]
- ], Ile = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Lle = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Rle = (e, t) => `rgba(${[
-], Cle = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, wle = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Tle = (e, t) => `rgba(${[
++], Ple = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Fle = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Ile = (e, t) => `rgba(${[
1,
3,
5
- ].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, zle = {
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Ele = {
++].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Lle = {
strength: [
0,
100,
@@@ -30147,7 -29767,7 +30147,7 @@@
100,
50
]
- }, Ble = {
-}, Dle = {
++}, Rle = {
on: !0,
preset: "ash",
strength: 100,
@@@ -30155,57 -29775,57 +30155,57 @@@
speed: 100,
soften: 50,
size: 50,
-- ..._E("ash")
++ ...yE("ash")
};
- function Vle(e) {
-function Ole(e) {
-- let t = e && typeof e == "object" ? e : {}, n = gE.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = _E(r === "custom" ? "ash" : r), a = {
++function zle(e) {
++ let t = e && typeof e == "object" ? e : {}, n = vE.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = yE(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(zle)) a[e] = Ile(+t[e], n, r, i);
- for (let [e, [n, r, i]] of Object.entries(Ele)) a[e] = Cle(+t[e], n, r, i);
-- for (let e of pE) {
++ for (let [e, [n, r, i]] of Object.entries(Lle)) a[e] = Ple(+t[e], n, r, i);
++ for (let e of hE) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Lle(r.color, o.color),
- alpha: Ile(+r.alpha, 0, 100, o.alpha)
- color: wle(r.color, o.color),
- alpha: Cle(+r.alpha, 0, 100, o.alpha)
++ color: Fle(r.color, o.color),
++ alpha: Ple(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
- var Hle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Ule = /* @__PURE__ */ new WeakMap();
- function Wle(e, t) {
-var kle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Ale = /* @__PURE__ */ new WeakMap();
-function jle(e, t) {
++var Ble = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Vle = /* @__PURE__ */ new WeakMap();
++function Hle(e, t) {
if (!e) return;
- let n = Ule.get(e);
- n || (n = /* @__PURE__ */ new Map(), Ule.set(e, n));
- let n = Ale.get(e);
- n || (n = /* @__PURE__ */ new Map(), Ale.set(e, n));
-- let r = t.on && !hE(t.preset), i = (t, r) => {
++ let n = Vle.get(e);
++ n || (n = /* @__PURE__ */ new Map(), Vle.set(e, n));
++ let r = t.on && !_E(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"), pE.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"), hE.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Rle(r.color, r.alpha));
- i(`--glow-spot-${n + 1}-color`, Tle(r.color, r.alpha));
++ i(`--glow-spot-${n + 1}-color`, Ile(r.color, r.alpha));
});
}
- function Gle(e, t) {
-function Mle(e, t) {
++function Ule(e, t) {
if (!e) return;
-- let n = !t.on || hE(t.preset);
++ let n = !t.on || _E(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));
}
//#endregion
//#region src/appearance/settings.ts
- var Kle = "peach.settings.v1", qle = [
-var Nle = "peach.settings.v1", Ple = [
++var Wle = "peach.settings.v1", Gle = [
"system",
"light",
"dark"
- ], Jle = [
-], Fle = [
++], Kle = [
0,
7,
30,
90
- ], Yle = [
-], Ile = [
++], qle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
- ], Xle = {
-], Lle = {
++], Jle = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@@ -30225,54 -29845,54 +30225,54 @@@
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Mc],
- homeGlow: Ble,
- homeGlow: Dle,
-- accent: vE
--}, yE = (e, t, n) => t.includes(e) ? e : n;
- function Zle(e) {
-function Rle(e) {
++ homeGlow: Rle,
++ accent: bE
++}, xE = (e, t, n) => t.includes(e) ? e : n;
++function Yle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Xle,
- ...Lle,
++ ...Jle,
...t
};
- n.followInitialDays = Jle.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
- n.followInitialDays = Fle.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
++ n.followInitialDays = Kle.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 = Ele[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = oE(+n.batchSize, 1, 200, 60), n.defaultSort = yE(n.defaultSort, Tle, "seed"), n.hoverDelaySeconds = oE(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = oE(+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 = oE(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = oE(+n.relatedLimit, 0, 60, 20), Object.assign(n, ra(n)), n.theme = yE(n.theme, qle, "system"), n.homeGlow = Vle(n.homeGlow), n.accent = Mle(n.accent), n.sidebarOrder = Ic(n.sidebarOrder), {
- let a = ple[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = oE(+n.batchSize, 1, 200, 60), n.defaultSort = yE(n.defaultSort, fle, "seed"), n.hoverDelaySeconds = oE(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = oE(+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 = oE(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = oE(+n.relatedLimit, 0, 60, 20), Object.assign(n, ra(n)), n.theme = yE(n.theme, Ple, "system"), n.homeGlow = Ole(n.homeGlow), n.accent = yle(n.accent), n.sidebarOrder = Ic(n.sidebarOrder), {
++ let a = wle[n.defaultSort];
++ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = cE(+n.batchSize, 1, 200, 60), n.defaultSort = xE(n.defaultSort, Cle, "seed"), n.hoverDelaySeconds = cE(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = cE(+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 = cE(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = cE(+n.relatedLimit, 0, 60, 20), Object.assign(n, ra(n)), n.theme = xE(n.theme, Gle, "system"), n.homeGlow = zle(n.homeGlow), n.accent = Ale(n.accent), n.sidebarOrder = Ic(n.sidebarOrder), {
settings: n,
migrated: r
};
}
- function Qle(e) {
-function zle(e) {
++function Xle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Zle(t);
- return Rle(t);
++ return Yle(t);
}
--var bE = null;
--function xE() {
-- if (bE) return bE;
- let { settings: e, migrated: t } = Qle(localStorage);
- return bE = Cle(Kle, e), t && bE.save(), bE;
- let { settings: e, migrated: t } = zle(localStorage);
- return bE = ule(Nle, e), t && bE.save(), bE;
++var SE = null;
++function CE() {
++ if (SE) return SE;
++ let { settings: e, migrated: t } = Xle(localStorage);
++ return SE = xle(Wle, e), t && SE.save(), SE;
}
- function $le(e, t, n = xE()) {
-function Ble(e, t, n = xE()) {
++function Zle(e, t, n = CE()) {
let r = n.value, i = e && e.followInitialDays;
- Jle.includes(i) && (r.followInitialDays = i, n.save());
- for (let t of Yle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
- Fle.includes(i) && (r.followInitialDays = i, n.save());
- for (let t of Ile) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
++ Kle.includes(i) && (r.followInitialDays = i, n.save());
++ for (let t of qle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let a = e && e.searchHistoryLimit;
- Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = oE(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Xle.searchHistoryLimit && eue(n);
- Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = oE(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Lle.searchHistoryLimit && Vle(n);
++ Number.isInteger(a) && a >= 0 && a <= 50 ? a !== r.searchHistoryLimit && (r.searchHistoryLimit = cE(a, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Jle.searchHistoryLimit && Qle(n);
let o = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
o && o.length && o.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = o, n.save());
}
- function eue(e = xE()) {
-function Vle(e = xE()) {
- return It("/api/settings", {
++function Qle(e = CE()) {
+ return Ft("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
//#endregion
//#region src/appearance/theme.ts
- var tue = [
-var Hle = [
++var $le = [
[
"system",
"跟随系统",
@@@ -30288,32 -29908,32 +30288,32 @@@
"深色",
"moon"
]
- ], nue = null, rue = () => nue ??= matchMedia("(prefers-color-scheme: dark)"), SE = null;
- function iue() {
-], Ule = null, Wle = () => Ule ??= matchMedia("(prefers-color-scheme: dark)"), SE = null;
-function Gle() {
-- return SE || (SE = document.createElement("style"), SE.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), SE.isConnected || document.head.append(SE), () => {
++], eue = null, tue = () => eue ??= matchMedia("(prefers-color-scheme: dark)"), wE = null;
++function nue() {
++ return wE || (wE = document.createElement("style"), wE.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), wE.isConnected || document.head.append(wE), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
-- cancelAnimationFrame(t), clearTimeout(n), SE?.remove();
++ cancelAnimationFrame(t), clearTimeout(n), wE?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
--function CE(e = xE().value.theme) {
- let t = iue(), n = document.documentElement;
- let t = Gle(), n = document.documentElement;
++function TE(e = CE().value.theme) {
++ let t = nue(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && rue().matches;
- let r = e === "dark" || e === "system" && Wle().matches;
++ let r = e === "dark" || e === "system" && tue().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 aue = !1;
- function oue() {
- aue || (aue = !0, rue().addEventListener("change", () => {
-var Kle = !1;
-function qle() {
- Kle || (Kle = !0, Wle().addEventListener("change", () => {
-- xE().value.theme === "system" && CE();
++var rue = !1;
++function iue() {
++ rue || (rue = !0, tue().addEventListener("change", () => {
++ CE().value.theme === "system" && TE();
}));
}
//#endregion
//#region src/appearance/layout.ts
--var wE = [[
++var EE = [[
"big",
"大图",
"maximize"
@@@ -30321,7 -29941,7 +30321,7 @@@
"small",
"小图",
"layout-grid"
- ]], sue = [[
-]], Jle = [[
++]], aue = [[
"big",
"大图",
"maximize"
@@@ -30329,7 -29949,7 +30329,7 @@@
"small",
"小图",
"layout-grid"
- ]], cue = [[
-]], Yle = [[
++]], oue = [[
"fixed",
"固定比例",
"layout-grid"
@@@ -30337,121 -29957,121 +30337,121 @@@
"masonry",
"瀑布流",
"columns-2"
- ]], TE = .75, EE = () => xE().value, DE = (e = EE()) => na(e.javLayout), lue = (e = EE()) => na(e.homeLayout), uue = (e, t = EE()) => e ? lue(t) : DE(t), due = sue.map(([e]) => e), fue = cue.map(([e]) => e), OE = (e = EE()) => yE(e.photoSize, due, "small"), kE = (e = EE()) => yE(e.photoLayout, fue, "masonry"), AE = null;
-]], TE = .75, EE = () => xE().value, DE = (e = EE()) => na(e.javLayout), Xle = (e = EE()) => na(e.homeLayout), Zle = (e, t = EE()) => e ? Xle(t) : DE(t), Qle = Jle.map(([e]) => e), $le = Yle.map(([e]) => e), OE = (e = EE()) => yE(e.photoSize, Qle, "small"), kE = (e = EE()) => yE(e.photoLayout, $le, "masonry"), AE = null;
--function jE(e, t = EE()) {
++]], DE = .75, OE = () => CE().value, kE = (e = OE()) => na(e.javLayout), sue = (e = OE()) => na(e.homeLayout), cue = (e, t = OE()) => e ? sue(t) : kE(t), lue = aue.map(([e]) => e), uue = oue.map(([e]) => e), AE = (e = OE()) => xE(e.photoSize, lue, "small"), jE = (e = OE()) => xE(e.photoLayout, uue, "masonry"), ME = null;
++function NE(e, t = OE()) {
let n = {
active: e.active,
- size: uue(e.home, t),
- size: Zle(e.home, t),
++ size: cue(e.home, t),
portrait: e.portrait,
javImage: t.javImage
-- }, r = AE;
-- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (AE = n), AE;
++ }, r = ME;
++ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (ME = n), ME;
}
--function ME(e) {
-- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? TE : 16 / 9;
++function PE(e) {
++ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? DE : 16 / 9;
}
- function pue(e, t = xE()) {
-function eue(e, t = xE()) {
++function due(e, t = CE()) {
t.value.homeLayout = na(e), t.save();
}
- function mue(e, t = xE()) {
-function tue(e, t = xE()) {
++function fue(e, t = CE()) {
t.value.javLayout = na(e), t.save();
}
- function hue(e, t = xE()) {
-function nue(e, t = xE()) {
++function pue(e, t = CE()) {
t.value.homeLayout = t.value.javLayout = na(e), t.save();
}
- function gue(e, t = xE()) {
- t.value.photoSize = yE(e, due, "small"), t.save();
-function rue(e, t = xE()) {
- t.value.photoSize = yE(e, Qle, "small"), t.save();
++function mue(e, t = CE()) {
++ t.value.photoSize = xE(e, lue, "small"), t.save();
}
- function _ue(e, t = xE()) {
- t.value.photoLayout = yE(e, fue, "masonry"), t.save();
-function iue(e, t = xE()) {
- t.value.photoLayout = yE(e, $le, "masonry"), t.save();
++function hue(e, t = CE()) {
++ t.value.photoLayout = xE(e, uue, "masonry"), t.save();
}
//#endregion
//#region src/appearance/density.ts
- var vue = "density", yue = {
-var aue = "density", oue = {
++var gue = "density", _ue = {
big: "336px",
dense: "168px"
- }, bue = () => localStorage.getItem(vue) === "dense" ? "dense" : "big";
- function xue(e, t) {
- let [n, r] = sue;
-}, sue = () => localStorage.getItem(aue) === "dense" ? "dense" : "big";
-function cue(e, t) {
- let [n, r] = Jle;
++}, vue = () => localStorage.getItem(gue) === "dense" ? "dense" : "big";
++function yue(e, t) {
++ let [n, r] = aue;
e.querySelector("[data-icon-swap]") ? zo(e, t === r[0] ? "b" : "a") : e.innerHTML = Ro(n[2], r[2], t === r[0] ? "b" : "a"), e.setAttribute("aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
- var Sue = () => document.querySelector("#density");
- function NE(e = bue()) {
- document.documentElement.style.setProperty("--tile", yue[e]), document.body.dataset.density = e;
- let t = Sue();
- t && (t.setAttribute("aria-pressed", String(e === "dense")), t.title = "当前:" + (e === "big" ? "大图" : "密集"), xue(t, e === "big" ? "big" : "small"));
-var lue = () => document.querySelector("#density");
-function NE(e = sue()) {
- document.documentElement.style.setProperty("--tile", oue[e]), document.body.dataset.density = e;
- let t = lue();
- t && (t.setAttribute("aria-pressed", String(e === "dense")), t.title = "当前:" + (e === "big" ? "大图" : "密集"), cue(t, e === "big" ? "big" : "small"));
++var bue = () => document.querySelector("#density");
++function FE(e = vue()) {
++ document.documentElement.style.setProperty("--tile", _ue[e]), document.body.dataset.density = e;
++ let t = bue();
++ t && (t.setAttribute("aria-pressed", String(e === "dense")), t.title = "当前:" + (e === "big" ? "大图" : "密集"), yue(t, e === "big" ? "big" : "small"));
}
- function Cue() {
- let e = bue() === "big" ? "dense" : "big";
- localStorage.setItem(vue, e), NE(e);
-function uue() {
- let e = sue() === "big" ? "dense" : "big";
- localStorage.setItem(aue, e), NE(e);
++function xue() {
++ let e = vue() === "big" ? "dense" : "big";
++ localStorage.setItem(gue, e), FE(e);
}
- function wue(e) {
- let t = Sue();
- t && (t.setAttribute("aria-pressed", String(e === "small")), t.title = "当前:" + (e === "big" ? "大图" : "小图"), xue(t, e));
-function due(e) {
- let t = lue();
- t && (t.setAttribute("aria-pressed", String(e === "small")), t.title = "当前:" + (e === "big" ? "大图" : "小图"), cue(t, e));
++function Sue(e) {
++ let t = bue();
++ t && (t.setAttribute("aria-pressed", String(e === "small")), t.title = "当前:" + (e === "big" ? "大图" : "小图"), yue(t, e));
}
//#endregion
//#region src/appearance/glow.ts
- function Tue(e = xE()) {
- Wle(document.querySelector(".glowlayer"), e.value.homeGlow);
-function fue(e = xE()) {
- jle(document.querySelector(".glowlayer"), e.value.homeGlow);
++function Cue(e = CE()) {
++ Hle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
- var Eue = 0;
-var pue = 0;
--function PE(e = xE()) {
- Eue ||= requestAnimationFrame(() => {
- Eue = 0, Tue(e);
- pue ||= requestAnimationFrame(() => {
- pue = 0, fue(e);
++var wue = 0;
++function IE(e = CE()) {
++ wue ||= requestAnimationFrame(() => {
++ wue = 0, Cue(e);
});
}
--function FE(e = xE()) {
- Gle(document.documentElement, e.value.homeGlow);
- Mle(document.documentElement, e.value.homeGlow);
++function LE(e = CE()) {
++ Ule(document.documentElement, e.value.homeGlow);
}
--function IE(e = xE()) {
++function RE(e = CE()) {
document.documentElement.dataset.accent = e.value.accent;
}
- var Due = (e, t, n) => ({
-var mue = (e, t, n) => ({
++var Tue = (e, t, n) => ({
key: e,
label: t,
-- native: hE(e),
- fill: hE(e) ? "" : Hle(n)
- fill: hE(e) ? "" : kle(n)
++ native: _E(e),
++ fill: _E(e) ? "" : Ble(n)
});
- function Oue(e) {
- let t = mE.map(([e, t, n]) => Due(e, t, pE.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(Due("custom", "自定义", pE.map((t) => e[t].color))), t;
-function hue(e) {
- let t = mE.map(([e, t, n]) => mue(e, t, pE.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(mue("custom", "自定义", pE.map((t) => e[t].color))), t;
++function Eue(e) {
++ let t = gE.map(([e, t, n]) => Tue(e, t, hE.map((e) => n[e].color)));
++ return e.preset === "custom" && t.push(Tue("custom", "自定义", hE.map((t) => e[t].color))), t;
}
- var kue = jle;
- function Aue(e, t = xE()) {
-var gue = vle;
-function _ue(e, t = xE()) {
++var Due = kle;
++function Oue(e, t = CE()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, _E(e)), t.value.accent = Nle(e), t.save(), PE(t), FE(t), IE(t);
- n.preset = e, Object.assign(n, _E(e)), t.value.accent = ble(e), t.save(), PE(t), FE(t), IE(t);
++ n.preset = e, Object.assign(n, yE(e)), t.value.accent = jle(e), t.save(), IE(t), LE(t), RE(t);
}
- function jue(e, t = xE()) {
- t.value.accent = Mle(e), t.save(), IE(t);
-function vue(e, t = xE()) {
- t.value.accent = yle(e), t.save(), IE(t);
++function kue(e, t = CE()) {
++ t.value.accent = Ale(e), t.save(), RE(t);
}
- function Mue(e = xE()) {
-function yue(e = xE()) {
++function Aue(e = CE()) {
let t = e.value.homeGlow;
- t.preset = Ble.preset, Object.assign(t, _E(t.preset)), e.value.accent = vE, e.save(), PE(e), FE(e), IE(e);
- t.preset = Dle.preset, Object.assign(t, _E(t.preset)), e.value.accent = vE, e.save(), PE(e), FE(e), IE(e);
++ t.preset = Rle.preset, Object.assign(t, yE(t.preset)), e.value.accent = bE, e.save(), IE(e), LE(e), RE(e);
}
- function Nue(e, t) {
-function bue(e, t) {
-- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && hE(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
++function jue(e, t) {
++ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && _E(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
- function Pue(e, t = xE()) {
- return Nue(e, t.value.homeGlow), t.subscribe(() => Nue(e, t.value.homeGlow));
-function xue(e, t = xE()) {
- return bue(e, t.value.homeGlow), t.subscribe(() => bue(e, t.value.homeGlow));
++function Mue(e, t = CE()) {
++ return jue(e, t.value.homeGlow), t.subscribe(() => jue(e, t.value.homeGlow));
}
//#endregion
//#region src/react/components/glow-preset-grid.tsx
- function Fue({ store: e, label: t, hidden: n }) {
-function Sue({ store: e, label: t, hidden: n }) {
++function Nue({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Oue(r).map((t) => /* @__PURE__ */ (0, C.jsx)("button", {
- children: hue(r).map((t) => /* @__PURE__ */ (0, C.jsx)("button", {
++ children: Eue(r).map((t) => /* @__PURE__ */ (0, C.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: () => Aue(t.key, e),
- onClick: () => _ue(t.key, e),
++ onClick: () => Oue(t.key, e),
children: /* @__PURE__ */ (0, C.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@@ -30463,14 -30083,14 +30463,14 @@@
}
//#endregion
//#region src/react/glow-picker/glow-picker-island.tsx
--var LE = null;
- function Iue(e) {
-function Cue(e) {
-- LE = e;
++var zE = null;
++function Pue(e) {
++ zE = e;
}
- function Lue() {
- return LE ? /* @__PURE__ */ (0, C.jsx)(Rue, { host: LE }) : null;
-function wue() {
- return LE ? /* @__PURE__ */ (0, C.jsx)(Tue, { host: LE }) : null;
++function Fue() {
++ return zE ? /* @__PURE__ */ (0, C.jsx)(Iue, { host: zE }) : null;
}
- function Rue({ host: e }) {
-function Tue({ host: e }) {
++function Iue({ host: e }) {
let { store: t } = e;
(0, S.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@@ -30482,11 -30102,11 +30482,11 @@@
children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Mue(t),
- onClick: () => yue(t),
++ onClick: () => Aue(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Fue, {
- /* @__PURE__ */ (0, C.jsx)(Sue, {
++ /* @__PURE__ */ (0, C.jsx)(Nue, {
store: t,
label: "光晕",
hidden: !n.on
@@@ -30500,14 -30120,14 +30500,14 @@@
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: kue.map(([e, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
- children: gue.map(([e, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
++ children: Due.map(([e, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => jue(e, t),
- onClick: () => vue(e, t),
++ onClick: () => kue(e, t),
children: /* @__PURE__ */ (0, C.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@@ -30526,32 -30146,32 +30526,32 @@@
}
//#endregion
//#region src/player/host.ts
--var RE = null;
- function zue(e) {
-function Eue(e) {
-- RE = e;
++var BE = null;
++function Lue(e) {
++ BE = e;
}
--function zE() {
-- if (!RE) throw Error("播放器还没有接上宿主(configurePlayer)");
-- return RE;
++function VE() {
++ if (!BE) throw Error("播放器还没有接上宿主(configurePlayer)");
++ return BE;
}
//#endregion
//#region src/player/menu.ts
--var BE = null;
- function Bue(e) {
-function Due(e) {
-- BE = e;
++var HE = null;
++function Rue(e) {
++ HE = e;
}
- function Vue() {
-function Oue() {
++function zue() {
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 VE = null, Hue = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-var VE = null, kue = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
--function HE() {
++var UE = null, Bue = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
++function WE() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && no(e, () => {
e.innerHTML = "";
-- }), VE &&= (VE(), null);
++ }), UE &&= (UE(), null);
}
- async function Uue(e) {
-async function Aue(e) {
++async function Vue(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@@ -30564,8 -30184,8 +30564,8 @@@
return t.remove(), n;
}
}
- function Wue(e) {
-function jue(e) {
-- let t = !!BE?.inMiniplayer(e), n = e.peachItem, r = BE?.kind(e) ?? "item", i = (t) => {
++function Hue(e) {
++ let t = !!HE?.inMiniplayer(e), n = e.peachItem, r = HE?.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);
@@@ -30581,7 -30201,7 +30581,7 @@@
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Uue(i(e)).then((e) => zE().toast(e ? t : "复制失败,请手动复制地址栏", {
- Aue(i(e)).then((e) => zE().toast(e ? t : "复制失败,请手动复制地址栏", {
++ Vue(i(e)).then((e) => VE().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@@ -30593,11 -30213,11 +30593,11 @@@
}, t ? {
icon: "maximize-2",
label: "展开",
-- run: () => BE?.expand()
++ run: () => HE?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
-- run: () => BE?.toMiniplayer()
++ run: () => HE?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@@ -30620,29 -30240,29 +30620,29 @@@
run: () => s.click()
}), o;
}
- function Gue(e, t, n) {
- let r = Vue();
-function Mue(e, t, n) {
- let r = Oue();
-- HE();
-- let i = zE().stage();
++function Uue(e, t, n) {
++ let r = zue();
++ WE();
++ let i = VE().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Wue(e);
- let a = jue(e);
++ let a = Hue(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}">${Hue(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? Hue(z("check"), "data-player-menu-check") : ""}</button>`;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${kue(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? kue(z("check"), "data-player-menu-check") : ""}</button>`;
++ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${Bue(z(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${B(e.label)}</span>${n ? Bue(z("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), to(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)];
-- HE(), n?.run();
++ WE(), n?.run();
};
});
let s = (e) => {
-- r.contains(e.target) || HE();
++ r.contains(e.target) || WE();
}, c = (e) => {
if (e.key === "Escape") {
-- e.preventDefault(), e.stopPropagation(), HE();
++ e.preventDefault(), e.stopPropagation(), WE();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@@ -30650,51 -30270,51 +30650,51 @@@
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
-- io(t, e.el()) && HE();
++ io(t, e.el()) && WE();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
-- }, 0), VE = () => {
++ }, 0), UE = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
- function Kue(e) {
-function Nue(e) {
++function Wue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Gue(e, t.clientX, t.clientY));
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Mue(e, t.clientX, t.clientY));
-- }), e.on("dispose", HE);
++ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Uue(e, t.clientX, t.clientY));
++ }), e.on("dispose", WE);
}
//#endregion
//#region src/player/registry.ts
- var que = null, UE = () => que;
-var Pue = null, UE = () => Pue;
--function WE(e) {
- que = e;
- Pue = e;
++var Gue = null, GE = () => Gue;
++function KE(e) {
++ Gue = e;
}
--function GE(e) {
++function qE(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
//#endregion
//#region src/player/stats.ts
- function Jue(e) {
-function Fue(e) {
++function Kue(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 Yue(e) {
-function Iue(e) {
++function que(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 Xue = 3e3;
- function Zue(e, t) {
-var Lue = 3e3;
-function Rue(e, t) {
- let n = Number(e) || 0, r = rn(t) || 0;
++var Jue = 3e3;
++function Yue(e, t) {
+ let n = Number(e) || 0, r = nn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
- function Que(e) {
-function zue(e) {
++function Xue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@@ -30709,10 -30329,10 +30709,10 @@@
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Yue(e), s = e.currentTime || 0;
- let a = performance.now(), o = Iue(e), s = e.currentTime || 0;
++ let a = performance.now(), o = que(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 > Xue * 2 && (t.length = 0);
- !i && c > 0 && (r += c), e * 1e3 > Lue * 2 && (t.length = 0);
++ !i && c > 0 && (r += c), e * 1e3 > Jue * 2 && (t.length = 0);
}
for (n = {
at: a,
@@@ -30721,56 -30341,56 +30721,56 @@@
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > Xue;) t.shift();
- }); t.length > 2 && a - t[0].at > Lue;) t.shift();
++ }); t.length > 2 && a - t[0].at > Jue;) 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 KE = 24;
--function qE(e, t) {
-- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > KE && e.splice(0, e.length - KE);
++var JE = 24;
++function YE(e, t) {
++ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > JE && e.splice(0, e.length - JE);
}
--var JE = "peach-player-panel";
--function YE(e, t, n, r) {
-- let i = [...Array(Math.max(0, KE - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
++var XE = "peach-player-panel";
++function ZE(e, t, n, r) {
++ let i = [...Array(Math.max(0, JE - 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="${B(r)}">${o}</span>`;
}
- function $ue() {
-function Bue() {
++function Zue() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${z("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 ede(e, t = "") {
-function Vue(e, t = "") {
++function Que(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 tde(e, t = "") {
- let n = ede(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 Hue(e, t = "") {
- let n = Vue(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 $ue(e, t = "") {
++ let n = Que(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 nde(e, t, n = "", r = null) {
-function Uue(e, t, n = "", r = null) {
++function ede(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : tde(t, n);
- return i > 0 ? i : r ? Number(r.bits) || 0 : Hue(t, n);
++ return i > 0 ? i : r ? Number(r.bits) || 0 : $ue(t, n);
}
--function XE(e) {
++function QE(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 rde(e, t) {
-function Wue(e, t) {
-- return e > 0 ? XE(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : XE(0);
++function tde(e, t) {
++ return e > 0 ? QE(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : QE(0);
}
//#endregion
//#region src/player/controls.ts
--function ZE(e, t, n = "") {
++function $E(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));
@@@ -30781,27 -30401,27 +30781,27 @@@
};
return o(), o;
}
- function ide(e, t) {
-function Gue(e, t) {
++function nde(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
- function ade(e, t = !0) {
-function Kue(e, t = !0) {
-- let n = zE(), r = n.settings();
++function rde(e, t = !0) {
++ let n = VE(), 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 ode = /* @__PURE__ */ new WeakMap();
- function sde(e) {
-var que = /* @__PURE__ */ new WeakMap();
-function Jue(e) {
++var ide = /* @__PURE__ */ new WeakMap();
++function ade(e) {
if (!e) return;
-- let t = zE().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), ode.get(e)?.(t ? "默认视图" : "影院模式");
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), que.get(e)?.(t ? "默认视图" : "影院模式");
++ let t = VE().settings().theaterMode;
++ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), ide.get(e)?.(t ? "默认视图" : "影院模式");
}
- function cde(e, t = !0) {
-function Yue(e, t = !0) {
-- let n = zE(), r = n.settings();
++function ode(e, t = !0) {
++ let n = VE(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), sde(i?.querySelector("[data-player-theater]")), GE(UE());
- i?.toggleAttribute("data-theater", r.theaterMode), Jue(i?.querySelector("[data-player-theater]")), GE(UE());
++ i?.toggleAttribute("data-theater", r.theaterMode), ade(i?.querySelector("[data-player-theater]")), qE(GE());
}
- function lde(e) {
-function Xue(e) {
-- let t = zE().stage(), n = t?.querySelector("[data-ambient-canvas]");
++function sde(e) {
++ let t = VE().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@@ -30824,9 -30444,9 +30824,9 @@@
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
-- i || t !== o || (zE().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
++ i || t !== o || (VE().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
-- !i && zE().settings().ambientMode && (l(), e.paused || u(++o));
++ !i && VE().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@@ -30835,7 -30455,7 +30835,7 @@@
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
- function ude(e, t, n = 0, r = null) {
-function Zue(e, t, n = 0, r = null) {
++function cde(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");
@@@ -30845,7 -30465,7 +30845,7 @@@
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
-- ZE(s, "设置");
++ $E(s, "设置");
let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
@@@ -30885,11 -30505,11 +30885,11 @@@
active: n
};
}, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {
-- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(JE, { detail: "settings" }));
++ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(XE, { detail: "settings" }));
}, v = () => _(!1), y = (e) => {
e.detail !== "settings" && v();
};
-- document.addEventListener(JE, y);
++ document.addEventListener(XE, y);
let b = null, x = (e, t) => {
let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");
if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;
@@@ -30904,12 -30524,12 +30904,12 @@@
}), r;
}, S = (e, t) => e.querySelector(t), C = "main", w = (t = 0) => {
C = "main";
-- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${zE().settings().ambientMode}">
++ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${VE().settings().ambientMode}">
${z("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>${z("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${z("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${z("player-quality")}<span>清晰度</span><b>${B(n.label)}</b>${z("player-menu-next")}</button></div>`, t);
S(i, "[data-player-ambient]").onclick = () => {
- ade(!zE().settings().ambientMode), w();
- Kue(!zE().settings().ambientMode), w();
++ rde(!VE().settings().ambientMode), w();
}, S(i, "[data-player-speed]").onclick = () => O(), S(i, "[data-player-quality-view]").onclick = () => A();
}, T = .05, E = [
1,
@@@ -30985,22 -30605,22 +30985,22 @@@
"removequalitylevel",
"change"
], j), e.on("dispose", () => {
-- document.removeEventListener("pointerdown", M), document.removeEventListener(JE, y), b && clearTimeout(b);
- }), h(), dde(e, a), fde(e), (e) => {
- }), h(), Que(e, a), $ue(e), (e) => {
++ document.removeEventListener("pointerdown", M), document.removeEventListener(XE, y), b && clearTimeout(b);
++ }), h(), lde(e, a), ude(e), (e) => {
d = e?.length ? e : null, j();
};
}
- function dde(e, t) {
-function Que(e, t) {
++function lde(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
-- let r = zE().settings().theaterMode, i = document.createElement("div");
++ let r = VE().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${z(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- ode.set(a, ZE(a, "影院模式", "T")), sde(a), a.onclick = (e) => {
- e.stopPropagation(), cde(!zE().settings().theaterMode);
- que.set(a, ZE(a, "影院模式", "T")), Jue(a), a.onclick = (e) => {
- e.stopPropagation(), Yue(!zE().settings().theaterMode);
++ ide.set(a, $E(a, "影院模式", "T")), ade(a), a.onclick = (e) => {
++ e.stopPropagation(), ode(!VE().settings().theaterMode);
};
}
- function fde(e) {
-function $ue(e) {
++function ude(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");
@@@ -31012,7 -30632,7 +31012,7 @@@
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 = ZE(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 = $E(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 ? "播放" : "暂停");
};
@@@ -31023,7 -30643,7 +31023,7 @@@
], 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 = ZE(p, "静音", "M"), g = () => {
++ let h = $E(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 ? "取消静音" : "静音");
};
@@@ -31049,9 -30669,9 +31049,9 @@@
});
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 = ZE(x, "显示剩余时间"), T = () => {
- let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = on(Math.max(0, n - t));
- C.textContent = `${S ? `-${r}` : on(t)} / ${on(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${on(n)};点击显示已播放时间` : `已播放 ${on(t)},总时长 ${on(n)};点击显示剩余时间`);
++ let C = x.querySelector(".vjs-peach-time-text"), w = $E(x, "显示剩余时间"), T = () => {
+ let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = an(Math.max(0, n - t));
+ C.textContent = `${S ? `-${r}` : an(t)} / ${an(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${an(n)};点击显示已播放时间` : `已播放 ${an(t)},总时长 ${an(n)};点击显示剩余时间`);
};
x.onclick = (e) => {
e.stopPropagation(), S = !S, T();
@@@ -31062,11 -30682,11 +31062,11 @@@
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
r(E, "player-pip");
-- let D = ZE(E, "画中画");
++ let D = $E(E, "画中画");
e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));
-- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = ZE(O, "全屏", "F"), j = () => {
++ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = $E(O, "全屏", "F"), j = () => {
let t = !!e.isFullscreen();
-- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), GE(e);
++ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), qE(e);
};
e.on([
"fullscreenchange",
@@@ -31086,7 -30706,7 +31086,7 @@@
});
let P = document.createElement("div");
P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${z("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);
-- let F = P.querySelector("button"), I = ZE(F, "展开控件"), ee = (t) => {
++ let F = P.querySelector("button"), I = $E(F, "展开控件"), ee = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), F.setAttribute("aria-expanded", String(t)), I(t ? "收起控件" : "展开控件");
};
F.onclick = (t) => {
@@@ -31098,7 -30718,7 +31098,7 @@@
}, te = new ResizeObserver(L);
te.observe(e.el()), e.on("dispose", () => te.disconnect()), ee(!1), L();
}
- function pde(e, t, n = {}) {
-function ede(e, t, n = {}) {
++function dde(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 = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@@ -31132,13 -30752,13 +31132,13 @@@
r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);
});
}
- function mde(e, t) {
-function tde(e, t) {
++function fde(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
- let r = () => rn(e.duration()) || rn(t.duration) || 0, i = (t) => {
+ let r = () => nn(e.duration()) || nn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
-- }, a = () => Math.max(1, Number(zE().settings().seekSeconds) || 10), o = [
++ }, a = () => Math.max(1, Number(VE().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@@ -31179,12 -30799,12 +31179,12 @@@
} catch {}
});
}
- function hde(e) {
-function nde(e) {
++function pde(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 gde(e, t) {
-function rde(e, t) {
- It(`/api/assets/${t}/subtitles`).then((t) => {
++function mde(e, t) {
+ Ft(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
kind: "subtitles",
@@@ -31198,35 -30818,35 +31198,35 @@@
}
//#endregion
//#region src/player/progress.ts
- var _de = "peach.playback-position.v1", QE = /* @__PURE__ */ new WeakMap();
-var ide = "peach.playback-position.v1", QE = /* @__PURE__ */ new WeakMap();
--function $E(e) {
-- QE.get(e)?.(), QE.delete(e);
++var hde = "peach.playback-position.v1", eD = /* @__PURE__ */ new WeakMap();
++function tD(e) {
++ eD.get(e)?.(), eD.delete(e);
}
- function vde(e, t, n = null) {
-function ade(e, t, n = null) {
++function gde(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 yde(e) {
-function ode(e) {
++function _de(e) {
try {
- let t = localStorage.getItem(`${_de}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
- let t = localStorage.getItem(`${ide}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
++ let t = localStorage.getItem(`${hde}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
- function bde(e, t) {
- let n = yde(e);
-function sde(e, t) {
- let n = ode(e);
++function vde(e, t) {
++ let n = _de(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
- return r > 0 && r < 1 ? r * rn(t.duration) : 0;
+ return r > 0 && r < 1 ? r * nn(t.duration) : 0;
}
- function xde(e, t) {
-function cde(e, t) {
-- $E(t);
++function yde(e, t) {
++ tD(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(`${_de}:${e}`, String(r));
- localStorage.setItem(`${ide}:${e}`, String(r));
++ localStorage.setItem(`${hde}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@@ -31240,7 -30860,7 +31240,7 @@@
"pause",
"ended"
]) t.addEventListener(e, r);
-- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), QE.set(t, () => {
++ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), eD.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@@ -31253,22 -30873,22 +31253,22 @@@
}
//#endregion
//#region src/player/telemetry.ts
--var eD = /* @__PURE__ */ new WeakMap();
--function tD(e) {
-- eD.get(e)?.(), eD.delete(e);
++var nD = /* @__PURE__ */ new WeakMap();
++function rD(e) {
++ nD.get(e)?.(), nD.delete(e);
}
- function Sde(e, t, n, r) {
-function lde(e, t, n, r) {
++function bde(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
-- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), eD.set(e, () => {
++ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), nD.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 Cde(e, t, n = {}) {
-function ude(e, t, n = {}) {
++function xde(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 = rn(e.duration) || rn(t.duration);
+ let r = nn(e.duration) || nn(t.duration);
if (!r) return;
let i = Math.min(t.currentTime / r, 1), a = s(n.watched), o = s(n.mark), c = s(n.ratio);
a && (a.style.width = `${(i * 100).toFixed(1)}%`), o && (o.style.left = `${(i * 100).toFixed(1)}%`), c && (c.textContent = `${(i * 100).toFixed(0)}%`);
@@@ -31306,14 -30926,14 +31306,14 @@@
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, Sde(t, l, u, () => {
- }, lde(t, l, u, () => {
++ }, bde(t, l, u, () => {
a++;
}), c();
}
- function wde(e, t) {
-function dde(e, t) {
++function Sde(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
- let i = rn(e.duration) || rn(t.duration);
- (r || n) && (It("/api/follow/activity", {
+ let i = nn(e.duration) || nn(t.duration);
+ (r || n) && (Ft("/api/follow/activity", {
method: "POST",
keepalive: !0,
body: JSON.stringify({
@@@ -31341,51 -30961,51 +31341,51 @@@
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, Sde(t, o, s, () => {});
- }, lde(t, o, s, () => {});
++ }, bde(t, o, s, () => {});
}
//#endregion
//#region src/player/dispose.ts
--function nD(e) {
++function iD(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
-- t && ($E(t), tD(t));
++ t && (tD(t), rD(t));
try {
e.dispose();
} catch {}
}
//#endregion
//#region src/player/stream.ts
- function Tde() {
-function fde() {
++function Cde() {
return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
}
--function rD(e, t) {
++function aD(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
- function Ede(e) {
-function pde(e) {
++function wde(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
- async function Dde(e, t) {
- let n = Ede(e);
-async function mde(e, t) {
- let n = pde(e);
++async function Tde(e, t) {
++ let n = wde(e);
if (n) return n;
try {
- let n = await It(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
+ let n = await Ft(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
if (n?.src) return {
src: n.src,
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
-- return rD(e, t);
++ return aD(e, t);
}
--function iD(e) {
++function oD(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@@ -31394,21 -31014,21 +31394,21 @@@
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
--var aD = "";
- function Ode() {
-function hde() {
-- return aD;
++var sD = "";
++function Ede() {
++ return sD;
}
- function kde() {
- return aD ||= Tde(), aD;
-function gde() {
- return aD ||= fde(), aD;
++function Dde() {
++ return sD ||= Cde(), sD;
}
- var Ade = (e) => rD(e, kde()), jde = (e) => Dde(e, kde());
-var _de = (e) => rD(e, gde()), vde = (e) => mde(e, gde());
--function oD() {
-- let e = aD;
-- e && (aD = "", iD(e));
++var Ode = (e) => aD(e, Dde()), kde = (e) => Tde(e, Dde());
++function cD() {
++ let e = sD;
++ e && (sD = "", oD(e));
}
//#endregion
//#region src/player/v10-player.ts
- var sD = (e) => typeof e == "string" ? [e] : e, Mde = (e, t) => {
-var sD = (e) => typeof e == "string" ? [e] : e, yde = (e, t) => {
++var lD = (e) => typeof e == "string" ? [e] : e, Ade = (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-${crypto.randomUUID()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
@@@ -31536,9 -31156,9 +31536,9 @@@
e && Array.isArray(e.levels) && !E.has(e) && (E.add(e), e.on("hlsManifestParsed", k), e.on("hlsLevelSwitched", k)), k();
};
return e.addEventListener("loadedmetadata", A, { signal: c }), {
-- on: (e, t) => sD(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
-- off: (e, t) => sD(e).forEach((e) => o.removeEventListener(e, t)),
-- one: (e, t) => sD(e).forEach((e) => o.addEventListener(e, t, {
++ on: (e, t) => lD(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
++ off: (e, t) => lD(e).forEach((e) => o.removeEventListener(e, t)),
++ one: (e, t) => lD(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@@ -31593,7 -31213,7 +31593,7 @@@
n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
- }, Nde = "/vendor/videojs/10.1.0/", Pde = [
-}, bde = "/vendor/videojs/10.1.0/", xde = [
++}, jde = "/vendor/videojs/10.1.0/", Mde = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@@ -31611,18 -31231,18 +31611,18 @@@
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
--], cD = null;
--function lD() {
- return cD ??= Promise.all(Pde.map((e) => import(
- return cD ??= Promise.all(xde.map((e) => import(
++], uD = null;
++function dD() {
++ return uD ??= Promise.all(Mde.map((e) => import(
/* @vite-ignore */
- `${Nde}${e}`
- ))).then(() => Mde).catch((e) => {
- `${bde}${e}`
-))).then(() => yde).catch((e) => {
-- throw cD = null, e;
-- }), cD;
++ `${jde}${e}`
++))).then(() => Ade).catch((e) => {
++ throw uD = null, e;
++ }), uD;
}
//#endregion
//#region src/player/immerse-player.ts
- var Fde = {
-var Sde = {
++var Nde = {
controls: !1,
preload: "auto",
posterImage: !1,
@@@ -31634,37 -31254,37 +31634,37 @@@
errorDisplay: !1,
textTrackSettings: !1
};
- function Ide(e, t) {
-function Cde(e, t) {
++function Pde(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([Dde(n, r), lD().catch(() => null)]).then(([o, s]) => {
- return Promise.all([mde(n, r), lD().catch(() => null)]).then(([o, s]) => {
++ return Promise.all([Tde(n, r), dD().catch(() => null)]).then(([o, s]) => {
if (a) return;
-- let c = rD(n, r), l = String(o.type || "").includes("mpegurl");
++ let c = aD(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Fde);
- let t = s(e, Sde);
++ let t = s(e, Nde);
i = t, l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- Cde(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
- ude(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
++ xde(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
-- a || (a = !0, iD(r), i ? nD(i) : (e.pause(), tD(e), e.removeAttribute("src"), e.load()));
++ a || (a = !0, oD(r), i ? iD(i) : (e.pause(), rD(e), e.removeAttribute("src"), e.load()));
};
}
//#endregion
//#region src/player/detail-player.ts
- var Lde = /* @__PURE__ */ new WeakMap(), uD = null, dD = null, fD = null;
- function Rde() {
-var wde = /* @__PURE__ */ new WeakMap(), uD = null, dD = null, fD = null;
-function Tde() {
-- uD &&= (clearInterval(uD), null), dD &&= (clearInterval(dD), null), fD &&= (clearTimeout(fD), null);
++var Fde = /* @__PURE__ */ new WeakMap(), fD = null, pD = null, mD = null;
++function Ide() {
++ fD &&= (clearInterval(fD), null), pD &&= (clearInterval(pD), null), mD &&= (clearTimeout(mD), null);
}
- async function zde(e, t, n, r = {}) {
-async function Ede(e, t, n, r = {}) {
-- let i = UE();
++async function Lde(e, t, n, r = {}) {
++ let i = GE();
if (i && !i.isDisposed()) return i;
-- let a = zE(), o = r.resume ?? null;
++ let a = VE(), o = r.resume ?? null;
o?.autoplay && (n = !0);
- let s = () => r.source ? Promise.resolve(r.source) : jde(e), c;
- let s = () => r.source ? Promise.resolve(r.source) : vde(e), c;
++ let s = () => r.source ? Promise.resolve(r.source) : kde(e), c;
try {
-- c = await lD();
++ c = await dD();
} catch {
return t.controls = !0, s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@@ -31690,7 -31310,7 +31690,7 @@@
} }
}
});
- WE(l), l.peachItem = e, Kue(l), l.on("loadedmetadata", () => {
- WE(l), l.peachItem = e, Nue(l), l.on("loadedmetadata", () => {
++ KE(l), l.peachItem = e, Wue(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}`);
});
@@@ -31698,7 -31318,7 +31698,7 @@@
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Que(Zue(f, e.duration)), m = 0, h = !1, g = () => UE() === l && !l.isDisposed(), _ = () => {
- }, f = Number(r.size ?? e.size) || 0, p = zue(Rue(f, e.duration)), m = 0, h = !1, g = () => UE() === l && !l.isDisposed(), _ = () => {
++ }, f = Number(r.size ?? e.size) || 0, p = Xue(Yue(f, e.duration)), m = 0, h = !1, g = () => GE() === 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(() => {
@@@ -31709,23 -31329,23 +31709,23 @@@
ready: !1,
updateStats: () => {}
};
- Lde.set(l, y), y.updateStats = () => {
- wde.set(l, y), y.updateStats = () => {
++ Fde.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 = Ode(), h = s ? ede(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 = hde(), h = s ? Vue(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 = Ede(), h = s ? Que(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 = nde(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 = Uue(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 = ede(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 = Jue(t);
- let w = Fue(t);
-- qE(d.speed, x), qE(d.activity, C), qE(d.buffer, w);
++ let w = Kue(t);
++ YE(d.speed, x), YE(d.activity, C), YE(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 ? [
"网络活动",
- `${_ ? sn(_) : "—"} · ${h.length} 请求`,
- `最近一秒网络活动 ${C ? sn(C) : "0 B"}`
+ `${_ ? on(_) : "—"} · ${h.length} 请求`,
+ `最近一秒网络活动 ${C ? on(C) : "0 B"}`
] : [
"已下载",
- O ? `${sn(S)}${f > 0 ? ` / ${sn(f)}` : ""}` : `${S.toFixed(0)} 秒`,
- O ? `最近一秒下载 ${C ? sn(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`
+ O ? `${on(S)}${f > 0 ? ` / ${on(f)}` : ""}` : `${S.toFixed(0)} 秒`,
+ O ? `最近一秒下载 ${C ? on(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`
];
n.innerHTML = `<dl>${[
["视频 ID / 会话", c && !r.source ? `${e.id} / ${c.slice(0, 8)}` : `${e.id}`],
@@@ -31735,19 -31355,19 +31735,19 @@@
[
"连接速度",
D,
-- YE(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
++ ZE(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
-- YE(d.activity, "activity", Math.max(1, ...d.activity), k[2])
++ ZE(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
-- YE(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
++ ZE(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
- ["播放时间", `${on(t.currentTime)} / ${on(u || l.duration())}`],
+ ["播放时间", `${an(t.currentTime)} / ${an(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
].map(([e, t, n]) => `<dt>${B(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${B(t)}</span></dd>`).join("")}</dl>`;
}, l.on([
@@@ -31761,15 -31381,15 +31761,15 @@@
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = nde(l, e.id, Ode(), r ? null : p), a = r ? XE(i) : rde(i, Jue(t));
- let i = Uue(l, e.id, hde(), r ? null : p), a = r ? XE(i) : Wue(i, Fue(t));
++ let i = ede(l, e.id, Ede(), r ? null : p), a = r ? QE(i) : tde(i, Kue(t));
n.innerHTML = `${z("gauge")}<span class="sr-only">加载速度</span><span>${B(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
-- e && e.isConnected && (e.hidden = !1, S(), dD && clearInterval(dD), dD = setInterval(S, 500));
++ e && e.isConnected && (e.hidden = !1, S(), pD && clearInterval(pD), pD = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
-- e && (fD && clearTimeout(fD), fD = setTimeout(() => {
-- e.hidden = !0, dD &&= (clearInterval(dD), null);
++ e && (mD && clearTimeout(mD), mD = setTimeout(() => {
++ e.hidden = !0, pD &&= (clearInterval(pD), null);
}, 1400));
};
return l.on([
@@@ -31780,7 -31400,7 +31780,7 @@@
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Ade(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(_de(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
++ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Ode(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `脱盘模式 · ${a.offlineReason(String(e.location))}`
@@@ -31788,13 -31408,13 +31788,13 @@@
});
}), l.ready(() => {
_();
- let n = ude(l, t, e.height, r.qualities ?? null);
- let n = Zue(l, t, e.height, r.qualities ?? null);
++ let n = cde(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 = Zue(r, e.duration));
- }).catch(() => {}), pde(l, e, { thumbnail: !r.source }), mde(l, e), hde(l), r.source || gde(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
- r > 0 && !f && (f = r, p.bitrate = Rue(r, e.duration));
- }).catch(() => {}), ede(l, e, { thumbnail: !r.source }), tde(l, e), nde(l), r.source || rde(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
++ r > 0 && !f && (f = r, p.bitrate = Yue(r, e.duration));
++ }).catch(() => {}), dde(l, e, { thumbnail: !r.source }), fde(l, e), pde(l), r.source || mde(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@@ -31803,14 -31423,14 +31803,14 @@@
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
- var Bde = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
- function Vde(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Bde), e.querySelector(":scope > #playerStatsBtn")) return;
-var Dde = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function Ode(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Dde), e.querySelector(":scope > #playerStatsBtn")) return;
++var Rde = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
++function zde(e, t = null) {
++ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Rde), e.querySelector(":scope > #playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = $ue(), e.insertBefore(n.content, t);
- n.innerHTML = Bue(), e.insertBefore(n.content, t);
++ n.innerHTML = Zue(), e.insertBefore(n.content, t);
}
- function Hde(e, t) {
- let n = Lde.get(e);
-function kde(e, t) {
- let n = wde.get(e);
++function Bde(e, t) {
++ let n = Fde.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`:scope > #${e}`), i = {
statsButton: r("playerStatsBtn"),
@@@ -31822,27 -31442,27 +31822,27 @@@
if (a && o) {
a.hidden = !n.ready;
let e = () => {
-- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), uD &&= (clearInterval(uD), null));
++ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), fD &&= (clearInterval(fD), null));
};
a.onclick = () => {
-- o.hidden ? (document.dispatchEvent(new CustomEvent(JE, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), uD && clearInterval(uD), uD = setInterval(n.updateStats, 1e3)) : e();
++ o.hidden ? (document.dispatchEvent(new CustomEvent(XE, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), fD && clearInterval(fD), fD = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
-- document.addEventListener(JE, t), s = () => document.removeEventListener(JE, t);
++ document.addEventListener(XE, t), s = () => document.removeEventListener(XE, t);
}
- let c = e.el().querySelector("video"), l = c ? lde(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, Rde()));
- let c = e.el().querySelector("video"), l = c ? Xue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, Tde()));
++ let c = e.el().querySelector("video"), l = c ? sde(c) : () => {}, u = !0, d = () => {
++ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, Ide()));
};
return e.one("dispose", d), d;
}
--function pD(e, t) {
- if (t.kind === "immerse") return Ide(e, t);
- if (t.kind === "immerse") return Cde(e, t);
-- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = zE(), c = t.chrome === !1 ? null : e.parentElement;
- c && Vde(c, e);
- let l = vde(n, r, i?.index ?? null), u = { resume: t.resume ?? {
- time: bde(l, r),
- c && Ode(c, e);
- let l = ade(n, r, i?.index ?? null), u = { resume: t.resume ?? {
- time: sde(l, r),
++function hD(e, t) {
++ if (t.kind === "immerse") return Pde(e, t);
++ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = VE(), c = t.chrome === !1 ? null : e.parentElement;
++ c && zde(c, e);
++ let l = gde(n, r, i?.index ?? null), u = { resume: t.resume ?? {
++ time: vde(l, r),
autoplay: !1
} };
if (n === "follow") u = {
@@@ -31861,37 -31481,37 +31861,37 @@@
t && (e.poster = t);
}
let d = null, f = !1, p = () => {}, m = e, h = () => {
- p(), !(d && a?.(d)) && ($E(m), d ? (UE() === d && (WE(null), Rde()), nD(d)) : tD(m));
- p(), !(d && a?.(d)) && ($E(m), d ? (UE() === d && (WE(null), Tde()), nD(d)) : tD(m));
++ p(), !(d && a?.(d)) && (tD(m), d ? (GE() === d && (KE(null), Ide()), iD(d)) : rD(m));
};
- return zde(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, xde(l, m), n === "follow" ? wde(r, m) : (m.addEventListener("play", () => {
- return Ede(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
- d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, cde(l, m), n === "follow" ? dde(r, m) : (m.addEventListener("play", () => {
- It("/api/play", {
++ return Lde(r, e, t.autoplay ?? s.settings().detailAutoplay, u).then((t) => {
++ d = t, f ? h() : (m = t?.el().querySelector("video") ?? e, yde(l, m), n === "follow" ? Sde(r, m) : (m.addEventListener("play", () => {
+ Ft("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), Cde(r, m, {
- }, { once: !0 }), ude(r, m, {
++ }, { once: !0 }), xde(r, m, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (c && (p = Hde(t, c)), o?.(t)) : o?.(null));
- })), t ? (c && (p = kde(t, c)), o?.(t)) : o?.(null));
++ })), t ? (c && (p = Bde(t, c)), o?.(t)) : o?.(null));
}), () => {
f = !0, h();
};
}
//#endregion
//#region src/player/playback.ts
--function mD(e) {
++function gD(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
- function Ude(e, t) {
-function Ade(e, t) {
++function Vde(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
//#endregion
//#region src/player/preview-player.ts
- function Wde(e, t, n) {
-function jde(e, t, n) {
++function Hde(e, t, n) {
let r = !1, i = null;
-- return lD().then((a) => {
++ return dD().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@@ -31916,82 -31536,82 +31916,82 @@@
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (ude(o, e), pde(o, null, { thumbnail: !1 }), hde(o));
- r || o.isDisposed() || (Zue(o, e), ede(o, null, { thumbnail: !1 }), nde(o));
++ r || o.isDisposed() || (cde(o, e), dde(o, null, { thumbnail: !1 }), pde(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
-- r = !0, nD(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
++ r = !0, iD(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
//#endregion
//#region src/react/catalog-grid/catalog-view.ts
--var hD = "peach.catalog-view.v1", gD = /* @__PURE__ */ new Set(), _D = "cards";
- function Gde() {
-function Mde() {
++var _D = "peach.catalog-view.v1", vD = /* @__PURE__ */ new Set(), yD = "cards";
++function Ude() {
try {
-- return localStorage.getItem(hD) === "list" ? "list" : "cards";
++ return localStorage.getItem(_D) === "list" ? "list" : "cards";
} catch {
-- return _D;
++ return yD;
}
}
- function Kde(e) {
-function Nde(e) {
-- _D = e === "list" ? "list" : "cards";
++function Wde(e) {
++ yD = e === "list" ? "list" : "cards";
try {
-- localStorage.setItem(hD, _D);
++ localStorage.setItem(_D, yD);
} catch {}
-- gD.forEach((e) => e());
++ vD.forEach((e) => e());
}
- function qde(e) {
-function Pde(e) {
-- gD.add(e);
++function Gde(e) {
++ vD.add(e);
let t = (t) => {
-- (t.key === hD || t.key === null) && e();
++ (t.key === _D || t.key === null) && e();
};
return addEventListener("storage", t), () => {
-- gD.delete(e), removeEventListener("storage", t);
++ vD.delete(e), removeEventListener("storage", t);
};
}
- var vD = () => (0, S.useSyncExternalStore)(qde, Gde, () => "cards");
-var vD = () => (0, S.useSyncExternalStore)(Pde, Mde, () => "cards");
--function yD(e, t) {
++var bD = () => (0, S.useSyncExternalStore)(Gde, Ude, () => "cards");
++function xD(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
- var Jde = (e, t) => [
-var Fde = (e, t) => [
++var Kde = (e, t) => [
"catalog-grid",
"catalog",
e,
t
- ], Yde = (e, t) => [
-], Ide = (e, t) => [
++], qde = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
- async function Xde(e, t, n, r, i) {
-async function Lde(e, t, n, r, i) {
++async function Jde(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 H(`/api/items?${a}`, i), s = {
+ let o = await yn(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await H("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await yn("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
- var Zde = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Qde = (e, t) => {
-var Rde = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, zde = (e, t) => {
++var Yde = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Xde = (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 $de(e) {
-function Bde(e) {
-- let t = yD(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
++function Zde(e) {
++ let t = xD(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Jde(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Xde(t, e, n, r, i),
- queryKey: Fde(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Lde(t, e, n, r, i),
++ queryKey: Kde(t, e.revision || 0),
++ queryFn: ({ pageParam: e, signal: i }) => Jde(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Zde(n)
- getNextPageParam: Rde(n)
++ getNextPageParam: Yde(n)
};
}
- function efe(e) {
-function Vde(e) {
++function Qde(e) {
return {
- queryKey: Yde(e.entityKey || "", e.revision || 0),
- queryKey: Ide(e.entityKey || "", e.revision || 0),
++ queryKey: qde(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@@ -32006,13 -31626,13 +32006,13 @@@
};
},
initialPageParam: 0,
- getNextPageParam: Qde
- getNextPageParam: zde
++ getNextPageParam: Xde
};
}
- async function tfe(e, t) {
- if (e.mode !== "catalog" || e.wall || Gde() === "list") return;
- let n = $de(e);
-async function Hde(e, t) {
- if (e.mode !== "catalog" || e.wall || Mde() === "list") return;
- let n = Bde(e);
- await W.fetchInfiniteQuery({
++async function $de(e, t) {
++ if (e.mode !== "catalog" || e.wall || Ude() === "list") return;
++ let n = Zde(e);
+ await U.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@@ -32020,11 -31640,11 +32020,11 @@@
})
});
}
- function nfe(e) {
-function Ude(e) {
++function efe(e) {
let t = JSON.stringify(e);
- return W.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
+ return U.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
- function rfe(e, t, n) {
-function Wde(e, t, n) {
++function tfe(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@@ -32039,24 -31659,24 +32039,24 @@@
return !0;
}) : [...e];
}
--var bD = (e, t) => !!e && !!aa(e, t);
- function ife(e, t) {
-function Gde(e, t) {
-- let n = (e) => bD(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) => bD(e, t)) || e[e.length - 1];
++var SD = (e, t) => !!e && !!aa(e, t);
++function nfe(e, t) {
++ let n = (e) => SD(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) => SD(e, t)) || e[e.length - 1];
}
- function afe(e, { collapse: t, mix: n, javImage: r }) {
-function Kde(e, { collapse: t, mix: n, javImage: r }) {
++function rfe(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 = rfe(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
- let e = Wde(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
++ let e = tfe(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 = ife(e, r);
- let t = Gde(e, r);
++ let t = nfe(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@@ -32069,16 -31689,16 +32069,16 @@@
pageStarts: s
};
}
- function ofe(e, t, n) {
-function qde(e, t, n) {
++function ife(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 sfe(e, t) {
-function Jde(e, t) {
++function afe(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 cfe(e, t) {
-function Yde(e, t) {
++function ofe(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@@ -32091,11 -31711,11 +32091,11 @@@
strip: null
}), r;
}
--function xD(e, t) {
- lfe((t) => t.id === e, t);
- Xde((t) => t.id === e, t);
++function CD(e, t) {
++ sfe((t) => t.id === e, t);
}
- function lfe(e, t) {
-function Xde(e, t) {
- W.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
++function sfe(e, t) {
+ U.setQueriesData({ queryKey: ["catalog-grid", "table"] }, (n) => n?.items.some(e) ? {
...n,
items: n.items.map((n) => e(n) ? {
...n,
@@@ -32117,32 -31737,32 +32117,32 @@@
}
//#endregion
//#region src/react/item-detail/item-detail.ts
--var SD = (e) => ["item", e], CD = (e) => [
++var wD = (e) => ["item", e], TD = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
- ], ufe = (e, t) => [
-], Zde = (e, t) => [
++], cfe = (e, t) => [
"item-related",
e,
t
- ], dfe = (e) => `/api/item?id=${e}`, ffe = (e, t) => `/api/related?id=${e}&limit=${t}`, wD = "/api/playlist", pfe = "/api/feedback", TD = "/api/item-tag", mfe = "/api/watch-later", hfe = "/api/quality-goal", gfe = "/api/preference", ED = class extends Error {};
-], Qde = (e) => `/api/item?id=${e}`, $de = (e, t) => `/api/related?id=${e}&limit=${t}`, wD = "/api/playlist", efe = "/api/feedback", TD = "/api/item-tag", tfe = "/api/watch-later", nfe = "/api/quality-goal", rfe = "/api/preference", ED = class extends Error {};
--async function DD(e, t) {
- let n = await yn(dfe(e), t);
- let n = await H(Qde(e), t);
-- if (n.error) throw new ED(n.error);
++], lfe = (e) => `/api/item?id=${e}`, ufe = (e, t) => `/api/related?id=${e}&limit=${t}`, ED = "/api/playlist", dfe = "/api/feedback", DD = "/api/item-tag", ffe = "/api/watch-later", pfe = "/api/quality-goal", mfe = "/api/preference", OD = class extends Error {};
++async function kD(e, t) {
++ let n = await yn(lfe(e), t);
++ if (n.error) throw new OD(n.error);
return n;
}
--async function OD(e, t, n) {
++async function AD(e, t, n) {
if (e.kind === "mix") {
-- let r = e.seedId, [i, a] = await Promise.all([DD(r, n), t.mixRelated(r)]);
- return U.setQueryData(SD(i.id), i), {
- return W.setQueryData(SD(i.id), i), {
++ let r = e.seedId, [i, a] = await Promise.all([kD(r, n), t.mixRelated(r)]);
++ return U.setQueryData(wD(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Ma(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return _fe(await yn(`${wD}?id=${e.playlistId}`, n));
- if (e.kind === "playlist") return ife(await H(`${wD}?id=${e.playlistId}`, n));
- let r = await H(`/api/${e.kind}?id=${e.seedId}`, n);
++ if (e.kind === "playlist") return hfe(await yn(`${ED}?id=${e.playlistId}`, n));
+ let r = await yn(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
kind: e.kind,
@@@ -32152,19 -31772,19 +32152,19 @@@
versionCount: e.kind === "editions" ? r.count : void 0
};
}
- var _fe = (e) => ({
-var ife = (e) => ({
++var hfe = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
- }), vfe = (e) => e.disposal === "vanished";
-}), afe = (e) => e.disposal === "vanished";
--function kD(e, t) {
++}), gfe = (e) => e.disposal === "vanished";
++function jD(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !vfe(e)) : e.items;
- let n = e.kind === "playlist" ? e.items.filter((e) => !afe(e)) : e.items;
++ let n = e.kind === "playlist" ? e.items.filter((e) => !gfe(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 yfe(e, t) {
-function ofe(e, t) {
++function _fe(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 : {
@@@ -32172,20 -31792,20 +32172,20 @@@
part_label: n
};
}
- function bfe(e, t) {
-function sfe(e, t) {
++function vfe(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 xfe(e, t) {
-async function cfe(e, t) {
++async function yfe(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
-- let o = CD(n);
++ let o = TD(n);
try {
- let r = n.fresh ? void 0 : W.getQueryData(o);
- a = !r && n.kind === "mix", i = r || await W.fetchQuery({
+ let r = n.fresh ? void 0 : U.getQueryData(o);
+ a = !r && n.kind === "mix", i = r || await U.fetchQuery({
queryKey: o,
-- queryFn: () => OD(n, e.helpers, t),
++ queryFn: () => AD(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@@ -32197,21 -31817,21 +32197,21 @@@
return;
}
}
-- let o = i ? kD(i, e.id) : e.id;
++ let o = i ? jD(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 ? U.getQueryData(SD(o)) : void 0;
- let s, c = a && o === i?.seedId ? W.getQueryData(SD(o)) : void 0;
++ let s, c = a && o === i?.seedId ? U.getQueryData(wD(o)) : void 0;
try {
- s = c || await W.fetchQuery({
- queryKey: SD(o),
- queryFn: () => DD(o, t),
+ s = c || await U.fetchQuery({
- queryKey: SD(o),
- queryFn: () => DD(o, t),
++ queryKey: wD(o),
++ queryFn: () => kD(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
-- if (e instanceof ED) {
++ if (e instanceof OD) {
r.redirect({ kind: "gone" });
return;
}
@@@ -32222,9 -31842,9 +32222,9 @@@
id: Number(s.follow_item_id)
});
}
- function Sfe(e) {
-function lfe(e) {
++function bfe(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
- let t = $t(e.name);
+ let t = Qt(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
}, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({
id: null,
@@@ -32244,119 -31864,119 +32244,119 @@@
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
- var Cfe = (e) => Math.min(Math.max(e || 0, 0), 100), AD = (e) => Math.round(Cfe(e) / 20), wfe = (e) => {
-var ufe = (e) => Math.min(Math.max(e || 0, 0), 100), AD = (e) => Math.round(ufe(e) / 20), dfe = (e) => {
-- let t = AD(e);
++var xfe = (e) => Math.min(Math.max(e || 0, 0), 100), MD = (e) => Math.round(xfe(e) / 20), Sfe = (e) => {
++ let t = MD(e);
return t ? `${t} 星` : "未评分";
- }, Tfe = (e, t) => {
-}, ffe = (e, t) => {
++}, Cfe = (e, t) => {
let n = t * 20;
return n === (e || 0) ? 0 : n;
};
- function Efe(e, t) {
-function pfe(e, t) {
++function wfe(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
- let r = $t(t.tagLabel(e.k)), i = n.get(r);
- (!i || $t(e.k) === r && $t(i.k) !== r) && n.set(r, e);
+ let r = Qt(t.tagLabel(e.k)), i = n.get(r);
+ (!i || Qt(e.k) === r && Qt(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
- var jD = (e, t) => (e.tags || []).some((e) => Qt(e.k) === Qt(t)), Dfe = (e, t) => ({
-var jD = (e, t) => (e.tags || []).some((e) => $t(e.k) === $t(t)), mfe = (e, t) => ({
++var ND = (e, t) => (e.tags || []).some((e) => Qt(e.k) === Qt(t)), Tfe = (e, t) => ({
...e,
- tags: (e.tags || []).filter((e) => $t(e.k) !== $t(t))
-}), hfe = (e, t) => jD(e, t.k) ? e : {
+ tags: (e.tags || []).filter((e) => Qt(e.k) !== Qt(t))
- }), Ofe = (e, t) => jD(e, t.k) ? e : {
++}), Efe = (e, t) => ND(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
- }, kfe = "peach.recentTags";
- function Afe() {
-}, gfe = "peach.recentTags";
-function _fe() {
++}, Dfe = "peach.recentTags";
++function Ofe() {
try {
- let e = JSON.parse(localStorage.getItem(kfe) || "[]");
- let e = JSON.parse(localStorage.getItem(gfe) || "[]");
++ let e = JSON.parse(localStorage.getItem(Dfe) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
- function jfe(e) {
-function vfe(e) {
++function kfe(e) {
try {
- let t = Afe().filter((t) => Qt(t) !== Qt(e));
- localStorage.setItem(kfe, JSON.stringify([e, ...t].slice(0, 12)));
- let t = _fe().filter((t) => $t(t) !== $t(e));
- localStorage.setItem(gfe, JSON.stringify([e, ...t].slice(0, 12)));
++ let t = Ofe().filter((t) => Qt(t) !== Qt(e));
++ localStorage.setItem(Dfe, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
- function Mfe(e, t, n) {
-function yfe(e, t, n) {
- let r = $t(e), i = new Map(t.map((e) => [$t(e.k), e])), a = t.filter((e) => !r || $t(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get($t(e)) || {
++function Afe(e, t, n) {
+ let r = Qt(e), i = new Map(t.map((e) => [Qt(e.k), e])), a = t.filter((e) => !r || Qt(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Qt(e)) || {
k: e,
n: 0
- }).filter((e, t, n) => n.findIndex((t) => $t(t.k) === $t(e.k)) === t).slice(0, 12), s = a.some((e) => $t(e.k) === r);
+ }).filter((e, t, n) => n.findIndex((t) => Qt(t.k) === Qt(e.k)) === t).slice(0, 12), s = a.some((e) => Qt(e.k) === r);
return {
recent: o,
results: a,
create: r && !s ? e.trim() : ""
};
}
- var Nfe = {
-var bfe = {
++var jfe = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
- }, Pfe = {
-}, xfe = {
++}, Mfe = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
- function Ffe(e) {
-function Sfe(e) {
++function Nfe(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: Pfe[e.kind],
- title: xfe[e.kind],
++ title: Mfe[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
- var MD = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Ife = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(MD(e.part_label))}</small>` : "";
- function Lfe(e, t, n, r) {
-var MD = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Cfe = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(MD(e.part_label))}</small>` : "";
-function wfe(e, t, n, r) {
++var PD = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Pfe = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${B(PD(e.part_label))}</small>` : "";
++function Ffe(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
- var Rfe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
- function zfe(e, t) {
-var Tfe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function Efe(e, t) {
++var Ife = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
++function Lfe(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 Bfe(e) {
-function Dfe(e) {
++function Rfe(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 Vfe(e, t) {
-function Ofe(e, t) {
++function zfe(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
//#endregion
//#region src/react/immerse/immerse.ts
- var Hfe = (e, t, n) => [
-var kfe = (e, t, n) => [
++var Bfe = (e, t, n) => [
"immerse-list",
e,
t,
n
];
- function Ufe(e) {
-function Afe(e) {
++function Vfe(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 Wfe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
- function Gfe(e, t = Math.random) {
-var jfe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
-function Mfe(e, t = Math.random) {
++var Hfe = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));
++function Ufe(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 Kfe(e, t) {
- return Gfe(((await yn(`/api/items?${e}`)).items || []).filter((e) => Wfe(e, t)));
-async function Nfe(e, t) {
- return Mfe(((await H(`/api/items?${e}`)).items || []).filter((e) => jfe(e, t)));
++async function Wfe(e, t) {
++ return Ufe(((await yn(`/api/items?${e}`)).items || []).filter((e) => Hfe(e, t)));
}
- var qfe = (e) => U.ensureQueryData({
-var Pfe = (e) => W.ensureQueryData({
-- queryKey: SD(e),
-- queryFn: ({ signal: t }) => DD(e, t)
++var Gfe = (e) => U.ensureQueryData({
++ queryKey: wD(e),
++ queryFn: ({ signal: t }) => kD(e, t)
});
- function Jfe(e, t) {
-function Ffe(e, t) {
++function Kfe(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
- function Yfe(e) {
-function Ife(e) {
++function qfe(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,
@@@ -32365,306 -31985,306 +32365,306 @@@
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
- function Xfe(e, t, n) {
-function Lfe(e, t, n) {
++function Jfe(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 Zfe(e, t) {
-function Rfe(e, t) {
++function Yfe(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 Qfe = 15e3, $fe = {
-var zfe = 15e3, Bfe = {
++var Xfe = 15e3, Zfe = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
- }, ND = null, PD = null, FD = $fe, ID = /* @__PURE__ */ new Set(), LD = 0, epe = 0, RD = 0, tpe = "", zD = [], BD = 0, VD = !1, HD = !1, UD = null, WD = /* @__PURE__ */ new Set(), GD = "", KD = null, qD = 0, JD = null, YD = !1;
-}, ND = null, PD = null, FD = Bfe, ID = /* @__PURE__ */ new Set(), LD = 0, Vfe = 0, RD = 0, Hfe = "", zD = [], BD = 0, VD = !1, HD = !1, UD = null, WD = /* @__PURE__ */ new Set(), GD = "", KD = null, qD = 0, JD = null, YD = !1;
--function XD() {
-- if (!ND) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
-- return ND;
++}, FD = null, ID = null, LD = Zfe, RD = /* @__PURE__ */ new Set(), zD = 0, Qfe = 0, BD = 0, $fe = "", VD = [], HD = 0, UD = !1, WD = !1, GD = null, KD = /* @__PURE__ */ new Set(), qD = "", JD = null, YD = 0, XD = null, ZD = !1;
++function QD() {
++ if (!FD) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
++ return FD;
}
- function npe(e) {
-function Ufe(e) {
-- return ID.add(e), () => {
-- ID.delete(e);
++function epe(e) {
++ return RD.add(e), () => {
++ RD.delete(e);
};
}
- function rpe() {
-function Wfe() {
-- for (let e of [...ID]) e();
++function tpe() {
++ for (let e of [...RD]) e();
}
--function ZD() {
- (0, ht.flushSync)(rpe);
- (0, gt.flushSync)(Wfe);
++function $D() {
++ (0, ht.flushSync)(tpe);
}
- function ipe() {
- let e = KD ? tde(KD.id) : 0;
-function Gfe() {
- let e = KD ? Hue(KD.id) : 0;
-- return e ? `${GD} · ${XE(e)}` : GD;
++function npe() {
++ let e = JD ? $ue(JD.id) : 0;
++ return e ? `${qD} · ${QE(e)}` : qD;
}
--function QD(e, t = null) {
-- clearInterval(qD), qD = 0, e === null ? (FD = {
-- ...FD,
++function eO(e, t = null) {
++ clearInterval(YD), YD = 0, e === null ? (LD = {
++ ...LD,
loading: null
-- }, ZD()) : (GD = e, KD = t, FD = {
-- ...FD,
- loading: ipe()
- loading: Gfe()
-- }, ZD(), qD = window.setInterval(() => {
-- KD = zD[BD] ?? null, FD = {
-- ...FD,
- loading: ipe()
- loading: Gfe()
-- }, ZD();
++ }, $D()) : (qD = e, JD = t, LD = {
++ ...LD,
++ loading: npe()
++ }, $D(), YD = window.setInterval(() => {
++ JD = VD[HD] ?? null, LD = {
++ ...LD,
++ loading: npe()
++ }, $D();
}, 500));
}
- function ape(e) {
-function Kfe(e) {
++function rpe(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), PD.track.append(t);
- let r = Tde(), i = () => {}, a = {
- let r = fde(), i = () => {}, a = {
++ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), ID.track.append(t);
++ let r = Cde(), i = () => {}, a = {
el: t,
video: n,
session: r,
-- release: () => iD(r),
++ release: () => oD(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
-- return WD.add(a), a;
++ return KD.add(a), a;
}
- function ope(e, t) {
-function qfe(e, t) {
++function ipe(e, t) {
return new Promise((n) => {
-- e.release = pD(e.video, {
++ e.release = hD(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
-- FD.open && tO(1);
++ LD.open && rO(1);
}
}), e.gone.then(n);
});
}
--function $D(e) {
-- e && !e.disposed && (e.disposed = !0, WD.delete(e), e.leave(), e.release(), e.el.remove(), UD === e && (UD = null));
++function tO(e) {
++ e && !e.disposed && (e.disposed = !0, KD.delete(e), e.leave(), e.release(), e.el.remove(), GD === e && (GD = null));
}
- var spe = [
-var Jfe = [
++var ape = [
"loadeddata",
"canplay",
"error"
];
- function cpe(e) {
-function Yfe(e) {
++function ope(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), spe.forEach((e) => t.removeEventListener(e, i)), n());
- r || (r = !0, clearTimeout(a), Jfe.forEach((e) => t.removeEventListener(e, i)), n());
++ r || (r = !0, clearTimeout(a), ape.forEach((e) => t.removeEventListener(e, i)), n());
};
- spe.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, Qfe);
- Jfe.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, zfe);
++ ape.forEach((e) => t.addEventListener(e, i, { once: !0 }));
++ let a = setTimeout(i, Xfe);
e.gone.then(i);
});
}
--function eO(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Xfe(e.videoWidth, e.videoHeight, n);
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Lfe(e.videoWidth, e.videoHeight, n);
++function nO(e) {
++ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Jfe(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
- var lpe = () => PD?.track.querySelectorAll("video").forEach(eO);
- function upe(e) {
-var Xfe = () => PD?.track.querySelectorAll("video").forEach(eO);
-function Zfe(e) {
-- delete e.dataset.fit, e.readyState >= 1 ? eO(e) : e.addEventListener("loadedmetadata", () => eO(e), { once: !0 });
++var spe = () => ID?.track.querySelectorAll("video").forEach(nO);
++function cpe(e) {
++ delete e.dataset.fit, e.readyState >= 1 ? nO(e) : e.addEventListener("loadedmetadata", () => nO(e), { once: !0 });
}
- function dpe(e) {
-function Qfe(e) {
-- FD = {
-- ...FD,
++function lpe(e) {
++ LD = {
++ ...LD,
wide: e
- }, ZD(), lpe();
- }, ZD(), Xfe();
++ }, $D(), spe();
}
- var fpe = () => {
- let e = tpe;
-var $fe = () => {
- let e = Hfe;
- return W.fetchQuery({
- queryKey: kfe(e, Vfe, RD),
- queryFn: () => Nfe(e, XD().sourceOffline),
++var upe = () => {
++ let e = $fe;
+ return U.fetchQuery({
- queryKey: Hfe(e, epe, RD),
- queryFn: () => Kfe(e, XD().sourceOffline),
++ queryKey: Bfe(e, Qfe, BD),
++ queryFn: () => Wfe(e, QD().sourceOffline),
staleTime: Infinity
});
};
- function ppe(e, t) {
-function epe(e, t) {
- let n = () => rn(e.duration) || rn(t.duration);
++function dpe(e, t) {
+ let n = () => nn(e.duration) || nn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
-- t && PD && (PD.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
-- }), JD = {
++ t && ID && (ID.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
++ }), XD = {
video: e,
duration: n
};
}
- async function mpe(e = 0) {
-async function tpe(e = 0) {
-- let t = zD[BD];
-- if (!t || VD) return;
-- let n = LD;
-- XD().route(t.id), VD = !0, QD(e ? "切换中…" : "加载中…", t);
++async function fpe(e = 0) {
++ let t = VD[HD];
++ if (!t || UD) return;
++ let n = zD;
++ QD().route(t.id), UD = !0, eO(e ? "切换中…" : "加载中…", t);
let r = null;
try {
- if (await qfe(t.id).catch((e) => {
- if (await Pfe(t.id).catch((e) => {
-- if (!(e instanceof ED)) throw e;
-- }), n !== LD) return;
-- let i = UD, a = !!(e && i);
-- a || $D(i);
- let o = ape(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, upe(o.video), await ope(o, t), await cpe(o), o.disposed || (dpe(Zfe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
- let o = Kfe(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Zfe(o.video), await qfe(o, t), await Yfe(o), o.disposed || (Qfe(Rfe(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
++ if (await Gfe(t.id).catch((e) => {
++ if (!(e instanceof OD)) throw e;
++ }), n !== zD) return;
++ let i = GD, a = !!(e && i);
++ a || tO(i);
++ let o = rpe(a ? e > 0 ? 100 : -100 : 0);
++ if (r = o, cpe(o.video), await ipe(o, t), await ope(o), o.disposed || (lpe(Yfe(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)), $D(i), o.el.style.transform = ""), o.disposed)) return;
-- UD = o, r = null, o.video.play()?.catch(() => {}), FD = {
-- ...FD,
++ })), await new Promise((e) => setTimeout(e, 210)), tO(i), o.el.style.transform = ""), o.disposed)) return;
++ GD = o, r = null, o.video.play()?.catch(() => {}), LD = {
++ ...LD,
idle: !1,
shown: {
item: t,
-- index: BD,
-- length: zD.length
++ index: HD,
++ length: VD.length
}
- }, ppe(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), QD(null);
- }, epe(o.video, t), U("/api/play", { id: t.id }).catch(() => {}), QD(null);
++ }, dpe(o.video, t), H("/api/play", { id: t.id }).catch(() => {}), eO(null);
} catch {
-- $D(r), n === LD && QD(null);
++ tO(r), n === zD && eO(null);
} finally {
-- n === LD && (VD = !1);
++ n === zD && (UD = !1);
}
}
--async function tO(e) {
-- if (VD || !FD.open) return;
-- let t = LD;
-- if (BD += e, QD("切换中…", zD[BD] ?? null), BD >= zD.length - 3 && !HD) {
-- HD = !0;
++async function rO(e) {
++ if (UD || !LD.open) return;
++ let t = zD;
++ if (HD += e, eO("切换中…", VD[HD] ?? null), HD >= VD.length - 3 && !WD) {
++ WD = !0;
try {
-- RD += 1;
- let e = await fpe();
- t === LD && (zD = Jfe(zD, e));
- let e = await $fe();
- t === LD && (zD = Ffe(zD, e));
++ BD += 1;
++ let e = await upe();
++ t === zD && (VD = Kfe(VD, e));
} catch {} finally {
-- HD = !1;
++ WD = !1;
}
}
- t === LD && (BD >= zD.length && (BD = 0), BD < 0 && (BD = zD.length - 1), await mpe(e));
- t === LD && (BD >= zD.length && (BD = 0), BD < 0 && (BD = zD.length - 1), await tpe(e));
++ t === zD && (HD >= VD.length && (HD = 0), HD < 0 && (HD = VD.length - 1), await fpe(e));
}
- async function hpe(e) {
-async function npe(e) {
-- let t = ++LD;
- gpe(), epe += 1, RD = 0, tpe = Ufe(XD().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), FD = {
- rpe(), Vfe += 1, RD = 0, Hfe = Afe(XD().filters()), W.removeQueries({ queryKey: ["immerse-list"] }), FD = {
-- ...FD,
++async function ppe(e) {
++ let t = ++zD;
++ mpe(), Qfe += 1, BD = 0, $fe = Vfe(QD().filters()), U.removeQueries({ queryKey: ["immerse-list"] }), LD = {
++ ...LD,
open: !0,
idle: !0,
shown: null
-- }, document.body.setAttribute("data-immerse-open", ""), QD("加载内容…");
++ }, document.body.setAttribute("data-immerse-open", ""), eO("加载内容…");
try {
- let n = await fpe();
- let n = await $fe();
++ let n = await upe();
if (e && !n.some((t) => t.id === e)) {
- let t = await qfe(e).catch((e) => {
- let t = await Pfe(e).catch((e) => {
-- if (e instanceof ED) return null;
++ let t = await Gfe(e).catch((e) => {
++ if (e instanceof OD) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
-- if (t !== LD) return;
-- if (zD = n, !zD.length) {
-- nO(), XD().warn("当前筛选下没有可直接播放的内容");
++ if (t !== zD) return;
++ if (VD = n, !VD.length) {
++ iO(), QD().warn("当前筛选下没有可直接播放的内容");
return;
}
- BD = Math.max(0, zD.findIndex((t) => t.id === e)), await mpe();
- BD = Math.max(0, zD.findIndex((t) => t.id === e)), await tpe();
++ HD = Math.max(0, VD.findIndex((t) => t.id === e)), await fpe();
} catch {
-- if (t !== LD) return;
-- QD(null), nO();
++ if (t !== zD) return;
++ eO(null), iO();
}
}
- function gpe() {
-function rpe() {
-- clearInterval(qD), qD = 0, oO(), aO = null, JD = null, YD = !1, [...WD].forEach($D), VD = !1;
++function mpe() {
++ clearInterval(YD), YD = 0, cO(), sO = null, XD = null, ZD = !1, [...KD].forEach(tO), UD = !1;
}
--function nO() {
- FD.open && (LD++, gpe(), FD = $fe, document.body.removeAttribute("data-immerse-open"), ZD(), XD().closed());
- FD.open && (LD++, rpe(), FD = Bfe, document.body.removeAttribute("data-immerse-open"), ZD(), XD().closed());
++function iO() {
++ LD.open && (zD++, mpe(), LD = Zfe, document.body.removeAttribute("data-immerse-open"), $D(), QD().closed());
}
- var rO = 0, iO = null, _pe = 0, aO = null, vpe = 0;
-var rO = 0, iO = null, ipe = 0, aO = null, ape = 0;
--function oO() {
-- clearTimeout(rO), rO = 0, iO = null;
++var aO = 0, oO = null, hpe = 0, sO = null, gpe = 0;
++function cO() {
++ clearTimeout(aO), aO = 0, oO = null;
}
- function ype(e) {
-function ope(e) {
-- let t = UD?.video;
++function _pe(e) {
++ let t = GD?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- iO && iO.side === n && r - iO.at <= 280 ? (oO(), Ude(t, XD().seekSeconds() * n)) : (rO && (clearTimeout(rO), rO = 0, mD(t)), iO = {
- iO && iO.side === n && r - iO.at <= 280 ? (oO(), Ade(t, XD().seekSeconds() * n)) : (rO && (clearTimeout(rO), rO = 0, mD(t)), iO = {
++ oO && oO.side === n && r - oO.at <= 280 ? (cO(), Vde(t, QD().seekSeconds() * n)) : (aO && (clearTimeout(aO), aO = 0, gD(t)), oO = {
side: n,
at: r
-- }, rO = window.setTimeout(() => {
-- rO = 0, iO = null, FD.open && mD(UD?.video);
++ }, aO = window.setTimeout(() => {
++ aO = 0, oO = null, LD.open && gD(GD?.video);
}, 280));
}
- function bpe() {
- Date.now() < _pe || mD(UD?.video);
-function spe() {
- Date.now() < ipe || mD(UD?.video);
++function vpe() {
++ Date.now() < hpe || gD(GD?.video);
}
--var sO = (e) => PD?.bar.toggleAttribute("data-scrubbing", e);
--function cO(e) {
-- PD && (PD.progress.style.width = `${(e * 100).toFixed(2)}%`);
++var lO = (e) => ID?.bar.toggleAttribute("data-scrubbing", e);
++function uO(e) {
++ ID && (ID.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
- function xpe(e) {
-function cpe(e) {
++function ype(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
-- aO = null;
++ sO = null;
return;
}
-- let n = UD?.video;
-- aO = {
++ let n = GD?.video;
++ sO = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
- function Spe(e) {
-function lpe(e) {
-- if (!aO || e.touches.length !== 1) return;
-- let t = e.touches[0].clientX - aO.x, n = e.touches[0].clientY - aO.y;
-- if (!aO.axis) {
++function bpe(e) {
++ if (!sO || e.touches.length !== 1) return;
++ let t = e.touches[0].clientX - sO.x, n = e.touches[0].clientY - sO.y;
++ if (!sO.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
-- aO.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", aO.axis === "x" && sO(!0);
++ sO.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", sO.axis === "x" && lO(!0);
}
-- if (aO.axis !== "x") return;
-- let r = UD?.video, i = r && r.duration || 0;
-- i && (e.preventDefault(), aO.to = Math.min(i, Math.max(0, aO.from + t / window.innerWidth * i)), cO(aO.to / i));
++ if (sO.axis !== "x") return;
++ let r = GD?.video, i = r && r.duration || 0;
++ i && (e.preventDefault(), sO.to = Math.min(i, Math.max(0, sO.from + t / window.innerWidth * i)), uO(sO.to / i));
}
- function Cpe(e) {
-function upe(e) {
-- if (!aO) return;
-- let t = aO;
- if (aO = null, _pe = Date.now() + 700, sO(!1), t.axis === "x") {
- if (aO = null, ipe = Date.now() + 700, sO(!1), t.axis === "x") {
-- let e = UD?.video;
++function xpe(e) {
++ if (!sO) return;
++ let t = sO;
++ if (sO = null, hpe = Date.now() + 700, lO(!1), t.axis === "x") {
++ let e = GD?.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 ? (oO(), tO(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ype(n.clientX));
- Math.abs(i) > 60 ? (oO(), tO(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), ope(n.clientX));
++ Math.abs(i) > 60 ? (cO(), rO(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), _pe(n.clientX));
}
- function wpe() {
-function dpe() {
-- aO = null, sO(!1);
++function Spe() {
++ sO = null, lO(!1);
}
- function Tpe(e) {
-function fpe(e) {
++function Cpe(e) {
let t = Date.now();
- t - vpe < 260 || (vpe = t, tO(e.deltaY > 0 ? 1 : -1));
- t - ape < 260 || (ape = t, tO(e.deltaY > 0 ? 1 : -1));
++ t - gpe < 260 || (gpe = t, rO(e.deltaY > 0 ? 1 : -1));
}
--function lO(e) {
-- let t = PD.bar.getBoundingClientRect();
++function dO(e) {
++ let t = ID.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
- function Epe(e) {
-function ppe(e) {
-- JD?.duration() && (YD = !0, sO(!0), e.currentTarget.setPointerCapture(e.pointerId), cO(lO(e)), e.preventDefault());
++function wpe(e) {
++ XD?.duration() && (ZD = !0, lO(!0), e.currentTarget.setPointerCapture(e.pointerId), uO(dO(e)), e.preventDefault());
}
- function Dpe(e) {
-function mpe(e) {
-- YD && cO(lO(e));
++function Tpe(e) {
++ ZD && uO(dO(e));
}
- function Ope(e) {
-function hpe(e) {
-- if (!YD) return;
-- YD = !1, sO(!1);
-- let t = JD?.duration();
-- JD && t && (JD.video.currentTime = t * lO(e));
++function Epe(e) {
++ if (!ZD) return;
++ ZD = !1, lO(!1);
++ let t = XD?.duration();
++ XD && t && (XD.video.currentTime = t * dO(e));
}
- function kpe() {
-function gpe() {
-- YD = !1, sO(!1);
++function Dpe() {
++ ZD = !1, lO(!1);
}
--async function uO(e, t) {
- let n = await H(pfe, {
- let n = await U(efe, {
++async function fO(e, t) {
++ let n = await H(dfe, {
id: e,
kind: t
- }), r = U.getQueryData(SD(e));
- }), r = W.getQueryData(SD(e));
-- if (!r) return xD(e, {
++ }), r = U.getQueryData(wD(e));
++ if (!r) return CD(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@@ -32673,7 -32293,7 +32673,7 @@@
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return U.setQueryData(SD(e), i), xD(e, {
- return W.setQueryData(SD(e), i), xD(e, {
++ return U.setQueryData(wD(e), i), CD(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@@ -32681,7 -32301,7 +32681,7 @@@
o_count: i.o_count
}), n;
}
- var Ape = [
-var _pe = [
++var Ope = [
{
kind: "dislike",
glyph: "thumbs-down",
@@@ -32698,31 -32318,31 +32698,31 @@@
label: "记一次高潮"
}
];
- function jpe(e) {
-function vpe(e) {
- return pt({
- queryKey: SD(e ?? 0),
- queryFn: ({ signal: t }) => DD(e, t),
++function kpe(e) {
+ return ft({
- queryKey: SD(e ?? 0),
- queryFn: ({ signal: t }) => DD(e, t),
++ queryKey: wD(e ?? 0),
++ queryFn: ({ signal: t }) => kD(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
- function Mpe({ kind: e, glyph: t, label: n, id: r }) {
- let i = jpe(r), a = pt({
-function ype({ kind: e, glyph: t, label: n, id: r }) {
- let i = vpe(r), a = mt({
++function Ape({ kind: e, glyph: t, label: n, id: r }) {
++ let i = kpe(r), a = pt({
mutationFn: async (t) => {
- let n = U.getQueryData(SD(t))?.feedback || null;
- let n = W.getQueryData(SD(t))?.feedback || null;
++ let n = U.getQueryData(wD(t))?.feedback || null;
return {
-- result: await uO(t, e),
++ result: await fO(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- XD().toast(Vfe(e, t), { undo: async () => {
- XD().toast(Ofe(e, t), { undo: async () => {
-- e === "o" ? await uO(r, "o-undo") : (t.feedback && await uO(r, t.feedback), n && await uO(r, n));
++ QD().toast(zfe(e, t), { undo: async () => {
++ e === "o" ? await fO(r, "o-undo") : (t.feedback && await fO(r, t.feedback), n && await fO(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
-- tO(1);
++ rO(1);
}, 260);
},
-- onError: (e) => XD().failure("更新反馈", e)
++ onError: (e) => QD().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-immerse-action": "",
@@@ -32753,11 -32373,11 +32753,11 @@@
})]
});
}
- function Npe({ shown: e }) {
- let t = e?.item ?? null, n = jpe(t?.id ?? null), r = n ? Yfe(n) : null, i = XD(), a = (e) => {
-function bpe({ shown: e }) {
- let t = e?.item ?? null, n = vpe(t?.id ?? null), r = n ? Ife(n) : null, i = XD(), a = (e) => {
-- e.preventDefault(), n && (nO(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
++function jpe({ shown: e }) {
++ let t = e?.item ?? null, n = kpe(t?.id ?? null), r = n ? qfe(n) : null, i = QD(), a = (e) => {
++ e.preventDefault(), n && (iO(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
-- t && (nO(), i.openItem(t.id));
++ t && (iO(), i.openItem(t.id));
}, s = r ? va(r.name, r.ref, ta(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-immerse-ui": "",
@@@ -32786,18 -32406,18 +32786,18 @@@
})]
});
}
- var Ppe = { __html: No("媒体加载中") };
- function Fpe({ view: e }) {
-var xpe = { __html: No("媒体加载中") };
-function Spe({ view: e }) {
++var Mpe = { __html: No("媒体加载中") };
++function Npe({ view: e }) {
let t = (0, S.useRef)(null), n = (0, S.useRef)(null), r = (0, S.useRef)(null), i = (0, S.useRef)(null);
(0, S.useLayoutEffect)(() => {
let e = t.current;
-- return PD = {
++ return ID = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", xpe, { passive: !0 }), e.addEventListener("touchmove", Spe, { passive: !1 }), e.addEventListener("touchend", Cpe, { passive: !1 }), e.addEventListener("touchcancel", wpe, { passive: !0 }), e.addEventListener("wheel", Tpe, { passive: !0 }), () => {
- e.removeEventListener("touchstart", xpe), e.removeEventListener("touchmove", Spe), e.removeEventListener("touchend", Cpe), e.removeEventListener("touchcancel", wpe), e.removeEventListener("wheel", Tpe), PD = null;
- }, e.addEventListener("touchstart", cpe, { passive: !0 }), e.addEventListener("touchmove", lpe, { passive: !1 }), e.addEventListener("touchend", upe, { passive: !1 }), e.addEventListener("touchcancel", dpe, { passive: !0 }), e.addEventListener("wheel", fpe, { passive: !0 }), () => {
- e.removeEventListener("touchstart", cpe), e.removeEventListener("touchmove", lpe), e.removeEventListener("touchend", upe), e.removeEventListener("touchcancel", dpe), e.removeEventListener("wheel", fpe), PD = null;
++ }, e.addEventListener("touchstart", ype, { passive: !0 }), e.addEventListener("touchmove", bpe, { passive: !1 }), e.addEventListener("touchend", xpe, { passive: !1 }), e.addEventListener("touchcancel", Spe, { passive: !0 }), e.addEventListener("wheel", Cpe, { passive: !0 }), () => {
++ e.removeEventListener("touchstart", ype), e.removeEventListener("touchmove", bpe), e.removeEventListener("touchend", xpe), e.removeEventListener("touchcancel", Spe), e.removeEventListener("wheel", Cpe), ID = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@@ -32814,10 -32434,10 +32814,10 @@@
children: [/* @__PURE__ */ (0, C.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: bpe
- onClick: spe
++ onClick: vpe
}), /* @__PURE__ */ (0, C.jsx)("div", {
"data-immerse-actions": "",
- children: Ape.map((e) => /* @__PURE__ */ (0, C.jsx)(Mpe, {
- children: _pe.map((e) => /* @__PURE__ */ (0, C.jsx)(ype, {
++ children: Ope.map((e) => /* @__PURE__ */ (0, C.jsx)(Ape, {
...e,
id: a
}, e.kind))
@@@ -32830,7 -32450,7 +32830,7 @@@
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Ppe
- dangerouslySetInnerHTML: xpe
++ dangerouslySetInnerHTML: Mpe
}), /* @__PURE__ */ (0, C.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -32838,7 -32458,7 +32838,7 @@@
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
-- onClick: nO,
++ onClick: iO,
children: /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: "#i-x" })
@@@ -32847,97 -32467,97 +32847,97 @@@
/* @__PURE__ */ (0, C.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Epe,
- onPointerMove: Dpe,
- onPointerUp: Ope,
- onPointerCancel: kpe,
- onPointerDown: ppe,
- onPointerMove: mpe,
- onPointerUp: hpe,
- onPointerCancel: gpe,
++ onPointerDown: wpe,
++ onPointerMove: Tpe,
++ onPointerUp: Epe,
++ onPointerCancel: Dpe,
children: /* @__PURE__ */ (0, C.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, C.jsx)(Npe, { shown: e.shown })
- /* @__PURE__ */ (0, C.jsx)(bpe, { shown: e.shown })
++ /* @__PURE__ */ (0, C.jsx)(jpe, { shown: e.shown })
]
});
}
- var Ipe = {
- open: hpe,
-var Cpe = {
- open: npe,
-- close: nO,
-- isOpen: () => FD.open,
-- activeVideo: () => FD.open ? UD?.video ?? null : null
++var Ppe = {
++ open: ppe,
++ close: iO,
++ isOpen: () => LD.open,
++ activeVideo: () => LD.open ? GD?.video ?? null : null
};
- function Lpe(e) {
-function wpe(e) {
-- if (!FD.open) return;
++function Fpe(e) {
++ if (!LD.open) return;
let t = e.target;
-- (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && tO(1), e.key === "ArrowUp" && tO(-1)));
++ (!t || t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" && !t.isContentEditable) && (e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && rO(1), e.key === "ArrowUp" && rO(-1)));
}
- function Rpe(e) {
-function Tpe(e) {
-- let t = !ND;
- return ND = e, t && (document.addEventListener("keydown", Lpe), addEventListener("resize", () => {
- FD.open && lpe();
- return ND = e, t && (document.addEventListener("keydown", wpe), addEventListener("resize", () => {
- FD.open && Xfe();
++function Ipe(e) {
++ let t = !FD;
++ return FD = e, t && (document.addEventListener("keydown", Fpe), addEventListener("resize", () => {
++ LD.open && spe();
}), addEventListener("pagehide", () => {
-- WD.forEach((e) => iD(e.session));
- })), Ipe;
- })), Cpe;
++ KD.forEach((e) => oD(e.session));
++ })), Ppe;
}
- function zpe() {
- let e = (0, S.useSyncExternalStore)(npe, () => FD);
- return ND ? /* @__PURE__ */ (0, C.jsx)(Fpe, { view: e }) : null;
-function Epe() {
- let e = (0, S.useSyncExternalStore)(Ufe, () => FD);
- return ND ? /* @__PURE__ */ (0, C.jsx)(Spe, { view: e }) : null;
++function Lpe() {
++ let e = (0, S.useSyncExternalStore)(epe, () => LD);
++ return FD ? /* @__PURE__ */ (0, C.jsx)(Npe, { view: e }) : null;
}
//#endregion
//#region src/manage-header.ts
- var Bpe = {
-var Dpe = {
++var Rpe = {
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
- }, Vpe = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
- function Hpe(e) {
- let t = Bpe[e.path] ? "cleanup" : e.section;
-}, Ope = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function kpe(e) {
- let t = Dpe[e.path] ? "cleanup" : e.section;
++}, zpe = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
++function Bpe(e) {
++ let t = Rpe[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
- var Upe = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-var Ape = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
--function dO(e) {
++var Vpe = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
++function pO(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = Bpe[e.path] ?? "";
- let n = Dpe[e.path] ?? "";
++ let n = Rpe[e.path] ?? "";
return {
title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],
- pressed: Hpe(e),
- pressed: kpe(e),
++ pressed: Bpe(e),
crumb: n,
- compact: Vpe.has(e.path) || e.section === "configuration",
- compact: Ope.has(e.path) || e.section === "configuration",
++ compact: zpe.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Upe(e.trash),
- text: Ape(e.trash),
++ text: Vpe(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
--var fO = (e) => e.replace(/[&<>"']/g, (e) => ({
++var mO = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
- })[e]), Wpe = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${fO(e)}"/></svg>`, Gpe = "<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 Kpe(e) {
-})[e]), jpe = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${fO(e)}"/></svg>`, Mpe = "<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 Npe(e) {
-- let t = dO(e);
++})[e]), Hpe = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${mO(e)}"/></svg>`, Upe = "<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 Wpe(e) {
++ let t = pO(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${fO(e)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${Wpe(r)}<span>${fO(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${Wpe("chevron-right")}</li><li aria-current="true"><span>${fO(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? Gpe : `<span data-lede-text="">${fO(t.lede.text)}</span>${t.lede.total ? qpe : ""}`}</p>`;
- return `<button type="button" data-manage="${fO(e)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${jpe(r)}<span>${fO(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${jpe("chevron-right")}</li><li aria-current="true"><span>${fO(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? Mpe : `<span data-lede-text="">${fO(t.lede.text)}</span>${t.lede.total ? Ppe : ""}`}</p>`;
-- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${fO(t.title)}</h2>` + i;
++ return `<button type="button" data-manage="${mO(e)}" aria-pressed="${i}"${i ? " aria-current=\"page\"" : ""}>${Hpe(r)}<span>${mO(n)}</span></button>`;
++ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${Hpe("chevron-right")}</li><li aria-current="true"><span>${mO(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? Upe : `<span data-lede-text="">${mO(t.lede.text)}</span>${t.lede.total ? Gpe : ""}`}</p>`;
++ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${mO(t.title)}</h2>` + i;
}
- var qpe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
-var Ppe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
++var Gpe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
//#endregion
//#region src/react/settings-panel/icon.tsx
--function pO({ name: e }) {
++function hO({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- function Jpe({ name: e }) {
-function Fpe({ name: e }) {
++function Kpe({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@@ -32946,37 -32566,37 +32946,37 @@@
}
//#endregion
//#region src/react/manage-header/manage-header-island.tsx
--var mO = null, hO = null, gO = /* @__PURE__ */ new Set();
- function Ype(e) {
-function Ipe(e) {
-- return gO.add(e), () => {
-- gO.delete(e);
++var gO = null, _O = null, vO = /* @__PURE__ */ new Set();
++function qpe(e) {
++ return vO.add(e), () => {
++ vO.delete(e);
};
}
- function Xpe() {
-function Lpe() {
-- for (let e of [...gO]) e();
++function Jpe() {
++ for (let e of [...vO]) e();
}
- var Zpe = { render(e) {
- hO = e, (0, ht.flushSync)(Xpe);
-var Rpe = { render(e) {
- hO = e, (0, gt.flushSync)(Lpe);
++var Ype = { render(e) {
++ _O = e, (0, ht.flushSync)(Jpe);
} };
- function Qpe(e) {
- return mO = e, hO = null, Zpe;
-function zpe(e) {
- return mO = e, hO = null, Rpe;
++function Xpe(e) {
++ return gO = e, _O = null, Ype;
}
- function $pe() {
- let e = (0, S.useSyncExternalStore)(Ype, () => hO);
- return mO && e ? /* @__PURE__ */ (0, C.jsx)(eme, {
-function Bpe() {
- let e = (0, S.useSyncExternalStore)(Ipe, () => hO);
- return mO && e ? /* @__PURE__ */ (0, C.jsx)(Vpe, {
-- host: mO,
++function Zpe() {
++ let e = (0, S.useSyncExternalStore)(qpe, () => _O);
++ return gO && e ? /* @__PURE__ */ (0, C.jsx)(Qpe, {
++ host: gO,
props: e
}) : null;
}
- function eme({ host: e, props: t }) {
-function Vpe({ host: e, props: t }) {
-- let n = dO(t);
++function Qpe({ host: e, props: t }) {
++ let n = pO(t);
return n ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(tme, {
- /* @__PURE__ */ (0, C.jsx)(Hpe, {
++ /* @__PURE__ */ (0, C.jsx)($pe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, C.jsx)(nme, {
- n.crumb ? /* @__PURE__ */ (0, C.jsx)(Upe, {
++ n.crumb ? /* @__PURE__ */ (0, C.jsx)(eme, {
host: e,
label: n.crumb
}) : null,
@@@ -32985,13 -32605,13 +32985,13 @@@
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, C.jsx)(rme, {
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, C.jsx)(Wpe, {
++ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, C.jsx)(tme, {
host: e,
lede: n.lede
})
] }) : null;
}
- function tme({ host: e, pressed: t, menu: n }) {
-function Hpe({ host: e, pressed: t, menu: n }) {
++function $pe({ host: e, pressed: t, menu: n }) {
let r = (0, S.useRef)(null);
return (0, S.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@@ -33012,13 -32632,13 +33012,13 @@@
"aria-pressed": a,
"aria-current": a ? "page" : void 0,
onClick: () => e.openManage(n),
-- children: [/* @__PURE__ */ (0, C.jsx)(pO, { name: i }), /* @__PURE__ */ (0, C.jsx)("span", { children: r })]
++ children: [/* @__PURE__ */ (0, C.jsx)(hO, { name: i }), /* @__PURE__ */ (0, C.jsx)("span", { children: r })]
}, n);
})
})
});
}
- function nme({ host: e, label: t }) {
-function Upe({ host: e, label: t }) {
++function eme({ host: e, label: t }) {
return /* @__PURE__ */ (0, C.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "Breadcrumb",
@@@ -33028,20 -32648,20 +33028,20 @@@
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
-- }), /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-right" })] }), /* @__PURE__ */ (0, C.jsx)("li", {
++ }), /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-right" })] }), /* @__PURE__ */ (0, C.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, C.jsx)("span", { children: t })
})] })
});
}
- function rme({ host: e, lede: t }) {
-function Wpe({ host: e, lede: t }) {
++function tme({ host: e, lede: t }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: Gpe }
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(ime, { text: t.text }), t.total ? /* @__PURE__ */ (0, C.jsx)("button", {
- dangerouslySetInnerHTML: { __html: Mpe }
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Gpe, { text: t.text }), t.total ? /* @__PURE__ */ (0, C.jsx)("button", {
++ dangerouslySetInnerHTML: { __html: Upe }
++ }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(nme, { text: t.text }), t.total ? /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@@ -33051,7 -32671,7 +33051,7 @@@
}) : null] })
});
}
- function ime({ text: e }) {
-function Gpe({ text: e }) {
++function nme({ text: e }) {
let t = (0, S.useRef)(null);
return (0, S.useLayoutEffect)(() => {
Bo(t.current, e);
@@@ -33062,20 -32682,20 +33062,20 @@@
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/url.js
- var ame = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ome = /^[\\/]{2}/;
- function sme(e, t) {
-var Kpe = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, qpe = /^[\\/]{2}/;
-function Jpe(e, t) {
++var rme = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ime = /^[\\/]{2}/;
++function ame(e, t) {
return t + e.replace(/\\/g, "/");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/history.js
- var cme = "popstate";
- function lme(e) {
-var Ype = "popstate";
-function Xpe(e) {
++var ome = "popstate";
++function sme(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
- function ume(e = {}) {
-function Zpe(e = {}) {
++function cme(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
-- return yO("", {
++ return xO("", {
pathname: r,
search: i,
hash: a
@@@ -33086,14 -32706,14 +33086,14 @@@
} : void 0);
}
function n(e, t) {
-- return typeof t == "string" ? t : bO(t);
++ return typeof t == "string" ? t : SO(t);
}
- return pme(t, n, null, e);
- return eme(t, n, null, e);
++ return dme(t, n, null, e);
}
--function _O(e, t) {
++function yO(e, t) {
if (e === !1 || e == null) throw Error(t);
}
--function vO(e, t) {
++function bO(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@@ -33101,10 -32721,10 +33101,10 @@@
} catch {}
}
}
- function dme() {
-function Qpe() {
++function lme() {
return Math.random().toString(36).substring(2, 10);
}
- function fme(e, t) {
-function $pe(e, t) {
++function ume(e, t) {
return {
usr: e.state,
key: e.key,
@@@ -33116,21 -32736,21 +33116,21 @@@
} : void 0
};
}
--function yO(e, t, n = null, r, i) {
++function xO(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
-- ...typeof t == "string" ? xO(t) : t,
++ ...typeof t == "string" ? CO(t) : t,
state: n,
- key: t && t.key || r || dme(),
- key: t && t.key || r || Qpe(),
++ key: t && t.key || r || lme(),
mask: i
};
}
--function bO({ pathname: e = "/", search: t = "", hash: n = "" }) {
++function SO({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
--function xO(e) {
++function CO(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@@ -33140,7 -32760,7 +33140,7 @@@
}
return t;
}
- function pme(e, t, n, r = {}) {
-function eme(e, t, n, r = {}) {
++function dme(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@@ -33160,9 -32780,9 +33160,9 @@@
}
function f(e, t) {
s = "PUSH";
- let r = lme(e) ? e : yO(h.location, e, t);
- let r = Xpe(e) ? e : yO(h.location, e, t);
++ let r = sme(e) ? e : xO(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = fme(r, l), f = h.createHref(r.mask || r);
- let d = $pe(r, l), f = h.createHref(r.mask || r);
++ let d = ume(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@@ -33177,9 -32797,9 +33177,9 @@@
}
function p(e, t) {
s = "REPLACE";
- let r = lme(e) ? e : yO(h.location, e, t);
- let r = Xpe(e) ? e : yO(h.location, e, t);
++ let r = sme(e) ? e : xO(h.location, e, t);
n && n(r, e), l = u();
- let i = fme(r, l), d = h.createHref(r.mask || r);
- let i = $pe(r, l), d = h.createHref(r.mask || r);
++ let i = ume(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@@ -33187,7 -32807,7 +33187,7 @@@
});
}
function m(e) {
- return mme(i, e);
- return tme(i, e);
++ return fme(i, e);
}
let h = {
get action() {
@@@ -33198,8 -32818,8 +33198,8 @@@
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(cme, d), c = e, () => {
- i.removeEventListener(cme, d), c = null;
- return i.addEventListener(Ype, d), c = e, () => {
- i.removeEventListener(Ype, d), c = null;
++ return i.addEventListener(ome, d), c = e, () => {
++ i.removeEventListener(ome, d), c = null;
};
},
createHref(e) {
@@@ -33222,29 -32842,29 +33222,29 @@@
};
return h;
}
- function mme(e, t, n = !1) {
-function tme(e, t, n = !1) {
++function fme(e, t, n = !1) {
let r = "http://localhost";
-- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), _O(r, "No window.location.(origin|href) available to create URL");
-- let i = typeof t == "string" ? t : bO(t);
- return i = i.replace(/ $/, "%20"), !n && ome.test(i) && (i = r + i), new URL(i, r);
- return i = i.replace(/ $/, "%20"), !n && qpe.test(i) && (i = r + i), new URL(i, r);
++ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), yO(r, "No window.location.(origin|href) available to create URL");
++ let i = typeof t == "string" ? t : SO(t);
++ return i = i.replace(/ $/, "%20"), !n && ime.test(i) && (i = r + i), new URL(i, r);
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/utils.js
- function hme(e, t, n = "/") {
- return gme(e, t, n, !1);
-function nme(e, t, n = "/") {
- return rme(e, t, n, !1);
++function pme(e, t, n = "/") {
++ return mme(e, t, n, !1);
}
- function gme(e, t, n, r, i) {
-function rme(e, t, n, r, i) {
-- let a = CO((typeof t == "string" ? xO(t) : t).pathname || "/", n);
++function mme(e, t, n, r, i) {
++ let a = TO((typeof t == "string" ? CO(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? _me(e), s = null, c = Fme(a);
- for (let e = 0; s == null && e < o.length; ++e) s = Mme(o[e], c, r);
- let o = i ?? ime(e), s = null, c = Sme(a);
- for (let e = 0; s == null && e < o.length; ++e) s = yme(o[e], c, r);
++ let o = i ?? hme(e), s = null, c = Nme(a);
++ for (let e = 0; s == null && e < o.length; ++e) s = Ame(o[e], c, r);
return s;
}
- function _me(e) {
- let t = vme(e);
- return bme(t), t;
-function ime(e) {
- let t = ame(e);
- return sme(t), t;
++function hme(e) {
++ let t = gme(e);
++ return vme(t), t;
}
- function vme(e, t = [], n = [], r = "", i = !1) {
-function ame(e, t = [], n = [], r = "", i = !1) {
++function gme(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@@ -33254,14 -32874,14 +33254,14 @@@
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
-- _O(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
++ yO(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
-- let l = TO([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (_O(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), vme(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
- e.children && e.children.length > 0 && (_O(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ame(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
++ let l = DO([r, c.relativePath]), u = n.concat(c);
++ e.children && e.children.length > 0 && (yO(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), gme(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: Ame(l, e.index),
- score: _me(l, e.index),
++ score: Ome(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = Pme(e.relativePath, e.caseSensitive, t === u.length - 1);
- let [n, r] = xme(e.relativePath, e.caseSensitive, t === u.length - 1);
++ let [n, r] = Mme(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@@ -33272,68 -32892,68 +33272,68 @@@
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of yme(e.path)) a(e, t, !0, n);
- else for (let n of ome(e.path)) a(e, t, !0, n);
++ else for (let n of _me(e.path)) a(e, t, !0, n);
}), t;
}
- function yme(e) {
-function ome(e) {
++function _me(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = yme(r.join("/")), s = [];
- let o = ome(r.join("/")), s = [];
++ let o = _me(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
- function bme(e) {
- e.sort((e, t) => e.score === t.score ? jme(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
-function sme(e) {
- e.sort((e, t) => e.score === t.score ? vme(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
++function vme(e) {
++ e.sort((e, t) => e.score === t.score ? kme(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
- var xme = /^:[\w-]+$/, Sme = /^:[\w-]+/, Cme = 3.5, wme = 3, Tme = 2, Eme = 1, Dme = 10, Ome = -2, kme = (e) => e === "*";
- function Ame(e, t) {
-var cme = /^:[\w-]+$/, lme = /^:[\w-]+/, ume = 3.5, dme = 3, fme = 2, pme = 1, mme = 10, hme = -2, gme = (e) => e === "*";
-function _me(e, t) {
++var yme = /^:[\w-]+$/, bme = /^:[\w-]+/, xme = 3.5, Sme = 3, Cme = 2, wme = 1, Tme = 10, Eme = -2, Dme = (e) => e === "*";
++function Ome(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(kme) && (r += Ome), t && (r += Tme), n.filter((e) => !kme(e)).reduce((e, t) => e + (xme.test(t) ? wme : Sme.test(t) ? Cme : t === "" ? Eme : Dme), r);
- return n.some(gme) && (r += hme), t && (r += fme), n.filter((e) => !gme(e)).reduce((e, t) => e + (cme.test(t) ? dme : lme.test(t) ? ume : t === "" ? pme : mme), r);
++ return n.some(Dme) && (r += Eme), t && (r += Cme), n.filter((e) => !Dme(e)).reduce((e, t) => e + (yme.test(t) ? Sme : bme.test(t) ? xme : t === "" ? wme : Tme), r);
}
- function jme(e, t) {
-function vme(e, t) {
++function kme(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
- function Mme(e, t, n = !1) {
-function yme(e, t, n = !1) {
++function Ame(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? Nme(u, l, s.matcher, s.compiledParams) : SO(u, l), f = s.route;
- }, d = s.matcher && s.compiledParams ? bme(u, l, s.matcher, s.compiledParams) : SO(u, l), f = s.route;
-- if (!d && c && n && !r[r.length - 1].route.index && (d = SO({
++ }, d = s.matcher && s.compiledParams ? jme(u, l, s.matcher, s.compiledParams) : wO(u, l), f = s.route;
++ if (!d && c && n && !r[r.length - 1].route.index && (d = wO({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
-- pathname: TO([a, d.pathname]),
- pathnameBase: Hme(TO([a, d.pathnameBase])),
- pathnameBase: kme(TO([a, d.pathnameBase])),
++ pathname: DO([a, d.pathname]),
++ pathnameBase: Bme(DO([a, d.pathnameBase])),
route: f
-- }), d.pathnameBase !== "/" && (a = TO([a, d.pathnameBase]));
++ }), d.pathnameBase !== "/" && (a = DO([a, d.pathnameBase]));
}
return o;
}
--function SO(e, t) {
++function wO(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = Pme(e.path, e.caseSensitive, e.end);
- return Nme(e, t, n, r);
- let [n, r] = xme(e.path, e.caseSensitive, e.end);
- return bme(e, t, n, r);
++ let [n, r] = Mme(e.path, e.caseSensitive, e.end);
++ return jme(e, t, n, r);
}
- function Nme(e, t, n, r) {
-function bme(e, t, n, r) {
++function jme(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
-- let a = i[0], o = EO(a, 1), s = i.slice(1);
++ let a = i[0], o = OO(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
-- o = EO(a.slice(0, a.length - e.length), 1);
++ o = OO(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@@ -33343,8 -32963,8 +33343,8 @@@
pattern: e
};
}
- function Pme(e, t = !1, n = !0) {
-function xme(e, t = !1, n = !0) {
-- vO(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
++function Mme(e, t = !1, n = !0) {
++ bO(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@@ -33357,46 -32977,46 +33357,46 @@@
}).replace(/\/([\w-]+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
- function Fme(e) {
-function Sme(e) {
++function Nme(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
-- return vO(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
++ return bO(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
--function CO(e, t) {
++function TO(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
- function Ime(e, t = "/") {
-function Cme(e, t = "/") {
-- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? xO(e) : e, a;
- return n ? (n = Vme(n), a = n.startsWith("/") || n.startsWith("\\") ? Lme(n.substring(1), "/") : Lme(n, t)) : a = t, {
- return n ? (n = Ome(n), a = n.startsWith("/") || n.startsWith("\\") ? wme(n.substring(1), "/") : wme(n, t)) : a = t, {
++function Pme(e, t = "/") {
++ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? CO(e) : e, a;
++ return n ? (n = zme(n), a = n.startsWith("/") || n.startsWith("\\") ? Fme(n.substring(1), "/") : Fme(n, t)) : a = t, {
pathname: a,
- search: Ume(r),
- hash: Wme(i)
- search: Ame(r),
- hash: jme(i)
++ search: Vme(r),
++ hash: Hme(i)
};
}
- function Lme(e, t) {
-function wme(e, t) {
-- let n = EO(t).split("/");
++function Fme(e, t) {
++ let n = OO(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
--function wO(e, t, n, r) {
++function EO(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
- function Rme(e) {
-function Tme(e) {
++function Ime(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
- function zme(e) {
- let t = Rme(e);
-function Eme(e) {
- let t = Tme(e);
++function Lme(e) {
++ let t = Ime(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
- function Bme(e, t, n, r = !1) {
-function Dme(e, t, n, r = !1) {
++function Rme(e, t, n, r = !1) {
let i;
-- typeof e == "string" ? i = xO(e) : (i = { ...e }, _O(!i.pathname || !i.pathname.includes("?"), wO("?", "pathname", "search", i)), _O(!i.pathname || !i.pathname.includes("#"), wO("#", "pathname", "hash", i)), _O(!i.search || !i.search.includes("#"), wO("#", "search", "hash", i)));
++ typeof e == "string" ? i = CO(e) : (i = { ...e }, yO(!i.pathname || !i.pathname.includes("?"), EO("?", "pathname", "search", i)), yO(!i.pathname || !i.pathname.includes("#"), EO("#", "pathname", "hash", i)), yO(!i.search || !i.search.includes("#"), EO("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@@ -33408,16 -33028,16 +33408,16 @@@
}
s = e >= 0 ? t[e] : "/";
}
- let c = Ime(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
- let c = Cme(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
++ let c = Pme(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
- var Vme = (e) => e.replace(/[\\/]{2,}/g, "/"), TO = (e) => Vme(e.join("/"));
-var Ome = (e) => e.replace(/[\\/]{2,}/g, "/"), TO = (e) => Ome(e.join("/"));
--function EO(e, t = 0) {
++var zme = (e) => e.replace(/[\\/]{2,}/g, "/"), DO = (e) => zme(e.join("/"));
++function OO(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
- var Hme = (e) => EO(e).replace(/^\/*/, "/"), Ume = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Wme = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Gme = class {
-var kme = (e) => EO(e).replace(/^\/*/, "/"), Ame = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, jme = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Mme = class {
++var Bme = (e) => OO(e).replace(/^\/*/, "/"), Vme = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Hme = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ume = class {
status;
statusText;
data;
@@@ -33427,26 -33047,26 +33427,26 @@@
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
- function Kme(e) {
-function Nme(e) {
++function Wme(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
- function qme(e) {
-function Pme(e) {
-- return TO(e.map((e) => e.route.path).filter(Boolean)) || "/";
++function Gme(e) {
++ return DO(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
- var Jme = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
- function Yme(e, t) {
-var Fme = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function Ime(e, t) {
++var Kme = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
++function qme(e, t) {
let n = e;
- if (typeof n != "string" || !ame.test(n)) return {
- if (typeof n != "string" || !Kpe.test(n)) return {
++ if (typeof n != "string" || !rme.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (Jme) try {
- let e = new URL(window.location.href), r = ome.test(n) ? new URL(sme(n, e.protocol)) : new URL(n), a = CO(r.pathname, t);
- if (Fme) try {
- let e = new URL(window.location.href), r = qpe.test(n) ? new URL(Jpe(n, e.protocol)) : new URL(n), a = CO(r.pathname, t);
++ if (Kme) try {
++ let e = new URL(window.location.href), r = ime.test(n) ? new URL(ame(n, e.protocol)) : new URL(n), a = TO(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
-- vO(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
++ bO(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@@ -33456,45 -33076,45 +33456,45 @@@
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/navigation.js
- var Xme = new URL("http://localhost");
- function Zme(e) {
-var Lme = new URL("http://localhost");
-function Rme(e) {
++var Jme = new URL("http://localhost");
++function Yme(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), Xme);
- return new URL(e.createHref("/"), Lme);
++ return new URL(e.createHref("/"), Jme);
} catch {
- return Xme;
- return Lme;
++ return Jme;
}
}
--function DO(e, t) {
++function kO(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
- function Qme(e, t) {
-function zme(e, t) {
++function Xme(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
- function $me(e, t, n, r) {
-function Bme(e, t, n, r) {
++function Zme(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
-- let a = new URL(t, n), o = i != null && !DO(i, n), s = !DO(a, n);
++ let a = new URL(t, n), o = i != null && !kO(i, n), s = !kO(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Qme(e, i) || !DO(i, a))) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !zme(e, i) || !DO(i, a))) throw Error("External navigation is not allowed");
++ } else if (s && (i == null || !Xme(e, i) || !kO(i, a))) throw Error("External navigation is not allowed");
}
//#endregion
//#region node_modules/react-router/dist/production/lib/router/router.js
- var ehe = [
-var Vme = [
++var Qme = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
- new Set(ehe);
- var the = ["GET", ...ehe];
- new Set(the);
- var nhe = [
-new Set(Vme);
-var Hme = ["GET", ...Vme];
-new Set(Hme);
-var Ume = [
++new Set(Qme);
++var $me = ["GET", ...Qme];
++new Set($me);
++var ehe = [
"about:",
"blob:",
"chrome:",
@@@ -33506,85 -33126,85 +33506,85 @@@
"filesystem:",
"javascript:"
];
- function rhe(e) {
-function Wme(e) {
++function the(e) {
try {
- return nhe.includes(new URL(e).protocol);
- return Ume.includes(new URL(e).protocol);
++ return ehe.includes(new URL(e).protocol);
} catch {
return !1;
}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/context.js
--var OO = S.createContext(null);
--OO.displayName = "DataRouter";
- var ihe = S.createContext(null);
- ihe.displayName = "DataRouterState";
- var ahe = S.createContext(null);
- ahe.displayName = "DataRouterData";
- var ohe = S.createContext(null);
- ohe.displayName = "DataRouterNavigation";
- var she = S.createContext(!1), che = S.createContext({ isTransitioning: !1 });
- che.displayName = "ViewTransition";
- var lhe = S.createContext(null);
- lhe.displayName = "Fetchers";
- var uhe = S.createContext(null);
- uhe.displayName = "Await";
-var Gme = S.createContext(null);
-Gme.displayName = "DataRouterState";
-var Kme = S.createContext(null);
-Kme.displayName = "DataRouterData";
-var qme = S.createContext(null);
-qme.displayName = "DataRouterNavigation";
-var Jme = S.createContext(!1), Yme = S.createContext({ isTransitioning: !1 });
-Yme.displayName = "ViewTransition";
-var Xme = S.createContext(null);
-Xme.displayName = "Fetchers";
-var Zme = S.createContext(null);
-Zme.displayName = "Await";
--var kO = S.createContext(null);
--kO.displayName = "Navigation";
var AO = S.createContext(null);
--AO.displayName = "Location";
--var jO = S.createContext({
++AO.displayName = "DataRouter";
++var nhe = S.createContext(null);
++nhe.displayName = "DataRouterState";
++var rhe = S.createContext(null);
++rhe.displayName = "DataRouterData";
++var ihe = S.createContext(null);
++ihe.displayName = "DataRouterNavigation";
++var ahe = S.createContext(!1), ohe = S.createContext({ isTransitioning: !1 });
++ohe.displayName = "ViewTransition";
++var she = S.createContext(null);
++she.displayName = "Fetchers";
++var che = S.createContext(null);
++che.displayName = "Await";
++var jO = S.createContext(null);
++jO.displayName = "Navigation";
++var MO = S.createContext(null);
++MO.displayName = "Location";
++var NO = S.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
--jO.displayName = "Route";
--var MO = S.createContext(!1);
--MO.displayName = "IsDataRoute";
--var NO = S.createContext(void 0);
--NO.displayName = "RouteId";
--var PO = S.createContext(null);
--PO.displayName = "RouteError";
++NO.displayName = "Route";
++var PO = S.createContext(!1);
++PO.displayName = "IsDataRoute";
++var FO = S.createContext(void 0);
++FO.displayName = "RouteId";
++var IO = S.createContext(null);
++IO.displayName = "RouteError";
//#endregion
//#region node_modules/react-router/dist/production/lib/errors.js
- var dhe = "REACT_ROUTER_ERROR", fhe = "REDIRECT", phe = "ROUTE_ERROR_RESPONSE";
- function mhe(e) {
- if (e.startsWith(`${dhe}:${fhe}:{`)) try {
-var Qme = "REACT_ROUTER_ERROR", $me = "REDIRECT", ehe = "ROUTE_ERROR_RESPONSE";
-function the(e) {
- if (e.startsWith(`${Qme}:${$me}:{`)) try {
++var lhe = "REACT_ROUTER_ERROR", uhe = "REDIRECT", dhe = "ROUTE_ERROR_RESPONSE";
++function fhe(e) {
++ if (e.startsWith(`${lhe}:${uhe}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
- function hhe(e) {
- if (e.startsWith(`${dhe}:${phe}:{`)) try {
-function nhe(e) {
- if (e.startsWith(`${Qme}:${ehe}:{`)) try {
++function phe(e) {
++ if (e.startsWith(`${lhe}:${dhe}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Gme(t.status, t.statusText, t.data);
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Mme(t.status, t.statusText, t.data);
++ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ume(t.status, t.statusText, t.data);
} catch {}
}
//#endregion
//#region node_modules/react-router/dist/production/lib/hooks.js
--function FO() {
-- return S.useContext(AO) != null;
++function LO() {
++ return S.useContext(MO) != null;
}
--function IO() {
-- return _O(FO(), "useLocation() may be used only in the context of a <Router> component."), S.useContext(AO).location;
++function RO() {
++ return yO(LO(), "useLocation() may be used only in the context of a <Router> component."), S.useContext(MO).location;
}
- var ghe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
- function _he() {
- return S.useContext(MO) ? Mhe() : vhe();
-var rhe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function ihe() {
- return S.useContext(MO) ? yhe() : ahe();
++var mhe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
++function hhe() {
++ return S.useContext(PO) ? Ahe() : ghe();
}
- function vhe() {
-function ahe() {
-- _O(FO(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = S.useContext(OO), { basename: t, navigator: n } = S.useContext(kO), { matches: r } = S.useContext(jO), { pathname: i } = IO(), a = JSON.stringify(zme(r)), o = S.useRef(!1);
- let e = S.useContext(OO), { basename: t, navigator: n } = S.useContext(kO), { matches: r } = S.useContext(jO), { pathname: i } = IO(), a = JSON.stringify(Eme(r)), o = S.useRef(!1);
++function ghe() {
++ yO(LO(), "useNavigate() may be used only in the context of a <Router> component.");
++ let e = S.useContext(AO), { basename: t, navigator: n } = S.useContext(jO), { matches: r } = S.useContext(NO), { pathname: i } = RO(), a = JSON.stringify(Lme(r)), o = S.useRef(!1);
return S.useLayoutEffect(() => {
o.current = !0;
}), S.useCallback((r, s = {}) => {
- if (vO(o.current, ghe), !o.current) return;
- if (vO(o.current, rhe), !o.current) return;
++ if (bO(o.current, mhe), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = Bme(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : TO([t, c.pathname])), $me(typeof r == "string" ? r : bO(r), n.createHref(c), Zme(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
- let c = Dme(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : TO([t, c.pathname])), Bme(typeof r == "string" ? r : bO(r), n.createHref(c), Rme(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
++ let c = Rme(r, JSON.parse(a), i, s.relative === "path");
++ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : DO([t, c.pathname])), Zme(typeof r == "string" ? r : SO(r), n.createHref(c), Yme(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@@ -33594,19 -33214,19 +33594,19 @@@
]);
}
S.createContext(null);
- function yhe(e, t) {
- return bhe(e, t);
-function ohe(e, t) {
- return she(e, t);
++function _he(e, t) {
++ return vhe(e, t);
}
- function bhe(e, t, n) {
-function she(e, t, n) {
-- _O(FO(), "useRoutes() may be used only in the context of a <Router> component.");
-- let { navigator: r } = S.useContext(kO), { matches: i } = S.useContext(jO), a = i[i.length - 1], o = a ? a.params : {};
++function vhe(e, t, n) {
++ yO(LO(), "useRoutes() may be used only in the context of a <Router> component.");
++ let { navigator: r } = S.useContext(jO), { matches: i } = S.useContext(NO), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
-- let c = IO(), l;
++ let c = RO(), l;
if (t) {
-- let e = typeof t == "string" ? xO(t) : t;
-- _O(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
++ let e = typeof t == "string" ? CO(t) : t;
++ yO(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@@ -33614,13 -33234,13 +33614,13 @@@
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : hme(e, { pathname: d });
- let p = Ehe(f && f.map((e) => Object.assign({}, e, {
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : nme(e, { pathname: d });
- let p = phe(f && f.map((e) => Object.assign({}, e, {
++ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : pme(e, { pathname: d });
++ let p = whe(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
-- pathname: TO([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
-- pathnameBase: e.pathnameBase === "/" ? s : TO([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
++ pathname: DO([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
++ pathnameBase: e.pathnameBase === "/" ? s : DO([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
-- return t && p ? /* @__PURE__ */ S.createElement(AO.Provider, { value: {
++ return t && p ? /* @__PURE__ */ S.createElement(MO.Provider, { value: {
location: {
pathname: "/",
search: "",
@@@ -33633,14 -33253,14 +33633,14 @@@
navigationType: "POP"
} }, p) : p;
}
- function xhe() {
- let e = jhe(), t = Kme(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
-function che() {
- let e = vhe(), t = Nme(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
++function yhe() {
++ let e = khe(), t = Wme(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ S.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ S.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
- var She = /* @__PURE__ */ S.createElement(xhe, null), Che = class extends S.Component {
-var lhe = /* @__PURE__ */ S.createElement(che, null), uhe = class extends S.Component {
++var bhe = /* @__PURE__ */ S.createElement(yhe, null), xhe = class extends S.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@@ -33648,7 -33268,7 +33648,7 @@@
error: e.error
};
}
- static contextType = she;
- static contextType = Jme;
++ static contextType = ahe;
static getDerivedStateFromError(e) {
return { error: e };
}
@@@ -33669,30 -33289,30 +33669,30 @@@
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = hhe(e.digest);
- let t = nhe(e.digest);
++ let t = phe(e.digest);
t && (e = t);
}
-- let t = e === void 0 ? this.props.children : /* @__PURE__ */ S.createElement(jO.Provider, { value: this.props.routeContext }, /* @__PURE__ */ S.createElement(MO.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ S.createElement(NO.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ S.createElement(PO.Provider, {
++ let t = e === void 0 ? this.props.children : /* @__PURE__ */ S.createElement(NO.Provider, { value: this.props.routeContext }, /* @__PURE__ */ S.createElement(PO.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ S.createElement(FO.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ S.createElement(IO.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ S.createElement(whe, { error: e }, t) : t;
- return this.context ? /* @__PURE__ */ S.createElement(dhe, { error: e }, t) : t;
++ return this.context ? /* @__PURE__ */ S.createElement(She, { error: e }, t) : t;
}
--}, LO = /* @__PURE__ */ new WeakMap();
- function whe({ children: e, error: t }) {
-function dhe({ children: e, error: t }) {
-- let { basename: n, navigator: r } = S.useContext(kO);
++}, zO = /* @__PURE__ */ new WeakMap();
++function She({ children: e, error: t }) {
++ let { basename: n, navigator: r } = S.useContext(jO);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = mhe(t.digest);
- let e = the(t.digest);
++ let e = fhe(t.digest);
if (e) {
-- let i = LO.get(t);
++ let i = zO.get(t);
if (i) throw i;
- let a = Yme(e.location, n), o = a.absoluteURL || a.to;
- if ($me(e.location, o, Zme(r), "allow-explicit"), rhe(o)) throw Error("Invalid redirect location");
- if (Jme && !LO.get(t)) {
- let a = Ime(e.location, n), o = a.absoluteURL || a.to;
- if (Bme(e.location, o, Rme(r), "allow-explicit"), Wme(o)) throw Error("Invalid redirect location");
- if (Fme && !LO.get(t)) {
++ let a = qme(e.location, n), o = a.absoluteURL || a.to;
++ if (Zme(e.location, o, Yme(r), "allow-explicit"), the(o)) throw Error("Invalid redirect location");
++ if (Kme && !zO.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
-- throw LO.set(t, n), n;
++ throw zO.set(t, n), n;
}
}
return /* @__PURE__ */ S.createElement("meta", {
@@@ -33703,11 -33323,11 +33703,11 @@@
}
return e;
}
- function The({ routeContext: e, match: t, children: n }) {
-function fhe({ routeContext: e, match: t, children: n }) {
-- let r = S.useContext(OO);
-- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ S.createElement(jO.Provider, { value: e }, /* @__PURE__ */ S.createElement(MO.Provider, { value: e.isDataRoute }, /* @__PURE__ */ S.createElement(NO.Provider, { value: t.route.id }, n)));
++function Che({ routeContext: e, match: t, children: n }) {
++ let r = S.useContext(AO);
++ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ S.createElement(NO.Provider, { value: e }, /* @__PURE__ */ S.createElement(PO.Provider, { value: e.isDataRoute }, /* @__PURE__ */ S.createElement(FO.Provider, { value: t.route.id }, n)));
}
- function Ehe(e, t = [], n) {
-function phe(e, t = [], n) {
++function whe(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@@ -33718,7 -33338,7 +33718,7 @@@
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
-- _O(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
++ yO(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@@ -33738,16 -33358,16 +33738,16 @@@
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: qme(r.matches),
- pattern: Pme(r.matches),
++ pattern: Gme(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || She, o && (s < 0 && c === 0 ? (Phe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || lhe, o && (s < 0 && c === 0 ? (xhe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
++ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || bhe, o && (s < 0 && c === 0 ? (Mhe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ S.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ S.createElement(The, {
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ S.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ S.createElement(fhe, {
++ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ S.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ S.createElement(Che, {
match: n,
routeContext: {
outlet: e,
@@@ -33757,7 -33377,7 +33757,7 @@@
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ S.createElement(Che, {
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ S.createElement(uhe, {
++ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ S.createElement(xhe, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@@ -33772,44 -33392,44 +33772,44 @@@
}) : h();
}, null);
}
- function Dhe(e) {
-function mhe(e) {
++function The(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
- function Ohe(e) {
-function hhe(e) {
-- let t = S.useContext(OO);
- return _O(t, Dhe(e)), t;
- return _O(t, mhe(e)), t;
++function Ehe(e) {
++ let t = S.useContext(AO);
++ return yO(t, The(e)), t;
}
- function khe(e) {
- let t = S.useContext(ahe);
- return _O(t, Dhe(e)), t;
-function ghe(e) {
- let t = S.useContext(Kme);
- return _O(t, mhe(e)), t;
++function Dhe(e) {
++ let t = S.useContext(rhe);
++ return yO(t, The(e)), t;
}
- function Ahe(e) {
-function _he(e) {
-- let t = S.useContext(NO);
-- return _O(t, `${e} can only be used on routes that contain a unique "id"`), t;
++function Ohe(e) {
++ let t = S.useContext(FO);
++ return yO(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
- function jhe() {
- let e = S.useContext(PO), t = khe("useRouteError"), n = Ahe("useRouteError");
-function vhe() {
- let e = S.useContext(PO), t = ghe("useRouteError"), n = _he("useRouteError");
++function khe() {
++ let e = S.useContext(IO), t = Dhe("useRouteError"), n = Ohe("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
- function Mhe() {
- let { router: e } = Ohe("useNavigate"), t = Ahe("useNavigate"), n = S.useRef(!1);
-function yhe() {
- let { router: e } = hhe("useNavigate"), t = _he("useNavigate"), n = S.useRef(!1);
++function Ahe() {
++ let { router: e } = Ehe("useNavigate"), t = Ohe("useNavigate"), n = S.useRef(!1);
return S.useLayoutEffect(() => {
n.current = !0;
}), S.useCallback(async (r, i = {}) => {
- vO(n.current, ghe), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
- vO(n.current, rhe), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
++ bO(n.current, mhe), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
- var Nhe = {};
- function Phe(e, t, n) {
- !t && !Nhe[e] && (Nhe[e] = !0, vO(!1, n));
-var bhe = {};
-function xhe(e, t, n) {
- !t && !bhe[e] && (bhe[e] = !0, vO(!1, n));
++var jhe = {};
++function Mhe(e, t, n) {
++ !t && !jhe[e] && (jhe[e] = !0, bO(!1, n));
}
- S.memo(Fhe);
- function Fhe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
-S.memo(She);
-function She({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
-- let a = S.useContext(OO);
- return _O(a, "You must render this element inside a <DataRouterContext.Provider> element"), bhe(e, void 0, {
- return _O(a, "You must render this element inside a <DataRouterContext.Provider> element"), she(e, void 0, {
++S.memo(Nhe);
++function Nhe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
++ let a = S.useContext(AO);
++ return yO(a, "You must render this element inside a <DataRouterContext.Provider> element"), vhe(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@@ -33817,11 -33437,11 +33817,11 @@@
onError: i
});
}
--function RO(e) {
-- _O(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
++function BO(e) {
++ yO(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
- function Ihe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
-function Che({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
-- _O(!FO(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
++function Phe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
++ yO(!LO(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = S.useMemo(() => ({
basename: s,
navigator: i,
@@@ -33834,9 -33454,9 +33834,9 @@@
a,
o
]);
-- typeof n == "string" && (n = xO(n));
++ typeof n == "string" && (n = CO(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = S.useMemo(() => {
-- let e = CO(l, s);
++ let e = TO(l, s);
return e == null ? null : {
location: {
pathname: e,
@@@ -33858,27 -33478,27 +33858,27 @@@
r,
m
]);
-- return vO(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ S.createElement(kO.Provider, { value: c }, /* @__PURE__ */ S.createElement(AO.Provider, {
++ return bO(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ S.createElement(jO.Provider, { value: c }, /* @__PURE__ */ S.createElement(MO.Provider, {
children: t,
value: h
}));
}
--function zO({ children: e, location: t }) {
- return yhe(BO(e), t);
- return ohe(BO(e), t);
++function VO({ children: e, location: t }) {
++ return _he(HO(e), t);
}
S.Component;
--function BO(e, t = []) {
++function HO(e, t = []) {
let n = [];
return S.Children.forEach(e, (e, r) => {
if (!S.isValidElement(e)) return;
let i = [...t, r];
if (e.type === S.Fragment) {
-- n.push.apply(n, BO(e.props.children, i));
++ n.push.apply(n, HO(e.props.children, i));
return;
}
-- _O(e.type === RO, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
++ yO(e.type === BO, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
-- _O(!a.index || !a.children, "An index route cannot have child routes.");
++ yO(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@@ -33897,55 -33517,55 +33897,55 @@@
handle: a.handle,
lazy: a.lazy
};
-- a.children && (o.children = BO(a.children, i)), n.push(o);
++ a.children && (o.children = HO(a.children, i)), n.push(o);
}), n;
}
//#endregion
//#region src/history/settings-route.ts
--var VO = {
++var UO = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
--}, HO = {
++}, WO = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
network: "网络与访问",
maintenance: "应用与维护"
};
- function Lhe(e) {
-function whe(e) {
-- return HO[e.split("/")[2]] || HO.library;
++function Fhe(e) {
++ return WO[e.split("/")[2]] || WO.library;
}
--var UO = ["/settings", ...Object.keys(VO).map((e) => `/settings/${e}`)], WO = (e) => UO.includes(e);
- function Rhe(e) {
-function The(e) {
-- return VO[e.split("/")[2]] || VO.appearance;
++var GO = ["/settings", ...Object.keys(UO).map((e) => `/settings/${e}`)], KO = (e) => GO.includes(e);
++function Ihe(e) {
++ return UO[e.split("/")[2]] || UO.appearance;
}
--function GO(e) {
++function qO(e) {
return `/settings/${Object.entries({
-- ...VO,
-- ...HO
++ ...UO,
++ ...WO
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
--var KO = (e) => {
++var JO = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
--}, qO = [
++}, YO = [
"/assets/:id",
"/posts/:id",
"/works/:code"
- ], zhe = [
-], Ehe = [
++], Lhe = [
"mix",
"parts",
"editions",
"playlist"
];
- function Bhe(e, t = "") {
-function Dhe(e, t = "") {
++function Rhe(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
-- for (let n of qO) {
-- let r = SO(n, e);
++ for (let n of YO) {
++ let r = wO(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@@ -33962,7 -33582,7 +33962,7 @@@
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = zhe.filter((t) => e.has(t));
- let e = new URLSearchParams(t), r = Ehe.filter((t) => e.has(t));
++ let e = new URLSearchParams(t), r = Lhe.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@@ -33986,42 -33606,42 +33986,42 @@@
}
return null;
}
- var Vhe = (e, t = "") => Bhe(e, t)?.target ?? null, JO = (e) => WO(e.split(/[?#]/)[0]) || qO.some((t) => SO(t, e.split(/[?#]/)[0]) !== null);
-var Ohe = (e, t = "") => Dhe(e, t)?.target ?? null, JO = (e) => WO(e.split(/[?#]/)[0]) || qO.some((t) => SO(t, e.split(/[?#]/)[0]) !== null);
--function YO(e) {
++var zhe = (e, t = "") => Rhe(e, t)?.target ?? null, XO = (e) => KO(e.split(/[?#]/)[0]) || YO.some((t) => wO(t, e.split(/[?#]/)[0]) !== null);
++function ZO(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
search: typeof t.search == "string" ? t.search : ""
} : null;
}
--var XO = null, ZO = null;
--function QO() {
++var QO = null, $O = null;
++function ek() {
let { pathname: e, search: t } = window.location;
-- JO(e) || (XO = {
++ XO(e) || (QO = {
pathname: e,
search: t
});
}
--function $O() {
-- XO = null, ZO = null;
++function tk() {
++ QO = null, $O = null;
}
- function Hhe(e) {
-function khe(e) {
-- let t = YO(e);
-- t && (XO = t, ZO = t.pathname + t.search);
++function Bhe(e) {
++ let t = ZO(e);
++ t && (QO = t, $O = t.pathname + t.search);
}
--function ek() {
-- let e = ZO;
-- return ZO = null, e;
++function nk() {
++ let e = $O;
++ return $O = null, e;
}
--function tk(e) {
-- return XO ? {
-- backgroundLocation: { ...XO },
++function rk(e) {
++ return QO ? {
++ backgroundLocation: { ...QO },
overlay: e
} : void 0;
}
//#endregion
//#region src/history/canonical-path.ts
--function nk(e) {
++function ik(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@@ -34044,16 -33664,16 +34044,16 @@@
}
//#endregion
//#region src/history/route-meta.ts
--var rk = {
++var ak = {
"/settings": {
title: "设置",
refresh: "skip"
},
-- ...Object.fromEntries(Object.entries(VO).map(([e, t]) => [`/settings/${e}`, {
++ ...Object.fromEntries(Object.entries(UO).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
-- ...Object.fromEntries(Object.entries(HO).map(([e, t]) => [`/settings/${e}`, {
++ ...Object.fromEntries(Object.entries(WO).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@@ -34189,14 -33809,14 +34189,14 @@@
title: "播放墙"
}
};
--function ik(e) {
-- if (Object.hasOwn(rk, e)) return rk[e];
- let t = Bhe(e);
- let t = Dhe(e);
-- if (t) return rk[t.path];
++function ok(e) {
++ if (Object.hasOwn(ak, e)) return ak[e];
++ let t = Rhe(e);
++ if (t) return ak[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
-- if (!r.length) return Object.hasOwn(rk, `/${n}`) ? rk[`/${n}`] : null;
- let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? Ct({
++ if (!r.length) return Object.hasOwn(ak, `/${n}`) ? ak[`/${n}`] : null;
+ let i = `/${n}/*`, a = /^\d+$/.test(r.join("/")) ? St({
performers: "performer",
studios: "studio",
creators: "creator",
@@@ -34204,126 -33824,126 +34204,126 @@@
series: "series",
tags: "tag"
}[n] || "", Number(r[0])) : r.join("/");
-- return Object.hasOwn(rk, i) ? {
-- ...rk[i],
++ return Object.hasOwn(ak, i) ? {
++ ...ak[i],
title: a || "资料"
} : null;
}
//#endregion
//#region src/history/managed.ts
- var Uhe = () => {}, Whe = new Promise((e) => {
- Uhe = e;
-var Ahe = () => {}, jhe = new Promise((e) => {
- Ahe = e;
++var Vhe = () => {}, Hhe = new Promise((e) => {
++ Vhe = e;
});
- Whe.catch(() => {});
- var Ghe = null, ak = /* @__PURE__ */ new Map(), ok = /* @__PURE__ */ new Map(), Khe = 0, sk = /* @__PURE__ */ new Set();
- function qhe(e) {
- Uhe(e);
-jhe.catch(() => {});
-var Mhe = null, ak = /* @__PURE__ */ new Map(), ok = /* @__PURE__ */ new Map(), Nhe = 0, sk = /* @__PURE__ */ new Set();
-function Phe(e) {
- Ahe(e);
++Hhe.catch(() => {});
++var Uhe = null, sk = /* @__PURE__ */ new Map(), ck = /* @__PURE__ */ new Map(), Whe = 0, lk = /* @__PURE__ */ new Set();
++function Ghe(e) {
++ Vhe(e);
}
--function ck(e) {
-- return ak.get(e) ?? null;
++function uk(e) {
++ return sk.get(e) ?? null;
}
--function lk(e) {
-- return !!e && (ak.has(e) || ok.has(e));
++function dk(e) {
++ return !!e && (sk.has(e) || ck.has(e));
}
--var uk = () => [...ak.values()];
- function Jhe(e) {
-function Fhe(e) {
-- return sk.add(e), () => {
-- sk.delete(e);
++var fk = () => [...sk.values()];
++function Khe(e) {
++ return lk.add(e), () => {
++ lk.delete(e);
};
}
--function dk(e) {
-- let t = uk();
-- for (let n of [...sk]) n(t, e);
++function pk(e) {
++ let t = fk();
++ for (let n of [...lk]) n(t, e);
}
--async function fk(e, t, n) {
++async function mk(e, t, n) {
let { container: r } = n;
-- if (mk(r), !n.isCurrent()) return !1;
- Khe += 1;
- Nhe += 1;
++ if (gk(r), !n.isCurrent()) return !1;
++ Whe += 1;
let i = {
- revision: Khe,
- revision: Nhe,
++ revision: Whe,
controller: new AbortController()
};
-- ok.set(r, i);
- let a = Ghe;
- Ghe = null, a?.();
- let o = await Whe;
- let a = Mhe;
- Mhe = null, a?.();
- let o = await jhe;
-- if (ok.get(r) !== i) return !1;
++ ck.set(r, i);
++ let a = Uhe;
++ Uhe = null, a?.();
++ let o = await Hhe;
++ if (ck.get(r) !== i) return !1;
try {
await o(e, t, i.controller.signal);
} catch {
if (i.controller.signal.aborted) return !1;
}
-- if (ok.get(r) !== i || (ok.delete(r), !n.isCurrent())) return !1;
- let s = n.place ? n.place(r) : Yhe(r);
- let s = n.place ? n.place(r) : Ihe(r);
-- return ak.set(r, {
++ if (ck.get(r) !== i || (ck.delete(r), !n.isCurrent())) return !1;
++ let s = n.place ? n.place(r) : qhe(r);
++ return sk.set(r, {
path: e,
props: t,
revision: i.revision,
container: r,
host: s,
resident: !!n.resident
-- }), dk(!0), !0;
++ }), pk(!0), !0;
}
- function Yhe(e) {
-function Ihe(e) {
++function qhe(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.textContent = "", e.append(t), t;
}
--function pk(e, t) {
-- let n = e ? ak.get(e) : void 0;
-- n && (ak.set(n.container, {
++function hk(e, t) {
++ let n = e ? sk.get(e) : void 0;
++ n && (sk.set(n.container, {
...n,
props: {
...n.props,
...t
}
-- }), dk(!1));
++ }), pk(!1));
}
--function mk(e, ...t) {
++function gk(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
-- let e = ok.get(r);
-- e && (e.controller.abort(), ok.delete(r));
-- let t = ak.get(r);
-- t && (ak.delete(r), n.push(t));
++ let e = ck.get(r);
++ e && (e.controller.abort(), ck.delete(r));
++ let t = sk.get(r);
++ t && (sk.delete(r), n.push(t));
}
if (n.length) {
-- dk(!0);
++ pk(!0);
for (let e of n) e.resident || e.host.remove();
}
}
- function Xhe() {
-function Lhe() {
-- let [e, ...t] = /* @__PURE__ */ new Set([...ak.keys(), ...ok.keys()]);
-- e && mk(e, ...t);
++function Jhe() {
++ let [e, ...t] = /* @__PURE__ */ new Set([...sk.keys(), ...ck.keys()]);
++ e && gk(e, ...t);
}
- function Zhe(e, t) {
-function Rhe(e, t) {
-- let n = ak.get(e);
-- n?.revision === t && (ak.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
-- dk(!1);
++function Yhe(e, t) {
++ let n = sk.get(e);
++ n?.revision === t && (sk.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
++ pk(!1);
}));
}
//#endregion
//#region src/history/index.ts
- var hk = ume({ v5Compat: !0 }), gk = 0, _k = 0, vk = {
-var hk = Zpe({ v5Compat: !0 }), gk = 0, _k = 0, vk = {
-- action: hk.action,
-- location: hk.location,
-- seq: gk,
-- openEpoch: _k,
++var _k = cme({ v5Compat: !0 }), vk = 0, yk = 0, bk = {
++ action: _k.action,
++ location: _k.location,
++ seq: vk,
++ openEpoch: yk,
claimed: !0
--}, yk = /* @__PURE__ */ new Set(), bk = !1, xk = !0;
--hk.listen(({ action: e, location: t }) => {
-- let n = t.pathname + t.search + t.hash, r = nk(n);
-- r !== n && (window.history.replaceState(window.history.state, "", r), t = hk.location), gk += 1, bk || (_k += 1), e !== "REPLACE" && (xk = !1), vk = {
++}, xk = /* @__PURE__ */ new Set(), Sk = !1, Ck = !0;
++_k.listen(({ action: e, location: t }) => {
++ let n = t.pathname + t.search + t.hash, r = ik(n);
++ r !== n && (window.history.replaceState(window.history.state, "", r), t = _k.location), vk += 1, Sk || (yk += 1), e !== "REPLACE" && (Ck = !1), bk = {
action: e,
location: t,
-- seq: gk,
-- openEpoch: _k,
-- claimed: bk
++ seq: vk,
++ openEpoch: yk,
++ claimed: Sk
};
-- for (let e of [...yk]) e(vk);
++ for (let e of [...xk]) e(bk);
});
- function Qhe(e) {
-function zhe(e) {
-- if (typeof e == "string") return nk(new URL(e, window.location.href).href);
-- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = nk(t.href);
++function Xhe(e) {
++ if (typeof e == "string") return ik(new URL(e, window.location.href).href);
++ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = ik(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@@ -34333,55 -33953,55 +34333,55 @@@
hash: r.hash
};
}
--var Sk = {
++var wk = {
get navigation() {
-- return vk;
++ return bk;
},
listen(e) {
-- return yk.add(e), () => {
-- yk.delete(e);
++ return xk.add(e), () => {
++ xk.delete(e);
};
},
-- createHref: (e) => hk.createHref(e),
-- createURL: (e) => hk.createURL(e),
-- encodeLocation: (e) => hk.encodeLocation(e),
-- go: (e) => hk.go(e),
- push: (e, t) => hk.push(Qhe(e), t),
- replace: (e, t) => hk.replace(Qhe(e), t)
- push: (e, t) => hk.push(zhe(e), t),
- replace: (e, t) => hk.replace(zhe(e), t)
++ createHref: (e) => _k.createHref(e),
++ createURL: (e) => _k.createURL(e),
++ encodeLocation: (e) => _k.encodeLocation(e),
++ go: (e) => _k.go(e),
++ push: (e, t) => _k.push(Xhe(e), t),
++ replace: (e, t) => _k.replace(Xhe(e), t)
};
--function Ck(e, { replace: t = !1, state: n } = {}) {
-- let r = new URL(e, window.location.href), i = nk(`${r.pathname}${r.search}${r.hash}`);
-- bk = !0;
++function Tk(e, { replace: t = !1, state: n } = {}) {
++ let r = new URL(e, window.location.href), i = ik(`${r.pathname}${r.search}${r.hash}`);
++ Sk = !0;
try {
-- t ? hk.replace(i, n) : hk.push(i, n);
++ t ? _k.replace(i, n) : _k.push(i, n);
} finally {
-- bk = !1;
++ Sk = !1;
}
}
--var wk = () => xk;
--function Tk() {
-- if (WO(vk.location.pathname)) {
-- let e = xk ? null : KO(vk.location.state);
-- return e ? YO(e.state) || e : null;
++var Ek = () => Ck;
++function Dk() {
++ if (KO(bk.location.pathname)) {
++ let e = Ck ? null : JO(bk.location.state);
++ return e ? ZO(e.state) || e : null;
}
-- return xk ? null : YO(vk.location.state);
++ return Ck ? null : ZO(bk.location.state);
}
//#endregion
//#region src/core/jav-title.ts
- var $he = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, ege = (e, t = e?.name) => {
-var Bhe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Vhe = (e, t = e?.name) => {
++var Zhe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Qhe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace($he, "") : n;
- }, tge = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), nge = (e) => {
- return e?.is_jav ? n.replace(Bhe, "") : n;
-}, Hhe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Uhe = (e) => {
++ return e?.is_jav ? n.replace(Zhe, "") : n;
++}, $he = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), ege = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(tge) || t[0] || "";
- return t.find(Hhe) || t[0] || "";
++ return t.find($he) || t[0] || "";
};
- function rge(e, t = e?.name) {
- let n = ege(e, t), r = String(e?.code || "").trim().toUpperCase();
-function Whe(e, t = e?.name) {
- let n = Vhe(e, t), r = String(e?.code || "").trim().toUpperCase();
++function tge(e, t = e?.name) {
++ let n = Qhe(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 = nge(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 = Uhe(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 = ege(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) => [
"中字",
"无码",
"无码破解"
@@@ -34392,23 -34012,23 +34392,23 @@@
badges: f
};
}
--var Ek = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = rge(e, t);
- let { code: n, title: r, badges: i = [] } = Whe(e, t);
++var Ok = (e, t = e?.name) => {
++ let { code: n, title: r, badges: i = [] } = tge(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
--function Dk(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = rge(e, t);
- let { code: n, title: r, badges: i = [] } = Whe(e, t);
++function kk(e, t = e?.name) {
++ let { code: n, title: r, badges: i = [] } = tge(e, t);
if (!n) return B(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${B(e)}</small>`).join("");
return `<span class="ui-javidentity"><strong class="ui-javcode">${B(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle">${B(r)}</span>` : ""}`;
}
//#endregion
//#region node_modules/@remixicon/react/index.mjs
- var ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-var Ghe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++var nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34416,7 -34036,7 +34416,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34424,7 -34044,7 +34424,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
--}, S.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" })), Ok = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Ak = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34432,7 -34052,7 +34432,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
--}, S.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" })), kk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), jk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34440,7 -34060,7 +34440,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
--}, S.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" })), Ak = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Mk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34448,7 -34068,7 +34448,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34456,7 -34076,7 +34456,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), jk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Nk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34464,7 -34084,7 +34464,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34472,7 -34092,7 +34472,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34480,7 -34100,7 +34480,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34488,7 -34108,7 +34488,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34496,7 -34116,7 +34496,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34504,7 -34124,7 +34504,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Mk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), jk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Pk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34512,7 -34132,7 +34512,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34520,7 -34140,7 +34520,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Nk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Mk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Fk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34528,7 -34148,7 +34528,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Pk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Nk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Ik = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34536,7 -34156,7 +34536,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Fk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Pk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Lk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34544,7 -34164,7 +34544,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34552,7 -34172,7 +34552,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Ik = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Fk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Rk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34560,7 -34180,7 +34560,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34568,7 -34188,7 +34568,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34576,7 -34196,7 +34576,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34584,7 -34204,7 +34584,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34592,7 -34212,7 +34592,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34600,7 -34220,7 +34600,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34608,7 -34228,7 +34608,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Lk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), Ik = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), zk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34616,7 -34236,7 +34616,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34624,7 -34244,7 +34624,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34632,7 -34252,7 +34632,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34640,7 -34260,7 +34640,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Rk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Lk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Bk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34648,7 -34268,7 +34648,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), zk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Rk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Vk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34656,7 -34276,7 +34656,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34664,7 -34284,7 +34664,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34672,7 -34292,7 +34672,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34680,7 -34300,7 +34680,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34688,7 -34308,7 +34688,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34696,7 -34316,7 +34696,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34704,7 -34324,7 +34704,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34712,7 -34332,7 +34712,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34720,7 -34340,7 +34720,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Bk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), zk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Hk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34728,7 -34348,7 +34728,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Vk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Bk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Uk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34736,7 -34356,7 +34736,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34744,7 -34364,7 +34744,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Hk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Vk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Wk = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34752,7 -34372,7 +34752,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34760,7 -34380,7 +34760,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34768,7 -34388,7 +34768,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34776,7 -34396,7 +34776,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34784,7 -34404,7 +34784,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34792,7 -34412,7 +34792,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34800,7 -34420,7 +34800,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34808,7 -34428,7 +34808,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34816,7 -34436,7 +34816,7 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
-}, S.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" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
++}, S.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" })), Rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => S.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@@ -34824,88 -34444,88 +34824,88 @@@
fill: e,
...r,
className: "remixicon " + (n || "")
- }, S.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" })), Vge = (e, t) => {
-}, S.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" })), kge = (e, t) => {
++}, S.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" })), zge = (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;
- }, Hge = (e, t) => ({
-}, Age = (e, t) => ({
++}, Bge = (e, t) => ({
classGroupId: e,
validator: t
- }), Uge = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
-}), jge = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
++}), Vge = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
- }), Uk = "-", Wge = [], Gge = "arbitrary..", Kge = (e) => {
- let t = Yge(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
-}), Hk = "-", Mge = [], Nge = "arbitrary..", Pge = (e) => {
- let t = Lge(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
++}), Gk = "-", Hge = [], Uge = "arbitrary..", Wge = (e) => {
++ let t = qge(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Jge(e);
- let n = e.split(Uk);
- return qge(n, +(n[0] === "" && n.length > 1), t);
- if (e.startsWith("[") && e.endsWith("]")) return Ige(e);
- let n = e.split(Hk);
- return Fge(n, +(n[0] === "" && n.length > 1), t);
++ if (e.startsWith("[") && e.endsWith("]")) return Kge(e);
++ let n = e.split(Gk);
++ return Gge(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Vge(i, t) : t : i || Wge;
- return t ? i ? kge(i, t) : t : i || Mge;
++ return t ? i ? zge(i, t) : t : i || Hge;
}
- return n[e] || Wge;
- return n[e] || Mge;
++ return n[e] || Hge;
}
};
- }, qge = (e, t, n) => {
-}, Fge = (e, t, n) => {
++}, Gge = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = qge(e, t + 1, i);
- let n = Fge(e, t + 1, i);
++ let n = Gge(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(Uk) : e.slice(t).join(Uk), s = a.length;
- let o = t === 0 ? e.join(Hk) : e.slice(t).join(Hk), s = a.length;
++ let o = t === 0 ? e.join(Gk) : e.slice(t).join(Gk), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
- }, Jge = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
-}, Ige = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
++}, Kge = (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 ? Gge + r : void 0;
- })(), Yge = (e) => {
- return r ? Nge + r : void 0;
-})(), Lge = (e) => {
++ return r ? Uge + r : void 0;
++})(), qge = (e) => {
let { theme: t, classGroups: n } = e;
- return Xge(n, t);
- }, Xge = (e, t) => {
- let n = Uge();
- return Rge(n, t);
-}, Rge = (e, t) => {
- let n = jge();
++ return Jge(n, t);
++}, Jge = (e, t) => {
++ let n = Vge();
for (let r in e) {
let i = e[r];
- Wk(i, n, r, t);
- Uk(i, n, r, t);
++ Kk(i, n, r, t);
}
return n;
- }, Wk = (e, t, n, r) => {
-}, Uk = (e, t, n, r) => {
++}, Kk = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Zge(i, t, n, r);
- zge(i, t, n, r);
++ Yge(i, t, n, r);
}
- }, Zge = (e, t, n, r) => {
- typeof e == "string" ? Qge(e, t, n) : typeof e == "function" ? $ge(e, t, n, r) : e_e(e, t, n, r);
- }, Qge = (e, t, n) => {
- let r = e === "" ? t : t_e(t, e);
-}, zge = (e, t, n, r) => {
- typeof e == "string" ? Bge(e, t, n) : typeof e == "function" ? Vge(e, t, n, r) : Hge(e, t, n, r);
-}, Bge = (e, t, n) => {
- let r = e === "" ? t : Uge(t, e);
++}, Yge = (e, t, n, r) => {
++ typeof e == "string" ? Xge(e, t, n) : typeof e == "function" ? Zge(e, t, n, r) : Qge(e, t, n, r);
++}, Xge = (e, t, n) => {
++ let r = e === "" ? t : $ge(t, e);
r.classGroupId = n;
- }, $ge = (e, t, n, r) => {
- n_e(e) ? Wk(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Hge(n, e)));
- }, e_e = (e, t, n, r) => {
-}, Vge = (e, t, n, r) => {
- Wge(e) ? Uk(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Age(n, e)));
-}, Hge = (e, t, n, r) => {
++}, Zge = (e, t, n, r) => {
++ e_e(e) ? Kk(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Bge(n, e)));
++}, Qge = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Wk(o, t_e(t, a), n, r);
- Uk(o, Uge(t, a), n, r);
++ Kk(o, $ge(t, a), n, r);
}
- }, t_e = (e, t) => {
- let n = e, r = t.split(Uk), i = r.length;
-}, Uge = (e, t) => {
- let n = e, r = t.split(Hk), i = r.length;
++}, $ge = (e, t) => {
++ let n = e, r = t.split(Gk), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = Uge(), n.nextPart.set(t, i)), n = i;
- i || (i = jge(), n.nextPart.set(t, i)), n = i;
++ i || (i = Vge(), n.nextPart.set(t, i)), n = i;
}
return n;
- }, n_e = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, r_e = (e) => {
-}, Wge = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Gge = (e) => {
++}, e_e = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, t_e = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@@ -34923,19 -34543,19 +34923,19 @@@
e in n ? n[e] = t : i(e, t);
}
};
- }, Gk = "!", i_e = ":", a_e = [], o_e = (e, t, n, r, i) => ({
-}, Wk = "!", Kge = ":", qge = [], Jge = (e, t, n, r, i) => ({
++}, qk = "!", n_e = ":", r_e = [], i_e = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
- }), s_e = (e) => {
-}), Yge = (e) => {
++}), a_e = (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 === i_e) {
- if (o === Kge) {
++ if (o === n_e) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@@ -34947,13 -34567,13 +34947,13 @@@
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(Gk) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Gk) && (c = s.slice(1), l = !0);
- s.endsWith(Wk) ? (c = s.slice(0, -1), l = !0) : s.startsWith(Wk) && (c = s.slice(1), l = !0);
++ s.endsWith(qk) ? (c = s.slice(0, -1), l = !0) : s.startsWith(qk) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return o_e(t, l, c, u);
- return Jge(t, l, c, u);
++ return i_e(t, l, c, u);
};
if (t) {
- let e = t + i_e, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : o_e(a_e, !1, t, void 0, !0);
- let e = t + Kge, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Jge(qge, !1, t, void 0, !0);
++ let e = t + n_e, n = r;
++ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : i_e(r_e, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@@ -34963,7 -34583,7 +34963,7 @@@
});
}
return r;
- }, c_e = (e) => {
-}, Xge = (e) => {
++}, o_e = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@@ -34975,18 -34595,18 +34975,18 @@@
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
- }, l_e = (e) => ({
- cache: r_e(e.cacheSize),
- parseClassName: s_e(e),
- sortModifiers: c_e(e),
- postfixLookupClassGroupIds: u_e(e),
- ...Kge(e)
- }), u_e = (e) => {
-}, Zge = (e) => ({
- cache: Gge(e.cacheSize),
- parseClassName: Yge(e),
- sortModifiers: Xge(e),
- postfixLookupClassGroupIds: Qge(e),
- ...Pge(e)
-}), Qge = (e) => {
++}, s_e = (e) => ({
++ cache: t_e(e.cacheSize),
++ parseClassName: a_e(e),
++ sortModifiers: o_e(e),
++ postfixLookupClassGroupIds: c_e(e),
++ ...Wge(e)
++}), c_e = (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;
- }, d_e = /\s+/, f_e = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(d_e), l = "";
-}, $ge = /\s+/, e_e = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split($ge), l = "";
++}, l_e = /\s+/, u_e = (e, t) => {
++ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(l_e), 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) {
@@@ -35006,7 -34626,7 +35006,7 @@@
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Gk : _, y = v + g;
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + Wk : _, y = v + g;
++ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + qk : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@@ -35017,34 -34637,34 +35017,34 @@@
l = t + (l.length > 0 ? " " + l : l);
}
return l;
- }, p_e = (...e) => {
-}, t_e = (...e) => {
++}, d_e = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = m_e(n)) && (i && (i += " "), i += r);
- for (; t < e.length;) (n = e[t++]) && (r = n_e(n)) && (i && (i += " "), i += r);
++ for (; t < e.length;) (n = e[t++]) && (r = f_e(n)) && (i && (i += " "), i += r);
return i;
- }, m_e = (e) => {
-}, n_e = (e) => {
++}, f_e = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = m_e(e[r])) && (n && (n += " "), n += t);
- for (let r = 0; r < e.length; r++) e[r] && (t = n_e(e[r])) && (n && (n += " "), n += t);
++ for (let r = 0; r < e.length; r++) e[r] && (t = f_e(e[r])) && (n && (n += " "), n += t);
return n;
- }, h_e = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = l_e(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
-}, r_e = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = Zge(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
++}, p_e = (e, ...t) => {
++ let n, r, i, a, o = (o) => (n = s_e(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 = f_e(e, n);
- let a = e_e(e, n);
++ let a = u_e(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(p_e(...e));
- }, g_e = [], Kk = (e) => {
- let t = (t) => t[e] || g_e;
- return a = o, (...e) => a(t_e(...e));
-}, i_e = [], Gk = (e) => {
- let t = (t) => t[e] || i_e;
++ return a = o, (...e) => a(d_e(...e));
++}, m_e = [], Jk = (e) => {
++ let t = (t) => t[e] || m_e;
return t.isThemeGetter = !0, t.themeKey = e, t;
- }, __e = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, v_e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, y_e = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, b_e = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, x_e = /\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$/, S_e = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, C_e = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, w_e = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qk = (e) => y_e.test(e), Jk = (e) => !!e && !Number.isNaN(Number(e)), Yk = (e) => !!e && Number.isInteger(Number(e)), Xk = (e) => e.endsWith("%") && Jk(e.slice(0, -1)), Zk = (e) => b_e.test(e), T_e = () => !0, E_e = (e) => x_e.test(e) && !S_e.test(e), Qk = () => !1, D_e = (e) => C_e.test(e), O_e = (e) => w_e.test(e), k_e = (e) => !$k(e) && !nA(e), A_e = (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)), j_e = (e) => aA(e, W_e, Qk), $k = (e) => __e.test(e), eA = (e) => aA(e, G_e, E_e), M_e = (e) => aA(e, K_e, Jk), N_e = (e) => aA(e, J_e, T_e), P_e = (e) => aA(e, q_e, Qk), F_e = (e) => aA(e, H_e, Qk), I_e = (e) => aA(e, U_e, O_e), tA = (e) => aA(e, Y_e, D_e), nA = (e) => v_e.test(e), rA = (e) => oA(e, G_e), L_e = (e) => oA(e, q_e), R_e = (e) => oA(e, H_e), z_e = (e) => oA(e, W_e), B_e = (e) => oA(e, U_e), iA = (e) => oA(e, Y_e, !0), V_e = (e) => oA(e, J_e, !0), aA = (e, t, n) => {
- let r = __e.exec(e);
-}, a_e = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, o_e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, s_e = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, c_e = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, l_e = /\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$/, u_e = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, d_e = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, f_e = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Kk = (e) => s_e.test(e), qk = (e) => !!e && !Number.isNaN(Number(e)), Jk = (e) => !!e && Number.isInteger(Number(e)), Yk = (e) => e.endsWith("%") && qk(e.slice(0, -1)), Xk = (e) => c_e.test(e), p_e = () => !0, m_e = (e) => l_e.test(e) && !u_e.test(e), Zk = () => !1, h_e = (e) => d_e.test(e), g_e = (e) => f_e.test(e), __e = (e) => !Qk(e) && !tA(e), v_e = (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)), y_e = (e) => iA(e, M_e, Zk), Qk = (e) => a_e.test(e), $k = (e) => iA(e, N_e, m_e), b_e = (e) => iA(e, P_e, qk), x_e = (e) => iA(e, I_e, p_e), S_e = (e) => iA(e, F_e, Zk), C_e = (e) => iA(e, A_e, Zk), w_e = (e) => iA(e, j_e, g_e), eA = (e) => iA(e, L_e, h_e), tA = (e) => o_e.test(e), nA = (e) => aA(e, N_e), T_e = (e) => aA(e, F_e), E_e = (e) => aA(e, A_e), D_e = (e) => aA(e, M_e), O_e = (e) => aA(e, j_e), rA = (e) => aA(e, L_e, !0), k_e = (e) => aA(e, I_e, !0), iA = (e, t, n) => {
- let r = a_e.exec(e);
++}, h_e = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, g_e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, __e = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, v_e = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, y_e = /\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$/, b_e = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, x_e = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, S_e = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Yk = (e) => __e.test(e), Xk = (e) => !!e && !Number.isNaN(Number(e)), Zk = (e) => !!e && Number.isInteger(Number(e)), Qk = (e) => e.endsWith("%") && Xk(e.slice(0, -1)), $k = (e) => v_e.test(e), C_e = () => !0, w_e = (e) => y_e.test(e) && !b_e.test(e), eA = () => !1, T_e = (e) => x_e.test(e), E_e = (e) => S_e.test(e), D_e = (e) => !tA(e) && !iA(e), O_e = (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)), k_e = (e) => sA(e, H_e, eA), tA = (e) => h_e.test(e), nA = (e) => sA(e, U_e, w_e), A_e = (e) => sA(e, W_e, Xk), j_e = (e) => sA(e, K_e, C_e), M_e = (e) => sA(e, G_e, eA), N_e = (e) => sA(e, B_e, eA), P_e = (e) => sA(e, V_e, E_e), rA = (e) => sA(e, q_e, T_e), iA = (e) => g_e.test(e), aA = (e) => cA(e, U_e), F_e = (e) => cA(e, G_e), I_e = (e) => cA(e, B_e), L_e = (e) => cA(e, H_e), R_e = (e) => cA(e, V_e), oA = (e) => cA(e, q_e, !0), z_e = (e) => cA(e, K_e, !0), sA = (e, t, n) => {
++ let r = h_e.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
- }, oA = (e, t, n = !1) => {
- let r = v_e.exec(e);
-}, aA = (e, t, n = !1) => {
- let r = o_e.exec(e);
++}, cA = (e, t, n = !1) => {
++ let r = g_e.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
- }, H_e = (e) => e === "position" || e === "percentage", U_e = (e) => e === "image" || e === "url", W_e = (e) => e === "length" || e === "size" || e === "bg-size", G_e = (e) => e === "length", K_e = (e) => e === "number", q_e = (e) => e === "family-name", J_e = (e) => e === "number" || e === "weight", Y_e = (e) => e === "shadow", X_e = () => {
- let e = Kk("color"), t = Kk("font"), n = Kk("text"), r = Kk("font-weight"), i = Kk("tracking"), a = Kk("leading"), o = Kk("breakpoint"), s = Kk("container"), c = Kk("spacing"), l = Kk("radius"), u = Kk("shadow"), d = Kk("inset-shadow"), f = Kk("text-shadow"), p = Kk("drop-shadow"), m = Kk("blur"), h = Kk("perspective"), g = Kk("aspect"), _ = Kk("ease"), v = Kk("animate"), y = () => [
-}, A_e = (e) => e === "position" || e === "percentage", j_e = (e) => e === "image" || e === "url", M_e = (e) => e === "length" || e === "size" || e === "bg-size", N_e = (e) => e === "length", P_e = (e) => e === "number", F_e = (e) => e === "family-name", I_e = (e) => e === "number" || e === "weight", L_e = (e) => e === "shadow", R_e = () => {
- let e = Gk("color"), t = Gk("font"), n = Gk("text"), r = Gk("font-weight"), i = Gk("tracking"), a = Gk("leading"), o = Gk("breakpoint"), s = Gk("container"), c = Gk("spacing"), l = Gk("radius"), u = Gk("shadow"), d = Gk("inset-shadow"), f = Gk("text-shadow"), p = Gk("drop-shadow"), m = Gk("blur"), h = Gk("perspective"), g = Gk("aspect"), _ = Gk("ease"), v = Gk("animate"), y = () => [
++}, B_e = (e) => e === "position" || e === "percentage", V_e = (e) => e === "image" || e === "url", H_e = (e) => e === "length" || e === "size" || e === "bg-size", U_e = (e) => e === "length", W_e = (e) => e === "number", G_e = (e) => e === "family-name", K_e = (e) => e === "number" || e === "weight", q_e = (e) => e === "shadow", J_e = () => {
++ let e = Jk("color"), t = Jk("font"), n = Jk("text"), r = Jk("font-weight"), i = Jk("tracking"), a = Jk("leading"), o = Jk("breakpoint"), s = Jk("container"), c = Jk("spacing"), l = Jk("radius"), u = Jk("shadow"), d = Jk("inset-shadow"), f = Jk("text-shadow"), p = Jk("drop-shadow"), m = Jk("blur"), h = Jk("perspective"), g = Jk("aspect"), _ = Jk("ease"), v = Jk("animate"), y = () => [
"auto",
"avoid",
"all",
@@@ -35069,8 -34689,8 +35069,8 @@@
"left-bottom"
], x = () => [
...b(),
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], S = () => [
"auto",
"hidden",
@@@ -35082,43 -34702,43 +35082,43 @@@
"contain",
"none"
], w = () => [
- nA,
- $k,
++ iA,
+ tA,
- Qk,
c
], T = () => [
- qk,
- Kk,
++ Yk,
"full",
"auto",
...w()
], E = () => [
- Yk,
- Jk,
++ Zk,
"none",
"subgrid",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], D = () => [
"auto",
{ span: [
"full",
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
] },
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
], O = () => [
- Yk,
- Jk,
++ Zk,
"auto",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], k = () => [
"auto",
"min",
"max",
"fr",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], A = () => [
"start",
"end",
@@@ -35138,7 -34758,7 +35138,7 @@@
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- qk,
- Kk,
++ Yk,
"auto",
"full",
"dvw",
@@@ -35153,7 -34773,7 +35153,7 @@@
...w()
], P = () => [
s,
- qk,
- Kk,
++ Yk,
"screen",
"full",
"dvw",
@@@ -35164,7 -34784,7 +35164,7 @@@
"fit",
...w()
], F = () => [
- qk,
- Kk,
++ Yk,
"screen",
"full",
"lh",
@@@ -35177,13 -34797,13 +35177,13 @@@
...w()
], I = () => [
e,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], ee = () => [
...b(),
- R_e,
- F_e,
- { position: [nA, $k] }
- E_e,
- C_e,
- { position: [tA, Qk] }
++ I_e,
++ N_e,
++ { position: [iA, tA] }
], L = () => ["no-repeat", { repeat: [
"",
"x",
@@@ -35194,25 -34814,25 +35194,25 @@@
"auto",
"cover",
"contain",
- z_e,
- j_e,
- { size: [nA, $k] }
- D_e,
- y_e,
- { size: [tA, Qk] }
++ L_e,
++ k_e,
++ { size: [iA, tA] }
], ne = () => [
- Xk,
- rA,
- eA
- Yk,
- nA,
- $k
++ Qk,
++ aA,
++ nA
], re = () => [
"",
"none",
"full",
l,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], ie = () => [
"",
- Jk,
- rA,
- eA
- qk,
- nA,
- $k
++ Xk,
++ aA,
++ nA
], ae = () => [
"solid",
"dashed",
@@@ -35236,32 -34856,32 +35236,32 @@@
"color",
"luminosity"
], se = () => [
- Jk,
- qk,
- Yk,
- E_e,
- C_e
+ Xk,
- R_e,
- F_e
++ Qk,
++ I_e,
++ N_e
], ce = () => [
"",
"none",
m,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
], le = () => [
"none",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
], ue = () => [
"none",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
], de = () => [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
], fe = () => [
- qk,
- Kk,
++ Yk,
"full",
...w()
];
@@@ -35275,17 -34895,17 +35275,17 @@@
"bounce"
],
aspect: ["video"],
- blur: [Zk],
- breakpoint: [Zk],
- color: [T_e],
- container: [Zk],
- "drop-shadow": [Zk],
- blur: [Xk],
- breakpoint: [Xk],
- color: [p_e],
- container: [Xk],
- "drop-shadow": [Xk],
++ blur: [$k],
++ breakpoint: [$k],
++ color: [C_e],
++ container: [$k],
++ "drop-shadow": [$k],
ease: [
"in",
"out",
"in-out"
],
- font: [k_e],
- font: [__e],
++ font: [D_e],
"font-weight": [
"thin",
"extralight",
@@@ -35297,7 -34917,7 +35297,7 @@@
"extrabold",
"black"
],
- "inset-shadow": [Zk],
- "inset-shadow": [Xk],
++ "inset-shadow": [$k],
leading: [
"none",
"tight",
@@@ -35314,11 -34934,11 +35314,11 @@@
"distant",
"none"
],
- radius: [Zk],
- shadow: [Zk],
- spacing: ["px", Jk],
- text: [Zk],
- "text-shadow": [Zk],
- radius: [Xk],
- shadow: [Xk],
- spacing: ["px", qk],
- text: [Xk],
- "text-shadow": [Xk],
++ radius: [$k],
++ shadow: [$k],
++ spacing: ["px", Xk],
++ text: [$k],
++ "text-shadow": [$k],
tracking: [
"tighter",
"tight",
@@@ -35332,9 -34952,9 +35332,9 @@@
aspect: [{ aspect: [
"auto",
"square",
- qk,
- $k,
- nA,
- Kk,
- Qk,
++ Yk,
+ tA,
++ iA,
g
] }],
container: ["container"],
@@@ -35342,15 -34962,15 +35342,15 @@@
"",
"normal",
"size",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
- "container-named": [A_e],
- "container-named": [v_e],
++ "container-named": [O_e],
columns: [{ columns: [
- Jk,
- qk,
++ Xk,
"auto",
- $k,
- nA,
- Qk,
+ tA,
++ iA,
s
] }],
"break-after": [{ "break-after": y() }],
@@@ -35447,13 -35067,13 +35447,13 @@@
"collapse"
],
z: [{ z: [
- Yk,
- Jk,
++ Zk,
"auto",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
basis: [{ basis: [
- qk,
- Kk,
++ Yk,
"full",
"auto",
s,
@@@ -35471,32 -35091,32 +35471,32 @@@
"wrap-reverse"
] }],
flex: [{ flex: [
- Jk,
-- qk,
- Kk,
++ Xk,
++ Yk,
"auto",
"initial",
"none",
- $k
- Qk
++ tA
] }],
grow: [{ grow: [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
shrink: [{ shrink: [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
order: [{ order: [
- Yk,
- Jk,
++ Zk,
"first",
"last",
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@@ -35603,15 -35223,15 +35603,15 @@@
"font-size": [{ text: [
"base",
n,
- rA,
- eA
- nA,
- $k
++ aA,
++ nA
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- V_e,
- N_e
- k_e,
- x_e
++ z_e,
++ j_e
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@@ -35623,15 -35243,15 +35623,15 @@@
"expanded",
"extra-expanded",
"ultra-expanded",
- Xk,
- $k
- Yk,
- Qk
++ Qk,
++ tA
] }],
"font-family": [{ font: [
- L_e,
- P_e,
- T_e,
- S_e,
++ F_e,
++ M_e,
t
] }],
- "font-features": [{ "font-features": [$k] }],
- "font-features": [{ "font-features": [Qk] }],
++ "font-features": [{ "font-features": [tA] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@@ -35640,14 -35260,14 +35640,14 @@@
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"line-clamp": [{ "line-clamp": [
- Jk,
- qk,
++ Xk,
"none",
- nA,
- M_e
- tA,
- b_e
++ iA,
++ A_e
] }],
leading: [{ leading: [
"none",
@@@ -35656,16 -35276,16 +35656,16 @@@
] }],
"list-image": [{ "list-image": [
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"text-alignment": [{ text: [
"left",
@@@ -35685,18 -35305,18 +35685,18 @@@
],
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- Jk,
- qk,
++ Xk,
"from-font",
"auto",
- nA,
- eA
- tA,
- $k
++ iA,
++ nA
] }],
"text-decoration-color": [{ decoration: I() }],
"underline-offset": [{ "underline-offset": [
- Jk,
- qk,
++ Xk,
"auto",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"text-transform": [
"uppercase",
@@@ -35717,9 -35337,9 +35717,9 @@@
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
] }],
"vertical-align": [{ align: [
"baseline",
@@@ -35730,8 -35350,8 +35730,8 @@@
"text-bottom",
"sub",
"super",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
whitespace: [{ whitespace: [
"normal",
@@@ -35759,8 -35379,8 +35759,8 @@@
] }],
content: [{ content: [
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"bg-attachment": [{ bg: [
"fixed",
@@@ -35795,24 -35415,24 +35795,24 @@@
"l",
"tl"
] },
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
],
radial: [
"",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
],
conic: [
"",
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
]
},
- B_e,
- I_e
- O_e,
- w_e
++ R_e,
++ P_e
] }],
"bg-color": [{ bg: I() }],
"gradient-from-pos": [{ from: ne() }],
@@@ -35879,15 -35499,15 +35879,15 @@@
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"outline-w": [{ outline: [
"",
- Jk,
- rA,
- eA
- qk,
- nA,
- $k
++ Xk,
++ aA,
++ nA
] }],
"outline-color": [{ outline: I() }],
shadow: [{ shadow: [
@@@ -35895,35 -35515,35 +35895,35 @@@
"inner",
"none",
u,
- iA,
- tA
- rA,
- eA
++ oA,
++ rA
] }],
"shadow-color": [{ shadow: I() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- iA,
- tA
- rA,
- eA
++ oA,
++ rA
] }],
"inset-shadow-color": [{ "inset-shadow": I() }],
"ring-w": [{ ring: ie() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: I() }],
- "ring-offset-w": [{ "ring-offset": [Jk, eA] }],
- "ring-offset-w": [{ "ring-offset": [qk, $k] }],
++ "ring-offset-w": [{ "ring-offset": [Xk, nA] }],
"ring-offset-color": [{ "ring-offset": I() }],
"inset-ring-w": [{ "inset-ring": ie() }],
"inset-ring-color": [{ "inset-ring": I() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- iA,
- tA
- rA,
- eA
++ oA,
++ rA
] }],
"text-shadow-color": [{ "text-shadow": I() }],
opacity: [{ opacity: [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"mix-blend": [{ "mix-blend": [
...oe(),
@@@ -35945,7 -35565,7 +35945,7 @@@
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [Jk] }],
- "mask-image-linear-pos": [{ "mask-linear": [qk] }],
++ "mask-image-linear-pos": [{ "mask-linear": [Xk] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": se() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": se() }],
"mask-image-linear-from-color": [{ "mask-linear-from": I() }],
@@@ -35974,7 -35594,7 +35974,7 @@@
"mask-image-y-to-pos": [{ "mask-y-to": se() }],
"mask-image-y-from-color": [{ "mask-y-from": I() }],
"mask-image-y-to-color": [{ "mask-y-to": I() }],
- "mask-image-radial": [{ "mask-radial": [nA, $k] }],
- "mask-image-radial": [{ "mask-radial": [tA, Qk] }],
++ "mask-image-radial": [{ "mask-radial": [iA, tA] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": se() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": se() }],
"mask-image-radial-from-color": [{ "mask-radial-from": I() }],
@@@ -35985,7 -35605,7 +35985,7 @@@
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [Jk] }],
- "mask-image-conic-pos": [{ "mask-conic": [qk] }],
++ "mask-image-conic-pos": [{ "mask-conic": [Xk] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": se() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": se() }],
"mask-image-conic-from-color": [{ "mask-conic-from": I() }],
@@@ -36009,111 -35629,111 +36009,111 @@@
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
filter: [{ filter: [
"",
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
blur: [{ blur: ce() }],
brightness: [{ brightness: [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
contrast: [{ contrast: [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- iA,
- tA
- rA,
- eA
++ oA,
++ rA
] }],
"drop-shadow-color": [{ "drop-shadow": I() }],
grayscale: [{ grayscale: [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"hue-rotate": [{ "hue-rotate": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
invert: [{ invert: [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
saturate: [{ saturate: [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
sepia: [{ sepia: [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"backdrop-blur": [{ "backdrop-blur": ce() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@@ -36129,39 -35749,39 +36129,39 @@@
"shadow",
"transform",
"none",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- Jk,
- qk,
++ Xk,
"initial",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
delay: [{ delay: [
- Jk,
- nA,
- $k
- qk,
- tA,
- Qk
++ Xk,
++ iA,
++ tA
] }],
animate: [{ animate: [
"none",
v,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: le() }],
@@@ -36177,8 -35797,8 +36177,8 @@@
"skew-x": [{ "skew-x": de() }],
"skew-y": [{ "skew-y": de() }],
transform: [{ transform: [
- nA,
- $k,
++ iA,
+ tA,
- Qk,
"",
"none",
"gpu",
@@@ -36192,9 -35812,9 +36192,9 @@@
"translate-z": [{ "translate-z": fe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- Yk,
- nA,
- $k
- Jk,
- tA,
- Qk
++ Zk,
++ iA,
++ tA
] }],
accent: [{ accent: I() }],
appearance: [{ appearance: ["none", "auto"] }],
@@@ -36244,8 -35864,8 +36244,8 @@@
"nwse-resize",
"zoom-in",
"zoom-out",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@@ -36331,15 -35951,15 +36331,15 @@@
"scroll",
"contents",
"transform",
- nA,
- $k
- tA,
- Qk
++ iA,
++ tA
] }],
fill: [{ fill: ["none", ...I()] }],
"stroke-w": [{ stroke: [
- Jk,
- rA,
- eA,
- M_e
- qk,
++ Xk,
++ aA,
+ nA,
- $k,
- b_e
++ A_e
] }],
stroke: [{ stroke: ["none", ...I()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@@ -36597,16 -36217,16 +36597,16 @@@
"selection"
]
};
- }, Z_e = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (sA(e, "cacheSize", t), sA(e, "prefix", n), sA(e, "experimentalParseClassName", r), cA(e.theme, a.theme), cA(e.classGroups, a.classGroups), cA(e.conflictingClassGroups, a.conflictingClassGroups), cA(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), sA(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), sA(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), lA(e.theme, i.theme), lA(e.classGroups, i.classGroups), lA(e.conflictingClassGroups, i.conflictingClassGroups), lA(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), uA(e, i, "postfixLookupClassGroups"), uA(e, i, "orderSensitiveModifiers"), e), sA = (e, t, n) => {
-}, z_e = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (oA(e, "cacheSize", t), oA(e, "prefix", n), oA(e, "experimentalParseClassName", r), sA(e.theme, a.theme), sA(e.classGroups, a.classGroups), sA(e.conflictingClassGroups, a.conflictingClassGroups), sA(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), oA(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), oA(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), cA(e.theme, i.theme), cA(e.classGroups, i.classGroups), cA(e.conflictingClassGroups, i.conflictingClassGroups), cA(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), lA(e, i, "postfixLookupClassGroups"), lA(e, i, "orderSensitiveModifiers"), e), oA = (e, t, n) => {
++}, Y_e = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (lA(e, "cacheSize", t), lA(e, "prefix", n), lA(e, "experimentalParseClassName", r), uA(e.theme, a.theme), uA(e.classGroups, a.classGroups), uA(e.conflictingClassGroups, a.conflictingClassGroups), uA(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), lA(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), lA(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), dA(e.theme, i.theme), dA(e.classGroups, i.classGroups), dA(e.conflictingClassGroups, i.conflictingClassGroups), dA(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), fA(e, i, "postfixLookupClassGroups"), fA(e, i, "orderSensitiveModifiers"), e), lA = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, sA = (e, t) => {
- if (t) for (let n in t) oA(e, n, t[n]);
--}, cA = (e, t) => {
- if (t) for (let n in t) sA(e, n, t[n]);
- }, lA = (e, t) => {
- if (t) for (let n in t) uA(e, t, n);
- }, uA = (e, t, n) => {
- if (t) for (let n in t) lA(e, t, n);
-}, lA = (e, t, n) => {
++}, uA = (e, t) => {
++ if (t) for (let n in t) lA(e, n, t[n]);
++}, dA = (e, t) => {
++ if (t) for (let n in t) fA(e, t, n);
++}, fA = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
- }, Q_e = (e, ...t) => typeof e == "function" ? h_e(X_e, e, ...t) : h_e(() => Z_e(X_e(), e), ...t), $_e = [
-}, B_e = (e, ...t) => typeof e == "function" ? r_e(R_e, e, ...t) : r_e(() => z_e(R_e(), e), ...t), V_e = [
++}, X_e = (e, ...t) => typeof e == "function" ? p_e(J_e, e, ...t) : p_e(() => Y_e(J_e(), e), ...t), Z_e = [
"large-title",
"display-1",
"display-2",
@@@ -36620,18 -36240,18 +36620,18 @@@
"body-2",
"caption-1",
"caption-2"
- ], eve = [
-], H_e = [
++], Q_e = [
"regular",
"medium",
"semibold",
"bold"
- ], dA = Q_e({ extend: { classGroups: { "font-size": [{ text: $_e.flatMap((e) => eve.map((t) => `${e}-${t}`)) }] } } });
- function fA(e) {
-], uA = B_e({ extend: { classGroups: { "font-size": [{ text: V_e.flatMap((e) => H_e.map((t) => `${e}-${t}`)) }] } } });
-function dA(e) {
++], pA = X_e({ extend: { classGroups: { "font-size": [{ text: Z_e.flatMap((e) => Q_e.map((t) => `${e}-${t}`)) }] } } });
++function mA(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
- var pA = fA({
-var fA = dA({
++var hA = mA({
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",
@@@ -36650,16 -36270,16 +36650,16 @@@
soft: "bg-background-secondary-default text-text-secondary"
}
});
- function mA({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
-function pA({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
++function gA({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
ref: r,
- className: dA(pA.base, pA.variant[e], pA.color[t], n),
- className: uA(fA.base, fA.variant[e], fA.color[t], n),
++ className: pA(hA.base, hA.variant[e], hA.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
- var hA = fA({
-var mA = dA({
++var _A = mA({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@@ -36718,40 -36338,40 +36718,40 @@@ function K({ variant: e = "primary", si
return /* @__PURE__ */ (0, C.jsxs)("button", {
ref: c,
type: s,
- className: dA(hA.base, hA.size[t], hA.variant[e], n && hA.iconOnlySize[t], o),
- className: uA(mA.base, mA.size[t], mA.variant[e], n && mA.iconOnlySize[t], o),
++ className: pA(_A.base, _A.size[t], _A.variant[e], n && _A.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: hA.icon[t],
- className: mA.icon[t],
++ className: _A.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: hA.label[t],
- className: mA.label[t],
++ className: _A.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, C.jsx)(i, {
- className: hA.icon[t],
- className: mA.icon[t],
++ className: _A.icon[t],
"aria-hidden": !0
}) : null
]
});
}
- function gA({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
-function hA({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
++function vA({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, C.jsxs)("a", {
ref: s,
- className: dA(hA.base, hA.size[t], hA.variant[e], n && hA.iconOnlySize[t], o),
- className: uA(mA.base, mA.size[t], mA.variant[e], n && mA.iconOnlySize[t], o),
++ className: pA(_A.base, _A.size[t], _A.variant[e], n && _A.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: hA.icon[t],
- className: mA.icon[t],
++ className: _A.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: hA.label[t],
- className: mA.label[t],
++ className: _A.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, C.jsx)(i, {
- className: hA.icon[t],
- className: mA.icon[t],
++ className: _A.icon[t],
"aria-hidden": !0
}) : null
]
@@@ -36759,47 -36379,47 +36759,47 @@@
}
//#endregion
//#region src/react/components/card.tsx
- var tve = "min-w-0", nve = {
-var U_e = "min-w-0", W_e = {
++var $_e = "min-w-0", eve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
- }, rve = {
-}, G_e = {
++}, tve = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
- }, ive = {
-}, K_e = {
++}, nve = {
line: "border border-border-button-default",
soft: "border border-separator-border"
- }, ave = {
-}, q_e = {
++}, rve = {
none: "",
default: "p-5"
- }, ove = "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", sve = "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 _A(e = {}) {
-}, J_e = "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", Y_e = "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 gA(e = {}) {
++}, ive = "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", ave = "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 yA(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 [
- tve,
- nve[t],
- rve[s],
- ave[n],
- a ? ive[a] : "",
- r ? ove : "",
- i ? sve : "",
- U_e,
- W_e[t],
- G_e[s],
- q_e[n],
- a ? K_e[a] : "",
- r ? J_e : "",
- i ? Y_e : "",
++ $_e,
++ eve[t],
++ tve[s],
++ rve[n],
++ a ? nve[a] : "",
++ r ? ive : "",
++ i ? ave : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
- var cve = {
-var X_e = {
++var ove = {
page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",
plain: "px-6 py-12",
inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"
};
- function vA({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
-function _A({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
++function bA({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
let a = i === "page";
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-empty-state": "",
- className: `flex flex-col items-center gap-2 text-center ${cve[i]}`,
- className: `flex flex-col items-center gap-2 text-center ${X_e[i]}`,
++ className: `flex flex-col items-center gap-2 text-center ${ove[i]}`,
children: [
a ? /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
@@@ -36829,7 -36449,7 +36829,7 @@@
}
//#endregion
//#region src/react/components/loading-dots.tsx
- function yA({ label: e, inline: t = !1 }) {
-function vA({ label: e, inline: t = !1 }) {
++function xA({ label: e, inline: t = !1 }) {
let n = /* @__PURE__ */ (0, C.jsxs)("span", {
"aria-hidden": !0,
className: "inline-flex shrink-0 items-center gap-1",
@@@ -36857,7 -36477,7 +36857,7 @@@
function q({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline" }) {
let o = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-note-layout": "",
- className: dA("flex flex-col items-start gap-3", a === "inline" && "@xl:flex-row @xl:items-center @xl:justify-between"),
- className: uA("flex flex-col items-start gap-3", a === "inline" && "@xl:flex-row @xl:items-center @xl:justify-between"),
++ className: pA("flex flex-col items-start gap-3", a === "inline" && "@xl:flex-row @xl:items-center @xl:justify-between"),
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-0.5 self-stretch",
children: [t ? /* @__PURE__ */ (0, C.jsx)("p", {
@@@ -36903,7 -36523,7 +36903,7 @@@
}
//#endregion
//#region src/react/components/page.tsx
- function bA({ children: e }) {
-function yA({ children: e }) {
++function SA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@@ -36911,21 -36531,21 +36911,21 @@@
}
//#endregion
//#region src/react/components/progress.tsx
- var xA = 100, lve = .4;
- function SA({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * xA;
-var bA = 100, Z_e = .4;
-function xA({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * bA;
++var CA = 100, sve = .4;
++function wA({ label: e, value: t, max: n = 100, stops: r = [] }) {
++ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), i), o = (e) => a(e) / i * CA;
return /* @__PURE__ */ (0, C.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": i,
"aria-valuenow": a(t),
- viewBox: `0 0 ${xA} 1`,
- viewBox: `0 0 ${bA} 1`,
++ viewBox: `0 0 ${CA} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, C.jsx)("rect", {
- width: xA,
- width: bA,
++ width: CA,
height: 1,
className: "fill-background-tertiary-default"
}),
@@@ -36936,7 -36556,7 +36936,7 @@@
}),
r.map((e) => /* @__PURE__ */ (0, C.jsx)("rect", {
x: o(e),
- width: lve,
- width: Z_e,
++ width: sve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@@ -36953,7 -36573,7 +36953,7 @@@ function J(e)
}
//#endregion
//#region src/react/settings/use-action.ts
- function CA(e = "") {
-function SA(e = "") {
++function TA(e = "") {
let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(""), [i, a] = (0, S.useState)(e);
(0, S.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@@ -36979,21 -36599,21 +36979,21 @@@
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
- function wA({ className: e, children: t }) {
-function CA({ className: e, children: t }) {
++function EA({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- className: dA("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
- className: uA("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
++ className: pA("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
- function TA({ className: e, children: t }) {
-function wA({ className: e, children: t }) {
++function DA({ className: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
- className: dA("w-full px-3 text-body-2-medium text-text-secondary", e),
- className: uA("w-full px-3 text-body-2-medium text-text-secondary", e),
++ className: pA("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
- function EA({ label: e, description: t, children: n }) {
-function TA({ label: e, description: t, children: n }) {
++function OA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: dA("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"),
- className: uA("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"),
++ className: pA("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, C.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, C.jsx)("p", {
@@@ -37008,7 -36628,7 +37008,7 @@@
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
- var DA = fA({
-var EA = dA({
++var kA = mA({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@@ -37032,15 -36652,15 +37032,15 @@@
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
- function OA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = dA(DA.base, DA.size[t], DA.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
-function DA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = uA(EA.base, EA.size[t], EA.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
++function AA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
++ let c = pA(kA.base, kA.size[t], kA.variant[e], a), l = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
n ? /* @__PURE__ */ (0, C.jsx)(n, {
- className: DA.icon[t],
- className: EA.icon[t],
++ className: kA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, C.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, C.jsx)(r, {
- className: DA.icon[t],
- className: EA.icon[t],
++ className: kA.icon[t],
"aria-hidden": !0
}) : null
] });
@@@ -37067,7 -36687,7 +37067,7 @@@
}
//#endregion
//#region src/react/settings/section.tsx
- function kA({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
-function OA({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
++function jA({ title: e, icon: t, id: n, aside: r, onSubmit: i, children: a }) {
let o = t ? /* @__PURE__ */ (0, C.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [t, e]
@@@ -37075,12 -36695,12 +37075,12 @@@
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(TA, { children: o })
- children: /* @__PURE__ */ (0, C.jsx)(wA, { children: o })
++ children: /* @__PURE__ */ (0, C.jsx)(DA, { children: o })
}), /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: r
})]
- }) : /* @__PURE__ */ (0, C.jsx)(TA, { children: o }), /* @__PURE__ */ (0, C.jsx)(wA, { children: a })] });
- }) : /* @__PURE__ */ (0, C.jsx)(wA, { children: o }), /* @__PURE__ */ (0, C.jsx)(CA, { children: a })] });
++ }) : /* @__PURE__ */ (0, C.jsx)(DA, { children: o }), /* @__PURE__ */ (0, C.jsx)(EA, { children: a })] });
return i ? /* @__PURE__ */ (0, C.jsx)("form", {
id: n,
"aria-label": e,
@@@ -37095,13 -36715,13 +37095,13 @@@
children: s
});
}
- function AA({ children: e }) {
-function kA({ children: e }) {
++function MA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col",
children: e
});
}
- function jA({ divided: e = !1, children: t }) {
-function AA({ divided: e = !1, children: t }) {
++function NA({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@@ -37110,7 -36730,7 +37110,7 @@@
children: t
});
}
- function MA({ status: e, children: t }) {
-function jA({ status: e, children: t }) {
++function PA({ status: e, children: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",
children: [e ? /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -37119,34 -36739,34 +37119,34 @@@
}) : null, t]
});
}
- function NA({ role: e, children: t }) {
-function MA({ role: e, children: t }) {
++function FA({ role: e, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
- function PA({ children: e }) {
-function NA({ children: e }) {
++function IA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
- function FA({ children: e }) {
-function PA({ children: e }) {
++function LA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
- function IA({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, C.jsx)(OA, {
-function FA({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, C.jsx)(DA, {
++function RA({ href: e, children: t, leadingIcon: n }) {
++ return /* @__PURE__ */ (0, C.jsx)(AA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, C.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@@ -37154,13 -36774,13 +37154,13 @@@
})
});
}
- function LA({ children: e }) {
-function IA({ children: e }) {
++function zA({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
- function RA({ term: e, children: t }) {
-function LA({ term: e, children: t }) {
++function BA({ term: e, children: t }) {
return /* @__PURE__ */ (0, C.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, C.jsx)("dt", {
@@@ -37172,7 -36792,7 +37172,7 @@@
})]
});
}
- function zA({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, onOpenChange: i }) {
-function RA({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, onOpenChange: i }) {
++function VA({ summary: e, defaultOpen: t = !1, children: n, trailing: r = !1, onOpenChange: i }) {
let a = (0, S.useId)(), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = (0, S.useRef)(!1), [l, u] = (0, S.useState)(t);
return /* @__PURE__ */ (0, C.jsxs)("details", {
ref: (e) => {
@@@ -37186,12 -36806,12 +37186,12 @@@
},
className: `${r ? "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: [
-- r ? null : /* @__PURE__ */ (0, C.jsx)(Ak, {
++ r ? null : /* @__PURE__ */ (0, C.jsx)(Mk, {
"aria-hidden": !0,
className: l ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}),
e,
-- r ? /* @__PURE__ */ (0, C.jsx)(Ak, {
++ r ? /* @__PURE__ */ (0, C.jsx)(Mk, {
"aria-hidden": !0,
className: l ? "ml-auto size-4 shrink-0 -rotate-90 transition-transform" : "ml-auto size-4 shrink-0 rotate-90 transition-transform"
}) : null
@@@ -37207,7 -36827,7 +37207,7 @@@
})]
});
}
- function uve({ name: e }) {
-function Q_e({ name: e }) {
++function cve({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@@ -37216,22 -36836,22 +37216,22 @@@
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- function BA({ mark: e }) {
-function zA({ mark: e }) {
++function HA({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, C.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, C.jsx)(uve, { name: e });
- }) : /* @__PURE__ */ (0, C.jsx)(Q_e, { name: e });
++ }) : /* @__PURE__ */ (0, C.jsx)(cve, { name: e });
}
//#endregion
//#region src/react/activity/tasks.ts
- var VA = "/api/tasks", HA = ["tasks"], dve = (e, t) => yn(`${VA}?${new URLSearchParams({
-var BA = "/api/tasks", VA = ["tasks"], $_e = (e, t) => H(`${BA}?${new URLSearchParams({
++var UA = "/api/tasks", WA = ["tasks"], lve = (e, t) => yn(`${UA}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
- function UA(...e) {
-function HA(...e) {
++function GA(...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) => {
@@@ -37239,26 -36859,26 +37239,26 @@@
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
- var fve = 2e3, pve = 1e4, mve = (e) => e?.running.length ? fve : pve, WA = (e) => yn(VA, e);
- async function hve(e) {
-var eve = 2e3, tve = 1e4, UA = (e) => e?.running?.length ? eve : tve, WA = (e) => H(BA, e);
-async function nve(e) {
- await W.fetchQuery({
- queryKey: VA,
- queryFn: () => WA(e)
++var uve = 2e3, dve = 1e4, KA = (e) => e?.running?.length ? uve : dve, qA = (e) => yn(UA, e);
++async function fve(e) {
+ await U.fetchQuery({
- queryKey: HA,
- queryFn: () => WA(e)
++ queryKey: WA,
++ queryFn: () => qA(e)
});
}
--var GA = {
++var JA = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
- }, gve = {
-}, rve = {
++}, pve = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
- }, _ve = (e) => gve[e] || e, vve = {
-}, ive = (e) => rve[e] || e, ave = {
++}, mve = (e) => pve[e] || e, hve = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@@ -37288,7 -36908,7 +37288,7 @@@
source: "来源",
cover_network: "封面连不上图片主机"
};
- function yve(e) {
-function ove(e) {
++function gve(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@@ -37297,7 -36917,7 +37297,7 @@@
}
return t;
}
- function bve(e, t) {
-function sve(e, t) {
++function _ve(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@@ -37319,12 -36939,12 +37319,12 @@@
}
return n;
}
- var xve = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), KA = (e) => e.status === "pending" || e.status === "running";
- function Sve(e) {
-var cve = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), KA = (e) => e.status === "pending" || e.status === "running";
-function lve(e) {
++var vve = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), YA = (e) => e.status === "pending" || e.status === "running";
++function yve(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;
-- return [r, YA(e.error) || ZA(e.result_summary) || (KA(e) && i > 0 ? `${JA(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
++ return [r, QA(e.error) || ej(e.result_summary) || (YA(e) && i > 0 ? `${ZA(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
--function qA(e) {
++function XA(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@@ -37333,15 -36953,15 +37333,15 @@@
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
--function JA(e, t) {
++function ZA(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
--function YA(e) {
++function QA(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 XA(e) {
++function $A(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@@ -37351,7 -36971,7 +37351,7 @@@
minute: "2-digit"
});
}
- var Cve = /* @__PURE__ */ new Set([
-var uve = /* @__PURE__ */ new Set([
++var bve = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@@ -37360,32 -36980,32 +37360,32 @@@
"completed_at",
"finished_at"
]);
--function ZA(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Cve.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${vve[e] || e} ${typeof t == "number" ? t.toLocaleString() : t}`).join(" · ");
- return Object.entries(e || {}).filter(([e, t]) => !uve.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ave[e] || e} ${typeof t == "number" ? t.toLocaleString() : t}`).join(" · ");
++function ej(e) {
++ return Object.entries(e || {}).filter(([e, t]) => !bve.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${hve[e] || e} ${typeof t == "number" ? t.toLocaleString() : t}`).join(" · ");
}
//#endregion
//#region src/react/components/source-label.tsx
- function wve({ className: e }) {
-function dve({ className: e }) {
++function xve({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, C.jsx)(BA, { mark: uo[115] })
- children: /* @__PURE__ */ (0, C.jsx)(zA, { mark: uo[115] })
++ children: /* @__PURE__ */ (0, C.jsx)(HA, { mark: uo[115] })
});
}
- function Tve({ className: e }) {
-function fve({ className: e }) {
++function Sve({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, C.jsx)(BA, { mark: uo.pikpak })
- children: /* @__PURE__ */ (0, C.jsx)(zA, { mark: uo.pikpak })
++ children: /* @__PURE__ */ (0, C.jsx)(HA, { mark: uo.pikpak })
});
}
--var QA = {
- 115: wve,
- pikpak: Tve
- 115: dve,
- pikpak: fve
++var tj = {
++ 115: xve,
++ pikpak: Sve
};
- function Eve({ site: e, label: t }) {
-function pve({ site: e, label: t }) {
++function Cve({ site: e, label: t }) {
let [n, r] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n ? /* @__PURE__ */ (0, C.jsx)(BA, { mark: "globe" }) : /* @__PURE__ */ (0, C.jsx)("img", {
- children: [n ? /* @__PURE__ */ (0, C.jsx)(zA, { mark: "globe" }) : /* @__PURE__ */ (0, C.jsx)("img", {
++ children: [n ? /* @__PURE__ */ (0, C.jsx)(HA, { mark: "globe" }) : /* @__PURE__ */ (0, C.jsx)("img", {
src: e === "javdb" ? "/site-mark?source=javdb" : "/site-mark?domain=missav.com",
alt: "",
className: "size-4 shrink-0 object-contain",
@@@ -37393,25 -37013,25 +37393,25 @@@
}), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
});
}
--function $A({ source: e, label: t }) {
++function nj({ source: e, label: t }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: uo[e] || (e === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: uo[e] || (e === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: uo[e] || (e === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
});
}
//#endregion
//#region src/react/activity/downloads-panel.tsx
- var ej = "/api/downloads", tj = ["downloads"], Dve = "/api/downloads/cancel", Ove = "/api/downloads/postprocess", nj = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, kve = {
-var ej = "/api/downloads", tj = ["downloads"], mve = "/api/downloads/cancel", hve = "/api/downloads/postprocess", nj = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, gve = {
++var rj = "/api/downloads", ij = ["downloads"], wve = "/api/downloads/cancel", Tve = "/api/downloads/postprocess", aj = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Eve = {
ingested: "lime",
failed: "rose",
cancelled: "yellow",
stalled: "yellow"
- }, Ave = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rj = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
- function jve() {
-}, _ve = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rj = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
-function vve() {
- let e = (0, S.useId)(), t = pt({
- queryKey: tj,
- queryFn: ({ signal: e }) => H(`${ej}?limit=50`, e),
- refetchInterval: (e) => nj(e.state.data)
++}, Dve = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, oj = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";
++function Ove() {
+ let e = (0, S.useId)(), t = ft({
- queryKey: tj,
- queryFn: ({ signal: e }) => yn(`${ej}?limit=50`, e),
- refetchInterval: (e) => nj(e.state.data)
++ queryKey: ij,
++ queryFn: ({ signal: e }) => yn(`${rj}?limit=50`, e),
++ refetchInterval: (e) => aj(e.state.data)
}), n = t.data;
return !n?.tasks.length && !t.error ? null : /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-labelledby": e,
@@@ -37429,7 -37049,7 +37429,7 @@@
n?.tasks.length ? /* @__PURE__ */ (0, C.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: n.tasks.map((e) => /* @__PURE__ */ (0, C.jsx)(Mve, {
- children: n.tasks.map((e) => /* @__PURE__ */ (0, C.jsx)(yve, {
++ children: n.tasks.map((e) => /* @__PURE__ */ (0, C.jsx)(kve, {
task: e,
writable: n.available
}, e.id))
@@@ -37437,15 -37057,15 +37437,15 @@@
]
});
}
- function Mve({ task: e, writable: t }) {
- let n = T(), r = CA(), [i, a] = (0, S.useState)(!1), o = rj(e), s = e.state === "failed" || e.postprocess_state === "failed", c = [
-function yve({ task: e, writable: t }) {
- let n = T(), r = SA(), [i, a] = (0, S.useState)(!1), o = rj(e), s = e.state === "failed" || e.postprocess_state === "failed", c = [
++function kve({ task: e, writable: t }) {
++ let n = T(), r = TA(), [i, a] = (0, S.useState)(!1), o = oj(e), s = e.state === "failed" || e.postprocess_state === "failed", c = [
e.code,
e.target,
-- XA(e.submitted_at)
++ $A(e.submitted_at)
].filter(Boolean).join(" · "), l = () => {
-- n.invalidateQueries({ queryKey: tj });
++ n.invalidateQueries({ queryKey: ij });
}, u = () => {
- r.run("cancel", (t) => H(Dve, { id: e.id }, "POST", t), l);
- r.run("cancel", (t) => U(mve, { id: e.id }, "POST", t), l);
++ r.run("cancel", (t) => H(wve, { id: e.id }, "POST", t), l);
}, d = () => {
let t = {
magnet: e.source_uri,
@@@ -37455,16 -37075,16 +37455,16 @@@
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => H(ej, t, "POST", e), l);
- r.run("resubmit", (e) => U(ej, t, "POST", e), l);
++ r.run("resubmit", (e) => H(rj, t, "POST", e), l);
}, f = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, p = () => {
- r.run("postprocess", (t) => H(Ove, { id: e.id }, "POST", t), l);
- r.run("postprocess", (t) => U(hve, { id: e.id }, "POST", t), l);
++ r.run("postprocess", (t) => H(Tve, { id: e.id }, "POST", t), l);
};
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
bordered: "line",
className: s ? "flex flex-col border-border-error-default" : "flex flex-col"
@@@ -37477,13 -37097,13 +37477,13 @@@
children: [
/* @__PURE__ */ (0, C.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
- children: Ave(e)
- children: _ve(e)
++ children: Dve(e)
}),
- /* @__PURE__ */ (0, C.jsx)(mA, {
- color: kve[e.state] ?? "neutral",
- /* @__PURE__ */ (0, C.jsx)(pA, {
- color: gve[e.state] ?? "neutral",
++ /* @__PURE__ */ (0, C.jsx)(gA, {
++ color: Eve[e.state] ?? "neutral",
children: e.state_label
}),
- e.state === "ingested" ? /* @__PURE__ */ (0, C.jsx)(mA, {
- e.state === "ingested" ? /* @__PURE__ */ (0, C.jsx)(pA, {
++ e.state === "ingested" ? /* @__PURE__ */ (0, C.jsx)(gA, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : "yellow",
children: e.postprocess_label
}) : null
@@@ -37491,7 -37111,7 +37491,7 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2 text-caption-1-regular text-text-secondary",
-- children: [/* @__PURE__ */ (0, C.jsx)($A, {
++ children: [/* @__PURE__ */ (0, C.jsx)(nj, {
source: e.provider,
label: e.provider_label
}), /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -37499,7 -37119,7 +37499,7 @@@
children: c
})]
}),
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, C.jsx)(SA, {
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, C.jsx)(xA, {
++ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, C.jsx)(wA, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@@ -37508,7 -37128,7 +37508,7 @@@
className: "min-w-0 break-all text-caption-1-regular text-text-secondary",
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: r.error }) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: r.error }) : null,
++ r.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: r.error }) : null,
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2 pt-1",
children: [
@@@ -37553,8 -37173,8 +37553,8 @@@
}
//#endregion
//#region src/react/activity/error-excerpt.tsx
--function ij({ text: e, className: t = "" }) {
-- let [n, r] = (0, S.useState)(!1), i = (0, S.useId)(), a = String(e || "").trim(), o = YA(a);
++function sj({ text: e, className: t = "" }) {
++ let [n, r] = (0, S.useState)(!1), i = (0, S.useId)(), a = String(e || "").trim(), o = QA(a);
if (!o) return null;
let s = o !== a;
return /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -37580,23 -37200,23 +37580,23 @@@
}
//#endregion
//#region src/react/activity/activity-page.tsx
- var Nve = {
-var bve = {
++var Ave = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
--function aj({ status: e }) {
- return /* @__PURE__ */ (0, C.jsx)(mA, {
- color: Nve[e] ?? "neutral",
- children: _ve(e)
- return /* @__PURE__ */ (0, C.jsx)(pA, {
- color: bve[e] ?? "neutral",
- children: ive(e)
++function cj({ status: e }) {
++ return /* @__PURE__ */ (0, C.jsx)(gA, {
++ color: Ave[e] ?? "neutral",
++ children: mve(e)
});
}
- function Pve({ rows: e }) {
-function xve({ rows: e }) {
++function jve({ rows: e }) {
return /* @__PURE__ */ (0, C.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Sve(e);
- let t = lve(e);
++ let t = yve(e);
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@@ -37606,7 -37226,7 +37606,7 @@@
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
-- /* @__PURE__ */ (0, C.jsx)(aj, { status: e.status }),
++ /* @__PURE__ */ (0, C.jsx)(cj, { status: e.status }),
t ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "min-w-0 break-words text-caption-1-regular text-text-secondary",
children: t
@@@ -37616,12 -37236,12 +37616,12 @@@
})
});
}
--function oj({ run: e, meta: t, children: n, footer: r, followups: i }) {
++function lj({ run: e, meta: t, children: n, footer: r, followups: i }) {
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
"data-run-id": e.id,
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@@ -37635,7 -37255,7 +37635,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
-- }), /* @__PURE__ */ (0, C.jsx)(aj, { status: e.status })]
++ }), /* @__PURE__ */ (0, C.jsx)(cj, { status: e.status })]
}),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@@ -37646,15 -37266,15 +37646,15 @@@
}),
i?.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "border-t border-separator-border px-5 py-2.5",
- children: /* @__PURE__ */ (0, C.jsx)(zA, {
- children: /* @__PURE__ */ (0, C.jsx)(RA, {
++ children: /* @__PURE__ */ (0, C.jsx)(VA, {
summary: `任务明细 · ${i.length} 项`,
-- defaultOpen: i.some((e) => KA(e) || e.status === "failed"),
- children: /* @__PURE__ */ (0, C.jsx)(Pve, { rows: i })
- children: /* @__PURE__ */ (0, C.jsx)(xve, { rows: i })
++ defaultOpen: i.some((e) => YA(e) || e.status === "failed"),
++ children: /* @__PURE__ */ (0, C.jsx)(jve, { rows: i })
})
}) : null,
r ? /* @__PURE__ */ (0, C.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, C.jsx)(ij, {
++ children: /* @__PURE__ */ (0, C.jsx)(sj, {
text: r,
className: "text-caption-1-regular text-text-secondary"
})
@@@ -37662,15 -37282,15 +37662,15 @@@
]
});
}
- function Fve({ run: e, followups: t }) {
-function Sve({ run: e, followups: t }) {
-- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = qA(e.elapsed_seconds), o = [GA[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
-- return /* @__PURE__ */ (0, C.jsx)(oj, {
++function Mve({ run: e, followups: t }) {
++ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = XA(e.elapsed_seconds), o = [JA[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
++ return /* @__PURE__ */ (0, C.jsx)(lj, {
run: e,
meta: o,
followups: t,
children: n > 0 ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(SA, {
- children: [/* @__PURE__ */ (0, C.jsx)(xA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(wA, {
label: i,
value: Math.min(r, n),
max: n
@@@ -37679,24 -37299,24 +37679,24 @@@
children: [
i,
" · ",
-- JA(r, n),
++ ZA(r, n),
" 项"
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(yA, { label: i })
- }) : /* @__PURE__ */ (0, C.jsx)(vA, { label: i })
++ }) : /* @__PURE__ */ (0, C.jsx)(xA, { label: i })
});
}
--function sj({ run: e, followups: t, runs: n }) {
-- let r = ZA(e.result_summary), i = qA(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
-- GA[e.trigger] || e.trigger,
++function uj({ run: e, followups: t, runs: n }) {
++ let r = ej(e.result_summary), i = XA(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
++ JA[e.trigger] || e.trigger,
`近 ${n.length} 轮`,
-- `${XA(a.finished_at)} – ${XA(e.finished_at)}`
++ `${$A(a.finished_at)} – ${$A(e.finished_at)}`
] : [
-- GA[e.trigger] || e.trigger,
-- XA(e.finished_at),
++ JA[e.trigger] || e.trigger,
++ $A(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
-- return /* @__PURE__ */ (0, C.jsx)(oj, {
++ return /* @__PURE__ */ (0, C.jsx)(lj, {
run: e,
meta: o,
footer: e.error,
@@@ -37707,7 -37327,7 +37707,7 @@@
}) : null
});
}
--function cj({ title: e, children: t }) {
++function dj({ title: e, children: t }) {
let n = (0, S.useId)();
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-labelledby": n,
@@@ -37719,41 -37339,41 +37719,41 @@@
}), t]
});
}
--function lj({ live: e = !1, children: t }) {
++function fj({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, C.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
- function Ive() {
-function Cve() {
- let e = pt({
- queryKey: VA,
- queryFn: ({ signal: e }) => WA(e),
- refetchInterval: (e) => UA(e.state.data)
++function Nve() {
+ let e = ft({
- queryKey: HA,
- queryFn: ({ signal: e }) => WA(e),
- refetchInterval: (e) => mve(e.state.data)
++ queryKey: WA,
++ queryFn: ({ signal: e }) => qA(e),
++ refetchInterval: (e) => KA(e.state.data)
}), t = e.data, n = t?.finished, [r, i] = (0, S.useState)([]), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(n);
- n !== s && (c(n), r.length && s && i(UA(r, s)));
- n !== s && (c(n), r.length && s && i(HA(r, s)));
- let l = mt({
- mutationFn: ({ oldest: e }) => $_e(e),
++ n !== s && (c(n), r.length && s && i(GA(r, s)));
+ let l = pt({
- mutationFn: ({ oldest: e }) => dve(e),
++ mutationFn: ({ oldest: e }) => lve(e),
onSuccess: (e, { shown: t }) => {
- i((n) => UA(n, t, e.finished || [])), o(!!e.finished_has_more);
- i((n) => HA(n, t, e.finished || [])), o(!!e.finished_has_more);
++ i((n) => GA(n, t, e.finished || [])), o(!!e.finished_has_more);
}
}), u = e.error ? V(e.error) : "";
- if (!t) return /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- if (!t) return /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ if (!t) return /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: u || "读取任务中心失败"
}) });
- let d = UA(t.finished || [], r), f = [
- let d = HA(t.finished || [], r), f = [
++ let d = GA(t.finished || [], r), f = [
...t.running || [],
...t.skipped || [],
...d
- ], p = yve(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
- ], p = ove(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
++ ], p = gve(f), m = new Set(f.map((e) => e.id)), h = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && m.has(e.parent_run_id))), g = h(d), _ = g[g.length - 1], v = !!_ && (r.length ? a : !!t.finished_has_more), y = () => {
!l.isPending && _ && l.mutate({
oldest: _,
shown: d
});
- }, b = g.filter((e) => p.get(e.id)?.some(KA)), x = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !b.includes(e) && !w.some((t) => t.id === e.id)), E = bve(T, (e) => xve(e) && !p.get(e.id)?.length), D = !x.length && !b.length && !w.length && !T.length;
- return /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- }, b = g.filter((e) => p.get(e.id)?.some(KA)), x = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !b.includes(e) && !w.some((t) => t.id === e.id)), E = sve(T, (e) => cve(e) && !p.get(e.id)?.length), D = !x.length && !b.length && !w.length && !T.length;
- return /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
++ }, b = g.filter((e) => p.get(e.id)?.some(YA)), x = h(t.running || []), w = h(t.skipped || []), T = g.filter((e) => !b.includes(e) && !w.some((t) => t.id === e.id)), E = _ve(T, (e) => vve(e) && !p.get(e.id)?.length), D = !x.length && !b.length && !w.length && !T.length;
++ return /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
u ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: u
@@@ -37762,20 -37382,20 +37762,20 @@@
tone: "warning",
children: t.message || "账本上还没有任务中心的表"
}) : null,
- D ? /* @__PURE__ */ (0, C.jsx)(vA, {
- D ? /* @__PURE__ */ (0, C.jsx)(_A, {
++ D ? /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: zk,
- icon: Rk,
++ icon: Vk,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
-- /* @__PURE__ */ (0, C.jsx)(cj, {
++ /* @__PURE__ */ (0, C.jsx)(dj, {
title: "正在进行",
-- children: x.length || b.length ? /* @__PURE__ */ (0, C.jsxs)(lj, {
++ children: x.length || b.length ? /* @__PURE__ */ (0, C.jsxs)(fj, {
live: !0,
- children: [x.map((e) => /* @__PURE__ */ (0, C.jsx)(Fve, {
- children: [x.map((e) => /* @__PURE__ */ (0, C.jsx)(Sve, {
++ children: [x.map((e) => /* @__PURE__ */ (0, C.jsx)(Mve, {
run: e,
followups: p.get(e.id)
-- }, e.id)), b.map((e) => /* @__PURE__ */ (0, C.jsx)(sj, {
++ }, e.id)), b.map((e) => /* @__PURE__ */ (0, C.jsx)(uj, {
run: e,
followups: p.get(e.id)
}, e.id))]
@@@ -37784,17 -37404,17 +37784,17 @@@
children: "没有任务在跑。"
})
}),
-- w.length ? /* @__PURE__ */ (0, C.jsx)(cj, {
++ w.length ? /* @__PURE__ */ (0, C.jsx)(dj, {
title: "被挡下的",
-- children: /* @__PURE__ */ (0, C.jsx)(lj, { children: w.map((e) => /* @__PURE__ */ (0, C.jsx)(sj, {
++ children: /* @__PURE__ */ (0, C.jsx)(fj, { children: w.map((e) => /* @__PURE__ */ (0, C.jsx)(uj, {
run: e,
followups: p.get(e.id)
}, e.id)) })
}) : null,
-- T.length || v ? /* @__PURE__ */ (0, C.jsxs)(cj, {
++ T.length || v ? /* @__PURE__ */ (0, C.jsxs)(dj, {
title: "最近完成",
children: [
-- T.length ? /* @__PURE__ */ (0, C.jsx)(lj, { children: E.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, C.jsx)(sj, {
++ T.length ? /* @__PURE__ */ (0, C.jsx)(fj, { children: E.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, C.jsx)(uj, {
run: e,
runs: t,
followups: p.get(e.id)
@@@ -37806,7 -37426,7 +37806,7 @@@
v ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
-- leadingIcon: Ok,
++ leadingIcon: Ak,
className: "self-start",
...J(l.isPending),
onClick: y,
@@@ -37815,12 -37435,12 +37815,12 @@@
]
}) : null
] }),
- /* @__PURE__ */ (0, C.jsx)(jve, {})
- /* @__PURE__ */ (0, C.jsx)(vve, {})
++ /* @__PURE__ */ (0, C.jsx)(Ove, {})
] });
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
- var uj = fA({
-var uj = dA({
++var pj = mA({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@@ -37841,21 -37461,21 +37841,21 @@@
small: "size-4 shrink-0"
}
});
--function dj({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
++function mj({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, C.jsx)("button", {
ref: i,
type: r,
- className: dA(uj.base, uj.size[t], n),
- className: uA(uj.base, uj.size[t], n),
++ className: pA(pj.base, pj.size[t], n),
...a,
children: /* @__PURE__ */ (0, C.jsx)(e, {
-- className: uj.icon[t],
++ className: pj.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/components/use-stuck.ts
--function fj(e) {
++function hj(e) {
(0, S.useEffect)(() => {
let t = e.current;
if (!t) return;
@@@ -37873,7 -37493,7 +37873,7 @@@
}
//#endregion
//#region src/react/components/use-horizontal-scroller.ts
--function pj(e, t = !0) {
++function gj(e, t = !0) {
let [n, r] = (0, S.useState)(null), i = (0, S.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@@ -37888,17 -37508,17 +37888,17 @@@
}
//#endregion
//#region src/react/components/filter-glass.tsx
- var Lve = ({ className: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var wve = ({ className: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var Pve = ({ className: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: No("正在处理") }
});
--function mj({ label: e, icon: t, busy: n = !1, onPress: r, ...i }) {
-- return /* @__PURE__ */ (0, C.jsx)(dj, {
++function _j({ label: e, icon: t, busy: n = !1, onPress: r, ...i }) {
++ return /* @__PURE__ */ (0, C.jsx)(mj, {
...i,
"data-filter-action": "",
size: "small",
- icon: n ? Lve : t,
- icon: n ? wve : t,
++ icon: n ? Pve : t,
"aria-label": e,
title: i.title || e,
"aria-busy": n || void 0,
@@@ -37908,9 -37528,9 +37908,9 @@@
}
});
}
- function Rve({ title: e, children: t }) {
-function Tve({ title: e, children: t }) {
++function Fve({ title: e, children: t }) {
let n = (0, S.useRef)(null);
-- return fj(n), /* @__PURE__ */ (0, C.jsxs)("div", {
++ return hj(n), /* @__PURE__ */ (0, C.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@@ -37923,16 -37543,16 +37923,16 @@@
}), t]
});
}
--function hj({ 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, S.useRef)(null), f = pj(), p = pj(u);
-- return fj(d), /* @__PURE__ */ (0, C.jsxs)("div", {
++function vj({ 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, S.useRef)(null), f = gj(), p = gj(u);
++ return hj(d), /* @__PURE__ */ (0, C.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: dA("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
- className: uA("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
++ className: pA("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -37940,36 -37560,36 +37940,36 @@@
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: dA("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
- className: uA("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
++ className: pA("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
children: n
}),
/* @__PURE__ */ (0, C.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: dA("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
- className: uA("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
++ className: pA("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
- var zve = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-var Eve = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
--function gj({ children: e, pressed: t, onPress: n, className: r, ...i }) {
++var Ive = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
++function yj({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: dA(zve, r),
- className: uA(Eve, r),
++ className: pA(Ive, r),
onClick: n,
children: e
});
}
- var Bve = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-var Dve = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
--function _j({ children: e, onPress: t, busy: n = !1 }) {
++var Lve = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
++function bj({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Bve,
- className: Dve,
++ className: Lve,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@@ -37980,13 -37600,13 +37980,13 @@@
}
//#endregion
//#region src/react/components/use-view-glide.ts
--var vj = (e, t) => [
++var xj = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
--function yj(e, t, n) {
++function Sj(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;
@@@ -38010,17 -37630,17 +38010,17 @@@
h: e.offsetHeight
};
}
--function bj(e, t, n, r, { axis: i = "x" } = {}) {
++function Cj(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, S.useRef)(null), o = (0, S.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 ? yj(u, l, i) : null;
++ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? Sj(u, l, i) : null;
if (!d || !d.w || !d.h) {
s.getAnimations().forEach((e) => e.cancel()), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
-- s.hidden = !1, a.current = d, !(o && f && vj(f, d)) && ws(s, o ? f : null, d, i);
++ s.hidden = !1, a.current = d, !(o && f && xj(f, d)) && ws(s, o ? f : null, d, i);
}, [
e,
t,
@@@ -38041,8 -37661,8 +38041,8 @@@
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 ? yj(o, r, i) : null, l = a.current;
-- (!s || !l || !vj(s, l)) && c();
++ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? Sj(o, r, i) : null, l = a.current;
++ (!s || !l || !xj(s, l)) && c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@@ -38074,12 -37694,12 +38074,12 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
--var xj = Symbol("default");
--function Sj({ values: e, children: t }) {
++var wj = Symbol("default");
++function Tj({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ S.createElement(n.Provider, { value: r }, t);
return t;
}
--function Cj(e) {
++function Ej(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, S.useMemo)(() => {
let e, l, u;
@@@ -38113,11 -37733,11 +38113,11 @@@
c
]);
}
--function wj(e, t) {
++function Dj(e, t) {
let n = (0, S.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
-- let e = t || xj;
++ let e = t || wj;
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}.`);
@@@ -38126,8 -37746,8 +38126,8 @@@
}
return n;
}
--function Tj(e, t, n) {
- let { ref: r, ...i } = wj(n, e.slot) || {}, a = oy((0, S.useMemo)(() => Zv(t, r), [t, r])), o = G(i, e);
- let { ref: r, ...i } = wj(n, e.slot) || {}, a = ly((0, S.useMemo)(() => $v(t, r), [t, r])), o = ry(i, e);
++function Oj(e, t, n) {
++ let { ref: r, ...i } = Dj(n, e.slot) || {}, a = oy((0, S.useMemo)(() => Zv(t, r), [t, r])), o = G(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,
@@@ -38145,7 -37765,7 +38145,7 @@@
...e.style
}), [o, a];
}
--function Ej(e = !0) {
++function kj(e = !0) {
let [t, n] = (0, S.useState)(e), r = (0, S.useRef)(!1), i = (0, S.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@@ -38153,34 -37773,34 +38153,34 @@@
r.current || n(!1);
}, []), [i, t];
}
--function Dj(e) {
++function Aj(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
- function Vve(e, t, n) {
-function Ove(e, t, n) {
- let { render: r, ...i } = t, a = (0, S.useRef)(null), o = (0, S.useMemo)(() => $v(n, a), [n, a]);
- dv(() => {}, [e, r]);
++function Rve(e, t, n) {
+ let { render: r, ...i } = t, a = (0, S.useRef)(null), o = (0, S.useMemo)(() => Zv(n, a), [n, a]);
+ pv(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ S.createElement(e, s);
}
--var Oj = {}, kj = new Proxy({}, { get(e, t) {
++var jj = {}, Mj = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
-- let n = Oj[t];
- return n || (n = /*#__PURE__*/ (0, S.forwardRef)(Vve.bind(null, t)), Oj[t] = n), n;
- return n || (n = /*#__PURE__*/ (0, S.forwardRef)(Ove.bind(null, t)), Oj[t] = n), n;
--} }), Aj = /*#__PURE__*/ (0, S.createContext)(null), jj = /*#__PURE__*/ (0, S.createContext)(null), Mj = /*#__PURE__*/ (0, S.createContext)(null), Nj = {
++ let n = jj[t];
++ return n || (n = /*#__PURE__*/ (0, S.forwardRef)(Rve.bind(null, t)), jj[t] = n), n;
++} }), Nj = /*#__PURE__*/ (0, S.createContext)(null), Pj = /*#__PURE__*/ (0, S.createContext)(null), Fj = /*#__PURE__*/ (0, S.createContext)(null), Ij = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
-- return Pj(e, null, t);
++ return Lj(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
-- return Pj(e, t, n);
++ return Lj(e, t, n);
}
};
--function Pj(e, t, n) {
- return J_({
++function Lj(e, t, n) {
+ return X_({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@@ -38190,11 -37810,11 +38190,11 @@@
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Hve(e, t, n));
- }), r, kve(e, t, n));
++ }), r, zve(e, t, n));
}
});
}
- function Hve(e, t, n) {
-function kve(e, t, n) {
++function zve(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);
@@@ -38213,25 -37833,25 +38213,25 @@@
}
return s;
}
--var Fj = /*#__PURE__*/ (0, S.createContext)(Nj);
--function Ij(e) {
++var Rj = /*#__PURE__*/ (0, S.createContext)(Ij);
++function zj(e) {
return (0, S.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Label.mjs
- var Lj = /*#__PURE__*/ (0, S.createContext)({}), Rj = /*#__PURE__*/ dy(function(e, t) {
-var Lj = /*#__PURE__*/ (0, S.createContext)({}), Ave = /*#__PURE__*/ my(function(e, t) {
-- [e, t] = Tj(e, t, Lj);
-- let { elementType: n = "label", ...r } = e, i = kj[n];
++var Bj = /*#__PURE__*/ (0, S.createContext)({}), Vj = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, Bj);
++ let { elementType: n = "label", ...r } = e, i = Mj[n];
return /*#__PURE__*/ S.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
- }), Uve = /*#__PURE__*/ (0, S.createContext)(null), zj = /*#__PURE__*/ (0, S.createContext)({}), Bj = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, zj);
-}), jve = /*#__PURE__*/ (0, S.createContext)(null), Rj = /*#__PURE__*/ (0, S.createContext)({}), zj = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, Rj);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Doe(e, t);
- i = Nve(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = PS(e), { hoverProps: l, isHovered: u } = RS({
++}), Bve = /*#__PURE__*/ (0, S.createContext)(null), Hj = /*#__PURE__*/ (0, S.createContext)({}), Uj = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, Hj);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = koe(e, t);
- i = Gve(i, r);
++ i = Hve(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = zS(e), { hoverProps: l, isHovered: u } = US({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@@ -38241,7 -37861,7 +38241,7 @@@
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
-- }, f = Cj({
++ }, f = Ej({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@@ -38257,9 -37877,9 +38257,9 @@@
h,
p
]);
- let _ = nb(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ S.createElement(kj.button, {
- ...ry(_, f, i, o, l),
+ let _ = $y(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ S.createElement(kj.button, {
++ return delete _.onClick, /*#__PURE__*/ S.createElement(Mj.button, {
+ ...G(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@@ -38272,62 -37892,62 +38272,62 @@@
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ S.createElement(Uve.Provider, { value: { id: m } }, f.children));
- }), Wve = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
- function Gve(e, t) {
- }, /*#__PURE__*/ S.createElement(jve.Provider, { value: { id: m } }, f.children));
-}), Mve = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Nve(e, t) {
++ }, /*#__PURE__*/ S.createElement(Bve.Provider, { value: { id: m } }, f.children));
++}), Vve = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
++function Hve(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Wve.test(t) && (e[t] = void 0);
- for (let t in e) t.startsWith("on") && !Mve.test(t) && (e[t] = void 0);
++ for (let t in e) t.startsWith("on") && !Vve.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Heading.mjs
- var Vj = /*#__PURE__*/ (0, S.createContext)({}), Hj = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Vj);
-var Bj = /*#__PURE__*/ (0, S.createContext)({}), Vj = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Bj);
-- let { children: n, level: r = 3, className: i, ...a } = e, o = kj[`h${r}`];
++var Wj = /*#__PURE__*/ (0, S.createContext)({}), Gj = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, Wj);
++ let { children: n, level: r = 3, className: i, ...a } = e, o = Mj[`h${r}`];
return /*#__PURE__*/ S.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
- }), Uj = /*#__PURE__*/ (0, S.createContext)({}), Kve = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, Uj);
-}), Hj = /*#__PURE__*/ (0, S.createContext)({}), Pve = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, Hj);
-- let { elementType: n = "span", ...r } = e, i = kj[n];
++}), Kj = /*#__PURE__*/ (0, S.createContext)({}), Uve = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, Kj);
++ let { elementType: n = "span", ...r } = e, i = Mj[n];
return /*#__PURE__*/ S.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
- }), Wj = /*#__PURE__*/ (0, S.createContext)(null), Gj = /*#__PURE__*/ (0, S.createContext)(null), Kj = /*#__PURE__*/ (0, S.createContext)(null), qj = /*#__PURE__*/ (0, S.createContext)(null), qve = /*#__PURE__*/ (0, S.createContext)(null), Jj = /*#__PURE__*/ (0, S.createContext)(null);
- function Jve(e, t) {
- let { validationBehavior: n } = wj(Gj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(qve), a = oy((0, S.useMemo)(() => Zv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
-}), Uj = /*#__PURE__*/ (0, S.createContext)(null), Wj = /*#__PURE__*/ (0, S.createContext)(null), Gj = /*#__PURE__*/ (0, S.createContext)(null), Kj = /*#__PURE__*/ (0, S.createContext)(null), Fve = /*#__PURE__*/ (0, S.createContext)(null), qj = /*#__PURE__*/ (0, S.createContext)(null);
-function Ive(e, t) {
- let { validationBehavior: n } = wj(Wj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(Fve), a = ly((0, S.useMemo)(() => $v(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
-- ...Dj(e),
++}), qj = /*#__PURE__*/ (0, S.createContext)(null), Jj = /*#__PURE__*/ (0, S.createContext)(null), Yj = /*#__PURE__*/ (0, S.createContext)(null), Xj = /*#__PURE__*/ (0, S.createContext)(null), Wve = /*#__PURE__*/ (0, S.createContext)(null), Zj = /*#__PURE__*/ (0, S.createContext)(null);
++function Gve(e, t) {
++ let { validationBehavior: n } = Dj(Jj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useContext)(Wve), a = oy((0, S.useMemo)(() => Zv(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
++ ...Aj(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? Xoe(o, i, a) : lx(o, mx(e), a), a];
+ return [i ? Qoe(o, i, a) : sx(o, fx(e), a), a];
}
- var Yve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-var Lve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++var Kve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Tj(r, t, Kj);
- let [i, a] = Jve(e, n);
- return /*#__PURE__*/ S.createElement(Jj.Provider, { value: {
- [e, t] = Tj(r, t, Gj);
- let [i, a] = Ive(e, n);
- return /*#__PURE__*/ S.createElement(qj.Provider, { value: {
++ [e, t] = Oj(r, t, Yj);
++ let [i, a] = Gve(e, n);
++ return /*#__PURE__*/ S.createElement(Zj.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ S.createElement(Xve, {
- } }, /*#__PURE__*/ S.createElement(Rve, {
++ } }, /*#__PURE__*/ S.createElement(qve, {
...e,
ref: t
}));
- }), Xve = /*#__PURE__*/ (0, S.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, S.useContext)(Jj), { isFocused: p, isFocusVisible: m, focusProps: h } = zS(), g = a || o, { hoverProps: _, isHovered: v } = US({
-}), Rve = /*#__PURE__*/ (0, S.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, S.useContext)(qj), { isFocused: p, isFocusVisible: m, focusProps: h } = PS(), g = a || o, { hoverProps: _, isHovered: v } = RS({
++}), qve = /*#__PURE__*/ (0, S.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, S.useContext)(Zj), { isFocused: p, isFocusVisible: m, focusProps: h } = zS(), g = a || o, { hoverProps: _, isHovered: v } = US({
...e,
isDisabled: g
-- }), y = Cj({
++ }), y = Ej({
...e,
defaultClassName: u,
values: {
@@@ -38342,9 -37962,9 +38342,9 @@@
isInvalid: c,
isRequired: f || !1
}
- }), b = nb(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(kj.label, {
- ...ry(b, n, _, y),
+ }), b = $y(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(kj.label, {
++ return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Mj.label, {
+ ...G(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@@ -38357,20 -37977,20 +38357,20 @@@
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ S.createElement(vx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
- ...ry(r, h),
+ }, /*#__PURE__*/ S.createElement(xx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ ...G(r, h),
ref: l
})), y.children);
- }), Yj = /*#__PURE__*/ (0, S.createContext)({}), Zve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Yj);
-}), Jj = /*#__PURE__*/ (0, S.createContext)({}), zve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Jj);
++}), Qj = /*#__PURE__*/ (0, S.createContext)({}), Jve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, Qj);
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 } = RS({
+ let { hoverProps: l, isHovered: u } = US({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = zS({ within: !0 }), m = Cj({
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = PS({ within: !0 }), m = Cj({
++ }), { isFocused: d, isFocusVisible: f, focusProps: p } = zS({ within: !0 }), m = Ej({
...e,
values: {
isHovered: u,
@@@ -38381,8 -38001,8 +38381,8 @@@
},
defaultClassName: "react-aria-Group"
});
-- return /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(c, p, l),
++ return /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@@ -38394,18 -38014,18 +38394,18 @@@
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
- }), Xj = /*#__PURE__*/ (0, S.createContext)({}), Qve = (e) => {
-}), Yj = /*#__PURE__*/ (0, S.createContext)({}), Bve = (e) => {
++}), $j = /*#__PURE__*/ (0, S.createContext)({}), Yve = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
- }, $ve = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, Xj);
-}, Vve = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, Yj);
- let { hoverProps: n, isHovered: r } = RS({
++}, Xve = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, $j);
+ let { hoverProps: n, isHovered: r } = US({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = PS({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = zS({
isTextInput: !0,
autoFocus: e.autoFocus
-- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Cj({
++ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Ej({
...e,
values: {
isHovered: r,
@@@ -38416,8 -38036,8 +38416,8 @@@
},
defaultClassName: "react-aria-Input"
});
-- return /*#__PURE__*/ S.createElement(kj.input, {
- ...G(Qve(e), o, n),
- ...ry(Bve(e), o, n),
++ return /*#__PURE__*/ S.createElement(Mj.input, {
++ ...G(Yve(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@@ -38426,229 -38046,8 +38426,229 @@@
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
- }), eye = 0, tye = 100, nye = 1;
- function rye(e) {
- let { isDisabled: t = !1, minValue: n = eye, maxValue: r = tye, numberFormatter: i, step: a = nye, orientation: o = "horizontal" } = e, s = (0, S.useMemo)(() => {
-}), Xj = {};
-Xj = {
++}), Zve = 0, Qve = 100, $ve = 1;
++function eye(e) {
++ let { isDisabled: t = !1, minValue: n = Zve, maxValue: r = Qve, numberFormatter: i, step: a = $ve, orientation: o = "horizontal" } = e, s = (0, S.useMemo)(() => {
+ let e = (r - n) / 10;
+ return e = hx(e, 0, e + a, a), Math.max(e, a);
+ }, [
+ a,
+ r,
+ n
+ ]), c = (0, S.useCallback)((e) => e?.map((t, i) => hx(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ n,
+ r,
+ a
- ]), l = (0, S.useMemo)(() => c(Qj(e.value)), [e.value, c]), u = (0, S.useMemo)(() => c(Qj(e.defaultValue) ?? [n]), [
++ ]), l = (0, S.useMemo)(() => c(tM(e.value)), [e.value, c]), u = (0, S.useMemo)(() => c(tM(e.defaultValue) ?? [n]), [
+ e.defaultValue,
+ n,
+ c
- ]), d = $j(e.value, e.defaultValue, e.onChange), f = $j(e.value, e.defaultValue, e.onChangeEnd), [p, m] = dx(l, u, d), [h] = (0, S.useState)(p), [g, _] = (0, S.useState)(Array(p.length).fill(!1)), v = (0, S.useRef)(Array(p.length).fill(!0)), [y, b] = (0, S.useState)(void 0), x = (0, S.useRef)(p), C = (0, S.useRef)(g), w = (e) => {
++ ]), d = nM(e.value, e.defaultValue, e.onChange), f = nM(e.value, e.defaultValue, e.onChangeEnd), [p, m] = dx(l, u, d), [h] = (0, S.useState)(p), [g, _] = (0, S.useState)(Array(p.length).fill(!1)), v = (0, S.useRef)(Array(p.length).fill(!0)), [y, b] = (0, S.useState)(void 0), x = (0, S.useRef)(p), C = (0, S.useRef)(g), w = (e) => {
+ x.current = e, m(e);
+ }, T = (e) => {
+ C.current = e, _(e);
+ };
+ function E(e) {
+ return (e - n) / (r - n);
+ }
+ function D(e) {
+ return e === 0 ? n : p[e - 1];
+ }
+ function O(e) {
+ return e === p.length - 1 ? r : p[e + 1];
+ }
+ function k(e) {
+ return v.current[e];
+ }
+ function A(e, t) {
+ v.current[e] = t;
+ }
+ function j(e, n) {
+ if (t || !k(e)) return;
+ let r = D(e), i = O(e);
+ n = hx(n, r, i, a);
- let o = Zj(x.current, e, n);
++ let o = eM(x.current, e, n);
+ w(o);
+ }
+ function M(e, n) {
+ if (t || !k(e)) return;
+ n && (x.current = p);
+ let r = C.current[e];
- C.current = Zj(C.current, e, n), T(C.current), f && r && !C.current.some(Boolean) && f(x.current);
++ C.current = eM(C.current, e, n), T(C.current), f && r && !C.current.some(Boolean) && f(x.current);
+ }
+ let N = (0, S.useRef)(null);
+ function P(e = p) {
+ switch (typeof e == "number" && (e = [e]), e.length) {
+ case 0: return "";
+ case 1: return i.format(e[0]);
+ case 2: return i.formatRange(e[0], e[1]);
+ default: {
+ let t = e.map((e) => i.format(e)), n = N.current;
+ return (!n || n.resolvedOptions().locale !== i.resolvedOptions().locale) && (n = N.current = new Intl.ListFormat(i.resolvedOptions().locale, { type: "unit" })), n.format(t);
+ }
+ }
+ }
+ function F(e, t) {
+ j(e, ee(t));
+ }
+ function I(e) {
+ return Math.round((e - n) / a) * a + n;
+ }
+ function ee(e) {
+ return px(I(e * (r - n) + n), n, r);
+ }
+ function L(e, t = 1) {
+ let i = Math.max(t, a);
+ j(e, hx(p[e] + i, n, r, a));
+ }
+ function te(e, t = 1) {
+ let i = Math.max(t, a);
+ j(e, hx(p[e] - i, n, r, a));
+ }
+ return {
+ values: p,
+ defaultValues: e.defaultValue === void 0 ? h : u,
+ getThumbValue: (e) => p[e],
+ setThumbValue: j,
+ setThumbPercent: F,
+ isThumbDragging: (e) => g[e],
+ setThumbDragging: M,
+ focusedThumb: y,
+ setFocusedThumb: b,
+ getThumbPercent: (e) => E(p[e]),
+ getValuePercent: E,
+ getThumbValueLabel: (e) => P(p[e]),
+ getFormattedValue: P,
+ getThumbMinValue: D,
+ getThumbMaxValue: O,
+ getPercentValue: ee,
+ isThumbEditable: k,
+ setThumbEditable: A,
+ incrementThumb: L,
+ decrementThumb: te,
+ step: a,
+ pageSize: s,
+ orientation: o,
+ isDisabled: t
+ };
+}
- function Zj(e, t, n) {
++function eM(e, t, n) {
+ return e[t] === n ? e : [
+ ...e.slice(0, t),
+ n,
+ ...e.slice(t + 1)
+ ];
+}
- function Qj(e) {
++function tM(e) {
+ if (e != null) return Array.isArray(e) ? e : [e];
+}
- function $j(e, t, n) {
++function nM(e, t, n) {
+ return (r) => {
+ typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
+ };
+}
+//#endregion
+//#region node_modules/react-aria-components/dist/private/Slider.mjs
- var iye = /*#__PURE__*/ (0, S.createContext)(null), eM = /*#__PURE__*/ (0, S.createContext)(null), tM = /*#__PURE__*/ (0, S.createContext)(null), aye = /*#__PURE__*/ (0, S.createContext)(null), oye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, iye);
- let n = (0, S.useRef)(null), r = rse(e.formatOptions), i = rye({
++var tye = /*#__PURE__*/ (0, S.createContext)(null), rM = /*#__PURE__*/ (0, S.createContext)(null), iM = /*#__PURE__*/ (0, S.createContext)(null), nye = /*#__PURE__*/ (0, S.createContext)(null), rye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, tye);
++ let n = (0, S.useRef)(null), r = rse(e.formatOptions), i = eye({
+ ...e,
+ numberFormatter: r
- }), [a, o] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = ise({
++ }), [a, o] = kj(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = ise({
+ ...e,
+ label: o
- }, i, n), d = Cj({
++ }, i, n), d = Ej({
+ ...e,
+ values: {
+ orientation: i.orientation,
+ isDisabled: i.isDisabled,
+ state: i
+ },
+ defaultClassName: "react-aria-Slider"
+ }), f = $y(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ S.createElement(Sj, { values: [
- [eM, i],
- [tM, {
++ return delete f.id, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [rM, i],
++ [iM, {
+ ...c,
+ ref: n
+ }],
- [aye, u],
- [Lj, {
++ [nye, u],
++ [Bj, {
+ ...l,
+ ref: a
+ }]
- ] }, /*#__PURE__*/ S.createElement(kj.div, {
++ ] }, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(f, d, s),
+ ref: t,
+ slot: e.slot || void 0,
+ "data-orientation": i.orientation,
+ "data-disabled": i.isDisabled || void 0
+ }));
- }), sye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, tM);
- let n = (0, S.useContext)(eM), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = US({
++}), iye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, iM);
++ let n = (0, S.useContext)(rM), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = US({
+ onHoverStart: r,
+ onHoverEnd: i,
+ onHoverChange: a
- }), l = Cj({
++ }), l = Ej({
+ ...e,
+ defaultClassName: "react-aria-SliderTrack",
+ values: {
+ orientation: n.orientation,
+ isDisabled: n.isDisabled,
+ isHovered: c,
+ state: n
+ }
+ });
- return /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(o, s),
+ ...l,
+ ref: t,
+ "data-hovered": c || void 0,
+ "data-orientation": n.orientation || void 0,
+ "data-disabled": n.isDisabled || void 0
+ });
- }), cye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, S.useContext)(eM), { ref: i } = wj(tM), { index: a = 0 } = e, o = (0, S.useRef)(null), s = n || o, [c, l] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = ase({
++}), aye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { inputRef: n = null } = e, r = (0, S.useContext)(rM), { ref: i } = Dj(iM), { index: a = 0 } = e, o = (0, S.useRef)(null), s = n || o, [c, l] = kj(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = ase({
+ ...e,
+ index: a,
+ trackRef: i,
+ inputRef: s,
+ label: l
- }, r), { focusProps: g, isFocusVisible: _ } = zS(), { hoverProps: v, isHovered: y } = US(e), b = Cj({
++ }, r), { focusProps: g, isFocusVisible: _ } = zS(), { hoverProps: v, isHovered: y } = US(e), b = Ej({
+ ...e,
+ defaultClassName: "react-aria-SliderThumb",
+ values: {
+ state: r,
+ isHovered: y,
+ isDragging: p,
+ isFocused: m,
+ isFocusVisible: _,
+ isDisabled: h
+ }
+ }), x = $y(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ S.createElement(kj.div, {
++ return delete x.id, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(x, u, v),
+ ...b,
+ ref: t,
+ style: {
+ ...u.style,
+ ...b.style
+ },
+ "data-hovered": y || void 0,
+ "data-dragging": p || void 0,
+ "data-focused": m || void 0,
+ "data-focus-visible": _ || void 0,
+ "data-disabled": h || void 0
+ }, /*#__PURE__*/ S.createElement(xx, null, /*#__PURE__*/ S.createElement("input", {
+ ref: s,
+ ...G(d, g)
- })), /*#__PURE__*/ S.createElement(Sj, { values: [[Lj, {
++ })), /*#__PURE__*/ S.createElement(Tj, { values: [[Bj, {
+ ...f,
+ ref: c
+ }]] }, b.children));
- }), nM = {};
- nM = {
++}), aM = {};
++aM = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@@ -38656,8 -38055,8 +38656,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
- var rM = {};
- rM = {
-var Zj = {};
-Zj = {
++var oM = {};
++oM = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@@ -38665,8 -38064,8 +38665,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
- var iM = {};
- iM = {
-var Qj = {};
-Qj = {
++var sM = {};
++sM = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@@ -38674,8 -38073,8 +38674,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
- var aM = {};
- aM = {
-var $j = {};
-$j = {
++var cM = {};
++cM = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@@ -38683,8 -38082,8 +38683,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
- var oM = {};
- oM = {
-var eM = {};
-eM = {
++var lM = {};
++lM = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@@ -38692,8 -38091,8 +38692,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
- var sM = {};
- sM = {
-var tM = {};
-tM = {
++var uM = {};
++uM = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@@ -38701,8 -38100,8 +38701,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
- var cM = {};
- cM = {
-var nM = {};
-nM = {
++var dM = {};
++dM = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@@ -38710,8 -38109,8 +38710,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
- var lM = {};
- lM = {
-var rM = {};
-rM = {
++var fM = {};
++fM = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@@ -38719,8 -38118,8 +38719,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
- var uM = {};
- uM = {
-var iM = {};
-iM = {
++var pM = {};
++pM = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@@ -38728,8 -38127,8 +38728,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
- var dM = {};
- dM = {
-var aM = {};
-aM = {
++var mM = {};
++mM = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@@ -38737,8 -38136,8 +38737,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
- var fM = {};
- fM = {
-var oM = {};
-oM = {
++var hM = {};
++hM = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@@ -38746,8 -38145,8 +38746,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
- var pM = {};
- pM = {
-var sM = {};
-sM = {
++var gM = {};
++gM = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@@ -38755,8 -38154,8 +38755,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
- var mM = {};
- mM = {
-var cM = {};
-cM = {
++var _M = {};
++_M = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@@ -38764,8 -38163,8 +38764,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
- var hM = {};
- hM = {
-var lM = {};
-lM = {
++var vM = {};
++vM = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@@ -38773,8 -38172,8 +38773,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
- var gM = {};
- gM = {
-var uM = {};
-uM = {
++var yM = {};
++yM = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@@ -38782,8 -38181,8 +38782,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
- var _M = {};
- _M = {
-var dM = {};
-dM = {
++var bM = {};
++bM = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@@ -38791,8 -38190,8 +38791,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
- var vM = {};
- vM = {
-var fM = {};
-fM = {
++var xM = {};
++xM = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@@ -38800,8 -38199,8 +38800,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
- var yM = {};
- yM = {
-var pM = {};
-pM = {
++var SM = {};
++SM = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@@ -38809,8 -38208,8 +38809,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
- var bM = {};
- bM = {
-var mM = {};
-mM = {
++var CM = {};
++CM = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@@ -38818,8 -38217,8 +38818,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
- var xM = {};
- xM = {
-var hM = {};
-hM = {
++var wM = {};
++wM = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@@ -38827,8 -38226,8 +38827,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
- var SM = {};
- SM = {
-var gM = {};
-gM = {
++var TM = {};
++TM = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@@ -38836,8 -38235,8 +38836,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
- var CM = {};
- CM = {
-var _M = {};
-_M = {
++var EM = {};
++EM = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@@ -38845,8 -38244,8 +38845,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
- var wM = {};
- wM = {
-var vM = {};
-vM = {
++var DM = {};
++DM = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@@ -38854,8 -38253,8 +38854,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
- var TM = {};
- TM = {
-var yM = {};
-yM = {
++var OM = {};
++OM = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@@ -38863,8 -38262,8 +38863,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
- var EM = {};
- EM = {
-var bM = {};
-bM = {
++var kM = {};
++kM = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@@ -38872,8 -38271,8 +38872,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
- var DM = {};
- DM = {
-var xM = {};
-xM = {
++var AM = {};
++AM = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@@ -38881,8 -38280,8 +38881,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
- var OM = {};
- OM = {
-var SM = {};
-SM = {
++var jM = {};
++jM = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@@ -38890,8 -38289,8 +38890,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
- var kM = {};
- kM = {
-var CM = {};
-CM = {
++var MM = {};
++MM = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@@ -38899,8 -38298,8 +38899,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
- var AM = {};
- AM = {
-var wM = {};
-wM = {
++var NM = {};
++NM = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@@ -38908,8 -38307,8 +38908,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
- var jM = {};
- jM = {
-var TM = {};
-TM = {
++var PM = {};
++PM = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@@ -38917,8 -38316,8 +38917,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
- var MM = {};
- MM = {
-var EM = {};
-EM = {
++var FM = {};
++FM = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@@ -38926,8 -38325,8 +38926,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
- var NM = {};
- NM = {
-var DM = {};
-DM = {
++var IM = {};
++IM = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@@ -38935,8 -38334,8 +38935,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
- var PM = {};
- PM = {
-var OM = {};
-OM = {
++var LM = {};
++LM = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@@ -38944,8 -38343,8 +38944,8 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
- var FM = {};
- FM = {
-var kM = {};
-kM = {
++var RM = {};
++RM = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@@ -38953,52 -38352,52 +38953,52 @@@
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
- var IM = {};
- IM = {
- "ar-AE": nM,
- "bg-BG": rM,
- "cs-CZ": iM,
- "da-DK": aM,
- "de-DE": oM,
- "el-GR": sM,
- "en-US": cM,
- "es-ES": lM,
- "et-EE": uM,
- "fi-FI": dM,
- "fr-FR": fM,
- "he-IL": pM,
- "hr-HR": mM,
- "hu-HU": hM,
- "it-IT": gM,
- "ja-JP": _M,
- "ko-KR": vM,
- "lt-LT": yM,
- "lv-LV": bM,
- "nb-NO": xM,
- "nl-NL": SM,
- "pl-PL": CM,
- "pt-BR": wM,
- "pt-PT": TM,
- "ro-RO": EM,
- "ru-RU": DM,
- "sk-SK": OM,
- "sl-SI": kM,
- "sr-SP": AM,
- "sv-SE": jM,
- "tr-TR": MM,
- "uk-UA": NM,
- "zh-CN": PM,
- "zh-TW": FM
-var AM = {};
-AM = {
- "ar-AE": Xj,
- "bg-BG": Zj,
- "cs-CZ": Qj,
- "da-DK": $j,
- "de-DE": eM,
- "el-GR": tM,
- "en-US": nM,
- "es-ES": rM,
- "et-EE": iM,
- "fi-FI": aM,
- "fr-FR": oM,
- "he-IL": sM,
- "hr-HR": cM,
- "hu-HU": lM,
- "it-IT": uM,
- "ja-JP": dM,
- "ko-KR": fM,
- "lt-LT": pM,
- "lv-LV": mM,
- "nb-NO": hM,
- "nl-NL": gM,
- "pl-PL": _M,
- "pt-BR": vM,
- "pt-PT": yM,
- "ro-RO": bM,
- "ru-RU": xM,
- "sk-SK": SM,
- "sl-SI": CM,
- "sr-SP": wM,
- "sv-SE": TM,
- "tr-TR": EM,
- "uk-UA": DM,
- "zh-CN": OM,
- "zh-TW": kM
++var zM = {};
++zM = {
++ "ar-AE": aM,
++ "bg-BG": oM,
++ "cs-CZ": sM,
++ "da-DK": cM,
++ "de-DE": lM,
++ "el-GR": uM,
++ "en-US": dM,
++ "es-ES": fM,
++ "et-EE": pM,
++ "fi-FI": mM,
++ "fr-FR": hM,
++ "he-IL": gM,
++ "hr-HR": _M,
++ "hu-HU": vM,
++ "it-IT": yM,
++ "ja-JP": bM,
++ "ko-KR": xM,
++ "lt-LT": SM,
++ "lv-LV": CM,
++ "nb-NO": wM,
++ "nl-NL": TM,
++ "pl-PL": EM,
++ "pt-BR": DM,
++ "pt-PT": OM,
++ "ro-RO": kM,
++ "ru-RU": AM,
++ "sk-SK": jM,
++ "sl-SI": MM,
++ "sr-SP": NM,
++ "sv-SE": PM,
++ "tr-TR": FM,
++ "uk-UA": IM,
++ "zh-CN": LM,
++ "zh-TW": RM
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
- var LM = /*#__PURE__*/ (0, S.createContext)({}), RM = /*#__PURE__*/ (0, S.createContext)(null), lye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { render: n } = (0, S.useContext)(RM);
-var jM = /*#__PURE__*/ (0, S.createContext)({}), MM = /*#__PURE__*/ (0, S.createContext)(null), Hve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { render: n } = (0, S.useContext)(MM);
++var BM = /*#__PURE__*/ (0, S.createContext)({}), VM = /*#__PURE__*/ (0, S.createContext)(null), oye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { render: n } = (0, S.useContext)(VM);
return /*#__PURE__*/ S.createElement(S.Fragment, null, n(e, t));
});
- function zM(e, t) {
-function NM(e, t) {
++function HM(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, S.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ S.createElement(lye, { target: e });
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ S.createElement(Hve, { target: e });
++ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ S.createElement(oye, { target: e });
}, [
t?.target,
r,
@@@ -39006,7 -38405,7 +39006,7 @@@
]);
return e?.useDropIndicator ? i : void 0;
}
- function BM(e, t, n) {
-function PM(e, t, n) {
++function UM(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;
@@@ -39028,14 -38427,14 +39028,14 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
- var VM = /*#__PURE__*/ (0, S.createContext)({}), uye = /*#__PURE__*/ (0, S.createContext)(null);
- function HM(e) {
-var FM = /*#__PURE__*/ (0, S.createContext)({}), Uve = /*#__PURE__*/ (0, S.createContext)(null);
-function IM(e) {
++var WM = /*#__PURE__*/ (0, S.createContext)({}), sye = /*#__PURE__*/ (0, S.createContext)(null);
++function GM(e) {
let t = (0, S.useRef)({});
- return /*#__PURE__*/ S.createElement(uye.Provider, { value: t }, e.children);
- return /*#__PURE__*/ S.createElement(Uve.Provider, { value: t }, e.children);
++ return /*#__PURE__*/ S.createElement(sye.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
- var UM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), WM = /*#__PURE__*/ (0, S.createContext)({}), dye = /*#__PURE__*/ yy(class extends G_ {
-var LM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), RM = /*#__PURE__*/ (0, S.createContext)({}), Wve = /*#__PURE__*/ Sy(class extends U_ {
++var KM = /*#__PURE__*/ (0, S.createContext)({ isSelected: !1 }), qM = /*#__PURE__*/ (0, S.createContext)({}), cye = /*#__PURE__*/ yy(class extends G_ {
static {
this.type = "separator";
}
@@@ -39048,10 -38447,10 +39048,10 @@@
return null;
}
}, function(e, t) {
- [e, t] = Tj(e, t, WM);
- [e, t] = Tj(e, t, RM);
++ [e, t] = Oj(e, t, qM);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = kj[c], { separatorProps: u } = fce({
- let l = kj[c], { separatorProps: u } = ice({
++ let l = Mj[c], { separatorProps: u } = fce({
...s,
elementType: n,
orientation: r
@@@ -39067,13 -38466,13 +39067,13 @@@
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
- function GM(e) {
-function zM(e) {
++function JM(e) {
let t = S.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
//#endregion
//#region node_modules/react-stately/dist/private/list/ListCollection.mjs
- var KM = class {
-var BM = class {
++var YM = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@@ -39117,20 -38516,20 +39117,20 @@@
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
- }, qM = class e extends Set {
-}, VM = class e extends Set {
++}, XM = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
//#endregion
//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
- function fye(e, t) {
-function Gve(e, t) {
++function lye(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
- function JM(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = dx((0, S.useMemo)(() => YM(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => YM(e.defaultSelectedKeys, new qM()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
-function HM(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = px((0, S.useMemo)(() => UM(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => UM(e.defaultSelectedKeys, new VM()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
++function ZM(e) {
++ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, S.useRef)(!1), [, s] = (0, S.useState)(!1), c = (0, S.useRef)(null), l = (0, S.useRef)(null), [, u] = (0, S.useState)(null), [d, f] = dx((0, S.useMemo)(() => QM(e.selectedKeys), [e.selectedKeys]), (0, S.useMemo)(() => QM(e.defaultSelectedKeys, new XM()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, S.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, S.useRef)(i);
return (0, S.useEffect)(() => {
@@@ -39157,18 -38556,18 +39157,18 @@@
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !fye(e, d)) && f(e);
- (r || !Gve(e, d)) && f(e);
++ (r || !lye(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
- function YM(e, t) {
- return e ? e === "all" ? "all" : new qM(e) : t;
-function UM(e, t) {
- return e ? e === "all" ? "all" : new VM(e) : t;
++function QM(e, t) {
++ return e ? e === "all" ? "all" : new XM(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
- var XM = class e {
-var WM = class e {
++var $M = 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;
}
@@@ -39251,10 -38650,10 +39251,10 @@@
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new qM([t], t, t);
- if (this.state.selectedKeys === "all") n = new VM([t], t, t);
++ if (this.state.selectedKeys === "all") n = new XM([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new qM(e, r, t);
- n = new VM(e, r, t);
++ n = new XM(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);
}
@@@ -39288,19 -38687,19 +39288,19 @@@
}
let t = this.getKey(e);
if (t == null) return;
- let n = new qM(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
- let n = new VM(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
++ let n = new XM(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 qM([t], t, t) : new qM();
- let n = this.canSelectItem(t) ? new VM([t], t, t) : new VM();
++ let n = this.canSelectItem(t) ? new XM([t], t, t) : new XM();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new qM();
- let t = new VM();
++ let t = new XM();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@@ -39323,7 -38722,7 +39323,7 @@@
!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 qM());
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new VM());
++ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new XM());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@@ -39364,9 -38763,9 +39364,9 @@@
fullCollection: this.fullCollection ?? this.collection
});
}
- }, pye = class {
-}, Kve = class {
++}, uye = class {
build(e, t) {
- return this.context = t, ZM(() => this.iterateCollection(e));
- return this.context = t, GM(() => this.iterateCollection(e));
++ return this.context = t, eN(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@@ -39448,10 -38847,10 +39448,10 @@@
...a,
key: l,
index: s,
- wrapper: mye(e.wrapper, a.wrapper)
- wrapper: qve(e.wrapper, a.wrapper)
++ wrapper: dye(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 <${QM(t.type)}> in <${QM(r?.type ?? "unknown parent type")}>. Only <${QM(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 <${KM(t.type)}> in <${KM(r?.type ?? "unknown parent type")}>. Only <${KM(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 <${tN(t.type)}> in <${tN(r?.type ?? "unknown parent type")}>. Only <${tN(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@@ -39473,7 -38872,7 +39473,7 @@@
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: ZM(function* () {
- childNodes: GM(function* () {
++ childNodes: eN(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@@ -39492,7 -38891,7 +39492,7 @@@
this.cache = /* @__PURE__ */ new WeakMap();
}
};
- function ZM(e) {
-function GM(e) {
++function eN(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@@ -39500,18 -38899,18 +39500,18 @@@
for (let e of n) t.push(e), yield e;
} };
}
- function mye(e, t) {
-function qve(e, t) {
++function dye(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
- function QM(e) {
-function KM(e) {
++function tN(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
- function $M(e, t, n) {
- let r = (0, S.useMemo)(() => new pye(), []), { children: i, items: a, collection: o } = e;
-function qM(e, t, n) {
- let r = (0, S.useMemo)(() => new Kve(), []), { children: i, items: a, collection: o } = e;
++function nN(e, t, n) {
++ let r = (0, S.useMemo)(() => new uye(), []), { children: i, items: a, collection: o } = e;
return (0, S.useMemo)(() => o || t(r.build({
children: i,
items: a
@@@ -39526,27 -38925,27 +39526,27 @@@
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
- function eN(e) {
- let { filter: t, layoutDelegate: n } = e, r = JM(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = $M(e, (0, S.useCallback)((e) => t ? new KM(t(e)) : new KM(e), [t]), (0, S.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, S.useMemo)(() => new XM(a, r, { layoutDelegate: n }), [
-function JM(e) {
- let { filter: t, layoutDelegate: n } = e, r = HM(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = qM(e, (0, S.useCallback)((e) => t ? new BM(t(e)) : new BM(e), [t]), (0, S.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, S.useMemo)(() => new WM(a, r, { layoutDelegate: n }), [
++function rN(e) {
++ let { filter: t, layoutDelegate: n } = e, r = ZM(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = nN(e, (0, S.useCallback)((e) => t ? new YM(t(e)) : new YM(e), [t]), (0, S.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, S.useMemo)(() => new $M(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return tN(a, o), {
- return YM(a, o), {
++ return iN(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
- function hye(e, t) {
-function Jve(e, t) {
++function fye(e, t) {
let n = (0, S.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return tN(n, r), {
- return YM(n, r), {
++ return iN(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
- function tN(e, t) {
-function YM(e, t) {
++function iN(e, t) {
let n = (0, S.useRef)(null);
(0, S.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@@ -39574,11 -38973,11 +39574,11 @@@
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
- function nN(e, t) {
-function XM(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, S.useRef)(null), s = By((e) => {
++function aN(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, S.useRef)(null), s = Ly((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- dv(() => {
+ pv(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
@@@ -39598,42 -38997,42 +39598,42 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
- var rN = /*#__PURE__*/ (0, S.createContext)(null), iN = /*#__PURE__*/ (0, S.createContext)(null), gye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, rN);
- let n = (0, S.useContext)(iN);
- return n ? /*#__PURE__*/ S.createElement(aN, {
-var ZM = /*#__PURE__*/ (0, S.createContext)(null), QM = /*#__PURE__*/ (0, S.createContext)(null), Yve = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, ZM);
- let n = (0, S.useContext)(QM);
- return n ? /*#__PURE__*/ S.createElement($M, {
++var oN = /*#__PURE__*/ (0, S.createContext)(null), sN = /*#__PURE__*/ (0, S.createContext)(null), pye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, oN);
++ let n = (0, S.useContext)(sN);
++ return n ? /*#__PURE__*/ S.createElement(cN, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ S.createElement(gy, { content: /*#__PURE__*/ S.createElement(Cy, e) }, (n) => /*#__PURE__*/ S.createElement(_ye, {
- }) : /*#__PURE__*/ S.createElement(yy, { content: /*#__PURE__*/ S.createElement(Ey, e) }, (n) => /*#__PURE__*/ S.createElement(Xve, {
++ }) : /*#__PURE__*/ S.createElement(gy, { content: /*#__PURE__*/ S.createElement(Cy, e) }, (n) => /*#__PURE__*/ S.createElement(mye, {
props: e,
listBoxRef: t,
collection: n
}));
});
- function _ye({ props: e, listBoxRef: t, collection: n }) {
-function Xve({ props: e, listBoxRef: t, collection: n }) {
++function mye({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, S.useContext)(Fj), i = eN({
- let { layoutDelegate: r } = (0, S.useContext)(Fj), i = JM({
++ let { layoutDelegate: r } = (0, S.useContext)(Rj), i = rN({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ S.createElement(aN, {
- return /*#__PURE__*/ S.createElement($M, {
++ return /*#__PURE__*/ S.createElement(cN, {
state: i,
props: e,
listBoxRef: t
});
}
- function aN({ state: e, props: t, listBoxRef: n }) {
-function $M({ state: e, props: t, listBoxRef: n }) {
-- [t, n] = Tj(t, n, Aj);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = hye(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Gy(), { disabledBehavior: p, disabledKeys: m } = l, h = MS({
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Jve(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Jy(), { disabledBehavior: p, disabledKeys: m } = l, h = DS({
++function cN({ state: e, props: t, listBoxRef: n }) {
++ [t, n] = Oj(t, n, Nj);
++ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = fye(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Gy(), { disabledBehavior: p, disabledKeys: m } = l, h = MS({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(Fj), b = (0, S.useMemo)(() => t.keyboardDelegate || new Px({
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(Fj), b = (0, S.useMemo)(() => t.keyboardDelegate || new kx({
++ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, S.useContext)(Rj), b = (0, S.useMemo)(() => t.keyboardDelegate || new Px({
collection: c,
collator: h,
ref: n,
@@@ -39694,7 -39093,7 +39694,7 @@@
layout: t.layout || "stack",
orientation: a,
state: s
-- }, P = Cj({
++ }, P = Ej({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@@ -39704,9 -39103,9 +39704,9 @@@
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(N)));
- let I = nb(t, { global: !0 });
- return /*#__PURE__*/ S.createElement(Tb, null, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(I, P, x, k, T?.collectionProps),
+ let I = $y(t, { global: !0 });
- return /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(I, P, x, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@@ -39716,55 -39115,55 +39716,55 @@@
"data-focus-visible": j || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [rN, t],
- [iN, s],
- [LM, {
- [ZM, t],
- [QM, s],
- [jM, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [oN, t],
++ [sN, s],
++ [BM, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [WM, { elementType: "div" }],
- [RM, { render: bye }],
- [RM, { elementType: "div" }],
- [MM, { render: $ve }],
-- [Mj, {
++ [qM, { elementType: "div" }],
++ [VM, { render: _ye }],
++ [Fj, {
name: "ListBoxSection",
- render: vye
- render: Zve
++ render: hye
}]
- ] }, /*#__PURE__*/ S.createElement(HM, null, /*#__PURE__*/ S.createElement(y, {
- ] }, /*#__PURE__*/ S.createElement(IM, null, /*#__PURE__*/ S.createElement(y, {
++ ] }, /*#__PURE__*/ S.createElement(GM, null, /*#__PURE__*/ S.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: BM(l, r, w),
- renderDropIndicator: zM(r, w)
- persistedKeys: PM(l, r, w),
- renderDropIndicator: NM(r, w)
++ persistedKeys: UM(l, r, w),
++ renderDropIndicator: HM(r, w)
}))), F, D));
}
- function vye(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, S.useContext)(iN), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(LM), { CollectionBranch: s } = (0, S.useContext)(Fj), [c, l] = Ej(), { headingProps: u, groupProps: d } = Nse({
-function Zve(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, S.useContext)(QM), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(jM), { CollectionBranch: s } = (0, S.useContext)(Fj), [c, l] = Ej(), { headingProps: u, groupProps: d } = Tse({
++function hye(e, t, n, r = "react-aria-ListBoxSection") {
++ let i = (0, S.useContext)(sN), { dragAndDropHooks: a, dropState: o } = (0, S.useContext)(BM), { CollectionBranch: s } = (0, S.useContext)(Rj), [c, l] = kj(), { headingProps: u, groupProps: d } = Nse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
-- }), f = Cj({
++ }), f = Ej({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = nb(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ S.createElement(kj.section, {
- ...ry(p, f, d),
+ }), p = $y(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ S.createElement(kj.section, {
++ return delete p.id, /*#__PURE__*/ S.createElement(Mj.section, {
+ ...G(p, f, d),
ref: t
- }, /*#__PURE__*/ S.createElement(VM.Provider, { value: {
- }, /*#__PURE__*/ S.createElement(FM.Provider, { value: {
++ }, /*#__PURE__*/ S.createElement(WM.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ S.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: zM(a, o)
- renderDropIndicator: NM(a, o)
++ renderDropIndicator: HM(a, o)
})));
}
- var yye = /*#__PURE__*/ yy(Eie, function(e, t, n) {
- let r = oy(t), i = (0, S.useContext)(iN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(LM), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Pse({
-var Qve = /*#__PURE__*/ Sy(Die, function(e, t, n) {
- let r = ly(t), i = (0, S.useContext)(QM), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(jM), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ese({
++var gye = /*#__PURE__*/ yy(Eie, function(e, t, n) {
++ let r = oy(t), i = (0, S.useContext)(sN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(BM), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Pse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = RS({
+ }, i, r), { hoverProps: p, isHovered: m } = US({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@@ -39780,7 -39179,7 +39780,7 @@@
key: n.key,
dropPosition: "on"
} }, s, r));
-- let y = o && o.isDragging(n.key), b = Cj({
++ let y = o && o.isDragging(n.key), b = Ej({
...e,
id: void 0,
children: e.children,
@@@ -39798,9 -39197,9 +39798,9 @@@
(0, S.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? kj.a : kj.div, C = $y(e, { global: !0 });
- let x = e.href ? kj.a : kj.div, C = nb(e, { global: !0 });
++ let x = e.href ? Mj.a : Mj.div, C = $y(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ S.createElement(x, {
- ...ry(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...G(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@@ -39812,29 -39211,29 +39812,29 @@@
"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__*/ S.createElement(Sj, { values: [[Uj, { slots: {
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[Hj, { slots: {
-- [xj]: u,
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [[Kj, { slots: {
++ [wj]: u,
label: u,
description: d
- } }], [UM, { isSelected: f.isSelected }]] }, b.children));
- } }], [LM, { isSelected: f.isSelected }]] }, b.children));
++ } }], [KM, { isSelected: f.isSelected }]] }, b.children));
});
- function bye(e, t) {
-function $ve(e, t) {
- t = ly(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(jM), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ S.createElement(tye, {
++function _ye(e, t) {
+ t = oy(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(LM), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ S.createElement(Sye, {
++ let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(BM), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
++ return a ? null : /*#__PURE__*/ S.createElement(yye, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
- function xye(e, t) {
-function eye(e, t) {
-- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Cj({
++function vye(e, t) {
++ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Ej({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
-- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Mj.div, {
...n,
...a,
role: "option",
@@@ -39842,10 -39241,10 +39842,10 @@@
"data-drop-target": r || void 0
}));
}
- var Sye = /*#__PURE__*/ (0, S.forwardRef)(xye);
-var tye = /*#__PURE__*/ (0, S.forwardRef)(eye);
-Sy(G_, function(e, t, n) {
- let r = (0, S.useContext)(QM), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
- XM((0, S.useMemo)(() => ({
++var yye = /*#__PURE__*/ (0, S.forwardRef)(vye);
+yy(q_, function(e, t, n) {
- let r = (0, S.useContext)(iN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
- nN((0, S.useMemo)(() => ({
++ let r = (0, S.useContext)(sN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
++ aN((0, S.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@@ -39855,7 -39254,7 +39855,7 @@@
o,
r?.collection
]), c);
-- let l = Cj({
++ let l = Ej({
...s,
id: void 0,
children: n.rendered,
@@@ -39868,7 -39267,7 +39868,7 @@@
width: 0,
height: 0
},
- inert: GM(!0)
- inert: zM(!0)
++ inert: JM(!0)
}, /*#__PURE__*/ S.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@@ -39877,8 -39276,8 +39877,8 @@@
height: 1,
width: 1
}
-- })), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(nb(e, { global: !0 }), { tabIndex: -1 }),
++ })), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G($y(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@@ -39886,11 -39285,11 +39886,11 @@@
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
- var Cye = /*#__PURE__*/ (0, S.createContext)({ placement: "bottom" });
-var nye = /*#__PURE__*/ (0, S.createContext)({ placement: "bottom" });
++var bye = /*#__PURE__*/ (0, S.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
- function oN(e) {
-function eN(e) {
- let [t, n] = px(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, S.useState)(null);
++function lN(e) {
+ let [t, n] = dx(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, S.useState)(null);
return {
isOpen: t,
setOpen: n,
@@@ -39909,15 -39308,15 +39909,15 @@@
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
- function sN(e, t = !0, n) {
-function tN(e, t = !0, n) {
++function uN(e, t = !0, n) {
let [r, i] = (0, S.useState)(!0), a = r && t;
- return dv(() => {
- if (!t && e.current) return qv(tv(e.current, "opacity", "0"), tv(e.current, "clip", "rect(0 0 0 0)"), tv(e.current, "clip-path", "inset(50%)"), tv(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), dv(() => {
+ return pv(() => {
+ if (!t && e.current) return Gv(rv(e.current, "opacity", "0"), rv(e.current, "clip", "rect(0 0 0 0)"), rv(e.current, "clip-path", "inset(50%)"), rv(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), pv(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), lN(e, a, n, (0, S.useCallback)(() => i(!1), [])), a;
- }, [e, a]), rN(e, a, n, (0, S.useCallback)(() => i(!1), [])), a;
++ }, [e, a]), fN(e, a, n, (0, S.useCallback)(() => i(!1), [])), a;
}
- function cN(e, t, n) {
-function nN(e, t, n) {
++function dN(e, t, n) {
let [r, i] = (0, S.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@@ -39927,13 -39326,13 +39927,13 @@@
case "exiting": t && i("open");
}
let a = r === "exiting";
- return lN(e, a, n, (0, S.useCallback)(() => {
- return rN(e, a, n, (0, S.useCallback)(() => {
++ return fN(e, a, n, (0, S.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
- function lN(e, t, n, r) {
-function rN(e, t, n, r) {
- let i = (0, S.useRef)(null), a = By(n);
- dv(() => {
++function fN(e, t, n, r) {
+ let i = (0, S.useRef)(null), a = Ly(n);
+ pv(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@@ -39959,9 -39358,9 +39959,9 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
- var uN = /*#__PURE__*/ (0, S.createContext)(null), dN = /*#__PURE__*/ (0, S.createContext)(null), fN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, uN);
- let n = (0, S.useContext)(wN), r = oN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = cN(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = fy(), { direction: c } = Gy();
-var iN = /*#__PURE__*/ (0, S.createContext)(null), aN = /*#__PURE__*/ (0, S.createContext)(null), oN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, iN);
- let n = (0, S.useContext)(vN), r = eN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = nN(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = hy(), { direction: c } = Jy();
++var pN = /*#__PURE__*/ (0, S.createContext)(null), mN = /*#__PURE__*/ (0, S.createContext)(null), hN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, pN);
++ let n = (0, S.useContext)(DN), r = lN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = dN(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = fy(), { direction: c } = Gy();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@@ -39972,7 -39371,7 +39972,7 @@@
defaultChildren: null
})), /*#__PURE__*/ S.createElement(S.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ S.createElement(wye, {
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ S.createElement(rye, {
++ return i && !i.isOpen && !o ? null : /*#__PURE__*/ S.createElement(xye, {
...e,
triggerRef: e.triggerRef,
state: i,
@@@ -39981,13 -39380,13 +39981,13 @@@
dir: c
});
});
- function wye({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(dN), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, S.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = oce({
-function rye({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(aN), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, S.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Qse({
++function xye({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
++ let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useContext)(mN), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, S.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, _ = sN(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = Cj({
- }, e), g = i.popoverRef, _ = tN(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = Cj({
++ }, e), g = i.popoverRef, _ = uN(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = Ej({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@@ -40008,7 -39407,7 +40008,7 @@@
]);
let w = (0, S.useMemo)(() => {
let e = y.children;
- for (let t of [uN, ...r ?? []]) e = /*#__PURE__*/ S.createElement(t.Provider, { value: null }, e);
- for (let t of [iN, ...r ?? []]) e = /*#__PURE__*/ S.createElement(t.Provider, { value: null }, e);
++ for (let t of [pN, ...r ?? []]) e = /*#__PURE__*/ S.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [T, E] = (0, S.useState)(null), D = (0, S.useCallback)(() => {
i.triggerRef.current && E(i.triggerRef.current.getBoundingClientRect().width + "px");
@@@ -40023,9 -39422,9 +40023,9 @@@
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || T
};
- dv(() => Tw(() => u(!0)), []);
- let k = /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(nb(i, { global: !0 }), d),
+ pv(() => Aw(() => u(!0)), []);
- let k = /*#__PURE__*/ S.createElement(kj.div, {
++ let k = /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G($y(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@@ -40040,7 -39439,7 +40040,7 @@@
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ S.createElement(Cw, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(Cye.Provider, { value: {
- }, !i.isNonModal && /*#__PURE__*/ S.createElement(vw, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(nye.Provider, { value: {
++ }, !i.isNonModal && /*#__PURE__*/ S.createElement(Cw, { onDismiss: e.close }), /*#__PURE__*/ S.createElement(bye.Provider, { value: {
...p,
placement: m,
ref: a
@@@ -40065,15 -39464,15 +40065,15 @@@
}), /*#__PURE__*/ S.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ S.createElement(dN.Provider, { value: o }, k)));
- }, /*#__PURE__*/ S.createElement(aN.Provider, { value: o }, k)));
++ }, /*#__PURE__*/ S.createElement(mN.Provider, { value: o }, k)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
- var Tye = /*#__PURE__*/ (0, S.createContext)({});
-var iye = /*#__PURE__*/ (0, S.createContext)({});
++var Sye = /*#__PURE__*/ (0, S.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
- function pN(e) {
- let t = oN(e), [n, r] = (0, S.useState)(null), [i, a] = (0, S.useState)([]), o = () => {
-function sN(e) {
- let t = eN(e), [n, r] = (0, S.useState)(null), [i, a] = (0, S.useState)([]), o = () => {
++function gN(e) {
++ let t = lN(e), [n, r] = (0, S.useState)(null), [i, a] = (0, S.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@@ -40099,7 -39498,7 +40099,7 @@@
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
- var Eye = class {
-var aye = class {
++var Cye = 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) => {
@@@ -40143,8 -39542,8 +40143,8 @@@
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
- function mN(e) {
- let { onExpandedChange: t } = e, [n, r] = dx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = JM(e), a = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = $M(e, (0, S.useCallback)((e) => new Eye(e, { expandedKeys: n }), [n]), null);
-function cN(e) {
- let { onExpandedChange: t } = e, [n, r] = px(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = HM(e), a = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = qM(e, (0, S.useCallback)((e) => new aye(e, { expandedKeys: n }), [n]), null);
++function _N(e) {
++ let { onExpandedChange: t } = e, [n, r] = dx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = ZM(e), a = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = nN(e, (0, S.useCallback)((e) => new Cye(e, { expandedKeys: n }), [n]), null);
return (0, S.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@@ -40152,32 -39551,32 +40152,32 @@@
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Dye(n, e));
- r(oye(n, e));
++ r(wye(n, e));
},
setExpandedKeys: r,
- selectionManager: new XM(o, i)
- selectionManager: new WM(o, i)
++ selectionManager: new $M(o, i)
};
}
- function Dye(e, t) {
-function oye(e, t) {
++function wye(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Menu.mjs
- var hN = /*#__PURE__*/ (0, S.createContext)(null), gN = /*#__PURE__*/ (0, S.createContext)(null), _N = /*#__PURE__*/ (0, S.createContext)(null), vN = /*#__PURE__*/ (0, S.createContext)(null);
- function Oye(e) {
- let t = pN(e), n = (0, S.useRef)(null), { menuTriggerProps: r, menuProps: i } = vS({
-var lN = /*#__PURE__*/ (0, S.createContext)(null), uN = /*#__PURE__*/ (0, S.createContext)(null), dN = /*#__PURE__*/ (0, S.createContext)(null), fN = /*#__PURE__*/ (0, S.createContext)(null);
-function sye(e) {
- let t = sN(e), n = (0, S.useRef)(null), { menuTriggerProps: r, menuProps: i } = pS({
++var vN = /*#__PURE__*/ (0, S.createContext)(null), yN = /*#__PURE__*/ (0, S.createContext)(null), bN = /*#__PURE__*/ (0, S.createContext)(null), xN = /*#__PURE__*/ (0, S.createContext)(null);
++function Tye(e) {
++ let t = gN(e), n = (0, S.useRef)(null), { menuTriggerProps: r, menuProps: i } = vS({
...e,
type: "menu"
}, t, n), a = (0, S.useRef)(null);
- return fy() ? null : /*#__PURE__*/ S.createElement(Sj, { values: [
- [hN, {
- return hy() ? null : /*#__PURE__*/ S.createElement(Sj, { values: [
- [lN, {
++ return fy() ? null : /*#__PURE__*/ S.createElement(Tj, { values: [
++ [vN, {
...i,
ref: a
}],
- [wN, t],
- [_N, t],
- [uN, {
- [vN, t],
- [dN, t],
- [iN, {
++ [DN, t],
++ [bN, t],
++ [pN, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@@ -40191,8 -39590,8 +40191,8 @@@
isPressed: t.isOpen
}, e.children));
}
- var kye = /*#__PURE__*/ (0, S.createContext)(null);
-var cye = /*#__PURE__*/ (0, S.createContext)(null);
-(class extends U_ {
++var Eye = /*#__PURE__*/ (0, S.createContext)(null);
+(class extends G_ {
static {
this.type = "submenutrigger";
}
@@@ -40205,24 -39604,24 +40205,24 @@@
return null;
}
});
- var Aye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = Tj(e, t, hN), /*#__PURE__*/ S.createElement(gy, { content: /*#__PURE__*/ S.createElement(Cy, e) }, (n) => /*#__PURE__*/ S.createElement(jye, {
-var lye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = Tj(e, t, lN), /*#__PURE__*/ S.createElement(yy, { content: /*#__PURE__*/ S.createElement(Ey, e) }, (n) => /*#__PURE__*/ S.createElement(uye, {
++var Dye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ return [e, t] = Oj(e, t, vN), /*#__PURE__*/ S.createElement(gy, { content: /*#__PURE__*/ S.createElement(Cy, e) }, (n) => /*#__PURE__*/ S.createElement(Oye, {
props: e,
collection: n,
menuRef: t
}));
});
- function jye({ props: e, collection: t, menuRef: n }) {
-function uye({ props: e, collection: t, menuRef: n }) {
-- [e, n] = Tj(e, n, Aj);
- let { filter: r, ...i } = e, a = (0, S.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = mN({
- let { filter: r, ...i } = e, a = (0, S.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = cN({
++function Oye({ props: e, collection: t, menuRef: n }) {
++ [e, n] = Oj(e, n, Nj);
++ let { filter: r, ...i } = e, a = (0, S.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = _N({
...e,
collection: a,
children: void 0
- }), s = (0, S.useContext)(_N), { isVirtualized: c, CollectionRoot: l } = (0, S.useContext)(Fj), { menuProps: u } = Fse({
- }), s = (0, S.useContext)(dN), { isVirtualized: c, CollectionRoot: l } = (0, S.useContext)(Fj), { menuProps: u } = Dse({
++ }), s = (0, S.useContext)(bN), { isVirtualized: c, CollectionRoot: l } = (0, S.useContext)(Rj), { menuProps: u } = Fse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
-- }, o, n), d = Cj({
++ }, o, n), d = Ej({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@@ -40232,36 -39631,36 +40232,36 @@@
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Tb, null, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(p, d, u),
+ let p = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [gN, o],
- [WM, { elementType: "div" }],
- [uN, o],
- [RM, { elementType: "div" }],
-- [Mj, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [yN, o],
++ [qM, { elementType: "div" }],
++ [Fj, {
name: "MenuSection",
- render: yN
- render: pN
++ render: SN
}],
- [kye, {
- [cye, {
++ [Eye, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [xN, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [hN, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
-- [Aj, null],
-- [jj, null],
- [vN, o.selectionManager],
- [_N, s ?? pN({})]
- ] }, /*#__PURE__*/ S.createElement(HM, null, /*#__PURE__*/ S.createElement(l, {
- [fN, o.selectionManager],
- [dN, s ?? sN({})]
- ] }, /*#__PURE__*/ S.createElement(IM, null, /*#__PURE__*/ S.createElement(l, {
++ [wN, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
++ [Nj, null],
++ [Pj, null],
++ [xN, o.selectionManager],
++ [bN, s ?? gN({})]
++ ] }, /*#__PURE__*/ S.createElement(GM, null, /*#__PURE__*/ S.createElement(l, {
collection: o.collection,
-- persistedKeys: Ij(o.selectionManager.focusedKey),
++ persistedKeys: zj(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
- var Mye = class extends XM {
-var dye = class extends WM {
++var kye = class extends $M {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@@ -40281,11 -39680,11 +40281,11 @@@
return this.parent.childFocusStrategy;
}
};
- function yN(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, S.useContext)(gN), { CollectionBranch: a } = (0, S.useContext)(Fj), [o, s] = Ej(), { headingProps: c, groupProps: l } = Lse({
-function pN(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, S.useContext)(uN), { CollectionBranch: a } = (0, S.useContext)(Fj), [o, s] = Ej(), { headingProps: c, groupProps: l } = kse({
++function SN(e, t, n, r = "react-aria-MenuSection") {
++ let i = (0, S.useContext)(yN), { CollectionBranch: a } = (0, S.useContext)(Rj), [o, s] = kj(), { headingProps: c, groupProps: l } = Lse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
-- }), u = Cj({
++ }), u = Ej({
...e,
id: void 0,
children: void 0,
@@@ -40293,31 -39692,31 +40293,31 @@@
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, S.useContext)(vN), f = JM(e), p = e.selectionMode == null ? d : new Mye(d, f), m = wj(xN)?.shouldCloseOnSelect, h = $y(e, { global: !0 });
- }), d = (0, S.useContext)(fN), f = HM(e), p = e.selectionMode == null ? d : new dye(d, f), m = wj(hN)?.shouldCloseOnSelect, h = nb(e, { global: !0 });
-- return delete h.id, /*#__PURE__*/ S.createElement(kj.section, {
- ...ry(h, u, l),
++ }), d = (0, S.useContext)(xN), f = ZM(e), p = e.selectionMode == null ? d : new kye(d, f), m = Dj(wN)?.shouldCloseOnSelect, h = $y(e, { global: !0 });
++ return delete h.id, /*#__PURE__*/ S.createElement(Mj.section, {
+ ...G(h, u, l),
ref: t
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [VM, {
- [FM, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [WM, {
...c,
ref: o
}],
- [vN, p],
- [xN, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
- [fN, p],
- [hN, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
++ [xN, p],
++ [wN, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ S.createElement(a, {
collection: i.collection,
parent: n
})));
}
- var bN = /*#__PURE__*/ by(Die, yN), xN = /*#__PURE__*/ (0, S.createContext)(null), SN = /*#__PURE__*/ yy(Eie, function(e, t, n) {
- [e, t] = Tj(e, t, xN);
- let r = wj(xN)?.id, i = (0, S.useContext)(gN), a = oy(t), o = (0, S.useContext)(vN), { isVirtualized: s } = (0, S.useContext)(Fj), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ise({
-var mN = /*#__PURE__*/ Cy(Oie, pN), hN = /*#__PURE__*/ (0, S.createContext)(null), gN = /*#__PURE__*/ Sy(Die, function(e, t, n) {
- [e, t] = Tj(e, t, hN);
- let r = wj(hN)?.id, i = (0, S.useContext)(uN), a = ly(t), o = (0, S.useContext)(fN), { isVirtualized: s } = (0, S.useContext)(Fj), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ose({
++var CN = /*#__PURE__*/ by(Die, SN), wN = /*#__PURE__*/ (0, S.createContext)(null), TN = /*#__PURE__*/ yy(Eie, function(e, t, n) {
++ [e, t] = Oj(e, t, wN);
++ let r = Dj(wN)?.id, i = (0, S.useContext)(yN), a = oy(t), o = (0, S.useContext)(xN), { isVirtualized: s } = (0, S.useContext)(Rj), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ise({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = US({ isDisabled: f.isDisabled }), h = Cj({
- }, i, a), { hoverProps: p, isHovered: m } = RS({ isDisabled: f.isDisabled }), h = Cj({
++ }, i, a), { hoverProps: p, isHovered: m } = US({ isDisabled: f.isDisabled }), h = Ej({
...e,
id: void 0,
children: n.rendered,
@@@ -40331,9 -39730,9 +40331,9 @@@
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? kj.a : kj.div, _ = $y(e, { global: !0 });
- }), g = e.href ? kj.a : kj.div, _ = nb(e, { global: !0 });
++ }), g = e.href ? Mj.a : Mj.div, _ = $y(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(g, {
- ...ry(_, h, c, p),
+ ...G(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@@ -40344,19 -39743,19 +40344,19 @@@
"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__*/ S.createElement(Sj, { values: [
- [Uj, { slots: {
- [Hj, { slots: {
-- [xj]: l,
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [Kj, { slots: {
++ [wj]: l,
label: l,
description: u
} }],
- [Tye, d],
- [UM, { isSelected: f.isSelected }]
- [iye, d],
- [LM, { isSelected: f.isSelected }]
++ [Sye, d],
++ [KM, { isSelected: f.isSelected }]
] }, h.children));
});
-Sy(G_, function(e, t, n) {
- let r = (0, S.useContext)(uN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
- XM((0, S.useMemo)(() => ({
+yy(q_, function(e, t, n) {
- let r = (0, S.useContext)(gN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
- nN((0, S.useMemo)(() => ({
++ let r = (0, S.useContext)(yN), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, S.useRef)(null);
++ aN((0, S.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@@ -40366,7 -39765,7 +40366,7 @@@
o,
r?.collection
]), c);
-- let l = Cj({
++ let l = Ej({
...s,
id: void 0,
children: n.rendered,
@@@ -40379,7 -39778,7 +40379,7 @@@
width: 0,
height: 0
},
- inert: GM(!0)
- inert: zM(!0)
++ inert: JM(!0)
}, /*#__PURE__*/ S.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@@ -40388,8 -39787,8 +40388,8 @@@
height: 1,
width: 1
}
-- })), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(nb(e, { global: !0 }), { tabIndex: -1 }),
++ })), i && l.children && /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G($y(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@@ -40397,82 -39796,82 +40397,82 @@@
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
- var CN = /*#__PURE__*/ (0, S.createContext)(null), wN = /*#__PURE__*/ (0, S.createContext)(null), TN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-var _N = /*#__PURE__*/ (0, S.createContext)(null), vN = /*#__PURE__*/ (0, S.createContext)(null), yN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++var EN = /*#__PURE__*/ (0, S.createContext)(null), DN = /*#__PURE__*/ (0, S.createContext)(null), ON = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Tj(e, t, CN);
- [e, t] = Tj(e, t, _N);
- let { dialogProps: r, titleProps: i, contentProps: a } = dse({
++ [e, t] = Oj(e, t, EN);
+ let { dialogProps: r, titleProps: i, contentProps: a } = yse({
...e,
"aria-labelledby": n
- }, t), o = (0, S.useContext)(wN);
- }, t), o = (0, S.useContext)(vN);
++ }, t), o = (0, S.useContext)(DN);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
-- let s = Cj({
++ let s = Ej({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.section, {
- ...ry(c, s, r),
+ }), c = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.section, {
++ return /*#__PURE__*/ S.createElement(Mj.section, {
+ ...G(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [Vj, { slots: {
- [Bj, { slots: {
-- [xj]: {},
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [Wj, { slots: {
++ [wj]: {},
title: {
...i,
level: 2
}
} }],
- [Uj, { slots: {
- [Hj, { slots: {
-- [xj]: {},
++ [Kj, { slots: {
++ [wj]: {},
description: a
} }],
- [zj, { slots: {
- [Rj, { slots: {
-- [xj]: {},
++ [Hj, { slots: {
++ [wj]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
- }), EN = typeof document < "u" && window.visualViewport;
- function Nye() {
-}), bN = typeof document < "u" && window.visualViewport;
-function fye() {
- let e = Tv(), t = (0, S.useRef)(null), [n, r] = (0, S.useState)(() => e ? {
++}), kN = typeof document < "u" && window.visualViewport;
++function Aye() {
+ let e = Dv(), t = (0, S.useRef)(null), [n, r] = (0, S.useState)(() => e ? {
width: 0,
height: 0
- } : DN());
- } : xN());
++ } : AN());
return (0, S.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- EN && EN.scale > 1 || e(DN());
- bN && bN.scale > 1 || e(xN());
++ kN && kN.scale > 1 || e(AN());
}, i = (n) => {
- EN && EN.scale > 1 || Py(sv(n)) && (t.current = Aw((t) => {
- bN && bN.scale > 1 || Ly(av(n)) && (t.current = Tw((t) => {
++ kN && kN.scale > 1 || Py(sv(n)) && (t.current = Aw((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(DN()), bv() && xv() && window.addEventListener("blur", i, !0), EN ? EN.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), bv() && xv() && window.removeEventListener("blur", i, !0), EN ? EN.removeEventListener("resize", n) : window.removeEventListener("resize", n);
- return e(xN()), vv() && yv() && window.addEventListener("blur", i, !0), bN ? bN.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), vv() && yv() && window.removeEventListener("blur", i, !0), bN ? bN.removeEventListener("resize", n) : window.removeEventListener("resize", n);
++ return e(AN()), bv() && xv() && window.addEventListener("blur", i, !0), kN ? kN.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
++ t.current?.(), bv() && xv() && window.removeEventListener("blur", i, !0), kN ? kN.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
- function DN() {
-function xN() {
++function AN() {
return {
- width: EN ? Math.min(EN.width * EN.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: EN ? EN.height * EN.scale : document.documentElement.clientHeight
- width: bN ? Math.min(bN.width * bN.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: bN ? bN.height * bN.scale : document.documentElement.clientHeight
++ width: kN ? Math.min(kN.width * kN.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
++ height: kN ? kN.height * kN.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
- var Pye = /*#__PURE__*/ (0, S.createContext)(null), ON = /*#__PURE__*/ (0, S.createContext)(null), Fye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- if ((0, S.useContext)(ON)) return /*#__PURE__*/ S.createElement(AN, {
-var pye = /*#__PURE__*/ (0, S.createContext)(null), SN = /*#__PURE__*/ (0, S.createContext)(null), mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- if ((0, S.useContext)(SN)) return /*#__PURE__*/ S.createElement(wN, {
++var jye = /*#__PURE__*/ (0, S.createContext)(null), jN = /*#__PURE__*/ (0, S.createContext)(null), Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ if ((0, S.useContext)(jN)) return /*#__PURE__*/ S.createElement(NN, {
...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__*/ S.createElement(kN, {
- return /*#__PURE__*/ S.createElement(CN, {
++ return /*#__PURE__*/ S.createElement(MN, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@@ -40482,15 -39881,15 +40482,15 @@@
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ S.createElement(AN, {
- }, /*#__PURE__*/ S.createElement(wN, {
++ }, /*#__PURE__*/ S.createElement(NN, {
...f,
modalRef: t
}, s));
});
- function Iye(e, t) {
- [e, t] = Tj(e, t, Pye);
- let n = (0, S.useContext)(wN), r = oN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oy(t), o = (0, S.useRef)(null), s = cN(a, i.isOpen, e.onExit), c = (0, S.useRef)(null), l = cN(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Dv();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ S.createElement(Lye, {
-function hye(e, t) {
- [e, t] = Tj(e, t, pye);
- let n = (0, S.useContext)(vN), r = eN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ly(t), o = (0, S.useRef)(null), s = nN(a, i.isOpen, e.onExit), c = (0, S.useRef)(null), l = nN(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Tv();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ S.createElement(gye, {
++function Nye(e, t) {
++ [e, t] = Oj(e, t, jye);
++ let n = (0, S.useContext)(DN), r = lN(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oy(t), o = (0, S.useRef)(null), s = dN(a, i.isOpen, e.onExit), c = (0, S.useRef)(null), l = dN(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = Dv();
++ return !i.isOpen && !u || d ? null : /*#__PURE__*/ S.createElement(Pye, {
...e,
state: i,
isExiting: u,
@@@ -40499,12 -39898,12 +40499,12 @@@
onExitRef: c
});
}
- var kN = /*#__PURE__*/ (0, S.forwardRef)(Iye);
- function Lye({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, S.useState)(!1), s = sN(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Jse({
-var CN = /*#__PURE__*/ (0, S.forwardRef)(hye);
-function gye({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, S.useState)(!1), s = tN(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Bse({
++var MN = /*#__PURE__*/ (0, S.forwardRef)(Nye);
++function Pye({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
++ let r = n.modalRef, { state: i } = n, [a, o] = (0, S.useState)(!1), s = uN(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = Jse({
...n,
isEntering: c
- }, i, r), d = (0, S.useContext)(CN), f = t ? Rye(d, { isEntering: c }) : d, p = Cj({
- }, i, r), d = (0, S.useContext)(_N), f = t ? _ye(d, { isEntering: c }) : d, p = Cj({
++ }, i, r), d = (0, S.useContext)(EN), f = t ? Fye(d, { isEntering: c }) : d, p = Ej({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@@ -40512,9 -39911,9 +40512,9 @@@
isExiting: n.isExiting,
state: i
}
- }), m = Nye(), h, g;
- }), m = fye(), h, g;
++ }), m = Aye(), h, g;
if (typeof document < "u") {
- let e = Wb(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = Hb(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 _ = {
@@@ -40524,18 -39923,18 +40524,18 @@@
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return dv(() => Tw(() => o(!0)), []), /*#__PURE__*/ S.createElement(MS, {
+ return pv(() => Aw(() => o(!0)), []), /*#__PURE__*/ S.createElement(LS, {
isExiting: n.isExiting,
portalContainer: e
-- }, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(nb(n, { global: !0 }), u),
++ }, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G($y(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [ON, {
- [SN, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [jN, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@@ -40543,11 -39942,11 +40543,11 @@@
isOpen: a,
isDismissable: n.isDismissable
}],
- [wN, i],
- [CN, f]
- [vN, i],
- [_N, f]
++ [DN, i],
++ [EN, f]
] }, p.children)));
}
- function Rye(e, t) {
-function _ye(e, t) {
++function Fye(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@@ -40564,8 -39963,8 +40564,8 @@@
...t
};
}
- function AN(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, S.useContext)(ON), s = (0, S.useContext)(wN), c = oy((0, S.useMemo)(() => Zv(e.modalRef, n), [e.modalRef, n])), l = sN(c, o, e.onEnter), u = Cj({
-function wN(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, S.useContext)(SN), s = (0, S.useContext)(vN), c = ly((0, S.useMemo)(() => $v(e.modalRef, n), [e.modalRef, n])), l = tN(c, o, e.onEnter), u = Cj({
++function NN(e) {
++ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, S.useContext)(jN), s = (0, S.useContext)(DN), c = oy((0, S.useMemo)(() => Zv(e.modalRef, n), [e.modalRef, n])), l = uN(c, o, e.onEnter), u = Ej({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@@ -40574,10 -39973,10 +40574,10 @@@
state: s
}
});
- return dv(() => {
+ return pv(() => {
i && (i.current = e.onExit);
-- }), /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(nb(e, { global: !0 }), t),
++ }), /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G($y(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
@@@ -40586,9 -39985,9 +40586,9 @@@
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
- var zye = Math.round(Math.random() * 1e10), Bye = 0;
- function Vye(e) {
- let t = (0, S.useMemo)(() => e.name || `radio-group-${zye}-${++Bye}`, [e.name]), [n, r] = dx(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = nx({
-var vye = Math.round(Math.random() * 1e10), yye = 0;
-function bye(e) {
- let t = (0, S.useMemo)(() => e.name || `radio-group-${vye}-${++yye}`, [e.name]), [n, r] = px(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = ix({
++var Iye = Math.round(Math.random() * 1e10), Lye = 0;
++function Rye(e) {
++ let t = (0, S.useMemo)(() => e.name || `radio-group-${Iye}-${++Lye}`, [e.name]), [n, r] = dx(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, S.useState)(n), [a, o] = (0, S.useState)(null), s = nx({
...e,
value: n
}), c = (t) => {
@@@ -40611,16 -40010,16 +40611,16 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
- var Hye = /*#__PURE__*/ (0, S.createContext)(null), Uye = /*#__PURE__*/ (0, S.createContext)(null), jN = /*#__PURE__*/ (0, S.createContext)(null), MN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Hye);
- let { validationBehavior: n } = wj(Gj) || {}, r = e.validationBehavior ?? n ?? "native", i = Vye({
-var xye = /*#__PURE__*/ (0, S.createContext)(null), Sye = /*#__PURE__*/ (0, S.createContext)(null), TN = /*#__PURE__*/ (0, S.createContext)(null), EN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, xye);
- let { validationBehavior: n } = wj(Wj) || {}, r = e.validationBehavior ?? n ?? "native", i = bye({
++var zye = /*#__PURE__*/ (0, S.createContext)(null), Bye = /*#__PURE__*/ (0, S.createContext)(null), PN = /*#__PURE__*/ (0, S.createContext)(null), FN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, zye);
++ let { validationBehavior: n } = Dj(Jj) || {}, r = e.validationBehavior ?? n ?? "native", i = Rye({
...e,
validationBehavior: r
- }), [a, o] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = cce({
- }), [a, o] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ece({
++ }), [a, o] = kj(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = cce({
...e,
label: o,
validationBehavior: r
-- }, i), f = Cj({
++ }, i), f = Ej({
...e,
values: {
orientation: e.orientation || "vertical",
@@@ -40631,9 -40030,9 +40631,9 @@@
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(p, f, s),
+ }), p = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@@ -40641,39 -40040,39 +40641,39 @@@
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [jN, i],
- [TN, i],
-- [Lj, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [PN, i],
++ [Bj, {
...c,
ref: a,
elementType: "span"
}],
- [Uj, { slots: {
- [Hj, { slots: {
++ [Kj, { slots: {
description: l,
errorMessage: u
} }],
- [Wj, d]
- ] }, /*#__PURE__*/ S.createElement(HM, null, f.children)));
- }), NN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [Uj, d]
- ] }, /*#__PURE__*/ S.createElement(IM, null, f.children)));
-}), DN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [qj, d]
++ ] }, /*#__PURE__*/ S.createElement(GM, null, f.children)));
++}), IN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Tj(r, t, Uye);
- let i = S.useContext(jN), a = oy((0, S.useMemo)(() => Zv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = sce({
- [e, t] = Tj(r, t, Sye);
- let i = S.useContext(TN), a = ly((0, S.useMemo)(() => $v(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = $se({
-- ...Dj(e),
++ [e, t] = Oj(r, t, Bye);
++ let i = S.useContext(PN), a = oy((0, S.useMemo)(() => Zv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = sce({
++ ...Aj(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ S.createElement(PN.Provider, { value: {
- return /*#__PURE__*/ S.createElement(ON.Provider, { value: {
++ return /*#__PURE__*/ S.createElement(LN.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ S.createElement(Wye, {
- } }, /*#__PURE__*/ S.createElement(Cye, {
++ } }, /*#__PURE__*/ S.createElement(Vye, {
...e,
ref: t
}));
- }), PN = /*#__PURE__*/ (0, S.createContext)(null), Wye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(PN), l = S.useContext(jN), { isFocused: u, isFocusVisible: d, focusProps: f } = zS(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = US({
-}), ON = /*#__PURE__*/ (0, S.createContext)(null), Cye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(ON), l = S.useContext(TN), { isFocused: u, isFocusVisible: d, focusProps: f } = PS(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = RS({
++}), LN = /*#__PURE__*/ (0, S.createContext)(null), Vye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, S.useContext)(LN), l = S.useContext(PN), { isFocused: u, isFocusVisible: d, focusProps: f } = zS(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = US({
...e,
isDisabled: p
-- }), g = Cj({
++ }), g = Ej({
...e,
defaultClassName: s,
values: {
@@@ -40687,9 -40086,9 +40687,9 @@@
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = nb(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(kj.label, {
- ...ry(_, n, m, g),
+ }), _ = $y(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(kj.label, {
++ return delete _.id, delete _.onClick, /*#__PURE__*/ S.createElement(Mj.label, {
+ ...G(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@@ -40707,8 -40106,8 +40707,8 @@@
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
- function Gye(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = oN(e), [i, a] = (0, S.useState)(null), o = (0, S.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
-function wye(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = eN(e), [i, a] = (0, S.useState)(null), o = (0, S.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
++function Hye(e) {
++ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = lN(e), [i, a] = (0, S.useState)(null), o = (0, S.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@@ -40724,12 -40123,12 +40724,12 @@@
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = eN({
- }, d = JM({
++ }, d = rN({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, S.useMemo)(() => Kye(l), [l]),
- selectedKeys: (0, S.useMemo)(() => Tye(l), [l]),
++ selectedKeys: (0, S.useMemo)(() => Uye(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@@ -40766,16 -40165,16 +40766,16 @@@
setFocused: g
};
}
- function Kye(e) {
-function Tye(e) {
++function Uye(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Select.mjs
- function qye(e) {
-function Eye(e) {
++function Wye(e) {
return e && e.__esModule ? e.default : e;
}
- var FN = /*#__PURE__*/ (0, S.createContext)(null), IN = /*#__PURE__*/ (0, S.createContext)(null), Jye = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, FN);
-var kN = /*#__PURE__*/ (0, S.createContext)(null), AN = /*#__PURE__*/ (0, S.createContext)(null), Dye = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, kN);
++var RN = /*#__PURE__*/ (0, S.createContext)(null), zN = /*#__PURE__*/ (0, S.createContext)(null), Gye = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, RN);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, S.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@@ -40790,24 -40189,24 +40790,24 @@@
i,
a
]);
- return /*#__PURE__*/ S.createElement(gy, { content: o }, (n) => /*#__PURE__*/ S.createElement(Xye, {
- return /*#__PURE__*/ S.createElement(yy, { content: o }, (n) => /*#__PURE__*/ S.createElement(kye, {
++ return /*#__PURE__*/ S.createElement(gy, { content: o }, (n) => /*#__PURE__*/ S.createElement(qye, {
props: e,
collection: n,
selectRef: t
}));
- }), Yye = [
-}), Oye = [
-- Lj,
- zj,
- Uj
- Rj,
- Hj
++}), Kye = [
++ Bj,
++ Hj,
++ Kj
];
- function Xye({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = wj(Gj) || {}, i = e.validationBehavior ?? r ?? "native", a = Gye({
-function kye({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = wj(Wj) || {}, i = e.validationBehavior ?? r ?? "native", a = wye({
++function qye({ props: e, selectRef: t, collection: n }) {
++ let { validationBehavior: r } = Dj(Jj) || {}, i = e.validationBehavior ?? r ?? "native", a = Hye({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = zS({ within: !0 }), c = (0, S.useRef)(null), [l, u] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = lce({
- }), { isFocusVisible: o, focusProps: s } = PS({ within: !0 }), c = (0, S.useRef)(null), [l, u] = Ej(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = tce({
-- ...Dj(e),
++ }), { isFocusVisible: o, focusProps: s } = zS({ within: !0 }), c = (0, S.useRef)(null), [l, u] = kj(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = lce({
++ ...Aj(e),
label: u,
validationBehavior: i
}, a, c), y = (0, S.useMemo)(() => ({
@@@ -40824,49 -40223,49 +40824,49 @@@
e.isDisabled,
v.isInvalid,
e.isRequired
-- ]), b = Cj({
++ ]), b = Ej({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = nb(e, { global: !0 });
+ }), x = $y(e, { global: !0 });
delete x.id;
let C = (0, S.useRef)(null);
-- return /*#__PURE__*/ S.createElement(Sj, { values: [
- [FN, e],
- [IN, a],
- [LN, p],
- [kN, e],
- [AN, a],
- [jN, p],
-- [Lj, {
++ return /*#__PURE__*/ S.createElement(Tj, { values: [
++ [RN, e],
++ [zN, a],
++ [BN, p],
++ [Bj, {
...d,
ref: l,
elementType: "span"
}],
- [zj, {
- [Rj, {
++ [Hj, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [wN, a],
- [uN, {
- [vN, a],
- [iN, {
++ [DN, a],
++ [pN, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Yye
- clearContexts: Oye
++ clearContexts: Kye
}],
- [rN, {
- [ZM, {
++ [oN, {
...m,
ref: C
}],
- [iN, a],
- [Uj, { slots: {
- [QM, a],
- [Hj, { slots: {
++ [sN, a],
++ [Kj, { slots: {
description: h,
errorMessage: g
} }],
- [Wj, v]
- [Uj, v]
-- ] }, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(x, b, s),
++ [qj, v]
++ ] }, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@@ -40880,9 -40279,9 +40880,9 @@@
autoComplete: e.autoComplete
})));
}
- for (var LN = /*#__PURE__*/ (0, S.createContext)(null), Zye = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, LN);
- let n = (0, S.useContext)(IN), { placeholder: r } = wj(FN), i = n.selectedItems.map((e) => {
-for (var jN = /*#__PURE__*/ (0, S.createContext)(null), Aye = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, jN);
- let n = (0, S.useContext)(AN), { placeholder: r } = wj(kN), i = n.selectedItems.map((e) => {
++for (var BN = /*#__PURE__*/ (0, S.createContext)(null), Jye = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, BN);
++ let n = (0, S.useContext)(zN), { placeholder: r } = Dj(RN), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@@ -40909,7 -40308,7 +40909,7 @@@
a,
o,
i
- ]), u = Zy(qye(IM), "react-aria-components"), d = Cj({
- ]), u = eb(Eye(AM), "react-aria-components"), d = Cj({
++ ]), u = Zy(Wye(zM), "react-aria-components"), d = Ej({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@@ -40920,33 -40319,33 +40920,33 @@@
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.span, {
+ }), f = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.span, {
++ return /*#__PURE__*/ S.createElement(Mj.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ S.createElement(Uj.Provider, { value: void 0 }, d.children));
- }), Qye = /*#__PURE__*/ (0, S.createContext)(null), RN = /*#__PURE__*/ (0, S.createContext)(null), $ye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- }, /*#__PURE__*/ S.createElement(Hj.Provider, { value: void 0 }, d.children));
-}), jye = /*#__PURE__*/ (0, S.createContext)(null), MN = /*#__PURE__*/ (0, S.createContext)(null), Mye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ }, /*#__PURE__*/ S.createElement(Kj.Provider, { value: void 0 }, d.children));
++}), Yye = /*#__PURE__*/ (0, S.createContext)(null), VN = /*#__PURE__*/ (0, S.createContext)(null), Xye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Tj(r, t, Qye);
- [e, t] = Tj(r, t, jye);
- let i = ly((0, S.useMemo)(() => $v(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = mx(e), o = ace({
- ...Dj(e),
++ [e, t] = Oj(r, t, Yye);
+ let i = oy((0, S.useMemo)(() => Zv(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = fx(e), o = pce({
- ...Dj(e),
++ ...Aj(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ S.createElement(Sj, { values: [[RN, a], [zN, {
- return /*#__PURE__*/ S.createElement(Sj, { values: [[MN, a], [NN, {
++ return /*#__PURE__*/ S.createElement(Tj, { values: [[VN, a], [HN, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ S.createElement(ebe, {
- }]] }, /*#__PURE__*/ S.createElement(Nye, {
++ }]] }, /*#__PURE__*/ S.createElement(Zye, {
...e,
ref: t
}));
- }), zN = /*#__PURE__*/ (0, S.createContext)(null), ebe = /*#__PURE__*/ (0, S.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, S.useContext)(zN), { isFocused: f, isFocusVisible: p, focusProps: m } = zS(), h = a || o, g = (0, S.useContext)(RN), { hoverProps: _, isHovered: v } = US({
-}), NN = /*#__PURE__*/ (0, S.createContext)(null), Nye = /*#__PURE__*/ (0, S.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, S.useContext)(NN), { isFocused: f, isFocusVisible: p, focusProps: m } = PS(), h = a || o, g = (0, S.useContext)(MN), { hoverProps: _, isHovered: v } = RS({
++}), HN = /*#__PURE__*/ (0, S.createContext)(null), Zye = /*#__PURE__*/ (0, S.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, S.useContext)(HN), { isFocused: f, isFocusVisible: p, focusProps: m } = zS(), h = a || o, g = (0, S.useContext)(VN), { hoverProps: _, isHovered: v } = US({
...e,
isDisabled: h
-- }), y = Cj({
++ }), y = Ej({
...e,
defaultClassName: u,
values: {
@@@ -40961,9 -40360,9 +40961,9 @@@
isRequired: d || !1,
state: g
}
- }), b = nb(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(kj.label, {
- ...ry(b, n, _, y),
+ }), b = $y(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(kj.label, {
++ return delete b.id, delete b.onClick, /*#__PURE__*/ S.createElement(Mj.label, {
+ ...G(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@@ -40975,11 -40374,11 +40975,11 @@@
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ S.createElement(vx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
- ...ry(r, m),
+ }, /*#__PURE__*/ S.createElement(xx, { elementType: "span" }, /*#__PURE__*/ S.createElement("input", {
+ ...G(r, m),
ref: l
})), y.children);
- }), BN = 10, VN = 5, HN = class {
-}), PN = 10, FN = 5, IN = class {
++}), UN = 10, WN = 5, GN = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@@ -40989,7 -40388,7 +40989,7 @@@
}
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) > VN && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > BN && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
- if (Math.abs(a) > FN && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > PN && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
++ if (Math.abs(a) > WN && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > UN && (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);
@@@ -41068,11 -40467,11 +41068,11 @@@
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > VN && i) {
- if (Math.abs(r - c.lastSwitchY) > FN && i) {
++ if (Math.abs(r - c.lastSwitchY) > WN && 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 > BN && a) {
- if (l > PN && a) {
++ if (l > UN && 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;
}
@@@ -41087,7 -40486,7 +41087,7 @@@
boundaryContext: null
};
}
- }, tbe = class {
-}, Pye = class {
++}, Qye = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@@ -41157,8 -40556,8 +41157,8 @@@
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
- }, UN = "row-header-column-" + Math.random().toString(36).slice(2), WN = "row-header-column-" + Math.random().toString(36).slice(2); UN === WN;) WN = "row-header-column-" + Math.random().toString(36).slice(2);
- function GN(e, t) {
-}, LN = "row-header-column-" + Math.random().toString(36).slice(2), RN = "row-header-column-" + Math.random().toString(36).slice(2); LN === RN;) RN = "row-header-column-" + Math.random().toString(36).slice(2);
-function zN(e, t) {
++}, KN = "row-header-column-" + Math.random().toString(36).slice(2), qN = "row-header-column-" + Math.random().toString(36).slice(2); KN === qN;) qN = "row-header-column-" + Math.random().toString(36).slice(2);
++function JN(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@@ -41242,13 -40641,13 +41242,13 @@@
textValue: ""
}));
}
- var nbe = class extends tbe {
-var Fye = class extends Pye {
++var $ye = class extends Qye {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: UN,
- key: LN,
++ key: KN,
value: null,
textValue: "",
level: 0,
@@@ -41263,7 -40662,7 +41263,7 @@@
if (n?.showDragButtons) {
let e = {
type: "column",
- key: WN,
- key: RN,
++ key: qN,
value: null,
textValue: "",
level: 0,
@@@ -41290,7 -40689,7 +41290,7 @@@
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = GN(s, a);
- let l = zN(s, a);
++ let l = JN(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@@ -41351,8 -40750,8 +41351,8 @@@
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
- function rbe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || JM(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
-function Iye(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || HM(e), i = (0, S.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
++function ebe(e) {
++ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || ZM(e), i = (0, S.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);
@@@ -41363,7 -40762,7 +41363,7 @@@
}
a(e, r);
};
- let o = (0, S.useMemo)(() => new XM(t, r), [t, r]), s = (0, S.useRef)(null);
- let o = (0, S.useMemo)(() => new WM(t, r), [t, r]), s = (0, S.useRef)(null);
++ let o = (0, S.useMemo)(() => new $M(t, r), [t, r]), s = (0, S.useRef)(null);
return (0, S.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;
@@@ -41402,11 -40801,11 +41402,11 @@@
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
- var ibe = {
-var Lye = {
++var tbe = {
ascending: "descending",
descending: "ascending"
};
- function abe(e) {
-function Rye(e) {
++function nbe(e) {
let [t, n] = (0, S.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, S.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@@ -41417,7 -40816,7 +41417,7 @@@
i,
r,
a
- ]), c = $M(e, (0, S.useCallback)((e) => new nbe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = rbe({
- ]), c = qM(e, (0, S.useCallback)((e) => new Fye(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Iye({
++ ]), c = nN(e, (0, S.useCallback)((e) => new $ye(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = ebe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@@ -41433,7 -40832,7 +41433,7 @@@
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? ibe[e.sortDescriptor.direction] : "ascending")
- direction: n ?? (e.sortDescriptor?.column === t ? Lye[e.sortDescriptor.direction] : "ascending")
++ direction: n ?? (e.sortDescriptor?.column === t ? tbe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@@ -41446,7 -40845,7 +41446,7 @@@
treeColumn: o
};
}
- function obe(e, t) {
-function zye(e, t) {
++function rbe(e, t) {
let n = (0, S.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@@ -41456,7 -40855,7 +41456,7 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
- var sbe = class extends J_ {
-var Bye = class extends K_ {
++var ibe = class extends J_ {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@@ -41471,7 -40870,7 +41471,7 @@@
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new QN(-2);
- return new KN(-2);
++ return new tP(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@@ -41497,7 -40896,7 +41497,7 @@@
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = GN(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 = zN(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 = JN(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;
@@@ -41578,11 -40977,11 +41578,11 @@@
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new YN(-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 UN(-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 QN(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
- }, cbe = /*#__PURE__*/ (0, S.createContext)(null), lbe = /*#__PURE__*/ (0, S.createContext)(null), KN = /*#__PURE__*/ (0, S.createContext)(null), qN = /*#__PURE__*/ (0, S.createContext)(null), ube = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, lbe);
- let n = JM(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, S.useMemo)(() => ({
-}, Vye = /*#__PURE__*/ (0, S.createContext)(null), Hye = /*#__PURE__*/ (0, S.createContext)(null), BN = /*#__PURE__*/ (0, S.createContext)(null), VN = /*#__PURE__*/ (0, S.createContext)(null), Uye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, Hye);
- let n = HM(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, S.useMemo)(() => ({
++}, abe = /*#__PURE__*/ (0, S.createContext)(null), obe = /*#__PURE__*/ (0, S.createContext)(null), YN = /*#__PURE__*/ (0, S.createContext)(null), XN = /*#__PURE__*/ (0, S.createContext)(null), sbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, obe);
++ let n = ZM(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, S.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@@ -41592,26 -40991,26 +41592,26 @@@
i,
a,
o
- ]), c = /*#__PURE__*/ S.createElement(pbe.Provider, { value: s }, /*#__PURE__*/ S.createElement(Cy, e));
- ]), c = /*#__PURE__*/ S.createElement(Kye.Provider, { value: s }, /*#__PURE__*/ S.createElement(Ey, e));
- return /*#__PURE__*/ S.createElement(yy, {
++ ]), c = /*#__PURE__*/ S.createElement(ube.Provider, { value: s }, /*#__PURE__*/ S.createElement(Cy, e));
+ return /*#__PURE__*/ S.createElement(gy, {
content: c,
- createCollection: () => new sbe()
- }, (r) => /*#__PURE__*/ S.createElement(fbe, {
- createCollection: () => new Bye()
- }, (r) => /*#__PURE__*/ S.createElement(Gye, {
++ createCollection: () => new ibe()
++ }, (r) => /*#__PURE__*/ S.createElement(lbe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
- }), dbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}), Wye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}), cbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.table, {
++ }) : /*#__PURE__*/ S.createElement(Mj.table, {
...e,
ref: t
});
- }), JN = {
-}), HN = {
++}), ZN = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@@ -41621,26 -41020,26 +41621,26 @@@
rtl: "ArrowRight"
}
};
- function fbe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
-function Gye({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
-- [e, t] = Tj(e, t, Aj);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, S.useContext)(cbe);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, S.useContext)(Vye);
- t = ly((0, S.useMemo)(() => $v(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = px(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
++function lbe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
++ [e, t] = Oj(e, t, Nj);
++ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, S.useContext)(abe);
+ t = oy((0, S.useMemo)(() => Zv(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = dx(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, S.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = abe({
- let d = Rye({
++ let d = nbe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = obe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Fj), { dragAndDropHooks: _ } = e, { gridProps: v } = yce({
- }), f = zye(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Fj), { dragAndDropHooks: _ } = e, { gridProps: v } = dce({
++ }), f = rbe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, S.useContext)(Rj), { dragAndDropHooks: _ } = e, { gridProps: v } = yce({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, S.useRef)(b), (0, S.useRef)(x), (0, S.useEffect)(() => {}, [b, x]);
- let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = Gy(), [A] = (0, S.useState)(() => new HN());
- let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = Jy(), [A] = (0, S.useState)(() => new IN());
++ let C, w, T, E = !1, D = null, O = (0, S.useRef)(null), { direction: k } = Gy(), [A] = (0, S.useState)(() => new GN());
if (b && _) {
C = _.useDraggableCollectionState({
collection: f.collection,
@@@ -41675,12 -41074,12 +41675,12 @@@
let t = w?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === JN.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === JN.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
- (e.key === HN.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === HN.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
++ (e.key === ZN.expand[k] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === ZN.collapse[k] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, w, t), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: j, isFocused: M, isFocusVisible: N } = zS(), P = Cj({
- let { focusProps: j, isFocused: M, isFocusVisible: N } = PS(), P = Cj({
++ let { focusProps: j, isFocused: M, isFocusVisible: N } = zS(), P = Ej({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@@ -41696,20 -41095,20 +41696,20 @@@
tableLayout: "fixed",
width: "min-content"
}));
- let L = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Sj, { values: [
- [BN, f],
- [VN, ee],
- [jM, {
+ let L = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(Sj, { values: [
- [KN, f],
- [qN, ee],
- [LM, {
++ return /*#__PURE__*/ S.createElement(Tj, { values: [
++ [YN, f],
++ [XN, ee],
++ [BM, {
dragAndDropHooks: _,
dragState: C,
dropState: w
}],
- [RM, { render: Cbe }],
- [MM, { render: nbe }],
-- [Aj, null],
-- [jj, null]
- ] }, /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(dbe, {
- ] }, /*#__PURE__*/ S.createElement(Tb, null, /*#__PURE__*/ S.createElement(Wye, {
- ...ry(L, P, v, j, T?.collectionProps),
++ [VM, { render: bbe }],
++ [Nj, null],
++ [Pj, null]
++ ] }, /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(cbe, {
+ ...G(L, P, v, j, T?.collectionProps),
style: I,
ref: t,
slot: e.slot || void 0,
@@@ -41718,31 -41117,31 +41718,31 @@@
"data-drop-target": E || void 0,
"data-focused": M || void 0,
"data-focus-visible": N || void 0
- }, /*#__PURE__*/ S.createElement(HM, null, /*#__PURE__*/ S.createElement(g, {
- }, /*#__PURE__*/ S.createElement(IM, null, /*#__PURE__*/ S.createElement(g, {
++ }, /*#__PURE__*/ S.createElement(GM, null, /*#__PURE__*/ S.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: BM(y, _, w)
- persistedKeys: PM(y, _, w)
++ persistedKeys: UM(y, _, w)
})))), D);
}
- var pbe = /*#__PURE__*/ (0, S.createContext)(null), YN = class extends G_ {
-var Kye = /*#__PURE__*/ (0, S.createContext)(null), UN = class extends U_ {
++var ube = /*#__PURE__*/ (0, S.createContext)(null), QN = class extends G_ {
static {
this.type = "tableheader";
}
- }, mbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, qye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}, dbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.thead, {
++ }) : /*#__PURE__*/ S.createElement(Mj.thead, {
...e,
ref: t
});
- }), XN = /*#__PURE__*/ by(YN, (e, t) => {
- let n = (0, S.useContext)(KN).collection, r = X_({
-}), WN = /*#__PURE__*/ Cy(UN, (e, t) => {
- let n = (0, S.useContext)(BN).collection, r = J_({
++}), $N = /*#__PURE__*/ by(QN, (e, t) => {
++ let n = (0, S.useContext)(YN).collection, r = X_({
items: n.headerRows,
children: (0, S.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ S.createElement(gbe, { item: e });
- case "headerrow": return /*#__PURE__*/ S.createElement(Yye, { item: e });
++ case "headerrow": return /*#__PURE__*/ S.createElement(pbe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
@@@ -41750,23 -41149,23 +41750,23 @@@
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
-- }), s = Cj({
++ }), s = Ej({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ S.createElement(mbe, {
- return /*#__PURE__*/ S.createElement(qye, {
- ...ry(nb(e, { global: !0 }), i, a),
++ return /*#__PURE__*/ S.createElement(dbe, {
+ ...G($y(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ S.createElement(Ey, {
+}, (e) => /*#__PURE__*/ S.createElement(Cy, {
dependencies: e.dependencies,
items: e.columns
- }, e.children)), hbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, e.children)), Jye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
++}, e.children)), fbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
return n ? /*#__PURE__*/ S.createElement("div", {
...e,
ref: t
@@@ -41775,41 -41174,41 +41775,41 @@@
ref: t
});
});
- function gbe({ item: e }) {
- let t = (0, S.useRef)(null), n = (0, S.useContext)(KN), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Fj), { rowProps: a } = Cce({
-function Yye({ item: e }) {
- let t = (0, S.useRef)(null), n = (0, S.useContext)(BN), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Fj), { rowProps: a } = hce({
++function pbe({ item: e }) {
++ let t = (0, S.useRef)(null), n = (0, S.useContext)(YN), { isVirtualized: r, CollectionBranch: i } = (0, S.useContext)(Rj), { rowProps: a } = Cce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Sce(n);
- return /*#__PURE__*/ S.createElement(Jye, {
+ }, n, t), { checkboxProps: o } = Ace(n);
- return /*#__PURE__*/ S.createElement(hbe, {
++ return /*#__PURE__*/ S.createElement(fbe, {
...a,
ref: t
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[Kj, { slots: { selection: o } }], [qj, { slots: { selection: o } }]] }, /*#__PURE__*/ S.createElement(i, {
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[Gj, { slots: { selection: o } }], [Kj, { slots: { selection: o } }]] }, /*#__PURE__*/ S.createElement(i, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [[Yj, { slots: { selection: o } }], [Xj, { slots: { selection: o } }]] }, /*#__PURE__*/ S.createElement(i, {
collection: n.collection,
parent: e
})));
}
- var _be = class extends G_ {
-var Xye = class extends U_ {
++var mbe = class extends G_ {
static {
this.type = "column";
}
- }, vbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, Zye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}, hbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.th, {
++ }) : /*#__PURE__*/ S.createElement(Mj.th, {
...e,
ref: t
});
- }), ZN = /*#__PURE__*/ yy(_be, (e, t, n) => {
- let r = oy(t), i = (0, S.useContext)(KN), { isVirtualized: a } = (0, S.useContext)(Fj), { columnHeaderProps: o, isPressed: s } = Sce({
-}), GN = /*#__PURE__*/ Sy(Xye, (e, t, n) => {
- let r = ly(t), i = (0, S.useContext)(BN), { isVirtualized: a } = (0, S.useContext)(Fj), { columnHeaderProps: o, isPressed: s } = mce({
++}), eP = /*#__PURE__*/ yy(mbe, (e, t, n) => {
++ let r = oy(t), i = (0, S.useContext)(YN), { isVirtualized: a } = (0, S.useContext)(Rj), { columnHeaderProps: o, isPressed: s } = Sce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = zS(), d = (0, S.useContext)(qN), f = !1;
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = PS(), d = (0, S.useContext)(VN), f = !1;
++ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = zS(), d = (0, S.useContext)(XN), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = US({ isDisabled: !e.allowsSorting }), h = Cj({
- let { hoverProps: p, isHovered: m } = RS({ isDisabled: !e.allowsSorting }), h = Cj({
++ let { hoverProps: p, isHovered: m } = US({ isDisabled: !e.allowsSorting }), h = Ej({
...e,
id: void 0,
children: n.rendered,
@@@ -41835,9 -41234,9 +41835,9 @@@
...g,
width: d.getColumnWidth(n.key)
});
- let _ = nb(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ S.createElement(Zye, {
- ...ry(_, o, u, p),
+ let _ = $y(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ S.createElement(vbe, {
++ return delete _.id, /*#__PURE__*/ S.createElement(hbe, {
+ ...G(_, o, u, p),
...h,
style: g,
ref: r,
@@@ -41848,28 -41247,28 +41848,28 @@@
"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__*/ S.createElement(Sj, { values: [[ybe, {
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[Qye, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [[gbe, {
column: n,
triggerRef: r
-- }], [Fj, Nj]] }, h.children));
- }), ybe = /*#__PURE__*/ (0, S.createContext)(null), QN = class extends K_ {
-}), Qye = /*#__PURE__*/ (0, S.createContext)(null), KN = class extends W_ {
++ }], [Rj, Ij]] }, h.children));
++}), gbe = /*#__PURE__*/ (0, S.createContext)(null), tP = class extends K_ {
static {
this.type = "tablebody";
}
- }, bbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, $ye = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}, _be = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.tbody, {
++ }) : /*#__PURE__*/ S.createElement(Mj.tbody, {
...e,
ref: t
});
- }), $N = /*#__PURE__*/ by(QN, (e, t, n) => {
- let r = (0, S.useContext)(KN), { isVirtualized: i } = (0, S.useContext)(Fj), a = r.collection, { CollectionBranch: o } = (0, S.useContext)(Fj), { dragAndDropHooks: s, dropState: c } = (0, S.useContext)(LM), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
-}), qN = /*#__PURE__*/ Cy(KN, (e, t, n) => {
- let r = (0, S.useContext)(BN), { isVirtualized: i } = (0, S.useContext)(Fj), a = r.collection, { CollectionBranch: o } = (0, S.useContext)(Fj), { dragAndDropHooks: s, dropState: c } = (0, S.useContext)(jM), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
++}), nP = /*#__PURE__*/ by(tP, (e, t, n) => {
++ let r = (0, S.useContext)(YN), { isVirtualized: i } = (0, S.useContext)(Rj), a = r.collection, { CollectionBranch: o } = (0, S.useContext)(Rj), { dragAndDropHooks: s, dropState: c } = (0, S.useContext)(BM), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
-- }, p = Cj({
++ }, p = Ej({
...e,
id: void 0,
children: void 0,
@@@ -41878,33 -41277,33 +41878,33 @@@
}), 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__*/ S.createElement(tP, {
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ S.createElement(YN, {
++ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ S.createElement(iP, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ S.createElement(rP, {
- }, /*#__PURE__*/ S.createElement(ZN, {
++ }, /*#__PURE__*/ S.createElement(oP, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = BT(), _ = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement($ye, {
- ...ry(_, p, g),
+ let { rowGroupProps: g } = GT(), _ = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(bbe, {
++ return /*#__PURE__*/ S.createElement(_be, {
+ ...G(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ S.createElement(Obe, null), /*#__PURE__*/ S.createElement(o, {
- }, l && /*#__PURE__*/ S.createElement(sbe, null), /*#__PURE__*/ S.createElement(o, {
++ }, l && /*#__PURE__*/ S.createElement(Tbe, null), /*#__PURE__*/ S.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: zM(s, c)
- renderDropIndicator: NM(s, c)
++ renderDropIndicator: HM(s, c)
}), m);
});
-(class extends W_ {
+(class extends K_ {
static {
this.type = "tablefooter";
}
});
- var eP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), xbe = class extends G_ {
-var JN = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), ebe = class extends U_ {
++var rP = /*#__PURE__*/ (0, S.createContext)({ isFocusVisibleWithinRow: !1 }), vbe = class extends G_ {
static {
this.type = "item";
}
@@@ -41916,17 -41315,17 +41916,17 @@@
}
return null;
}
- }, tP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, YN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}, iP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.tr, {
++ }) : /*#__PURE__*/ S.createElement(Mj.tr, {
...e,
ref: t
});
- }), nP = /*#__PURE__*/ by(xbe, (e, t, n) => {
- let r = oy(t), i = (0, S.useContext)(KN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(LM), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Fj), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ece({
-}), XN = /*#__PURE__*/ Cy(ebe, (e, t, n) => {
- let r = ly(t), i = (0, S.useContext)(BN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(jM), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Fj), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = vce({
++}), aP = /*#__PURE__*/ by(vbe, (e, t, n) => {
++ let r = oy(t), i = (0, S.useContext)(YN), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, S.useContext)(BM), { isVirtualized: c, CollectionBranch: l } = (0, S.useContext)(Rj), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Ece({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@@ -41950,7 -41349,7 +41950,7 @@@
(0, S.useEffect)(() => {
o && D.current;
}, []);
-- let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = Cj({
++ let O = o && o.isDragging(n.key), { children: k, ...A } = e, j = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", M = j && i.expandedKeys.has(n.key), N = Ej({
...A,
id: void 0,
defaultClassName: "react-aria-Row",
@@@ -41971,11 -41370,11 +41971,11 @@@
isExpanded: M,
level: n.level + 1
}
- }), P = nb(e, { global: !0 });
- return delete P.id, delete P.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, w && !w.isHidden && /*#__PURE__*/ S.createElement(YN, {
+ }), P = $y(e, { global: !0 });
- return delete P.id, delete P.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, w && !w.isHidden && /*#__PURE__*/ S.createElement(tP, {
++ return delete P.id, delete P.onClick, /*#__PURE__*/ S.createElement(S.Fragment, null, w && !w.isHidden && /*#__PURE__*/ S.createElement(iP, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ S.createElement(rP, {
- }, /*#__PURE__*/ S.createElement(ZN, {
++ }, /*#__PURE__*/ S.createElement(oP, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@@ -41984,8 -41383,8 +41984,8 @@@
...E,
...w.dropIndicatorProps,
ref: T
- }))), /*#__PURE__*/ S.createElement(tP, {
- }))), /*#__PURE__*/ S.createElement(YN, {
- ...ry(P, N, d, g, y, C?.dragProps, v),
++ }))), /*#__PURE__*/ S.createElement(iP, {
+ ...G(P, N, d, g, y, C?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@@ -42000,17 -41399,17 +42000,17 @@@
"data-expanded": M || void 0,
"data-has-child-items": j || void 0,
"data-level": n.level + 1
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [Kj, { slots: {
- [Gj, { slots: {
-- [xj]: {},
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [Yj, { slots: {
++ [wj]: {},
selection: x
} }],
- [qj, { slots: {
- [Kj, { slots: {
-- [xj]: {},
++ [Xj, { slots: {
++ [wj]: {},
selection: x
} }],
- [zj, { slots: {
- [Rj, { slots: {
-- [xj]: {},
++ [Hj, { slots: {
++ [wj]: {},
chevron: f,
drag: {
...C?.dragButtonProps,
@@@ -42018,8 -41417,8 +42018,8 @@@
style: { pointerEvents: "none" }
}
} }],
- [UM, { isSelected: p.isSelected }],
- [eP, { isFocusVisibleWithinRow: _ }]
- [LM, { isSelected: p.isSelected }],
- [JN, { isFocusVisibleWithinRow: _ }]
++ [KM, { isSelected: p.isSelected }],
++ [rP, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ S.createElement(l, {
collection: i.collection,
parent: n
@@@ -42032,29 -41431,29 +42032,29 @@@
items: e.columns,
idScope: e.id
}, e.children);
- }), Sbe = class extends G_ {
-}), tbe = class extends U_ {
++}), ybe = class extends G_ {
static {
this.type = "cell";
}
- }, rP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}, ZN = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}, oP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.td, {
++ }) : /*#__PURE__*/ S.createElement(Mj.td, {
...e,
ref: t
});
- }), iP = /*#__PURE__*/ yy(Sbe, (e, t, n) => {
- let r = oy(t), i = (0, S.useContext)(KN), { dragState: a } = (0, S.useContext)(LM), { isVirtualized: o } = (0, S.useContext)(Fj);
-}), QN = /*#__PURE__*/ Sy(tbe, (e, t, n) => {
- let r = ly(t), i = (0, S.useContext)(BN), { dragState: a } = (0, S.useContext)(jM), { isVirtualized: o } = (0, S.useContext)(Fj);
++}), sP = /*#__PURE__*/ yy(ybe, (e, t, n) => {
++ let r = oy(t), i = (0, S.useContext)(YN), { dragState: a } = (0, S.useContext)(BM), { isVirtualized: o } = (0, S.useContext)(Rj);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = fce({
+ let { gridCellProps: s, isPressed: c } = bce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = zS(), { hoverProps: f, isHovered: p } = US({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(eP), 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 = Cj({
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = PS(), { hoverProps: f, isHovered: p } = RS({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(JN), 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 = Cj({
++ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = zS(), { hoverProps: f, isHovered: p } = US({}), { isFocusVisibleWithinRow: m } = (0, S.useContext)(rP), 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 = Ej({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@@ -42073,9 -41472,9 +42073,9 @@@
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), C = nb(e, { global: !0 });
- return delete C.id, /*#__PURE__*/ S.createElement(ZN, {
- ...ry(C, x, s, d, f),
+ }), C = $y(e, { global: !0 });
- return delete C.id, /*#__PURE__*/ S.createElement(rP, {
++ return delete C.id, /*#__PURE__*/ S.createElement(oP, {
+ ...G(C, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@@ -42088,14 -41487,14 +42088,14 @@@
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
-- }, /*#__PURE__*/ S.createElement(Fj.Provider, { value: Nj }, x.children));
++ }, /*#__PURE__*/ S.createElement(Rj.Provider, { value: Ij }, x.children));
});
- function Cbe(e, t) {
-function nbe(e, t) {
- t = ly(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(jM), i = (0, S.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
++function bbe(e, t) {
+ t = oy(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(LM), i = (0, S.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
++ let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(BM), i = (0, S.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__*/ S.createElement(Dbe, {
- return /*#__PURE__*/ S.createElement(obe, {
++ return /*#__PURE__*/ S.createElement(wbe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@@ -42104,40 -41503,40 +42104,40 @@@
ref: t
});
}
- var wbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-var rbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++var xbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.tr, {
++ }) : /*#__PURE__*/ S.createElement(Mj.tr, {
...e,
ref: t
});
- }), Tbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-}), ibe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
-- let { isVirtualized: n } = (0, S.useContext)(Fj);
-- return n ? /*#__PURE__*/ S.createElement(kj.div, {
++}), Sbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ let { isVirtualized: n } = (0, S.useContext)(Rj);
++ return n ? /*#__PURE__*/ S.createElement(Mj.div, {
...e,
ref: t
-- }) : /*#__PURE__*/ S.createElement(kj.td, {
++ }) : /*#__PURE__*/ S.createElement(Mj.td, {
...e,
ref: t
});
});
- function Ebe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(KN), { visuallyHiddenProps: c } = bx(), l = Cj({
-function abe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(BN), { visuallyHiddenProps: c } = _x(), l = Cj({
++function Cbe(e, t) {
++ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, S.useContext)(YN), { visuallyHiddenProps: c } = bx(), l = Ej({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ S.createElement(wbe, {
- return /*#__PURE__*/ S.createElement(rbe, {
- ...nb(e, { global: !0 }),
++ return /*#__PURE__*/ S.createElement(xbe, {
+ ...$y(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ S.createElement(Tbe, {
- }, /*#__PURE__*/ S.createElement(ibe, {
++ }, /*#__PURE__*/ S.createElement(Sbe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@@ -42148,14 -41547,14 +42148,14 @@@
ref: i
}), l.children));
}
- var Dbe = /*#__PURE__*/ (0, S.forwardRef)(Ebe);
- function Obe() {
- let e = (0, S.useContext)(KN), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(LM), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = bx();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ S.createElement(tP, {
-var obe = /*#__PURE__*/ (0, S.forwardRef)(abe);
-function sbe() {
- let e = (0, S.useContext)(BN), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(jM), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = _x();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ S.createElement(YN, {
++var wbe = /*#__PURE__*/ (0, S.forwardRef)(Cbe);
++function Tbe() {
++ let e = (0, S.useContext)(YN), { dragAndDropHooks: t, dropState: n } = (0, S.useContext)(BM), r = (0, S.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = bx();
++ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ S.createElement(iP, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ S.createElement(rP, {
- }, /*#__PURE__*/ S.createElement(ZN, {
++ }, /*#__PURE__*/ S.createElement(oP, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@@ -42166,9 -41565,9 +42166,9 @@@
ref: r
})));
}
-Sy(G_, function(e, t, n) {
- let r = (0, S.useContext)(BN), { isVirtualized: i } = (0, S.useContext)(Fj), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, S.useRef)(null);
- XM((0, S.useMemo)(() => ({
+yy(q_, function(e, t, n) {
- let r = (0, S.useContext)(KN), { isVirtualized: i } = (0, S.useContext)(Fj), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, S.useRef)(null);
- nN((0, S.useMemo)(() => ({
++ let r = (0, S.useContext)(YN), { isVirtualized: i } = (0, S.useContext)(Rj), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, S.useRef)(null);
++ aN((0, S.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@@ -42178,7 -41577,7 +42178,7 @@@
s,
r?.collection
]), u);
-- let d = Cj({
++ let d = Ej({
...c,
id: void 0,
children: n.rendered,
@@@ -42186,10 -41585,10 +42186,10 @@@
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__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(tP, {
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(YN, {
++ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(iP, {
style: { height: 0 },
- inert: GM(!0)
- }, /*#__PURE__*/ S.createElement(rP, { style: {
- inert: zM(!0)
- }, /*#__PURE__*/ S.createElement(ZN, { style: {
++ inert: JM(!0)
++ }, /*#__PURE__*/ S.createElement(oP, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ S.createElement("div", {
@@@ -42200,14 -41599,14 +42200,14 @@@
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ S.createElement(tP, {
- }))), a && d.children && /*#__PURE__*/ S.createElement(YN, {
- ...ry(nb(e, { global: !0 }), f),
++ }))), a && d.children && /*#__PURE__*/ S.createElement(iP, {
+ ...G($y(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ S.createElement(rP, {
- }, /*#__PURE__*/ S.createElement(ZN, {
++ }, /*#__PURE__*/ S.createElement(oP, {
role: "rowheader",
...p,
style: m
@@@ -42215,8 -41614,8 +42215,8 @@@
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
- function kbe(e) {
- let [t, n] = dx(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = eN({
-function cbe(e) {
- let [t, n] = px(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = JM({
++function Ebe(e) {
++ let [t, n] = dx(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, S.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = rN({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@@ -42239,24 -41638,24 +42239,24 @@@
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
- function Abe(e) {
- let t = kbe({
-function lbe(e) {
- let t = cbe({
++function Dbe(e) {
++ let t = Ebe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? aP(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
- defaultSelectedKey: e.defaultSelectedKey ?? $N(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
++ defaultSelectedKey: e.defaultSelectedKey ?? cP(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, S.useRef)(i);
return (0, S.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = aP(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 = $N(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 = cP(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 aP(e, t) {
-function $N(e, t) {
++function cP(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);
@@@ -42266,20 -41665,20 +42266,20 @@@
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
- var oP = /*#__PURE__*/ (0, S.createContext)(null), sP = /*#__PURE__*/ (0, S.createContext)(null), cP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, oP);
-var eP = /*#__PURE__*/ (0, S.createContext)(null), tP = /*#__PURE__*/ (0, S.createContext)(null), nP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- [e, t] = Tj(e, t, eP);
++var lP = /*#__PURE__*/ (0, S.createContext)(null), uP = /*#__PURE__*/ (0, S.createContext)(null), dP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ [e, t] = Oj(e, t, lP);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, S.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ S.createElement(gy, { content: n }, (n) => /*#__PURE__*/ S.createElement(jbe, {
- }) : n, [n, r]), /*#__PURE__*/ S.createElement(yy, { content: n }, (n) => /*#__PURE__*/ S.createElement(ube, {
++ }) : n, [n, r]), /*#__PURE__*/ S.createElement(gy, { content: n }, (n) => /*#__PURE__*/ S.createElement(Obe, {
props: e,
collection: n,
tabsRef: t
}));
});
- function jbe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Abe({
-function ube({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = lbe({
++function Obe({ props: e, tabsRef: t, collection: n }) {
++ let { orientation: r = "horizontal" } = e, i = Dbe({
...e,
collection: n,
children: void 0
@@@ -42291,33 -41690,33 +42291,33 @@@
r,
o,
s
-- ]), l = Cj({
++ ]), l = Ej({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(u, l, a),
+ }), u = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[oP, e], [sP, i]] }, l.children));
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[eP, e], [tP, i]] }, l.children));
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [[lP, e], [uP, i]] }, l.children));
}
- var lP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return (0, S.useContext)(sP) ? /*#__PURE__*/ S.createElement(Mbe, {
-var rP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return (0, S.useContext)(tP) ? /*#__PURE__*/ S.createElement(dbe, {
++var fP = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ return (0, S.useContext)(uP) ? /*#__PURE__*/ S.createElement(kbe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ S.createElement(Ey, e);
+ }) : /*#__PURE__*/ S.createElement(Cy, e);
});
- function Mbe({ props: e, forwardedRef: t }) {
- let n = (0, S.useContext)(sP), { CollectionRoot: r } = (0, S.useContext)(Fj), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = wj(oP), o = oy(t), { tabListProps: s } = Nce({
-function dbe({ props: e, forwardedRef: t }) {
- let n = (0, S.useContext)(tP), { CollectionRoot: r } = (0, S.useContext)(Fj), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = wj(eP), o = ly(t), { tabListProps: s } = Tce({
++function kbe({ props: e, forwardedRef: t }) {
++ let n = (0, S.useContext)(uP), { CollectionRoot: r } = (0, S.useContext)(Rj), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = Dj(lP), o = oy(t), { tabListProps: s } = Nce({
...e,
orientation: i,
keyboardActivation: a
-- }, n, o), c = Cj({
++ }, n, o), c = Ej({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@@ -42325,30 -41724,30 +42325,30 @@@
orientation: i,
state: n
}
- }), l = nb(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(l, c, s),
+ }), l = $y(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ S.createElement(kj.div, {
++ return delete l.id, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ S.createElement(HM, null, /*#__PURE__*/ S.createElement(r, {
- }, /*#__PURE__*/ S.createElement(IM, null, /*#__PURE__*/ S.createElement(r, {
++ }, /*#__PURE__*/ S.createElement(GM, null, /*#__PURE__*/ S.createElement(r, {
collection: n.collection,
-- persistedKeys: Ij(n.selectionManager.focusedKey)
++ persistedKeys: zj(n.selectionManager.focusedKey)
})));
}
- var uP = /*#__PURE__*/ yy(class extends G_ {
-var iP = /*#__PURE__*/ Sy(class extends U_ {
++var pP = /*#__PURE__*/ yy(class extends G_ {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, S.useContext)(sP), i = oy(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = jce({
- let r = (0, S.useContext)(tP), i = ly(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Cce({
++ let r = (0, S.useContext)(uP), i = oy(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = jce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = PS(), { hoverProps: f, isHovered: p } = RS({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = zS(), { hoverProps: f, isHovered: p } = US({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
-- }), m = Cj({
++ }), m = Ej({
...e,
id: void 0,
children: n.rendered,
@@@ -42361,9 -41760,9 +42361,9 @@@
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? kj.a : kj.div, g = $y(e, { global: !0 });
- }), h = n.props.href ? kj.a : kj.div, g = nb(e, { global: !0 });
++ }), h = n.props.href ? Mj.a : Mj.div, g = $y(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ S.createElement(h, {
- ...ry(g, m, a, l, f),
+ ...G(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@@ -42371,58 -41770,58 +42371,58 @@@
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ S.createElement(UM.Provider, { value: { isSelected: o } }, m.children));
- }), dP = /*#__PURE__*/ dy(function(e, t) {
- let n = (0, S.useContext)(sP), r = oy(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
- }, /*#__PURE__*/ S.createElement(LM.Provider, { value: { isSelected: o } }, m.children));
-}), aP = /*#__PURE__*/ my(function(e, t) {
- let n = (0, S.useContext)(tP), r = ly(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
++ }, /*#__PURE__*/ S.createElement(KM.Provider, { value: { isSelected: o } }, m.children));
++}), mP = /*#__PURE__*/ dy(function(e, t) {
++ let n = (0, S.useContext)(uP), r = oy(t), i = n.selectedKey === e.id, [a, o] = (0, S.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = cN(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ S.createElement(Nbe, {
- let s = nN(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ S.createElement(fbe, {
++ let s = dN(r, i);
++ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ S.createElement(Abe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
- function Nbe(e) {
- let t = (0, S.useContext)(sP), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Pce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = zS(), d = t.selectedKey === e.id, f = sN(r) && !i, p = Cj({
-function fbe(e) {
- let t = (0, S.useContext)(tP), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Ece(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = PS(), d = t.selectedKey === e.id, f = tN(r) && !i, p = Cj({
++function Abe(e) {
++ let t = (0, S.useContext)(uP), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Pce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = zS(), d = t.selectedKey === e.id, f = uN(r) && !i, p = Ej({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: GM(!d),
- isInert: zM(!d),
++ isInert: JM(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = nb(o, { global: !0 });
+ }), m = $y(o, { global: !0 });
delete m.id;
- let h = d ? ry(m, s, c, p) : ry(m, p);
- return /*#__PURE__*/ S.createElement(kj.div, {
+ let h = d ? G(m, s, c, p) : G(m, p);
- return /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Mj.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: GM(!d || e.inert),
- inert: zM(!d || e.inert),
++ inert: JM(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[oP, null], [sP, null]] }, /*#__PURE__*/ S.createElement(Fj.Provider, { value: Nj }, p.children)));
- }, /*#__PURE__*/ S.createElement(Sj, { values: [[eP, null], [tP, null]] }, /*#__PURE__*/ S.createElement(Fj.Provider, { value: Nj }, p.children)));
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [[lP, null], [uP, null]] }, /*#__PURE__*/ S.createElement(Rj.Provider, { value: Ij }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
- var Pbe = /*#__PURE__*/ (0, S.createContext)({}), Fbe = /*#__PURE__*/ (0, S.createContext)(null), Ibe = /*#__PURE__*/ dy(function(e, t) {
- [e, t] = Tj(e, t, Fbe);
- let { validationBehavior: n } = wj(Gj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useRef)(null);
-var pbe = /*#__PURE__*/ (0, S.createContext)({}), mbe = /*#__PURE__*/ (0, S.createContext)(null), hbe = /*#__PURE__*/ my(function(e, t) {
- [e, t] = Tj(e, t, mbe);
- let { validationBehavior: n } = wj(Wj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useRef)(null);
-- [e, i] = Tj(e, i, jj);
- let [a, o] = Ej(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = nse({
- let [a, o] = Ej(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Zoe({
-- ...Dj(e),
++var jbe = /*#__PURE__*/ (0, S.createContext)({}), Mbe = /*#__PURE__*/ (0, S.createContext)(null), Nbe = /*#__PURE__*/ dy(function(e, t) {
++ [e, t] = Oj(e, t, Mbe);
++ let { validationBehavior: n } = Dj(Jj) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, S.useRef)(null);
++ [e, i] = Oj(e, i, Pj);
++ let [a, o] = kj(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, S.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = nse({
++ ...Aj(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, S.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
-- }, [i]), h = Cj({
++ }, [i]), h = Ej({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@@ -42431,8 -41830,8 +42431,8 @@@
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = nb(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ S.createElement(kj.div, {
+ }), g = $y(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ S.createElement(kj.div, {
++ return delete g.id, /*#__PURE__*/ S.createElement(Mj.div, {
...g,
...h,
ref: t,
@@@ -42441,31 -41840,31 +42441,31 @@@
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
-- [Lj, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [Bj, {
...l,
ref: a
}],
- [Xj, {
- [Yj, {
++ [$j, {
...u,
ref: m
}],
- [Pbe, {
- [pbe, {
++ [jbe, {
...u,
ref: m
}],
- [Yj, {
- [Jj, {
++ [Qj, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [Uj, { slots: {
- [Hj, { slots: {
++ [Kj, { slots: {
description: d,
errorMessage: f
} }],
- [Wj, p]
- [Uj, p]
++ [qj, p]
] }, h.children));
- }), Lbe = class e extends J_ {
-}), gbe = class e extends K_ {
++}), Pbe = class e extends J_ {
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;
@@@ -42537,16 -41936,16 +42537,16 @@@
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
- }, Rbe = /*#__PURE__*/ (0, S.createContext)(null), fP = /*#__PURE__*/ (0, S.createContext)(null), zbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = Tj(e, t, Rbe), /*#__PURE__*/ S.createElement(gy, {
-}, _be = /*#__PURE__*/ (0, S.createContext)(null), oP = /*#__PURE__*/ (0, S.createContext)(null), vbe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- return [e, t] = Tj(e, t, _be), /*#__PURE__*/ S.createElement(yy, {
- content: /*#__PURE__*/ S.createElement(Ey, e),
- createCollection: () => new gbe()
- }, (n) => /*#__PURE__*/ S.createElement(ybe, {
++}, Fbe = /*#__PURE__*/ (0, S.createContext)(null), hP = /*#__PURE__*/ (0, S.createContext)(null), Ibe = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
++ return [e, t] = Oj(e, t, Fbe), /*#__PURE__*/ S.createElement(gy, {
+ content: /*#__PURE__*/ S.createElement(Cy, e),
- createCollection: () => new Lbe()
- }, (n) => /*#__PURE__*/ S.createElement(Bbe, {
++ createCollection: () => new Pbe()
++ }, (n) => /*#__PURE__*/ S.createElement(Lbe, {
props: e,
collection: n,
treeRef: t
}));
- }), pP = {
-}), sP = {
++}), gP = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@@ -42556,17 -41955,17 +42556,17 @@@
rtl: "ArrowRight"
}
};
- function Bbe({ props: e, collection: t, treeRef: n }) {
-function ybe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Jy(), a = DS({
++function Lbe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Gy(), a = MS({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, S.useRef)(o), l = (0, S.useRef)(s);
(0, S.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, S.useContext)(Fj), [y, b] = dx(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, C] = (0, S.useState)(t), [w, T] = (0, S.useState)(y), [E, D] = (0, S.useState)(() => t.withExpandedKeys(w, y));
- (!qbe(w, y) || t !== x) && (D(t.withExpandedKeys(w, y)), C(t), T(y));
- let O = mN({
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, S.useContext)(Fj), [y, b] = px(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, C] = (0, S.useState)(t), [w, T] = (0, S.useState)(y), [E, D] = (0, S.useState)(() => t.withExpandedKeys(w, y));
- (!Ebe(w, y) || t !== x) && (D(t.withExpandedKeys(w, y)), C(t), T(y));
- let O = cN({
++ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, S.useContext)(Rj), [y, b] = dx(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, C] = (0, S.useState)(t), [w, T] = (0, S.useState)(y), [E, D] = (0, S.useState)(() => t.withExpandedKeys(w, y));
++ (!Wbe(w, y) || t !== x) && (D(t.withExpandedKeys(w, y)), C(t), T(y));
++ let O = _N({
...e,
selectionMode: u,
expandedKeys: y,
@@@ -42588,7 -41987,7 +42588,7 @@@
let e = r.DragPreview;
P = r.renderDragPreview ? /*#__PURE__*/ S.createElement(e, { ref: F }, r.renderDragPreview) : null;
}
- let [I] = (0, S.useState)(() => new HN());
- let [I] = (0, S.useState)(() => new IN());
++ let [I] = (0, S.useState)(() => new GN());
if (s && r) {
j = r.useDroppableCollectionState({
collection: O.collection,
@@@ -42618,7 -42017,7 +42618,7 @@@
let t = j?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = O.collection.getItem(t.key);
- (e.key === pP.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === pP.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
- (e.key === sP.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === sP.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
++ (e.key === gP.expand[i] && n?.hasChildNodes && !O.expandedKeys.has(t.key) || e.key === gP.collapse[i] && n?.hasChildNodes && O.expandedKeys.has(t.key)) && O.toggleKey(t.key);
}
}
}, j, n), N = j.isDropTarget({ type: "root" });
@@@ -42631,7 -42030,7 +42631,7 @@@
selectionMode: O.selectionManager.selectionMode,
allowsDragging: !!ee,
state: O
-- }, ie = Cj({
++ }, ie = Ej({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@@ -42648,9 -42047,9 +42648,9 @@@
style: { display: "contents" }
}, r));
}
- let oe = nb(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Tb, null, /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(oe, ie, k, L, M?.collectionProps),
+ let oe = $y(e, { global: !0 });
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Cb, null, /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(oe, ie, k, L, M?.collectionProps),
ref: n,
slot: e.slot || void 0,
"data-empty": O.collection.size === 0 || void 0,
@@@ -42659,39 -42058,39 +42659,39 @@@
"data-focus-visible": ne || void 0,
"data-selection-mode": O.selectionManager.selectionMode === "none" ? void 0 : O.selectionManager.selectionMode,
"data-allows-dragging": !!ee || void 0
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [fP, O],
- [LM, {
- [oP, O],
- [jM, {
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [hP, O],
++ [BM, {
dragAndDropHooks: r,
dragState: A,
dropState: j
}],
- [RM, { render: Ube }]
- ] }, s && /*#__PURE__*/ S.createElement(Kbe, null), /*#__PURE__*/ S.createElement(HM, null, /*#__PURE__*/ S.createElement(h, {
- [MM, { render: Sbe }]
- ] }, s && /*#__PURE__*/ S.createElement(Tbe, null), /*#__PURE__*/ S.createElement(IM, null, /*#__PURE__*/ S.createElement(h, {
++ [VM, { render: Bbe }]
++ ] }, s && /*#__PURE__*/ S.createElement(Ube, null), /*#__PURE__*/ S.createElement(GM, null, /*#__PURE__*/ S.createElement(h, {
collection: O.collection,
- persistedKeys: BM(O.selectionManager, r, j),
- persistedKeys: PM(O.selectionManager, r, j),
++ persistedKeys: UM(O.selectionManager, r, j),
scrollRef: n,
- renderDropIndicator: zM(r, j)
- renderDropIndicator: NM(r, j)
++ renderDropIndicator: HM(r, j)
}))), ae)), P);
}
- var Vbe = /*#__PURE__*/ yy(class extends G_ {
-var bbe = /*#__PURE__*/ Sy(class extends U_ {
++var Rbe = /*#__PURE__*/ yy(class extends G_ {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, S.useContext)(mP), n = Cj({
- let t = (0, S.useContext)(cP), n = Cj({
++ let t = (0, S.useContext)(_P), n = Ej({
children: e.children,
values: t
});
-- return /*#__PURE__*/ S.createElement(Fj.Provider, { value: Nj }, n.children);
- }), mP = /*#__PURE__*/ (0, S.createContext)(null), Hbe = /*#__PURE__*/ by(class extends G_ {
-}), cP = /*#__PURE__*/ (0, S.createContext)(null), xbe = /*#__PURE__*/ Cy(class extends U_ {
++ return /*#__PURE__*/ S.createElement(Rj.Provider, { value: Ij }, n.children);
++}), _P = /*#__PURE__*/ (0, S.createContext)(null), zbe = /*#__PURE__*/ by(class extends G_ {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, S.useContext)(fP);
- let r = (0, S.useContext)(oP);
- t = ly(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, S.useContext)(jM), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = Zce({
++ let r = (0, S.useContext)(hP);
+ t = oy(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, S.useContext)(LM), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = ule({
++ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, S.useContext)(BM), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = cle({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
@@@ -42745,7 -42144,7 +42745,7 @@@
j,
N,
M
-- ]), F = Cj({
++ ]), F = Ej({
...e,
id: void 0,
children: n.rendered,
@@@ -42795,8 -42194,8 +42795,8 @@@
"aria-labelledby": `${L} ${c.id}`,
tabIndex: -1,
ref: O
-- }))), /*#__PURE__*/ S.createElement(kj.div, {
- ...ry(te, c, y, g, x, w?.dragProps),
++ }))), /*#__PURE__*/ S.createElement(Mj.div, {
+ ...G(te, c, y, g, x, w?.dragProps),
...F,
ref: t,
"data-expanded": m && p || void 0,
@@@ -42815,17 -42214,17 +42815,17 @@@
}, /*#__PURE__*/ S.createElement("div", {
...l,
style: { display: "contents" }
-- }, /*#__PURE__*/ S.createElement(Sj, { values: [
- [Kj, { slots: {
- [Gj, { slots: {
-- [xj]: {},
++ }, /*#__PURE__*/ S.createElement(Tj, { values: [
++ [Yj, { slots: {
++ [wj]: {},
selection: C
} }],
- [qj, { slots: {
- [Kj, { slots: {
-- [xj]: {},
++ [Xj, { slots: {
++ [wj]: {},
selection: C
} }],
- [zj, { slots: {
- [Rj, { slots: {
-- [xj]: {},
++ [Hj, { slots: {
++ [wj]: {},
chevron: {
...u,
ref: E
@@@ -42836,13 -42235,13 +42836,13 @@@
style: { pointerEvents: "none" }
}
} }],
- [mP, { ...P }],
- [UM, { isSelected: f.isSelected }]
- [cP, { ...P }],
- [LM, { isSelected: f.isSelected }]
++ [_P, { ...P }],
++ [KM, { isSelected: f.isSelected }]
] }, ee))));
});
-Sy(G_, function(e, t, n) {
- let { isVirtualized: r } = (0, S.useContext)(Fj), i = (0, S.useContext)(oP), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, S.useRef)(null);
- XM((0, S.useMemo)(() => ({
+yy(q_, function(e, t, n) {
- let { isVirtualized: r } = (0, S.useContext)(Fj), i = (0, S.useContext)(fP), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, S.useRef)(null);
- nN((0, S.useMemo)(() => ({
++ let { isVirtualized: r } = (0, S.useContext)(Rj), i = (0, S.useContext)(hP), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, S.useRef)(null);
++ aN((0, S.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@@ -42851,11 -42250,11 +42851,11 @@@
o,
s,
i?.collection
- ]), l), t = ly(t);
- let { rowProps: u, gridCellProps: d } = Zce({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = oy(t);
- let { rowProps: u, gridCellProps: d } = ule({ node: n }, i, t), f = u["aria-level"] || 1, p = {
++ let { rowProps: u, gridCellProps: d } = cle({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
-- }, m = Cj({
++ }, m = Ej({
...c,
id: void 0,
children: n.rendered,
@@@ -42868,7 -42267,7 +42868,7 @@@
width: 0,
height: 0
},
- inert: GM(!0)
- inert: zM(!0)
++ inert: JM(!0)
}, /*#__PURE__*/ S.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@@ -42877,9 -42276,9 +42877,9 @@@
height: 1,
width: 1
}
-- })), a && m.children && /*#__PURE__*/ S.createElement(kj.div, {
++ })), a && m.children && /*#__PURE__*/ S.createElement(Mj.div, {
ref: t,
- ...ry(nb(e), p),
+ ...G($y(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ S.createElement("div", {
@@@ -42887,12 -42286,12 +42887,12 @@@
style: h
}, m.children)));
});
- function Ube(e, t) {
-function Sbe(e, t) {
- t = ly(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(jM), i = (0, S.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
++function Bbe(e, t) {
+ t = oy(t);
- let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(LM), i = (0, S.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
++ let { dragAndDropHooks: n, dropState: r } = (0, S.useContext)(BM), i = (0, S.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__*/ S.createElement(Gbe, {
- return /*#__PURE__*/ S.createElement(wbe, {
++ return /*#__PURE__*/ S.createElement(Hbe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@@ -42901,8 -42300,8 +42901,8 @@@
level: c
});
}
- function Wbe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = bx(), c = Cj({
-function Cbe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = _x(), c = Cj({
++function Vbe(e, t) {
++ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = bx(), c = Ej({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@@ -42911,7 -42310,7 +42911,7 @@@
},
values: { isDropTarget: r }
});
-- return /*#__PURE__*/ S.createElement(kj.div, {
++ return /*#__PURE__*/ S.createElement(Mj.div, {
...c,
role: "row",
"aria-level": a,
@@@ -42924,9 -42323,9 +42924,9 @@@
ref: i
}), c.children));
}
- var Gbe = /*#__PURE__*/ (0, S.forwardRef)(Wbe);
- function Kbe() {
- let { dragAndDropHooks: e, dropState: t } = (0, S.useContext)(LM), n = (0, S.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = bx();
-var wbe = /*#__PURE__*/ (0, S.forwardRef)(Cbe);
-function Tbe() {
- let { dragAndDropHooks: e, dropState: t } = (0, S.useContext)(jM), n = (0, S.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = _x();
++var Hbe = /*#__PURE__*/ (0, S.forwardRef)(Vbe);
++function Ube() {
++ let { dragAndDropHooks: e, dropState: t } = (0, S.useContext)(BM), n = (0, S.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = bx();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ S.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@@ -42938,18 -42337,18 +42938,18 @@@
ref: n
})));
}
- function qbe(e, t) {
-function Ebe(e, t) {
++function Wbe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
- function hP({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsxs)(Rj, {
-function lP({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsxs)(Ave, {
++function vP({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
++ return /* @__PURE__ */ (0, C.jsxs)(Vj, {
"data-label": "true",
...a,
- className: dA("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
- className: uA("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
++ className: pA("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -42957,7 -42356,7 +42957,7 @@@
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, C.jsx)(wge, {
- n && /* @__PURE__ */ (0, C.jsx)(fge, {
++ n && /* @__PURE__ */ (0, C.jsx)(Sge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@@ -42966,33 -42365,33 +42966,33 @@@
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
- function Jbe({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, C.jsx)(Kve, {
-function Dbe({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, C.jsx)(Pve, {
++function Gbe({ isInvalid: e = !1, className: t, ...n }) {
++ return /* @__PURE__ */ (0, C.jsx)(Uve, {
slot: e ? "errorMessage" : "description",
...n,
- className: dA("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
- className: uA("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
++ className: pA("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
- var gP = (0, S.createContext)({});
- function _P({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)(gP.Provider, {
-var uP = (0, S.createContext)({});
-function dP({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)(uP.Provider, {
++var yP = (0, S.createContext)({});
++function bP({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
++ return /* @__PURE__ */ (0, C.jsx)(yP.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, C.jsx)(Ibe, {
- children: /* @__PURE__ */ (0, C.jsx)(hbe, {
++ children: /* @__PURE__ */ (0, C.jsx)(Nbe, {
...a,
"data-input-size": e,
- className: dA("group flex h-max w-full flex-col items-start gap-1", r),
- className: uA("group flex h-max w-full flex-col items-start gap-1", r),
++ className: pA("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
- _P.displayName = "TextField";
- var vP = fA({
-dP.displayName = "TextField";
-var fP = dA({
++bP.displayName = "TextField";
++var xP = mA({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@@ -43021,44 -42420,44 +43021,44 @@@
].join(" "),
icon: "size-5 shrink-0"
});
- function yP({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, S.useContext)(gP), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, C.jsx)(Zve, {
-function pP({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, S.useContext)(uP), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, C.jsx)(zve, {
++function SP({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
++ let l = (0, S.useContext)(yP), u = e ?? l.size ?? "medium", d = r != null;
++ return /* @__PURE__ */ (0, C.jsx)(Jve, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => dA(vP.field, d ? vP.fieldWithAddonSize[u] : vP.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 }) => uA(fP.field, d ? fP.fieldWithAddonSize[u] : fP.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 }) => pA(xP.field, d ? xP.fieldWithAddonSize[u] : xP.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, C.jsxs)("div", {
- className: vP.content,
- className: fP.content,
++ className: xP.content,
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: vP.leftSection,
- className: fP.leftSection,
++ className: xP.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, C.jsx)(t, {
- className: vP.icon,
- className: fP.icon,
++ className: xP.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, C.jsx)($ve, {
- }) : null, /* @__PURE__ */ (0, C.jsx)(Vve, {
++ }) : null, /* @__PURE__ */ (0, C.jsx)(Xve, {
ref: o,
...c,
- className: dA(vP.input, l.inputClassName, a)
- className: uA(fP.input, l.inputClassName, a)
++ className: pA(xP.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, C.jsx)(n, {
- className: vP.icon,
- className: fP.icon,
++ className: xP.icon,
"aria-hidden": !0
}) : null]
})
});
}
- yP.displayName = "InputBase";
- function bP({ 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, C.jsx)(_P, {
-pP.displayName = "InputBase";
-function mP({ 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, C.jsx)(dP, {
++SP.displayName = "InputBase";
++function CP({ 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, C.jsx)(bP, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- e && /* @__PURE__ */ (0, C.jsx)(hP, {
- e && /* @__PURE__ */ (0, C.jsx)(lP, {
++ e && /* @__PURE__ */ (0, C.jsx)(vP, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, C.jsx)(yP, {
- /* @__PURE__ */ (0, C.jsx)(pP, {
++ /* @__PURE__ */ (0, C.jsx)(SP, {
ref: c,
groupRef: l,
placeholder: r,
@@@ -43067,25 -42466,25 +43067,25 @@@
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, C.jsx)(Jbe, {
- t && /* @__PURE__ */ (0, C.jsx)(Dbe, {
++ t && /* @__PURE__ */ (0, C.jsx)(Gbe, {
isInvalid: d,
children: t
})
] })
});
}
- bP.displayName = "Input";
-mP.displayName = "Input";
++CP.displayName = "Input";
//#endregion
//#region src/react/components/modal-frame.tsx
- var Ybe = {
-var Obe = {
++var Kbe = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl"
};
- function xP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
-function hP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- let { isFocusVisible: a } = Rv();
- return /* @__PURE__ */ (0, C.jsx)(CN, {
++function wP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
+ let { isFocusVisible: a } = wae();
- return /* @__PURE__ */ (0, C.jsx)(kN, {
++ return /* @__PURE__ */ (0, C.jsx)(MN, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@@ -43093,11 -42492,11 +43093,11 @@@
"data-modal-kind": n,
"data-motion-instant": a || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, C.jsx)(Fye, {
- children: /* @__PURE__ */ (0, C.jsx)(mye, {
++ children: /* @__PURE__ */ (0, C.jsx)(Mye, {
"data-modal-surface": "",
"data-modal-width": n,
- className: `flex max-h-full w-full ${Ybe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, C.jsx)(TN, {
- className: `flex max-h-full w-full ${Obe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, C.jsx)(yN, {
++ className: `flex max-h-full w-full ${Kbe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
++ children: /* @__PURE__ */ (0, C.jsx)(ON, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@@ -43105,7 -42504,7 +43105,7 @@@
})
});
}
- function SP({ children: e }) {
-function gP({ children: e }) {
++function TP({ children: e }) {
return /* @__PURE__ */ (0, C.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",
@@@ -43114,11 -42513,11 +43114,11 @@@
}
//#endregion
//#region src/react/components/sprite-glyph.tsx
- var Xbe = { "text-aa": 1.435 }, CP = /* @__PURE__ */ new Map();
- function wP(e) {
- let t = CP.get(e);
-var kbe = { "text-aa": 1.435 }, _P = /* @__PURE__ */ new Map();
-function vP(e) {
- let t = _P.get(e);
++var qbe = { "text-aa": 1.435 }, EP = /* @__PURE__ */ new Map();
++function DP(e) {
++ let t = EP.get(e);
if (t) return t;
- let n = Xbe[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, C.jsx)("svg", {
- let n = kbe[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, C.jsx)("svg", {
++ let n = qbe[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, C.jsx)("svg", {
"aria-hidden": !0,
viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,
className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,
@@@ -43132,11 -42531,11 +43132,11 @@@
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
- return r.displayName = `SpriteGlyph(${e})`, CP.set(e, r), r;
- return r.displayName = `SpriteGlyph(${e})`, _P.set(e, r), r;
++ return r.displayName = `SpriteGlyph(${e})`, EP.set(e, r), r;
}
//#endregion
//#region src/react/components/settings-dialog-close.tsx
- function TP({ label: e, id: t, onPress: n }) {
-function yP({ label: e, id: t, onPress: n }) {
++function OP({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
id: t,
@@@ -43152,58 -42551,58 +43152,58 @@@
}
//#endregion
//#region src/react/library-shortcuts/library-shortcuts.ts
- var EP = ["library-shortcuts"], DP = "/api/library-shortcuts";
- function OP(e = !0) {
-var bP = ["library-shortcuts"], xP = "/api/library-shortcuts";
-function SP(e = !0) {
- return pt({
- queryKey: bP,
- queryFn: ({ signal: e }) => H(xP, e),
++var kP = ["library-shortcuts"], AP = "/api/library-shortcuts";
++function jP(e = !0) {
+ return ft({
- queryKey: EP,
- queryFn: ({ signal: e }) => yn(DP, e),
++ queryKey: kP,
++ queryFn: ({ signal: e }) => yn(AP, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
- function kP() {
-function CP() {
- return mt({
- mutationKey: bP,
- mutationFn: (e) => U(xP, e),
++function MP() {
+ return pt({
- mutationKey: EP,
- mutationFn: (e) => H(DP, e),
++ mutationKey: kP,
++ mutationFn: (e) => H(AP, e),
onSuccess: (e) => {
- U.setQueryData(EP, e);
- W.setQueryData(bP, e);
++ U.setQueryData(kP, e);
}
});
}
- function AP(e, t) {
-function wP(e, t) {
++function NP(e, t) {
return e.some((e) => t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name);
}
- function Zbe(e) {
-function Abe(e) {
- return Wt(e.kind, e.name, e.entity_id);
++function Jbe(e) {
+ return Ut(e.kind, e.name, e.entity_id);
}
//#endregion
//#region src/react/library-shortcuts/shortcut-controls.tsx
- var jP = wP("star"), Qbe = wP("bookmark-plus"), MP = wP("chevron-right"), NP = {
-var TP = vP("star"), jbe = vP("bookmark-plus"), EP = vP("chevron-right"), DP = {
++var PP = DP("star"), Ybe = DP("bookmark-plus"), FP = DP("chevron-right"), IP = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
- }, PP = {
- all: wP("star"),
- performer: wP("user-round"),
- creator: wP("user-round"),
- studio: wP("clapperboard"),
- series: wP("film"),
- agency: wP("briefcase"),
- tag: wP("tags"),
- filters: wP("list-filter")
- }, FP = [
-}, OP = {
- all: vP("star"),
- performer: vP("user-round"),
- creator: vP("user-round"),
- studio: vP("clapperboard"),
- series: vP("film"),
- agency: vP("briefcase"),
- tag: vP("tags"),
- filters: vP("list-filter")
-}, kP = [
++}, LP = {
++ all: DP("star"),
++ performer: DP("user-round"),
++ creator: DP("user-round"),
++ studio: DP("clapperboard"),
++ series: DP("film"),
++ agency: DP("briefcase"),
++ tag: DP("tags"),
++ filters: DP("list-filter")
++}, RP = [
["all", "全部"],
- ...Object.entries(NP),
- ...Object.entries(DP),
++ ...Object.entries(IP),
["filters", "保存的筛选"]
];
- function IP({ item: e }) {
- return /* @__PURE__ */ (0, C.jsx)($be, { item: e }, `${e.kind}:${e.entity_id}:${e.name}`);
-function AP({ item: e }) {
- return /* @__PURE__ */ (0, C.jsx)(Mbe, { item: e }, `${e.kind}:${e.entity_id}:${e.name}`);
++function zP({ item: e }) {
++ return /* @__PURE__ */ (0, C.jsx)(Xbe, { item: e }, `${e.kind}:${e.entity_id}:${e.name}`);
}
- function $be({ item: e }) {
- let t = OP(!1), n = (0, S.useRef)(t.data), r = kP(), i = t.data && t.data !== n.current ? AP(t.data.favorites || [], e) : e.favorite ?? (t.data ? AP(t.data.favorites || [], e) : !1);
-function Mbe({ item: e }) {
- let t = SP(!1), n = (0, S.useRef)(t.data), r = CP(), i = t.data && t.data !== n.current ? wP(t.data.favorites || [], e) : e.favorite ?? (t.data ? wP(t.data.favorites || [], e) : !1);
++function Xbe({ item: e }) {
++ let t = jP(!1), n = (0, S.useRef)(t.data), r = MP(), i = t.data && t.data !== n.current ? NP(t.data.favorites || [], e) : e.favorite ?? (t.data ? NP(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
@@@ -43224,7 -42623,7 +43224,7 @@@
children: r.isPending ? /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: No("") }
- }) : /* @__PURE__ */ (0, C.jsx)(jP, {})
- }) : /* @__PURE__ */ (0, C.jsx)(TP, {})
++ }) : /* @__PURE__ */ (0, C.jsx)(PP, {})
}),
r.isError ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -43239,37 -42638,37 +43239,37 @@@
]
});
}
- function LP({ currentHref: e, kind: t }) {
-function jP({ currentHref: e, kind: t }) {
++function BP({ currentHref: e, kind: t }) {
let [n, r] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-shortcuts-entry": "",
-- children: /* @__PURE__ */ (0, C.jsx)(mj, {
++ children: /* @__PURE__ */ (0, C.jsx)(_j, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: jP,
- icon: TP,
++ icon: PP,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, C.jsx)(xP, {
- }), /* @__PURE__ */ (0, C.jsx)(hP, {
++ }), /* @__PURE__ */ (0, C.jsx)(wP, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, C.jsx)(exe, {
- children: n ? /* @__PURE__ */ (0, C.jsx)(Nbe, {
++ children: n ? /* @__PURE__ */ (0, C.jsx)(Zbe, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
- function exe({ currentHref: e, kind: t, close: n }) {
- let r = OP(), i = kP(), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(t || "all"), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), p = (0, S.useId)(), [m, h] = (0, S.useState)(() => matchMedia("(max-width: 760px)").matches);
-function Nbe({ currentHref: e, kind: t, close: n }) {
- let r = SP(), i = CP(), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(t || "all"), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), p = (0, S.useId)(), [m, h] = (0, S.useState)(() => matchMedia("(max-width: 760px)").matches);
++function Zbe({ currentHref: e, kind: t, close: n }) {
++ let r = jP(), i = MP(), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(t || "all"), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), p = (0, S.useId)(), [m, h] = (0, S.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, S.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
-- let g = (0, S.useRef)(null), _ = (0, S.useRef)(null), v = (0, S.useRef)(s), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = (0, S.useRef)(null), w = bj(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
++ let g = (0, S.useRef)(null), _ = (0, S.useRef)(null), v = (0, S.useRef)(s), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = (0, S.useRef)(null), w = Cj(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, S.useLayoutEffect)(() => {
b.current && (x.current = Na(b.current) || null);
}, []), (0, S.useLayoutEffect)(() => {
@@@ -43282,7 -42681,7 +43282,7 @@@
}, [s]), (0, S.useLayoutEffect)(() => {
x.current?.();
});
- let T = FP.find(([e]) => e === s)?.[1] || "全部", E = (e) => {
- let T = kP.find(([e]) => e === s)?.[1] || "全部", E = (e) => {
++ let T = RP.find(([e]) => e === s)?.[1] || "全部", E = (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;
@@@ -43305,7 -42704,7 +43305,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: T
- }), /* @__PURE__ */ (0, C.jsx)(TP, {
- }), /* @__PURE__ */ (0, C.jsx)(yP, {
++ }), /* @__PURE__ */ (0, C.jsx)(OP, {
label: "关闭我的收藏",
onPress: n
})]
@@@ -43335,8 -42734,8 +43335,8 @@@
role: "presentation",
children: "我的收藏"
}),
- FP.map(([e, t]) => {
- let n = PP[e] || jP, r = e === "filters" ? O?.filters.length || 0 : (O?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
- kP.map(([e, t]) => {
- let n = OP[e] || TP, r = e === "filters" ? O?.filters.length || 0 : (O?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
++ RP.map(([e, t]) => {
++ let n = LP[e] || PP, r = e === "filters" ? O?.filters.length || 0 : (O?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
role: "tab",
@@@ -43368,17 -42767,17 +43368,17 @@@
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, C.jsx)(jP, { "aria-hidden": !0 }),
- /* @__PURE__ */ (0, C.jsx)(TP, { "aria-hidden": !0 }),
++ /* @__PURE__ */ (0, C.jsx)(PP, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, C.jsx)(MP, { "aria-hidden": !0 })
- /* @__PURE__ */ (0, C.jsx)(EP, { "aria-hidden": !0 })
++ /* @__PURE__ */ (0, C.jsx)(FP, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, C.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, C.jsx)(Qbe, { "aria-hidden": !0 }),
- /* @__PURE__ */ (0, C.jsx)(jbe, { "aria-hidden": !0 }),
++ /* @__PURE__ */ (0, C.jsx)(Ybe, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, C.jsx)(MP, { "aria-hidden": !0 })
- /* @__PURE__ */ (0, C.jsx)(EP, { "aria-hidden": !0 })
++ /* @__PURE__ */ (0, C.jsx)(FP, { "aria-hidden": !0 })
]
})]
})]
@@@ -43411,9 -42810,9 +43411,9 @@@
children: V(i.error)
}) : null,
O ? s === "filters" ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- O.filters.length ? null : /* @__PURE__ */ (0, C.jsx)(vA, {
- O.filters.length ? null : /* @__PURE__ */ (0, C.jsx)(_A, {
++ O.filters.length ? null : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: wP("list-filter"),
- icon: vP("list-filter"),
++ icon: DP("list-filter"),
title: "还没有保存的筛选",
children: "在馆藏页保存当前条件,随时打开。"
}),
@@@ -43443,7 -42842,7 +43443,7 @@@
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "筛选名称",
value: a,
onChange: o,
@@@ -43463,16 -42862,16 +43463,16 @@@
]
}) : null
] }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: wP("search"),
- leadingIcon: vP("search"),
++ leadingIcon: DP("search"),
value: l,
onChange: u
}),
- k.length ? null : /* @__PURE__ */ (0, C.jsx)(vA, {
- k.length ? null : /* @__PURE__ */ (0, C.jsx)(_A, {
++ k.length ? null : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: jP,
- icon: TP,
++ icon: PP,
title: l ? "没有匹配的收藏" : O.favorites.length ? "还没有此类收藏" : "还没有收藏",
children: l ? "试试其他名称。" : "在资料页或标签页收藏常用内容。"
}),
@@@ -43482,18 -42881,18 +43482,18 @@@
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, C.jsxs)("a", {
- href: Zbe(e),
- href: Abe(e),
++ href: Jbe(e),
"aria-label": e.name,
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, C.jsx)(txe, { item: e }, e.image_url), /* @__PURE__ */ (0, C.jsxs)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(Pbe, { item: e }, e.image_url), /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(Qbe, { item: e }, e.image_url), /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "truncate",
children: e.name
}), /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: NP[e.kind]
- children: DP[e.kind]
++ children: IP[e.kind]
})]
})]
}), /* @__PURE__ */ (0, C.jsx)(K, {
@@@ -43518,8 -42917,8 +43518,8 @@@
]
});
}
- function txe({ item: e }) {
- let t = PP[e.kind] || jP;
-function Pbe({ item: e }) {
- let t = OP[e.kind] || TP;
++function Qbe({ item: e }) {
++ let t = LP[e.kind] || PP;
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@@ -43538,12 -42937,12 +43538,12 @@@
}
//#endregion
//#region src/react/components/board-navigation-link.tsx
- function nxe(e) {
-function Fbe(e) {
++function $be(e) {
return /* @__PURE__ */ (0, C.jsx)("a", { ...e });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
- function rxe(e) {
-function Ibe(e) {
++function exe(e) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@@ -43557,7 -42956,7 +43557,7 @@@
})
});
}
- function ixe(e) {
-function Lbe(e) {
++function txe(e) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@@ -43571,7 -42970,7 +43571,7 @@@
})
});
}
- function RP(e) {
-function MP(e) {
++function VP(e) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@@ -43585,54 -42984,54 +43585,54 @@@
}
//#endregion
//#region src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
- function axe({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
-function Rbe({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
++function nxe({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = S.Children.toArray(e).filter(S.isValidElement);
return /* @__PURE__ */ (0, C.jsx)("nav", {
ref: r,
"aria-label": t,
- className: dA("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
- className: uA("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
++ className: pA("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, C.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, C.jsx)(ixe, {
- children: i.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, C.jsx)(Lbe, {
++ children: i.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, C.jsx)(txe, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
- function zP({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
-function NP({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
++function HP({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [t && /* @__PURE__ */ (0, C.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
}), e] });
if (i) return /* @__PURE__ */ (0, C.jsx)("li", {
"aria-current": "page",
- className: dA("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
- className: uA("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
++ className: pA("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = dA("-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);
- let s = uA("-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);
++ let s = pA("-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, C.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, C.jsx)(nxe, {
- children: n ? /* @__PURE__ */ (0, C.jsx)(Fbe, {
++ children: n ? /* @__PURE__ */ (0, C.jsx)($be, {
href: n,
className: s,
children: o
}) : /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
onClick: r,
- className: dA("cursor-pointer", s),
- className: uA("cursor-pointer", s),
++ className: pA("cursor-pointer", s),
children: o
})
});
}
//#endregion
//#region src/react/boardui/components/foundations/direction/direction.tsx
- function BP() {
-function PP() {
- return Jy().direction;
++function UP() {
+ return Gy().direction;
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
- var VP = [
-var FP = [
++var WP = [
"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",
@@@ -43640,11 -43039,11 +43640,11 @@@
"data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",
"data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",
"data-[placement=left]:origin-right data-[placement=right]:origin-left"
- ].join(" "), oxe = "w-[266px]", sxe = "flex w-full flex-col gap-1 outline-none", HP = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), UP = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
-].join(" "), zbe = "w-[266px]", Bbe = "flex w-full flex-col gap-1 outline-none", IP = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), LP = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
++].join(" "), rxe = "w-[266px]", ixe = "flex w-full flex-col gap-1 outline-none", GP = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), KP = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/base/tree-view/tree-view.tsx
- function cxe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = BP(), l = (0, S.useContext)(Fj), u = l === Nj && !s.dragAndDropHooks ? GP : l;
-function Vbe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = PP(), l = (0, S.useContext)(Fj), u = l === Nj && !s.dragAndDropHooks ? zP : l;
++function axe({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
++ let c = UP(), l = (0, S.useContext)(Rj), u = l === Ij && !s.dragAndDropHooks ? JP : l;
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@@ -43661,23 -43060,23 +43661,23 @@@
}
}
},
-- children: /* @__PURE__ */ (0, C.jsx)(Fj.Provider, {
++ children: /* @__PURE__ */ (0, C.jsx)(Rj.Provider, {
value: u,
- children: /* @__PURE__ */ (0, C.jsx)(zbe, {
- children: /* @__PURE__ */ (0, C.jsx)(vbe, {
++ children: /* @__PURE__ */ (0, C.jsx)(Ibe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => dA("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 === GP ? "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) => uA("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 === zP ? "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) => pA("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 === JP ? "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 WP({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = BP();
- return /* @__PURE__ */ (0, C.jsxs)(Hbe, {
-function RP({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = PP();
- return /* @__PURE__ */ (0, C.jsxs)(xbe, {
++function qP({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
++ let d = UP();
++ return /* @__PURE__ */ (0, C.jsxs)(zbe, {
...u,
ref: l,
textValue: t,
@@@ -43685,11 -43084,11 +43685,11 @@@
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => dA("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, C.jsx)(Vbe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? bge : Lk : gge);
- className: (e) => uA("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, C.jsx)(bbe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? cge : Ik : ige);
++ className: (e) => pA("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, C.jsx)(Rbe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
++ let f = n === null ? null : o && r ? r : n ?? (t ? o ? vge : zk : mge);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(uxe, {
- /* @__PURE__ */ (0, C.jsx)(Ube, {
++ /* @__PURE__ */ (0, C.jsx)(sxe, {
state: l,
id: u,
level: c,
@@@ -43699,20 -43098,20 +43699,20 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, C.jsx)(Bj, {
- children: [t ? /* @__PURE__ */ (0, C.jsx)(zj, {
++ children: [t ? /* @__PURE__ */ (0, C.jsx)(Uj, {
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, C.jsx)(Ak, {
++ children: /* @__PURE__ */ (0, C.jsx)(Mk, {
"aria-hidden": !0,
- className: dA("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
- className: uA("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
++ className: pA("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: dA("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
- className: uA("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
++ className: pA("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, C.jsx)(f, {
"aria-hidden": !0,
- className: dA("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
- className: uA("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
++ className: pA("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -43727,24 -43126,24 +43727,24 @@@
} }), o]
});
}
- var GP = {
-var zP = {
-- ...Nj,
- CollectionRoot: lxe
- CollectionRoot: Hbe
++var JP = {
++ ...Ij,
++ CollectionRoot: oxe
};
- function lxe({ collection: e, ...t }) {
- let n = (0, S.useContext)(fP);
-function Hbe({ collection: e, ...t }) {
- let n = (0, S.useContext)(oP);
++function oxe({ collection: e, ...t }) {
++ let n = (0, S.useContext)(hP);
return n ? /* @__PURE__ */ (0, C.jsx)(__, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, C.jsx)(dxe, {
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, C.jsx)(Wbe, {
++ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, C.jsx)(cxe, {
state: n,
children: e.render?.(e)
}, e.key))
-- }) : /* @__PURE__ */ (0, C.jsx)(Nj.CollectionRoot, {
++ }) : /* @__PURE__ */ (0, C.jsx)(Ij.CollectionRoot, {
collection: e,
...t
});
}
- function uxe({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
-function Ube({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
++function sxe({ 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;
@@@ -43777,7 -43176,7 +43777,7 @@@
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: dA("absolute start-0", a === "rtl" && "-scale-x-100"),
- className: uA("absolute start-0", a === "rtl" && "-scale-x-100"),
++ className: pA("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, C.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@@ -43803,9 -43202,9 +43803,9 @@@
]
});
}
- function dxe({ state: e, children: t }) {
-function Wbe({ state: e, children: t }) {
- let n = m_(), r = B_(), [i, a] = (0, S.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, C.jsx)(H_.div, {
++function cxe({ state: e, children: t }) {
+ let n = m_(), r = H_(), [i, a] = (0, S.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, C.jsx)(W_.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@@ -43844,7 -43243,7 +43844,7 @@@
1
]
},
- children: /* @__PURE__ */ (0, C.jsx)(fP.Provider, {
- children: /* @__PURE__ */ (0, C.jsx)(oP.Provider, {
++ children: /* @__PURE__ */ (0, C.jsx)(hP.Provider, {
value: n ? e : i,
children: t
})
@@@ -43852,7 -43251,7 +43852,7 @@@
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
- var KP = {
-var BP = {
++var YP = {
md: {
box: "size-4",
glyph: "size-4",
@@@ -43866,11 -43265,11 +43866,11 @@@
gap: "gap-1.5"
}
};
- function qP({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = KP[t], c = n || r, l = o && !a;
-function VP({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = BP[t], c = n || r, l = o && !a;
++function XP({ state: e, size: t = "md" }) {
++ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = YP[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: dA("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? dA("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : dA("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"),
- className: uA("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? uA("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : uA("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"),
++ className: pA("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? pA("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : pA("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"),
children: /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@@ -43894,24 -43293,24 +43894,24 @@@
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
- function JP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = KP[n];
- return /* @__PURE__ */ (0, C.jsx)(Yve, {
-function HP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = BP[n];
- return /* @__PURE__ */ (0, C.jsx)(Lve, {
++function ZP({ className: e, children: t, size: n = "md", ref: r, ...i }) {
++ let a = YP[n];
++ return /* @__PURE__ */ (0, C.jsx)(Kve, {
ref: r,
...i,
- className: (t) => dA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(qP, {
- className: (t) => uA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(VP, {
++ className: (t) => pA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(XP, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, C.jsx)("span", {
- className: dA(a.label, "text-text-primary"),
- className: uA(a.label, "text-text-primary"),
++ className: pA(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
- function YP() {
-function UP() {
++function QP() {
let e = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
Na(e.current);
@@@ -43919,1613 -43318,447 +43919,1613 @@@
}
//#endregion
//#region src/react/providers.tsx
- var XP = null;
- function fxe() {
- return XP?.isConnected || (XP = document.createElement("div"), XP.className = "peach-react", XP.dataset.reactOverlays = "", document.body.append(XP)), XP;
-var WP = null;
-function Gbe() {
- return WP?.isConnected || (WP = document.createElement("div"), WP.className = "peach-react", WP.dataset.reactOverlays = "", document.body.append(WP)), WP;
++var $P = null;
++function lxe() {
++ return $P?.isConnected || ($P = document.createElement("div"), $P.className = "peach-react", $P.dataset.reactOverlays = "", document.body.append($P)), $P;
}
- function ZP({ children: e }) {
-function Kbe({ children: e }) {
++function eF({ children: e }) {
return /* @__PURE__ */ (0, C.jsx)(E, {
- client: W,
- children: /* @__PURE__ */ (0, C.jsx)(Tne, {
+ client: U,
+ children: /* @__PURE__ */ (0, C.jsx)(Ene, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, C.jsx)(kS, {
- getContainer: Gbe,
+ children: /* @__PURE__ */ (0, C.jsx)(PS, {
- getContainer: fxe,
++ getContainer: lxe,
children: e
})
})
});
}
//#endregion
-//#region src/react/router/pages/settings.tsx
-function qbe() {
- let e = (0, S.useContext)(YP), { pathname: t } = IO();
- return (0, S.useEffect)(() => {
- e?.openSettings?.(The(t));
- }, [e, t]), (0, S.useEffect)(() => () => {
- queueMicrotask(() => {
- WO(Sk.navigation.location.pathname) || e?.closeSettings?.();
- });
- }, [e]), null;
-}
-//#endregion
-//#region src/react/router/pages/overlay.tsx
-var GP = () => al, Jbe = () => ol;
-function Ybe() {
- let e = (0, S.useContext)(YP), t = (0, S.useSyncExternalStore)(gl, Jbe), n = (0, S.useSyncExternalStore)(gl, GP);
- return (0, S.useEffect)(() => {
- if (!t || !n) return;
- let r = !0;
- return queueMicrotask(() => {
- r && e?.openQueueRequest?.();
- }), () => {
- r = !1;
- };
- }, [
- t,
- n,
- e
- ]), null;
-}
-function KP(e, t = !1) {
- let n = (0, S.useSyncExternalStore)(gl, GP), r = (0, S.useRef)(void 0);
- if (r.current === void 0) {
- let { claimed: e } = Sk.navigation;
- r.current = al === 0 || wk() ? "boot" : e && !t ? null : "history";
- }
- let i = (0, S.useRef)(e);
- (0, S.useEffect)(() => {
- i.current = e;
- });
- let a = (0, S.useRef)(!0);
- (0, S.useEffect)(() => (a.current = !0, () => {
- a.current = !1;
- }), []), (0, S.useEffect)(() => {
- let e = r.current;
- e && n !== 0 && (r.current = null, queueMicrotask(() => {
- a.current && i.current(e === "boot");
- }));
- }, [n]);
-}
-function Xbe() {
- let e = (0, S.useContext)(YP), t = (0, S.useRef)(e);
- return (0, S.useLayoutEffect)(() => {
- t.current = e;
- }, [e]), KP((t) => {
- let n = Sk.navigation.location, { pathname: r, search: i } = WO(n.pathname) && KO(n.state) || n, a = Ohe(r, i);
- e && a && ($O(), t || khe(Sk.navigation.location.state), e.openOverlay(a));
- }, !0), (0, S.useEffect)(() => () => {
- queueMicrotask(() => {
- JO(Sk.navigation.location.pathname) || t.current?.closeStage();
- });
- }, []), null;
-}
-function Zbe({ path: e }) {
- JP();
- let { location: t, seq: n, action: r } = Sk.navigation, i = WO(t.pathname) ? KO(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, S.useRef)({
- identity: a,
- seq: i?.seq ?? n,
- navigationSeq: n,
- settings: !!i
- });
- return i ? (o.current.settings = !0, o.current.navigationSeq = n) : o.current.settings && r === "POP" && o.current.identity === a ? (o.current.settings = !1, o.current.navigationSeq = n) : o.current.navigationSeq !== n && (o.current = {
- identity: a,
- seq: n,
- navigationSeq: n,
- settings: !1
- }), /* @__PURE__ */ (0, C.jsx)(Xbe, {}, `${e} ${o.current.seq}`);
-}
-function Qbe() {
- let e = (0, S.useContext)(YP);
- return KP(() => {
- e?.follow?.ground();
- }), null;
-}
-function $be() {
- return /* @__PURE__ */ (0, C.jsx)(Qbe, {}, JP());
-}
-//#endregion
-//#region src/react/router/router.tsx
-var qP = (0, S.createContext)(0), JP = () => (0, S.useContext)(qP), YP = (0, S.createContext)(null);
-function exe({ children: e }) {
- let [t, n] = (0, S.useState)(() => Sk.navigation);
- return (0, S.useLayoutEffect)(() => (n(Sk.navigation), Sk.listen((e) => {
- (0, gt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, C.jsx)(qP.Provider, {
- value: t.openEpoch,
- children: /* @__PURE__ */ (0, C.jsx)(Che, {
- location: t.location,
- navigationType: t.action,
- navigator: Sk,
- children: e
- })
- });
-}
-function txe({ target: e }) {
- let t = ihe();
- return (0, S.useLayoutEffect)(() => {
- e.current = t;
- }), null;
-}
-function nxe(e, t, n) {
- let r = new URL(e, window.location.href);
- m5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
-}
-function rxe() {
- let e = (0, S.useContext)(YP), [t, n] = (0, S.useState)(uk), r = (0, S.useRef)(null);
- (0, S.useLayoutEffect)(() => (n(uk()), Fhe((e, t) => {
- t ? (0, gt.flushSync)(() => n(e)) : n(e);
- })), []);
- let i = (0, S.useMemo)(() => (t) => {
- e && r.current && nxe(t, e, r.current);
- }, [e]);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(txe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, C.jsx)(ixe, {
- entry: t,
- children: /* @__PURE__ */ (0, C.jsx)(axe, {
- entry: t,
- actions: e,
- go: i
- })
- }, t.revision)) : null] });
+//#region node_modules/sonner/dist/index.mjs
- function pxe(e) {
++function uxe(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 mxe = (e) => {
-var ixe = class extends S.Component {
- state = { failed: !1 };
- static getDerivedStateFromError() {
- return { failed: !0 };
- }
- componentDidCatch() {
- Rhe(this.props.entry.container, this.props.entry.revision);
++var dxe = (e) => {
+ switch (e) {
- case "success": return _xe;
- case "info": return yxe;
- case "warning": return vxe;
- case "error": return bxe;
++ case "success": return mxe;
++ case "info": return gxe;
++ case "warning": return hxe;
++ case "error": return _xe;
+ default: return null;
}
- }, hxe = Array(12).fill(0), gxe = ({ visible: e, className: t }) => /*#__PURE__*/ S.createElement("div", {
- render() {
- return this.state.failed ? null : this.props.children;
++}, fxe = Array(12).fill(0), pxe = ({ visible: e, className: t }) => /*#__PURE__*/ S.createElement("div", {
+ className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
+ "data-visible": e
- }, /*#__PURE__*/ S.createElement("div", { className: "sonner-spinner" }, hxe.map((e, t) => /*#__PURE__*/ S.createElement("div", {
++}, /*#__PURE__*/ S.createElement("div", { className: "sonner-spinner" }, fxe.map((e, t) => /*#__PURE__*/ S.createElement("div", {
+ className: "sonner-loading-bar",
+ key: `spinner-bar-${t}`
- })))), _xe = /*#__PURE__*/ S.createElement("svg", {
++})))), mxe = /*#__PURE__*/ S.createElement("svg", {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ fill: "currentColor",
+ height: "20",
+ width: "20",
+ "aria-hidden": "true"
+}, /*#__PURE__*/ S.createElement("path", {
+ 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"
- })), vxe = /*#__PURE__*/ S.createElement("svg", {
++})), hxe = /*#__PURE__*/ S.createElement("svg", {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24",
+ fill: "currentColor",
+ height: "20",
+ width: "20",
+ "aria-hidden": "true"
+}, /*#__PURE__*/ S.createElement("path", {
+ 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"
- })), yxe = /*#__PURE__*/ S.createElement("svg", {
++})), gxe = /*#__PURE__*/ S.createElement("svg", {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ fill: "currentColor",
+ height: "20",
+ width: "20",
+ "aria-hidden": "true"
+}, /*#__PURE__*/ S.createElement("path", {
+ 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"
- })), bxe = /*#__PURE__*/ S.createElement("svg", {
++})), _xe = /*#__PURE__*/ S.createElement("svg", {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 20 20",
+ fill: "currentColor",
+ height: "20",
+ width: "20",
+ "aria-hidden": "true"
+}, /*#__PURE__*/ S.createElement("path", {
+ 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"
- })), xxe = /*#__PURE__*/ S.createElement("svg", {
++})), vxe = /*#__PURE__*/ S.createElement("svg", {
+ xmlns: "http://www.w3.org/2000/svg",
+ width: "12",
+ height: "12",
+ viewBox: "0 0 24 24",
+ fill: "none",
+ stroke: "currentColor",
+ strokeWidth: "1.5",
+ strokeLinecap: "round",
+ strokeLinejoin: "round",
+ "aria-hidden": "true"
+}, /*#__PURE__*/ S.createElement("line", {
+ x1: "18",
+ y1: "6",
+ x2: "6",
+ y2: "18"
+}), /*#__PURE__*/ S.createElement("line", {
+ x1: "6",
+ y1: "6",
+ x2: "18",
+ y2: "18"
- })), Sxe = () => {
++})), yxe = () => {
+ let [e, t] = S.useState(document.hidden);
+ return S.useEffect(() => {
+ let e = () => {
+ t(document.hidden);
+ };
+ return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
+ }, []), e;
- }, Cxe = 1, wxe = 100, QP = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Cxe++, $P = new class {
++}, bxe = 1, xxe = 100, tF = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : bxe++, nF = new class {
+ constructor() {
+ this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
+ let t = this.subscribers.indexOf(e);
+ this.subscribers.splice(t, 1);
+ }), this.publish = (e) => {
+ this.subscribers.forEach((t) => t(e));
+ }, this.addToast = (e) => {
+ this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
+ }, this.trimHistory = () => {
- let e = this.toasts.length - wxe;
++ let e = this.toasts.length - xxe;
+ 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 = QP(e), i = this.pendingDismissals.get(r);
++ let { message: t, ...n } = e, r = tF(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({
+ ...n,
+ ...e,
+ id: r,
+ title: t
+ }), {
+ ...n,
+ ...e,
+ id: r,
+ dismissible: o,
+ title: t
+ }) : n) : this.addToast({
+ title: t,
+ ...n,
+ dismissible: o,
+ id: r
+ }), r;
+ }, this.dismiss = (e) => {
+ if (e == null) return this.getActiveToasts().forEach((e) => {
+ this.dismissedToasts.add(e.id), this.subscribers.forEach((t) => t({
+ id: e.id,
+ dismiss: !0
+ }));
+ }), e;
+ this.dismissedToasts.add(e);
+ let t = this.pendingDismissals.get(e);
+ return t !== void 0 && cancelAnimationFrame(t), this.pendingDismissals.set(e, requestAnimationFrame(() => {
+ this.pendingDismissals.delete(e), this.subscribers.forEach((t) => t({
+ id: e,
+ dismiss: !0
+ }));
+ })), e;
+ }, this.message = (e, t) => this.create({
+ ...t,
+ message: e,
+ type: void 0
+ }), this.error = (e, t) => this.create({
+ ...t,
+ message: e,
+ type: "error"
+ }), this.success = (e, t) => this.create({
+ ...t,
+ type: "success",
+ message: e
+ }), this.info = (e, t) => this.create({
+ ...t,
+ type: "info",
+ message: e
+ }), this.warning = (e, t) => this.create({
+ ...t,
+ type: "warning",
+ message: e
+ }), this.loading = (e, t) => this.create({
+ ...t,
+ type: "loading",
+ message: e
+ }), this.promise = (e, t) => {
+ if (!t) return;
+ let n;
+ t.loading !== void 0 && (n = this.create({
+ ...t,
+ promise: e,
+ type: "loading",
+ message: t.loading,
+ description: typeof t.description == "function" ? void 0 : t.description
+ }));
+ let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
+ if (a = ["resolve", e], S.isValidElement(e)) i = !1, this.create({
+ id: n,
+ type: "default",
+ message: e
+ });
- else if (Exe(e) && !e.ok) {
++ else if (Cxe(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" && !S.isValidElement(r) ? r : { message: r };
+ this.create({
+ id: n,
+ type: "error",
+ description: a,
+ ...o
+ });
+ } else if (e instanceof Error) {
+ i = !1;
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
+ this.create({
+ id: n,
+ type: "error",
+ description: a,
+ ...o
+ });
+ } else if (t.success !== void 0) {
+ i = !1;
+ let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
+ this.create({
+ id: n,
+ type: "success",
+ description: a,
+ ...o
+ });
+ }
+ }).catch(async (e) => {
+ if (a = ["reject", e], t.error !== void 0) {
+ i = !1;
+ let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
+ this.create({
+ id: n,
+ type: "error",
+ description: a,
+ ...o
+ });
+ }
+ }).finally(() => {
+ i && (this.dismiss(n), n = void 0), t.finally == null || t.finally.call(t);
+ }), 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 = QP(t);
++ let n = tF(t);
+ return this.create({
+ ...t,
+ jsx: e(n),
+ id: n,
+ type: void 0
+ }), 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();
}
- }(), Txe = (e, t) => $P.message(e, t), Exe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", eF = Object.assign(Txe, {
- success: $P.success,
- info: $P.info,
- warning: $P.warning,
- error: $P.error,
- custom: $P.custom,
- message: $P.message,
- promise: $P.promise,
- dismiss: $P.dismiss,
- loading: $P.loading
-}, axe = (0, S.memo)(function({ entry: e, actions: t, go: n }) {
- return bdt(e.path) ? (0, gt.createPortal)(Cdt(e.path, e.props, t, n), e.host, String(e.revision)) : null;
++}(), Sxe = (e, t) => nF.message(e, t), Cxe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", rF = Object.assign(Sxe, {
++ success: nF.success,
++ info: nF.info,
++ warning: nF.warning,
++ error: nF.error,
++ custom: nF.custom,
++ message: nF.message,
++ promise: nF.promise,
++ dismiss: nF.dismiss,
++ loading: nF.loading
+}, {
- getHistory: () => $P.toasts,
- getToasts: () => $P.getActiveToasts()
++ getHistory: () => nF.toasts,
++ getToasts: () => nF.getActiveToasts()
});
- pxe("[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 tF(e) {
-function oxe({ children: e }) {
- let t = IO();
- JP();
- let n = Tk(), r = WO(t.pathname) && !wk() ? KO(t.state) : null;
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsxs)(zO, {
- location: n ?? t,
- children: [
- Object.entries(p5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- Object.entries(udt).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- Object.entries(h5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- Object.entries(_5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- Object.entries(y5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- ydt.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: b5["/"].element
- }, e)),
- Object.entries(ddt).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: t.element
- }, e)),
- qO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, C.jsx)($be, {}) : b5["/"].element
- }, e)),
- UO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: null
- }, e)),
- /* @__PURE__ */ (0, C.jsx)(RO, {
- path: "*",
- element: e
- })
- ]
- }),
- /* @__PURE__ */ (0, C.jsxs)(zO, {
- location: r ?? t,
- children: [qO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: /* @__PURE__ */ (0, C.jsx)(Zbe, { path: e })
- }, e)), /* @__PURE__ */ (0, C.jsx)(RO, {
- path: "*",
- element: null
- })]
- }),
- /* @__PURE__ */ (0, C.jsxs)(zO, { children: [UO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
- path: e,
- element: /* @__PURE__ */ (0, C.jsx)(qbe, {})
- }, e)), /* @__PURE__ */ (0, C.jsx)(RO, {
- path: "*",
- element: null
- })] })
- ] });
++uxe("[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 iF(e) {
+ return e.label !== void 0;
}
- var Dxe = 3, Oxe = "24px", kxe = "16px", nF = 4e3, Axe = 356, jxe = 14, Mxe = 45, Nxe = 200;
- function rF(...e) {
-function sxe({ children: e, actions: t = null, background: n }) {
- return /* @__PURE__ */ (0, C.jsxs)(Kbe, { children: [n, /* @__PURE__ */ (0, C.jsx)(YP.Provider, {
- value: t,
- children: /* @__PURE__ */ (0, C.jsxs)(exe, { children: [
- /* @__PURE__ */ (0, C.jsx)(rxe, {}),
- /* @__PURE__ */ (0, C.jsx)(Ybe, {}),
- /* @__PURE__ */ (0, C.jsx)(oxe, { children: e })
- ] })
- })] });
++var wxe = 3, Txe = "24px", Exe = "16px", aF = 4e3, Dxe = 356, Oxe = 14, kxe = 45, Axe = 200;
++function oF(...e) {
+ return e.filter(Boolean).join(" ");
}
- function Pxe(e) {
-var cxe = { onCaughtError: (e) => {
- globalThis.reportError?.(e);
-} };
-//#endregion
-//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function lxe(e, t, n) {
- (0, S.useEffect)(() => {
- if (!e) return;
- let r = (e) => {
- let r = e.target;
- n.some((e) => e.current?.contains(r)) || t();
- };
- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
++function jxe(e) {
+ let [t, n] = e.split("-"), r = [];
+ return t && r.push(t), n && r.push(n), r;
+}
- var Fxe = (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: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = S.useState(null), [k, A] = S.useState(null), [j, M] = S.useState(!1), [N, P] = S.useState(!1), [F, I] = S.useState(!1), [ee, L] = S.useState(!1), [te, ne] = S.useState(!1), [re, ie] = S.useState(0), [ae, oe] = S.useState(0), se = S.useRef(n.duration || y || nF), ce = S.useRef(null), le = S.useRef(null), ue = c === 0, de = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = S.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = S.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = S.useMemo(() => n.duration || y || nF, [n.duration, y]), be = S.useRef(0), xe = S.useRef(0), Se = S.useRef(0), Ce = S.useRef(null), [we, Te] = b.split("-"), Ee = S.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = Sxe(), Oe = S.useMemo(() => e.swipeDirections ?? Pxe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
++var Mxe = (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: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = S.useState(null), [k, A] = S.useState(null), [j, M] = S.useState(!1), [N, P] = S.useState(!1), [F, I] = S.useState(!1), [ee, L] = S.useState(!1), [te, ne] = S.useState(!1), [re, ie] = S.useState(0), [ae, oe] = S.useState(0), se = S.useRef(n.duration || y || aF), ce = S.useRef(null), le = S.useRef(null), ue = c === 0, de = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = S.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = S.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = S.useMemo(() => n.duration || y || aF, [n.duration, y]), be = S.useRef(0), xe = S.useRef(0), Se = S.useRef(0), Ce = S.useRef(null), [we, Te] = b.split("-"), Ee = S.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = yxe(), Oe = S.useMemo(() => e.swipeDirections ?? jxe(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
+ xe.current = S.useMemo(() => _e * x + Ee, [_e, Ee]), S.useEffect(() => {
+ se.current = ye;
+ }, [ye]), S.useEffect(() => {
+ M(!0);
+ }, []), S.useEffect(() => {
+ let e = le.current;
+ if (e) {
+ let t = e.getBoundingClientRect().height;
+ return oe(t), a((e) => [{
+ toastId: n.id,
+ height: t,
+ position: n.position
+ }, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
+ }
+ }, [a, n.id]), S.useLayoutEffect(() => {
+ if (!j) return;
+ let e = le.current, t = e.style.height;
+ e.style.height = "auto";
+ let r = e.getBoundingClientRect().height;
+ e.style.height = t, oe(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
+ ...e,
+ height: r
+ } : e) : [{
+ toastId: n.id,
+ height: r,
+ position: n.position
+ }, ...e]);
}, [
- e,
- t,
- n
+ j,
+ n.title,
+ n.description,
+ a,
+ n.id,
+ n.jsx,
+ n.action,
+ n.cancel
]);
-}
-function uxe(e, t) {
- let n = (0, S.useRef)(!1);
- return (0, S.useEffect)(() => {
- if (!e) return;
- let r = (e) => {
- t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
- n.current = !1;
- }, 400));
- };
- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
- }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
-}
-//#endregion
-//#region src/react/boardui/components/base/select/select.tsx
-var XP = (0, S.createContext)("md");
-function ZP({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, S.useRef)(null), u = (0, S.useRef)(null), [d, f] = (0, S.useState)(!1);
- lxe(d, () => f(!1), [l, u]);
- let p = uxe(d, l);
- return /* @__PURE__ */ (0, C.jsx)(Dye, {
- ref: s,
- ...c,
- isOpen: d,
- onOpenChange: (e) => p(e) && f(e),
- className: uA("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(zj, {
- ref: l,
- className: uA("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, C.jsx)(Aye, {
- className: uA("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
- children: o
- }), /* @__PURE__ */ (0, C.jsx)(Ibe, { className: uA("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
- ref: u,
- isNonModal: !0,
- offset: 4,
- className: uA(zbe, FP, "p-2", n),
- children: /* @__PURE__ */ (0, C.jsx)(Yve, {
- items: a,
- className: uA(Bbe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, C.jsx)(XP.Provider, {
- value: r,
- children: i
- })
- })
- })] })
- });
-}
-function QP({ className: e, children: t, ...n }) {
- let r = (0, S.useContext)(XP);
- return /* @__PURE__ */ (0, C.jsx)(Qve, {
- ...n,
- className: (t) => uA(IP, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
- children: t
- });
-}
-//#endregion
-//#region src/react/catalog-folders/catalog-folders.ts
-var $P = {
- category: "个人分类",
- creator: "创作者/账号",
- performer: "人物",
- seller: "卖家",
- studio: "厂牌"
-};
-function eF(e, t = "", n = "") {
- let r = new URLSearchParams({
- ...e,
- folder: t,
- ...n ? { q: n } : {}
- });
- return {
- queryKey: ["catalog-folders", r.toString()],
- staleTime: 3e4,
- queryFn: ({ signal: e }) => H(`/api/folders?${r}`, e)
- };
-}
-function tF(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}` : "");
-}
-//#endregion
-//#region src/react/catalog-folders/folder-rule-dialog.tsx
-function dxe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, S.useContext)(YP), a = SA(), [o, s] = (0, S.useState)(t?.purpose || "category"), [c, l] = (0, S.useState)(t?.name || ""), [u, d] = (0, S.useState)(t?.recursive ?? !0), [f, p] = (0, S.useState)(t?.future ?? !1), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(!1), v = {
- folder: e.id,
- purpose: o,
- name: c,
- recursive: u,
- future: f
- }, y = () => {
- h(null), a.setError("");
- }, b = (e) => {
- W.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), ml({ pageOpens: al + 1 });
- }, x = () => a.run("preview", (e) => U("/api/folders/preview", v, "POST", e), h), w = () => {
- m && a.run("save", (e) => U("/api/folders/rule", {
- ...v,
- action: "save",
- plan_version: m.plan_version,
- expected_revision: n
- }, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));
- }, T = async () => {
- (0, gt.flushSync)(() => _(!0)), (await Vs({
- title: "移除目录规则",
- body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,
- confirmLabel: "移除目录规则",
- onConfirm: () => U("/api/folders/rule", {
- folder: e.id,
- action: "remove",
- expected_revision: n
- })
- })).confirmed ? b("已移除目录规则") : _(!1);
- }, E = !!a.busy, D = (e, t) => a.busy === e ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", { dangerouslySetInnerHTML: { __html: No(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, C.jsx)(hP, {
- isOpen: !0,
- onOpenChange: (e) => {
- !e && !E && r();
+ let je = S.useCallback(() => {
+ P(!0), ie(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
+ d(n);
- }, Nxe);
++ }, Axe);
+ }, [
+ n,
+ d,
+ a,
+ xe
+ ]);
+ S.useEffect(() => {
+ if (n.promise && fe === "loading" || n.duration === Infinity || n.type === "loading") return;
+ let e;
+ return u || i || De ? (() => {
+ if (Se.current < be.current) {
+ let e = (/* @__PURE__ */ new Date()).getTime() - be.current;
+ se.current -= e;
+ }
+ Se.current = (/* @__PURE__ */ new Date()).getTime();
+ })() : se.current !== Infinity && (be.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
+ n.onAutoClose == null || n.onAutoClose.call(n, n), je();
+ }, se.current)), () => clearTimeout(e);
+ }, [
+ u,
+ i,
+ n,
+ fe,
+ De,
+ je
+ ]), S.useEffect(() => {
+ n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));
+ }, [je, n.delete]);
+ function Me() {
+ return T?.loading ? /*#__PURE__*/ S.createElement("div", {
- className: rF(w?.loader, n?.classNames?.loader, "sonner-loader"),
++ className: oF(w?.loader, n?.classNames?.loader, "sonner-loader"),
+ "data-visible": fe === "loading"
- }, T.loading) : /*#__PURE__*/ S.createElement(gxe, {
- className: rF(w?.loader, n?.classNames?.loader),
++ }, T.loading) : /*#__PURE__*/ S.createElement(pxe, {
++ className: oF(w?.loader, n?.classNames?.loader),
+ visible: fe === "loading"
+ });
+ }
- let Ne = n.icon || T?.[fe] || mxe(fe);
++ let Ne = n.icon || T?.[fe] || dxe(fe);
+ return /*#__PURE__*/ S.createElement("li", {
+ tabIndex: 0,
+ ref: le,
- className: rF(_, he, w?.toast, n?.classNames?.toast, w?.[pe], n?.classNames?.[pe]),
++ className: oF(_, he, w?.toast, n?.classNames?.toast, w?.[pe], n?.classNames?.[pe]),
+ "data-sonner-toast": "",
+ "data-rich-colors": n.richColors ?? f,
+ "data-styled": !(n.jsx || n.unstyled || r),
+ "data-mounted": j,
+ "data-promise": !!n.promise,
+ "data-swiped": te,
+ "data-removed": N,
+ "data-visible": de,
+ "data-y-position": we,
+ "data-x-position": Te,
+ "data-index": c,
+ "data-front": ue,
+ "data-swiping": F,
+ "data-dismissible": me,
+ "data-type": fe,
+ "data-invert": ke,
+ "data-swipe-out": ee,
+ "data-swipe-direction": k,
+ "data-expanded": !!(u || C && j),
+ "data-testid": n.testId,
+ style: {
+ "--index": c,
+ "--toasts-before": c,
+ "--z-index": l.length - c,
+ "--offset": `${N ? re : xe.current}px`,
+ "--initial-height": C ? "auto" : `${ae}px`,
+ ...m,
+ ...n.style
},
- width: "form",
- label: "设置目录用途",
- children: /* @__PURE__ */ (0, C.jsxs)("div", {
- className: "peach-react",
+ onDragEnd: () => {
+ I(!1), O(null), Ce.current = null;
+ },
+ onPointerDown: (e) => {
+ e.button !== 2 && !Ae && me && (ce.current = /* @__PURE__ */ new Date(), ie(xe.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (I(!0), Ce.current = {
+ x: e.clientX,
+ y: e.clientY
+ }));
+ },
+ onPointerUp: () => {
+ if (ee || !me) return;
+ Ce.current = null;
+ let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / r;
- if ((D === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Mxe || a > .11)) ie(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), L(!0);
++ if ((D === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= kxe || a > .11)) ie(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), L(!0);
+ else {
+ var o, s;
+ (o = le.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = le.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ne(!1), I(!1), O(null);
+ }
+ },
+ onPointerMove: (e) => {
+ var t, n;
+ if (!Ce.current || !me || window.getSelection()?.toString().length > 0) return;
+ let r = e.clientY - Ce.current.y, i = e.clientX - Ce.current.x;
+ !D && (Math.abs(i) > 1 || Math.abs(r) > 1) && O(Math.abs(i) > Math.abs(r) ? "x" : "y");
+ let a = {
+ x: 0,
+ y: 0
+ }, o = (e) => 1 / (1.5 + Math.abs(e) / 20);
+ if (D === "y") {
+ if (Oe.includes("top") || Oe.includes("bottom")) {
+ if (Oe.includes("top") && r < 0 || Oe.includes("bottom") && r > 0) a.y = r;
+ else {
+ let e = r * o(r);
+ a.y = Math.abs(e) < Math.abs(r) ? e : r;
+ }
+ }
+ } else if (D === "x" && (Oe.includes("left") || Oe.includes("right"))) {
+ if (Oe.includes("left") && i < 0 || Oe.includes("right") && i > 0) a.x = i;
+ else {
+ let e = i * o(i);
+ a.x = Math.abs(e) < Math.abs(i) ? e : i;
+ }
+ }
+ (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && ne(!0), (t = le.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = le.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
+ }
+ }, ve && !n.jsx && fe !== "loading" ? /*#__PURE__*/ S.createElement("button", {
+ "aria-label": E,
+ "data-disabled": Ae,
+ "data-close-button": !0,
+ onClick: Ae || !me ? () => {} : () => {
+ je(), n.onDismiss == null || n.onDismiss.call(n, n);
+ },
- className: rF(w?.closeButton, n?.classNames?.closeButton)
- }, T?.close ?? xxe) : null, (fe || n.icon || n.promise) && n.icon !== null && (T?.[fe] !== null || n.icon) ? /*#__PURE__*/ S.createElement("div", {
++ className: oF(w?.closeButton, n?.classNames?.closeButton)
++ }, T?.close ?? vxe) : null, (fe || n.icon || n.promise) && n.icon !== null && (T?.[fe] !== null || n.icon) ? /*#__PURE__*/ S.createElement("div", {
+ "data-icon": "",
- className: rF(w?.icon, n?.classNames?.icon)
++ className: oF(w?.icon, n?.classNames?.icon)
+ }, fe === "loading" ? n.icon || Me() : n.promise ? Me() : null, fe === "loading" ? null : Ne) : null, /*#__PURE__*/ S.createElement("div", {
+ "data-content": "",
- className: rF(w?.content, n?.classNames?.content)
++ className: oF(w?.content, n?.classNames?.content)
+ }, /*#__PURE__*/ S.createElement("div", {
+ "data-title": "",
- className: rF(w?.title, n?.classNames?.title)
++ className: oF(w?.title, n?.classNames?.title)
+ }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ S.createElement("div", {
+ "data-description": "",
- className: rF(v, ge, w?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ S.isValidElement(n.cancel) ? n.cancel : n.cancel && tF(n.cancel) ? /*#__PURE__*/ S.createElement("button", {
++ className: oF(v, ge, w?.description, n?.classNames?.description)
++ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ S.isValidElement(n.cancel) ? n.cancel : n.cancel && iF(n.cancel) ? /*#__PURE__*/ S.createElement("button", {
+ "data-button": !0,
+ "data-cancel": !0,
+ style: n.cancelButtonStyle || h,
+ onClick: (e) => {
- tF(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
++ iF(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
+ },
- className: rF(w?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ S.isValidElement(n.action) ? n.action : n.action && tF(n.action) ? /*#__PURE__*/ S.createElement("button", {
++ className: oF(w?.cancelButton, n?.classNames?.cancelButton)
++ }, n.cancel.label) : null, /*#__PURE__*/ S.isValidElement(n.action) ? n.action : n.action && iF(n.action) ? /*#__PURE__*/ S.createElement("button", {
+ "data-button": !0,
+ "data-action": !0,
+ style: n.actionButtonStyle || g,
+ onClick: (e) => {
- tF(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
++ iF(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
+ },
- className: rF(w?.actionButton, n?.classNames?.actionButton)
++ className: oF(w?.actionButton, n?.classNames?.actionButton)
+ }, n.action.label) : null);
+};
- function iF() {
++function sF() {
+ 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 Ixe(e, t) {
++function Nxe(e, t) {
+ let n = {};
+ return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? kxe : Oxe;
++ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Exe : Txe;
+ function o(e) {
+ [
+ "top",
+ "right",
+ "bottom",
+ "left"
+ ].forEach((t) => {
+ n[`${i}-${t}`] = typeof e == "number" ? `${e}px` : e;
+ });
+ }
+ typeof e == "number" || typeof e == "string" ? o(e) : typeof e == "object" ? [
+ "top",
+ "right",
+ "bottom",
+ "left"
+ ].forEach((t) => {
+ e[t] === void 0 ? n[`${i}-${t}`] = a : n[`${i}-${t}`] = typeof e[t] == "number" ? `${e[t]}px` : e[t];
+ }) : o(a);
+ }), n;
+}
- var aF = /*#__PURE__*/ S.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 = Dxe, toastOptions: g, dir: _ = iF(), gap: v = jxe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [C, w] = S.useState([]), T = S.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), E = S.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [D, O] = S.useState([]), [k, A] = S.useState(!1), [j, M] = S.useState(!1), [N, P] = S.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), F = S.useRef(null), I = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = S.useRef(null), L = S.useRef(!1), te = S.useCallback((e) => {
- w((t) => (t.find((t) => t.id === e.id)?.delete || $P.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
++var cF = /*#__PURE__*/ S.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 = wxe, toastOptions: g, dir: _ = sF(), gap: v = Oxe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [C, w] = S.useState([]), T = S.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), E = S.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [D, O] = S.useState([]), [k, A] = S.useState(!1), [j, M] = S.useState(!1), [N, P] = S.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), F = S.useRef(null), I = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = S.useRef(null), L = S.useRef(!1), te = S.useCallback((e) => {
++ w((t) => (t.find((t) => t.id === e.id)?.delete || nF.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+ }, []);
- return S.useEffect(() => $P.subscribe((e) => {
++ return S.useEffect(() => nF.subscribe((e) => {
+ e.dismiss ? requestAnimationFrame(() => {
+ w((t) => t.map((t) => t.id === e.id ? {
+ ...t,
+ delete: !0
+ } : t));
+ }) : setTimeout(() => {
+ ht.flushSync(() => {
+ w((t) => {
+ let n = t.findIndex((t) => t.id === e.id);
+ return n === -1 ? [e, ...t] : [
+ ...t.slice(0, n),
+ {
+ ...t[n],
+ ...e
+ },
+ ...t.slice(n + 1)
+ ];
+ });
+ });
+ });
+ }), []), S.useEffect(() => {
+ if (d !== "system") {
+ P(d);
+ return;
+ }
+ if (d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? P("dark") : P("light")), typeof window > "u") return;
+ let e = window.matchMedia("(prefers-color-scheme: dark)");
+ try {
+ e.addEventListener("change", ({ matches: e }) => {
+ P(e ? "dark" : "light");
+ });
+ } catch {
+ e.addListener(({ matches: e }) => {
+ try {
+ P(e ? "dark" : "light");
+ } catch (e) {
+ console.error(e);
+ }
+ });
+ }
+ }, [d]), S.useEffect(() => {
+ C.length <= 1 && A(!1);
+ }, [C]), S.useEffect(() => {
+ let e = (e) => {
+ if (a.length > 0 && a.every((t) => e[t] || e.code === t)) {
+ var t;
+ A(!0), (t = F.current) == null || t.focus();
+ }
+ e.code === "Escape" && (document.activeElement === F.current || F.current?.contains(document.activeElement)) && A(!1);
+ };
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
+ }, [a]), S.useEffect(() => {
+ if (F.current) return () => {
+ ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, L.current = !1);
+ };
+ }, [F.current]), /*#__PURE__*/ S.createElement("section", {
+ ref: t,
+ "aria-label": b ?? `${x} ${I}`,
+ tabIndex: -1,
+ "aria-live": "polite",
+ "aria-relevant": "additions text",
+ "aria-atomic": "false",
+ suppressHydrationWarning: !0,
+ "data-react-aria-top-layer": !0
+ }, E.map((t, n) => {
+ let [i, a] = t.split("-");
+ return T.length ? /*#__PURE__*/ S.createElement("ol", {
+ key: t,
- dir: _ === "auto" ? iF() : _,
++ dir: _ === "auto" ? sF() : _,
+ tabIndex: -1,
+ ref: F,
+ className: c,
+ "data-sonner-toaster": !0,
+ "data-sonner-theme": N,
+ "data-y-position": i,
+ "data-x-position": a,
+ style: {
+ "--front-toast-height": `${D[0]?.height || 0}px`,
- "--width": `${Axe}px`,
++ "--width": `${Dxe}px`,
+ "--gap": `${v}px`,
+ ...m,
- ...Ixe(l, u)
++ ...Nxe(l, u)
+ },
+ onBlur: (e) => {
+ L.current && !e.currentTarget.contains(e.relatedTarget) && (L.current = !1, ee.current &&= (ee.current.focus({ preventScroll: !0 }), null));
+ },
+ onFocus: (e) => {
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || L.current || (L.current = !0, ee.current = e.relatedTarget);
+ },
+ onMouseEnter: () => A(!0),
+ onMouseMove: () => A(!0),
+ onMouseLeave: () => {
+ j || A(!1);
+ },
+ onDragEnd: () => A(!1),
+ onPointerDown: (e) => {
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
+ },
+ onPointerUp: () => M(!1)
- }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ S.createElement(Fxe, {
++ }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ S.createElement(Mxe, {
+ key: n.id,
+ icons: y,
+ index: i,
+ toast: n,
+ defaultRichColors: f,
+ duration: g?.duration ?? p,
+ className: g?.className,
+ descriptionClassName: g?.descriptionClassName,
+ invert: r,
+ visibleToasts: h,
+ closeButton: g?.closeButton ?? s,
+ interacting: j,
+ position: t,
+ style: g?.style,
+ unstyled: g?.unstyled,
+ classNames: g?.classNames,
+ cancelButtonStyle: g?.cancelButtonStyle,
+ actionButtonStyle: g?.actionButtonStyle,
+ closeButtonAriaLabel: g?.closeButtonAriaLabel,
+ removeToast: te,
+ toasts: T.filter((e) => e.position == n.position),
+ heights: D.filter((e) => e.position == n.position),
+ setHeights: O,
+ expandByDefault: o,
+ gap: v,
+ expanded: k,
+ swipeDirections: e.swipeDirections
+ }))) : null;
+ }));
- }), oF = "/api/library-processing", sF = ["library-processing"], cF = (e) => !!e && [
++}), lF = "/api/library-processing", uF = ["library-processing"], dF = (e) => !!e && [
+ "running",
+ "pausing",
+ "paused"
+].includes(e.status);
- function lF(e) {
- if (!cF(e)) return "";
++function fF(e) {
++ if (!dF(e)) return "";
+ if (e.status === "paused") return "已暂停,继续后更新预估";
+ if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
+ let t = e.eta_seconds_min, n = e.eta_seconds_max;
+ if (t == null || n == null || !Number.isFinite(t) || !Number.isFinite(n) || t < 0 || n < t) return "正在估算剩余时间…";
+ if (n < 60) return "预计剩余不到 1 分钟";
+ 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 uF = (e) => yn(oF, e);
- async function dF(e) {
++var pF = (e) => yn(lF, e);
++async function mF(e) {
+ await U.fetchQuery({
- queryKey: sF,
- queryFn: () => uF(e)
++ queryKey: uF,
++ queryFn: () => pF(e)
+ });
+}
- var Lxe = 2e3, Rxe = 1e4, fF = "连接中断,正在重新读取处理进度";
- function pF(e, t) {
- return cF(e) ? Lxe : t ? Rxe : !1;
++var Pxe = 2e3, Fxe = 1e4, hF = "连接中断,正在重新读取处理进度";
++function gF(e, t) {
++ return dF(e) ? Pxe : t ? Fxe : !1;
+}
- var zxe = {
++var Ixe = {
+ scanning_files: "扫描文件",
+ reading_local: "读取本地资料",
+ querying_metadata: "查询外部资料",
+ fetching_cover: "采集缺失封面",
+ generating_preview: "生成视频预览",
+ writing_candidates: "保存资料候选"
- }, mF = {
++}, _F = {
+ querying_metadata: "没有资料",
+ fetching_cover: "没有封面"
+};
- function Bxe(e) {
- let t = Object.entries(e).filter(([e, t]) => mF[e] && t > 0).map(([e, t]) => `${mF[e]} ${t.toLocaleString()} 部`);
++function Lxe(e) {
++ let t = Object.entries(e).filter(([e, t]) => _F[e] && t > 0).map(([e, t]) => `${_F[e]} ${t.toLocaleString()} 部`);
+ return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
+}
- function Vxe(e) {
++function Rxe(e) {
+ if (e.status === "paused") return "已暂停";
+ if (e.status === "pausing") return "正在暂停";
- let t = zxe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${qA(e.waited_seconds)}` : "";
++ let t = Ixe[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${XA(e.waited_seconds)}` : "";
+ return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
+}
- function hF(e) {
- let t = e.total ? `${JA(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return Vxe(e) + (t ? ` · ${t}` : "");
++function vF(e) {
++ let t = e.total ? `${ZA(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
++ return Rxe(e) + (t ? ` · ${t}` : "");
+}
- function Hxe(e) {
++function zxe(e) {
+ let t = e.issue_preview || [];
+ return t.length ? {
+ label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
+ items: t.map((e, t) => ({
+ key: `${e.asset_id ?? "source"}-${t}`,
+ label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),
+ href: e.asset_id ? `/assets/${e.asset_id}` : "",
+ note: e.message,
+ hint: e.path || ""
+ })),
+ log: e.issues_log || ""
+ } : null;
+}
- var gF = "peach.library-processing.announced", Uxe = 120;
- function Wxe(e, t, n) {
++var yF = "peach.library-processing.announced", Bxe = 120;
++function Vxe(e, t, n) {
+ if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Uxe;
++ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Bxe;
+ if (n || r) {
+ try {
- if (e.job_id && localStorage.getItem(gF) === e.job_id) return;
- e.job_id && localStorage.setItem(gF, e.job_id);
++ if (e.job_id && localStorage.getItem(yF) === e.job_id) return;
++ e.job_id && localStorage.setItem(yF, 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} 部视频预览` : ""));
+ }
+}
+//#endregion
+//#region src/react/components/use-moving-surface.ts
- var Gxe = {
++var Hxe = {
+ selection: {
+ type: Hd,
+ duration: .16,
+ bounce: 0
+ },
+ hover: {
+ type: Hd,
+ duration: .08,
+ bounce: 0
+ }
+};
- function _F(e) {
++function bF(e) {
+ let [t, n] = (0, S.useState)(null);
+ return (0, S.useLayoutEffect)(() => {
+ if (!t) return;
+ let n = document.createElement("span");
+ n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;
+ let r = matchMedia("(prefers-reduced-motion: reduce)"), i = matchMedia("(hover: hover) and (pointer: fine)"), a = !1, o = null, s = null, c = "", l, u = e === "selection" ? "[role=\"tab\"],label[data-rac]" : "[role=\"option\"],button", d = () => [...t.querySelectorAll(u)].filter((e) => e.getBoundingClientRect().width > 0), f = () => {
+ l?.cancel(), n.hidden = !0, s = null, c = "", delete t.dataset.surfaceReady;
+ }, p = (u = !1) => {
+ let p = d(), m = p.find((e) => e.hasAttribute("data-selected") || e.getAttribute("aria-selected") === "true"), h = e === "selection" ? m : o;
+ if (!h || !t.contains(h) || !p.includes(h) || e === "hover" && (!i.matches || !a || p.length > 8 || h.matches(":disabled,[aria-disabled=\"true\"],[data-disabled]"))) {
+ f();
+ return;
+ }
+ let g = h.getBoundingClientRect(), _ = t.getBoundingClientRect(), v = _.width / t.offsetWidth || 1, y = _.height / t.offsetHeight || 1, b = (g.left - _.left) / v + t.scrollLeft - t.clientLeft, x = (g.top - _.top) / y + t.scrollTop - t.clientTop, S = g.width / v, C = g.height / y, w = `${b},${x},${S},${C}`;
+ if (a && i.matches && !r.matches && s === h && c === w) return;
+ let T = n.hidden ? null : n.getBoundingClientRect();
+ l?.cancel(), n.hidden = !1, n.style.width = `${S}px`, n.style.height = `${C}px`;
+ 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 = Tie(n, { transform: [r, E] }, Gxe[e]);
++ l = Tie(n, { transform: [r, E] }, Hxe[e]);
+ } else n.style.transform = E;
+ s = h, c = w, t.dataset.surfaceReady = "";
+ }, m = (t) => {
+ if (a = t.pointerType === "mouse" && i.matches, e === "hover") {
+ let e = t.target instanceof Element ? t.target.closest(u) : null;
+ if (e === o && a) return;
+ o = e, p(!0);
+ }
+ }, h = () => {
+ a = !1, e === "hover" ? f() : p();
+ }, g = () => {
+ o = null, e === "hover" && f();
+ }, _ = () => p(), v = new MutationObserver(() => p(!0)), y = new ResizeObserver(_), b = () => {
+ y.disconnect(), y.observe(t), d().forEach((e) => y.observe(e));
+ }, x = new MutationObserver(() => {
+ b(), p();
+ });
+ return v.observe(t, {
+ subtree: !0,
+ attributes: !0,
+ attributeFilter: [
+ "data-selected",
+ "aria-selected",
+ "data-disabled",
+ "aria-disabled"
+ ]
+ }), x.observe(t, {
+ childList: !0,
+ subtree: !0
+ }), b(), p(), t.addEventListener("pointerdown", m, !0), t.addEventListener("pointermove", m), t.addEventListener("pointerleave", g), t.addEventListener("keydown", h, !0), t.addEventListener("scroll", _, !0), r.addEventListener("change", _), i.addEventListener("change", _), () => {
+ l?.cancel(), v.disconnect(), x.disconnect(), y.disconnect(), t.removeEventListener("pointerdown", m, !0), t.removeEventListener("pointermove", m), t.removeEventListener("pointerleave", g), t.removeEventListener("keydown", h, !0), t.removeEventListener("scroll", _, !0), r.removeEventListener("change", _), i.removeEventListener("change", _), n.remove(), delete t.dataset.surfaceHost, delete t.dataset.surfaceReady;
+ };
+ }, [t, e]), n;
+}
+//#endregion
+//#region src/react/components/menu-dialog.tsx
- function vF(e) {
- let t = _F("hover");
- return /* @__PURE__ */ (0, C.jsx)(TN, {
++function xF(e) {
++ let t = bF("hover");
++ return /* @__PURE__ */ (0, C.jsx)(ON, {
+ ...e,
+ ref: t
+ });
+}
+//#endregion
+//#region src/react/library-processing/processing-effort.tsx
- var yF = [
++var SF = [
+ "low",
+ "standard",
+ "high"
- ], bF = [
++], CF = [
+ "低占用",
+ "标准",
+ "全速"
+];
- function Kxe({ animate: e }) {
++function Uxe({ animate: e }) {
+ let [t, n] = (0, S.useState)(document.hidden);
+ return (0, S.useEffect)(() => {
+ let e = () => n(document.hidden);
+ return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
+ }, []), /* @__PURE__ */ (0, C.jsxs)("div", {
+ "aria-hidden": "true",
+ "data-effort-flow": "",
+ "data-motion": e && !t ? "running" : "paused",
+ children: [/* @__PURE__ */ (0, C.jsxs)("svg", {
+ viewBox: "0 0 240 27",
+ preserveAspectRatio: "none",
+ children: [
+ /* @__PURE__ */ (0, C.jsx)("path", {
+ className: "processing-flow-outer",
+ d: "M35 13 Q85 8 130 10 Q180 11 240 2 L240 25 Q180 17 130 17 Q80 18 35 13Z"
+ }),
+ /* @__PURE__ */ (0, C.jsx)("path", {
+ className: "processing-flow-middle",
+ d: "M60 13 Q120 10 170 12 L240 6 L240 22 Q180 16 130 15 Q95 17 60 13Z"
+ }),
+ /* @__PURE__ */ (0, C.jsx)("path", {
+ className: "processing-flow-core",
+ d: "M100 13 Q160 12 240 10 L240 18 Q170 14 100 13Z"
+ })
+ ]
+ }), Array.from({ length: 12 }, (e, t) => /* @__PURE__ */ (0, C.jsx)("i", { style: {
+ "--particle-y": `${(t * 7 + 3) % 25}px`,
+ "--particle-delay": `${-t * .13}s`
+ } }, t))]
+ });
+}
- function qxe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), s = Math.max(0, yF.indexOf(e)), [c, l] = (0, S.useState)(s);
++function Wxe({ value: e, busy: t, onChange: n, animate: r = !0 }) {
++ let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), s = Math.max(0, SF.indexOf(e)), [c, l] = (0, S.useState)(s);
+ return (0, S.useEffect)(() => {
+ t || l(s);
+ }, [s, t]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(K, {
+ ref: i,
+ size: "small",
+ variant: "secondary",
- "aria-label": `处理速度:${bF[s]}`,
++ "aria-label": `处理速度:${CF[s]}`,
+ "aria-haspopup": "dialog",
+ "aria-expanded": a,
+ "aria-disabled": t,
- trailingIcon: Ok,
++ trailingIcon: Ak,
+ onClick: () => {
+ t || o(!a);
+ },
- children: ["速度 · ", bF[s]]
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
++ children: ["速度 · ", CF[s]]
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
+ triggerRef: i,
+ isOpen: a,
+ onOpenChange: o,
+ placement: "top start",
+ offset: 8,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsxs)(vF, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsxs)(xF, {
+ "aria-label": "处理速度",
+ className: "processing-effort-panel flex flex-col gap-3 p-2 outline-none",
children: [
+ /* @__PURE__ */ (0, C.jsxs)("p", {
+ className: "text-body-medium",
+ children: [/* @__PURE__ */ (0, C.jsx)("span", {
+ className: "text-text-tertiary",
+ children: "处理强度 "
- }), bF[c]]
++ }), CF[c]]
+ }),
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: "min-w-0",
- children: [/* @__PURE__ */ (0, C.jsx)(Vj, {
- slot: "title",
- className: "text-title-2-medium",
- children: "设置目录用途"
- }), /* @__PURE__ */ (0, C.jsx)("p", {
- className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
- children: e.path
- })]
- }), /* @__PURE__ */ (0, C.jsx)(yP, {
- label: "关闭目录用途",
- onPress: () => {
- E || r();
- }
+ className: "flex justify-between text-caption-1-regular text-text-tertiary",
+ children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "最慢" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "最快" })]
+ }),
- /* @__PURE__ */ (0, C.jsxs)(oye, {
++ /* @__PURE__ */ (0, C.jsxs)(rye, {
+ "aria-label": "处理速度",
+ minValue: 0,
+ maxValue: 2,
+ step: 1,
+ value: c,
+ isDisabled: t,
+ onChange: l,
+ onChangeEnd: (e) => {
- e !== s && n(yF[e]);
++ e !== s && n(SF[e]);
+ },
+ className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, C.jsx)(Rj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Vj, {
+ className: "processing-effort-label",
+ children: "处理速度"
+ }), /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "processing-effort-track",
+ "data-max": c === 2 || void 0,
+ children: [
+ /* @__PURE__ */ (0, C.jsx)("div", {
+ className: "processing-effort-fill",
+ style: { "--effort-fill": `${c * 50}%` }
+ }),
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "processing-effort-stops",
+ "aria-hidden": "true",
+ children: [
+ /* @__PURE__ */ (0, C.jsx)("i", {}),
+ /* @__PURE__ */ (0, C.jsx)("i", {}),
+ /* @__PURE__ */ (0, C.jsx)("i", {})
+ ]
+ }),
- c === 2 ? /* @__PURE__ */ (0, C.jsx)(Kxe, { animate: r }) : null,
- /* @__PURE__ */ (0, C.jsx)(sye, {
++ c === 2 ? /* @__PURE__ */ (0, C.jsx)(Uxe, { animate: r }) : null,
++ /* @__PURE__ */ (0, C.jsx)(iye, {
+ className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, C.jsx)(cye, {
- "aria-label": bF[c],
++ children: /* @__PURE__ */ (0, C.jsx)(aye, {
++ "aria-label": CF[c],
+ className: "processing-effort-thumb"
+ })
+ })
+ ]
})]
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: "flex flex-col gap-5 p-5",
+ className: "flex justify-between text-caption-1-regular text-text-tertiary",
+ children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "占用少" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "占用多" })]
+ }),
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex justify-between text-caption-1-regular text-text-secondary",
+ "aria-hidden": "true",
children: [
- /* @__PURE__ */ (0, C.jsxs)("div", {
- className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(lP, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, C.jsx)(ZP, {
- "aria-label": "这个文件夹用于",
- selectedKey: o,
- isDisabled: E,
- onSelectionChange: (e) => {
- s(e), y();
- },
- children: Object.entries($P).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
- id: e,
- children: t
- }, e))
- })]
- }),
- o === "category" ? null : /* @__PURE__ */ (0, C.jsx)(mP, {
- label: "关联名称",
- value: c,
- onChange: (e) => {
- l(e), y();
- },
- placeholder: "输入人物、账号或厂牌名称",
- maxLength: 200,
- isDisabled: E,
- isRequired: !0
- }),
- /* @__PURE__ */ (0, C.jsx)(HP, {
- isSelected: u,
- isDisabled: E,
- onChange: (e) => {
- d(e), y();
- },
+ /* @__PURE__ */ (0, C.jsx)("span", { children: "低占用" }),
+ /* @__PURE__ */ (0, C.jsx)("span", { children: "标准" }),
+ /* @__PURE__ */ (0, C.jsx)("span", { children: "全速" })
+ ]
+ })
+ ]
+ })
+ })] });
+}
+//#endregion
+//#region src/react/library-processing/processing-controls.tsx
- function xF({ state: e, disabled: t = !1 }) {
- let n = CA(), r = cF(e), i = (e) => {
- t || n.busy || n.run(e.action, (t) => H(oF, e, "POST", t), (e) => {
- U.setQueryData(sF, e), U.invalidateQueries({ queryKey: sF });
++function wF({ state: e, disabled: t = !1 }) {
++ let n = TA(), r = dF(e), i = (e) => {
++ t || n.busy || n.run(e.action, (t) => H(lF, e, "POST", t), (e) => {
++ U.setQueryData(uF, e), U.invalidateQueries({ queryKey: uF });
+ });
+ };
+ return /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-2",
+ "data-processing-controls": "",
+ children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(qxe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Wxe, {
+ value: e.speed_mode || "standard",
+ busy: t || !!n.busy,
+ animate: e.status !== "paused" && e.status !== "pausing",
+ onChange: (t) => i({
+ action: "set_speed",
+ speed_mode: t,
+ ...r ? { job_id: e.job_id } : {}
+ })
+ }), r ? /* @__PURE__ */ (0, C.jsx)(K, {
+ size: "small",
+ variant: "secondary",
+ disabled: t || !e.job_id || e.status === "pausing",
+ ...J(n.busy === "pause" || n.busy === "resume"),
+ onClick: () => {
+ e.job_id && i({
+ action: e.status === "paused" ? "resume" : "pause",
+ job_id: e.job_id
+ });
+ },
+ children: e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停"
+ }) : null]
+ }), n.error ? /* @__PURE__ */ (0, C.jsx)("p", {
+ role: "alert",
+ className: "text-caption-1-regular text-text-error-primary",
+ children: n.error
+ }) : null]
+ });
+}
+//#endregion
+//#region src/react/library-processing/use-library-processing.ts
- function SF({ toast: e, mode: t, monitor: n }) {
++function TF({ toast: e, mode: t, monitor: n }) {
+ let r = t === "notice" || !!n, i = ft({
- queryKey: sF,
- queryFn: ({ signal: e }) => uF(e),
- refetchInterval: (e) => pF(e.state.data, r)
++ queryKey: uF,
++ queryFn: ({ signal: e }) => pF(e),
++ refetchInterval: (e) => gF(e.state.data, r)
+ }), [a, o] = (0, S.useState)(null), s = (0, S.useRef)(void 0), c = i.data;
+ return (0, S.useEffect)(() => {
+ if (!c) return;
+ let n = s.current;
+ s.current = c.status;
+ let r = !!n && [
+ "running",
+ "pausing",
+ "paused"
- ].includes(n) && !cF(c);
- r && o(c), (r || t === "notice") && Wxe(c, e, r);
++ ].includes(n) && !dF(c);
++ r && o(c), (r || t === "notice") && Vxe(c, e, r);
+ }, [
+ c,
+ t,
+ e
+ ]), {
+ job: i,
+ settled: a,
+ forget: () => o(null)
+ };
+}
+//#endregion
+//#region src/react/library-processing/library-processing-notice.tsx
- var CF = "peach.library-processing.collapsed";
- function wF(e) {
++var EF = "peach.library-processing.collapsed";
++function DF(e) {
+ try {
- return !e || sessionStorage.getItem(CF) !== e;
++ return !e || sessionStorage.getItem(EF) !== e;
+ } catch {
+ return !0;
+ }
+}
- function Jxe({ value: e, max: t }) {
++function Gxe({ value: e, max: t }) {
+ let n = Math.max(0, Math.min(100, e / t * 100));
+ return /* @__PURE__ */ (0, C.jsxs)("svg", {
+ role: "progressbar",
+ "aria-label": "当前阶段完成率",
+ "aria-valuemin": 0,
+ "aria-valuemax": 100,
+ "aria-valuenow": n,
+ viewBox: "0 0 32 32",
+ fill: "none",
+ className: "size-8 shrink-0 -rotate-90 text-border-focus-ring",
+ children: [/* @__PURE__ */ (0, C.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ stroke: "currentColor",
+ strokeWidth: "3",
+ className: "opacity-20"
+ }), /* @__PURE__ */ (0, C.jsx)("circle", {
+ cx: "16",
+ cy: "16",
+ r: "13",
+ stroke: "currentColor",
+ strokeWidth: "3",
+ pathLength: 100,
+ strokeDasharray: `${n} 100`,
+ strokeLinecap: "round"
+ })]
+ });
+}
- function TF({ state: e, problem: t = "", measure: n = !1 }) {
- let [r, i] = (0, S.useState)(() => wF(e?.job_id)), a = (0, S.useRef)(null), o = e?.status === "failed", s = cF(e);
++function OF({ state: e, problem: t = "", measure: n = !1 }) {
++ let [r, i] = (0, S.useState)(() => DF(e?.job_id)), a = (0, S.useRef)(null), o = e?.status === "failed", s = dF(e);
+ (0, S.useEffect)(() => {
- i(wF(e?.job_id));
++ i(DF(e?.job_id));
+ }, [e?.job_id]);
+ let c = () => {
+ try {
- r && e?.job_id ? sessionStorage.setItem(CF, e.job_id) : sessionStorage.removeItem(CF);
++ r && e?.job_id ? sessionStorage.setItem(EF, e.job_id) : sessionStorage.removeItem(EF);
+ } catch {}
+ i(!r);
+ };
+ if ((0, S.useEffect)(() => {
+ if (!n || !a.current) return;
+ let e = a.current, t = !1, r = () => {
+ !t && e.isConnected && document.documentElement.style.setProperty("--processing-toast-space", `${e.getBoundingClientRect().height + 12}px`);
+ };
+ r();
+ let i = new ResizeObserver(r);
+ return i.observe(e), () => {
+ t = !0, i.disconnect(), document.documentElement.style.removeProperty("--processing-toast-space");
+ };
+ }, [n]), !t && !s && !o) return null;
+ let l = !!t || !!e?.stalled, u = o ? "扫描与资料采集未完成" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ return /* @__PURE__ */ (0, C.jsxs)("aside", {
+ ref: a,
+ "data-processing-dock": "",
+ "aria-label": "扫描任务",
+ role: o ? "alert" : "status",
- className: dA("flex min-w-0 flex-col gap-3 border p-4", o ? "border-current/35 bg-background-tertiary-error text-text-error-primary" : l ? "border-current/35 bg-status-yellow-background text-status-yellow-text" : "border-border-button-default bg-background-primary-default text-text-primary"),
++ className: pA("flex min-w-0 flex-col gap-3 border p-4", o ? "border-current/35 bg-background-tertiary-error text-text-error-primary" : l ? "border-current/35 bg-status-yellow-background text-status-yellow-text" : "border-border-button-default bg-background-primary-default text-text-primary"),
+ children: [
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex min-w-0 items-center gap-3",
+ children: [
- s && e?.total ? /* @__PURE__ */ (0, C.jsx)(Jxe, {
++ s && e?.total ? /* @__PURE__ */ (0, C.jsx)(Gxe, {
+ value: e.checked || 0,
+ max: e.total
- }) : o || l ? /* @__PURE__ */ (0, C.jsx)(pge, {
++ }) : o || l ? /* @__PURE__ */ (0, C.jsx)(dge, {
+ "aria-hidden": !0,
+ className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, C.jsx)(Tge, {
++ }) : /* @__PURE__ */ (0, C.jsx)(Cge, {
+ "aria-hidden": !0,
+ className: "size-5 shrink-0"
+ }),
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "min-w-0 flex-1",
+ children: [/* @__PURE__ */ (0, C.jsx)("p", {
+ className: "text-body-medium",
+ children: u
+ }), s ? /* @__PURE__ */ (0, C.jsx)("p", {
+ "data-processing-eta": "",
+ className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: lF(e)
++ children: fF(e)
+ }) : null]
+ }),
+ /* @__PURE__ */ (0, C.jsx)(K, {
+ size: "small",
+ variant: "ghost",
+ iconOnly: !0,
- leadingIcon: r ? Ok : jk,
++ leadingIcon: r ? Ak : Nk,
+ "aria-label": r ? "收起任务详情" : "展开任务详情",
+ "aria-expanded": r,
+ onClick: c
+ })
+ ]
+ }),
+ r ? /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-2 border-t border-separator-border pt-3",
+ children: [
+ /* @__PURE__ */ (0, C.jsx)("p", {
+ className: "text-body-2-regular wrap-anywhere",
- children: t || (o ? e?.error || "请查看并处理未完成项" : hF(e))
++ children: t || (o ? e?.error || "请查看并处理未完成项" : vF(e))
+ }),
+ s && e?.stage ? /* @__PURE__ */ (0, C.jsxs)("p", {
+ className: "text-caption-1-regular text-text-tertiary",
+ children: ["当前阶段 · ", e.stage]
+ }) : null,
+ e?.stalled && !t ? /* @__PURE__ */ (0, C.jsx)("p", {
+ className: "text-caption-1-regular",
+ children: "当前步骤耗时较长,正在等待进展"
+ }) : null
+ ]
+ }) : null,
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex flex-wrap items-center justify-between gap-2",
- children: [s ? /* @__PURE__ */ (0, C.jsx)(xF, {
++ children: [s ? /* @__PURE__ */ (0, C.jsx)(wF, {
+ state: e,
+ disabled: !!t
- }) : null, /* @__PURE__ */ (0, C.jsx)(OA, {
++ }) : null, /* @__PURE__ */ (0, C.jsx)(AA, {
+ href: "/data-cleanup#libraryProcessing",
+ size: "small",
- trailingIcon: kk,
++ trailingIcon: jk,
+ children: t || o ? "查看并处理" : "任务详情"
+ })]
+ })
+ ]
+ });
+}
- function Yxe(e) {
- let { job: t } = SF(e);
- return /* @__PURE__ */ (0, C.jsx)(TF, {
++function Kxe(e) {
++ let { job: t } = TF(e);
++ return /* @__PURE__ */ (0, C.jsx)(OF, {
+ state: t.data,
- problem: t.isError ? t.data ? fF : V(t.error) : ""
++ problem: t.isError ? t.data ? hF : V(t.error) : ""
+ });
+}
+//#endregion
+//#region src/react/library-processing/library-processing-dock.tsx
- var EF = "peach-library-processing";
- function Xxe({ toast: e }) {
- let { job: t } = SF({
++var kF = "peach-library-processing";
++function qxe({ toast: e }) {
++ let { job: t } = TF({
+ toast: e,
+ mode: "notice"
- }), n = (0, S.useRef)(""), r = t.data, i = t.isError ? r ? fF : V(t.error) : "";
++ }), n = (0, S.useRef)(""), r = t.data, i = t.isError ? r ? hF : V(t.error) : "";
+ return (0, S.useEffect)(() => {
- let e = cF(r), t = r?.job_id || "unavailable";
- !e && (!i && r?.status !== "failed" || n.current === t) ? eF.dismiss(EF) : eF.custom(() => /* @__PURE__ */ (0, C.jsx)("div", {
++ let e = dF(r), t = r?.job_id || "unavailable";
++ !e && (!i && r?.status !== "failed" || n.current === t) ? rF.dismiss(kF) : rF.custom(() => /* @__PURE__ */ (0, C.jsx)("div", {
+ className: "peach-react",
- children: /* @__PURE__ */ (0, C.jsx)(TF, {
++ children: /* @__PURE__ */ (0, C.jsx)(OF, {
+ state: r,
+ problem: i,
+ measure: !0
+ })
+ }), {
- id: EF,
++ id: kF,
+ toasterId: "processing",
+ duration: Infinity,
+ dismissible: !e,
+ closeButton: !e,
+ className: "processing-task-toast",
+ onDismiss: () => {
+ n.current = t;
+ }
+ });
+ }, [r, i]), (0, S.useEffect)(() => () => {
- eF.dismiss(EF);
++ rF.dismiss(kF);
+ }, []), null;
+}
+//#endregion
+//#region src/react/router/pages/settings.tsx
- function Zxe() {
- let e = (0, S.useContext)(jF), { pathname: t } = IO();
++function Jxe() {
++ let e = (0, S.useContext)(PF), { pathname: t } = RO();
+ return (0, S.useEffect)(() => {
- e?.openSettings?.(Rhe(t));
++ e?.openSettings?.(Ihe(t));
+ }, [e, t]), (0, S.useEffect)(() => () => {
+ queueMicrotask(() => {
- WO(Sk.navigation.location.pathname) || e?.closeSettings?.();
++ KO(wk.navigation.location.pathname) || e?.closeSettings?.();
+ });
+ }, [e]), null;
+}
+//#endregion
+//#region src/react/router/pages/overlay.tsx
- var DF = () => al, Qxe = () => ol;
- function $xe() {
- let e = (0, S.useContext)(jF), t = (0, S.useSyncExternalStore)(gl, Qxe), n = (0, S.useSyncExternalStore)(gl, DF);
++var AF = () => al, Yxe = () => ol;
++function Xxe() {
++ let e = (0, S.useContext)(PF), t = (0, S.useSyncExternalStore)(gl, Yxe), n = (0, S.useSyncExternalStore)(gl, AF);
+ return (0, S.useEffect)(() => {
+ if (!t || !n) return;
+ let r = !0;
+ return queueMicrotask(() => {
+ r && e?.openQueueRequest?.();
+ }), () => {
+ r = !1;
+ };
+ }, [
+ t,
+ n,
+ e
+ ]), null;
+}
- function OF(e, t = !1) {
- let n = (0, S.useSyncExternalStore)(gl, DF), r = (0, S.useRef)(void 0);
++function jF(e, t = !1) {
++ let n = (0, S.useSyncExternalStore)(gl, AF), r = (0, S.useRef)(void 0);
+ if (r.current === void 0) {
- let { claimed: e } = Sk.navigation;
- r.current = al === 0 || wk() ? "boot" : e && !t ? null : "history";
++ let { claimed: e } = wk.navigation;
++ r.current = al === 0 || Ek() ? "boot" : e && !t ? null : "history";
+ }
+ let i = (0, S.useRef)(e);
+ (0, S.useEffect)(() => {
+ i.current = e;
+ });
+ let a = (0, S.useRef)(!0);
+ (0, S.useEffect)(() => (a.current = !0, () => {
+ a.current = !1;
+ }), []), (0, S.useEffect)(() => {
+ let e = r.current;
+ e && n !== 0 && (r.current = null, queueMicrotask(() => {
+ a.current && i.current(e === "boot");
+ }));
+ }, [n]);
+}
- function eSe() {
- let e = (0, S.useContext)(jF), t = (0, S.useRef)(e);
++function Zxe() {
++ let e = (0, S.useContext)(PF), t = (0, S.useRef)(e);
+ return (0, S.useLayoutEffect)(() => {
+ t.current = e;
- }, [e]), OF((t) => {
- let n = Sk.navigation.location, { pathname: r, search: i } = WO(n.pathname) && KO(n.state) || n, a = Vhe(r, i);
- e && a && ($O(), t || Hhe(Sk.navigation.location.state), e.openOverlay(a));
++ }, [e]), jF((t) => {
++ let n = wk.navigation.location, { pathname: r, search: i } = KO(n.pathname) && JO(n.state) || n, a = zhe(r, i);
++ e && a && (tk(), t || Bhe(wk.navigation.location.state), e.openOverlay(a));
+ }, !0), (0, S.useEffect)(() => () => {
+ queueMicrotask(() => {
- JO(Sk.navigation.location.pathname) || t.current?.closeStage();
++ XO(wk.navigation.location.pathname) || t.current?.closeStage();
+ });
+ }, []), null;
+}
- function tSe({ path: e }) {
- AF();
- let { location: t, seq: n, action: r } = Sk.navigation, i = WO(t.pathname) ? KO(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, S.useRef)({
++function Qxe({ path: e }) {
++ NF();
++ let { location: t, seq: n, action: r } = wk.navigation, i = KO(t.pathname) ? JO(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, S.useRef)({
+ identity: a,
+ seq: i?.seq ?? n,
+ navigationSeq: n,
+ settings: !!i
+ });
+ return i ? (o.current.settings = !0, o.current.navigationSeq = n) : o.current.settings && r === "POP" && o.current.identity === a ? (o.current.settings = !1, o.current.navigationSeq = n) : o.current.navigationSeq !== n && (o.current = {
+ identity: a,
+ seq: n,
+ navigationSeq: n,
+ settings: !1
- }), /* @__PURE__ */ (0, C.jsx)(eSe, {}, `${e} ${o.current.seq}`);
++ }), /* @__PURE__ */ (0, C.jsx)(Zxe, {}, `${e} ${o.current.seq}`);
+}
- function nSe() {
- let e = (0, S.useContext)(jF);
- return OF(() => {
++function $xe() {
++ let e = (0, S.useContext)(PF);
++ return jF(() => {
+ e?.follow?.ground();
+ }), null;
+}
- function rSe() {
- return /* @__PURE__ */ (0, C.jsx)(nSe, {}, AF());
++function eSe() {
++ return /* @__PURE__ */ (0, C.jsx)($xe, {}, NF());
+}
+//#endregion
+//#region src/react/router/router.tsx
- var kF = (0, S.createContext)(0), AF = () => (0, S.useContext)(kF), jF = (0, S.createContext)(null);
- function iSe({ children: e }) {
- let [t, n] = (0, S.useState)(() => Sk.navigation);
- return (0, S.useLayoutEffect)(() => (n(Sk.navigation), Sk.listen((e) => {
++var MF = (0, S.createContext)(0), NF = () => (0, S.useContext)(MF), PF = (0, S.createContext)(null);
++function tSe({ children: e }) {
++ let [t, n] = (0, S.useState)(() => wk.navigation);
++ return (0, S.useLayoutEffect)(() => (n(wk.navigation), wk.listen((e) => {
+ (0, ht.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, C.jsx)(kF.Provider, {
++ })), []), /* @__PURE__ */ (0, C.jsx)(MF.Provider, {
+ value: t.openEpoch,
- children: /* @__PURE__ */ (0, C.jsx)(Ihe, {
++ children: /* @__PURE__ */ (0, C.jsx)(Phe, {
+ location: t.location,
+ navigationType: t.action,
- navigator: Sk,
++ navigator: wk,
+ children: e
+ })
+ });
+}
- function aSe({ target: e }) {
- let t = _he();
++function nSe({ target: e }) {
++ let t = hhe();
+ return (0, S.useLayoutEffect)(() => {
+ e.current = t;
+ }), null;
+}
- function oSe(e, t, n) {
++function rSe(e, t, n) {
+ let r = new URL(e, window.location.href);
- v5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
++ _5(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+}
- function sSe() {
- let e = (0, S.useContext)(jF), [t, n] = (0, S.useState)(uk), r = (0, S.useRef)(null);
- (0, S.useLayoutEffect)(() => (n(uk()), Jhe((e, t) => {
++function iSe() {
++ let e = (0, S.useContext)(PF), [t, n] = (0, S.useState)(fk), r = (0, S.useRef)(null);
++ (0, S.useLayoutEffect)(() => (n(fk()), Khe((e, t) => {
+ t ? (0, ht.flushSync)(() => n(e)) : n(e);
+ })), []);
+ let i = (0, S.useMemo)(() => (t) => {
- e && r.current && oSe(t, e, r.current);
++ e && r.current && rSe(t, e, r.current);
+ }, [e]);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(aSe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, C.jsx)(cSe, {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(nSe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, C.jsx)(aSe, {
+ entry: t,
- children: /* @__PURE__ */ (0, C.jsx)(lSe, {
++ children: /* @__PURE__ */ (0, C.jsx)(oSe, {
+ entry: t,
+ actions: e,
+ go: i
+ })
+ }, t.revision)) : null] });
+}
- var cSe = class extends S.Component {
++var aSe = class extends S.Component {
+ state = { failed: !1 };
+ static getDerivedStateFromError() {
+ return { failed: !0 };
+ }
+ componentDidCatch() {
- Zhe(this.props.entry.container, this.props.entry.revision);
++ Yhe(this.props.entry.container, this.props.entry.revision);
+ }
+ render() {
+ return this.state.failed ? null : this.props.children;
+ }
- }, lSe = (0, S.memo)(function({ entry: e, actions: t, go: n }) {
- return Nft(e.path) ? (0, ht.createPortal)(Ift(e.path, e.props, t, n), e.host, String(e.revision)) : null;
++}, oSe = (0, S.memo)(function({ entry: e, actions: t, go: n }) {
++ return Pft(e.path) ? (0, ht.createPortal)(Lft(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+});
- function uSe({ children: e }) {
- let t = IO();
- AF();
- let n = Tk(), r = WO(t.pathname) && !wk() ? KO(t.state) : null;
++function sSe({ children: e }) {
++ let t = RO();
++ NF();
++ let n = Dk(), r = KO(t.pathname) && !Ek() ? JO(t.state) : null;
+ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsxs)(zO, {
++ /* @__PURE__ */ (0, C.jsxs)(VO, {
+ location: n ?? t,
+ children: [
- Object.entries(_5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(g5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- Object.entries(Cft).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(wft).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- Object.entries(y5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(v5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- Object.entries(x5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(b5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- Object.entries(C5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(S5).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- Mft.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Nft.map((e) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
- element: w5["/"].element
++ element: C5["/"].element
+ }, e)),
- Object.entries(wft).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ Object.entries(Tft).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: t.element
+ }, e)),
- qO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ YO.map((e) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, C.jsx)(rSe, {}) : w5["/"].element
++ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, C.jsx)(eSe, {}) : C5["/"].element
+ }, e)),
- UO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ GO.map((e) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
+ element: null
+ }, e)),
- /* @__PURE__ */ (0, C.jsx)(RO, {
++ /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: "*",
+ element: e
+ })
+ ]
+ }),
- /* @__PURE__ */ (0, C.jsxs)(zO, {
++ /* @__PURE__ */ (0, C.jsxs)(VO, {
+ location: r ?? t,
- children: [qO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ children: [YO.map((e) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
- element: /* @__PURE__ */ (0, C.jsx)(tSe, { path: e })
- }, e)), /* @__PURE__ */ (0, C.jsx)(RO, {
++ element: /* @__PURE__ */ (0, C.jsx)(Qxe, { path: e })
++ }, e)), /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: "*",
+ element: null
+ })]
+ }),
- /* @__PURE__ */ (0, C.jsxs)(zO, { children: [UO.map((e) => /* @__PURE__ */ (0, C.jsx)(RO, {
++ /* @__PURE__ */ (0, C.jsxs)(VO, { children: [GO.map((e) => /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: e,
- element: /* @__PURE__ */ (0, C.jsx)(Zxe, {})
- }, e)), /* @__PURE__ */ (0, C.jsx)(RO, {
++ element: /* @__PURE__ */ (0, C.jsx)(Jxe, {})
++ }, e)), /* @__PURE__ */ (0, C.jsx)(BO, {
+ path: "*",
+ element: null
+ })] })
+ ] });
+}
- function dSe({ children: e, actions: t = null, processing: n = !1 }) {
- return /* @__PURE__ */ (0, C.jsx)(ZP, { children: /* @__PURE__ */ (0, C.jsx)(jF.Provider, {
++function cSe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
++ return /* @__PURE__ */ (0, C.jsxs)(eF, { children: [n, /* @__PURE__ */ (0, C.jsx)(PF.Provider, {
+ value: t,
- children: /* @__PURE__ */ (0, C.jsxs)(iSe, { children: [
- /* @__PURE__ */ (0, C.jsx)(sSe, {}),
- /* @__PURE__ */ (0, C.jsx)($xe, {}),
- n && t ? /* @__PURE__ */ (0, C.jsx)(Xxe, { toast: t.toast }) : null,
- /* @__PURE__ */ (0, C.jsx)(uSe, { children: e })
++ children: /* @__PURE__ */ (0, C.jsxs)(tSe, { children: [
++ /* @__PURE__ */ (0, C.jsx)(iSe, {}),
++ /* @__PURE__ */ (0, C.jsx)(Xxe, {}),
++ r && t ? /* @__PURE__ */ (0, C.jsx)(qxe, { toast: t.toast }) : null,
++ /* @__PURE__ */ (0, C.jsx)(sSe, { children: e })
+ ] })
- }) });
++ })] });
+}
- var fSe = { onCaughtError: (e) => {
++var lSe = { onCaughtError: (e) => {
+ globalThis.reportError?.(e);
+} };
+//#endregion
+//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
- function pSe(e, t, n) {
++function uSe(e, t, n) {
+ (0, S.useEffect)(() => {
+ if (!e) return;
+ let r = (e) => {
+ let r = e.target;
+ n.some((e) => e.current?.contains(r)) || t();
+ };
+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
+ }, [
+ e,
+ t,
+ n
+ ]);
+}
- function mSe(e, t) {
++function dSe(e, t) {
+ let n = (0, S.useRef)(!1);
+ return (0, S.useEffect)(() => {
+ if (!e) return;
+ let r = (e) => {
+ t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
+ n.current = !1;
+ }, 400));
+ };
+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);
+ }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
+}
+//#endregion
+//#region src/react/boardui/components/base/select/select.tsx
- var MF = (0, S.createContext)("md");
- function NF({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
++var FF = (0, S.createContext)("md");
++function IF({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, S.useRef)(null), u = (0, S.useRef)(null), [d, f] = (0, S.useState)(!1);
- pSe(d, () => f(!1), [l, u]);
- let p = mSe(d, l);
- return /* @__PURE__ */ (0, C.jsx)(Jye, {
++ uSe(d, () => f(!1), [l, u]);
++ let p = dSe(d, l);
++ return /* @__PURE__ */ (0, C.jsx)(Gye, {
+ ref: s,
+ ...c,
+ isOpen: d,
+ onOpenChange: (e) => p(e) && f(e),
- className: dA("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(Bj, {
++ className: pA("group flex flex-col", e),
++ children: ({ isOpen: e }) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)(Uj, {
+ ref: l,
- className: dA("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, C.jsx)(Zye, {
- className: dA("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
++ className: pA("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, C.jsx)(Jye, {
++ className: pA("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ children: o
- }), /* @__PURE__ */ (0, C.jsx)(rxe, { className: dA("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
++ }), /* @__PURE__ */ (0, C.jsx)(exe, { className: pA("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
+ ref: u,
+ isNonModal: !0,
+ offset: 4,
- className: dA(oxe, VP, "p-2", n),
- children: /* @__PURE__ */ (0, C.jsx)(gye, {
++ className: pA(rxe, WP, "p-2", n),
++ children: /* @__PURE__ */ (0, C.jsx)(pye, {
+ items: a,
- className: dA(sxe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, C.jsx)(MF.Provider, {
++ className: pA(ixe, "max-h-[240px] overflow-auto"),
++ children: /* @__PURE__ */ (0, C.jsx)(FF.Provider, {
+ value: r,
+ children: i
+ })
+ })
+ })] })
+ });
+}
- function PF({ className: e, children: t, ...n }) {
- let r = (0, S.useContext)(MF);
- return /* @__PURE__ */ (0, C.jsx)(yye, {
++function LF({ className: e, children: t, ...n }) {
++ let r = (0, S.useContext)(FF);
++ return /* @__PURE__ */ (0, C.jsx)(gye, {
+ ...n,
- className: (t) => dA(HP, 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) => pA(GP, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ children: t
+ });
+}
+//#endregion
+//#region src/react/catalog-folders/catalog-folders.ts
- var FF = {
++var RF = {
+ category: "个人分类",
+ creator: "创作者/账号",
+ performer: "人物",
+ seller: "卖家",
+ studio: "厂牌"
+};
- function IF(e, t = "", n = "") {
++function zF(e, t = "", n = "") {
+ let r = new URLSearchParams({
+ ...e,
+ folder: t,
+ ...n ? { q: n } : {}
+ });
+ return {
+ queryKey: ["catalog-folders", r.toString()],
+ staleTime: 3e4,
+ queryFn: ({ signal: e }) => yn(`/api/folders?${r}`, e)
+ };
+}
- function LF(e, t) {
++function BF(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}` : "");
+}
+//#endregion
+//#region src/react/catalog-folders/folder-rule-dialog.tsx
- function hSe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, S.useContext)(jF), a = CA(), [o, s] = (0, S.useState)(t?.purpose || "category"), [c, l] = (0, S.useState)(t?.name || ""), [u, d] = (0, S.useState)(t?.recursive ?? !0), [f, p] = (0, S.useState)(t?.future ?? !1), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(!1), v = {
++function fSe({ folder: e, rule: t, revision: n, close: r }) {
++ let i = (0, S.useContext)(PF), a = TA(), [o, s] = (0, S.useState)(t?.purpose || "category"), [c, l] = (0, S.useState)(t?.name || ""), [u, d] = (0, S.useState)(t?.recursive ?? !0), [f, p] = (0, S.useState)(t?.future ?? !1), [m, h] = (0, S.useState)(null), [g, _] = (0, S.useState)(!1), v = {
+ folder: e.id,
+ purpose: o,
+ name: c,
+ recursive: u,
+ future: f
+ }, y = () => {
+ h(null), a.setError("");
+ }, b = (e) => {
+ U.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), ml({ pageOpens: al + 1 });
+ }, x = () => a.run("preview", (e) => H("/api/folders/preview", v, "POST", e), h), w = () => {
+ m && a.run("save", (e) => H("/api/folders/rule", {
+ ...v,
+ action: "save",
+ plan_version: m.plan_version,
+ expected_revision: n
+ }, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));
+ }, T = async () => {
+ (0, ht.flushSync)(() => _(!0)), (await Vs({
+ title: "移除目录规则",
+ body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,
+ confirmLabel: "移除目录规则",
+ onConfirm: () => H("/api/folders/rule", {
+ folder: e.id,
+ action: "remove",
+ expected_revision: n
+ })
+ })).confirmed ? b("已移除目录规则") : _(!1);
+ }, E = !!a.busy, D = (e, t) => a.busy === e ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", { dangerouslySetInnerHTML: { __html: No(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, C.jsx)(xP, {
++ return g ? null : /* @__PURE__ */ (0, C.jsx)(wP, {
+ isOpen: !0,
+ onOpenChange: (e) => {
+ !e && !E && r();
+ },
+ width: "form",
+ label: "设置目录用途",
+ children: /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "peach-react",
+ children: [
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
+ children: [/* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "min-w-0",
- children: [/* @__PURE__ */ (0, C.jsx)(Hj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Gj, {
+ slot: "title",
+ className: "text-title-2-medium",
+ children: "设置目录用途"
+ }), /* @__PURE__ */ (0, C.jsx)("p", {
+ className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
+ children: e.path
+ })]
- }), /* @__PURE__ */ (0, C.jsx)(TP, {
++ }), /* @__PURE__ */ (0, C.jsx)(OP, {
+ label: "关闭目录用途",
+ onPress: () => {
+ E || r();
+ }
+ })]
+ }),
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex flex-col gap-5 p-5",
+ children: [
+ /* @__PURE__ */ (0, C.jsxs)("div", {
+ className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(hP, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, C.jsx)(NF, {
++ children: [/* @__PURE__ */ (0, C.jsx)(vP, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, C.jsx)(IF, {
+ "aria-label": "这个文件夹用于",
+ selectedKey: o,
+ isDisabled: E,
+ onSelectionChange: (e) => {
+ s(e), y();
+ },
- children: Object.entries(FF).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
++ children: Object.entries(RF).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
+ id: e,
+ children: t
+ }, e))
+ })]
+ }),
- o === "category" ? null : /* @__PURE__ */ (0, C.jsx)(bP, {
++ o === "category" ? null : /* @__PURE__ */ (0, C.jsx)(CP, {
+ label: "关联名称",
+ value: c,
+ onChange: (e) => {
+ l(e), y();
+ },
+ placeholder: "输入人物、账号或厂牌名称",
+ maxLength: 200,
+ isDisabled: E,
+ isRequired: !0
+ }),
- /* @__PURE__ */ (0, C.jsx)(JP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
+ isSelected: u,
+ isDisabled: E,
+ onChange: (e) => {
+ d(e), y();
+ },
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: f,
isDisabled: E,
onChange: (e) => {
@@@ -45629,7 -43862,7 +45629,7 @@@
}
//#endregion
//#region src/react/catalog-folders/use-folder-sticky-offset.ts
- function gSe(e) {
-function fxe(e) {
++function pSe(e) {
(0, S.useLayoutEffect)(() => {
if (!e) return;
let t = document.getElementById("catalogFilter"), n = null, r = 0, i = new ResizeObserver(() => o()), a = () => {
@@@ -45651,35 -43884,35 +45651,35 @@@
}
//#endregion
//#region src/react/catalog-folders/catalog-folders-page.tsx
- function _Se() {
- return FO() ? /* @__PURE__ */ (0, C.jsx)(vSe, {}) : null;
-function pxe() {
- return FO() ? /* @__PURE__ */ (0, C.jsx)(mxe, {}) : null;
++function mSe() {
++ return LO() ? /* @__PURE__ */ (0, C.jsx)(hSe, {}) : null;
}
- function vSe() {
- let e = IO(), t = (0, S.useContext)(jF);
-function mxe() {
- let e = IO(), t = (0, S.useContext)(YP);
- if (!Vt(e.pathname)) return null;
++function hSe() {
++ let e = RO(), t = (0, S.useContext)(PF);
+ if (!Bt(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
-- return /* @__PURE__ */ (0, C.jsx)(dj, {
++ return /* @__PURE__ */ (0, C.jsx)(mj, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: Lk,
- onClick: () => t?.navigate(LF(e, r ? {
- icon: Ik,
- onClick: () => t?.navigate(tF(e, r ? {
++ icon: zk,
++ onClick: () => t?.navigate(BF(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
- function ySe() {
- let e = IO(), t = (0, S.useContext)(jF), n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder"), i = {
-function hxe() {
- let e = IO(), t = (0, S.useContext)(YP), n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder"), i = {
++function gSe() {
++ let e = RO(), t = (0, S.useContext)(PF), n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder"), i = {
loc: n.get("loc") ?? "",
library: n.get("library") ?? ""
};
- gSe(r);
- fxe(r);
- let a = n.get("folder") || "", o = pt({
- ...eF(i, a),
++ pSe(r);
+ let a = n.get("folder") || "", o = ft({
- ...IF(i, a),
++ ...zF(i, a),
enabled: r
}), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(!1), d = document.getElementById("catalogFoldersTree"), f = document.getElementById("catalogFolderHeader");
if ((0, S.useLayoutEffect)(() => (d && (d.hidden = !r), f && (f.hidden = !r), document.body.toggleAttribute("data-folder-browse", r), () => {
@@@ -45692,11 -43925,11 +45692,11 @@@
c(!1), u(!1);
}, [a, r]), !r || !d || !f || !t) return null;
let p = (n) => {
- c(!1), t.navigate(LF(e, {
- c(!1), t.navigate(tF(e, {
++ c(!1), t.navigate(BF(e, {
browse: "folders",
folder: n
}));
- }, m = o.data, h = /* @__PURE__ */ (0, C.jsx)(bSe, {
- }, m = o.data, h = /* @__PURE__ */ (0, C.jsx)(gxe, {
++ }, m = o.data, h = /* @__PURE__ */ (0, C.jsx)(_Se, {
scope: i,
selected: a,
current: m,
@@@ -45715,21 -43948,21 +45715,21 @@@
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
className: "folder-drawer-trigger",
-- children: /* @__PURE__ */ (0, C.jsx)(dj, {
++ children: /* @__PURE__ */ (0, C.jsx)(mj, {
"aria-label": "打开文件夹目录",
- icon: Mge,
- icon: bge,
++ icon: Age,
size: "small",
onClick: () => c(!0)
})
}),
- /* @__PURE__ */ (0, C.jsxs)(axe, {
- /* @__PURE__ */ (0, C.jsxs)(Rbe, {
++ /* @__PURE__ */ (0, C.jsxs)(nxe, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, C.jsx)(zP, {
- children: [/* @__PURE__ */ (0, C.jsx)(NP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(HP, {
current: !a,
onClick: () => p(""),
- icon: Lk,
- icon: Ik,
++ icon: zk,
children: "全部文件夹"
- }), m?.ancestors.map((e, t) => /* @__PURE__ */ (0, C.jsx)(zP, {
- }), m?.ancestors.map((e, t) => /* @__PURE__ */ (0, C.jsx)(NP, {
++ }), m?.ancestors.map((e, t) => /* @__PURE__ */ (0, C.jsx)(HP, {
current: t === m.ancestors.length - 1,
onClick: () => p(e.id),
children: /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -45739,9 -43972,9 +45739,9 @@@
})
}, e.id))]
}),
-- m?.selected ? /* @__PURE__ */ (0, C.jsx)(dj, {
++ m?.selected ? /* @__PURE__ */ (0, C.jsx)(mj, {
"aria-label": "设置目录用途",
- icon: xge,
- icon: lge,
++ icon: yge,
size: "small",
onClick: () => u(!0)
}) : null
@@@ -45771,14 -44004,14 +45771,14 @@@
}) : null,
m?.selected ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, C.jsx)(JP, {
- children: [/* @__PURE__ */ (0, C.jsx)(HP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(ZP, {
size: "sm",
isSelected: n.get("folder_recursive") !== "0",
- onChange: (n) => t.navigate(LF(e, { folder_recursive: n ? null : "0" })),
- onChange: (n) => t.navigate(tF(e, { folder_recursive: n ? null : "0" })),
++ onChange: (n) => t.navigate(BF(e, { folder_recursive: n ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: m.rule ? `${FF[m.rule.purpose]}${m.rule.name ? ` · ${m.rule.name}` : ""}` : "个人分类"
- children: m.rule ? `${$P[m.rule.purpose]}${m.rule.name ? ` · ${m.rule.name}` : ""}` : "个人分类"
++ children: m.rule ? `${RF[m.rule.purpose]}${m.rule.name ? ` · ${m.rule.name}` : ""}` : "个人分类"
})]
}) : null,
o.isPending ? /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -45793,7 -44026,7 +45793,7 @@@
children: m.children.map((e) => /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Lk,
- leadingIcon: Ik,
++ leadingIcon: zk,
onClick: () => p(e.id),
children: /* @__PURE__ */ (0, C.jsx)("span", {
className: "truncate",
@@@ -45803,7 -44036,7 +45803,7 @@@
}) : null
]
}), f),
- /* @__PURE__ */ (0, C.jsxs)(xP, {
- /* @__PURE__ */ (0, C.jsxs)(hP, {
++ /* @__PURE__ */ (0, C.jsxs)(wP, {
isOpen: s,
onOpenChange: c,
width: "form",
@@@ -45813,7 -44046,7 +45813,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, C.jsx)(TP, {
- }), /* @__PURE__ */ (0, C.jsx)(yP, {
++ }), /* @__PURE__ */ (0, C.jsx)(OP, {
label: "关闭文件夹目录",
onPress: () => c(!1)
})]
@@@ -45822,7 -44055,7 +45822,7 @@@
children: s ? h : null
})]
}),
- l && m?.selected ? /* @__PURE__ */ (0, C.jsx)(hSe, {
- l && m?.selected ? /* @__PURE__ */ (0, C.jsx)(dxe, {
++ l && m?.selected ? /* @__PURE__ */ (0, C.jsx)(fSe, {
folder: m.selected,
rule: m.rule,
revision: m.rules_revision,
@@@ -45830,27 -44063,27 +45830,27 @@@
}, m.selected.id) : null
] });
}
- function bSe({ scope: e, selected: t, current: n, go: r }) {
- let i = ft(IF(e)), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (0, S.useDeferredValue)(s), u = ft({
- ...IF(e, "", l),
-function gxe({ scope: e, selected: t, current: n, go: r }) {
- let i = pt(eF(e)), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (0, S.useDeferredValue)(s), u = pt({
- ...eF(e, "", l),
++function _Se({ scope: e, selected: t, current: n, go: r }) {
++ let i = ft(zF(e)), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (0, S.useDeferredValue)(s), u = ft({
++ ...zF(e, "", l),
enabled: !!l.trim()
- }), d = YP();
- }), d = UP();
++ }), d = QP();
(0, S.useEffect)(() => {
n?.ancestors.length && o((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
- let f = [...a].map(String), p = ree({ queries: f.map((t) => IF(e, t)) }), m = /* @__PURE__ */ new Map();
- let f = [...a].map(String), p = dt({ queries: f.map((t) => eF(e, t)) }), m = /* @__PURE__ */ new Map();
++ let f = [...a].map(String), p = ree({ queries: f.map((t) => zF(e, t)) }), m = /* @__PURE__ */ new Map();
p.forEach((e, t) => {
e.data && m.set(f[t], e.data.children);
}), n?.selected && m.set(n.selected.id, n.children);
let h = (e) => {
let t = m.get(e.id);
- return /* @__PURE__ */ (0, C.jsx)(WP, {
- return /* @__PURE__ */ (0, C.jsx)(RP, {
++ return /* @__PURE__ */ (0, C.jsx)(qP, {
id: e.id,
label: e.name,
- icon: Lk,
- expandedIcon: bge,
- icon: Ik,
- expandedIcon: cge,
++ icon: zk,
++ expandedIcon: vge,
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(h) : /* @__PURE__ */ (0, C.jsx)(WP, {
- children: e.has_children ? t ? t.map(h) : /* @__PURE__ */ (0, C.jsx)(RP, {
++ children: e.has_children ? t ? t.map(h) : /* @__PURE__ */ (0, C.jsx)(qP, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@@ -45866,10 -44099,10 +45866,10 @@@
"aria-label": "文件夹导航",
className: "flex min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: Hk,
- leadingIcon: Vk,
++ leadingIcon: Wk,
value: s,
onChange: c,
size: "small"
@@@ -45911,27 -44144,27 +45911,27 @@@
}) : u.data?.matches.length ? u.data.matches.map((e) => /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Lk,
- leadingIcon: Ik,
++ leadingIcon: zk,
onClick: () => {
c(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }, e.id)) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }, e.id)) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Hk,
- icon: Vk,
++ icon: Wk,
title: "没有匹配的文件夹",
children: "换个目录名称试试。"
})
- }) : /* @__PURE__ */ (0, C.jsx)(cxe, {
- }) : /* @__PURE__ */ (0, C.jsx)(Vbe, {
++ }) : /* @__PURE__ */ (0, C.jsx)(axe, {
"aria-label": "媒体文件夹",
size: "sm",
expandedKeys: a,
onExpandedChange: o,
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: g,
- renderEmptyState: () => /* @__PURE__ */ (0, C.jsx)(vA, {
- renderEmptyState: () => /* @__PURE__ */ (0, C.jsx)(_A, {
++ renderEmptyState: () => /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Lk,
- icon: Ik,
++ icon: zk,
title: "尚未添加媒体文件夹",
children: "在媒体库设置中添加目录并扫描。"
}),
@@@ -45943,55 -44176,125 +45943,55 @@@
});
}
//#endregion
-//#region src/react/components/use-moving-surface.ts
-var _xe = {
- selection: {
- type: Hd,
- duration: .16,
- bounce: 0
- },
- hover: {
- type: Hd,
- duration: .08,
- bounce: 0
- }
-};
-function nF(e) {
- let [t, n] = (0, S.useState)(null);
- return (0, S.useLayoutEffect)(() => {
- if (!t) return;
- let n = document.createElement("span");
- n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;
- let r = matchMedia("(prefers-reduced-motion: reduce)"), i = matchMedia("(hover: hover) and (pointer: fine)"), a = !1, o = null, s = null, c = "", l, u = e === "selection" ? "[role=\"tab\"],label[data-rac]" : "[role=\"option\"],button", d = () => [...t.querySelectorAll(u)].filter((e) => e.getBoundingClientRect().width > 0), f = () => {
- l?.cancel(), n.hidden = !0, s = null, c = "", delete t.dataset.surfaceReady;
- }, p = (u = !1) => {
- let p = d(), m = p.find((e) => e.hasAttribute("data-selected") || e.getAttribute("aria-selected") === "true"), h = e === "selection" ? m : o;
- if (!h || !t.contains(h) || !p.includes(h) || e === "hover" && (!i.matches || !a || p.length > 8 || h.matches(":disabled,[aria-disabled=\"true\"],[data-disabled]"))) {
- f();
- return;
- }
- let g = h.getBoundingClientRect(), _ = t.getBoundingClientRect(), v = _.width / t.offsetWidth || 1, y = _.height / t.offsetHeight || 1, b = (g.left - _.left) / v + t.scrollLeft - t.clientLeft, x = (g.top - _.top) / y + t.scrollTop - t.clientTop, S = g.width / v, C = g.height / y, w = `${b},${x},${S},${C}`;
- if (a && i.matches && !r.matches && s === h && c === w) return;
- let T = n.hidden ? null : n.getBoundingClientRect();
- l?.cancel(), n.hidden = !1, n.style.width = `${S}px`, n.style.height = `${C}px`;
- 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 = Eie(n, { transform: [r, E] }, _xe[e]);
- } else n.style.transform = E;
- s = h, c = w, t.dataset.surfaceReady = "";
- }, m = (t) => {
- if (a = t.pointerType === "mouse" && i.matches, e === "hover") {
- let e = t.target instanceof Element ? t.target.closest(u) : null;
- if (e === o && a) return;
- o = e, p(!0);
- }
- }, h = () => {
- a = !1, e === "hover" ? f() : p();
- }, g = () => {
- o = null, e === "hover" && f();
- }, _ = () => p(), v = new MutationObserver(() => p(!0)), y = new ResizeObserver(_), b = () => {
- y.disconnect(), y.observe(t), d().forEach((e) => y.observe(e));
- }, x = new MutationObserver(() => {
- b(), p();
- });
- return v.observe(t, {
- subtree: !0,
- attributes: !0,
- attributeFilter: [
- "data-selected",
- "aria-selected",
- "data-disabled",
- "aria-disabled"
- ]
- }), x.observe(t, {
- childList: !0,
- subtree: !0
- }), b(), p(), t.addEventListener("pointerdown", m, !0), t.addEventListener("pointermove", m), t.addEventListener("pointerleave", g), t.addEventListener("keydown", h, !0), t.addEventListener("scroll", _, !0), r.addEventListener("change", _), i.addEventListener("change", _), () => {
- l?.cancel(), v.disconnect(), x.disconnect(), y.disconnect(), t.removeEventListener("pointerdown", m, !0), t.removeEventListener("pointermove", m), t.removeEventListener("pointerleave", g), t.removeEventListener("keydown", h, !0), t.removeEventListener("scroll", _, !0), r.removeEventListener("change", _), i.removeEventListener("change", _), n.remove(), delete t.dataset.surfaceHost, delete t.dataset.surfaceReady;
- };
- }, [t, e]), n;
-}
-//#endregion
//#region src/react/components/segmented.tsx
- function RF(e) {
- let t = pj(_F("selection"));
- return /* @__PURE__ */ (0, C.jsx)(lP, {
-function rF(e) {
- let t = pj(nF("selection"));
- return /* @__PURE__ */ (0, C.jsx)(rP, {
++function VF(e) {
++ let t = gj(bF("selection"));
++ return /* @__PURE__ */ (0, C.jsx)(fP, {
...e,
ref: t
});
}
- function zF(e) {
- let t = pj(_F("selection"));
- return /* @__PURE__ */ (0, C.jsx)(MN, {
-function iF(e) {
- let t = pj(nF("selection"));
- return /* @__PURE__ */ (0, C.jsx)(EN, {
++function HF(e) {
++ let t = gj(bF("selection"));
++ return /* @__PURE__ */ (0, C.jsx)(FN, {
...e,
ref: t
});
}
- var BF = "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", VF = "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", xSe = "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", HF = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", UF = "relative flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
-var aF = "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", oF = "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", vxe = "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", sF = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", cF = "relative flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
++var UF = "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", WF = "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", vSe = "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", GF = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", KF = "relative flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)";
//#endregion
//#region src/react/catalog-grid/catalog-view-toggle.tsx
- function WF() {
-function lF() {
-- let e = vD();
- return /* @__PURE__ */ (0, C.jsxs)(MN, {
- return /* @__PURE__ */ (0, C.jsxs)(EN, {
++function qF() {
++ let e = bD();
++ return /* @__PURE__ */ (0, C.jsxs)(FN, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Kde,
- onChange: Nde,
++ onChange: Wde,
"data-entity-layout": "",
- className: HF,
- children: [/* @__PURE__ */ (0, C.jsx)(NN, {
- className: sF,
- children: [/* @__PURE__ */ (0, C.jsx)(DN, {
++ className: GF,
++ children: [/* @__PURE__ */ (0, C.jsx)(IN, {
value: "cards",
"aria-label": "卡片",
- className: UF,
- className: cF,
++ className: KF,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, C.jsx)(Dge, {
- children: /* @__PURE__ */ (0, C.jsx)(hge, {
++ children: /* @__PURE__ */ (0, C.jsx)(Tge, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, C.jsx)(NN, {
- }), /* @__PURE__ */ (0, C.jsx)(DN, {
++ }), /* @__PURE__ */ (0, C.jsx)(IN, {
value: "list",
"aria-label": "列表",
- className: UF,
- className: cF,
++ className: KF,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, C.jsx)(kge, {
- children: /* @__PURE__ */ (0, C.jsx)(_ge, {
++ children: /* @__PURE__ */ (0, C.jsx)(Dge, {
"aria-hidden": "true",
className: "size-4"
})
@@@ -46001,106 -44304,106 +46001,106 @@@
}
//#endregion
//#region src/react/follow-feed/follow-marks.ts
- var GF = (e) => typeof e == "string" ? e : "", KF = (e) => e.aliases;
- function qF(e, t = "") {
-var uF = (e) => typeof e == "string" ? e : "", dF = (e) => e.aliases;
-function fF(e, t = "") {
++var JF = (e) => typeof e == "string" ? e : "", YF = (e) => e.aliases;
++function XF(e, t = "") {
let n = Qr(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${B(t)}"${t ? ` title="${B(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
- function JF(e, t = "") {
-function pF(e, t = "") {
++function ZF(e, t = "") {
let n = B(pr(t || e)), r = Qr(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 YF = (e) => GF(e.title).trim() || "未命名内容", XF = (e, t) => fr(e, KF(t));
- function ZF(e) {
-var mF = (e) => uF(e.title).trim() || "未命名内容", hF = (e, t) => fr(e, dF(t));
-function gF(e) {
++var QF = (e) => JF(e.title).trim() || "未命名内容", $F = (e, t) => fr(e, YF(t));
++function eI(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 = GF(n.entity_name);
- let n = t[0], r = uF(n.entity_name);
- return St("creator", r, n.entity_id), r;
++ let n = t[0], r = JF(n.entity_name);
+ return xt("creator", r, n.entity_id), r;
}
- function QF(e, t) {
-function _F(e, t) {
++function tI(e, t) {
let { src: n, fallback: r } = mr(e), i = pr(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${B(i)}</span>`;
let a = r ? ` data-fallbacks="${B(r)}"` : "";
return `<img class="favatar" src="${B(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${B(i)}" data-drop-class="favatar none">`;
}
- function $F(e, t, n) {
- let r = KF(n), i = e.credit, a = i?.poster;
-function vF(e, t, n) {
- let r = dF(n), i = e.credit, a = i?.poster;
++function nI(e, t, n) {
++ let r = YF(n), i = e.credit, a = i?.poster;
if (!a) {
let n = fr(t, r);
return {
- author: n || GF(e.author) || GF(e.source_label) || "创作者未取得",
- avatar: QF(t, n),
- author: n || uF(e.author) || uF(e.source_label) || "创作者未取得",
- avatar: _F(t, n),
++ author: n || JF(e.author) || JF(e.source_label) || "创作者未取得",
++ avatar: tI(t, n),
credited: "",
- entityName: ZF(t)
- entityName: gF(t)
++ entityName: eI(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 && fr(c, r) || a;
return {
author: l,
- avatar: QF(c, l),
- avatar: _F(c, l),
++ avatar: tI(c, l),
credited: i.credited || "",
- entityName: ZF(c)
- entityName: gF(c)
++ entityName: eI(c)
};
}
- function eI(e, t = e.primary) {
-function yF(e, t = e.primary) {
++function rI(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = GF(e.primary.version);
- let i = uF(e.primary.version);
++ let i = JF(e.primary.version);
i && n.push(r("version", B(i)));
- let a = GF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
- let a = uF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
++ let a = JF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
- function tI(e, t = e.primary) {
-function bF(e, t = e.primary) {
++function iI(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => qF(e, t) || `<span>${B(t)}</span>`).join("");
- let r = [...n].map(([e, t]) => fF(e, t) || `<span>${B(t)}</span>`).join("");
++ let r = [...n].map(([e, t]) => XF(e, t) || `<span>${B(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${B([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
- function nI(e, t) {
- let n = GF(e.media_error);
-function xF(e, t) {
- let n = uF(e.media_error);
++function aI(e, t) {
++ let n = JF(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
- var SSe = 864e5, CSe = (e, t) => {
-var yxe = 864e5, bxe = (e, t) => {
++var ySe = 864e5, bSe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > SSe;
- return Number.isFinite(n) && n - t > yxe;
++ return Number.isFinite(n) && n - t > ySe;
};
- function rI(e, t) {
- let n = GF(e.published_at);
-function SF(e, t) {
- let n = uF(e.published_at);
++function oI(e, t) {
++ let n = JF(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Nn(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: CSe(n, t) ? " · 晚于现在" : ""
- suffix: bxe(n, t) ? " · 晚于现在" : ""
++ suffix: bSe(n, t) ? " · 晚于现在" : ""
};
}
- function iI(e, t = Date.now()) {
- let n = rI(e, t);
-function CF(e, t = Date.now()) {
- let n = SF(e, t);
++function sI(e, t = Date.now()) {
++ let n = oI(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
- function wSe(e, t = Date.now()) {
- let n = rI(e, t);
-function xxe(e, t = Date.now()) {
- let n = SF(e, t);
++function xSe(e, t = Date.now()) {
++ let n = oI(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 aI = /* @__PURE__ */ new Set(), oI = [], sI = null;
- function cI() {
- if (sI = null, !oI.length) return;
- let e = oI.splice(0, 200);
-var wF = /* @__PURE__ */ new Set(), TF = [], EF = null;
-function DF() {
- if (EF = null, !TF.length) return;
- let e = TF.splice(0, 200);
- It("/api/follow/image-dims", {
++var cI = /* @__PURE__ */ new Set(), lI = [], uI = null;
++function dI() {
++ if (uI = null, !lI.length) return;
++ let e = lI.splice(0, 200);
+ Ft("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), oI.length && (sI = setTimeout(cI, 800));
- }).catch(() => {}), TF.length && (EF = setTimeout(DF, 800));
++ }).catch(() => {}), lI.length && (uI = setTimeout(dI, 800));
}
- function TSe(e, t, n, r) {
-function Sxe(e, t, n, r) {
++function SSe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- aI.has(i) || (aI.add(i), oI.push(t === null ? {
- wF.has(i) || (wF.add(i), TF.push(t === null ? {
++ cI.has(i) || (cI.add(i), lI.push(t === null ? {
item: e,
width: n,
height: r
@@@ -46109,26 -44412,26 +46109,26 @@@
width: n,
height: r,
media: t
- }), sI ||= setTimeout(cI, 800));
- }), EF ||= setTimeout(DF, 800));
++ }), uI ||= setTimeout(dI, 800));
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
- var ESe = (e) => e === "videos", lI = () => /* @__PURE__ */ (0, C.jsx)("span", {
-var Cxe = (e) => e === "videos", OF = () => /* @__PURE__ */ (0, C.jsx)("span", {
++var CSe = (e) => e === "videos", fI = () => /* @__PURE__ */ (0, C.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
- function DSe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ESe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
-function wxe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Cxe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
++function wSe(e) {
++ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = CSe(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, S.useRef)(null), h = (0, S.useRef)(null), g = (0, S.useRef)(null), _ = (0, S.useRef)(null), v = (0, S.useRef)(null), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = bj(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), w = bj(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), T = (0, S.useRef)(null), E = (0, S.useRef)(null), D = u?.mediaCounts ? u : null, O = bj(T, E, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!D}`);
++ })) : i, m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = (0, S.useRef)(null), _ = (0, S.useRef)(null), v = (0, S.useRef)(null), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = Cj(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), w = Cj(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), T = (0, S.useRef)(null), E = (0, S.useRef)(null), D = u?.mediaCounts ? u : null, O = Cj(T, E, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!D}`);
return (0, S.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
- }, [c]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(uI, {
- }, [c]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(kF, {
++ }, [c]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(pI, {
items: o,
hidden: !l,
actions: s
-- }), /* @__PURE__ */ (0, C.jsx)(hj, {
++ }), /* @__PURE__ */ (0, C.jsx)(vj, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@@ -46157,19 -44460,19 +46157,19 @@@
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- n ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(jSe, {
- n ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Oxe, {
++ n ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(OSe, {
keys: n,
view: t,
row: _,
glide: w,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, C.jsx)(lI, {}) : null] }) : null,
- D ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(kSe, {
- }), d ? /* @__PURE__ */ (0, C.jsx)(OF, {}) : null] }) : null,
- D ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Exe, {
++ }), d ? /* @__PURE__ */ (0, C.jsx)(fI, {}) : null] }) : null,
++ D ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(ESe, {
head: D,
row: E,
glide: O,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, C.jsx)(lI, {})] }) : null,
- }), /* @__PURE__ */ (0, C.jsx)(OF, {})] }) : null,
++ }), /* @__PURE__ */ (0, C.jsx)(fI, {})] }) : null,
/* @__PURE__ */ (0, C.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@@ -46190,11 -44493,11 +46190,11 @@@
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, C.jsx)(lI, {}) : null]
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, C.jsx)(OF, {}) : null]
++ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, C.jsx)(fI, {}) : null]
}), /* @__PURE__ */ (0, C.jsx)("div", {
ref: y,
"data-entity-tags": "",
-- children: l ? a.map((e) => /* @__PURE__ */ (0, C.jsxs)(gj, {
++ children: l ? a.map((e) => /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@@ -46203,17 -44506,17 +46203,17 @@@
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, C.jsx)(ASe, {
- }, e.k)) : u ? /* @__PURE__ */ (0, C.jsx)(Dxe, {
++ }, e.k)) : u ? /* @__PURE__ */ (0, C.jsx)(DSe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, C.jsx)(MSe, { ...e })
- bottom: /* @__PURE__ */ (0, C.jsx)(kxe, { ...e })
++ bottom: /* @__PURE__ */ (0, C.jsx)(kSe, { ...e })
})] });
}
- var OSe = [[
-var Txe = [[
++var TSe = [[
"videos",
"视频",
"play",
@@@ -46224,7 -44527,7 +46224,7 @@@
"pics",
"image"
]];
- function kSe({ head: e, row: t, glide: n, onMedia: r }) {
-function Exe({ head: e, row: t, glide: n, onMedia: r }) {
++function ESe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
ref: t,
role: "group",
@@@ -46232,7 -44535,7 +46232,7 @@@
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: OSe.map(([t, i, a, o]) => {
- children: Txe.map(([t, i, a, o]) => {
++ children: TSe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -46250,7 -44553,7 +46250,7 @@@
})
});
}
- function ASe({ head: e, actions: t }) {
-function Dxe({ head: e, actions: t }) {
++function DSe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -46260,10 -44563,10 +46260,10 @@@
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: qF(n) }
- dangerouslySetInnerHTML: { __html: fF(n) }
++ dangerouslySetInnerHTML: { __html: XF(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, C.jsx)(lI, {}) : null,
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, C.jsx)(OF, {}) : null,
-- e.tags.map((e) => /* @__PURE__ */ (0, C.jsxs)(gj, {
++ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, C.jsx)(fI, {}) : null,
++ e.tags.map((e) => /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@@ -46276,7 -44579,7 +46276,7 @@@
}, e.k))
] });
}
- function jSe({ keys: e, view: t, row: n, glide: r, onView: i }) {
-function Oxe({ keys: e, view: t, row: n, glide: r, onView: i }) {
++function OSe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@@ -46324,7 -44627,7 +46324,7 @@@
})
});
}
- function uI({ items: e, hidden: t, actions: n }) {
-function kF({ items: e, hidden: t, actions: n }) {
++function pI({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@@ -46344,7 -44647,7 +46344,7 @@@
})] }) : null
});
}
- function MSe(e) {
-function kxe(e) {
++function kSe(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, C.jsxs)("button", {
@@@ -46356,27 -44659,27 +46356,27 @@@
dangerouslySetInnerHTML: { __html: z("chevron-left") }
}), /* @__PURE__ */ (0, C.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(NSe, {
- /* @__PURE__ */ (0, C.jsx)(Axe, {
++ /* @__PURE__ */ (0, C.jsx)(ASe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, C.jsx)(LP, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, C.jsx)(PSe, {
- /* @__PURE__ */ (0, C.jsx)(jP, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, C.jsx)(jxe, {
++ /* @__PURE__ */ (0, C.jsx)(BP, { currentHref: () => location.pathname + location.search }),
++ t === "videos" && i ? /* @__PURE__ */ (0, C.jsx)(jSe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, C.jsx)(ISe, {
- t === "photos" && a ? /* @__PURE__ */ (0, C.jsx)(Nxe, {
++ t === "photos" && a ? /* @__PURE__ */ (0, C.jsx)(NSe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, C.jsx)(FSe, {
- t === "online" && e.online ? /* @__PURE__ */ (0, C.jsx)(Mxe, {
++ t === "online" && e.online ? /* @__PURE__ */ (0, C.jsx)(MSe, {
head: e.online,
actions: o
}) : null
] });
}
- function NSe({ text: e, busy: t }) {
-function Axe({ text: e, busy: t }) {
++function ASe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, C.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -46386,22 -44689,22 +46386,22 @@@
}) : e
});
}
- function dI({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, C.jsx)(MN, {
-function AF({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, C.jsx)(EN, {
++function mI({ name: e, label: t, value: n, options: r, onChange: i }) {
++ return /* @__PURE__ */ (0, C.jsx)(FN, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: HF,
- className: sF,
++ className: GF,
children: r.map(([e, t, n]) => {
- let r = wP(n);
- return /* @__PURE__ */ (0, C.jsx)(NN, {
- let r = vP(n);
- return /* @__PURE__ */ (0, C.jsx)(DN, {
++ let r = DP(n);
++ return /* @__PURE__ */ (0, C.jsx)(IN, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: UF,
- className: cF,
++ className: KF,
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: t,
className: "contents",
@@@ -46411,38 -44714,38 +46411,38 @@@
})
});
}
- function fI({ onPress: e, busy: t = !1 }) {
-function jF({ onPress: e, busy: t = !1 }) {
-- return /* @__PURE__ */ (0, C.jsx)(mj, {
++function hI({ onPress: e, busy: t = !1 }) {
++ return /* @__PURE__ */ (0, C.jsx)(_j, {
"data-entity-batch": "",
label: "换一批",
busy: t,
- icon: wP("shuffle"),
- icon: vP("shuffle"),
++ icon: DP("shuffle"),
onPress: e
});
}
- function PSe({ head: e, actions: t }) {
-function jxe({ head: e, actions: t }) {
-- let n = vD();
++function jSe({ head: e, actions: t }) {
++ let n = bD();
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(fI, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, C.jsx)(dI, {
- /* @__PURE__ */ (0, C.jsx)(jF, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, C.jsx)(AF, {
++ /* @__PURE__ */ (0, C.jsx)(hI, { onPress: () => void t.reshuffle() }),
++ e.jav && n === "cards" ? /* @__PURE__ */ (0, C.jsx)(mI, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, C.jsx)(WF, {}),
- n === "cards" ? /* @__PURE__ */ (0, C.jsx)(pI, {
- /* @__PURE__ */ (0, C.jsx)(lF, {}),
- n === "cards" ? /* @__PURE__ */ (0, C.jsx)(MF, {
++ /* @__PURE__ */ (0, C.jsx)(qF, {}),
++ n === "cards" ? /* @__PURE__ */ (0, C.jsx)(gI, {
sorts: e.sorts,
onSort: t.setSort
}) : null
]
});
}
- function pI({ sorts: e, onSort: t }) {
-function MF({ sorts: e, onSort: t }) {
++function gI({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, C.jsx)(C.Fragment, { children: e.map((e) => {
- let n = wP(e.dir === "asc" ? "arrow-up" : "arrow-down");
- let n = vP(e.dir === "asc" ? "arrow-up" : "arrow-down");
++ let n = DP(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@@ -46454,12 -44757,12 +46454,12 @@@
}, e.key);
}) });
}
- function FSe({ head: e, actions: t }) {
-function Mxe({ head: e, actions: t }) {
++function MSe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(fI, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(dI, {
- /* @__PURE__ */ (0, C.jsx)(jF, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(AF, {
++ /* @__PURE__ */ (0, C.jsx)(hI, { onPress: t.onlineShuffle }),
++ e.media === "images" ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(mI, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@@ -46479,27 -44782,27 +46479,27 @@@
dangerouslySetInnerHTML: { __html: z("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, C.jsx)(pI, {
- /* @__PURE__ */ (0, C.jsx)(MF, {
++ /* @__PURE__ */ (0, C.jsx)(gI, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
- function ISe({ head: e, actions: t, helpers: n }) {
-function Nxe({ head: e, actions: t, helpers: n }) {
++function NSe({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, S.useState)(!1), a = (0, S.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, S.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
}, [n, o]), /* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, C.jsx)(fI, {
- e.shuffle ? /* @__PURE__ */ (0, C.jsx)(jF, {
++ e.shuffle ? /* @__PURE__ */ (0, C.jsx)(hI, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, C.jsx)(dI, {
- /* @__PURE__ */ (0, C.jsx)(AF, {
++ /* @__PURE__ */ (0, C.jsx)(mI, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@@ -46515,34 -44818,34 +46515,34 @@@
}
//#endregion
//#region src/react/catalog-filter/catalog-filter-page.tsx
- var mI = "";
- function LSe(e) {
- let t = !e.tiers, n = WSe(e.comboHost);
-var NF = "";
-function Pxe(e) {
- let t = !e.tiers, n = Vxe(e.comboHost);
++var _I = "";
++function PSe(e) {
++ let t = !e.tiers, n = VSe(e.comboHost);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(uI, {
- n ? (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(kF, {
++ n ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(pI, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, C.jsx)(BSe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, C.jsx)(RSe, { ...e })
- /* @__PURE__ */ (0, C.jsx)(Lxe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, C.jsx)(Fxe, { ...e })
++ /* @__PURE__ */ (0, C.jsx)(LSe, { ...e }),
++ e.offscreen ? null : /* @__PURE__ */ (0, C.jsx)(FSe, { ...e })
]
});
}
- function RSe(e) {
-function Fxe(e) {
-- let { actions: t, helpers: n } = e, r = (0, S.useRef)(null), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = bj(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
++function FSe(e) {
++ let { actions: t, helpers: n } = e, r = (0, S.useRef)(null), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = Cj(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, S.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
- let l = !e.tiers, u = gI(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
- let l = !e.tiers, u = FF(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
++ let l = !e.tiers, u = yI(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, S.useLayoutEffect)(() => {
Wo(o.current, "tagbar");
-- }, [u]), /* @__PURE__ */ (0, C.jsx)(hj, {
++ }, [u]), /* @__PURE__ */ (0, C.jsx)(vj, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@@ -46585,17 -44888,17 +46585,17 @@@
}), /* @__PURE__ */ (0, C.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || l ? /* @__PURE__ */ (0, C.jsx)(hI, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, C.jsx)(zSe, {
- children: [e.empty || l ? /* @__PURE__ */ (0, C.jsx)(PF, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, C.jsx)(Ixe, {
++ children: [e.empty || l ? /* @__PURE__ */ (0, C.jsx)(vI, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, C.jsx)(ISe, {
tag: e,
onPress: t.toggleTag
}, e.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, C.jsx)(HSe, { ...e })
- bottom: e.trash ? null : /* @__PURE__ */ (0, C.jsx)(zxe, { ...e })
++ bottom: e.trash ? null : /* @__PURE__ */ (0, C.jsx)(zSe, { ...e })
});
}
- function zSe({ tag: e, onPress: t }) {
-function Ixe({ tag: e, onPress: t }) {
-- return /* @__PURE__ */ (0, C.jsxs)(gj, {
++function ISe({ tag: e, onPress: t }) {
++ return /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@@ -46606,12 -44909,12 +46606,12 @@@
})]
});
}
- function BSe(e) {
-function Lxe(e) {
++function LSe(e) {
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
- }, i = e.empty || !e.tiers, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useCallback)((e) => () => t.moreTops(e), [t]), c = gI(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = gI(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
- }, i = e.empty || !e.tiers, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useCallback)((e) => () => t.moreTops(e), [t]), c = FF(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = FF(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
++ }, i = e.empty || !e.tiers, a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useCallback)((e) => () => t.moreTops(e), [t]), c = yI(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = yI(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;
return (0, S.useEffect)(() => {
n.wireDrag(a.current), n.wireDrag(o.current);
}, [
@@@ -46624,7 -44927,7 +46624,7 @@@
children: [u ? /* @__PURE__ */ (0, C.jsx)("div", {
ref: a,
"data-catalog-tier": "performers",
- children: i ? /* @__PURE__ */ (0, C.jsx)(hI, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
- children: i ? /* @__PURE__ */ (0, C.jsx)(PF, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
++ children: i ? /* @__PURE__ */ (0, C.jsx)(vI, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@@ -46641,18 -44944,18 +46641,18 @@@
}) : null, d ? /* @__PURE__ */ (0, C.jsx)("div", {
ref: o,
"data-catalog-tier": "studios",
- children: i ? /* @__PURE__ */ (0, C.jsx)(hI, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
- children: i ? /* @__PURE__ */ (0, C.jsx)(PF, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
++ children: i ? /* @__PURE__ */ (0, C.jsx)(vI, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": e.name,
onClick: () => t.openEntity("studio", e.name),
- children: [/* @__PURE__ */ (0, C.jsx)(VSe, { studio: e }), e.name]
- children: [/* @__PURE__ */ (0, C.jsx)(Rxe, { studio: e }), e.name]
++ children: [/* @__PURE__ */ (0, C.jsx)(RSe, { studio: e }), e.name]
}, e.name))
}) : null]
});
}
- function VSe({ studio: e }) {
-function Rxe({ studio: e }) {
++function RSe({ studio: e }) {
let [t, n] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsx)("span", {
"data-tier-mark": "",
@@@ -46666,7 -44969,7 +46666,7 @@@
}) : e.fallback
});
}
- function hI({ kind: e }) {
-function PF({ kind: e }) {
++function vI({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-catalog-placeholder": "tag",
@@@ -46682,37 -44985,37 +46682,37 @@@
children: [/* @__PURE__ */ (0, C.jsx)("span", {}), /* @__PURE__ */ (0, C.jsx)("span", { children: "\xA0" })]
}, t)) });
}
- function HSe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
-function zxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
-- let a = vD(), [o, s] = (0, S.useState)(!1);
++function zSe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
++ let a = bD(), [o, s] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, C.jsx)(USe, { count: e }), /* @__PURE__ */ (0, C.jsx)(LP, { currentHref: i.currentHref })]
- children: [/* @__PURE__ */ (0, C.jsx)(Bxe, { count: e }), /* @__PURE__ */ (0, C.jsx)(jP, { currentHref: i.currentHref })]
++ children: [/* @__PURE__ */ (0, C.jsx)(BSe, { count: e }), /* @__PURE__ */ (0, C.jsx)(BP, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(fI, {
- /* @__PURE__ */ (0, C.jsx)(jF, {
++ /* @__PURE__ */ (0, C.jsx)(hI, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, C.jsx)(dI, {
- n && a === "cards" ? /* @__PURE__ */ (0, C.jsx)(AF, {
++ n && a === "cards" ? /* @__PURE__ */ (0, C.jsx)(mI, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, C.jsx)(WF, {}),
- /* @__PURE__ */ (0, C.jsx)(_Se, {}),
- a === "cards" ? /* @__PURE__ */ (0, C.jsx)(pI, {
- /* @__PURE__ */ (0, C.jsx)(lF, {}),
- /* @__PURE__ */ (0, C.jsx)(pxe, {}),
- a === "cards" ? /* @__PURE__ */ (0, C.jsx)(MF, {
++ /* @__PURE__ */ (0, C.jsx)(qF, {}),
++ /* @__PURE__ */ (0, C.jsx)(mSe, {}),
++ a === "cards" ? /* @__PURE__ */ (0, C.jsx)(gI, {
sorts: r,
onSort: i.setSort
}) : null
]
})] });
}
- function USe({ count: e }) {
-function Bxe({ count: e }) {
++function BSe({ count: e }) {
let t = (0, S.useRef)(null), n = (0, S.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : "";
return (0, S.useLayoutEffect)(() => {
if (e === !1) return;
@@@ -46721,7 -45024,7 +46721,7 @@@
return;
}
let i = t.current;
- i && (mI && i.dataset.popCount === void 0 && (i.dataset.popCount = mI), mI = r, Vo(i, r));
- i && (NF && i.dataset.popCount === void 0 && (i.dataset.popCount = NF), NF = r, Vo(i, r));
++ i && (_I && i.dataset.popCount === void 0 && (i.dataset.popCount = _I), _I = r, Vo(i, r));
}, [e, r]), e === !1 ? /* @__PURE__ */ (0, C.jsx)("span", { "data-catalog-readout": "" }, "failed") : e ? /* @__PURE__ */ (0, C.jsx)("span", {
ref: t,
"data-catalog-readout": "",
@@@ -46737,7 -45040,7 +46737,7 @@@
})
}, "skeleton");
}
- function WSe(e) {
-function Vxe(e) {
++function VSe(e) {
let [t, n] = (0, S.useState)(null);
return (0, S.useLayoutEffect)(() => {
if (!e) return;
@@@ -46747,7 -45050,7 +46747,7 @@@
};
}, [e]), t;
}
- function gI(e, t, n, r, i) {
-function FF(e, t, n, r, i) {
++function yI(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@@ -46787,7 -45090,7 +46787,7 @@@
}
//#endregion
//#region src/react/components/grid-reveal.tsx
- function _I(e, t) {
-function IF(e, t) {
++function bI(e, t) {
let [n, r] = (0, S.useState)(e ? "skeleton" : "none"), [i] = (0, S.useState)(() => e ? t() : ""), a = (0, S.useRef)(null);
return (0, S.useLayoutEffect)(() => {
a.current && ns(a.current);
@@@ -46813,7 -45116,7 +46813,7 @@@
fading: n === "fade"
};
}
- function vI({ message: e, onRetry: t }) {
-function LF({ message: e, onRetry: t }) {
++function xI({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@@ -46827,7 -45130,7 +46827,7 @@@
}
//#endregion
//#region src/react/components/art-slot.tsx
- function yI({ artwork: e, identity: t = e.html, relayout: n }) {
-function RF({ artwork: e, identity: t = e.html, relayout: n }) {
++function SI({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, S.useState)({
identity: t,
artwork: e
@@@ -46847,7 -45150,7 +46847,7 @@@
}
//#endregion
//#region src/react/components/row-click.ts
- var GSe = [
-var Hxe = [
++var HSe = [
"a",
"button",
"input",
@@@ -46860,46 -45163,46 +46860,46 @@@
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
- function bI(e, t) {
-function zF(e, t) {
++function CI(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(GSe);
- let r = n.closest(Hxe);
++ let r = n.closest(HSe);
return !r || !t.contains(r) || r === t;
}
- function xI(e) {
-function BF(e) {
++function wI(e) {
e.shiftKey && e.preventDefault();
}
//#endregion
//#region src/react/components/media-card.tsx
- var KSe = 9 / 16, SI = "未命名视频";
- function CI({ name: e }) {
-var Uxe = 9 / 16, VF = "未命名视频";
-function HF({ name: e }) {
++var USe = 9 / 16, TI = "未命名视频";
++function EI({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- var qSe = {
-var Wxe = {
++var WSe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
- }, JSe = {
-}, Gxe = {
++}, GSe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
- function wI({ item: e }) {
-function UF({ item: e }) {
++function DI({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && JSe[e.disposal_reason] || "原因未记录";
- let t = e.disposal_reason && Gxe[e.disposal_reason] || "原因未记录";
++ let t = e.disposal_reason && GSe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
- function TI({ item: e, actions: t }) {
-function WF({ item: e, actions: t }) {
++function OI({ item: e, actions: t }) {
let [n, r] = (0, S.useState)(!1), [i, a] = (0, S.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -46918,10 -45221,10 +46918,10 @@@
children: i
}) : null] });
}
- function EI(e, t, n) {
- return t === "short" ? KSe : ME(n);
-function GF(e, t, n) {
- return t === "short" ? Uxe : ME(n);
++function kI(e, t, n) {
++ return t === "short" ? USe : PE(n);
}
- function YSe(e) {
-function Kxe(e) {
++function KSe(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Aa(e), s = i[0] || "", c = ga(e);
return {
avatar: r ? /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -46950,7 -45253,7 +46950,7 @@@
"data-media-who": "",
"data-entity-kind": "performer",
"data-entity-name": s,
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: s })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: s })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: s })]
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@@ -46959,16 -45262,16 +46959,16 @@@
"data-media-who": "",
"data-entity-kind": t,
"data-entity-name": n,
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
}) : /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
})
};
}
- function XSe() {
-function qxe() {
++function qSe() {
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@@ -46987,7 -45290,7 +46987,7 @@@
})]
});
}
- function ZSe({ item: e, actions: t }) {
-function Jxe({ item: e, actions: t }) {
++function JSe({ item: e, actions: t }) {
let [n, r] = (0, S.useState)(null), [i, a] = (0, S.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-media-later": "",
@@@ -47005,21 -45308,21 +47005,21 @@@
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: o ? "check" : "bookmark-plus" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: o ? "check" : "bookmark-plus" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: o ? "check" : "bookmark-plus" })
})
});
}
- function DI(e, t) {
-function KF(e, t) {
++function AI(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 QSe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
-function Yxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
++function YSe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {
let l = (0, S.useRef)(null), u = (0, S.useRef)(e);
u.current = e;
let d = (0, S.useCallback)((e) => {
let t = u.current;
l.current && l.current !== e && Tc(l.current), l.current = e, e && (!t.medium || t.medium === "video") && Dc(e, t);
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = Ea(e, h, !1, n.javImage), _ = h === "small" ? g.html : Ea(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || SI, b = o.titleHtml(e, v).trim() || B(SI), x = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = YSe(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = Ea(e, h, !1, n.javImage), _ = h === "small" ? g.html : Ea(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || VF, b = o.titleHtml(e, v).trim() || B(VF), x = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = Kxe(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
++ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = Ea(e, h, !1, n.javImage), _ = h === "small" ? g.html : Ea(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v).trim() || TI, b = o.titleHtml(e, v).trim() || B(TI), x = f?.total_size ?? e.size, w = f?.total_duration ?? e.duration, T = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: E, who: D } = KSe(e), O = (e.follow_tags || e.tags || []).slice(0, 3), k = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.watch_later && "later"
@@@ -47048,9 -45351,9 +47048,9 @@@
u && r.contains(u) ? s.toggleTag(u.dataset.tag || "") : c(e, r);
}, j = /* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(EI(e, t, n)) },
- style: { "--card-ratio": String(GF(e, t, n)) },
++ style: { "--card-ratio": String(kI(e, t, n)) },
children: [
- g.html ? /* @__PURE__ */ (0, C.jsx)(yI, {
- g.html ? /* @__PURE__ */ (0, C.jsx)(RF, {
++ g.html ? /* @__PURE__ */ (0, C.jsx)(SI, {
artwork: g,
identity: _,
relayout: (e) => vc(e, h)
@@@ -47064,11 -45367,11 +47064,11 @@@
}),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: "check" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: "check" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: "check" })
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
}),
f && !p ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-group": "",
@@@ -47081,9 -45384,9 +47081,9 @@@
}) : null,
/* @__PURE__ */ (0, C.jsx)("span", {
"data-media-duration": "",
- children: an(w)
+ children: rn(w)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, C.jsx)(TI, {
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, C.jsx)(WF, {
++ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, C.jsx)(OI, {
item: e,
actions: s
}) : null,
@@@ -47099,8 -45402,8 +47099,8 @@@
"data-media-scrub": "",
children: /* @__PURE__ */ (0, C.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, C.jsx)(XSe, {}),
- i ? null : /* @__PURE__ */ (0, C.jsx)(ZSe, {
- /* @__PURE__ */ (0, C.jsx)(qxe, {}),
- i ? null : /* @__PURE__ */ (0, C.jsx)(Jxe, {
++ /* @__PURE__ */ (0, C.jsx)(qSe, {}),
++ i ? null : /* @__PURE__ */ (0, C.jsx)(JSe, {
item: e,
actions: s
}),
@@@ -47110,27 -45413,27 +47110,27 @@@
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), DI(l.current, -a);
- e.stopPropagation(), KF(l.current, -a);
++ e.stopPropagation(), AI(l.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: "rotate-ccw" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: "rotate-ccw" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), DI(l.current, a);
- e.stopPropagation(), KF(l.current, a);
++ e.stopPropagation(), AI(l.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: "rotate-cw" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: "rotate-cw" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: "expand" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: "expand" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: "expand" })
})
]
})
@@@ -47147,7 -45450,7 +47147,7 @@@
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: A,
- onMouseDown: xI,
- onMouseDown: BF,
++ onMouseDown: wI,
children: [
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -47185,11 -45488,11 +47185,11 @@@
e.is_jav && e.release_date ? /* @__PURE__ */ (0, C.jsxs)("time", {
"data-media-release": "",
dateTime: e.release_date,
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "calendar" }), e.release_date]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "calendar" }), e.release_date]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "calendar" }), e.release_date]
}) : null,
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "hard-drive" }), Number(x) > 0 ? on(Number(x)) : "大小未知"]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "hard-drive" }), Number(x) > 0 ? sn(Number(x)) : "大小未知"]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "hard-drive" }), Number(x) > 0 ? on(Number(x)) : "大小未知"]
}),
e.play_count ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-watch-count": "",
@@@ -47211,15 -45514,15 +47211,15 @@@
children: o.tagLabel(t)
}, t))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(wI, { item: e })
- /* @__PURE__ */ (0, C.jsx)(UF, { item: e })
++ /* @__PURE__ */ (0, C.jsx)(DI, { item: e })
]
})]
})
]
});
}
- function $Se({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, S.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : qSe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
-function Xxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, S.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Wxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
++function XSe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
++ let o = (0, S.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : WSe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, C.jsxs)("article", {
ref: o,
"data-media-card": "",
@@@ -47231,14 -45534,14 +47231,14 @@@
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: xI,
- onMouseDown: BF,
++ onMouseDown: wI,
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: u }), /* @__PURE__ */ (0, C.jsx)("b", { children: l })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: u }), /* @__PURE__ */ (0, C.jsx)("b", { children: l })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: u }), /* @__PURE__ */ (0, C.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-art": "thumb",
@@@ -47250,13 -45553,13 +47250,13 @@@
}),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: "check" })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: "check" })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: "check" })
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, C.jsx)(CI, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
- children: [/* @__PURE__ */ (0, C.jsx)(HF, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
++ children: [/* @__PURE__ */ (0, C.jsx)(EI, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, C.jsx)(TI, {
- n ? null : /* @__PURE__ */ (0, C.jsx)(WF, {
++ n ? null : /* @__PURE__ */ (0, C.jsx)(OI, {
item: e,
actions: i
})
@@@ -47267,7 -45570,7 +47267,7 @@@
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, C.jsx)(CI, { name: u })
- children: /* @__PURE__ */ (0, C.jsx)(HF, { name: u })
++ children: /* @__PURE__ */ (0, C.jsx)(EI, { name: u })
}), /* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-text": "",
children: [
@@@ -47295,29 -45598,29 +47295,29 @@@
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, C.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, C.jsx)(wI, { item: e })
- /* @__PURE__ */ (0, C.jsx)(UF, { item: e })
++ /* @__PURE__ */ (0, C.jsx)(DI, { item: e })
]
})]
})]
});
}
- function eCe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, C.jsx)($Se, { ...e }) : /* @__PURE__ */ (0, C.jsx)(QSe, { ...e });
-function Zxe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, C.jsx)(Xxe, { ...e }) : /* @__PURE__ */ (0, C.jsx)(Yxe, { ...e });
++function ZSe(e) {
++ return e.variant === "resource" ? /* @__PURE__ */ (0, C.jsx)(XSe, { ...e }) : /* @__PURE__ */ (0, C.jsx)(YSe, { ...e });
}
- var OI = (0, S.memo)(eCe), tCe = 1100, nCe = 340, rCe = 5e3;
- function iCe(e, t, n) {
-var qF = (0, S.memo)(Zxe), Qxe = 1100, $xe = 340, eSe = 5e3;
-function tSe(e, t, n) {
++var jI = (0, S.memo)(ZSe), QSe = 1100, $Se = 340, eCe = 5e3;
++function tCe(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, rCe);
- }, s = () => o(!1), c = setTimeout(s, eSe);
++ }, s = () => o(!1), c = setTimeout(s, eCe);
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 kI({ load: e, canFlip: t, referrerPolicy: n }) {
-function JF({ load: e, canFlip: t, referrerPolicy: n }) {
++function MI({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, S.useState)([]), [a, o] = (0, S.useState)(0), [s, c] = (0, S.useState)(null), l = (0, S.useRef)({
live: !1,
generation: 0,
@@@ -47359,11 -45662,11 +47359,11 @@@
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => iCe(t, e, n)));
- let s = await Promise.all(a.map((t) => tSe(t, e, n)));
++ let s = await Promise.all(a.map((t) => tCe(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, tCe);
- p(), e.cycle = setInterval(p, Qxe);
++ p(), e.cycle = setInterval(p, QSe);
}));
};
return (0, S.useEffect)(() => d, [d]), {
@@@ -47372,7 -45675,7 +47372,7 @@@
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(nCe, () => {
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f($xe, () => {
++ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f($Se, () => {
e.armed = null, m();
});
},
@@@ -47383,8 -45686,8 +47383,8 @@@
}
//#endregion
//#region src/react/components/mix-card.tsx
- var AI = wP("play");
- function aCe({ src: e }) {
-var YF = vP("play");
-function nSe({ src: e }) {
++var NI = DP("play");
++function nCe({ src: e }) {
let [t, n] = (0, S.useState)(!1);
return t ? null : /* @__PURE__ */ (0, C.jsx)("img", {
"data-mix-poster": "",
@@@ -47397,8 -45700,8 +47397,8 @@@
className: "absolute inset-0 block size-full object-contain"
});
}
- var jI = "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 oCe({ faces: e, fallback: t, onOpenEntity: n }) {
-var XF = "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 rSe({ faces: e, fallback: t, onOpenEntity: n }) {
++var PI = "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 rCe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, C.jsx)("button", {
@@@ -47406,18 -45709,18 +47406,18 @@@
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${jI} cursor-pointer outline-none`,
- className: `${XF} cursor-pointer outline-none`,
++ className: `${PI} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: va(e.name, e, ta(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, C.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${jI} mt-0.5`,
- className: `${XF} mt-0.5`,
++ className: `${PI} mt-0.5`,
children: t
});
}
- function MI({ 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 = kI({
-function ZF({ 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 = JF({
++function FI({ 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 = MI({
load: i,
canFlip: a
}), x = (0, S.useRef)(b.onPointerLeave);
@@@ -47444,11 -45747,11 +47444,11 @@@
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, C.jsx)(yI, {
- f?.html ? /* @__PURE__ */ (0, C.jsx)(RF, {
++ f?.html ? /* @__PURE__ */ (0, C.jsx)(SI, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, C.jsx)(aCe, { src: r }, r) : /* @__PURE__ */ (0, C.jsx)("span", {
- }) : r ? /* @__PURE__ */ (0, C.jsx)(nSe, { src: r }, r) : /* @__PURE__ */ (0, C.jsx)("span", {
++ }) : r ? /* @__PURE__ */ (0, C.jsx)(nCe, { src: r }, r) : /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@@ -47478,7 -45781,7 +47478,7 @@@
/* @__PURE__ */ (0, C.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, C.jsx)(AI, {
- children: [/* @__PURE__ */ (0, C.jsx)(YF, {
++ children: [/* @__PURE__ */ (0, C.jsx)(NI, {
"aria-hidden": !0,
className: "size-3.75"
}), g ?? `${n.toLocaleString()} 个视频`]
@@@ -47491,10 -45794,10 +47491,10 @@@
_ ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, C.jsx)(AI, {})
- }) : /* @__PURE__ */ (0, C.jsx)(oCe, {
- children: /* @__PURE__ */ (0, C.jsx)(YF, {})
- }) : /* @__PURE__ */ (0, C.jsx)(rSe, {
++ children: /* @__PURE__ */ (0, C.jsx)(NI, {})
++ }) : /* @__PURE__ */ (0, C.jsx)(rCe, {
faces: o,
- fallback: dn(e),
+ fallback: un(e),
onOpenEntity: s
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -47516,7 -45819,7 +47516,7 @@@
}
//#endregion
//#region src/react/video-wall/folia/blockReflows.ts
- var sCe = [
-var iSe = [
++var iCe = [
[
[
{
@@@ -51077,7 -49380,7 +51077,7 @@@
}
]
]
- ], NI = [
-], QF = [
++], II = [
[
{
x: 0,
@@@ -51374,89 -49677,89 +51374,89 @@@
rows: 2
}
]
- ], PI = (e) => e.map((e) => ({
-], $F = (e) => e.map((e) => ({
++], LI = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
- })), FI = (e) => e.map((e) => ({
-})), eI = (e) => e.map((e) => ({
++})), RI = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
- })), II = [
-})), tI = [
++})), zI = [
(e) => e,
- PI,
- FI,
- (e) => PI(FI(e))
- ], LI = NI.flatMap((e) => II.map((t) => t(e))), cCe = sCe.flatMap((e) => II.map((t) => e.map(t)));
- LI.length;
- var lCe = (e, t) => {
- $F,
- eI,
- (e) => $F(eI(e))
-], nI = QF.flatMap((e) => tI.map((t) => t(e))), aSe = iSe.flatMap((e) => tI.map((t) => e.map(t)));
-nI.length;
-var oSe = (e, t) => {
++ LI,
++ RI,
++ (e) => LI(RI(e))
++], BI = II.flatMap((e) => zI.map((t) => t(e))), aCe = iCe.flatMap((e) => zI.map((t) => e.map(t)));
++BI.length;
++var oCe = (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;
- }, RI = (e, t) => {
- let n = NI.length;
- return ((e + t * 2) % n + n) % n * II.length + lCe(e, t) % II.length;
- }, uCe = (e, t) => LI[RI(e, t)], dCe = (e, t, n) => n < 0 || n >= 12 ? null : cCe[RI(e, t)][n], zI = 103.36, BI = 6.08, VI = 12 * zI, HI = 8 * zI, UI = 12, WI = (e, t) => (e % t + t) % t, fCe = (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 GI(e, t) {
- let n = Math.max(1, Math.ceil(e / UI)), r = t ? 3 : Math.min(3, n);
-}, rI = (e, t) => {
- let n = QF.length;
- return ((e + t * 2) % n + n) % n * tI.length + oSe(e, t) % tI.length;
-}, sSe = (e, t) => nI[rI(e, t)], cSe = (e, t, n) => n < 0 || n >= 12 ? null : aSe[rI(e, t)][n], iI = 103.36, aI = 6.08, oI = 12 * iI, sI = 8 * iI, cI = 12, lI = (e, t) => (e % t + t) % t, lSe = (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 uI(e, t) {
- let n = Math.max(1, Math.ceil(e / cI)), r = t ? 3 : Math.min(3, n);
++}, VI = (e, t) => {
++ let n = II.length;
++ return ((e + t * 2) % n + n) % n * zI.length + oCe(e, t) % zI.length;
++}, sCe = (e, t) => BI[VI(e, t)], cCe = (e, t, n) => n < 0 || n >= 12 ? null : aCe[VI(e, t)][n], HI = 103.36, UI = 6.08, WI = 12 * HI, GI = 8 * HI, KI = 12, qI = (e, t) => (e % t + t) % t, lCe = (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 JI(e, t) {
++ let n = Math.max(1, Math.ceil(e / KI)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * VI,
- height: Math.ceil(n / r) * HI
- width: r * oI,
- height: Math.ceil(n / r) * sI
++ width: r * WI,
++ height: Math.ceil(n / r) * GI
};
}
- function KI(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = uCe(e, t)[n];
-function dI(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = sSe(e, t)[n];
++function YI(e, t, n) {
++ let { x: r, y: i, cols: a, rows: o } = sCe(e, t)[n];
return {
- x: e * VI + r * zI,
- y: t * HI + i * zI,
- width: a * zI - BI,
- height: o * zI - BI
- x: e * oI + r * iI,
- y: t * sI + i * iI,
- width: a * iI - aI,
- height: o * iI - aI
++ x: e * WI + r * HI,
++ y: t * GI + i * HI,
++ width: a * HI - UI,
++ height: o * HI - UI
};
}
- function pCe(e) {
-function uSe(e) {
++function uCe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
- function qI(e, t, n) {
-function fI(e, t, n) {
++function XI(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 >= UI) return null;
- let o = GI(e, t), s = o.height / HI;
- ].every(Number.isInteger) || a < 0 || a >= cI) return null;
- let o = uI(e, t), s = o.height / sI;
++ ].every(Number.isInteger) || a < 0 || a >= KI) return null;
++ let o = JI(e, t), s = o.height / GI;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : WI(r, o.columns), l = ((t ? i : WI(i, s)) * o.columns + c) * UI + a;
- let c = t ? r : lI(r, o.columns), l = ((t ? i : lI(i, s)) * o.columns + c) * cI + a;
++ let c = t ? r : qI(r, o.columns), l = ((t ? i : qI(i, s)) * o.columns + c) * KI + a;
return t && l >= e ? null : {
- ...KI(r, i, a),
- ...dI(r, i, a),
++ ...YI(r, i, a),
index: l % e,
key: n
};
}
- function mCe(e, t) {
-function dSe(e, t) {
++function dCe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / UI);
- return qI(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % UI}`);
- let n = Math.floor(t / cI);
- return fI(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % cI}`);
++ let n = Math.floor(t / KI);
++ return XI(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % KI}`);
}
- function JI(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = dCe(r, i, a);
-function pI(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = cSe(r, i, a);
++function ZI(e, t, n) {
++ let [r, i, a] = n.key.split(":").map(Number), o = cCe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * VI + e.x * zI,
- y: i * HI + e.y * zI,
- width: e.cols * zI - BI,
- height: e.rows * zI - BI
- x: r * oI + e.x * iI,
- y: i * sI + e.y * iI,
- width: e.cols * iI - aI,
- height: e.rows * iI - aI
++ x: r * WI + e.x * HI,
++ y: i * GI + e.y * HI,
++ width: e.cols * HI - UI,
++ height: e.rows * HI - UI
}]));
}
- function hCe(e) {
-function fSe(e) {
++function fCe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / UI), i = KI(e % 3, Math.floor(e / 3), r % UI);
- let e = Math.floor(r / cI), i = dI(e % 3, Math.floor(e / 3), r % cI);
++ let e = Math.floor(r / KI), i = YI(e % 3, Math.floor(e / 3), r % KI);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * VI - BI : t,
- width: e >= 36 ? 3 * oI - aI : t,
++ width: e >= 36 ? 3 * WI - UI : t,
height: n
};
}
- function gCe(e, t, n, r) {
-function pSe(e, t, n, r) {
++function pCe(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 {
@@@ -51465,22 -49768,22 +51465,22 @@@
y: i(e.y, n.height, t.height)
};
}
- function _Ce(e, t, n, r) {
-function mSe(e, t, n, r) {
++function mCe(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 = GI(e, t), s = o.height / HI, c = [];
- for (let n = Math.floor(a.y / HI); n <= Math.floor((a.y + a.height) / HI); n += 1) for (let r = Math.floor(a.x / VI); r <= Math.floor((a.x + a.width) / VI); r += 1) {
- }, o = uI(e, t), s = o.height / sI, c = [];
- for (let n = Math.floor(a.y / sI); n <= Math.floor((a.y + a.height) / sI); n += 1) for (let r = Math.floor(a.x / oI); r <= Math.floor((a.x + a.width) / oI); r += 1) {
++ }, o = JI(e, t), s = o.height / GI, c = [];
++ for (let n = Math.floor(a.y / GI); n <= Math.floor((a.y + a.height) / GI); n += 1) for (let r = Math.floor(a.x / WI); r <= Math.floor((a.x + a.width) / WI); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : WI(r, o.columns), l = t ? n : WI(n, s);
- for (let s = 0; s < UI; s += 1) {
- let u = (l * o.columns + i) * UI + s;
- let i = t ? r : lI(r, o.columns), l = t ? n : lI(n, s);
- for (let s = 0; s < cI; s += 1) {
- let u = (l * o.columns + i) * cI + s;
++ let i = t ? r : qI(r, o.columns), l = t ? n : qI(n, s);
++ for (let s = 0; s < KI; s += 1) {
++ let u = (l * o.columns + i) * KI + s;
if (t && u >= e) continue;
- let d = KI(r, n, s);
- fCe(d, a) && c.push({
- let d = dI(r, n, s);
- lSe(d, a) && c.push({
++ let d = YI(r, n, s);
++ lCe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@@ -51489,7 -49792,7 +51489,7 @@@
}
return c;
}
- var vCe = class {
-var hSe = class {
++var hCe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@@ -51501,7 -49804,7 +51501,7 @@@
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : qI(t, !1, e);
- let n = this.positions.get(e), r = n === void 0 ? null : fI(t, !1, e);
++ let n = this.positions.get(e), r = n === void 0 ? null : XI(t, !1, e);
return r ? {
...r,
index: n
@@@ -51531,7 -49834,7 +51531,7 @@@
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * VI,
- x: (e + 2) * oI,
++ x: (e + 2) * WI,
y: 0
};
}
@@@ -51544,10 -49847,10 +51544,10 @@@
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / VI)}:0:0`;
- let a = this.fresh(), o = `${Math.round(a.x / oI)}:0:0`;
++ let a = this.fresh(), o = `${Math.round(a.x / WI)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
- }, YI = [
-}, mI = [
++}, QI = [
"q",
"performer",
"series",
@@@ -51562,17 -49865,17 +51562,17 @@@
"dur_max",
"region"
];
- function yCe(e = {}) {
- return YI.some((t) => !!e[t]);
-function gSe(e = {}) {
- return mI.some((t) => !!e[t]);
++function gCe(e = {}) {
++ return QI.some((t) => !!e[t]);
}
//#endregion
//#region src/react/video-wall/use-wall-camera.ts
- var XI = {
-var hI = {
++var $I = {
x: 16,
y: 16,
scale: 1
};
- function bCe(e, t, n = XI, r = !1) {
-function _Se(e, t, n = hI, r = !1) {
++function _Ce(e, t, n = $I, r = !1) {
let i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)({
width: 0,
height: 0
@@@ -51592,7 -49895,7 +51592,7 @@@
let f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = (0, S.useRef)(!1), h = (0, S.useRef)(null), g = (0, S.useCallback)(() => {
p.current?.stop(), p.current = null, f.current !== null && cancelAnimationFrame(f.current), f.current = null;
}, []), _ = (0, S.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = gCe(e, o.current, hCe(r), c && !f && !n);
- let { count: r, finite: c, focused: f } = d.current, p = pSe(e, o.current, fSe(r), c && !f && !n);
++ let { count: r, finite: c, focused: f } = d.current, p = pCe(e, o.current, fCe(r), c && !f && !n);
s.current = p;
let m = window.devicePixelRatio || 1;
a.current && (a.current.style.transform = `translate3d(${Math.round(p.x * m) / m}px, ${Math.round(p.y * m) / m}px, 0) scale(${p.scale})`), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y));
@@@ -51692,7 -49995,7 +51692,7 @@@
},
snapshot: () => ({ ...s.current }),
reset: () => {
- g(), _({ ...XI }, !0);
- g(), _({ ...hI }, !0);
++ g(), _({ ...$I }, !0);
},
pan: (e, t) => {
g(), _({
@@@ -51754,17 -50057,17 +51754,17 @@@
}
//#endregion
//#region src/react/video-wall/wall-motion.ts
- var xCe = {
-var vSe = {
++var vCe = {
type: "spring",
stiffness: 300,
damping: 34
- }, SCe = {
-}, ySe = {
++}, yCe = {
delay: .14,
duration: .24
};
//#endregion
//#region src/react/video-wall/use-wall-playback.ts
- function CCe(e, t, n) {
-function bSe(e, t, n) {
++function bCe(e, t, n) {
let [r, i] = (0, S.useState)({
paused: !0,
time: 0,
@@@ -51806,8 -50109,8 +51806,8 @@@
}
//#endregion
//#region src/react/video-wall/wall-controls.tsx
- function wCe({ 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 = H_(), x = CCe(t, n, v), S = x.duration || Number(e.duration) || 0, w = r || i, T = !t || x.paused, E = async () => {
-function xSe({ 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 = B_(), x = bSe(t, n, v), S = x.duration || Number(e.duration) || 0, w = r || i, T = !t || x.paused, E = async () => {
++function xCe({ 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 = H_(), x = bCe(t, n, v), S = x.duration || Number(e.duration) || 0, w = r || i, T = !t || x.paused, E = async () => {
if (!(w || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
@@@ -51824,7 -50127,7 +51824,7 @@@
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : SCe,
- transition: b ? { duration: 0 } : ySe,
++ transition: b ? { duration: 0 } : yCe,
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@@ -51929,7 -50232,7 +51929,7 @@@
}
//#endregion
//#region src/react/components/mix-queue.tsx
- function ZI({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
-function gI({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
++function eL({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, S.useRef)(null), l = (0, S.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@@ -51965,7 -50268,7 +51965,7 @@@
})]
});
}
- function QI({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
-function _I({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
++function tL({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, C.jsx)("span", {
"data-mix-item-text": "",
children: a
@@@ -51988,7 -50291,7 +51988,7 @@@
}), r]
});
}
- var TCe = ({ label: e, count: t }) => /* @__PURE__ */ (0, C.jsxs)("h3", {
-var SSe = ({ label: e, count: t }) => /* @__PURE__ */ (0, C.jsxs)("h3", {
++var SCe = ({ label: e, count: t }) => /* @__PURE__ */ (0, C.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@@ -51998,29 -50301,29 +51998,29 @@@
});
//#endregion
//#region src/react/video-wall/wall-queue.tsx
- function ECe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
-function CSe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
++function CCe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, C.jsx)(ZI, {
- children: /* @__PURE__ */ (0, C.jsx)(gI, {
++ children: /* @__PURE__ */ (0, C.jsx)(eL, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(QI, {
- children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(_I, {
++ children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(tL, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
-- e.part_label ? MD(e.part_label) : "",
++ e.part_label ? PD(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, C.jsx)(yI, { artwork: Ea(e, "small", !0, "cover") }),
- pic: /* @__PURE__ */ (0, C.jsx)(RF, { artwork: Ea(e, "small", !0, "cover") }),
++ pic: /* @__PURE__ */ (0, C.jsx)(SI, { artwork: Ea(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, C.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, C.jsx)("span", { children: [
e.edition_label,
-- e.part_label ? MD(e.part_label) : "",
- an(e.duration)
++ e.part_label ? PD(e.part_label) : "",
+ rn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
})
@@@ -52028,7 -50331,7 +52028,7 @@@
}
//#endregion
//#region src/react/video-wall/wall-route.ts
- function DCe(e = `${location.pathname}${location.search}`, t = {}) {
-function wSe(e = `${location.pathname}${location.search}`, t = {}) {
++function wCe(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",
@@@ -52043,18 -50346,18 +52043,18 @@@
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
- function OCe(e = `${location.pathname}${location.search}`) {
-function TSe(e = `${location.pathname}${location.search}`) {
++function TCe(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of YI) t.delete(e);
- for (let e of mI) t.delete(e);
++ for (let e of QI) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
- function $I() {
-function vI() {
-- let e = new URLSearchParams(Sk.navigation.location.search).get("returnTo") || "/";
-- Sk.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
++function nL() {
++ let e = new URLSearchParams(wk.navigation.location.search).get("returnTo") || "/";
++ wk.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
//#endregion
//#region src/react/video-wall/video-wall.tsx
- var eL = /* @__PURE__ */ new Map(), tL = (0, S.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
-var yI = /* @__PURE__ */ new Map(), bI = (0, S.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
++var rL = /* @__PURE__ */ new Map(), iL = (0, S.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
let i = Ea(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
@@@ -52067,7 -50370,7 +52067,7 @@@
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, C.jsx)(yI, {
- children: /* @__PURE__ */ (0, C.jsx)(RF, {
++ children: /* @__PURE__ */ (0, C.jsx)(SI, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && oc(e);
@@@ -52075,27 -50378,27 +52075,27 @@@
})
});
});
- function kCe({ 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 ESe({ 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 ECe({ 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, S.useState)(() => {
- let e = eL.get(f);
- let e = yI.get(f);
++ let e = rL.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, S.useState)(() => m?.exploration || new vCe()), g = (0, S.useRef)(!1), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = (0, S.useRef)(null), w = (0, S.useRef)(null), T = (0, S.useRef)(null), [E, D] = (0, S.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [O, k] = (0, S.useState)(m?.selectedKey || ""), [A, j] = (0, S.useState)(m?.sourceId || null), [M, N] = (0, S.useState)(!1), P = E?.edition_group ? {
- }), [h] = (0, S.useState)(() => m?.exploration || new hSe()), g = (0, S.useRef)(!1), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = (0, S.useRef)(null), w = (0, S.useRef)(null), T = (0, S.useRef)(null), [E, D] = (0, S.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [O, k] = (0, S.useState)(m?.selectedKey || ""), [A, j] = (0, S.useState)(m?.sourceId || null), [M, N] = (0, S.useState)(!1), P = E?.edition_group ? {
++ }), [h] = (0, S.useState)(() => m?.exploration || new hCe()), g = (0, S.useRef)(!1), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(null), b = (0, S.useRef)(null), x = (0, S.useRef)(null), w = (0, S.useRef)(null), T = (0, S.useRef)(null), [E, D] = (0, S.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [O, k] = (0, S.useState)(m?.selectedKey || ""), [A, j] = (0, S.useState)(m?.sourceId || null), [M, N] = (0, S.useState)(!1), P = E?.edition_group ? {
kind: "editions",
seedId: E.edition_group.seed_id
} : E?.part_group ? {
kind: "parts",
seedId: E.part_group.seed_id
- } : null, F = pt({
- queryKey: CD(P || {
+ } : null, F = ft({
- queryKey: CD(P || {
++ queryKey: TD(P || {
kind: "parts",
seedId: 0
}),
enabled: !!P,
-- queryFn: ({ signal: e }) => OD(P, {
++ queryFn: ({ signal: e }) => AD(P, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), I = P ? F.data : void 0, ee = I?.items.find((e) => e.id === kD(I, A || E?.id || null)) || E, L = bCe(e.length, t && !!e.length, m?.camera || {
- }), I = P ? F.data : void 0, ee = I?.items.find((e) => e.id === kD(I, A || E?.id || null)) || E, L = _Se(e.length, t && !!e.length, m?.camera || {
++ }), I = P ? F.data : void 0, ee = I?.items.find((e) => e.id === jD(I, A || E?.id || null)) || E, L = _Ce(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
@@@ -52116,7 -50419,7 +52116,7 @@@
(0, S.useLayoutEffect)(() => {
document.body.append(xe), L.viewport.current?.focus({ preventScroll: !0 });
}, [xe]), (0, S.useEffect)(() => () => xe.remove(), [xe]);
-- let [Se, Ce] = (0, S.useState)(() => JO(Sk.navigation.location.pathname)), [we, Te] = (0, S.useState)(m?.image || d), Ee = (0, S.useRef)(null), De = (0, S.useRef)(p), Oe = (0, S.useRef)(!!e.length);
++ let [Se, Ce] = (0, S.useState)(() => XO(wk.navigation.location.pathname)), [we, Te] = (0, S.useState)(m?.image || d), Ee = (0, S.useRef)(null), De = (0, S.useRef)(p), Oe = (0, S.useRef)(!!e.length);
Oe.current = !!e.length;
let ke = (0, S.useRef)({
selectedId: E?.id || null,
@@@ -52133,17 -50436,17 +52133,17 @@@
pool: p
};
let Ae = () => {
- Oe.current && (eL.delete(f), eL.set(f, {
- Oe.current && (yI.delete(f), yI.set(f, {
++ Oe.current && (rL.delete(f), rL.set(f, {
...ke.current,
camera: L.snapshot(),
exploration: h
- }), eL.size > 8 && eL.delete(eL.keys().next().value));
- }), yI.size > 8 && yI.delete(yI.keys().next().value));
++ }), rL.size > 8 && rL.delete(rL.keys().next().value));
};
(0, S.useLayoutEffect)(Ae);
- let je = _Ce(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, L.view.camera, L.view.size), Me = i ? je.map((e) => ({
- let je = mSe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, L.view.camera, L.view.size), Me = i ? je.map((e) => ({
++ let je = mCe(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, L.view.camera, L.view.size), Me = i ? je.map((e) => ({
...e,
index: -1
- })) : t ? je : h.assign(je, e.length, n), Ne = E && (t ? qI(e.length, !0, O) : h.tile(O, e.length)), Pe = Ne ? JI(e.length, t, Ne) : /* @__PURE__ */ new Map();
- })) : t ? je : h.assign(je, e.length, n), Ne = E && (t ? fI(e.length, !0, O) : h.tile(O, e.length)), Pe = Ne ? pI(e.length, t, Ne) : /* @__PURE__ */ new Map();
++ })) : t ? je : h.assign(je, e.length, n), Ne = E && (t ? XI(e.length, !0, O) : h.tile(O, e.length)), Pe = Ne ? ZI(e.length, t, Ne) : /* @__PURE__ */ new Map();
Ne && !Me.some((e) => e.key === Ne.key) && Me.push(Ne);
let Fe = (e = !1) => {
T.current?.abort(), T.current = null, w.current?.(e), w.current = null, oe(null), ue(!1);
@@@ -52160,8 -50463,8 +52160,8 @@@
t,
p,
i
-- ]), (0, S.useEffect)(() => Sk.listen((e) => {
-- let t = JO(e.location.pathname);
++ ]), (0, S.useEffect)(() => wk.listen((e) => {
++ let t = XO(e.location.pathname);
t && (T.current?.abort(), w.current?.(!0), w.current = null, oe(null), ue(!1)), Ce(t);
}), []), (0, S.useEffect)(() => () => {
T.current?.abort(), w.current?.(!0), Ae();
@@@ -52182,7 -50485,7 +52182,7 @@@
E?.id !== n.id && Fe(!1), Ee.current = {
key: r.key,
id: n.id
- }, fe(""), ce(null), D(n), k(r.key), j(null), N(!1), be(!1), L.reveal(JI(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
- }, fe(""), ce(null), D(n), k(r.key), j(null), N(!1), be(!1), L.reveal(pI(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
++ }, fe(""), ce(null), D(n), k(r.key), j(null), N(!1), be(!1), L.reveal(ZI(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Re = () => {
ee && y.current && (Ae(), Fe(!0), l.wallDetails?.(ee, y.current.querySelector("[data-wall-focus]") || y.current));
}, ze = async (e = ee) => {
@@@ -52204,7 -50507,7 +52204,7 @@@
T.current === t && ue(!1);
}
}, Be = () => {
- let e = bfe(I || null, ae || 0);
- let e = sfe(I || null, ae || 0);
++ let e = vfe(I || null, ae || 0);
e && (j(e.id), ze(e));
};
(0, S.useEffect)(() => {
@@@ -52226,7 -50529,7 +52226,7 @@@
let r = L.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (L.view.size.width / 2 - r.x) / r.scale,
y: (L.view.size.height / 2 - r.y) / r.scale
- }, o = t ? mCe(e.length, i) : h.nearest(e.length, i, a);
- }, o = t ? dSe(e.length, i) : h.nearest(e.length, i, a);
++ }, o = t ? dCe(e.length, i) : h.nearest(e.length, i, a);
o && (Le(n, o), ce(n.id));
}, We = async () => {
if (!(r || g.current)) {
@@@ -52318,7 -50621,7 +52318,7 @@@
/* @__PURE__ */ (0, C.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, C.jsx)(tL, {
- children: /* @__PURE__ */ (0, C.jsx)(bI, {
++ children: /* @__PURE__ */ (0, C.jsx)(iL, {
item: E,
image: we,
big: !0
@@@ -52326,7 -50629,7 +52326,7 @@@
}),
/* @__PURE__ */ (0, C.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, C.jsx)(tL, {
- children: /* @__PURE__ */ (0, C.jsx)(bI, {
++ children: /* @__PURE__ */ (0, C.jsx)(iL, {
item: E,
image: we,
big: !0
@@@ -52355,7 -50658,7 +52355,7 @@@
}),
Ye.code ? /* @__PURE__ */ (0, C.jsx)("strong", { children: Je(Ye).startsWith(Ye.code) ? Je(Ye).slice(Ye.code.length).trim() : Je(Ye) }) : null,
/* @__PURE__ */ (0, C.jsx)("span", { children: Ye.performers?.join(" · ") || Ye.creator || "未归属" }),
-- I ? /* @__PURE__ */ (0, C.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? MD(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null
++ I ? /* @__PURE__ */ (0, C.jsx)("small", { children: [Ye.edition_label, Ye.part_label ? PD(Ye.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -52382,7 -50685,7 +52382,7 @@@
children: "重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(wCe, {
- /* @__PURE__ */ (0, C.jsx)(xSe, {
++ /* @__PURE__ */ (0, C.jsx)(xCe, {
item: Ye,
playing: ae,
frame: b,
@@@ -52404,7 -50707,7 +52404,7 @@@
ended: Be,
error: fe
}),
- M ? /* @__PURE__ */ (0, C.jsx)(ECe, {
- M ? /* @__PURE__ */ (0, C.jsx)(CSe, {
++ M ? /* @__PURE__ */ (0, C.jsx)(CCe, {
items: Ve,
activeId: Ye.id,
kind: I?.kind || "wall",
@@@ -52420,7 -50723,7 +52420,7 @@@
"data-refreshing": _ !== null || void 0,
hidden: Se,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : E ? Ie() : ye ? be(!1) : $I());
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : E ? Ie() : ye ? be(!1) : vI());
++ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), M ? N(!1) : E ? Ie() : ye ? be(!1) : nL());
},
children: [
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -52428,7 -50731,7 +52428,7 @@@
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: $I,
- onClick: vI,
++ onClick: nL,
children: /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@@ -52446,7 -50749,7 +52446,7 @@@
}), /* @__PURE__ */ (0, C.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, C.jsx)(K, {
size: "small",
variant: "ghost",
- onClick: () => Sk.push(OCe()),
- onClick: () => Sk.push(TSe()),
++ onClick: () => wk.push(TCe()),
children: "清除筛选"
})]
}) : null,
@@@ -52458,7 -50761,7 +52458,7 @@@
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
-- n ? t.set("q", n) : t.delete("q"), Ae(), Sk.push(`/wall?${t}`), be(!1);
++ n ? t.set("q", n) : t.delete("q"), Ae(), wk.push(`/wall?${t}`), be(!1);
},
children: [/* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
@@@ -52472,18 -50775,18 +52472,18 @@@
defaultValue: new URLSearchParams(location.search).get("q") || ""
})]
}),
- /* @__PURE__ */ (0, C.jsxs)(zF, {
- /* @__PURE__ */ (0, C.jsxs)(iF, {
++ /* @__PURE__ */ (0, C.jsxs)(HF, {
"aria-label": "播放墙图片",
value: we,
onChange: Te,
- className: BF,
- children: [/* @__PURE__ */ (0, C.jsx)(NN, {
- className: aF,
- children: [/* @__PURE__ */ (0, C.jsx)(DN, {
++ className: UF,
++ children: [/* @__PURE__ */ (0, C.jsx)(IN, {
value: "cover",
- className: VF,
- className: oF,
++ className: WF,
children: "封面"
- }), /* @__PURE__ */ (0, C.jsx)(NN, {
- }), /* @__PURE__ */ (0, C.jsx)(DN, {
++ }), /* @__PURE__ */ (0, C.jsx)(IN, {
value: "thumbnail",
- className: VF,
- className: oF,
++ className: WF,
children: "缩略图"
})]
}),
@@@ -52575,7 -50878,7 +52575,7 @@@
},
whileHover: ie && !te && !r && ne ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: te ? { duration: 0 } : {
- layout: xCe,
- layout: vSe,
++ layout: vCe,
transform: a ? {
type: "spring",
stiffness: 360,
@@@ -52608,7 -50911,7 +52608,7 @@@
!r && ["Enter", " "].includes(e.key) && (e.preventDefault(), Le(n, t, !1));
},
children: r ? Xe : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(tL, {
- /* @__PURE__ */ (0, C.jsx)(bI, {
++ /* @__PURE__ */ (0, C.jsx)(iL, {
item: n,
image: we,
ratio: i.width / i.height
@@@ -52662,7 -50965,7 +52662,7 @@@
}) : null,
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, C.jsx)(fI, {
- children: /* @__PURE__ */ (0, C.jsx)(jF, {
++ children: /* @__PURE__ */ (0, C.jsx)(hI, {
busy: r,
onPress: () => void Ke()
})
@@@ -52709,111 -51078,75 +52709,111 @@@
}
//#endregion
//#region src/react/library-processing/processing-actions.tsx
- var nL = "peach.library-processing.resource-notice.v1";
- function rL({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
-function jI({ busy: e, scan: t = !1, metadataOnly: n = !1, onRun: r }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), s = {
++var aL = "peach.library-processing.resource-notice.v1";
++function oL({ busy: e, scan: t = !1, metadataOnly: n = !1, speedMode: r = "standard", onRun: i }) {
+ let a = (0, S.useRef)(null), o = (0, S.useRef)(null);
+ (0, S.useEffect)(() => () => o.current?.close(), []);
+ let [s, c] = (0, S.useState)(!1), l = {
label: t ? "同步媒体库" : "同步这些影片",
- icon: Pk,
- icon: Nk,
++ icon: Ik,
command: t ? {} : { stage: "collect" }
- }, c = [
- s,
+ }, u = [
+ l,
...t ? [{
label: "仅扫描文件",
- icon: Rk,
- icon: Lk,
++ icon: Bk,
command: { stage: "scan" }
}] : [],
...t ? [{
label: "仅同步已入库影片",
- icon: Pk,
- icon: Nk,
++ icon: Ik,
command: { stage: "collect" }
}] : [],
{
label: "仅生成视频预览",
- icon: Rk,
- icon: Lk,
++ icon: Bk,
command: { stage: "previews" }
},
{
label: "仅补全资料",
- icon: Sge,
- icon: uge,
++ icon: bge,
command: { stage: "metadata" }
}
- ], l = (t) => {
- e || (o(!1), r(t));
+ ], d = (a) => {
+ if (e) return;
+ c(!1);
+ let s = !1;
+ try {
- s = localStorage.getItem(nL) === "seen";
++ s = localStorage.getItem(aL) === "seen";
+ } catch {}
+ if (!t || s || a.stage === "metadata") {
+ Promise.resolve(i(a)).catch(() => {});
+ return;
+ }
+ if (o.current) return;
+ let l = a.stage === "previews", u = l ? "生成视频预览" : a.stage === "scan" ? "扫描媒体文件" : "同步媒体库", d = zs({
+ title: u,
+ description: l ? "生成视频预览会读取视频并占用处理器,可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。" : `处理会读取媒体文件${a.stage === "scan" ? "" : n ? "并下载资料" : "、下载资料并生成视频预览"},可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。`,
+ body: js("processing-speed", "处理模式", [
+ ["low", "低占用"],
+ ["standard", "标准"],
+ ["high", "全速"]
+ ], r, { text: !0 }),
+ confirmLabel: u,
+ onConfirm: async () => {
+ let e = d.dialog.querySelector("input[name=\"processing-speed\"]:checked")?.value;
+ await i({
+ ...a,
+ speed_mode: e === "low" ? "low" : e === "high" ? "high" : "standard"
+ });
+ try {
- localStorage.setItem(nL, "seen");
++ localStorage.setItem(aL, "seen");
+ } catch {}
+ }
+ });
+ o.current = d, d.done.then(() => {
+ o.current === d && (o.current = null);
+ });
};
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("span", {
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
- leadingIcon: s.icon,
+ leadingIcon: l.icon,
...J(e),
- onClick: () => l(s.command),
- children: s.label
+ onClick: () => d(l.command),
+ children: l.label
}), /* @__PURE__ */ (0, C.jsx)(K, {
- ref: i,
+ ref: a,
iconOnly: !0,
-- leadingIcon: Ok,
++ leadingIcon: Ak,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
- "aria-expanded": a,
+ "aria-expanded": s,
...J(e),
onClick: () => {
- e || o(!a);
+ e || c(!s);
}
})]
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
- triggerRef: i,
- isOpen: a,
- onOpenChange: o,
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
+ triggerRef: a,
+ isOpen: s,
+ onOpenChange: c,
placement: "bottom end",
offset: 4,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsx)(vF, {
- className: FP,
- children: /* @__PURE__ */ (0, C.jsx)(AI, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsx)(xF, {
"aria-label": "同步方式",
className: "flex w-56 flex-col gap-1 outline-none",
- children: c.map(({ label: e, icon: t, command: r }) => {
+ children: u.map(({ label: e, icon: t, command: r }) => {
let i = n && "stage" in r && r.stage === "previews";
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
disabled: i,
title: i ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: dA(HP, UP, "text-body-2-medium"),
- className: uA(IP, LP, "text-body-2-medium"),
- onClick: () => l(r),
++ className: pA(GP, KP, "text-body-2-medium"),
+ onClick: () => d(r),
children: [/* @__PURE__ */ (0, C.jsx)(t, {
"aria-hidden": !0,
className: "size-4 shrink-0"
@@@ -52825,37 -51158,37 +52825,37 @@@
}
//#endregion
//#region src/react/library-processing/library-completion.tsx
- function iL(e, t) {
-function MI(e, t) {
++function sL(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) && !Ea(e, "small", !1, t).html).map((e) => e.id))];
}
- function aL({ assetIds: e, onComplete: t }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)(ACe, {
-function NI({ assetIds: e, onComplete: t }) {
- return e.length ? /* @__PURE__ */ (0, C.jsx)(PSe, {
++function cL({ assetIds: e, onComplete: t }) {
++ return e.length ? /* @__PURE__ */ (0, C.jsx)(DCe, {
assetIds: e,
onComplete: t
}) : null;
}
- function ACe({ assetIds: e, onComplete: t }) {
-function PSe({ assetIds: e, onComplete: t }) {
- let n = pt({
- queryKey: SI,
- queryFn: ({ signal: e }) => CI(e),
- refetchInterval: (e) => EI(e.state.data, !0)
- }), [r, i] = (0, S.useState)(null), [a, o] = (0, S.useState)(""), s = (0, S.useRef)(null), c = mt({
- mutationFn: (t) => U(xI, {
++function DCe({ assetIds: e, onComplete: t }) {
+ let n = ft({
- queryKey: sF,
- queryFn: ({ signal: e }) => uF(e),
- refetchInterval: (e) => pF(e.state.data, !0)
++ queryKey: uF,
++ queryFn: ({ signal: e }) => pF(e),
++ refetchInterval: (e) => gF(e.state.data, !0)
+ }), [r, i] = (0, S.useState)(null), [a, o] = (0, S.useState)(""), s = (0, S.useRef)(null), c = pt({
- mutationFn: (t) => H(oF, {
++ mutationFn: (t) => H(lF, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- i(e.job_id || null), U.setQueryData(sF, e), U.invalidateQueries({ queryKey: sF });
- i(e.job_id || null), W.setQueryData(SI, e), W.invalidateQueries({ queryKey: SI });
++ i(e.job_id || null), U.setQueryData(uF, e), U.invalidateQueries({ queryKey: uF });
}
}), l = n.data;
- (0, S.useEffect)(() => {
- l && r && l.job_id === r && l.status !== "running" && s.current !== r && (s.current = r, l.status === "complete" && o(`补全完成:取得 ${l.covers || 0} 张封面,生成 ${l.previews || 0} 部视频预览。`), W.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ if ((0, S.useEffect)(() => {
- l && r && l.job_id === r && !cF(l) && s.current !== r && (s.current = r, l.status === "complete" && o(`补全完成:取得 ${l.covers || 0} 张封面,生成 ${l.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
++ l && r && l.job_id === r && !dF(l) && s.current !== r && (s.current = r, l.status === "complete" && o(`补全完成:取得 ${l.covers || 0} 张封面,生成 ${l.previews || 0} 部视频预览。`), U.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
l,
r,
t
- ]), cF(l)) return null;
- let u = c.isPending || cF(l), d = c.error ? V(c.error) : n.error ? fF : r && l?.job_id === r && l.status === "failed" ? l.error || "补全未完成" : "", f = d || (c.isPending ? "正在启动补全…" : a || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
- ]);
- let u = c.isPending || l?.status === "running", d = c.error ? V(c.error) : n.error ? TI : r && l?.job_id === r && l.status === "failed" ? l.error || "补全未完成" : "", f = d || (u ? c.isPending ? "正在启动补全…" : OI(l) : a || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
++ ]), dF(l)) return null;
++ let u = c.isPending || dF(l), d = c.error ? V(c.error) : n.error ? hF : r && l?.job_id === r && l.status === "failed" ? l.error || "补全未完成" : "", f = d || (c.isPending ? "正在启动补全…" : a || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,可补全资料与图片。`);
return /* @__PURE__ */ (0, C.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
@@@ -52864,23 -51197,20 +52864,23 @@@
children: /* @__PURE__ */ (0, C.jsxs)(q, {
tone: d ? "warning" : "neutral",
actionLayout: "below",
- action: /* @__PURE__ */ (0, C.jsx)(jI, {
- busy: u,
- metadataOnly: l?.metadata_only,
- onRun: (e) => {
- u || (o(""), c.mutate(e));
- }
+ action: /* @__PURE__ */ (0, C.jsx)("div", {
+ className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, C.jsx)(rL, {
++ children: /* @__PURE__ */ (0, C.jsx)(oL, {
+ busy: u,
+ metadataOnly: l?.metadata_only,
+ onRun: (e) => {
+ u || (o(""), c.mutate(e));
+ }
+ })
}),
children: [
f,
" ",
- /* @__PURE__ */ (0, C.jsx)(OA, {
- /* @__PURE__ */ (0, C.jsx)(DA, {
++ /* @__PURE__ */ (0, C.jsx)(AA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
-- trailingIcon: kk,
++ trailingIcon: jk,
children: d ? "查看并处理" : "查看处理详情"
})
]
@@@ -52889,32 -51219,32 +52889,32 @@@
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/FlexRender.js
- function jCe(e) {
- return MCe(e) || typeof e == "function" || NCe(e);
-function FSe(e) {
- return ISe(e) || typeof e == "function" || LSe(e);
++function OCe(e) {
++ return kCe(e) || typeof e == "function" || ACe(e);
}
- function MCe(e) {
-function ISe(e) {
++function kCe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
- function NCe(e) {
-function LSe(e) {
++function ACe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
- function oL(e, t) {
- return e == null ? null : jCe(e) ? /* @__PURE__ */ S.createElement(e, t) : e;
-function PI(e, t) {
- return e == null ? null : FSe(e) ? /* @__PURE__ */ S.createElement(e, t) : e;
++function lL(e, t) {
++ return e == null ? null : OCe(e) ? /* @__PURE__ */ S.createElement(e, t) : e;
}
- function PCe(e) {
-function RSe(e) {
++function jCe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? oL(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : oL(n.cell, t.getContext());
- return r.getIsAggregated?.() ? PI(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : PI(n.cell, t.getContext());
++ return r.getIsAggregated?.() ? lL(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : lL(n.cell, t.getContext());
}
- return "header" in e && e.header ? oL(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? oL(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
- return "header" in e && e.header ? PI(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? PI(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
++ return "header" in e && e.header ? lL(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? lL(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
//#endregion
//#region node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
- function FCe({ update: e, notify: t, unwatched: n }) {
-function zSe({ update: e, notify: t, unwatched: n }) {
++function MCe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@@ -53032,7 -51362,7 +53032,7 @@@
}
//#endregion
//#region node_modules/@tanstack/store/dist/atom.js
- function ICe(e, t, n) {
-function BSe(e, t, n) {
++function NCe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@@ -53040,38 -51370,38 +53040,38 @@@
complete: (r ? e.complete : n)?.bind(i)
};
}
- var sL = [], cL = 0, { link: lL, unlink: LCe, propagate: RCe, checkDirty: uL, shallowPropagate: dL } = /* @__PURE__ */ FCe({
-var FI = [], II = 0, { link: LI, unlink: VSe, propagate: HSe, checkDirty: RI, shallowPropagate: zI } = /* @__PURE__ */ zSe({
++var uL = [], dL = 0, { link: fL, unlink: PCe, propagate: FCe, checkDirty: pL, shallowPropagate: mL } = /* @__PURE__ */ MCe({
update(e) {
return e._update();
},
notify(e) {
- sL[pL++] = e, e.flags &= -3;
- FI[VI++] = e, e.flags &= -3;
++ uL[gL++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, gL(e));
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, WI(e));
++ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, yL(e));
}
- }), fL = 0, pL = 0, mL, hL = 0;
- function zCe(e) {
-}), BI = 0, VI = 0, HI, UI = 0;
-function USe(e) {
++}), hL = 0, gL = 0, _L, vL = 0;
++function ICe(e) {
try {
- ++hL, e();
- ++UI, e();
++ ++vL, e();
} finally {
- --hL || _L();
- --UI || GI();
++ --vL || bL();
}
}
- function gL(e) {
-function WI(e) {
++function yL(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = LCe(n, e);
- for (; n !== void 0;) n = VSe(n, e);
++ for (; n !== void 0;) n = PCe(n, e);
}
- function _L() {
- if (!(hL > 0)) {
- for (; fL < pL;) {
- let e = sL[fL];
- sL[fL++] = void 0, e.notify();
-function GI() {
- if (!(UI > 0)) {
- for (; BI < VI;) {
- let e = FI[BI];
- FI[BI++] = void 0, e.notify();
++function bL() {
++ if (!(vL > 0)) {
++ for (; hL < gL;) {
++ let e = uL[hL];
++ uL[hL++] = void 0, e.notify();
}
- fL = 0, pL = 0;
- BI = 0, VI = 0;
++ hL = 0, gL = 0;
}
}
- function BCe(e, t) {
-function WSe(e, t) {
++function LCe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@@ -53080,53 -51410,53 +53080,53 @@@
depsTail: void 0,
flags: +!n,
get() {
- return mL !== void 0 && lL(i, mL, cL), i._snapshot;
- return HI !== void 0 && LI(i, HI, II), i._snapshot;
++ return _L !== void 0 && fL(i, _L, dL), i._snapshot;
},
subscribe(e) {
- let t = ICe(e), n = { current: !1 }, r = VCe(() => {
- i.get(), n.current ? (mL = void 0, t.next?.(i._snapshot)) : n.current = !0;
- let t = BSe(e), n = { current: !1 }, r = GSe(() => {
- i.get(), n.current ? (HI = void 0, t.next?.(i._snapshot)) : n.current = !0;
++ let t = NCe(e), n = { current: !1 }, r = RCe(() => {
++ i.get(), n.current ? (_L = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = mL, o = t?.compare ?? Object.is;
- if (n) mL = i, ++cL, i.depsTail = void 0;
- let a = HI, o = t?.compare ?? Object.is;
- if (n) HI = i, ++II, i.depsTail = void 0;
++ let a = _L, o = t?.compare ?? Object.is;
++ if (n) _L = i, ++dL, 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 {
- mL = a, n && (i.flags &= -5), gL(i);
- HI = a, n && (i.flags &= -5), WI(i);
++ _L = a, n && (i.flags &= -5), yL(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && uL(i.deps, i)) {
- if (e & 16 || e & 32 && RI(i.deps, i)) {
++ if (e & 16 || e & 32 && pL(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && dL(e);
- e !== void 0 && zI(e);
++ e !== void 0 && mL(e);
}
} else e & 32 && (i.flags = e & -33);
- return mL !== void 0 && lL(i, mL, cL), i._snapshot;
- return HI !== void 0 && LI(i, HI, II), i._snapshot;
++ return _L !== void 0 && fL(i, _L, dL), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (RCe(e), dL(e), _L());
- e !== void 0 && (HSe(e), zI(e), GI());
++ e !== void 0 && (FCe(e), mL(e), bL());
}
}, i;
}
- function VCe(e) {
-function GSe(e) {
++function RCe(e) {
let t = () => {
- let t = mL;
- mL = n, ++cL, n.depsTail = void 0, n.flags = 6;
- let t = HI;
- HI = n, ++II, n.depsTail = void 0, n.flags = 6;
++ let t = _L;
++ _L = n, ++dL, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- mL = t, n.flags &= -5, gL(n);
- HI = t, n.flags &= -5, WI(n);
++ _L = t, n.flags &= -5, yL(n);
}
}, n = {
deps: void 0,
@@@ -53136,17 -51466,17 +53136,17 @@@
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && uL(this.deps, this) ? t() : this.flags = 2;
- e & 16 || e & 32 && RI(this.deps, this) ? t() : this.flags = 2;
++ e & 16 || e & 32 && pL(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, gL(this);
- this.flags = 0, this.depsTail = void 0, WI(this);
++ this.flags = 0, this.depsTail = void 0, yL(this);
}
};
return t(), n;
}
//#endregion
//#region node_modules/@tanstack/store/dist/shallow.js
- function vL(e, t) {
-function KI(e, t) {
++function xL(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) {
@@@ -53160,18 -51490,18 +53160,18 @@@
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = yL(e);
- if (n.length !== yL(t).length) return !1;
- let n = qI(e);
- if (n.length !== qI(t).length) return !1;
++ let n = SL(e);
++ if (n.length !== SL(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 yL(e) {
-function qI(e) {
++function SL(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
//#endregion
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
- var HCe = /* @__PURE__ */ o(((e) => {
-var KSe = /* @__PURE__ */ o(((e) => {
- var t = p(), n = gy();
++var zCe = /* @__PURE__ */ o(((e) => {
+ var t = p(), n = py();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@@ -53215,28 -51545,28 +53215,28 @@@
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
- })), bL = (/* @__PURE__ */ o(((e, t) => {
- t.exports = HCe();
-})), JI = (/* @__PURE__ */ o(((e, t) => {
- t.exports = KSe();
++})), CL = (/* @__PURE__ */ o(((e, t) => {
++ t.exports = zCe();
})))();
- function UCe(e, t) {
-function qSe(e, t) {
++function BCe(e, t) {
return e === t;
}
- function xL(e, t = (e) => e, n) {
- let r = n?.compare ?? UCe, i = (0, S.useCallback)((t) => {
-function YI(e, t = (e) => e, n) {
- let r = n?.compare ?? qSe, i = (0, S.useCallback)((t) => {
++function wL(e, t = (e) => e, n) {
++ let r = n?.compare ?? BCe, i = (0, S.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, S.useCallback)(() => e.get(), [e]);
- return (0, bL.useSyncExternalStoreWithSelector)(i, a, a, t, r);
- return (0, JI.useSyncExternalStoreWithSelector)(i, a, a, t, r);
++ return (0, CL.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/Subscribe.js
- function WCe(e) {
- let t = xL(e.source, e.selector, { compare: vL });
-function JSe(e) {
- let t = YI(e.source, e.selector, { compare: KI });
++function VCe(e) {
++ let t = wL(e.source, e.selector, { compare: xL });
return typeof e.children == "function" ? e.children(t) : e.children;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
- function GCe(e) {
-function YSe(e) {
++function HCe(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
@@@ -53244,7 -51574,7 +53244,7 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
- function KCe(e) {
-function XSe(e) {
++function UCe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@@ -53274,7 -51604,7 +53274,7 @@@
}
};
}
- function qCe(e, t = Object.is) {
-function ZSe(e, t = Object.is) {
++function WCe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@@ -53288,29 -51618,29 +53288,29 @@@
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/reactivity.js
- function JCe() {
- return KCe({
- createAtom: BCe,
- batch: zCe
-function QSe() {
- return XSe({
- createAtom: WSe,
- batch: USe
++function GCe() {
++ return UCe({
++ createAtom: LCe,
++ batch: ICe
});
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/utils.js
- function SL(e, t) {
-function XI(e, t) {
++function TL(e, t) {
return typeof e == "function" ? e(t) : e;
}
- function CL(e) {
- if (Array.isArray(e)) return e.map(CL);
-function ZI(e) {
- if (Array.isArray(e)) return e.map(ZI);
++function EL(e) {
++ if (Array.isArray(e)) return e.map(EL);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? TL() : {}, r = Object.keys(e);
- let n = t === null ? $I() : {}, r = Object.keys(e);
++ let n = t === null ? OL() : {}, 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: CL(e[i]),
- value: ZI(e[i]),
++ value: EL(e[i]),
writable: !0
});
}
@@@ -53318,7 -51648,7 +53318,7 @@@
}
return e;
}
- function wL(e, t) {
-function QI(e, t) {
++function DL(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@@ -53326,53 -51656,53 +53326,53 @@@
}
return e;
}
- function TL() {
-function $I() {
++function OL() {
return Object.create(null);
}
- function EL(e, t) {
-function eL(e, t) {
++function kL(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
- function DL(e, t) {
-function tL(e, t) {
++function AL(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => SL(n, e));
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => XI(n, e));
++ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => TL(n, e));
};
}
- function OL(e) {
-function nL(e) {
++function jL(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 kL(e) {
-function rL(e) {
++function ML(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
- var YCe = 3;
- function XCe(e, t) {
- return AL(e, t, YCe);
-var $Se = 3;
-function eCe(e, t) {
- return iL(e, t, $Se);
++var KCe = 3;
++function qCe(e, t) {
++ return NL(e, t, KCe);
}
- function AL(e, t, n) {
-function iL(e, t, n) {
++function NL(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !OL(e) || !OL(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = kL(e), i = kL(t);
- if (n <= 0 || !nL(e) || !nL(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = rL(e), i = rL(t);
++ if (n <= 0 || !jL(e) || !jL(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
++ let r = ML(e), i = ML(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) || !AL(a[i], o[i], n - 1)) return !1;
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !iL(a[i], o[i], n - 1)) return !1;
++ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !NL(a[i], o[i], n - 1)) return !1;
}
return !0;
}
- function jL(e, t, n, r = XCe) {
-function aL(e, t, n, r = eCe) {
++function PL(e, t, n, r = qCe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = SL(n, e);
- let t = XI(n, e);
++ let t = TL(n, e);
return r(e, t) ? e : t;
});
}
- function ZCe(e) {
-function tCe(e) {
++function JCe(e) {
return e instanceof Function;
}
- function QCe(e, t) {
-function nCe(e, t) {
++function YCe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@@ -53382,7 -51712,7 +53382,7 @@@
};
return r(e), n;
}
- var $Ce = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
-var rCe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
++var XCe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@@ -53396,23 -51726,23 +53396,23 @@@
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
- function ML(e) {
-function oL(e) {
++function FL(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
- function NL({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
-function sL({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
++function IL({ 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 $Ce({
- return rCe({
++ return XCe({
...a,
...o
});
}
- function PL(e, t = "_") {
-function cL(e, t = "_") {
++function LL(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@@ -53420,10 -51750,10 +53420,10 @@@
parentName: n
};
}
- function FL(e, t, n) {
-function lL(e, t, n) {
++function RL(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = PL(r);
- t[n] = a ? NL({
- let { fnKey: n, fnName: o } = cL(r);
- t[n] = a ? sL({
++ let { fnKey: n, fnName: o } = LL(r);
++ t[n] = a ? IL({
memoDeps: a,
fn: i,
fnName: o,
@@@ -53432,15 -51762,15 +53432,15 @@@
}) : i;
}
}
- function IL(e, t, n, r) {
-function uL(e, t, n, r) {
++function zL(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = PL(i);
- let { fnKey: r, fnName: s } = cL(i);
++ let { fnKey: r, fnName: s } = LL(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = NL({
- this[i] = sL({
++ this[i] = IL({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@@ -53456,18 -51786,18 +53456,18 @@@
};
}
}
- function LL(e, t, n, ...r) {
-function dL(e, t, n, ...r) {
++function BL(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
- function ewe(e) {
-function iCe(e) {
++function ZCe(e) {
return e.row.getValue(e.column.id);
}
- function twe(e) {
-function aCe(e) {
++function QCe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
- function nwe(e) {
-function oCe(e) {
++function $Ce(e) {
return {
table: e.table,
column: e.column,
@@@ -53479,19 -51809,19 +53479,19 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
- var rwe = { assignCellPrototype: (e, t) => {
- IL("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => ewe(e) },
- cell_renderValue: { fn: (e) => twe(e) },
-var sCe = { assignCellPrototype: (e, t) => {
- uL("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => iCe(e) },
- cell_renderValue: { fn: (e) => aCe(e) },
++var ewe = { assignCellPrototype: (e, t) => {
++ zL("coreCellsFeature", e, t, {
++ cell_getValue: { fn: (e) => ZCe(e) },
++ cell_renderValue: { fn: (e) => QCe(e) },
cell_getContext: {
- fn: (e) => nwe(e),
- fn: (e) => oCe(e),
++ fn: (e) => $Ce(e),
memoDeps: (e) => [e]
}
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
- function iwe(e) {
-function cCe(e) {
++function twe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@@ -53499,7 -51829,7 +53499,7 @@@
}
return e._columnPrototype;
}
- function awe(e, t, n, r) {
-function lCe(e, t, n, r) {
++function nwe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@@ -53519,7 -51849,7 +53519,7 @@@
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = iwe(e), u = Object.create(l);
- let l = cCe(e), u = Object.create(l);
++ let l = twe(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);
@@@ -53527,47 -51857,47 +53527,47 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/featureStubs.js
- function RL(e) {
-function fL(e) {
++function VL(e) {
return e.getIsVisible?.() ?? !0;
}
- function owe(e) {
-function uCe(e) {
++function rwe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
- function zL(e, t) {
-function pL(e, t) {
++function HL(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
- function swe(e, t, n, r) {
-function dCe(e, t, n, r) {
++function iwe(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
- function BL(e, t) {
-function mL(e, t) {
++function UL(e, t) {
return e._expandRows?.(t) ?? t;
}
- function cwe(e) {
-function fCe(e) {
++function awe(e) {
e.autoResetExpanded?.();
}
- function VL(e) {
-function hL(e) {
++function WL(e) {
e.autoResetPageIndex?.();
}
- function lwe(e) {
-function pCe(e) {
++function owe(e) {
e.autoResetSorting?.();
}
- function uwe(e) {
-function mCe(e) {
++function swe(e) {
e.autoResetCellSelection?.();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
- function dwe(e) {
-function hCe(e) {
++function cwe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
- function fwe(e) {
-function gCe(e) {
++function lwe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return zL(e.table, t);
- return pL(e.table, t);
++ return HL(e.table, t);
}
return [e];
}
- function pwe(e) {
-function _Ce(e) {
++function uwe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@@ -53578,54 -51908,54 +53578,54 @@@
...e.options.defaultColumn
};
}
- function HL(e, t, n, r = 0) {
-function gL(e, t, n, r = 0) {
++function GL(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 = awe(e, o, r, n), c = o;
- s.columns = c.columns ? HL(e, c.columns, s, r + 1) : [], i[a] = s;
- let o = t[a], s = lCe(e, o, r, n), c = o;
- s.columns = c.columns ? gL(e, c.columns, s, r + 1) : [], i[a] = s;
++ let o = t[a], s = nwe(e, o, r, n), c = o;
++ s.columns = c.columns ? GL(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
- function mwe(e) {
- return HL(e, e.options.columns);
-function vCe(e) {
- return gL(e, e.options.columns);
++function dwe(e) {
++ return GL(e, e.options.columns);
}
- function hwe(e) {
-function yCe(e) {
++function fwe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
- function gwe(e) {
- let t = TL(), n = e.getAllFlatColumns();
-function bCe(e) {
- let t = $I(), n = e.getAllFlatColumns();
++function pwe(e) {
++ let t = OL(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
- function _we(e) {
- return zL(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
-function xCe(e) {
- return pL(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
++function mwe(e) {
++ return HL(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
- function vwe(e) {
- let t = TL(), n = e.getAllLeafColumns();
-function SCe(e) {
- let t = $I(), n = e.getAllLeafColumns();
++function hwe(e) {
++ let t = OL(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
- function ywe(e, t) {
-function CCe(e, t) {
++function gwe(e, t) {
return e.getAllFlatColumnsById()[t];
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
- var bwe = {
-var wCe = {
++var _we = {
assignColumnPrototype: (e, t) => {
- IL("coreColumnsFeature", e, t, {
- uL("coreColumnsFeature", e, t, {
++ zL("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => dwe(e),
- fn: (e) => hCe(e),
++ fn: (e) => cwe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => fwe(e),
- fn: (e) => gCe(e),
++ fn: (e) => lwe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@@ -53636,25 -51966,25 +53636,25 @@@
});
},
constructTableAPIs: (e) => {
- FL("coreColumnsFeature", e, {
- lL("coreColumnsFeature", e, {
++ RL("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => pwe(e),
- fn: () => _Ce(e),
++ fn: () => uwe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => mwe(e),
- fn: () => vCe(e),
++ fn: () => dwe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => hwe(e),
- fn: () => yCe(e),
++ fn: () => fwe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => gwe(e),
- fn: () => bCe(e),
++ fn: () => pwe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => _we(e),
- fn: () => xCe(e),
++ fn: () => mwe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@@ -53663,16 -51993,16 +53663,16 @@@
]
},
table_getAllLeafColumnsById: {
- fn: () => vwe(e),
- fn: () => SCe(e),
++ fn: () => hwe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => ywe(e, t) }
- table_getColumn: { fn: (t) => CCe(e, t) }
++ table_getColumn: { fn: (t) => gwe(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
- function xwe(e) {
-function TCe(e) {
++function vwe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@@ -53680,8 -52010,8 +53680,8 @@@
}
return e._headerPrototype;
}
- function UL(e, t, n) {
- let r = xwe(e), i = Object.create(r);
-function _L(e, t, n) {
- let r = TCe(e), i = Object.create(r);
++function KL(e, t, n) {
++ let r = vwe(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);
@@@ -53689,30 -52019,30 +53689,30 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
- function WL(e, t = 1) {
-function vL(e, t = 1) {
++function qL(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- RL(i) && i.columns.length && (n = Math.max(n, WL(i.columns, t + 1)));
- fL(i) && i.columns.length && (n = Math.max(n, vL(i.columns, t + 1)));
++ VL(i) && i.columns.length && (n = Math.max(n, qL(i.columns, t + 1)));
}
return n;
}
- function Swe(e, t) {
-function ECe(e, t) {
++function ywe(e, t) {
return e ? `${e}_${t}` : String(t);
}
- function Cwe(e, t, n, r) {
-function DCe(e, t, n, r) {
++function bwe(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 wwe(e, t) {
-function OCe(e, t) {
++function xwe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
- function GL(e, t, n, r, i, a) {
-function yL(e, t, n, r, i, a) {
++function JL(e, t, n, r, i, a) {
let o = {
depth: t,
- id: Swe(r, t),
- id: ECe(r, t),
++ id: ywe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@@ -53720,10 -52050,10 +53720,10 @@@
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 = UL(n, u, {
- id: Cwe(r, t, u.id, a.id),
- let e = _L(n, u, {
- id: DCe(r, t, u.id, a.id),
++ let e = KL(n, u, {
++ id: bwe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(wwe(s, u)) : void 0,
- placeholderId: d ? String(OCe(s, u)) : void 0,
++ placeholderId: d ? String(xwe(s, u)) : void 0,
depth: t,
index: s.length
});
@@@ -53732,18 -52062,18 +53732,18 @@@
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && GL(s, t - 1, n, r, i, a);
- i.push(o), t > 0 && yL(s, t - 1, n, r, i, a);
++ i.push(o), t > 0 && JL(s, t - 1, n, r, i, a);
}
- function KL(e) {
-function bL(e) {
++function YL(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!RL(n.column)) continue;
- if (!fL(n.column)) continue;
++ if (!VL(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- KL(n.subHeaders);
- bL(n.subHeaders);
++ YL(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- RL(t.column) && (r += t.colSpan);
- fL(t.column) && (r += t.colSpan);
++ VL(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@@ -53753,38 -52083,38 +53753,38 @@@
} else n.rowSpan = 1;
}
}
- function Twe(e, t, n, r) {
- let i = WL(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = UL(n, t[e], {
-function kCe(e, t, n, r) {
- let i = vL(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = _L(n, t[e], {
++function Swe(e, t, n, r) {
++ let i = qL(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
++ for (let e = 0; e < t.length; e++) e in t && (s[e] = KL(n, t[e], {
depth: i,
index: e
}));
- return GL(s, i - 1, n, r, a, o), a.reverse(), KL(a[0]?.headers ?? []), a;
- return yL(s, i - 1, n, r, a, o), a.reverse(), bL(a[0]?.headers ?? []), a;
++ return JL(s, i - 1, n, r, a, o), a.reverse(), YL(a[0]?.headers ?? []), a;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
- function qL(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) qL(e.subHeaders[n], t);
-function xL(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) xL(e.subHeaders[n], t);
++function XL(e, t) {
++ for (let n = 0; n < e.subHeaders.length; n++) XL(e.subHeaders[n], t);
t.push(e);
}
- function Ewe(e) {
-function ACe(e) {
++function Cwe(e) {
let t = [];
- return qL(e, t), t;
- return xL(e, t), t;
++ return XL(e, t), t;
}
- function Dwe(e) {
-function jCe(e) {
++function wwe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
- function Owe(e) {
- return Twe(e.getAllColumns(), swe(e, owe(e), (e) => e.id), e);
-function MCe(e) {
- return kCe(e.getAllColumns(), dCe(e, uCe(e), (e) => e.id), e);
++function Twe(e) {
++ return Swe(e.getAllColumns(), iwe(e, rwe(e), (e) => e.id), e);
}
- function kwe(e) {
-function NCe(e) {
++function Ewe(e) {
return [...e.getHeaderGroups()].reverse();
}
- function Awe(e) {
-function PCe(e) {
++function Dwe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@@ -53792,7 -52122,7 +53792,7 @@@
}
return n;
}
- function jwe(e) {
-function FCe(e) {
++function Owe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@@ -53802,23 -52132,23 +53802,23 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
- var Mwe = {
-var ICe = {
++var kwe = {
assignHeaderPrototype: (e, t) => {
- IL("coreHeadersFeature", e, t, {
- uL("coreHeadersFeature", e, t, {
++ zL("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => Ewe(e),
- fn: (e) => ACe(e),
++ fn: (e) => Cwe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => Dwe(e),
- fn: (e) => jCe(e),
++ fn: (e) => wwe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- FL("coreHeadersFeature", e, {
- lL("coreHeadersFeature", e, {
++ RL("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => Owe(e),
- fn: () => MCe(e),
++ fn: () => Twe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@@ -53829,15 -52159,15 +53829,15 @@@
]
},
table_getFooterGroups: {
- fn: () => kwe(e),
- fn: () => NCe(e),
++ fn: () => Ewe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => Awe(e),
- fn: () => PCe(e),
++ fn: () => Dwe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => jwe(e),
- fn: () => FCe(e),
++ fn: () => Owe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
@@@ -53845,7 -52175,7 +53845,7 @@@
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
- function Nwe(e) {
-function LCe(e) {
++function Awe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@@ -53853,102 -52183,102 +53853,102 @@@
}
return e._rowPrototype;
}
- var Pwe = (e, t, n, r, i, a, o) => {
- let s = Nwe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = TL(), c._valuesCache = TL(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
-var RCe = (e, t, n, r, i, a, o) => {
- let s = LCe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = $I(), c._valuesCache = $I(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
++var jwe = (e, t, n, r, i, a, o) => {
++ let s = Awe(e), c = Object.create(s);
++ c._displayIndexCache = -1, c._uniqueValuesCache = OL(), c._valuesCache = OL(), 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;
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
- function Fwe() {
- return (e) => NL({
-function zCe() {
- return (e) => sL({
++function Mwe() {
++ return (e) => IL({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => Iwe(e, e.options.data),
- onAfterUpdate: ML(() => {
- cwe(e), VL(e), lwe(e), uwe(e);
- fn: () => BCe(e, e.options.data),
- onAfterUpdate: oL(() => {
- fCe(e), hL(e), pCe(e), mCe(e);
++ fn: () => Nwe(e, e.options.data),
++ onAfterUpdate: FL(() => {
++ awe(e), WL(e), owe(e), swe(e);
})
});
}
- function JL(e, t, n, r = 0, i) {
-function SL(e, t, n, r = 0, i) {
++function ZL(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = Pwe(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 = JL(e, t, c.originalSubRows, r + 1, c)));
- let s = n[o], c = RCe(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 = SL(e, t, c.originalSubRows, r + 1, c)));
++ let s = n[o], c = jwe(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 = ZL(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
- function Iwe(e, t) {
-function BCe(e, t) {
++function Nwe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: TL()
- rowsById: $I()
++ rowsById: OL()
};
- return n.rows = JL(e, n, t), n;
- return n.rows = SL(e, n, t), n;
++ return n.rows = ZL(e, n, t), n;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
- function Lwe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Fwe()(e)), e._rowModels.coreRowModel();
-function VCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? zCe()(e)), e._rowModels.coreRowModel();
++function Pwe(e) {
++ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? Mwe()(e)), e._rowModels.coreRowModel();
}
- function Rwe(e) {
-function HCe(e) {
++function Fwe(e) {
return e.getCoreRowModel();
}
- function zwe(e) {
-function UCe(e) {
++function Iwe(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 Bwe(e) {
-function WCe(e) {
++function Lwe(e) {
return e.getFilteredRowModel();
}
- function Vwe(e) {
-function GCe(e) {
++function Rwe(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 Hwe(e) {
-function KCe(e) {
++function zwe(e) {
return e.getGroupedRowModel();
}
- function Uwe(e) {
-function qCe(e) {
++function Bwe(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 Wwe(e) {
-function JCe(e) {
++function Vwe(e) {
return e.getSortedRowModel();
}
- function Gwe(e) {
-function YCe(e) {
++function Hwe(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 Kwe(e) {
-function XCe(e) {
++function Uwe(e) {
return e.getExpandedRowModel();
}
- function qwe(e) {
-function ZCe(e) {
++function Wwe(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 Jwe(e) {
-function QCe(e) {
++function Gwe(e) {
return e.getPaginatedRowModel();
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
- var Ywe = { constructTableAPIs: (e) => {
- FL("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => Lwe(e) },
- table_getPreFilteredRowModel: { fn: () => Rwe(e) },
- table_getFilteredRowModel: { fn: () => zwe(e) },
- table_getPreGroupedRowModel: { fn: () => Bwe(e) },
- table_getGroupedRowModel: { fn: () => Vwe(e) },
- table_getPreSortedRowModel: { fn: () => Hwe(e) },
- table_getSortedRowModel: { fn: () => Uwe(e) },
- table_getPreExpandedRowModel: { fn: () => Wwe(e) },
- table_getExpandedRowModel: { fn: () => Gwe(e) },
- table_getPrePaginatedRowModel: { fn: () => Kwe(e) },
- table_getPaginatedRowModel: { fn: () => qwe(e) },
- table_getRowModel: { fn: () => Jwe(e) }
-var $Ce = { constructTableAPIs: (e) => {
- lL("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => VCe(e) },
- table_getPreFilteredRowModel: { fn: () => HCe(e) },
- table_getFilteredRowModel: { fn: () => UCe(e) },
- table_getPreGroupedRowModel: { fn: () => WCe(e) },
- table_getGroupedRowModel: { fn: () => GCe(e) },
- table_getPreSortedRowModel: { fn: () => KCe(e) },
- table_getSortedRowModel: { fn: () => qCe(e) },
- table_getPreExpandedRowModel: { fn: () => JCe(e) },
- table_getExpandedRowModel: { fn: () => YCe(e) },
- table_getPrePaginatedRowModel: { fn: () => XCe(e) },
- table_getPaginatedRowModel: { fn: () => ZCe(e) },
- table_getRowModel: { fn: () => QCe(e) }
++var Kwe = { constructTableAPIs: (e) => {
++ RL("coreRowModelsFeature", e, {
++ table_getCoreRowModel: { fn: () => Pwe(e) },
++ table_getPreFilteredRowModel: { fn: () => Fwe(e) },
++ table_getFilteredRowModel: { fn: () => Iwe(e) },
++ table_getPreGroupedRowModel: { fn: () => Lwe(e) },
++ table_getGroupedRowModel: { fn: () => Rwe(e) },
++ table_getPreSortedRowModel: { fn: () => zwe(e) },
++ table_getSortedRowModel: { fn: () => Bwe(e) },
++ table_getPreExpandedRowModel: { fn: () => Vwe(e) },
++ table_getExpandedRowModel: { fn: () => Hwe(e) },
++ table_getPrePaginatedRowModel: { fn: () => Uwe(e) },
++ table_getPaginatedRowModel: { fn: () => Wwe(e) },
++ table_getRowModel: { fn: () => Gwe(e) }
});
} };
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
- function Xwe(e) {
-function ewe(e) {
++function qwe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@@ -53956,8 -52286,8 +53956,8 @@@
}
return e._cellPrototype;
}
- function Zwe(e, t, n) {
- let r = Xwe(n), i = Object.create(r);
-function twe(e, t, n) {
- let r = ewe(n), i = Object.create(r);
++function Jwe(e, t, n) {
++ let r = qwe(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);
@@@ -53965,40 -52295,40 +53965,40 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
- function Qwe(e) {
-function nwe(e) {
++function Ywe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
- function $we(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? BL(e, t).rows : t.rows;
-function rwe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? mL(e, t).rows : t.rows;
++function Xwe(e) {
++ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? UL(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
- function eTe(e, t) {
- if (EL(e._valuesCache, t)) return e._valuesCache[t];
-function iwe(e, t) {
- if (eL(e._valuesCache, t)) return e._valuesCache[t];
++function Zwe(e, t) {
++ if (kL(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 tTe(e, t) {
- if (EL(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
-function awe(e, t) {
- if (eL(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
++function Qwe(e, t) {
++ if (kL(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 nTe(e, t) {
-function owe(e, t) {
++function $we(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
- function rTe(e) {
- return QCe(e.subRows, (e) => e.subRows);
-function swe(e) {
- return nCe(e.subRows, (e) => e.subRows);
++function eTe(e) {
++ return YCe(e.subRows, (e) => e.subRows);
}
- function iTe(e) {
-function cwe(e) {
++function tTe(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 aTe(e) {
-function lwe(e) {
++function nTe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
- function oTe(e) {
-function uwe(e) {
++function rTe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@@ -54007,71 -52337,71 +54007,71 @@@
}
return t.reverse();
}
- function sTe(e) {
-function dwe(e) {
++function iTe(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 = Zwe(a, e, e.table), n.set(a, o)), r[i] = o;
- o || (o = twe(a, e, e.table), n.set(a, o)), r[i] = o;
++ o || (o = Jwe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
- function cTe(e) {
- let t = TL(), n = e.getAllCells();
-function fwe(e) {
- let t = $I(), n = e.getAllCells();
++function aTe(e) {
++ let t = OL(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
- function lTe(e, t, n, r) {
-function pwe(e, t, n, r) {
++function oTe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
- function uTe(e, t, n) {
-function mwe(e, t, n) {
++function sTe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
- var dTe = {
-var hwe = {
++var cTe = {
assignRowPrototype: (e, t) => {
- IL("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => Qwe(e) },
- uL("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => nwe(e) },
++ zL("coreRowsFeature", e, t, {
++ row_getDisplayIndex: { fn: (e) => Ywe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => cTe(e),
- fn: (e) => fwe(e),
++ fn: (e) => aTe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => sTe(e),
- fn: (e) => dwe(e),
++ fn: (e) => iTe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => rTe(e),
- fn: (e) => swe(e),
++ fn: (e) => eTe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => aTe(e) },
- row_getParentRows: { fn: (e) => oTe(e) },
- row_getUniqueValues: { fn: (e, t) => tTe(e, t) },
- row_getValue: { fn: (e, t) => eTe(e, t) },
- row_renderValue: { fn: (e, t) => nTe(e, t) }
- row_getParentRow: { fn: (e) => lwe(e) },
- row_getParentRows: { fn: (e) => uwe(e) },
- row_getUniqueValues: { fn: (e, t) => awe(e, t) },
- row_getValue: { fn: (e, t) => iwe(e, t) },
- row_renderValue: { fn: (e, t) => owe(e, t) }
++ row_getParentRow: { fn: (e) => nTe(e) },
++ row_getParentRows: { fn: (e) => rTe(e) },
++ row_getUniqueValues: { fn: (e, t) => Qwe(e, t) },
++ row_getValue: { fn: (e, t) => Zwe(e, t) },
++ row_renderValue: { fn: (e, t) => $we(e, t) }
});
},
constructTableAPIs: (e) => {
- FL("coreRowsFeature", e, {
- lL("coreRowsFeature", e, {
++ RL("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => $we(e),
- fn: () => rwe(e),
++ fn: () => Xwe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => lTe(t, e, n, r) },
- table_getRow: { fn: (t, n) => uTe(e, t, n) },
- table_getRowId: { fn: (t, n, r) => pwe(t, e, n, r) },
- table_getRow: { fn: (t, n) => mwe(e, t, n) },
++ table_getRowId: { fn: (t, n, r) => oTe(t, e, n, r) },
++ table_getRow: { fn: (t, n) => sTe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => iTe(e),
- fn: () => cwe(e),
++ fn: () => tTe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@@ -54079,7 -52409,7 +54079,7 @@@
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
- function YL(e, t, n = (e, t) => e === t) {
-function CL(e, t, n = (e, t) => e === t) {
++function QL(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) {
@@@ -54090,13 -52420,13 +54090,13 @@@
}
});
}
- function XL(e, t, n = (e, t) => e === t) {
-function wL(e, t, n = (e, t) => e === t) {
++function $L(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- YL(e, t, n), e._reactivity.commit?.();
- CL(e, t, n), e._reactivity.commit?.();
++ QL(e, t, n), e._reactivity.commit?.();
});
}
- function fTe(e) {
- let t = CL(e.initialState);
-function gwe(e) {
- let t = ZI(e.initialState);
++function lTe(e) {
++ let t = EL(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@@ -54107,7 -52437,7 +54107,7 @@@
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
- function pTe(e, t) {
-function _we(e, t) {
++function uTe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@@ -54139,28 -52469,28 +54139,28 @@@
}
});
}
- function ZL(e, t, n) {
- let r = pTe(e, SL(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && XL(e, r.state ?? null);
-function TL(e, t, n) {
- let r = _we(e, XI(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && wL(e, r.state ?? null);
++function eR(e, t, n) {
++ let r = uTe(e, TL(t, e.options));
++ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && $L(e, r.state ?? null);
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/coreFeatures.js
- var mTe = {
- coreCellsFeature: rwe,
- coreColumnsFeature: bwe,
- coreHeadersFeature: Mwe,
- coreRowModelsFeature: Ywe,
- coreRowsFeature: dTe,
-var vwe = {
- coreCellsFeature: sCe,
- coreColumnsFeature: wCe,
- coreHeadersFeature: ICe,
- coreRowModelsFeature: $Ce,
- coreRowsFeature: hwe,
++var dTe = {
++ coreCellsFeature: ewe,
++ coreColumnsFeature: _we,
++ coreHeadersFeature: kwe,
++ coreRowModelsFeature: Kwe,
++ coreRowsFeature: cTe,
coreTablesFeature: { constructTableAPIs: (e) => {
- FL("coreTablesFeature", e, {
- table_reset: { fn: () => fTe(e) },
- table_setOptions: { fn: (t) => ZL(e, t) }
- lL("coreTablesFeature", e, {
- table_reset: { fn: () => gwe(e) },
- table_setOptions: { fn: (t) => TL(e, t) }
++ RL("coreTablesFeature", e, {
++ table_reset: { fn: () => lTe(e) },
++ table_setOptions: { fn: (t) => eR(e, t) }
});
} }
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
- function QL() {
-function EL() {
++function tR() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@@ -54176,22 -52506,22 +54176,22 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
- function $L(e) {
-function DL(e) {
++function nR(e) {
return e;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/core/table/constructTable.js
- function hTe(e, t = {}) {
-function ywe(e, t = {}) {
++function fTe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), CL(t);
- }), ZI(t);
++ }), EL(t);
}
- function gTe(e) {
-function bwe(e) {
++function pTe(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: {
- ...mTe,
- ...vwe,
++ ...dTe,
..._
},
_headerGroupInstanceInitFns: [],
@@@ -54229,7 -52559,7 +54229,7 @@@
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = hTe(v._features, v.options.initialState);
- })) : v.options = b, v.initialState = ywe(v._features, v.options.initialState);
++ })) : v.options = b, v.initialState = fTe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@@ -54237,14 -52567,14 +54237,14 @@@
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 && EL(i, n)) {
- if (i && eL(i, n)) {
++ if (i && kL(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- YL(v), v.store = GCe(t.createReadonlyAtom(() => {
- CL(v), v.store = YSe(t.createReadonlyAtom(() => {
++ QL(v), v.store = HCe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@@ -54252,7 -52582,7 +54252,7 @@@
}
return e;
}, {
- compare: vL,
- compare: KI,
++ compare: xL,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@@ -54263,43 -52593,43 +54263,43 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.utils.js
- var eR = 0, tR = 10;
- function nR() {
-var OL = 0, kL = 10;
-function AL() {
++var rR = 0, iR = 10;
++function aR() {
return {
- pageIndex: eR,
- pageSize: tR
- pageIndex: OL,
- pageSize: kL
++ pageIndex: rR,
++ pageSize: iR
};
}
- function _Te(e) {
-function xwe(e) {
++function mTe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? eR) === eR) return;
- aR(e, !0);
- if ((e.atoms.pagination?.get()?.pageIndex ?? OL) === OL) return;
- NL(e, !0);
++ if ((e.atoms.pagination?.get()?.pageIndex ?? rR) === rR) return;
++ cR(e, !0);
}
}
- function rR(e, t) {
- jL(e, "pagination", t);
-function jL(e, t) {
- aL(e, "pagination", t);
++function oR(e, t) {
++ PL(e, "pagination", t);
}
- function vTe(e, t) {
- rR(e, t ? nR() : CL(e.initialState.pagination ?? nR()));
-function Swe(e, t) {
- jL(e, t ? AL() : ZI(e.initialState.pagination ?? AL()));
++function hTe(e, t) {
++ oR(e, t ? aR() : EL(e.initialState.pagination ?? aR()));
}
- function iR(e, t) {
- rR(e, (n) => {
- let r = SL(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
-function ML(e, t) {
- jL(e, (n) => {
- let r = XI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
++function sR(e, t) {
++ oR(e, (n) => {
++ let r = TL(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 aR(e, t) {
- iR(e, t ? eR : e.initialState.pagination?.pageIndex ?? eR);
-function NL(e, t) {
- ML(e, t ? OL : e.initialState.pagination?.pageIndex ?? OL);
++function cR(e, t) {
++ sR(e, t ? rR : e.initialState.pagination?.pageIndex ?? rR);
}
- function yTe(e, t) {
- oR(e, t ? tR : e.initialState.pagination?.pageSize ?? tR);
-function Cwe(e, t) {
- PL(e, t ? kL : e.initialState.pagination?.pageSize ?? kL);
++function gTe(e, t) {
++ lR(e, t ? iR : e.initialState.pagination?.pageSize ?? iR);
}
- function oR(e, t) {
- rR(e, (e) => {
- let n = Math.max(1, SL(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
-function PL(e, t) {
- jL(e, (e) => {
- let n = Math.max(1, XI(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
++function lR(e, t) {
++ oR(e, (e) => {
++ let n = Math.max(1, TL(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@@ -54307,233 -52637,233 +54307,233 @@@
};
});
}
- function bTe(e) {
- let t = sR(e), n = [];
-function wwe(e) {
- let t = FL(e), n = [];
++function _Te(e) {
++ let t = uR(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
- function xTe(e) {
-function Twe(e) {
++function vTe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
- function STe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? eR, n = sR(e);
-function Ewe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? OL, n = FL(e);
++function yTe(e) {
++ let t = e.atoms.pagination?.get()?.pageIndex ?? rR, n = uR(e);
return n === -1 || n !== 0 && t < n - 1;
}
- function CTe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? eR, n = sR(e);
-function Dwe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? OL, n = FL(e);
++function bTe(e) {
++ let t = e.atoms.pagination?.get()?.pageIndex ?? rR, n = uR(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
- function wTe(e) {
- return iR(e, (e) => e - 1);
-function Owe(e) {
- return ML(e, (e) => e - 1);
++function xTe(e) {
++ return sR(e, (e) => e - 1);
}
- function TTe(e) {
- return iR(e, (e) => e + 1);
-function kwe(e) {
- return ML(e, (e) => e + 1);
++function STe(e) {
++ return sR(e, (e) => e + 1);
}
- function ETe(e) {
- return iR(e, 0);
-function Awe(e) {
- return ML(e, 0);
++function CTe(e) {
++ return sR(e, 0);
}
- function DTe(e) {
- let t = sR(e);
- if (!(!Number.isFinite(t) || t <= 0)) return iR(e, t - 1);
-function jwe(e) {
- let t = FL(e);
- if (!(!Number.isFinite(t) || t <= 0)) return ML(e, t - 1);
++function wTe(e) {
++ let t = uR(e);
++ if (!(!Number.isFinite(t) || t <= 0)) return sR(e, t - 1);
}
- function sR(e) {
-function FL(e) {
++function uR(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = cR(e), r = e.atoms.pagination?.get()?.pageSize ?? tR;
- let n = IL(e), r = e.atoms.pagination?.get()?.pageSize ?? kL;
++ let n = dR(e), r = e.atoms.pagination?.get()?.pageSize ?? iR;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
- function cR(e) {
-function IL(e) {
++function dR(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
- var lR = {
-var LL = {
++var fR = {
getInitialState: (e) => ({
...e,
pagination: {
- ...nR(),
- ...AL(),
++ ...aR(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: DL("pagination", e) }),
- getDefaultTableOptions: (e) => ({ onPaginationChange: tL("pagination", e) }),
++ getDefaultTableOptions: (e) => ({ onPaginationChange: AL("pagination", e) }),
constructTableAPIs: (e) => {
- FL("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => _Te(e) },
- table_setPagination: { fn: (t) => rR(e, t) },
- table_resetPagination: { fn: (t) => vTe(e, t) },
- table_setPageIndex: { fn: (t) => iR(e, t) },
- table_resetPageIndex: { fn: (t) => aR(e, t) },
- table_setPageSize: { fn: (t) => oR(e, t) },
- table_getPageCount: { fn: () => sR(e) },
- table_resetPageSize: { fn: (t) => yTe(e, t) },
- table_getPageOptions: { fn: () => bTe(e) },
- table_getCanPreviousPage: { fn: () => xTe(e) },
- table_getCanNextPage: { fn: () => STe(e) },
- table_getCanLastPage: { fn: () => CTe(e) },
- table_previousPage: { fn: () => wTe(e) },
- table_nextPage: { fn: () => TTe(e) },
- table_firstPage: { fn: () => ETe(e) },
- table_lastPage: { fn: () => DTe(e) },
- table_getRowCount: { fn: () => cR(e) }
- lL("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => xwe(e) },
- table_setPagination: { fn: (t) => jL(e, t) },
- table_resetPagination: { fn: (t) => Swe(e, t) },
- table_setPageIndex: { fn: (t) => ML(e, t) },
- table_resetPageIndex: { fn: (t) => NL(e, t) },
- table_setPageSize: { fn: (t) => PL(e, t) },
- table_getPageCount: { fn: () => FL(e) },
- table_resetPageSize: { fn: (t) => Cwe(e, t) },
- table_getPageOptions: { fn: () => wwe(e) },
- table_getCanPreviousPage: { fn: () => Twe(e) },
- table_getCanNextPage: { fn: () => Ewe(e) },
- table_getCanLastPage: { fn: () => Dwe(e) },
- table_previousPage: { fn: () => Owe(e) },
- table_nextPage: { fn: () => kwe(e) },
- table_firstPage: { fn: () => Awe(e) },
- table_lastPage: { fn: () => jwe(e) },
- table_getRowCount: { fn: () => IL(e) }
++ RL("rowPaginationFeature", e, {
++ table_autoResetPageIndex: { fn: () => mTe(e) },
++ table_setPagination: { fn: (t) => oR(e, t) },
++ table_resetPagination: { fn: (t) => hTe(e, t) },
++ table_setPageIndex: { fn: (t) => sR(e, t) },
++ table_resetPageIndex: { fn: (t) => cR(e, t) },
++ table_setPageSize: { fn: (t) => lR(e, t) },
++ table_getPageCount: { fn: () => uR(e) },
++ table_resetPageSize: { fn: (t) => gTe(e, t) },
++ table_getPageOptions: { fn: () => _Te(e) },
++ table_getCanPreviousPage: { fn: () => vTe(e) },
++ table_getCanNextPage: { fn: () => yTe(e) },
++ table_getCanLastPage: { fn: () => bTe(e) },
++ table_previousPage: { fn: () => xTe(e) },
++ table_nextPage: { fn: () => STe(e) },
++ table_firstPage: { fn: () => CTe(e) },
++ table_lastPage: { fn: () => wTe(e) },
++ table_getRowCount: { fn: () => dR(e) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
- function OTe() {
- return TL();
-function Mwe() {
- return $I();
++function TTe() {
++ return OL();
}
- function uR(e, t) {
-function RL(e, t) {
++function pR(e, t) {
e.options.onRowSelectionChange?.(t);
}
- function kTe(e, t) {
- e._lastSelectedRowId = null, uR(e, t ? TL() : Object.assign(TL(), CL(e.initialState.rowSelection ?? {})));
-function Nwe(e, t) {
- e._lastSelectedRowId = null, RL(e, t ? $I() : Object.assign($I(), ZI(e.initialState.rowSelection ?? {})));
++function ETe(e, t) {
++ e._lastSelectedRowId = null, pR(e, t ? OL() : Object.assign(OL(), EL(e.initialState.rowSelection ?? {})));
}
- function dR(e, t, n) {
- e._lastSelectedRowId = null, uR(e, (r) => {
- if (t = t === void 0 ? !LL(e, "getIsAllRowsSelected", mR) : t, n?.deselectAll && !t) return TL();
- let i = Object.assign(TL(), r), a = e.getPreGroupedRowModel().flatRows;
-function zL(e, t, n) {
- e._lastSelectedRowId = null, RL(e, (r) => {
- if (t = t === void 0 ? !dL(e, "getIsAllRowsSelected", HL) : t, n?.deselectAll && !t) return $I();
- let i = Object.assign($I(), r), a = e.getPreGroupedRowModel().flatRows;
++function mR(e, t, n) {
++ e._lastSelectedRowId = null, pR(e, (r) => {
++ if (t = t === void 0 ? !BL(e, "getIsAllRowsSelected", _R) : t, n?.deselectAll && !t) return OL();
++ let i = Object.assign(OL(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- wR(t, e) && (i[t.id] = !0);
- QL(t, e) && (i[t.id] = !0);
++ DR(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- bR(e) && delete i[e.id];
- JL(e) && delete i[e.id];
++ CR(e) && delete i[e.id];
});
return i;
});
}
- function fR(e, t, n) {
- e._lastSelectedRowId = null, uR(e, (r) => {
- let i = t === void 0 ? !LL(e, "getIsAllPageRowsSelected", hR) : t;
- if (n?.deselectAll && !i) return TL();
- let a = Object.assign(TL(), r);
-function BL(e, t, n) {
- e._lastSelectedRowId = null, RL(e, (r) => {
- let i = t === void 0 ? !dL(e, "getIsAllPageRowsSelected", UL) : t;
- if (n?.deselectAll && !i) return $I();
- let a = Object.assign($I(), r);
++function hR(e, t, n) {
++ e._lastSelectedRowId = null, pR(e, (r) => {
++ let i = t === void 0 ? !BL(e, "getIsAllPageRowsSelected", vR) : t;
++ if (n?.deselectAll && !i) return OL();
++ let a = Object.assign(OL(), r);
return e.getRowModel().rows.forEach((t) => {
- CR(a, t.id, i, !0, e, !0);
- ZL(a, t.id, i, !0, e, !0);
++ ER(a, t.id, i, !0, e, !0);
}), a;
});
}
- function ATe(e) {
-function Pwe(e) {
++function DTe(e) {
return e.getCoreRowModel();
}
- function jTe(e) {
-function Fwe(e) {
++function OTe(e) {
let t = e.getCoreRowModel();
- return LL(e, "getIsSomeRowsSelected", gR) ? DR(t, e) : {
- return dL(e, "getIsSomeRowsSelected", WL) ? tR(t, e) : {
++ return BL(e, "getIsSomeRowsSelected", yR) ? AR(t, e) : {
rows: [],
flatRows: [],
- rowsById: TL()
- rowsById: $I()
++ rowsById: OL()
};
}
- function MTe(e) {
-function Iwe(e) {
++function kTe(e) {
let t = e.getFilteredRowModel();
- return LL(e, "getIsSomeRowsSelected", gR) ? DR(t, e) : {
- return dL(e, "getIsSomeRowsSelected", WL) ? tR(t, e) : {
++ return BL(e, "getIsSomeRowsSelected", yR) ? AR(t, e) : {
rows: [],
flatRows: [],
- rowsById: TL()
- rowsById: $I()
++ rowsById: OL()
};
}
- function NTe(e) {
-function Lwe(e) {
++function ATe(e) {
let t = e.getSortedRowModel();
- return LL(e, "getIsSomeRowsSelected", gR) ? DR(t, e) : {
- return dL(e, "getIsSomeRowsSelected", WL) ? tR(t, e) : {
++ return BL(e, "getIsSomeRowsSelected", yR) ? AR(t, e) : {
rows: [],
flatRows: [],
- rowsById: TL()
- rowsById: $I()
++ rowsById: OL()
};
}
- function pR(e) {
-function VL(e) {
++function gR(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
- function mR(e) {
-function HL(e) {
++function _R(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) => !OR(t, n) && wR(t, e)) && (r = !1);
- t.some((t) => !nR(t, n) && QL(t, e)) && (r = !1);
++ t.some((t) => !jR(t, n) && DR(t, e)) && (r = !1);
}
return r;
}
- function hR(e) {
-function UL(e) {
++function vR(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 (OR(a, n)) !i && wR(a, r) && (i = !0);
- else if (wR(a, r)) return !1;
- if (nR(a, n)) !i && QL(a, r) && (i = !0);
- else if (QL(a, r)) return !1;
++ if (jR(a, n)) !i && DR(a, r) && (i = !0);
++ else if (DR(a, r)) return !1;
}
return i;
}
- function gR(e) {
- return LL(e, "getSelectedRowIds", pR).length > 0;
-function WL(e) {
- return dL(e, "getSelectedRowIds", VL).length > 0;
++function yR(e) {
++ return BL(e, "getSelectedRowIds", gR).length > 0;
}
- function PTe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => bR(e)).some((e) => vR(e) || LL(e, "getIsSomeSelected", yR));
-function Rwe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => JL(e)).some((e) => KL(e) || dL(e, "getIsSomeSelected", qL));
++function jTe(e) {
++ return e.getPaginatedRowModel().flatRows.filter((e) => CR(e)).some((e) => xR(e) || BL(e, "getIsSomeSelected", SR));
}
- function FTe(e) {
-function zwe(e) {
++function MTe(e) {
return (t) => {
- dR(e, t.target.checked);
- zL(e, t.target.checked);
++ mR(e, t.target.checked);
};
}
- function ITe(e) {
-function Bwe(e) {
++function NTe(e) {
return (t) => {
- fR(e, t.target.checked);
- BL(e, t.target.checked);
++ hR(e, t.target.checked);
};
}
- function _R(e, t, n) {
- let r = vR(e);
- uR(e.table, (i) => {
-function GL(e, t, n) {
- let r = KL(e);
- RL(e.table, (i) => {
++function bR(e, t, n) {
++ let r = xR(e);
++ pR(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(TL(), i);
- return CR(a, e.id, t, (n?.selectChildren ?? !0) && SR(e), e.table), !t && n?.deselectParents && TR(a, e), a;
- let a = Object.assign($I(), i);
- return ZL(a, e.id, t, (n?.selectChildren ?? !0) && XL(e), e.table), !t && n?.deselectParents && $L(a, e), a;
++ let a = Object.assign(OL(), i);
++ return ER(a, e.id, t, (n?.selectChildren ?? !0) && TR(e), e.table), !t && n?.deselectParents && OR(a, e), a;
});
}
- function vR(e) {
- return OR(e, e.table.atoms.rowSelection?.get() ?? {});
-function KL(e) {
- return nR(e, e.table.atoms.rowSelection?.get() ?? {});
++function xR(e) {
++ return jR(e, e.table.atoms.rowSelection?.get() ?? {});
}
- function yR(e) {
- return kR(e) === "some";
-function qL(e) {
- return rR(e) === "some";
++function SR(e) {
++ return MR(e) === "some";
}
- function LTe(e) {
- return kR(e) === "all";
-function Vwe(e) {
- return rR(e) === "all";
++function PTe(e) {
++ return MR(e) === "all";
}
- function bR(e) {
-function JL(e) {
++function CR(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
- function xR(e) {
-function YL(e) {
++function wR(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
- function SR(e) {
-function XL(e) {
++function TR(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
- function RTe(e, t) {
- let n = bR(e);
-function Hwe(e, t) {
- let n = JL(e);
++function FTe(e, t) {
++ let n = CR(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 && SR(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !zTe(e, s, o, t)) && _R(e, o, t), a._lastSelectedRowId = e.id;
- (!(a.options.enableRowRangeSelection !== !1 && s !== null && XL(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !Uwe(e, s, o, t)) && GL(e, o, t), a._lastSelectedRowId = e.id;
++ (!(a.options.enableRowRangeSelection !== !1 && s !== null && TR(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1)) || !ITe(e, s, o, t)) && bR(e, o, t), a._lastSelectedRowId = e.id;
};
}
- function zTe(e, t, n, r) {
-function Uwe(e, t, n, r) {
++function ITe(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 || !SR(s) || !SR(e)) return !1;
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !XL(s) || !XL(e)) return !1;
++ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !TR(s) || !TR(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return uR(a, (e) => {
- let t = Object.assign(TL(), e);
- return RL(a, (e) => {
- let t = Object.assign($I(), e);
++ return pR(a, (e) => {
++ let t = Object.assign(OL(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- bR(s) && SR(s) && (CR(t, s.id, n, i, a), !n && r?.deselectParents && TR(t, s));
- JL(s) && XL(s) && (ZL(t, s.id, n, i, a), !n && r?.deselectParents && $L(t, s));
++ CR(s) && TR(s) && (ER(t, s.id, n, i, a), !n && r?.deselectParents && OR(t, s));
}
return t;
}), !0;
}
- function CR(e, t, n, r, i, a) {
-function ZL(e, t, n, r, i, a) {
++function ER(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (SR(o) || Object.keys(e).forEach((t) => delete e[t]), bR(o) && (e[t] = !0)) : (!a || bR(o)) && delete e[t], r && o.subRows.length && xR(o) && o.subRows.forEach((t) => CR(e, t.id, n, r, i, a));
- n ? (XL(o) || Object.keys(e).forEach((t) => delete e[t]), JL(o) && (e[t] = !0)) : (!a || JL(o)) && delete e[t], r && o.subRows.length && YL(o) && o.subRows.forEach((t) => ZL(e, t.id, n, r, i, a));
++ n ? (TR(o) || Object.keys(e).forEach((t) => delete e[t]), CR(o) && (e[t] = !0)) : (!a || CR(o)) && delete e[t], r && o.subRows.length && wR(o) && o.subRows.forEach((t) => ER(e, t.id, n, r, i, a));
}
- function wR(e, t) {
- if (!bR(e)) return !1;
-function QL(e, t) {
- if (!JL(e)) return !1;
++function DR(e, t) {
++ if (!CR(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@@ -54549,7 -52879,7 +54549,7 @@@
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!xR(r)) {
- if (!YL(r)) {
++ if (!wR(r)) {
s = !1;
break;
}
@@@ -54557,43 -52887,43 +54557,43 @@@
}
return o.forEach((e) => t.set(e, s)), s;
}
- function TR(e, t) {
-function $L(e, t) {
++function OR(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 ER(e, t, n, r) {
-function eR(e, t, n, r) {
++function kR(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = OR(o, t);
- let o = e[a], s = nR(o, t);
++ let o = e[a], s = jR(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = ER(o.subRows, t, n, r);
- let e = eR(o.subRows, t, n, r);
++ let e = kR(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- wL(t, o), t.subRows = e, i.push(t);
- QI(t, o), t.subRows = e, i.push(t);
++ DL(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
- function DR(e, t) {
- let n = [], r = TL(), i = t.atoms.rowSelection?.get() ?? {};
-function tR(e, t) {
- let n = [], r = $I(), i = t.atoms.rowSelection?.get() ?? {};
++function AR(e, t) {
++ let n = [], r = OL(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: ER(e.rows, i, n, r),
- rows: eR(e.rows, i, n, r),
++ rows: kR(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
- function OR(e, t) {
- return !!(EL(t, e.id) && t[e.id]);
-function nR(e, t) {
- return !!(eL(t, e.id) && t[e.id]);
++function jR(e, t) {
++ return !!(kL(t, e.id) && t[e.id]);
}
- function kR(e) {
-function rR(e) {
++function MR(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 (bR(o) && (i = !0, OR(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = kR(o);
- if (JL(o) && (i = !0, nR(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = rR(o);
++ if (CR(o) && (i = !0, jR(o, t) ? n = !0 : r = !1), o.subRows.length) {
++ let e = MR(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
@@@ -54601,7 -52931,7 +54601,7 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
- var AR = {
-var iR = {
++var NR = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@@ -54609,11 -52939,11 +54609,11 @@@
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: OTe(),
- rowSelection: Mwe(),
++ rowSelection: TTe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: DL("rowSelection", e),
- onRowSelectionChange: tL("rowSelection", e),
++ onRowSelectionChange: AL("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@@ -54624,11 -52954,11 +54624,11 @@@
}
}),
assignRowPrototype: (e, t) => {
- IL("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => _R(e, t, n) },
- row_getIsSelected: { fn: (e) => vR(e) },
- uL("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => GL(e, t, n) },
- row_getIsSelected: { fn: (e) => KL(e) },
++ zL("rowSelectionFeature", e, t, {
++ row_toggleSelected: { fn: (e, t, n) => bR(e, t, n) },
++ row_getIsSelected: { fn: (e) => xR(e) },
row_getIsSomeSelected: {
- fn: (e) => yR(e),
- fn: (e) => qL(e),
++ fn: (e) => SR(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@@ -54636,44 -52966,44 +54636,44 @@@
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => LTe(e),
- fn: (e) => Vwe(e),
++ fn: (e) => PTe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => bR(e) },
- row_getCanSelectSubRows: { fn: (e) => xR(e) },
- row_getCanMultiSelect: { fn: (e) => SR(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => RTe(e, t) }
- row_getCanSelect: { fn: (e) => JL(e) },
- row_getCanSelectSubRows: { fn: (e) => YL(e) },
- row_getCanMultiSelect: { fn: (e) => XL(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => Hwe(e, t) }
++ row_getCanSelect: { fn: (e) => CR(e) },
++ row_getCanSelectSubRows: { fn: (e) => wR(e) },
++ row_getCanMultiSelect: { fn: (e) => TR(e) },
++ row_getToggleSelectedHandler: { fn: (e, t) => FTe(e, t) }
});
},
constructTableAPIs: (e) => {
- FL("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => uR(e, t) },
- table_resetRowSelection: { fn: (t) => kTe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => dR(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => fR(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => ATe(e) },
- lL("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => RL(e, t) },
- table_resetRowSelection: { fn: (t) => Nwe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => zL(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => BL(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => Pwe(e) },
++ RL("rowSelectionFeature", e, {
++ table_setRowSelection: { fn: (t) => pR(e, t) },
++ table_resetRowSelection: { fn: (t) => ETe(e, t) },
++ table_toggleAllRowsSelected: { fn: (t, n) => mR(e, t, n) },
++ table_toggleAllPageRowsSelected: { fn: (t, n) => hR(e, t, n) },
++ table_getPreSelectedRowModel: { fn: () => DTe(e) },
table_getSelectedRowModel: {
- fn: () => jTe(e),
- fn: () => Fwe(e),
++ fn: () => OTe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => MTe(e),
- fn: () => Iwe(e),
++ fn: () => kTe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => NTe(e),
- fn: () => Lwe(e),
++ fn: () => ATe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => pR(e),
- fn: () => VL(e),
++ fn: () => gR(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => mR(e),
- fn: () => HL(e),
++ fn: () => _R(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@@ -54682,7 -53012,7 +54682,7 @@@
]
},
table_getIsAllPageRowsSelected: {
- fn: () => hR(e),
- fn: () => UL(e),
++ fn: () => vR(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@@ -54691,49 -53021,49 +54691,49 @@@
]
},
table_getIsSomeRowsSelected: {
- fn: () => gR(e),
- fn: () => WL(e),
++ fn: () => yR(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => PTe(e),
- fn: () => Rwe(e),
++ fn: () => jTe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => FTe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => ITe(e) }
- table_getToggleAllRowsSelectedHandler: { fn: () => zwe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => Bwe(e) }
++ table_getToggleAllRowsSelectedHandler: { fn: () => MTe(e) },
++ table_getToggleAllPageRowsSelectedHandler: { fn: () => NTe(e) }
});
}
- }, BTe = /([0-9]+)/gm;
-}, Wwe = /([0-9]+)/gm;
++}, LTe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
- function VTe(e) {
-function Gwe(e) {
++function RTe(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 jR = /* @__PURE__ */ VTe({ sort: (e, t) => HTe(e, t) });
- function HTe(e, t) {
-var aR = /* @__PURE__ */ Gwe({ sort: (e, t) => Kwe(e, t) });
-function Kwe(e, t) {
++var PR = /* @__PURE__ */ RTe({ sort: (e, t) => zTe(e, t) });
++function zTe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
- function UTe() {
-function qwe() {
++function BTe() {
return [];
}
- function MR(e, t) {
- jL(e, "sorting", t);
-function oR(e, t) {
- aL(e, "sorting", t);
++function FR(e, t) {
++ PL(e, "sorting", t);
}
- function NR(e, t) {
- MR(e, t ? [] : CL(e.initialState.sorting ?? []));
-function sR(e, t) {
- oR(e, t ? [] : ZI(e.initialState.sorting ?? []));
++function IR(e, t) {
++ FR(e, t ? [] : EL(e.initialState.sorting ?? []));
}
- function WTe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && NR(e);
-function Jwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && sR(e);
++function VTe(e) {
++ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && IR(e);
}
- function PR(e) {
-function cR(e) {
++function LR(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);
@@@ -54741,7 -53071,7 +54741,7 @@@
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(BTe).length > 1)) {
- if (typeof a == "string" && (i = !0, a.split(Wwe).length > 1)) {
++ if (typeof a == "string" && (i = !0, a.split(LTe).length > 1)) {
r = "alphanumeric";
break;
}
@@@ -54750,9 -53080,9 +54750,9 @@@
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return jR;
- return aR;
++ return PR;
}
- function FR(e) {
-function lR(e) {
++function RR(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);
@@@ -54760,14 -53090,14 +54760,14 @@@
}
return "desc";
}
- function IR(e) {
-function uR(e) {
++function zR(e) {
let t = e.table._rowModelFns.sortFns;
- return ZCe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? PR(e) : t?.[e.columnDef.sortFn] ?? jR;
- return tCe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? cR(e) : t?.[e.columnDef.sortFn] ?? aR;
++ return JCe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? LR(e) : t?.[e.columnDef.sortFn] ?? PR;
}
- function LR(e, t, n) {
- let r = zR(e, n && VR(e)), i = t !== void 0;
- MR(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 && VR(e) && n);
-function dR(e, t, n) {
- let r = pR(e, n && hR(e)), i = t !== void 0;
- oR(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 && hR(e) && n);
++function BR(e, t, n) {
++ let r = HR(e, n && WR(e)), i = t !== void 0;
++ FR(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 && WR(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
@@@ -54783,41 -53113,41 +54783,41 @@@
}], c;
});
}
- function RR(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? FR(e) === "desc" ? "desc" : "asc";
-function fR(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? lR(e) === "desc" ? "desc" : "asc";
++function VR(e) {
++ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? RR(e) === "desc" ? "desc" : "asc";
}
- function zR(e, t) {
- let n = RR(e), r = HR(e);
-function pR(e, t) {
- let n = fR(e), r = gR(e);
++function HR(e, t) {
++ let n = VR(e), r = GR(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
- function BR(e) {
-function mR(e) {
++function UR(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
- function VR(e) {
-function hR(e) {
++function WR(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
- function HR(e) {
-function gR(e) {
++function GR(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
- function GTe(e) {
-function Ywe(e) {
++function HTe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
- function KTe(e) {
- MR(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
-function Xwe(e) {
- oR(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
++function UTe(e) {
++ FR(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
- function qTe(e) {
- let t = BR(e);
-function Zwe(e) {
- let t = mR(e);
++function WTe(e) {
++ let t = UR(e);
return (n) => {
- t && LR(e, void 0, VR(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
- t && dR(e, void 0, hR(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
++ t && BR(e, void 0, WR(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
- var UR = {
-var _R = {
++var KR = {
getInitialState(e) {
return {
- sorting: UTe(),
- sorting: qwe(),
++ sorting: BTe(),
...e
};
},
@@@ -54830,40 -53160,40 +54830,40 @@@
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: DL("sorting", e),
- onSortingChange: tL("sorting", e),
++ onSortingChange: AL("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- IL("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => PR(e) },
- column_getAutoSortDir: { fn: (e) => FR(e) },
- column_getSortFn: { fn: (e) => IR(e) },
- column_toggleSorting: { fn: (e, t, n) => LR(e, t, n) },
- column_getFirstSortDir: { fn: (e) => RR(e) },
- column_getNextSortingOrder: { fn: (e, t) => zR(e, t) },
- column_getCanSort: { fn: (e) => BR(e) },
- column_getCanMultiSort: { fn: (e) => VR(e) },
- column_getIsSorted: { fn: (e) => HR(e) },
- column_getSortIndex: { fn: (e) => GTe(e) },
- column_clearSorting: { fn: (e) => KTe(e) },
- column_getToggleSortingHandler: { fn: (e) => qTe(e) }
- uL("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => cR(e) },
- column_getAutoSortDir: { fn: (e) => lR(e) },
- column_getSortFn: { fn: (e) => uR(e) },
- column_toggleSorting: { fn: (e, t, n) => dR(e, t, n) },
- column_getFirstSortDir: { fn: (e) => fR(e) },
- column_getNextSortingOrder: { fn: (e, t) => pR(e, t) },
- column_getCanSort: { fn: (e) => mR(e) },
- column_getCanMultiSort: { fn: (e) => hR(e) },
- column_getIsSorted: { fn: (e) => gR(e) },
- column_getSortIndex: { fn: (e) => Ywe(e) },
- column_clearSorting: { fn: (e) => Xwe(e) },
- column_getToggleSortingHandler: { fn: (e) => Zwe(e) }
++ zL("rowSortingFeature", e, t, {
++ column_getAutoSortFn: { fn: (e) => LR(e) },
++ column_getAutoSortDir: { fn: (e) => RR(e) },
++ column_getSortFn: { fn: (e) => zR(e) },
++ column_toggleSorting: { fn: (e, t, n) => BR(e, t, n) },
++ column_getFirstSortDir: { fn: (e) => VR(e) },
++ column_getNextSortingOrder: { fn: (e, t) => HR(e, t) },
++ column_getCanSort: { fn: (e) => UR(e) },
++ column_getCanMultiSort: { fn: (e) => WR(e) },
++ column_getIsSorted: { fn: (e) => GR(e) },
++ column_getSortIndex: { fn: (e) => HTe(e) },
++ column_clearSorting: { fn: (e) => UTe(e) },
++ column_getToggleSortingHandler: { fn: (e) => WTe(e) }
});
},
constructTableAPIs(e) {
- FL("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => WTe(e) },
- table_setSorting: { fn: (t) => MR(e, t) },
- table_resetSorting: { fn: (t) => NR(e, t) }
- lL("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => Jwe(e) },
- table_setSorting: { fn: (t) => oR(e, t) },
- table_resetSorting: { fn: (t) => sR(e, t) }
++ RL("rowSortingFeature", e, {
++ table_autoResetSorting: { fn: () => VTe(e) },
++ table_setSorting: { fn: (t) => FR(e, t) },
++ table_resetSorting: { fn: (t) => IR(e, t) }
});
}
};
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-pagination/createPaginatedRowModel.js
- function WR() {
-function vR() {
++function qR() {
return (e) => {
let t = e;
- return NL({
- return sL({
++ return IL({
feature: "rowPaginationFeature",
table: t,
fnName: "table.getPaginatedRowModel",
@@@ -54872,14 -53202,14 +54872,14 @@@
t.atoms.pagination?.get(),
t.options.paginateExpandedRows ? void 0 : t.atoms.expanded?.get()
],
- fn: () => JTe(t)
- fn: () => Qwe(t)
++ fn: () => GTe(t)
});
};
}
- function JTe(e) {
-function Qwe(e) {
++function GTe(e) {
let t = e.getPrePaginatedRowModel(), n = e.atoms.pagination?.get();
if (!t.rows.length) return t;
- let { pageSize: r, pageIndex: i } = n ?? nR(), { rows: a, flatRows: o, rowsById: s } = t, c = a;
- let { pageSize: r, pageIndex: i } = n ?? AL(), { rows: a, flatRows: o, rowsById: s } = t, c = a;
++ let { pageSize: r, pageIndex: i } = n ?? aR(), { rows: a, flatRows: o, rowsById: s } = t, c = a;
if (r !== Infinity || i !== 0) {
let e = r * i, t = e + r;
c = a.slice(e, t);
@@@ -54889,7 -53219,7 +54889,7 @@@
rows: c,
flatRows: o,
rowsById: s
- } : BL(e, {
- } : mL(e, {
++ } : UL(e, {
rows: c,
flatRows: o,
rowsById: s
@@@ -54901,25 -53231,25 +54901,25 @@@
}
//#endregion
//#region node_modules/@tanstack/table-core/dist/features/row-sorting/createSortedRowModel.js
- function GR() {
-function yR() {
++function JR() {
return (e) => {
let t = e;
- return NL({
- return sL({
++ return IL({
feature: "rowSortingFeature",
table: t,
fnName: "table.getSortedRowModel",
memoDeps: () => [t.atoms.sorting?.get(), t.getPreSortedRowModel()],
- fn: () => YTe(t),
- onAfterUpdate: ML(() => VL(t))
- fn: () => $we(t),
- onAfterUpdate: oL(() => hL(t))
++ fn: () => KTe(t),
++ onAfterUpdate: FL(() => WL(t))
});
};
}
- function YTe(e) {
-function $we(e) {
++function KTe(e) {
let t = e.getPreSortedRowModel(), n = e.atoms.sorting?.get();
if (!t.rows.length || !n?.length) return t;
let r = [], i = n.filter((t) => {
let n = e.getColumn(t.id);
- return n ? BR(n) : !1;
- return n ? mR(n) : !1;
++ return n ? UR(n) : !1;
});
if (!i.length) return t;
let a = [];
@@@ -54930,7 -53260,7 +54930,7 @@@
desc: n.desc,
sortUndefined: r.columnDef.sortUndefined,
invertSorting: r.columnDef.invertSorting,
- sortFn: IR(r)
- sortFn: uR(r)
++ sortFn: zR(r)
});
}
let o = (e, t) => {
@@@ -54960,7 -53290,7 +54960,7 @@@
let e = s(a.subRows);
if (e.changed) {
let s = Object.create(Object.getPrototypeOf(a));
- wL(s, a), s.subRows = e.rows, t[i] = s, r[o] = s, n = !0;
- QI(s, a), s.subRows = e.rows, t[i] = s, r[o] = s, n = !0;
++ DL(s, a), s.subRows = e.rows, t[i] = s, r[o] = s, n = !0;
}
}
}
@@@ -54977,31 -53307,31 +54977,31 @@@
}
//#endregion
//#region node_modules/@tanstack/react-table/dist/useTable.js
- var XTe = typeof window > "u" ? S.useEffect : S.useLayoutEffect;
- function KR(e, t) {
-var eTe = typeof window > "u" ? S.useEffect : S.useLayoutEffect;
-function bR(e, t) {
++var qTe = typeof window > "u" ? S.useEffect : S.useLayoutEffect;
++function YR(e, t) {
let [{ table: n, rootSource: r }] = (0, S.useState)(() => {
- let t = gTe({
- let t = bwe({
++ let t = pTe({
...e,
features: {
- coreReactivityFeature: JCe(),
- coreReactivityFeature: QSe(),
++ coreReactivityFeature: GCe(),
...e.features
}
});
- return t.Subscribe = ((e) => WCe({
- return t.Subscribe = ((e) => JSe({
++ return t.Subscribe = ((e) => VCe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = PCe, {
- })), t.FlexRender = RSe, {
++ })), t.FlexRender = jCe, {
table: t,
- rootSource: qCe(t.store, vL)
- rootSource: ZSe(t.store, KI)
++ rootSource: WCe(t.store, xL)
};
}), i = n;
- ZL(i, (t) => ({
- TL(i, (t) => ({
++ eR(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = xL(r, t, { compare: vL });
- return XTe(() => {
- r.markCommitted(o), XL(i, a ?? null, vL);
- let a = i.options.state, o = r.get(), s = YI(r, t, { compare: KI });
- return eTe(() => {
- r.markCommitted(o), wL(i, a ?? null, KI);
++ let a = i.options.state, o = r.get(), s = wL(r, t, { compare: xL });
++ return qTe(() => {
++ r.markCommitted(o), $L(i, a ?? null, xL);
}), (0, S.useMemo)(() => ({
...n,
options: e,
@@@ -55014,19 -53344,19 +55014,19 @@@
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
- function qR({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
-function xR({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
++function XR({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- className: dA("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, C.jsx)(ube, {
- className: uA("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, C.jsx)(Uye, {
++ className: pA("w-full overflow-x-auto", n),
++ children: /* @__PURE__ */ (0, C.jsx)(sbe, {
ref: r,
...i,
- className: dA("bui-table", e === "sm" && "bui-table-sm", t)
- className: uA("bui-table", e === "sm" && "bui-table-sm", t)
++ className: pA("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/data-table-frame.tsx
- function JR({ children: e, follow: t = !1, onRowClick: n }) {
-function SR({ children: e, follow: t = !1, onRowClick: n }) {
++function ZR({ children: e, follow: t = !1, onRowClick: n }) {
let r = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
Na(r.current?.querySelector(":scope > .overflow-x-auto") ?? null);
@@@ -55038,14 -53368,14 +55038,14 @@@
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && bI(e, r) && n(r.dataset.key);
- r && zF(e, r) && n(r.dataset.key);
++ r && CI(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/components/table-pagination.tsx
- function YR({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
-function CR({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
++function QR({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, C.jsxs)("nav", {
"aria-label": r,
className: "flex flex-wrap items-center justify-center gap-2",
@@@ -55084,11 -53414,11 +55084,11 @@@
}
//#endregion
//#region src/react/components/table-controls.tsx
- function XR({ label: e, options: t, sorting: n, onChange: r }) {
-function wR({ label: e, options: t, sorting: n, onChange: r }) {
++function $R({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsxs)(NF, {
- children: [/* @__PURE__ */ (0, C.jsxs)(ZP, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(IF, {
"aria-label": `${e}排序`,
selectedKey: i?.id ?? "default",
onSelectionChange: (e) => {
@@@ -55097,10 -53427,10 +55097,10 @@@
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, C.jsx)(PF, {
- children: [/* @__PURE__ */ (0, C.jsx)(QP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LF, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e.id,
children: e.label
}, e.id))]
@@@ -55108,7 -53438,7 +55108,7 @@@
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: i?.desc ? age : oge,
- leadingIcon: i?.desc ? Khe : qhe,
++ leadingIcon: i?.desc ? rge : ige,
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
i && r([{
@@@ -55119,7 -53449,7 +55119,7 @@@
})]
});
}
- function ZR({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条" }) {
-function TR({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条" }) {
++function ez({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条" }) {
let o = Math.max(1, Math.ceil(t / n.pageSize)), s = Math.min(n.pageIndex, o - 1), c = t ? s * n.pageSize + 1 : 0, l = Math.min((s + 1) * n.pageSize, t);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-table-pagination": !0,
@@@ -55129,7 -53459,7 +55129,7 @@@
className: "text-body-2-regular tabular-nums text-text-secondary",
children: `${c.toLocaleString()}–${l.toLocaleString()} / ${t.toLocaleString()} ${i}`
}),
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@@ -55144,12 -53474,12 +55144,12 @@@
20,
50,
100
- ].map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- ].map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ ].map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(YR, {
- /* @__PURE__ */ (0, C.jsx)(CR, {
++ /* @__PURE__ */ (0, C.jsx)(QR, {
label: `${e}分页`,
page: s + 1,
pages: o,
@@@ -55163,11 -53493,11 +55163,11 @@@
}
//#endregion
//#region src/react/catalog-grid/catalog-list-page.tsx
- var ZTe = $L({
- rowSortingFeature: UR,
- rowSelectionFeature: AR,
- rowPaginationFeature: lR
- }), QTe = [
-var tTe = DL({
- rowSortingFeature: _R,
- rowSelectionFeature: iR,
- rowPaginationFeature: LL
-}), nTe = [
++var JTe = nR({
++ rowSortingFeature: KR,
++ rowSelectionFeature: NR,
++ rowPaginationFeature: fR
++}), YTe = [
{
id: "name",
label: "名称"
@@@ -55204,12 -53534,12 +55204,12 @@@
id: "played",
label: "观看时间"
}
- ], QR = /* @__PURE__ */ new Map();
- function $Te(e) {
-], ER = /* @__PURE__ */ new Map();
-function rTe(e) {
-- let t = yD(e.filters || {}, !1), [n] = (0, S.useState)(() => {
++], tz = /* @__PURE__ */ new Map();
++function XTe(e) {
++ let t = xD(e.filters || {}, !1), [n] = (0, S.useState)(() => {
let n = new URLSearchParams(t);
return new URLSearchParams(location.search).has("seed") || n.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${n}`;
- }), [r, i] = (0, S.useState)(() => QR.get(n) || {
- }), [r, i] = (0, S.useState)(() => ER.get(n) || {
++ }), [r, i] = (0, S.useState)(() => tz.get(n) || {
sorting: [],
pagination: {
pageIndex: 0,
@@@ -55217,9 -53547,9 +55217,9 @@@
}
}), { sorting: a, pagination: o } = r;
(0, S.useEffect)(() => {
- QR.set(n, r);
- ER.set(n, r);
++ tz.set(n, r);
}, [n, r]);
- let s = o.pageIndex * o.pageSize, c = a[0], l = pt({
+ let s = o.pageIndex * o.pageSize, c = a[0], l = ft({
queryKey: [
"catalog-grid",
"table",
@@@ -55271,14 -53601,14 +55271,14 @@@
d,
o.pageIndex
]);
- let f = Object.fromEntries([...e.selected].map((e) => [String(e), !0])), p = KR({
- features: ZTe,
- let f = Object.fromEntries([...e.selected].map((e) => [String(e), !0])), p = bR({
- features: tTe,
++ let f = Object.fromEntries([...e.selected].map((e) => [String(e), !0])), p = YR({
++ features: JTe,
columns: (0, S.useMemo)(() => {
- let t = QL();
- let t = EL();
++ let t = tR();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": "全选本页作品",
isDisabled: l.isPlaceholderData,
@@@ -55286,7 -53616,7 +55286,7 @@@
isIndeterminate: e.getIsSomeRowsSelected(),
onChange: (t) => e.toggleAllRowsSelected(t)
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: l.isPlaceholderData,
@@@ -55298,7 -53628,7 +55298,7 @@@
id: "name",
header: "名称",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(eEe, {
- cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(iTe, {
++ cell: ({ row: t }) => /* @__PURE__ */ (0, C.jsx)(ZTe, {
item: t.original,
props: e,
disabled: l.isPlaceholderData
@@@ -55367,24 -53697,24 +55367,24 @@@
className: "flex flex-wrap justify-end gap-2",
role: "toolbar",
"aria-label": "作品列表工具栏",
- children: /* @__PURE__ */ (0, C.jsx)(XR, {
- children: /* @__PURE__ */ (0, C.jsx)(wR, {
++ children: /* @__PURE__ */ (0, C.jsx)($R, {
label: "作品列表",
- options: QTe,
- options: nTe,
++ options: YTe,
sorting: a,
onChange: (e) => p.setSorting(e)
})
}),
- /* @__PURE__ */ (0, C.jsx)(aL, { assetIds: e.filters?.state === "trash" ? [] : iL(u, e.layout.javImage) }),
- l.isError ? /* @__PURE__ */ (0, C.jsx)(vI, {
- /* @__PURE__ */ (0, C.jsx)(NI, { assetIds: e.filters?.state === "trash" ? [] : MI(u, e.layout.javImage) }),
- l.isError ? /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(l.error),
++ /* @__PURE__ */ (0, C.jsx)(cL, { assetIds: e.filters?.state === "trash" ? [] : sL(u, e.layout.javImage) }),
++ l.isError ? /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(l.error),
onRetry: () => void l.refetch()
}) : null,
- /* @__PURE__ */ (0, C.jsx)(JR, {
- /* @__PURE__ */ (0, C.jsx)(SR, {
++ /* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
onRowClick: (t) => {
l.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
},
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: c ? {
@@@ -55395,19 -53725,19 +55395,19 @@@
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: p.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: p.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: p.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
isRowHeader: t === 1,
allowsSorting: e.column.getCanSort(),
children: ({ sortDirection: t }) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [oL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
- children: [PI(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [lL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": t || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
}) : null]
})
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)($N, {
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(qN, {
++ }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(nP, {
renderEmptyState: () => l.isPending ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-skeleton": "",
"data-table-skeleton": "",
@@@ -55416,17 -53746,17 +55416,17 @@@
"aria-label": "正在读取作品列表",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, C.jsxs)("div", { children: [/* @__PURE__ */ (0, C.jsx)("i", { className: "skeleton-sheen" }), /* @__PURE__ */ (0, C.jsx)("span", { className: "skeleton-sheen" })] }, t))
}) : l.isError ? "作品列表未取得" : "没有符合的作品",
- children: p.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- children: p.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ children: p.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-board-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
}),
- l.data ? /* @__PURE__ */ (0, C.jsx)(ZR, {
- l.data ? /* @__PURE__ */ (0, C.jsx)(TR, {
++ l.data ? /* @__PURE__ */ (0, C.jsx)(ez, {
label: "作品列表",
total: d,
pagination: o,
@@@ -55437,7 -53767,7 +55437,7 @@@
]
});
}
- function eEe({ item: e, props: t, disabled: n }) {
-function iTe({ item: e, props: t, disabled: n }) {
++function ZTe({ item: e, props: t, disabled: n }) {
let r = Ea(e, "small", !1, t.layout.javImage), i = t.helpers.displayName(e, e.name || "").trim() || "未命名作品", a = e.creator || e.performers?.join("、") || e.studio;
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-list-identity": "",
@@@ -55451,7 -53781,7 +55451,7 @@@
},
children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-list-picture": "",
- children: r.html ? /* @__PURE__ */ (0, C.jsx)(yI, {
- children: r.html ? /* @__PURE__ */ (0, C.jsx)(RF, {
++ children: r.html ? /* @__PURE__ */ (0, C.jsx)(SI, {
artwork: r,
relayout: (e) => vc(e, "small")
}) : /* @__PURE__ */ (0, C.jsx)("span", { children: "无预览" })
@@@ -55478,21 -53808,21 +55478,21 @@@
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
- function $R(e) {
-function DR(e) {
-- let t = vD();
- if (e.mode === "items") return /* @__PURE__ */ (0, C.jsx)(nEe, { ...e });
- if (e.mode === "items") return /* @__PURE__ */ (0, C.jsx)(oTe, { ...e });
-- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${yD(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, C.jsx)($Te, { ...e }, n) : /* @__PURE__ */ (0, C.jsx)(rEe, { ...e }, n);
- return t === "list" && !e.wall ? /* @__PURE__ */ (0, C.jsx)(rTe, { ...e }, n) : /* @__PURE__ */ (0, C.jsx)(sTe, { ...e }, n);
++function nz(e) {
++ let t = bD();
++ if (e.mode === "items") return /* @__PURE__ */ (0, C.jsx)($Te, { ...e });
++ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${xD(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
++ return t === "list" && !e.wall ? /* @__PURE__ */ (0, C.jsx)(XTe, { ...e }, n) : /* @__PURE__ */ (0, C.jsx)(eEe, { ...e }, n);
}
- function tEe({ name: e }) {
-function aTe({ name: e }) {
++function QTe({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- function nEe(e) {
- let { actions: t } = e, n = (0, S.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, C.jsx)(OI, {
-function oTe(e) {
- let { actions: t } = e, n = (0, S.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, C.jsx)(qF, {
++function $Te(e) {
++ let { actions: t } = e, n = (0, S.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, C.jsx)(jI, {
item: i,
variant: r,
layout: e.layout,
@@@ -55512,8 -53842,8 +55512,8 @@@
children: i
});
}
- function rEe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? efe(e) : $de(e), [s] = (0, S.useState)(() => e.wall ? nfe(o.queryKey) : void 0), c = s || (i && e.initial ? {
-function sTe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Vde(e) : Bde(e), [s] = (0, S.useState)(() => e.wall ? Ude(o.queryKey) : void 0), c = s || (i && e.initial ? {
++function eEe(e) {
++ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Qde(e) : Zde(e), [s] = (0, S.useState)(() => e.wall ? efe(o.queryKey) : void 0), c = s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@@ -55534,7 -53864,7 +55534,7 @@@
(0, S.useEffect)(() => {
l.isPending || u.current || (u.current = !0, e.settled?.(e.revision));
}, [l.isPending]);
- let { tiles: d, pageStarts: f } = (0, S.useMemo)(() => afe(l.data?.pages || [], {
- let { tiles: d, pageStarts: f } = (0, S.useMemo)(() => Kde(l.data?.pages || [], {
++ let { tiles: d, pageStarts: f } = (0, S.useMemo)(() => rfe(l.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@@ -55544,7 -53874,7 +55544,7 @@@
e.mix,
a,
r.javImage
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || yCe(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && pCe(e.item) ? [e.item] : []), v = a ? [] : iL(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = _I(l.isPending, e.skeletonHtml), b = (0, S.useRef)(null), x = iEe(e, l.data, d, f, b);
- ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || gSe(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && uSe(e.item) ? [e.item] : []), v = a ? [] : MI(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = IF(l.isPending, e.skeletonHtml), b = (0, S.useRef)(null), x = cTe(e, l.data, d, f, b);
++ ]), p = d.reduce((e, t) => e + +(t.kind === "card"), 0), m = Number(l.data?.pages[0]?.total || 0), h = i || gCe(e.filters), g = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, _ = d.flatMap((e) => e.kind === "card" && uCe(e.item) ? [e.item] : []), v = a ? [] : sL(d.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), y = bI(l.isPending, e.skeletonHtml), b = (0, S.useRef)(null), x = tEe(e, l.data, d, f, b);
(0, S.useLayoutEffect)(() => {
if (!l.data) return;
let t = !0;
@@@ -55571,12 -53901,12 +55571,12 @@@
let T = (0, S.useCallback)((e, t) => n.open(e, t), [n]), E = (0, S.useCallback)((e, t) => n.openResource(e, t), [n]), D = (0, S.useCallback)((e) => n.openShort(e), [n]), O = (0, S.useCallback)(async () => {
let e = await l.fetchNextPage({ cancelRefetch: !1 });
if (e.isFetchNextPageError) throw e.error;
- }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)(oEe, {
- }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)(uTe, {
++ }, [l.fetchNextPage]), k = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)(rEe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, C.jsx)(OI, {
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, C.jsx)(qF, {
++ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, C.jsx)(jI, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@@ -55593,10 -53923,10 +55593,10 @@@
"data-grid-reveal": y.fading ? "" : void 0,
children: [
!e.wall && y.layer,
- /* @__PURE__ */ (0, C.jsx)(aL, { assetIds: v }),
- /* @__PURE__ */ (0, C.jsx)(NI, { assetIds: v }),
++ /* @__PURE__ */ (0, C.jsx)(cL, { assetIds: v }),
(() => {
- if (g && e.wall) return /* @__PURE__ */ (0, C.jsx)(kCe, {
- if (g && e.wall) return /* @__PURE__ */ (0, C.jsx)(ESe, {
-- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${yD(e.filters || {}, !!e.excludeVertical)}`,
++ if (g && e.wall) return /* @__PURE__ */ (0, C.jsx)(ECe, {
++ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${xD(e.filters || {}, !!e.excludeVertical)}`,
items: _,
finite: h,
hasMore: !!l.hasNextPage,
@@@ -55614,8 -53944,8 +55614,8 @@@
javImage: r.javImage
}, h ? "finite" : "explore");
if (l.isPending) return null;
- if (!l.data) return /* @__PURE__ */ (0, C.jsx)(vI, {
- if (!l.data) return /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(l.error),
++ if (!l.data) return /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(l.error),
onRetry: () => void l.refetch()
});
if (!d.length) {
@@@ -55631,16 -53961,16 +55631,16 @@@
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: cfe(d, x).map((t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("div", {
- children: Yde(d, x).map((t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("div", {
++ children: ofe(d, x).map((t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("div", {
"data-media-grid": "",
"data-catalog-view-mode": "cards",
children: t.tiles.map(k)
- }), t.strip ? /* @__PURE__ */ (0, C.jsx)(aEe, {
- }), t.strip ? /* @__PURE__ */ (0, C.jsx)(lTe, {
++ }), t.strip ? /* @__PURE__ */ (0, C.jsx)(nEe, {
cut: t.strip,
props: e,
onOpen: D
}) : null] }, t.start))
- }), l.hasNextPage ? /* @__PURE__ */ (0, C.jsx)(ez, {
- }), l.hasNextPage ? /* @__PURE__ */ (0, C.jsx)(OR, {
++ }), l.hasNextPage ? /* @__PURE__ */ (0, C.jsx)(rz, {
entity: i,
load: O,
enabled: () => e.canLoadMore?.() !== !1
@@@ -55649,7 -53979,7 +55649,7 @@@
]
});
}
- function ez({ entity: e, load: t, enabled: n, children: r }) {
-function OR({ entity: e, load: t, enabled: n, children: r }) {
++function rz({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, S.useRef)(null), a = (0, S.useRef)(!1), o = (0, S.useRef)(!1), [s, c] = (0, S.useState)({
busy: !1,
error: ""
@@@ -55711,12 -54041,12 +55711,12 @@@
hidden: !!s.error,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: Po("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, C.jsx)(vI, {
- }), s.error ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ }), s.error ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
- function iEe(e, t, n, r, i) {
-function cTe(e, t, n, r, i) {
++function tEe(e, t, n, r, i) {
let [a, o] = (0, S.useState)([]), [s, c] = (0, S.useState)(null), l = (0, S.useRef)(0), u = (0, S.useRef)(0), d = (0, S.useRef)([]);
return (0, S.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, S.useEffect)(() => {
let n = t?.pages.length || 0;
@@@ -55725,7 -54055,7 +55725,7 @@@
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- yn(`/api/items?${sfe(e.filters || {}, l.current)}`, r.signal).then((e) => {
- H(`/api/items?${Jde(e.filters || {}, l.current)}`, r.signal).then((e) => {
++ yn(`/api/items?${afe(e.filters || {}, l.current)}`, r.signal).then((e) => {
let t = e.items || [];
t.length ? c({
page: i,
@@@ -55737,7 -54067,7 +55737,7 @@@
}, [t]), (0, S.useLayoutEffect)(() => {
if (!s) return;
c(null);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = ofe(n.length - e, f, d);
- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = qde(n.length - e, f, d);
++ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = ife(n.length - e, f, d);
if (!p.length) return;
let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);
l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {
@@@ -55747,7 -54077,7 +55747,7 @@@
}]);
}, [s]), a;
}
- function aEe({ cut: e, props: t, onOpen: n }) {
-function lTe({ cut: e, props: t, onOpen: n }) {
++function nEe({ cut: e, props: t, onOpen: n }) {
let r = (0, S.useRef)(null), { wireDrag: i } = t;
return (0, S.useEffect)(() => {
r.current && i(r.current);
@@@ -55763,12 -54093,12 +55763,12 @@@
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, C.jsx)(tEe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "进入沉浸模式" })]
- children: [/* @__PURE__ */ (0, C.jsx)(aTe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "进入沉浸模式" })]
++ children: [/* @__PURE__ */ (0, C.jsx)(QTe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, C.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, C.jsx)(OI, {
- children: e.items.map((e) => /* @__PURE__ */ (0, C.jsx)(qF, {
++ children: e.items.map((e) => /* @__PURE__ */ (0, C.jsx)(jI, {
item: e,
variant: "short",
layout: t.layout,
@@@ -55782,17 -54112,17 +55782,17 @@@
})]
});
}
- function tz(e, t, n) {
-function kR(e, t, n) {
++function iz(e, t, n) {
return Da(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
- function oEe({ seed: e, layout: t, helpers: n, actions: r }) {
-function uTe({ seed: e, layout: t, helpers: n, actions: r }) {
++function rEe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, S.useRef)(/* @__PURE__ */ new Map()), a = (0, S.useRef)(t);
a.current = t;
let o = Ma(e, n.tagLabel), s = (0, S.useCallback)(async () => {
-- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => bD(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), tz(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = tz(e, t, !1);
- return /* @__PURE__ */ (0, C.jsx)(MI, {
- return i.current = new Map(n.map((e) => [String(e.id), kR(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = kR(e, t, !1);
- return /* @__PURE__ */ (0, C.jsx)(ZF, {
++ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => SD(e, t.javImage)).slice(0, 9);
++ return i.current = new Map(n.map((e) => [String(e.id), iz(e, t, !0).html])), n.map((e) => String(e.id));
++ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = iz(e, t, !1);
++ return /* @__PURE__ */ (0, C.jsx)(FI, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@@ -55802,12 -54132,12 +55802,12 @@@
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : tz(e, {
- artworkIdentity: c === "small" ? l.html : kR(e, {
++ artworkIdentity: c === "small" ? l.html : iz(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => vc(e, c),
- ratio: EI(e, "grid", t),
- ratio: GF(e, "grid", t),
++ ratio: kI(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@@ -55819,37 -54149,37 +55819,37 @@@
}
//#endregion
//#region src/react/media-sources.ts
- async function nz(e) {
-async function AR(e) {
- await W.fetchQuery({
++async function az(e) {
+ await U.fetchQuery({
queryKey: kn,
queryFn: () => An(e)
});
}
- var sEe = (e) => (e?.sources ?? []).filter((e) => At.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), cEe = "/api/duplicates?limit=120", rz = ["duplicates"], iz = "/api/batch", az = (e) => yn(cEe, e), lEe = /[\s\-_.()[\]【】/\\]/;
- function uEe(e) {
-var dTe = (e) => (e?.sources ?? []).filter((e) => jt.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), fTe = "/api/duplicates?limit=120", jR = ["duplicates"], MR = "/api/batch", NR = (e) => H(fTe, e), pTe = /[\s\-_.()[\]【】/\\]/;
-function mTe(e) {
++var iEe = (e) => (e?.sources ?? []).filter((e) => At.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), aEe = "/api/duplicates?limit=120", oz = ["duplicates"], sz = "/api/batch", cz = (e) => yn(aEe, e), oEe = /[\s\-_.()[\]【】/\\]/;
++function sEe(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 && !lEe.test(n[r - 1]);) --r;
- for (; r > 0 && !pTe.test(n[r - 1]);) --r;
++ for (; r > 0 && !oEe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
- var dEe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
- async function fEe(e) {
-var hTe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function gTe(e) {
- await Promise.all([W.fetchQuery({
- queryKey: jR,
- queryFn: () => NR(e)
- }), AR(e)]);
++var cEe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
++async function lEe(e) {
+ await Promise.all([U.fetchQuery({
- queryKey: rz,
- queryFn: () => az(e)
- }), nz(e)]);
++ queryKey: oz,
++ queryFn: () => cz(e)
++ }), az(e)]);
}
- var oz = {
-var PR = {
++var lz = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
- }, pEe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), sz = (e, t) => pEe(e, t).filter((t) => e.some((e) => e.location !== t)), mEe = (e, t) => t.filter((t) => e.some((e) => sz(e.files, [t]).length));
- function hEe(e, t) {
-}, _Te = (e, t) => t.filter((t) => e.some((e) => e.location === t)), FR = (e, t) => _Te(e, t).filter((t) => e.some((e) => e.location !== t)), vTe = (e, t) => t.filter((t) => e.some((e) => FR(e.files, [t]).length));
-function yTe(e, t) {
++}, uEe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), uz = (e, t) => uEe(e, t).filter((t) => e.some((e) => e.location !== t)), dEe = (e, t) => t.filter((t) => e.some((e) => uz(e.files, [t]).length));
++function fEe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@@ -55868,12 -54198,12 +55868,12 @@@
}
return n;
}
- function gEe(e, t) {
-function bTe(e, t) {
++function pEe(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 cz(e, t) {
- for (let n = 0; n < e.length; n += 200) await H(iz, {
-async function IR(e, t) {
- for (let n = 0; n < e.length; n += 200) await U(MR, {
++async function dz(e, t) {
++ for (let n = 0; n < e.length; n += 200) await H(sz, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
@@@ -55881,7 -54211,7 +55881,7 @@@
}
//#endregion
//#region src/react/media-repair/media-repair.ts
- var lz = "/api/media-repair", uz = ["media-repair"], dz = ["media-repair", "libraries"], _Ee = {
-var LR = "/api/media-repair", RR = ["media-repair"], zR = ["media-repair", "libraries"], xTe = {
++var fz = "/api/media-repair", pz = ["media-repair"], mz = ["media-repair", "libraries"], mEe = {
status: "idle",
library: "",
stage: "",
@@@ -55893,41 -54223,41 +55893,41 @@@
missing_tool: 0,
skipped: 0,
message: ""
- }, fz = (e) => yn(lz, e), pz = async (e) => (await yn("/api/libraries", e)).libraries || [];
- async function vEe(e) {
-}, BR = (e) => H(LR, e), VR = async (e) => (await H("/api/libraries", e)).libraries || [];
-async function STe(e) {
- await Promise.all([W.fetchQuery({
- queryKey: RR,
- queryFn: () => BR(e)
- }), W.fetchQuery({
- queryKey: zR,
- queryFn: () => VR(e)
++}, hz = (e) => yn(fz, e), gz = async (e) => (await yn("/api/libraries", e)).libraries || [];
++async function hEe(e) {
+ await Promise.all([U.fetchQuery({
- queryKey: uz,
- queryFn: () => fz(e)
++ queryKey: pz,
++ queryFn: () => hz(e)
+ }), U.fetchQuery({
- queryKey: dz,
- queryFn: () => pz(e)
++ queryKey: mz,
++ queryFn: () => gz(e)
})]);
}
- var mz = (e) => Number(e).toLocaleString();
- function yEe(e) {
-var HR = (e) => Number(e).toLocaleString();
-function CTe(e) {
++var _z = (e) => Number(e).toLocaleString();
++function gEe(e) {
if (e.status === "running") {
- let t = e.total ? `${mz(Math.min(e.checked || 0, e.total))} / ${mz(e.total)}` : "准备中";
- let t = e.total ? `${HR(Math.min(e.checked || 0, e.total))} / ${HR(e.total)}` : "准备中";
++ let t = e.total ? `${_z(Math.min(e.checked || 0, e.total))} / ${_z(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${mz(e.repaired)} 部,${mz(e.failed)} 部修不了` : `修好 ${mz(e.repaired)} 部` : "";
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${HR(e.repaired)} 部,${HR(e.failed)} 部修不了` : `修好 ${HR(e.repaired)} 部` : "";
++ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${_z(e.repaired)} 部,${_z(e.failed)} 部修不了` : `修好 ${_z(e.repaired)} 部` : "";
}
- var bEe = (e) => `${mz(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, xEe = "/api/quality-goals?limit=200", hz = ["quality-goals"], gz = (e) => yn(xEe, e);
- async function SEe(e) {
-var wTe = (e) => `${HR(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, TTe = "/api/quality-goals?limit=200", UR = ["quality-goals"], WR = (e) => H(TTe, e);
-async function ETe(e) {
- await W.fetchQuery({
- queryKey: UR,
- queryFn: () => WR(e)
++var _Ee = (e) => `${_z(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, vEe = "/api/quality-goals?limit=200", vz = ["quality-goals"], yz = (e) => yn(vEe, e);
++async function yEe(e) {
+ await U.fetchQuery({
- queryKey: hz,
- queryFn: () => gz(e)
++ queryKey: vz,
++ queryFn: () => yz(e)
});
}
- var _z = (e) => e.has_cover ? pa(e) : `/poster?id=${e.id}&c=4`;
-var GR = (e) => e.has_cover ? pa(e) : `/poster?id=${e.id}&c=4`;
++var bz = (e) => e.has_cover ? pa(e) : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/selection.ts
- function vz(e, t, n, r, i, a = i || !e.has(r)) {
-function KR(e, t, n, r, i, a = i || !e.has(r)) {
++function xz(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
//#endregion
//#region src/react/review/review.ts
- var CEe = "/api/review", wEe = "/api/review/decision", TEe = "/api/review/genre", yz = ["review"], bz = {
-var DTe = "/api/review", OTe = "/api/review/decision", kTe = "/api/review/genre", qR = ["review"], JR = {
++var bEe = "/api/review", xEe = "/api/review/decision", SEe = "/api/review/genre", Sz = ["review"], Cz = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@@ -55937,15 -54267,15 +55937,15 @@@
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
- }, EEe = Object.keys(bz), DEe = "metadata_fields", xz = (e) => typeof e == "string" && Object.hasOwn(bz, e), OEe = {
-}, ATe = Object.keys(JR), jTe = "metadata_fields", YR = (e) => typeof e == "string" && Object.hasOwn(JR, e), MTe = {
++}, CEe = Object.keys(Cz), wEe = "metadata_fields", wz = (e) => typeof e == "string" && Object.hasOwn(Cz, e), TEe = {
creator_tags: "creator",
western_identity: "creator"
};
- function kEe(e, t) {
-function NTe(e, t) {
++function EEe(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 Sz(e, t) {
-function XR(e, t) {
++function Tz(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@@ -55962,10 -54292,10 +55962,10 @@@
}
return [...n.values()];
}
- function AEe(e, t, n) {
- return n && Sz(e, t).find((e) => e.key === n)?.rows || e;
-function PTe(e, t, n) {
- return n && XR(e, t).find((e) => e.key === n)?.rows || e;
++function DEe(e, t, n) {
++ return n && Tz(e, t).find((e) => e.key === n)?.rows || e;
}
- function jEe(e, t) {
-function FTe(e, t) {
++function OEe(e, t) {
let n = En(e.length, 20), r = Dn(t, n);
return {
page: r,
@@@ -55973,32 -54303,32 +55973,32 @@@
rows: e.slice((r - 1) * 20, r * 20)
};
}
- function MEe(e) {
-function ITe(e) {
++function kEe(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 NEe(e, t, n, r, i, a) {
- return vz(e, t, n, r, i, a);
-function LTe(e, t, n, r, i, a) {
- return KR(e, t, n, r, i, a);
++function AEe(e, t, n, r, i, a) {
++ return xz(e, t, n, r, i, a);
}
- function Cz(e, t) {
-function ZR(e, t) {
++function Ez(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
- function wz(e, t) {
-function QR(e, t) {
++function Dz(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
- var Tz = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
- function PEe(e, t) {
- let n = wz(e, t), r = Tz(e, t);
-var $R = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function RTe(e, t) {
- let n = QR(e, t), r = $R(e, t);
++var Oz = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
++function jEe(e, t) {
++ let n = Dz(e, t), r = Oz(e, t);
return r ? `${n} · ${r}` : n;
}
- var FEe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", IEe = (e) => String(e.tags || "").split("|").filter(Boolean), LEe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
- function REe(e) {
-var zTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", BTe = (e) => String(e.tags || "").split("|").filter(Boolean), VTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function HTe(e) {
++var MEe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", NEe = (e) => String(e.tags || "").split("|").filter(Boolean), PEe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
++function FEe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
- function Ez(e, t, n, r) {
-function ez(e, t, n, r) {
++function kz(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@@ -56014,12 -54344,12 +56014,12 @@@
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
- var zEe = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dz = (e) => yn(CEe, e);
- async function Oz(e) {
- let t = await H(wEe, e);
-var UTe = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", tz = (e) => H(DTe, e);
-async function nz(e) {
- let t = await U(OTe, e);
++var IEe = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Az = (e) => yn(bEe, e);
++async function jz(e) {
++ let t = await H(xEe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- U.setQueryData(yz, (t) => t && {
- W.setQueryData(qR, (t) => t && {
++ U.setQueryData(Sz, (t) => t && {
...t,
sections: {
...t.sections,
@@@ -56035,22 -54365,22 +56035,22 @@@
}
return t;
}
- function kz(e, t) {
- return U.getQueryData(yz)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
-function rz(e, t) {
- return W.getQueryData(qR)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
++function Mz(e, t) {
++ return U.getQueryData(Sz)?.sections[e]?.find((e) => e.item_key === t.item_key) || t;
}
- var BEe = (e, t) => H(TEe, {
-var WTe = (e, t) => U(kTe, {
++var LEe = (e, t) => H(SEe, {
genre: e,
tag: t
});
- async function VEe(e) {
-async function GTe(e) {
- await W.fetchQuery({
- queryKey: qR,
- queryFn: () => tz(e)
++async function REe(e) {
+ await U.fetchQuery({
- queryKey: yz,
- queryFn: () => Dz(e)
++ queryKey: Sz,
++ queryFn: () => Az(e)
});
}
- function Az(e, t) {
-function iz(e, t) {
++function Nz(e, t) {
let n = new Set(t);
- n.size && U.setQueryData(yz, (t) => {
- n.size && W.setQueryData(qR, (t) => {
++ n.size && U.setQueryData(Sz, (t) => {
if (!t) return t;
let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));
return i.length === r.length ? t : {
@@@ -56066,191 -54396,191 +56066,191 @@@
};
});
}
- var HEe = () => U.invalidateQueries({
- queryKey: yz,
-var KTe = () => W.invalidateQueries({
- queryKey: qR,
++var zEe = () => U.invalidateQueries({
++ queryKey: Sz,
exact: !0
});
- function UEe(e, t) {
-function qTe(e, t) {
++function BEe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Nn(e.fetched_at)} 的缓存` : e?.error || t;
}
//#endregion
//#region src/react/data-cleanup/links.ts
- var WEe = "/api/links", jz = "/api/links/check", Mz = "/api/links/prune", Nz = ["links"], Pz = ["links", "check"], Fz = ["links", "prune"], Iz = {
-var JTe = "/api/links", az = "/api/links/check", oz = "/api/links/prune", sz = ["links"], cz = ["links", "check"], lz = ["links", "prune"], uz = {
++var VEe = "/api/links", Pz = "/api/links/check", Fz = "/api/links/prune", Iz = ["links"], Lz = ["links", "check"], Rz = ["links", "prune"], zz = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
- async function Lz(e) {
-async function dz(e) {
++async function Bz(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
- var Rz = (e) => yn(WEe, e), zz = (e) => H(jz, { status_only: !0 }, "POST", e), GEe = ({ retry: e, checkId: t }) => Lz(H(jz, e ? {
-var fz = (e) => H(JTe, e), pz = (e) => U(az, { status_only: !0 }, "POST", e), YTe = ({ retry: e, checkId: t }) => dz(U(az, e ? {
++var Vz = (e) => yn(VEe, e), Hz = (e) => H(Pz, { status_only: !0 }, "POST", e), HEe = ({ retry: e, checkId: t }) => Bz(H(Pz, e ? {
retry: e,
check_id: t
- } : { restart: !0 })), Bz = (e) => yn(Mz, e), KEe = ({ checkId: e, ids: t }) => Lz(H(Mz, {
-} : { restart: !0 })), mz = (e) => H(oz, e), XTe = ({ checkId: e, ids: t }) => dz(U(oz, {
++} : { restart: !0 })), Uz = (e) => yn(Fz, e), UEe = ({ checkId: e, ids: t }) => Bz(H(Fz, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
- })), Vz = (e) => Number(e || 0).toLocaleString(), Hz = (e) => `已删除 ${Vz(e.removed)} 条;${e.marked ? `已隐退女优的 ${Vz(e.marked)} 条留作不可点的记录;` : ""}保留 ${Vz(e.recovered)} 条未确认失效的链接。`;
- function qEe(e) {
-})), hz = (e) => Number(e || 0).toLocaleString(), gz = (e) => `已删除 ${hz(e.removed)} 条;${e.marked ? `已隐退女优的 ${hz(e.marked)} 条留作不可点的记录;` : ""}保留 ${hz(e.recovered)} 条未确认失效的链接。`;
-function ZTe(e) {
++})), Wz = (e) => Number(e || 0).toLocaleString(), Gz = (e) => `已删除 ${Wz(e.removed)} 条;${e.marked ? `已隐退女优的 ${Wz(e.marked)} 条留作不可点的记录;` : ""}保留 ${Wz(e.recovered)} 条未确认失效的链接。`;
++function WEe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${Vz(e.checked)} / ${Vz(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
- return e.total ? `${t ? "已重验" : "已检查"} ${hz(e.checked)} / ${hz(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
++ return e.total ? `${t ? "已重验" : "已检查"} ${Wz(e.checked)} / ${Wz(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/settings-panel/settings-data.ts
- var Uz = "/api/settings", Wz = "/api/follow/schedule", Gz = "/api/thumbnail-jobs", Kz = ["settings"], qz = ["follow-schedule"], Jz = ["thumbnail-jobs"], Yz = (e) => yn(Uz, e), JEe = (e) => yn(Wz, e), YEe = (e) => yn(Gz, e);
- function XEe(e = U) {
-var _z = "/api/settings", vz = "/api/follow/schedule", yz = "/api/thumbnail-jobs", bz = ["settings"], xz = ["follow-schedule"], Sz = ["thumbnail-jobs"], Cz = (e) => H(_z, e), QTe = (e) => H(vz, e), $Te = (e) => H(yz, e);
-function eEe(e = W) {
++var Kz = "/api/settings", qz = "/api/follow/schedule", Jz = "/api/thumbnail-jobs", Yz = ["settings"], Xz = ["follow-schedule"], Zz = ["thumbnail-jobs"], Qz = (e) => yn(Kz, e), GEe = (e) => yn(qz, e), KEe = (e) => yn(Jz, e);
++function qEe(e = U) {
return e.fetchQuery({
- queryKey: Kz,
- queryFn: ({ signal: e }) => Yz(e),
- queryKey: bz,
- queryFn: ({ signal: e }) => Cz(e),
++ queryKey: Yz,
++ queryFn: ({ signal: e }) => Qz(e),
staleTime: 0
}).catch(() => null);
}
- function Xz() {
-function wz() {
- return mt({
- mutationFn: (e) => U(_z, e),
- onSuccess: (e) => W.setQueryData(bz, e)
++function $z() {
+ return pt({
- mutationFn: (e) => H(Uz, e),
- onSuccess: (e) => U.setQueryData(Kz, e)
++ mutationFn: (e) => H(Kz, e),
++ onSuccess: (e) => U.setQueryData(Yz, e)
});
}
- function ZEe() {
-function tEe() {
- return mt({
- mutationFn: (e) => U(vz, {
++function JEe() {
+ return pt({
- mutationFn: (e) => H(Wz, {
++ mutationFn: (e) => H(qz, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => U.setQueryData(qz, e)
- onSuccess: (e) => W.setQueryData(xz, e)
++ onSuccess: (e) => U.setQueryData(Xz, e)
});
}
- function QEe() {
-function nEe() {
- return mt({
- mutationFn: (e) => U(yz, { mode: e }),
- onSuccess: (e) => W.setQueryData(Sz, e)
++function YEe() {
+ return pt({
- mutationFn: (e) => H(Gz, { mode: e }),
- onSuccess: (e) => U.setQueryData(Jz, e)
++ mutationFn: (e) => H(Jz, { mode: e }),
++ onSuccess: (e) => U.setQueryData(Zz, e)
});
}
//#endregion
//#region src/react/data-cleanup/organize.ts
- var $Ee = "/api/organize", eDe = "/api/organize/preview", tDe = "/api/organize/apply", nDe = "/api/organize/rollback", Zz = ["organize"], Qz = (e) => yn($Ee, e);
- async function rDe(e) {
-var rEe = "/api/organize", iEe = "/api/organize/preview", aEe = "/api/organize/apply", oEe = "/api/organize/rollback", Tz = ["organize"], Ez = (e) => H(rEe, e);
-async function sEe(e) {
- await W.fetchQuery({
- queryKey: Tz,
- queryFn: () => Ez(e)
++var XEe = "/api/organize", ZEe = "/api/organize/preview", QEe = "/api/organize/apply", $Ee = "/api/organize/rollback", eB = ["organize"], tB = (e) => yn(XEe, e);
++async function eDe(e) {
+ await U.fetchQuery({
- queryKey: Zz,
- queryFn: () => Qz(e)
++ queryKey: eB,
++ queryFn: () => tB(e)
});
}
- var iDe = (e) => H(eDe, e), aDe = (e) => e.kind === "apply" ? H(tDe, {
-var cEe = (e) => U(iEe, e), lEe = (e) => e.kind === "apply" ? U(aEe, {
++var tDe = (e) => H(ZEe, e), nDe = (e) => e.kind === "apply" ? H(QEe, {
...e.request,
confirm: !0
- }) : H(nDe, { confirm: !0 });
- async function oDe(e) {
- U.setQueryData(Zz, (t) => t && {
-}) : U(oEe, { confirm: !0 });
-async function uEe(e) {
- W.setQueryData(Tz, (t) => t && {
++}) : H($Ee, { confirm: !0 });
++async function rDe(e) {
++ U.setQueryData(eB, (t) => t && {
...t,
templates: e
});
try {
- await H(Uz, { organizeTemplates: e });
- await U(_z, { organizeTemplates: e });
++ await H(Kz, { organizeTemplates: e });
} catch {}
}
- var sDe = (e, t) => e && {
-var dEe = (e, t) => e && {
++var iDe = (e, t) => e && {
...e,
...t
- }, cDe = /目录模板|分隔符|盘符|`\.`/;
- function $z(e) {
-}, fEe = /目录模板|分隔符|盘符|`\.`/;
-function Dz(e) {
++}, aDe = /目录模板|分隔符|盘符|`\.`/;
++function nB(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
- var eB = (e) => Number(e || 0).toLocaleString();
- function lDe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eB(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${eB(e.counts.change)} 个文件会改名或移动,${eB(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
-var Oz = (e) => Number(e || 0).toLocaleString();
-function pEe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Oz(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Oz(e.counts.change)} 个文件会改名或移动,${Oz(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
++var rB = (e) => Number(e || 0).toLocaleString();
++function oDe(e) {
++ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${rB(t)}`).join(" · ");
++ return Number(e.counts?.change || 0) ? `${rB(e.counts.change)} 个文件会改名或移动,${rB(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
- function tB(e) {
-function kz(e) {
++function iB(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${eB(r)} 个文件${n ? `,${eB(n)} 行未能退回` : ""}。` : `已整理 ${eB(r)} 个文件${n ? `,${eB(n)} 行未能处理` : ""}。`,
- text: t ? `已退回 ${Oz(r)} 个文件${n ? `,${Oz(n)} 行未能退回` : ""}。` : `已整理 ${Oz(r)} 个文件${n ? `,${Oz(n)} 行未能处理` : ""}。`,
++ text: t ? `已退回 ${rB(r)} 个文件${n ? `,${rB(n)} 行未能退回` : ""}。` : `已整理 ${rB(r)} 个文件${n ? `,${rB(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
//#endregion
//#region src/react/data-cleanup/resource-sync.ts
- var nB = "/api/resource-sync/scan", rB = "/api/resource-sync/apply", iB = ["resource-sync", "scan"], aB = ["resource-sync", "apply"], oB = (e) => H(nB, {
-var Az = "/api/resource-sync/scan", jz = "/api/resource-sync/apply", Mz = ["resource-sync", "scan"], Nz = ["resource-sync", "apply"], Pz = (e) => U(Az, {
++var aB = "/api/resource-sync/scan", oB = "/api/resource-sync/apply", sB = ["resource-sync", "scan"], cB = ["resource-sync", "apply"], lB = (e) => H(aB, {
background: !0,
status_only: !0
- }, "POST", e), uDe = () => H(nB, {
-}, "POST", e), mEe = () => U(Az, {
++}, "POST", e), sDe = () => H(aB, {
background: !0,
restart: !0
- }), sB = (e) => yn(rB, e), dDe = (e) => H(rB, {
-}), Fz = (e) => H(jz, e), hEe = (e) => U(jz, {
++}), uB = (e) => yn(oB, e), cDe = (e) => H(oB, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
- }), cB = (e) => (e?.sources ?? []).some((e) => kt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
- async function fDe(e) {
- cB(U.getQueryData(kn)) && await Promise.all([U.fetchQuery({
- queryKey: iB,
- queryFn: () => oB(e)
-}), Iz = (e) => (e?.sources ?? []).some((e) => At.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function gEe(e) {
- Iz(W.getQueryData(kn)) && await Promise.all([W.fetchQuery({
- queryKey: Mz,
- queryFn: () => Pz(e)
- }), W.fetchQuery({
- queryKey: Nz,
- queryFn: () => Fz(e)
++}), dB = (e) => (e?.sources ?? []).some((e) => kt.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
++async function lDe(e) {
++ dB(U.getQueryData(kn)) && await Promise.all([U.fetchQuery({
++ queryKey: sB,
++ queryFn: () => lB(e)
+ }), U.fetchQuery({
- queryKey: aB,
- queryFn: () => sB(e)
++ queryKey: cB,
++ queryFn: () => uB(e)
})]);
}
- var pDe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), lB = (e) => Number(e || 0).toLocaleString(), mDe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", uB = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), dB = (e) => e.vanish ? `${lB(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", fB = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", hDe = (e) => `将永久删除文件已不在盘上的 ${lB(uB(e))} 条记录和 ${lB(e.empty)} 个空文件夹,并清理 ${lB(e.cache?.files)} 个闲置缓存。${fB(e)}${dB(e)}`, gDe = (e) => `将永久删除文件已不在盘上的 ${lB(uB(e))} 条记录(含回收站里的)、${lB(e.empty)} 个空文件夹,并清理 ${lB(e.cache?.files)} 个闲置缓存。来源根目录保留。${fB(e)}${dB(e)}`, _De = (e) => e.online ? [
- `找不到文件 · 共 ${lB(e.total)} 项`,
- e.vanish ? `${lB(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${lB(e.empty)} 个` : "",
- e.unreadable ? `${lB(e.unreadable)} 个目录读取失败,已跳过` : ""
- ].filter(Boolean).join(" · ") : `馆藏中有 ${lB(e.total)} 项`;
- function pB(e) {
-var _Ee = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Lz = (e) => Number(e || 0).toLocaleString(), vEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", Rz = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), zz = (e) => e.vanish ? `${Lz(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", Bz = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", yEe = (e) => `将永久删除文件已不在盘上的 ${Lz(Rz(e))} 条记录和 ${Lz(e.empty)} 个空文件夹,并清理 ${Lz(e.cache?.files)} 个闲置缓存。${Bz(e)}${zz(e)}`, bEe = (e) => `将永久删除文件已不在盘上的 ${Lz(Rz(e))} 条记录(含回收站里的)、${Lz(e.empty)} 个空文件夹,并清理 ${Lz(e.cache?.files)} 个闲置缓存。来源根目录保留。${Bz(e)}${zz(e)}`, xEe = (e) => e.online ? [
- `找不到文件 · 共 ${Lz(e.total)} 项`,
- e.vanish ? `${Lz(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${Lz(e.empty)} 个` : "",
- e.unreadable ? `${Lz(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${Lz(e.total)} 项`;
-function Vz(e) {
++var uDe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fB = (e) => Number(e || 0).toLocaleString(), dDe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pB = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mB = (e) => e.vanish ? `${fB(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", hB = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", fDe = (e) => `将永久删除文件已不在盘上的 ${fB(pB(e))} 条记录和 ${fB(e.empty)} 个空文件夹,并清理 ${fB(e.cache?.files)} 个闲置缓存。${hB(e)}${mB(e)}`, pDe = (e) => `将永久删除文件已不在盘上的 ${fB(pB(e))} 条记录(含回收站里的)、${fB(e.empty)} 个空文件夹,并清理 ${fB(e.cache?.files)} 个闲置缓存。来源根目录保留。${hB(e)}${mB(e)}`, mDe = (e) => e.online ? [
++ `找不到文件 · 共 ${fB(e.total)} 项`,
++ e.vanish ? `${fB(e.vanish)} 项带个人记录` : "",
++ e.empty ? `空文件夹 ${fB(e.empty)} 个` : "",
++ e.unreadable ? `${fB(e.unreadable)} 个目录读取失败,已跳过` : ""
++].filter(Boolean).join(" · ") : `馆藏中有 ${fB(e.total)} 项`;
++function gB(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 ? `${lB(t.length)} 条记录没有删除(${o})` : "",
- n ? `${lB(n)} 个文件夹没有删除` : "",
- r.length ? `${lB(r.length)} 个缓存没有清理` : ""
- t.length ? `${Lz(t.length)} 条记录没有删除(${o})` : "",
- n ? `${Lz(n)} 个文件夹没有删除` : "",
- r.length ? `${Lz(r.length)} 个缓存没有清理` : ""
++ t.length ? `${fB(t.length)} 条记录没有删除(${o})` : "",
++ n ? `${fB(n)} 个文件夹没有删除` : "",
++ r.length ? `${fB(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
- var vDe = (e, t) => {
- let { rest: n } = pB(e), r = `已永久删除 ${lB(e.purged)} 条失效记录和 ${lB(e.dirs_removed)} 个空文件夹,清理 ${lB(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${lB(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${lB(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
-var SEe = (e, t) => {
- let { rest: n } = Vz(e), r = `已永久删除 ${Lz(e.purged)} 条失效记录和 ${Lz(e.dirs_removed)} 个空文件夹,清理 ${Lz(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${Lz(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${Lz(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
++var hDe = (e, t) => {
++ let { rest: n } = gB(e), r = `已永久删除 ${fB(e.purged)} 条失效记录和 ${fB(e.dirs_removed)} 个空文件夹,清理 ${fB(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${fB(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${fB(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
- }, yDe = "/api/review?counts=1", mB = ["review", "counts"], bDe = "/api/ads?limit=1", hB = ["junk-summary"], gB = "/api/items?state=trash&limit=1", _B = ["trash-summary"], xDe = [
-}, CEe = "/api/review?counts=1", Hz = ["review", "counts"], wEe = "/api/ads?limit=1", Uz = ["junk-summary"], Wz = "/api/items?state=trash&limit=1", Gz = ["trash-summary"], TEe = [
++}, gDe = "/api/review?counts=1", _B = ["review", "counts"], _De = "/api/ads?limit=1", vB = ["junk-summary"], yB = "/api/items?state=trash&limit=1", bB = ["trash-summary"], vDe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
- ], vB = (e) => yn(yDe, e), yB = (e) => yn(bDe, e), bB = (e) => {
-], Kz = (e) => H(CEe, e), qz = (e) => H(wEe, e), Jz = (e) => {
++], xB = (e) => yn(gDe, e), SB = (e) => yn(_De, e), CB = (e) => {
let t = sessionStorage.getItem("peach.library");
- return yn(t ? `${gB}&library=${encodeURIComponent(t)}` : gB, e);
- }, xB = (e) => Number(e || 0).toLocaleString();
- function SDe(e) {
- let t = bz, 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 H(t ? `${Wz}&library=${encodeURIComponent(t)}` : Wz, e);
-}, Yz = (e) => Number(e || 0).toLocaleString();
-function EEe(e) {
- let t = JR, 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 yn(t ? `${yB}&library=${encodeURIComponent(t)}` : yB, e);
++}, wB = (e) => Number(e || 0).toLocaleString();
++function yDe(e) {
++ let t = Cz, 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 CDe(e) {
-function DEe(e) {
++function bDe(e) {
if (!e) return "";
- let t = xDe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${xB(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${xB(e.dismissed_total)}`), t.join(" · ");
- let t = TEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${Yz(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${Yz(e.dismissed_total)}`), t.join(" · ");
--}
- var wDe = [
- [mB, ({ signal: e }) => vB(e)],
- [hz, ({ signal: e }) => gz(e)],
- [_B, ({ signal: e }) => bB(e)],
- [Nz, ({ signal: e }) => Rz(e)],
- [Pz, ({ signal: e }) => zz(e)],
- [Fz, ({ signal: e }) => Bz(e)]
-var OEe = [
- [Hz, ({ signal: e }) => Kz(e)],
- [UR, ({ signal: e }) => WR(e)],
- [Gz, ({ signal: e }) => Jz(e)],
- [sz, ({ signal: e }) => fz(e)],
- [cz, ({ signal: e }) => pz(e)],
- [lz, ({ signal: e }) => mz(e)]
++ let t = vDe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${wB(e.counts[t])}`);
++ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${wB(e.dismissed_total)}`), t.join(" · ");
++}
++var xDe = [
++ [_B, ({ signal: e }) => xB(e)],
++ [vz, ({ signal: e }) => yz(e)],
++ [bB, ({ signal: e }) => CB(e)],
++ [Iz, ({ signal: e }) => Vz(e)],
++ [Lz, ({ signal: e }) => Hz(e)],
++ [Rz, ({ signal: e }) => Uz(e)]
];
- async function TDe(e) {
- let t = location.hash === "#resource-sync", n = wDe.map(([n, r]) => {
-async function kEe(e) {
- let t = location.hash === "#resource-sync", n = OEe.map(([n, r]) => {
- if (t) return W.fetchQuery({
++async function SDe(e) {
++ let t = location.hash === "#resource-sync", n = xDe.map(([n, r]) => {
+ if (t) return U.fetchQuery({
queryKey: n,
queryFn: () => r({ signal: e })
}).catch(() => void 0);
@@@ -56261,50 -54591,50 +56261,50 @@@
});
await Promise.all([
...n,
- W.fetchQuery({
- queryKey: Uz,
- queryFn: () => qz(e)
+ U.fetchQuery({
- queryKey: hB,
- queryFn: () => yB(e)
++ queryKey: vB,
++ queryFn: () => SB(e)
}),
- W.fetchQuery({
- queryKey: jR,
- queryFn: () => NR(e)
+ U.fetchQuery({
- queryKey: rz,
- queryFn: () => az(e)
++ queryKey: oz,
++ queryFn: () => cz(e)
}),
- nz(e).then(() => fDe(e)),
- dF(e),
- vEe(e),
- rDe(e)
- AR(e).then(() => gEe(e)),
- wI(e),
- STe(e),
- sEe(e)
++ az(e).then(() => lDe(e)),
++ mF(e),
++ hEe(e),
++ eDe(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
- var EDe = [
-var AEe = [
++var CDe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
- ], DDe = [
-], jEe = [
++], wDe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
- function SB(e = {}) {
- return `${_A({
-function Xz(e = {}) {
- return `${gA({
++function TB(e = {}) {
++ return `${yA({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
- var CB = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ODe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
- function wB({ interactive: e = !1 } = {}) {
- return _A({
-var Zz = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", MEe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function Qz({ interactive: e = !1 } = {}) {
- return gA({
++var EB = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", TDe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
++function DB({ interactive: e = !1 } = {}) {
++ return yA({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
- var kDe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
- function TB({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
-var NEe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function $z({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
++var EDe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
++function OB({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@@ -56337,13 -54667,13 +56337,13 @@@
})
] });
}
- function EB({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
-function eB({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
++function kB({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.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, C.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${EDe[n % 4]} ${DDe[n % 4]}`,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${AEe[n % 4]} ${jEe[n % 4]}`,
++ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${CDe[n % 4]} ${wDe[n % 4]}`,
children: /* @__PURE__ */ (0, C.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@@ -56365,139 -54695,139 +56365,139 @@@
}
//#endregion
//#region src/management.ts
- var DB = "同步文件与影片资料,按设置生成本地视频预览。下拉菜单可选择只扫描文件、同步已入库影片、生成预览或补全资料。", OB = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", kB = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", AB = "type=\"button\" disabled data-skeleton-action", jB = "disabled data-skeleton-action", ADe = "aria-disabled=\"true\"", MB = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, NB = (e, t) => `<div data-geist-fieldset-content>
-var tB = "同步文件与影片资料,按设置生成本地视频预览。下拉菜单可选择只扫描文件、同步已入库影片、生成预览或补全资料。", nB = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", rB = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", iB = "type=\"button\" disabled data-skeleton-action", aB = "disabled data-skeleton-action", PEe = "aria-disabled=\"true\"", oB = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, sB = (e, t) => `<div data-geist-fieldset-content>
++var AB = "同步文件与影片资料,按设置生成本地视频预览。下拉菜单可选择只扫描文件、同步已入库影片、生成预览或补全资料。", jB = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", MB = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", NB = "type=\"button\" disabled data-skeleton-action", PB = "disabled data-skeleton-action", DDe = "aria-disabled=\"true\"", FB = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, IB = (e, t) => `<div data-geist-fieldset-content>
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div>`;
- function jDe() {
- return MB(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${NB("扫描与采集", DB)}
-function FEe() {
- return oB(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
- ${sB("扫描与采集", tB)}
++function ODe() {
++ return FB(`<section aria-label="扫描与采集" data-geist-fieldset data-cleanup-task data-cleanup-processing data-fieldset-stack>
++ ${IB("扫描与采集", AB)}
<footer data-geist-fieldset-footer><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>${vo("arrow-up", "size-[18px] shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${xo({
glyph: "database",
label: "同步媒体库",
- attrs: jB
- attrs: aB
++ attrs: PB
})}${xo({
glyph: "chevron-down",
- attrs: `${jB} aria-label="更多同步方式"`
- attrs: `${aB} aria-label="更多同步方式"`
++ attrs: `${PB} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
- function MDe() {
- return MB(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${NB("媒体修复", OB)}
- <footer data-geist-fieldset-footer>${Co(kB, {
-function IEe() {
- return oB(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
- ${sB("媒体修复", nB)}
- <footer data-geist-fieldset-footer>${Co(rB, {
++function kDe() {
++ return FB(`<section aria-label="媒体修复" data-geist-fieldset data-cleanup-task data-cleanup-processing>
++ ${IB("媒体修复", jB)}
++ <footer data-geist-fieldset-footer>${Co(MB, {
className: "w-48",
- attrs: ADe
- attrs: PEe
++ attrs: DDe
})}${xo({
label: "开始修复",
- attrs: jB
- attrs: aB
++ attrs: PB
})}</footer>
</section>`);
}
- function PB() {
-function cB() {
++function LB() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["回收站", "trash"]
- ], t = `<span class="geist-button ui-organize-preset-skeleton">${kB}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
- <span class="geist-input ui-organize-input-skeleton">${kB}</span></div>`;
- ], t = `<span class="geist-button ui-organize-preset-skeleton">${rB}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
- <span class="geist-input ui-organize-input-skeleton">${rB}</span></div>`;
++ ], t = `<span class="geist-button ui-organize-preset-skeleton">${MB}</span>`.repeat(3), n = (e) => `<div class="ui-organizefield"><span>${e}</span>
++ <span class="geist-input ui-organize-input-skeleton">${MB}</span></div>`;
return `<div class="ui-cleanuppage" data-skeleton="cleanup" aria-busy="true" aria-label="正在读取数据管理状态">
<div class="ui-cleanupstats">${e.map(([e, t]) => `
<button type="button" class="board-plain-stat" disabled>
<span class="ui-board-plain-stat-head"><span class="ui-board-stat-tile">${z(t)}</span>${e}</span>
- <strong>${kB}</strong><span class="cleanupmeta">${kB}</span></button>`).join("")}</div>
- <strong>${rB}</strong><span class="cleanupmeta">${rB}</span></button>`).join("")}</div>
++ <strong>${MB}</strong><span class="cleanupmeta">${MB}</span></button>`).join("")}</div>
<div class="cleanupgrid">
- <div class="cleanupscraping">${jDe()}</div>
- <div class="cleanupmediarepair">${MDe()}</div>
- <div class="cleanupscraping">${FEe()}</div>
- <div class="cleanupmediarepair">${IEe()}</div>
++ <div class="cleanupscraping">${ODe()}</div>
++ <div class="cleanupmediarepair">${kDe()}</div>
<section class="cleanupfieldset cleanuporganize" data-geist-fieldset data-cleanup-task aria-labelledby="cleanup-loading-organize">
<div class="geist-fieldset-content"><h3 class="geist-fieldset-title" id="cleanup-loading-organize">整理</h3>
<p>按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。</p>
<div class="ui-organizefields">
- <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${kB}${z("chevron-down")}</span></span></div>
- <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${rB}${z("chevron-down")}</span></span></div>
++ <div class="organizesource"><span class="ui-gselect"><span class="gselectfield organize-source-skeleton">${MB}${z("chevron-down")}</span></span></div>
${n("文件名模板")}
${n("目录模板")}
<div class="ui-organizepresets">${t}</div>
- <p class="cleanupmeta">${kB}</p>
- <p class="cleanupmeta">${rB}</p>
++ <p class="cleanupmeta">${MB}</p>
</div></div>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${AB}>预览</button></footer>
- <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${iB}>预览</button></footer>
++ <footer class="geist-fieldset-footer" data-geist-fieldset-footer><button class="geist-button primary" ${NB}>预览</button></footer>
</section></div>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-links">
<h2 id="cleanup-loading-links">链接管理</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task data-fieldset-stack>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">站外链接</h3>
- <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${kB}</b><small>${kB}</small></div>${[
- <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${rB}</b><small>${rB}</small></div>${[
++ <div class="linksummary"><div class="ui-linkstats"><div><span>链接总数</span><b>${MB}</b><small>${MB}</small></div>${[
"官网/事务所",
"社交账号",
"作品资料站"
- ].map((e) => `<div><span>${e}</span><b>${kB}</b></div>`).join("")}</div>
- <div class="ui-linkhosts"><span>主要站点</span><b>${kB}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${AB}>${z("unlink")}<span>检查死链</span></button></div>
- ].map((e) => `<div><span>${e}</span><b>${rB}</b></div>`).join("")}</div>
- <div class="ui-linkhosts"><span>主要站点</span><b>${rB}</b></div></div></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${iB}>${z("unlink")}<span>检查死链</span></button></div>
++ ].map((e) => `<div><span>${e}</span><b>${MB}</b></div>`).join("")}</div>
++ <div class="ui-linkhosts"><span>主要站点</span><b>${MB}</b></div></div></div>
++ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${NB}>${z("unlink")}<span>检查死链</span></button></div>
</div></section>
<section class="ui-resourcesync" aria-labelledby="cleanup-loading-sync">
<h2 id="cleanup-loading-sync">资源同步</h2>
<div class="resourcesyncbox" data-geist-fieldset data-cleanup-task>
<div class="resourcesyncbody geist-fieldset-content"><h3 class="geist-fieldset-title">文件与记录核对</h3>
<p>按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。</p></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${AB}>${z("git-compare")}<span>检查文件</span></button></div>
- <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${iB}>${z("git-compare")}<span>检查文件</span></button></div>
++ <div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" ${NB}>${z("git-compare")}<span>检查文件</span></button></div>
</div></section></div>`;
}
//#endregion
//#region src/react/components/fieldset.tsx
- var NDe = _A({
-var LEe = gA({
++var ADe = yA({
padding: "none",
bordered: "line",
className: "overflow-hidden"
- }), PDe = {
-}), REe = {
++}), jDe = {
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"
- }, FDe = {
-}, zEe = {
++}, MDe = {
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"
- }, IDe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", LDe = {
-}, BEe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", VEe = {
++}, NDe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", PDe = {
neutral: "border-border-button-default bg-card-footer",
error: "border-border-error-default bg-background-tertiary-error"
- }, RDe = _A({
-}, HEe = gA({
++}, FDe = yA({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
- }), FB = "border-t border-border-button-default p-4 first:border-t-0";
- function zDe({ tone: e = "neutral", status: t, children: n }) {
-}), lB = "border-t border-border-button-default p-4 first:border-t-0";
-function UEe({ tone: e = "neutral", status: t, children: n }) {
++}), RB = "border-t border-border-button-default p-4 first:border-t-0";
++function IDe({ tone: e = "neutral", status: t, children: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: `${IDe} ${LDe[e]}`,
- className: `${BEe} ${VEe[e]}`,
++ className: `${NDe} ${PDe[e]}`,
children: [t ? /* @__PURE__ */ (0, C.jsx)("p", {
className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,
children: t
}) : null, n]
});
}
- function IB({ id: e, gap: t = "none", children: n }) {
-function uB({ id: e, gap: t = "none", children: n }) {
++function zB({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, C.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
- function LB({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
-function dB({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
++function BB({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, C.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: `${NDe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
- className: `${LEe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
++ className: `${ADe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
- className: PDe[e],
- className: REe[e],
++ className: jDe[e],
children: a
}), i ? /* @__PURE__ */ (0, C.jsx)("footer", {
- className: FDe[e],
- className: zEe[e],
++ className: MDe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/path-line.tsx
- function BDe({ className: e }) {
-function WEe({ className: e }) {
++function LDe({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@@ -56510,8 -54840,8 +56510,8 @@@
children: /* @__PURE__ */ (0, C.jsx)("use", { href: "#i-folder-open" })
});
}
- var VDe = "打开文件管理器失败,请重试";
- function RB({ path: e, prefix: t, className: n, onRevealed: r }) {
-var GEe = "打开文件管理器失败,请重试";
-function fB({ path: e, prefix: t, className: n, onRevealed: r }) {
++var RDe = "打开文件管理器失败,请重试";
++function VB({ path: e, prefix: t, className: n, onRevealed: r }) {
let [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(""), c = (0, S.useRef)(!0);
(0, S.useEffect)(() => () => {
c.current = !1;
@@@ -56520,9 -54850,9 +56520,9 @@@
if (!i) {
a(!0), s("");
try {
- await U("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
+ await H("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof _n ? e.message : VDe);
- c.current && s(e instanceof vn ? e.message : GEe);
++ c.current && s(e instanceof _n ? e.message : RDe);
} finally {
c.current && a(!1);
}
@@@ -56533,10 -54863,10 +56533,10 @@@
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, C.jsxs)("p", {
- className: dA("min-w-0 break-all", n),
- className: uA("min-w-0 break-all", n),
++ className: pA("min-w-0 break-all", n),
children: [t, e]
-- }), /* @__PURE__ */ (0, C.jsx)(dj, {
- icon: BDe,
- icon: WEe,
++ }), /* @__PURE__ */ (0, C.jsx)(mj, {
++ icon: LDe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@@ -56551,34 -54881,58 +56551,34 @@@
}
//#endregion
//#region src/react/components/task-progress.tsx
- function zB({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
-function pB({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
++function HB({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-task-progress": !0,
- className: r ? "flex flex-col gap-1.5" : _A({
- className: r ? "flex flex-col gap-1.5" : gA({
++ className: r ? "flex flex-col gap-1.5" : yA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-1.5 px-4 py-3.5"
}),
- children: n && n > 0 ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(SA, {
- children: n && n > 0 ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(xA, {
++ children: n && n > 0 ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(wA, {
label: e,
value: t,
max: n
}), /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, C.jsx)(yA, { label: e })
- })] }) : /* @__PURE__ */ (0, C.jsx)(vA, { label: e })
++ })] }) : /* @__PURE__ */ (0, C.jsx)(xA, { label: e })
});
}
//#endregion
-//#region src/react/library-processing/use-library-processing.ts
-function mB({ toast: e, mode: t, monitor: n }) {
- let r = t === "notice" || !!n, i = pt({
- queryKey: SI,
- queryFn: ({ signal: e }) => CI(e),
- refetchInterval: (e) => EI(e.state.data, r)
- }), [a, o] = (0, S.useState)(null), s = (0, S.useRef)(void 0), c = i.data;
- return (0, S.useEffect)(() => {
- if (!c) return;
- let n = s.current;
- s.current = c.status;
- let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && NSe(c, e, r);
- }, [
- c,
- t,
- e
- ]), {
- job: i,
- settled: a,
- forget: () => o(null)
- };
-}
-//#endregion
//#region src/react/library-processing/library-processing-card.tsx
- var HDe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", UDe = (e) => {
-var KEe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", qEe = (e) => {
++var zDe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", BDe = (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(",")}。`;
- }, WDe = (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} 部视频预览。` : "") + UDe(e);
- function GDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Hxe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Bxe(e.notes || {}), c = YP();
-}, JEe = (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} 部视频预览。` : "") + qEe(e);
-function YEe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = jSe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = ASe(e.notes || {}), c = UP();
++}, VDe = (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} 部视频预览。` : "") + BDe(e);
++function HDe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
++ let a = zxe(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Lxe(e.notes || {}), c = QP();
return /* @__PURE__ */ (0, C.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
@@@ -56586,7 -54940,7 +56586,7 @@@
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "warning",
title: "处理较慢",
- children: HDe
- children: KEe
++ children: zDe
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -56598,7 -54952,7 +56598,7 @@@
}) : null,
extra: a ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5",
- children: /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VA, {
summary: a.label,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "relative",
@@@ -56629,7 -54983,7 +56629,7 @@@
})
}), a.log ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",
- children: /* @__PURE__ */ (0, C.jsx)(RB, {
- children: /* @__PURE__ */ (0, C.jsx)(fB, {
++ children: /* @__PURE__ */ (0, C.jsx)(VB, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@@ -56643,13 -54997,13 +56643,13 @@@
n?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "success",
title: "处理完成",
- children: WDe(n)
- children: JEe(n)
++ children: VDe(n)
}) : null,
- !cF(e) && s ? /* @__PURE__ */ (0, C.jsx)(q, {
- e.status !== "running" && s ? /* @__PURE__ */ (0, C.jsx)(q, {
++ !dF(e) && s ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
extra: e.issues_log ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",
- children: /* @__PURE__ */ (0, C.jsx)(RB, {
- children: /* @__PURE__ */ (0, C.jsx)(fB, {
++ children: /* @__PURE__ */ (0, C.jsx)(VB, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@@ -56661,38 -55015,38 +56661,38 @@@
]
});
}
- function BB(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SF(e), o = pt({
- mutationFn: (e) => H(oF, e),
-function hB(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = mB(e), o = mt({
- mutationFn: (e) => U(xI, e),
++function UB(e) {
++ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = TF(e), o = pt({
++ mutationFn: (e) => H(lF, e),
onSuccess: (e) => {
- a(), U.setQueryData(sF, e), U.invalidateQueries({ queryKey: sF });
- a(), W.setQueryData(SI, e), W.invalidateQueries({ queryKey: SI });
++ a(), U.setQueryData(uF, e), U.invalidateQueries({ queryKey: uF });
}
});
(0, S.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? V(o.error) : r.isError ? r.data ? fF : V(r.error) : "", l = o.isPending || cF(s), u = hF(s), d = async (e) => {
- let s = r.data ?? { status: "idle" }, c = o.error ? V(o.error) : r.isError ? r.data ? TI : V(r.error) : "", l = o.isPending || s.status === "running", u = OI(s), d = (e) => {
- l || (o.reset(), o.mutate(e));
++ let s = r.data ?? { status: "idle" }, c = o.error ? V(o.error) : r.isError ? r.data ? hF : V(r.error) : "", l = o.isPending || dF(s), u = vF(s), d = async (e) => {
+ l || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, C.jsx)(LB, {
- children: [/* @__PURE__ */ (0, C.jsx)(dB, {
++ children: [/* @__PURE__ */ (0, C.jsx)(BB, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(OA, {
- /* @__PURE__ */ (0, C.jsx)(DA, {
++ /* @__PURE__ */ (0, C.jsx)(AA, {
href: "/sources",
size: "small",
-- trailingIcon: kk,
++ trailingIcon: jk,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, C.jsx)(OA, {
- s.candidates ? /* @__PURE__ */ (0, C.jsx)(DA, {
++ s.candidates ? /* @__PURE__ */ (0, C.jsx)(AA, {
href: "/review",
size: "small",
-- trailingIcon: kk,
++ trailingIcon: jk,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, C.jsx)(rL, {
- /* @__PURE__ */ (0, C.jsx)(jI, {
++ /* @__PURE__ */ (0, C.jsx)(oL, {
scan: !0,
busy: l,
metadataOnly: s?.metadata_only,
@@@ -56703,32 -55056,20 +56703,32 @@@
children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(IB, { children: "扫描与采集" }),
- /* @__PURE__ */ (0, C.jsx)(uB, { children: "扫描与采集" }),
++ /* @__PURE__ */ (0, C.jsx)(zB, { children: "扫描与采集" }),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: DB
- children: tB
++ children: AB
}),
- s.status === "running" ? /* @__PURE__ */ (0, C.jsx)(pB, {
+ s.status === "paused" && !s.total ? /* @__PURE__ */ (0, C.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: "已暂停"
- }) : cF(s) ? /* @__PURE__ */ (0, C.jsx)(zB, {
++ }) : dF(s) ? /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: u,
value: Math.min(s.checked || 0, s.total || 0),
total: s.total
- }) : null
+ }) : null,
- cF(s) ? /* @__PURE__ */ (0, C.jsx)("p", {
++ dF(s) ? /* @__PURE__ */ (0, C.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary tabular-nums",
+ "data-processing-eta": "",
- children: lF(s)
++ children: fF(s)
+ }) : null,
- /* @__PURE__ */ (0, C.jsx)(xF, {
++ /* @__PURE__ */ (0, C.jsx)(wF, {
+ state: s,
+ disabled: o.isPending || r.isError
+ })
]
})
- }), /* @__PURE__ */ (0, C.jsx)(GDe, {
- }), /* @__PURE__ */ (0, C.jsx)(YEe, {
++ }), /* @__PURE__ */ (0, C.jsx)(HDe, {
state: s,
problem: c,
settled: i,
@@@ -56744,9 -55085,9 +56744,9 @@@
}
//#endregion
//#region src/react/background-job.ts
- var VB = 2e3, KDe = (e) => e, qDe = (e, t) => t;
- function HB(e) {
- let { queryKey: t, jobOf: n = KDe, withJob: r = qDe, idlePollMs: i } = e, [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(null), l = (0, S.useRef)(e);
-var gB = 2e3, XEe = (e) => e, ZEe = (e, t) => t;
-function _B(e) {
- let { queryKey: t, jobOf: n = XEe, withJob: r = ZEe, idlePollMs: i } = e, [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(null), l = (0, S.useRef)(e);
++var WB = 2e3, UDe = (e) => e, WDe = (e, t) => t;
++function GB(e) {
++ let { queryKey: t, jobOf: n = UDe, withJob: r = WDe, idlePollMs: i } = e, [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(null), l = (0, S.useRef)(e);
(0, S.useEffect)(() => {
l.current = e;
});
@@@ -56755,12 -55096,12 +56755,12 @@@
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? VB : i ?? !1;
- return t !== void 0 && n(t)?.status === "running" ? gB : i ?? !1;
++ return t !== void 0 && n(t)?.status === "running" ? WB : i ?? !1;
}
- }), d = mt({
+ }), d = pt({
mutationFn: (e) => l.current.start(e),
onSuccess: (e) => {
- o(!0), c(null), l.current.onStarted?.(e), W.setQueryData(t, (t) => r(t, e)), W.invalidateQueries({
+ o(!0), c(null), l.current.onStarted?.(e), U.setQueryData(t, (t) => r(t, e)), U.invalidateQueries({
queryKey: t,
exact: !0
});
@@@ -56780,32 -55121,32 +56780,32 @@@
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
- var JDe = (e) => uo[e] || e, UB = (e) => U.setQueryData(uz, e);
- function YDe() {
-var QEe = (e) => uo[e] || e, vB = (e) => W.setQueryData(RR, e);
-function $Ee() {
- let e = pt({
- queryKey: RR,
- queryFn: ({ signal: e }) => BR(e),
- refetchInterval: (e) => e.state.data?.status === "running" && gB
- }), t = pt({
- queryKey: zR,
- queryFn: ({ signal: e }) => VR(e)
- }), [n, r] = (0, S.useState)(""), i = SA(), a = e.data ?? xTe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
++var GDe = (e) => uo[e] || e, KB = (e) => U.setQueryData(pz, e);
++function KDe() {
+ let e = ft({
- queryKey: uz,
- queryFn: ({ signal: e }) => fz(e),
- refetchInterval: (e) => e.state.data?.status === "running" && VB
++ queryKey: pz,
++ queryFn: ({ signal: e }) => hz(e),
++ refetchInterval: (e) => e.state.data?.status === "running" && WB
+ }), t = ft({
- queryKey: dz,
- queryFn: ({ signal: e }) => pz(e)
- }), [n, r] = (0, S.useState)(""), i = CA(), a = e.data ?? _Ee, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
++ queryKey: mz,
++ queryFn: ({ signal: e }) => gz(e)
++ }), [n, r] = (0, S.useState)(""), i = TA(), a = e.data ?? mEe, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {
c && Vs({
title: `修复媒体库「${c.name}」`,
body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),
confirmLabel: "修复媒体库",
- onConfirm: async () => UB(await H(lz, {
- onConfirm: async () => vB(await U(LR, {
++ onConfirm: async () => KB(await H(fz, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => H(lz, { stop: !0 }, "POST", e), UB), d = yEe(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
- }, u = () => void i.run("stop", (e) => U(LR, { stop: !0 }, "POST", e), vB), d = CTe(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
++ }, u = () => void i.run("stop", (e) => H(fz, { stop: !0 }, "POST", e), KB), d = gEe(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, C.jsx)(LB, {
- children: [/* @__PURE__ */ (0, C.jsx)(dB, {
++ children: [/* @__PURE__ */ (0, C.jsx)(BB, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(NF, {
- footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(ZP, {
++ footer: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@@ -56813,10 -55154,10 +56813,10 @@@
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, C.jsxs)(PF, {
- children: o.map((e) => /* @__PURE__ */ (0, C.jsxs)(QP, {
++ children: o.map((e) => /* @__PURE__ */ (0, C.jsxs)(LF, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: JDe(e.icon) }), e.name]
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: QEe(e.icon) }), e.name]
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: GDe(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, C.jsx)(K, {
onClick: u,
@@@ -56830,12 -55171,12 +56830,12 @@@
children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(IB, { children: "媒体修复" }),
- /* @__PURE__ */ (0, C.jsx)(uB, { children: "媒体修复" }),
++ /* @__PURE__ */ (0, C.jsx)(zB, { children: "媒体修复" }),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: OB
- children: nB
++ children: jB
}),
- s && a.total ? /* @__PURE__ */ (0, C.jsx)(SA, {
- s && a.total ? /* @__PURE__ */ (0, C.jsx)(xA, {
++ s && a.total ? /* @__PURE__ */ (0, C.jsx)(wA, {
label: "修复进度",
value: a.checked,
max: a.total
@@@ -56859,7 -55200,7 +56859,7 @@@
f && a.missing_tool ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "warning",
title: "缺少 untrunc",
- children: bEe(a)
- children: wTe(a)
++ children: _Ee(a)
}) : null,
p ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -56871,43 -55212,43 +56871,43 @@@
}
//#endregion
//#region src/react/components/use-table-selection.ts
- var WB = /* @__PURE__ */ new Map();
- function GB(e) {
-var yB = /* @__PURE__ */ new Map();
-function bB(e) {
++var qB = /* @__PURE__ */ new Map();
++function JB(e) {
let t = (0, S.useId)(), n = (0, S.useRef)(e);
- return n.current = e, (0, S.useEffect)(() => (WB.set(t, () => n.current()), () => {
- WB.delete(t);
- return n.current = e, (0, S.useEffect)(() => (yB.set(t, () => n.current()), () => {
- yB.delete(t);
++ return n.current = e, (0, S.useEffect)(() => (qB.set(t, () => n.current()), () => {
++ qB.delete(t);
}), [t]), (0, S.useCallback)(() => {
- for (let [e, n] of WB) e !== t && n();
- for (let [e, n] of yB) e !== t && n();
++ for (let [e, n] of qB) e !== t && n();
}, [t]);
}
//#endregion
//#region src/react/components/data-table.tsx
- var XDe = $L({
- rowSortingFeature: UR,
- rowSelectionFeature: AR,
- rowPaginationFeature: lR,
- sortedRowModel: GR(),
- paginatedRowModel: WR()
-var eDe = DL({
- rowSortingFeature: _R,
- rowSelectionFeature: iR,
- rowPaginationFeature: LL,
- sortedRowModel: yR(),
- paginatedRowModel: vR()
++var qDe = nR({
++ rowSortingFeature: KR,
++ rowSelectionFeature: NR,
++ rowPaginationFeature: fR,
++ sortedRowModel: JR(),
++ paginatedRowModel: qR()
});
- function KB({ label: e, items: t, columns: n, rowId: r, rowLabel: i, selected: a, onSelected: o, actions: s, title: c = e, titleId: l, description: u, footerActions: d, panel: f = !0, unit: p = "条记录" }) {
-function xB({ label: e, items: t, columns: n, rowId: r, rowLabel: i, selected: a, onSelected: o, actions: s, title: c = e, titleId: l, description: u, footerActions: d, panel: f = !0, unit: p = "条记录" }) {
++function YB({ label: e, items: t, columns: n, rowId: r, rowLabel: i, selected: a, onSelected: o, actions: s, title: c = e, titleId: l, description: u, footerActions: d, panel: f = !0, unit: p = "条记录" }) {
let [m, h] = (0, S.useState)([]), [g, _] = (0, S.useState)({
pageIndex: 0,
pageSize: 20
- }), v = GB(() => o([])), y = Math.max(1, Math.ceil(t.length / g.pageSize)), b = Math.min(g.pageIndex, y - 1), x = Object.fromEntries(a.map((e) => [e, !0])), w = KR({
- features: XDe,
- }), v = bB(() => o([])), y = Math.max(1, Math.ceil(t.length / g.pageSize)), b = Math.min(g.pageIndex, y - 1), x = Object.fromEntries(a.map((e) => [e, !0])), w = bR({
- features: eDe,
++ }), v = JB(() => o([])), y = Math.max(1, Math.ceil(t.length / g.pageSize)), b = Math.min(g.pageIndex, y - 1), x = Object.fromEntries(a.map((e) => [e, !0])), w = YR({
++ features: qDe,
data: t,
columns: (0, S.useMemo)(() => {
- let t = QL();
- let t = EL();
++ let t = tR();
return t.columns([t.display({
id: "select",
- header: ({ table: t }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- header: ({ table: t }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ header: ({ table: t }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": `全选${e}`,
isSelected: t.getIsAllRowsSelected(),
isIndeterminate: t.getIsSomeRowsSelected(),
onChange: (e) => t.toggleAllRowsSelected(e)
}),
- cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": `选择 ${i(e.original)}`,
isSelected: e.getIsSelected(),
@@@ -56952,7 -55293,7 +56952,7 @@@
}), T = w.getSelectedRowModel().rows.map((e) => e.original);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-data-table-panel": f || void 0,
- className: f ? _A({
- className: f ? gA({
++ className: f ? yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}) : "flex min-w-0 flex-col gap-4",
@@@ -56971,7 -55312,7 +56971,7 @@@
className: "text-body-2-regular tabular-nums text-text-secondary",
children: `${t.length.toLocaleString()} ${p}`
}),
- /* @__PURE__ */ (0, C.jsx)(XR, {
- /* @__PURE__ */ (0, C.jsx)(wR, {
++ /* @__PURE__ */ (0, C.jsx)($R, {
label: e,
options: n.filter((e) => e.value).map((e) => ({
id: e.id,
@@@ -56991,7 -55332,7 +56991,7 @@@
className: "text-body-2-regular text-text-secondary",
children: u
}) : null,
-- /* @__PURE__ */ (0, C.jsxs)(nE, {
++ /* @__PURE__ */ (0, C.jsxs)(iE, {
label: `${e}批量操作`,
visible: T.length > 0,
count: `已选 ${T.length.toLocaleString()} ${p}`,
@@@ -57002,10 -55343,10 +57002,10 @@@
children: "取消选择"
})]
}),
- /* @__PURE__ */ (0, C.jsx)(JR, {
- /* @__PURE__ */ (0, C.jsx)(SR, {
++ /* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
onRowClick: (e) => w.getRow(e)?.toggleSelected(),
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": e,
size: "sm",
sortDescriptor: m[0] ? {
@@@ -57013,29 -55354,29 +57013,29 @@@
direction: m[0].desc ? "descending" : "ascending"
} : void 0,
onSortChange: (e) => w.getColumn(String(e.column))?.toggleSorting(e.direction === "descending"),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: w.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: w.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: w.getHeaderGroups()[0].headers.map((e, t) => /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
isRowHeader: t === 1,
allowsSorting: e.column.getCanSort(),
children: ({ sortDirection: t }) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [oL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
- children: [PI(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [lL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": t || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
}) : null]
})
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)($N, {
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(qN, {
++ }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(nP, {
renderEmptyState: () => "没有记录",
- children: w.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- children: w.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ children: w.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-board-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
}),
- /* @__PURE__ */ (0, C.jsx)(ZR, {
- /* @__PURE__ */ (0, C.jsx)(TR, {
++ /* @__PURE__ */ (0, C.jsx)(ez, {
label: e,
total: t.length,
pagination: {
@@@ -57054,8 -55395,8 +57054,8 @@@
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
- var ZDe = wP("unlink"), qB = wP("rotate-cw"), QDe = "站点返回 404 或 410,确认这个地址不存在。", $De = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", eOe = "删除前会逐条重验一次;此操作不可撤销。", tOe = "暂时无法读取进度,正在重新连接…", JB = (e) => Number(e || 0).toLocaleString();
- function YB({ label: e, value: t, note: n }) {
-var tDe = vP("unlink"), SB = vP("rotate-cw"), nDe = "站点返回 404 或 410,确认这个地址不存在。", rDe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", iDe = "删除前会逐条重验一次;此操作不可撤销。", aDe = "暂时无法读取进度,正在重新连接…", CB = (e) => Number(e || 0).toLocaleString();
-function wB({ label: e, value: t, note: n }) {
++var JDe = DP("unlink"), XB = DP("rotate-cw"), YDe = "站点返回 404 或 410,确认这个地址不存在。", XDe = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", ZDe = "删除前会逐条重验一次;此操作不可撤销。", QDe = "暂时无法读取进度,正在重新连接…", ZB = (e) => Number(e || 0).toLocaleString();
++function QB({ label: e, value: t, note: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@@ -57074,10 -55415,10 +57074,10 @@@
]
});
}
- function XB({ title: e, items: t, hint: n, picked: r, onPick: i, children: a, footer: o }) {
-function TB({ title: e, items: t, hint: n, picked: r, onPick: i, children: a, footer: o }) {
++function $B({ title: e, items: t, hint: n, picked: r, onPick: i, children: a, footer: o }) {
return t.length ? /* @__PURE__ */ (0, C.jsx)("div", {
- className: FB,
- children: /* @__PURE__ */ (0, C.jsx)(KB, {
- className: lB,
- children: /* @__PURE__ */ (0, C.jsx)(xB, {
++ className: RB,
++ children: /* @__PURE__ */ (0, C.jsx)(YB, {
label: e,
items: t,
columns: [
@@@ -57093,8 -55434,8 +57093,8 @@@
{
id: "kind",
label: "类型",
- value: (e) => Iz[e.link_kind] || e.link_kind,
- render: (e) => Iz[e.link_kind] || e.link_kind
- value: (e) => uz[e.link_kind] || e.link_kind,
- render: (e) => uz[e.link_kind] || e.link_kind
++ value: (e) => zz[e.link_kind] || e.link_kind,
++ render: (e) => zz[e.link_kind] || e.link_kind
},
{
id: "label",
@@@ -57111,7 -55452,7 +57111,7 @@@
value: (e) => e.note,
render: (e) => /* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-40 max-w-80",
-- children: /* @__PURE__ */ (0, C.jsx)(ij, {
++ children: /* @__PURE__ */ (0, C.jsx)(sj, {
text: e.note,
className: "tabular-nums text-text-error-primary"
})
@@@ -57131,7 -55472,7 +57131,7 @@@
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, C.jsx)(Ik, {
- }), /* @__PURE__ */ (0, C.jsx)(Fk, {
++ }), /* @__PURE__ */ (0, C.jsx)(Rk, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@@ -57150,27 -55491,27 +57150,27 @@@
})
}) : null;
}
- function nOe() {
-function oDe() {
- let e = pt({
- queryKey: sz,
- queryFn: ({ signal: e }) => fz(e)
- }), [t, n] = (0, S.useState)([]), [r, i] = (0, S.useState)([]), a = _B({
- queryKey: lz,
- queryFn: ({ signal: e }) => mz(e),
- start: XTe,
++function $De() {
+ let e = ft({
- queryKey: Nz,
- queryFn: ({ signal: e }) => Rz(e)
- }), [t, n] = (0, S.useState)([]), [r, i] = (0, S.useState)([]), a = HB({
- queryKey: Fz,
- queryFn: ({ signal: e }) => Bz(e),
- start: KEe,
++ queryKey: Iz,
++ queryFn: ({ signal: e }) => Vz(e)
++ }), [t, n] = (0, S.useState)([]), [r, i] = (0, S.useState)([]), a = GB({
++ queryKey: Rz,
++ queryFn: ({ signal: e }) => Uz(e),
++ start: UEe,
onFinish: () => {
- W.invalidateQueries({
- queryKey: sz,
+ U.invalidateQueries({
- queryKey: Nz,
++ queryKey: Iz,
exact: !0
- }), W.invalidateQueries({
- queryKey: cz,
+ }), U.invalidateQueries({
- queryKey: Pz,
++ queryKey: Lz,
exact: !0
});
}
- }), o = HB({
- queryKey: Pz,
- queryFn: ({ signal: e }) => zz(e),
- start: GEe,
- }), o = _B({
- queryKey: cz,
- queryFn: ({ signal: e }) => pz(e),
- start: YTe,
++ }), o = GB({
++ queryKey: Lz,
++ queryFn: ({ signal: e }) => Hz(e),
++ start: HEe,
onStarted: () => {
a.dismiss(), n([]), i([]);
}
@@@ -57178,7 -55519,7 +57178,7 @@@
(0, S.useEffect)(() => {
n([]), i([]);
}, [c]);
- let l = o.running || o.start.isPending, u = a.running || a.start.isPending, d = s?.status === "complete", f = s?.gone ?? [], p = s?.unclear ?? [], m = d ? p : [], h = f.filter((e) => r.includes(e.id)).map((e) => e.id), g = m.filter((e) => t.includes(e.id)).map((e) => e.id), _ = e.data, v = (_?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${JB(t)}`).join(" · "), y = (e) => {
- let l = o.running || o.start.isPending, u = a.running || a.start.isPending, d = s?.status === "complete", f = s?.gone ?? [], p = s?.unclear ?? [], m = d ? p : [], h = f.filter((e) => r.includes(e.id)).map((e) => e.id), g = m.filter((e) => t.includes(e.id)).map((e) => e.id), _ = e.data, v = (_?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${CB(t)}`).join(" · "), y = (e) => {
++ let l = o.running || o.start.isPending, u = a.running || a.start.isPending, d = s?.status === "complete", f = s?.gone ?? [], p = s?.unclear ?? [], m = d ? p : [], h = f.filter((e) => r.includes(e.id)).map((e) => e.id), g = m.filter((e) => t.includes(e.id)).map((e) => e.id), _ = e.data, v = (_?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${ZB(t)}`).join(" · "), y = (e) => {
l || e && !e.length || o.start.mutate(e ? {
retry: e,
checkId: c
@@@ -57203,7 -55544,7 +57203,7 @@@
else if (x && !f.length && !p.length) E = /* @__PURE__ */ (0, C.jsx)(q, {
tone: "success",
title: "完成",
- children: Hz(x)
- children: gz(x)
++ children: Gz(x)
});
else if (w) E = /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -57213,7 -55554,7 +57213,7 @@@
else if (o.query.isError && s) E = /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
title: "任务状态",
- children: tOe
- children: aDe
++ children: QDe
});
else if (s?.status === "failed") E = /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -57221,12 -55562,12 +57221,12 @@@
children: s.error || "检查失败"
});
else if (s && s.status !== "idle") {
- T = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [s.status === "running" ? /* @__PURE__ */ (0, C.jsx)(zB, {
- T = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [s.status === "running" ? /* @__PURE__ */ (0, C.jsx)(pB, {
++ T = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [s.status === "running" ? /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
- label: qEe(s),
- label: ZTe(s),
++ label: WEe(s),
value: Math.min(s.checked || 0, s.total || 0),
total: s.total
- }) : null, u ? /* @__PURE__ */ (0, C.jsx)(zB, {
- }) : null, u ? /* @__PURE__ */ (0, C.jsx)(pB, {
++ }) : null, u ? /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: a.job?.message || "正在重验并删除失效链接…",
value: Math.min(a.job?.checked || 0, a.job?.total || 0),
@@@ -57234,17 -55575,17 +57234,17 @@@
}) : null] });
let e = g.length ? `重试选中的 ${g.length} 条` : "重试选中的链接";
E = d || f.length || p.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: RDe,
- className: HEe,
++ className: FDe,
children: [
x?.status === "complete" ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "success",
title: "完成",
- children: Hz(x)
- children: gz(x)
++ children: Gz(x)
}) : null,
- /* @__PURE__ */ (0, C.jsx)(XB, {
- /* @__PURE__ */ (0, C.jsx)(TB, {
++ /* @__PURE__ */ (0, C.jsx)($B, {
title: "地址已失效",
items: f,
- hint: QDe,
- hint: nDe,
++ hint: YDe,
picked: r,
onPick: i,
children: /* @__PURE__ */ (0, C.jsx)(K, {
@@@ -57256,29 -55597,29 +57256,29 @@@
children: `删除所选(${h.length})`
})
}),
- /* @__PURE__ */ (0, C.jsx)(XB, {
- /* @__PURE__ */ (0, C.jsx)(TB, {
++ /* @__PURE__ */ (0, C.jsx)($B, {
title: "本次未访问成功",
items: p,
- hint: $De,
- hint: rDe,
++ hint: XDe,
picked: t,
onPick: n,
footer: m.length ? /* @__PURE__ */ (0, C.jsx)(K, {
- leadingIcon: qB,
- leadingIcon: SB,
++ leadingIcon: XB,
...J(l),
onClick: () => y(m.map((e) => e.id)),
children: `全部重试(${m.length})`
}) : null,
children: m.length ? /* @__PURE__ */ (0, C.jsx)(C.Fragment, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- leadingIcon: qB,
- leadingIcon: SB,
++ leadingIcon: XB,
disabled: !g.length,
...J(l),
onClick: () => y(g),
children: e
}) }) : null
}),
- d && f.length ? /* @__PURE__ */ (0, C.jsx)(zDe, {
- d && f.length ? /* @__PURE__ */ (0, C.jsx)(UEe, {
++ d && f.length ? /* @__PURE__ */ (0, C.jsx)(IDe, {
tone: "error",
- status: eOe,
- status: iDe,
++ status: ZDe,
children: /* @__PURE__ */ (0, C.jsx)(K, {
variant: "danger",
...J(u),
@@@ -57287,7 -55628,7 +57287,7 @@@
})
}) : null,
d && !f.length && !p.length ? /* @__PURE__ */ (0, C.jsx)("p", {
- className: `${FB} text-body-regular text-notification-success-foreground`,
- className: `${lB} text-body-regular text-notification-success-foreground`,
++ className: `${RB} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@@ -57297,17 -55638,17 +57297,17 @@@
id: "link-manager",
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, C.jsxs)(LB, {
- children: [/* @__PURE__ */ (0, C.jsxs)(dB, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(BB, {
layout: "stack",
labelledBy: "link-manager-title",
footer: /* @__PURE__ */ (0, C.jsx)(K, {
- leadingIcon: ZDe,
- leadingIcon: tDe,
++ leadingIcon: JDe,
...J(l),
onClick: () => y(),
children: l ? "检查中" : d ? "重新检查" : "检查死链"
}),
children: [
- /* @__PURE__ */ (0, C.jsx)(IB, {
- /* @__PURE__ */ (0, C.jsx)(uB, {
++ /* @__PURE__ */ (0, C.jsx)(zB, {
id: "link-manager-title",
gap: "small",
children: "链接管理"
@@@ -57318,13 -55659,13 +57318,13 @@@
children: V(e.error)
}) : _ ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "link-stat-grid mt-4 gap-x-8 gap-y-3",
- children: [/* @__PURE__ */ (0, C.jsx)(YB, {
- children: [/* @__PURE__ */ (0, C.jsx)(wB, {
++ children: [/* @__PURE__ */ (0, C.jsx)(QB, {
label: "链接总数",
- value: JB(_.total),
- note: `分布在 ${JB(_.entities)} 个女优、厂牌与系列`
- }), Object.entries(_.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(YB, {
- label: Iz[e] || e,
- value: JB(t)
- value: CB(_.total),
- note: `分布在 ${CB(_.entities)} 个女优、厂牌与系列`
- }), Object.entries(_.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(wB, {
- label: uz[e] || e,
- value: CB(t)
++ value: ZB(_.total),
++ note: `分布在 ${ZB(_.entities)} 个女优、厂牌与系列`
++ }), Object.entries(_.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QB, {
++ label: zz[e] || e,
++ value: ZB(t)
}, e))]
}), v ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "mt-4 flex min-w-0 flex-col gap-0.5",
@@@ -57351,18 -55692,18 +57351,18 @@@
}
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
- var rOe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, iOe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", aOe = 8;
- function oOe({ plan: e }) {
-var sDe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, cDe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", lDe = 8;
-function uDe({ plan: e }) {
++var eOe = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, tOe = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", nOe = 8;
++function rOe({ plan: e }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("ol", {
className: "mt-2 flex min-w-0 flex-col gap-1",
- children: e.rows.slice(0, aOe).map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
- children: e.rows.slice(0, lDe).map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
++ children: e.rows.slice(0, nOe).map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
"data-middle-truncate": !0,
title: e.current_path,
className: "min-w-0 truncate",
- children: $z(e.current_path)
- children: Dz(e.current_path)
++ children: nB(e.current_path)
}),
/* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
@@@ -57372,7 -55713,7 +57372,7 @@@
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: $z(e.target_path)
- children: Dz(e.target_path)
++ children: nB(e.target_path)
})
]
}, e.current_path))
@@@ -57381,10 -55722,10 +57381,10 @@@
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
- function sOe({ toast: e, failure: t }) {
-function dDe({ toast: e, failure: t }) {
- let n = pt({
- queryKey: Tz,
- queryFn: ({ signal: e }) => Ez(e)
++function iOe({ toast: e, failure: t }) {
+ let n = ft({
- queryKey: Zz,
- queryFn: ({ signal: e }) => Qz(e)
++ queryKey: eB,
++ queryFn: ({ signal: e }) => tB(e)
}), r = n.data, i = r?.locations ?? [], [a, o] = (0, S.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, S.useState)(null), d = l?.location === s ? l : {
location: s,
file: c?.file ?? "",
@@@ -57396,39 -55737,39 +57396,39 @@@
location: s,
file_template: d.file.trim(),
dir_template: d.dir.trim()
- }), v = mt({
- mutationFn: cEe,
+ }), v = pt({
- mutationFn: iDe,
++ mutationFn: tDe,
onError: (e) => {
- let t = cDe.test(V(e)) ? "dir" : "file";
- let t = fEe.test(V(e)) ? "dir" : "file";
++ let t = aDe.test(V(e)) ? "dir" : "file";
m(t), (t === "dir" ? g : h).current?.focus();
}
- }), y = HB({
- queryKey: Zz,
- queryFn: ({ signal: e }) => Qz(e),
- start: aDe,
- }), y = _B({
- queryKey: Tz,
- queryFn: ({ signal: e }) => Ez(e),
- start: lEe,
++ }), y = GB({
++ queryKey: eB,
++ queryFn: ({ signal: e }) => tB(e),
++ start: nDe,
jobOf: (e) => e,
- withJob: sDe,
- withJob: dEe,
++ withJob: iDe,
onStarted: () => v.reset(),
onFinish: (n) => {
- if (W.invalidateQueries({
- queryKey: Tz,
+ if (U.invalidateQueries({
- queryKey: Zz,
++ queryKey: eB,
exact: !0
}), n.status !== "complete") return;
- let { text: r, failed: i } = tB(n);
- let { text: r, failed: i } = kz(n);
++ let { text: r, failed: i } = iB(n);
i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));
}
- }), b = y.running || y.start.isPending, x = v.data, w = Number(x?.counts?.change || 0), T = pn[s] || s, E = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
+ }), b = y.running || y.start.isPending, x = v.data, w = Number(x?.counts?.change || 0), T = fn[s] || s, E = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), D = () => {
!v.isPending && s && (m(null), v.mutate(_()));
}, O = () => void Vs({
title: "按模板整理文件",
- body: rOe(T),
- body: sDe(T),
++ body: eOe(T),
confirmLabel: "整理文件",
onConfirm: async () => {
let e = _();
await y.start.mutateAsync({
kind: "apply",
request: e
- }), oDe({
- }), uEe({
++ }), rDe({
...r?.templates ?? {},
[e.location]: {
file: e.file_template,
@@@ -57438,13 -55779,13 +57438,13 @@@
}
}), k = () => void Vs({
title: "回滚上一批整理",
- body: iOe,
- body: cDe,
++ body: tOe,
confirmLabel: "回滚整理",
onConfirm: () => y.start.mutateAsync({ kind: "rollback" })
}), A = null, j = y.job, M = y.outcome;
if (j?.status === "running") {
let e = j.message || j.stage || "正在整理文件…";
- A = /* @__PURE__ */ (0, C.jsx)(zB, {
- A = /* @__PURE__ */ (0, C.jsx)(pB, {
++ A = /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: e,
value: Math.min(j.checked || 0, j.total || 0),
@@@ -57456,7 -55797,7 +57456,7 @@@
children: M.error || "请查看任务记录,核对已处理的文件。"
});
else if (M) {
- let { text: e, failed: t } = tB(M);
- let { text: e, failed: t } = kz(M);
++ let { text: e, failed: t } = iB(M);
A = /* @__PURE__ */ (0, C.jsx)(q, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@@ -57466,7 -55807,7 +57466,7 @@@
tone: "error",
title: "整理失败",
children: V(y.start.error)
- }) : v.isPending ? A = /* @__PURE__ */ (0, C.jsx)(zB, {
- }) : v.isPending ? A = /* @__PURE__ */ (0, C.jsx)(pB, {
++ }) : v.isPending ? A = /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: "正在按模板算计划…"
}) : v.isError ? A = /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -57476,9 -55817,9 +57476,9 @@@
}) : x && (A = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
title: "预览结果",
- children: lDe(x)
- }), w ? /* @__PURE__ */ (0, C.jsx)(oOe, { plan: x }) : null] }));
- return /* @__PURE__ */ (0, C.jsxs)(LB, {
- children: pEe(x)
- }), w ? /* @__PURE__ */ (0, C.jsx)(uDe, { plan: x }) : null] }));
- return /* @__PURE__ */ (0, C.jsxs)(dB, {
++ children: oDe(x)
++ }), w ? /* @__PURE__ */ (0, C.jsx)(rOe, { plan: x }) : null] }));
++ return /* @__PURE__ */ (0, C.jsxs)(BB, {
layout: "stack",
id: "organize",
labelledBy: "cleanup-organize-title",
@@@ -57502,7 -55843,7 +57502,7 @@@
}) : null
] }),
children: [
- /* @__PURE__ */ (0, C.jsx)(IB, {
- /* @__PURE__ */ (0, C.jsx)(uB, {
++ /* @__PURE__ */ (0, C.jsx)(zB, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@@ -57522,20 -55863,20 +57522,20 @@@
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- i.length ? /* @__PURE__ */ (0, C.jsx)(NF, {
- i.length ? /* @__PURE__ */ (0, C.jsx)(ZP, {
++ i.length ? /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "整理哪个来源",
className: "w-fit min-w-25",
selectedKey: s || null,
onSelectionChange: (e) => {
e !== null && (o(String(e)), m(null), v.reset());
},
- children: i.map((e) => /* @__PURE__ */ (0, C.jsxs)(PF, {
- children: i.map((e) => /* @__PURE__ */ (0, C.jsxs)(QP, {
++ children: i.map((e) => /* @__PURE__ */ (0, C.jsxs)(LF, {
id: e.location,
- textValue: pn[e.location] || e.location,
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: uo[e.location] || "database" }), pn[e.location] || e.location]
+ textValue: fn[e.location] || e.location,
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: uo[e.location] || "database" }), fn[e.location] || e.location]
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: uo[e.location] || "database" }), fn[e.location] || e.location]
}, e.location))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: d.file,
@@@ -57546,7 -55887,7 +57546,7 @@@
f({ file: e }), m(null);
}
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: d.dir,
@@@ -57591,43 -55932,43 +57591,43 @@@
}
//#endregion
//#region src/react/data-cleanup/orphan-records.ts
- var cOe = "/api/orphan-records", lOe = "/api/orphan-records/attach", ZB = ["orphan-records"], uOe = [
-var fDe = "/api/orphan-records", pDe = "/api/orphan-records/attach", EB = ["orphan-records"], mDe = [
++var aOe = "/api/orphan-records", oOe = "/api/orphan-records/attach", eV = ["orphan-records"], sOe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
- ], dOe = (e) => yn(cOe, e), fOe = (e, t) => H(lOe, {
-], hDe = (e) => H(fDe, e), gDe = (e, t) => U(pDe, {
++], cOe = (e) => yn(aOe, e), lOe = (e, t) => H(oOe, {
id: e,
target: t
- }), QB = (e) => H(iz, {
-}), DB = (e) => U(MR, {
++}), tV = (e) => H(sz, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
- }), pOe = (e) => [
-}), _De = (e) => [
++}), uOe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
- ], $B = (e) => [...uOe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...pOe(e)].filter(Boolean).join(" · "), mOe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", eV = (e) => [e.name, mOe(e.duration)].filter(Boolean).join(" · "), hOe = wP("play"), tV = () => U.invalidateQueries({
- queryKey: ZB,
-], OB = (e) => [...mDe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ..._De(e)].filter(Boolean).join(" · "), vDe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", kB = (e) => [e.name, vDe(e.duration)].filter(Boolean).join(" · "), yDe = vP("play"), AB = () => W.invalidateQueries({
- queryKey: EB,
++], nV = (e) => [...sOe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...uOe(e)].filter(Boolean).join(" · "), dOe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", rV = (e) => [e.name, dOe(e.duration)].filter(Boolean).join(" · "), fOe = DP("play"), iV = () => U.invalidateQueries({
++ queryKey: eV,
exact: !0
});
- function gOe({ item: e, toast: t }) {
-function bDe({ item: e, toast: t }) {
- let [n, r] = (0, S.useState)(e.candidates[0]?.id ?? null), i = mt({
- mutationFn: () => gDe(e.id, Number(n)),
++function pOe({ item: e, toast: t }) {
+ let [n, r] = (0, S.useState)(e.candidates[0]?.id ?? null), i = pt({
- mutationFn: () => fOe(e.id, Number(n)),
++ mutationFn: () => lOe(e.id, Number(n)),
onSuccess: (e) => {
- t(`记录已接到新文件,批次 ${e.batch}`), tV();
- t(`记录已接到新文件,批次 ${e.batch}`), AB();
++ t(`记录已接到新文件,批次 ${e.batch}`), iV();
},
onError: (e) => t(V(e))
- }), a = mt({
- mutationFn: () => DB(e.id),
+ }), a = pt({
- mutationFn: () => QB(e.id),
++ mutationFn: () => tV(e.id),
onSuccess: (n) => {
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), tV();
- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), AB();
++ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), iV();
}
}), o = () => {
Vs({
title: "彻底删除",
- body: `将删除「${e.name}」这一条和它带的记录(${$B(e.records)})。此操作不可撤销。`,
- body: `将删除「${e.name}」这一条和它带的记录(${OB(e.records)})。此操作不可撤销。`,
++ body: `将删除「${e.name}」这一条和它带的记录(${nV(e.records)})。此操作不可撤销。`,
confirmLabel: "彻底删除",
danger: !0,
onConfirm: () => a.mutateAsync()
@@@ -57636,17 -55977,17 +57636,17 @@@
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-48 flex-wrap items-center gap-2",
children: [
- e.candidates.length ? /* @__PURE__ */ (0, C.jsx)(NF, {
- e.candidates.length ? /* @__PURE__ */ (0, C.jsx)(ZP, {
++ e.candidates.length ? /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": `把 ${e.name} 的记录接到哪个文件`,
className: "w-52",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(Number(e));
},
- children: e.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: e.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: e.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e.id,
- textValue: eV(e),
- children: eV(e)
- textValue: kB(e),
- children: kB(e)
++ textValue: rV(e),
++ children: rV(e)
}, e.id))
}) : /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-text-secondary",
@@@ -57669,12 -56010,12 +57669,12 @@@
]
});
}
- function _Oe({ item: e }) {
-function xDe({ item: e }) {
++function mOe({ item: e }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, C.jsxs)("span", {
className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",
- children: [/* @__PURE__ */ (0, C.jsx)(hOe, {
- children: [/* @__PURE__ */ (0, C.jsx)(yDe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(fOe, {
"aria-hidden": !0,
className: "size-5"
}), e.has_thumb ? /* @__PURE__ */ (0, C.jsx)("img", {
@@@ -57697,14 -56038,14 +57697,14 @@@
})]
});
}
- function vOe({ toast: e }) {
-function SDe({ toast: e }) {
- let [t, n] = (0, S.useState)([]), r = pt({
- queryKey: EB,
- queryFn: ({ signal: e }) => hDe(e)
- }), i = r.data?.items ?? [], a = mt({
- mutationFn: (e) => DB(e),
++function hOe({ toast: e }) {
+ let [t, n] = (0, S.useState)([]), r = ft({
- queryKey: ZB,
- queryFn: ({ signal: e }) => dOe(e)
++ queryKey: eV,
++ queryFn: ({ signal: e }) => cOe(e)
+ }), i = r.data?.items ?? [], a = pt({
- mutationFn: (e) => QB(e),
++ mutationFn: (e) => tV(e),
onSuccess: (t) => {
- e(`已彻底删除 ${t.purged} 条记录${t.blocked.length ? `,${t.blocked.length} 条文件已恢复,未删除` : ""}`), n([]), tV();
- e(`已彻底删除 ${t.purged} 条记录${t.blocked.length ? `,${t.blocked.length} 条文件已恢复,未删除` : ""}`), n([]), AB();
++ e(`已彻底删除 ${t.purged} 条记录${t.blocked.length ? `,${t.blocked.length} 条文件已恢复,未删除` : ""}`), n([]), iV();
}
}), o = (e) => void Vs({
title: "彻底删除所选记录",
@@@ -57717,10 -56058,10 +57717,10 @@@
id: "orphan-records",
"aria-labelledby": "orphan-records-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: r.isError ? /* @__PURE__ */ (0, C.jsxs)(LB, {
- children: r.isError ? /* @__PURE__ */ (0, C.jsxs)(dB, {
++ children: r.isError ? /* @__PURE__ */ (0, C.jsxs)(BB, {
layout: "stack",
labelledBy: "orphan-records-title",
- children: [/* @__PURE__ */ (0, C.jsx)(IB, {
- children: [/* @__PURE__ */ (0, C.jsx)(uB, {
++ children: [/* @__PURE__ */ (0, C.jsx)(zB, {
id: "orphan-records-title",
children: "孤儿记录"
}), /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -57728,7 -56069,7 +57728,7 @@@
title: "孤儿记录读取失败",
children: V(r.error)
})]
- }) : /* @__PURE__ */ (0, C.jsx)(KB, {
- }) : /* @__PURE__ */ (0, C.jsx)(xB, {
++ }) : /* @__PURE__ */ (0, C.jsx)(YB, {
label: "文件已消失的作品",
items: i,
columns: [
@@@ -57736,22 -56077,22 +57736,22 @@@
id: "item",
label: "作品",
value: (e) => e.name,
- render: (e) => /* @__PURE__ */ (0, C.jsx)(_Oe, { item: e })
- render: (e) => /* @__PURE__ */ (0, C.jsx)(xDe, { item: e })
++ render: (e) => /* @__PURE__ */ (0, C.jsx)(mOe, { item: e })
},
{
id: "records",
label: "带的记录",
- value: (e) => $B(e.records),
- value: (e) => OB(e.records),
++ value: (e) => nV(e.records),
render: (e) => /* @__PURE__ */ (0, C.jsx)("span", {
className: "block min-w-28",
- children: $B(e.records) || "无个人记录"
- children: OB(e.records) || "无个人记录"
++ children: nV(e.records) || "无个人记录"
})
},
{
id: "target",
label: "接到与操作",
value: (e) => e.candidates.length,
- render: (t) => /* @__PURE__ */ (0, C.jsx)(gOe, {
- render: (t) => /* @__PURE__ */ (0, C.jsx)(bDe, {
++ render: (t) => /* @__PURE__ */ (0, C.jsx)(pOe, {
item: t,
toast: e
})
@@@ -57778,99 -56119,99 +57778,99 @@@
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
- var yOe = wP("git-compare"), bOe = wP("rotate-cw"), xOe = "暂时无法读取进度,正在重新连接…", nV = "清理失效条目", rV = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", iV = (e) => Number(e || 0).toLocaleString();
- function SOe({ scan: e }) {
- let t = e.cache ?? {
-var CDe = vP("git-compare"), wDe = vP("rotate-cw"), TDe = "暂时无法读取进度,正在重新连接…", jB = "清理失效条目", MB = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", NB = (e) => Number(e || 0).toLocaleString();
-function PB({ scan: e, partial: t = !1 }) {
++var gOe = DP("git-compare"), _Oe = DP("rotate-cw"), vOe = "暂时无法读取进度,正在重新连接…", aV = "清理失效条目", oV = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", sV = (e) => Number(e || 0).toLocaleString();
++function cV({ scan: e, partial: t = !1 }) {
+ let n = e.cache ?? {
files: 0,
bytes: 0
};
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("div", {
- className: rV,
- className: MB,
++ className: oV,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, C.jsx)("article", {
- className: wB(),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- className: Qz(),
- children: /* @__PURE__ */ (0, C.jsx)($z, {
- label: Mt[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, C.jsx)(zA, { mark: uo[e.location] ?? "database" }),
++ className: DB(),
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
+ label: jt[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, C.jsx)(BA, { mark: uo[e.location] ?? "database" }),
++ mark: /* @__PURE__ */ (0, C.jsx)(HA, { mark: uo[e.location] ?? "database" }),
aside: /* @__PURE__ */ (0, C.jsx)("span", {
className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",
children: e.online ? "可访问" : "离线,已跳过"
}),
- figure: e.online ? `${iV(e.missing)} 项` : "—",
- meta: _De(e),
- figure: e.online ? `${NB(e.missing)} 项` : "—",
- meta: xEe(e),
++ figure: e.online ? `${sV(e.missing)} 项` : "—",
++ meta: mDe(e),
wrapMeta: !0
})
}, e.location))
- }), /* @__PURE__ */ (0, C.jsxs)("div", {
- className: rV,
+ }), !t && /* @__PURE__ */ (0, C.jsxs)("div", {
- className: MB,
++ className: oV,
children: [
/* @__PURE__ */ (0, C.jsx)("article", {
- className: wB(),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- className: Qz(),
- children: /* @__PURE__ */ (0, C.jsx)($z, {
++ className: DB(),
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
label: "待永久删除",
- figure: `${iV(uB(e))} 项`,
- figure: `${NB(Rz(e))} 项`,
++ figure: `${sV(pB(e))} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, C.jsx)("article", {
- className: wB(),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- className: Qz(),
- children: /* @__PURE__ */ (0, C.jsx)($z, {
++ className: DB(),
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
label: "将标为已消失",
- figure: `${iV(e.vanish)} 项`,
- figure: `${NB(e.vanish)} 项`,
++ figure: `${sV(e.vanish)} 项`,
meta: "带个人记录,记录留着"
})
}),
/* @__PURE__ */ (0, C.jsx)("article", {
- className: wB(),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- className: Qz(),
- children: /* @__PURE__ */ (0, C.jsx)($z, {
++ className: DB(),
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
label: "空文件夹",
- figure: `${iV(e.empty)} 个`,
- figure: `${NB(e.empty)} 个`,
++ figure: `${sV(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, C.jsx)("article", {
- className: wB(),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- className: Qz(),
- children: /* @__PURE__ */ (0, C.jsx)($z, {
++ className: DB(),
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
label: "可清理的缓存",
- figure: `${iV(t.files)} 个`,
- meta: t.files ? on(t.bytes) : ""
- figure: `${NB(n.files)} 个`,
- meta: n.files ? sn(n.bytes) : ""
++ figure: `${sV(n.files)} 个`,
++ meta: n.files ? on(n.bytes) : ""
})
})
]
})] });
}
- function COe({ toast: e }) {
- let t = HB({
- queryKey: aB,
- queryFn: ({ signal: e }) => sB(e),
- start: dDe,
-function EDe({ toast: e }) {
- let t = _B({
- queryKey: Nz,
- queryFn: ({ signal: e }) => Fz(e),
- start: hEe,
++function yOe({ toast: e }) {
++ let t = GB({
++ queryKey: cB,
++ queryFn: ({ signal: e }) => uB(e),
++ start: cDe,
onFinish: (t) => {
- if (W.invalidateQueries({
- queryKey: Gz,
+ if (U.invalidateQueries({
- queryKey: _B,
++ queryKey: bB,
exact: !0
- }), W.invalidateQueries({
- queryKey: Mz,
+ }), U.invalidateQueries({
- queryKey: iB,
++ queryKey: sB,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = pB(t);
- r ? e(`已完成 ${iV(n)} 项,${iV(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
- let { done: n, left: r } = Vz(t);
- r ? e(`已完成 ${NB(n)} 项,${NB(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
++ let { done: n, left: r } = gB(t);
++ r ? e(`已完成 ${sV(n)} 项,${sV(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = HB({
- queryKey: iB,
- queryFn: ({ signal: e }) => oB(e),
- start: uDe,
- }), n = _B({
- queryKey: Mz,
- queryFn: ({ signal: e }) => Pz(e),
- start: mEe,
++ }), n = GB({
++ queryKey: sB,
++ queryFn: ({ signal: e }) => lB(e),
++ start: sDe,
onStarted: () => t.dismiss()
}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Vs({
- title: nV,
- body: gDe(e),
- confirmLabel: nV,
- title: jB,
- body: bEe(e),
- confirmLabel: jB,
++ title: aV,
++ body: pDe(e),
++ confirmLabel: aV,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), l = t.outcome, u = (e) => {
- let t = pB(e).left > 0;
- let t = Vz(e).left > 0;
++ let t = gB(e).left > 0;
return /* @__PURE__ */ (0, C.jsx)(q, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: vDe(e, on)
- children: SEe(e, sn)
++ children: hDe(e, on)
});
}, d = null, f = null;
if (l?.status === "failed") f = /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -57879,7 -56220,7 +57879,7 @@@
children: l.error || "请查看任务记录,核对已处理的文件。"
});
else if (l) f = u(l);
- else if (t.running) d = /* @__PURE__ */ (0, C.jsx)(zB, {
- else if (t.running) d = /* @__PURE__ */ (0, C.jsx)(pB, {
++ else if (t.running) d = /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: t.job?.message || "正在复核并清理失效条目…"
});
@@@ -57891,17 -56232,23 +57891,23 @@@
else if (n.query.isError && r) f = /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
title: "任务状态",
- children: xOe
- children: TDe
++ children: vOe
});
else if (r?.status === "running") {
- let e = mDe(r);
- d = /* @__PURE__ */ (0, C.jsx)(zB, {
- let e = vEe(r);
- d = /* @__PURE__ */ (0, C.jsx)(pB, {
++ let e = dDe(r);
++ d = /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: e,
value: r.completed_sources,
total: r.total_sources
- });
- } else if (r?.status === "failed") f = /* @__PURE__ */ (0, C.jsx)(q, {
- }), r.sources?.length && (f = /* @__PURE__ */ (0, C.jsx)(PB, {
++ }), r.sources?.length && (f = /* @__PURE__ */ (0, C.jsx)(cV, {
+ scan: r,
+ partial: !0
+ }));
- } else if (r?.status === "failed") f = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r.sources?.length ? /* @__PURE__ */ (0, C.jsx)(PB, {
++ } else if (r?.status === "failed") f = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r.sources?.length ? /* @__PURE__ */ (0, C.jsx)(cV, {
+ scan: r,
+ partial: !0
+ }) : null, /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "扫描失败",
children: r.error || "后台扫描失败"
@@@ -57912,13 -56259,13 +57918,13 @@@
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = pDe(r);
- let e = _Ee(r);
++ let e = uDe(r);
f = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(SOe, { scan: r }),
- /* @__PURE__ */ (0, C.jsx)(PB, { scan: r }),
++ /* @__PURE__ */ (0, C.jsx)(cV, { scan: r }),
e ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
title: "清理内容",
- children: hDe(r)
- children: yEe(r)
++ children: fDe(r)
}) : null,
/* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@@ -57926,7 -56273,7 +57932,7 @@@
variant: "danger",
...J(a),
onClick: () => c(r),
- children: a ? "正在复核并清理…" : nV
- children: a ? "正在复核并清理…" : jB
++ children: a ? "正在复核并清理…" : aV
}) : /* @__PURE__ */ (0, C.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@@ -57942,12 -56289,12 +57948,12 @@@
id: "resource-sync",
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
- children: [/* @__PURE__ */ (0, C.jsxs)(LB, {
- children: [/* @__PURE__ */ (0, C.jsxs)(dB, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(BB, {
layout: "split",
labelledBy: "resource-sync-title",
footer: /* @__PURE__ */ (0, C.jsx)(K, {
"data-resource-scan": !0,
- leadingIcon: o && !i ? bOe : yOe,
- leadingIcon: o && !i ? wDe : CDe,
++ leadingIcon: o && !i ? _Oe : gOe,
...J(i),
onClick: () => {
i || n.start.mutate();
@@@ -57955,7 -56302,7 +57961,7 @@@
children: s
}),
children: [
- /* @__PURE__ */ (0, C.jsx)(IB, {
- /* @__PURE__ */ (0, C.jsx)(uB, {
++ /* @__PURE__ */ (0, C.jsx)(zB, {
id: "resource-sync-title",
gap: "small",
children: "资源同步"
@@@ -57979,16 -56326,16 +57985,16 @@@
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
- function aV(e, t) {
-function FB(e, t) {
++function lV(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
- function oV({ section: e, label: t, icon: n, value: r, open: i }) {
-function IB({ section: e, label: t, icon: n, value: r, open: i }) {
++function uV({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
- className: wB({ interactive: !0 }),
- className: Qz({ interactive: !0 }),
++ className: DB({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, C.jsx)(TB, {
- children: /* @__PURE__ */ (0, C.jsx)($z, {
++ children: /* @__PURE__ */ (0, C.jsx)(OB, {
label: t,
icon: n,
figure: r.figure,
@@@ -57996,82 -56343,82 +58002,82 @@@
})
});
}
- var wOe = wP("square-check-big"), TOe = wP("sparkles"), EOe = wP("file-stack"), DOe = wP("file-archive"), OOe = wP("trash"), kOe = [
- mB,
- hz,
- rz
- ], AOe = () => {
- for (let e of kOe) U.invalidateQueries({
-var DDe = vP("square-check-big"), ODe = vP("sparkles"), kDe = vP("file-stack"), ADe = vP("file-archive"), jDe = vP("trash"), MDe = [
- Hz,
- UR,
- jR
-], NDe = () => {
- for (let e of MDe) W.invalidateQueries({
++var bOe = DP("square-check-big"), xOe = DP("sparkles"), SOe = DP("file-stack"), COe = DP("file-archive"), wOe = DP("trash"), TOe = [
++ _B,
++ vz,
++ oz
++], EOe = () => {
++ for (let e of TOe) U.invalidateQueries({
queryKey: e,
exact: !0
});
};
- function jOe({ toast: e, failure: t, open: n }) {
-function PDe({ toast: e, failure: t, open: n }) {
- let r = pt({
- queryKey: Hz,
- queryFn: ({ signal: e }) => Kz(e)
- }), i = pt({
- queryKey: UR,
- queryFn: ({ signal: e }) => WR(e)
- }), a = pt({
- queryKey: jR,
- queryFn: ({ signal: e }) => NR(e)
- }), o = pt({
- queryKey: Uz,
- queryFn: ({ signal: e }) => qz(e)
- }), s = pt({
- queryKey: Gz,
- queryFn: ({ signal: e }) => Jz(e)
- }), c = pt({
++function DOe({ toast: e, failure: t, open: n }) {
+ let r = ft({
- queryKey: mB,
- queryFn: ({ signal: e }) => vB(e)
++ queryKey: _B,
++ queryFn: ({ signal: e }) => xB(e)
+ }), i = ft({
- queryKey: hz,
- queryFn: ({ signal: e }) => gz(e)
++ queryKey: vz,
++ queryFn: ({ signal: e }) => yz(e)
+ }), a = ft({
- queryKey: rz,
- queryFn: ({ signal: e }) => az(e)
++ queryKey: oz,
++ queryFn: ({ signal: e }) => cz(e)
+ }), o = ft({
- queryKey: hB,
- queryFn: ({ signal: e }) => yB(e)
++ queryKey: vB,
++ queryFn: ({ signal: e }) => SB(e)
+ }), s = ft({
- queryKey: _B,
- queryFn: ({ signal: e }) => bB(e)
++ queryKey: bB,
++ queryFn: ({ signal: e }) => CB(e)
+ }), c = ft({
queryKey: kn,
queryFn: ({ signal: e }) => An(e)
}), l = (t) => e(t);
- return /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- return /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
++ return /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: kDe,
- className: NEe,
++ className: EDe,
children: [
- /* @__PURE__ */ (0, C.jsx)(oV, {
- /* @__PURE__ */ (0, C.jsx)(IB, {
++ /* @__PURE__ */ (0, C.jsx)(uV, {
section: "review",
label: "人工复核",
- icon: wOe,
- icon: DDe,
++ icon: bOe,
open: n,
- value: aV(r, SDe)
- value: FB(r, EEe)
++ value: lV(r, yDe)
}),
- /* @__PURE__ */ (0, C.jsx)(oV, {
- /* @__PURE__ */ (0, C.jsx)(IB, {
++ /* @__PURE__ */ (0, C.jsx)(uV, {
section: "quality",
label: "高清版",
- icon: TOe,
- icon: ODe,
++ icon: xOe,
open: n,
- value: aV(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
- value: FB(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
++ value: lV(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, C.jsx)(oV, {
- /* @__PURE__ */ (0, C.jsx)(IB, {
++ /* @__PURE__ */ (0, C.jsx)(uV, {
section: "duplicates",
label: "重复文件",
- icon: EOe,
- icon: kDe,
++ icon: SOe,
open: n,
- value: aV(a, (e) => Number(e.total || 0) ? {
- value: FB(a, (e) => Number(e.total || 0) ? {
++ value: lV(a, (e) => Number(e.total || 0) ? {
figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,
- meta: `可回收 ${sn(e.reclaimable || 0)}`
+ meta: `可回收 ${on(e.reclaimable || 0)}`
} : { figure: "没有重复内容" })
}),
- /* @__PURE__ */ (0, C.jsx)(oV, {
- /* @__PURE__ */ (0, C.jsx)(IB, {
++ /* @__PURE__ */ (0, C.jsx)(uV, {
section: "ads",
label: "垃圾文件",
- icon: DOe,
- icon: ADe,
++ icon: COe,
open: n,
- value: aV(o, (e) => ({
- value: FB(o, (e) => ({
++ value: lV(o, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: CDe(e)
- meta: DEe(e)
++ meta: bDe(e)
}))
}),
- /* @__PURE__ */ (0, C.jsx)(oV, {
- /* @__PURE__ */ (0, C.jsx)(IB, {
++ /* @__PURE__ */ (0, C.jsx)(uV, {
section: "trash",
label: "回收站",
- icon: OOe,
- icon: jDe,
++ icon: wOe,
open: n,
- value: aV(s, (e) => ({
- value: FB(s, (e) => ({
++ value: lV(s, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
- meta: e.total ? `占用 ${sn(e.bytes || 0)}` : ""
+ meta: e.total ? `占用 ${on(e.bytes || 0)}` : ""
}))
})
]
@@@ -58082,31 -56429,31 +58088,31 @@@
/* @__PURE__ */ (0, C.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, C.jsx)(BB, {
- children: /* @__PURE__ */ (0, C.jsx)(hB, {
++ children: /* @__PURE__ */ (0, C.jsx)(UB, {
toast: l,
monitor: !0,
- onComplete: AOe
- onComplete: NDe
++ onComplete: EOe
})
}),
/* @__PURE__ */ (0, C.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, C.jsx)(YDe, {})
- children: /* @__PURE__ */ (0, C.jsx)($Ee, {})
++ children: /* @__PURE__ */ (0, C.jsx)(KDe, {})
}),
- /* @__PURE__ */ (0, C.jsx)(sOe, {
- /* @__PURE__ */ (0, C.jsx)(dDe, {
++ /* @__PURE__ */ (0, C.jsx)(iOe, {
toast: l,
failure: t
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(nOe, {}),
- /* @__PURE__ */ (0, C.jsx)(vOe, { toast: l }),
- cB(c.data) ? /* @__PURE__ */ (0, C.jsx)(COe, { toast: e }) : null
- /* @__PURE__ */ (0, C.jsx)(oDe, {}),
- /* @__PURE__ */ (0, C.jsx)(SDe, { toast: l }),
- Iz(c.data) ? /* @__PURE__ */ (0, C.jsx)(EDe, { toast: e }) : null
++ /* @__PURE__ */ (0, C.jsx)($De, {}),
++ /* @__PURE__ */ (0, C.jsx)(hOe, { toast: l }),
++ dB(c.data) ? /* @__PURE__ */ (0, C.jsx)(yOe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/feed-new/feed-new.ts
- var sV = (e) => ["feed-new", e ?? "home"], MOe = 8, NOe = 1500;
- function POe(e, t, n) {
-var LB = (e) => ["feed-new", e ?? "home"], FDe = 8, IDe = 1500;
-function LDe(e, t, n) {
++var dV = (e) => ["feed-new", e ?? "home"], OOe = 8, kOe = 1500;
++function AOe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@@ -58117,34 -56464,34 +58123,34 @@@
setTimeout(e, n);
})]);
}
- async function FOe(e, t, n) {
-async function RDe(e, t, n) {
++async function jOe(e, t, n) {
let r = new URLSearchParams({ limit: "12" });
e && r.set("entity", String(e));
- let i = await It(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await LDe(s, FDe, IDe), {
+ let i = await Ft(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);
- return n && o.length && await POe(s, MOe, NOe), {
++ return n && o.length && await AOe(s, OOe, kOe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
- var cV = (e, t, n = !1) => ({
- queryKey: sV(e),
- queryFn: () => FOe(e, t, n),
-var RB = (e, t, n = !1) => ({
- queryKey: LB(e),
- queryFn: () => RDe(e, t, n),
++var fV = (e, t, n = !1) => ({
++ queryKey: dV(e),
++ queryFn: () => jOe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
- }), lV = (e, t) => Ft("/api/feeds/discovery", {
-}), zB = (e, t) => It("/api/feeds/discovery", {
++}), pV = (e, t) => Ft("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
- async function IOe(e) {
- U.removeQueries({ queryKey: sV(null) }), await U.fetchQuery(cV(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
-async function zDe(e) {
- W.removeQueries({ queryKey: LB(null) }), await W.fetchQuery(RB(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
++async function MOe(e) {
++ U.removeQueries({ queryKey: dV(null) }), await U.fetchQuery(fV(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
//#endregion
//#region src/react/entity-page/entity-page.ts
- var uV = [
-var BB = [
++var mV = [
"loc",
"creator",
"tag",
@@@ -58154,52 -56501,52 +58160,52 @@@
"orient",
"sort",
"dir"
- ], dV = {
-], VB = {
++], hV = {
media: "videos",
set: 0
- }, fV = (e, t) => [
-}, HB = (e, t) => [
++}, gV = (e, t) => [
"entity",
e,
t
- ], LOe = (e, t, n, r) => [
-], BDe = (e, t, n, r) => [
++], NOe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
- ], pV = (e, t, n, r) => [
-], UB = (e, t, n, r) => [
++], _V = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
- ], mV = (e) => String(e || "").split(",").filter(Boolean), ROe = (e, t) => mV(e).includes(t);
- function hV(e, t, n, r, i = 0) {
-], WB = (e) => String(e || "").split(",").filter(Boolean), VDe = (e, t) => WB(e).includes(t);
-function GB(e, t, n, r, i = 0) {
++], vV = (e) => String(e || "").split(",").filter(Boolean), POe = (e, t) => vV(e).includes(t);
++function yV(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...mV(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 uV) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...WB(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 BB) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
++ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...vV(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 mV) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
- async function gV(e, t, n, r, i, a, o) {
- let s = hV(e, t, n, r, i);
-async function KB(e, t, n, r, i, a, o) {
- let s = GB(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 It(`/api/items?${s}`, a ? { signal: a } : {});
++async function bV(e, t, n, r, i, a, o) {
++ let s = yV(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 Ft(`/api/items?${s}`, a ? { signal: a } : {});
}
- var _V = (e) => {
-var qB = (e) => {
++var xV = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = hV(e.kind, e.name, e.filters, t).toString();
- }, n = GB(e.kind, e.name, e.filters, t).toString();
++ }, n = yV(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: LOe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => gV(e.kind, e.name, e.filters, t, 0, n),
- queryKey: BDe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => KB(e.kind, e.name, e.filters, t, 0, n),
++ queryKey: NOe(e.kind, e.name, n, e.revision),
++ queryFn: ({ signal: n }) => bV(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
- }, vV = (e, t) => ({
- queryKey: fV(e, t),
-}, JB = (e, t) => ({
- queryKey: HB(e, t),
- queryFn: ({ signal: n }) => It(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
++}, SV = (e, t) => ({
++ queryKey: gV(e, t),
+ queryFn: ({ signal: n }) => Ft(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
- function zOe(e, t, n, r, i, a) {
-function HDe(e, t, n, r, i, a) {
++function FOe(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)}` : ""}`;
@@@ -58208,10 -56555,10 +58214,10 @@@
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 yV = (e, t, n, r) => ({
- queryKey: pV(e, t, n, r),
-var YB = (e, t, n, r) => ({
- queryKey: UB(e, t, n, r),
++var CV = (e, t, n, r) => ({
++ queryKey: _V(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Ft(zOe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
- let a = await It(HDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
++ let a = await Ft(FOe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@@ -58224,8 -56571,8 +58230,8 @@@
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
- }), bV = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
- async function BOe(e) {
-}), XB = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function UDe(e) {
++}), wV = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
++async function IOe(e) {
let { kind: t, name: n } = e;
for (let e of [
"entity",
@@@ -58236,26 -56583,26 +58242,26 @@@
t,
n
] });
- e.resolvedEntity?.id && U.setQueryData(fV(t, n), e.resolvedEntity), await Promise.all([
- U.fetchQuery(vV(t, n)).then((t) => !t || t.error || !t.id ? null : (U.removeQueries({ queryKey: sV(Number(t.id)) }), U.fetchQuery(cV(Number(t.id), e.helpers.feedRowHtml, !0)))),
- U.fetchQuery(_V(e)),
- U.fetchInfiniteQuery(yV(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(yV(t, n, e.media.set, "")) : null
- e.resolvedEntity?.id && W.setQueryData(HB(t, n), e.resolvedEntity), await Promise.all([
- W.fetchQuery(JB(t, n)).then((t) => !t || t.error || !t.id ? null : (W.removeQueries({ queryKey: LB(Number(t.id)) }), W.fetchQuery(RB(Number(t.id), e.helpers.feedRowHtml, !0)))),
- W.fetchQuery(qB(e)),
- W.fetchInfiniteQuery(YB(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? W.fetchInfiniteQuery(YB(t, n, e.media.set, "")) : null
++ e.resolvedEntity?.id && U.setQueryData(gV(t, n), e.resolvedEntity), await Promise.all([
++ U.fetchQuery(SV(t, n)).then((t) => !t || t.error || !t.id ? null : (U.removeQueries({ queryKey: dV(Number(t.id)) }), U.fetchQuery(fV(Number(t.id), e.helpers.feedRowHtml, !0)))),
++ U.fetchQuery(xV(e)),
++ U.fetchInfiniteQuery(CV(t, n, 0, "")),
++ e.media.media === "photos" && e.media.set ? U.fetchInfiniteQuery(CV(t, n, e.media.set, "")) : null
]);
}
//#endregion
//#region src/identity-filter.ts
- var xV = [
-var ZB = [
++var TV = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
- ], SV = "mb-4 flex flex-wrap gap-2";
- function VOe(e) {
- let t = xV.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${SV}">${xV.map(([e, n]) => xo({
-], QB = "mb-4 flex flex-wrap gap-2";
-function WDe(e) {
- let t = ZB.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${QB}">${ZB.map(([e, n]) => xo({
++], EV = "mb-4 flex flex-wrap gap-2";
++function LOe(e) {
++ let t = TV.some(([t]) => t === e) ? e : "all";
++ return `<div class="peach-react"><div aria-label="身份分类" class="${EV}">${TV.map(([e, n]) => xo({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@@ -58264,43 -56611,43 +58270,43 @@@
}
//#endregion
//#region src/react/follow/online-vocab.ts
- var HOe = "/api/follow/authors", UOe = "/api/follow/tags", WOe = (e) => [
-var GDe = "/api/follow/authors", KDe = "/api/follow/tags", qDe = (e) => [
++var ROe = "/api/follow/authors", zOe = "/api/follow/tags", BOe = (e) => [
"follow",
"authors",
e
- ], GOe = (e, t) => [
-], JDe = (e, t) => [
++], VOe = (e, t) => [
"follow",
"tags",
e,
t
];
- function KOe(e, t, n) {
-function YDe(e, t, n) {
++function HOe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${HOe}?${r}`;
- return e && r.set("q", e), `${GDe}?${r}`;
++ return e && r.set("q", e), `${ROe}?${r}`;
}
- function qOe(e, t, n, r) {
-function XDe(e, t, n, r) {
++function UOe(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), `${UOe}?${i}`;
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${KDe}?${i}`;
++ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${zOe}?${i}`;
}
- var JOe = (e, t, n, r) => yn(KOe(e, t, n), r), YOe = (e, t, n, r, i) => yn(qOe(e, t, n, r), i), XOe = "/api/index", CV = {
-var ZDe = (e, t, n, r) => H(YDe(e, t, n), r), QDe = (e, t, n, r, i) => H(XDe(e, t, n, r), i), $De = "/api/index", $B = {
++var WOe = (e, t, n, r) => yn(HOe(e, t, n), r), GOe = (e, t, n, r, i) => yn(UOe(e, t, n, r), i), KOe = "/api/index", DV = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
tags: "标签"
- }, ZOe = {
-}, eOe = {
++}, qOe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
- }, wV = [
-}, eV = [
++}, OV = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@@ -58310,31 -56657,31 +58316,31 @@@
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
- ], TV = [
-], tV = [
++], kV = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
- ], EV = {
-], nV = {
++], AV = {
people: 120,
tags: 180
- }, DV = (e) => e !== "tags", OV = (e) => e === "studios" || e === "agencies";
- function kV(e) {
- if (e.kind === "creators" && e.category === "animation") return kV({
-}, rV = (e) => e !== "tags", iV = (e) => e === "studios" || e === "agencies";
-function aV(e) {
- if (e.kind === "creators" && e.category === "animation") return aV({
++}, jV = (e) => e !== "tags", MV = (e) => e === "studios" || e === "agencies";
++function NV(e) {
++ if (e.kind === "creators" && e.category === "animation") return NV({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? TV : wV : e.kind === "performers" && t === "local" ? xV : []).some(([t]) => t === e.category);
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? tV : eV : e.kind === "performers" && t === "local" ? ZB : []).some(([t]) => t === e.category);
++ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? kV : OV : e.kind === "performers" && t === "local" ? TV : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
- function AV(e) {
-function oV(e) {
++function PV(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@@ -58354,54 -56701,54 +58360,54 @@@
...i && i !== "all" ? { category: i } : {}
};
}
- var jV = (e, t, n = "all") => [
-var sV = (e, t, n = "all") => [
++var FV = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
- function MV(e, t, n, r, i) {
-function cV(e, t, n, r, i) {
++function IV(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), `${XOe}?${a}`;
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${$De}?${a}`;
++ return t && a.set("q", t), n !== "all" && a.set("category", n), `${KOe}?${a}`;
}
- function NV(e) {
- let t = e.what === "people" || e.what === "online-authors" ? EV.people : EV.tags, n = {
-function lV(e) {
- let t = e.what === "people" || e.what === "online-authors" ? nV.people : nV.tags, n = {
++function LV(e) {
++ let t = e.what === "people" || e.what === "online-authors" ? AV.people : AV.tags, n = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...n,
- queryKey: jV(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => yn(MV(e.kind, e.q, e.category || "all", t, n), r)
- queryKey: sV(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: n, signal: r }) => H(cV(e.kind, e.q, e.category || "all", t, n), r)
++ queryKey: FV(e.kind, e.q, e.category || "all"),
++ queryFn: ({ pageParam: n, signal: r }) => yn(IV(e.kind, e.q, e.category || "all", t, n), r)
};
case "tags": return {
...n,
- queryKey: jV("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => yn(MV("tags", e.q, e.category, t, n), r)
- queryKey: sV("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => H(cV("tags", e.q, e.category, t, n), r)
++ queryKey: FV("tags", e.q, e.category),
++ queryFn: ({ pageParam: n, signal: r }) => yn(IV("tags", e.q, e.category, t, n), r)
};
case "online-authors": return {
...n,
- queryKey: WOe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => JOe(e.q, t, n, r)
- queryKey: qDe(e.q),
- queryFn: ({ pageParam: n, signal: r }) => ZDe(e.q, t, n, r)
++ queryKey: BOe(e.q),
++ queryFn: ({ pageParam: n, signal: r }) => WOe(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: GOe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => YOe(e.q, e.category, t, n, r)
- queryKey: JDe(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => QDe(e.q, e.category, t, n, r)
++ queryKey: VOe(e.q, e.category),
++ queryFn: ({ pageParam: n, signal: r }) => GOe(e.q, e.category, t, n, r)
};
}
}
- async function QOe(e, t) {
- let n = NV(AV(kV(e)));
-async function tOe(e, t) {
- let n = lV(oV(aV(e)));
- W.removeQueries({
++async function JOe(e, t) {
++ let n = LV(PV(NV(e)));
+ U.removeQueries({
queryKey: n.queryKey,
exact: !0
- }), await W.fetchInfiniteQuery({
+ }), await U.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
pageParam: e,
@@@ -58411,21 -56758,21 +58417,21 @@@
getNextPageParam: n.getNextPageParam
});
}
- var $Oe = (e) => e ? e.pages.flatMap((e) => e.items) : [], eke = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, PV = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", tke = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, nke = {
-var nOe = (e) => e ? e.pages.flatMap((e) => e.items) : [], rOe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, uV = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", iOe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, aOe = {
++var YOe = (e) => e ? e.pages.flatMap((e) => e.items) : [], XOe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, RV = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", ZOe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, QOe = {
numeric: !0,
sensitivity: "base"
};
- function rke(e, t) {
-function oOe(e, t) {
++function $Oe(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", nke))) {
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", aOe))) {
- let e = dn(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
++ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", QOe))) {
+ let e = un(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"));
}
//#endregion
//#region src/react/index/index-people.tsx
- function FV({ html: e, face: t, company: n, big: r }) {
-function dV({ html: e, face: t, company: n, big: r }) {
++function zV({ html: e, face: t, company: n, big: r }) {
let i = (0, S.useRef)(null);
return (0, S.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@@ -58437,18 -56784,18 +58443,18 @@@
dangerouslySetInnerHTML: { __html: e }
});
}
- var ike = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", ake = wP("rss");
- function IV({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
-var sOe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", cOe = vP("rss");
-function fV({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
++var eke = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", tke = DP("rss");
++function BV({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: _A({
- className: gA({
++ className: yA({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${ike} ${n ? "items-stretch text-left" : "items-center text-center"}`
- className: `${sOe} ${n ? "items-stretch text-left" : "items-center text-center"}`
++ className: `${eke} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@@ -58457,10 -56804,10 +58463,10 @@@
role: "img",
"aria-label": "已订阅新作",
className: "absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, C.jsx)(mA, {
- children: /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "blue",
- children: /* @__PURE__ */ (0, C.jsx)(ake, {})
- children: /* @__PURE__ */ (0, C.jsx)(cOe, {})
++ children: /* @__PURE__ */ (0, C.jsx)(tke, {})
})
}) : null,
/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -58476,24 -56823,24 +58482,24 @@@
]
});
}
- function LV({ kind: e, items: t, layout: n, props: r }) {
- let i = OV(e), a = n === "big";
-function pV({ kind: e, items: t, layout: n, props: r }) {
- let i = iV(e), a = n === "big";
++function VV({ kind: e, items: t, layout: n, props: r }) {
++ let i = MV(e), a = n === "big";
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-index-grid": "",
"data-layout": n,
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || ZOe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, C.jsx)(IV, {
- let n = t.entity_kind || eOe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, C.jsx)(fV, {
++ let n = t.entity_kind || qOe[e], o = r.personAvatar(t, n, a);
++ return /* @__PURE__ */ (0, C.jsx)(BV, {
"data-k": t.k,
"data-kind": n,
name: t.k,
- readout: `${tke(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
- readout: `${iOe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
++ readout: `${ZOe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, C.jsx)(FV, {
- children: /* @__PURE__ */ (0, C.jsx)(dV, {
++ children: /* @__PURE__ */ (0, C.jsx)(zV, {
html: o.html,
face: o.face,
company: i,
@@@ -58503,14 -56850,14 +58509,14 @@@
})
});
}
- function oke({ items: e, layout: t, props: n }) {
-function lOe({ items: e, layout: t, props: n }) {
++function nke({ items: e, layout: t, props: n }) {
let r = t === "big";
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(IV, {
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(fV, {
++ children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(BV, {
"data-follow-author": e.key,
"data-kind": "performer",
name: e.k,
@@@ -58519,7 -56866,7 +58525,7 @@@
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, C.jsx)(FV, {
- children: /* @__PURE__ */ (0, C.jsx)(dV, {
++ children: /* @__PURE__ */ (0, C.jsx)(zV, {
html: n.authorAvatar(e),
company: !1,
big: r
@@@ -58529,8 -56876,8 +58535,8 @@@
}
//#endregion
//#region src/board-tooltip.ts
- var RV = (e) => e.replace(/\s+/g, " ").trim();
- function zV(e) {
-var mV = (e) => e.replace(/\s+/g, " ").trim();
-function hV(e) {
++var HV = (e) => e.replace(/\s+/g, " ").trim();
++function UV(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@@ -58538,12 -56885,12 +58544,12 @@@
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 RV(n);
- return mV(n);
++ return HV(n);
}
- function BV(e) {
-function gV(e) {
++function WV(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && zV(e) && !VV(e)) {
- if (e.matches("a") && hV(e) && !_V(e)) {
++ if (e.matches("a") && UV(e) && !GV(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@@ -58556,7 -56903,7 +58562,7 @@@
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 VV(e) {
-function _V(e) {
++function GV(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);
@@@ -58567,19 -56914,19 +58573,19 @@@
}
return !1;
}
- function ske() {
-function uOe() {
++function rke() {
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 = (t) => {
- let n = BV(t), r = e.getBoundingClientRect();
- let n = gV(t), r = e.getBoundingClientRect();
++ let n = WV(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`);
}, o = () => {
clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null;
}, s = (s, c) => {
if (!(s instanceof Element)) return;
let l = s.closest("[title]");
- (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (zV(l) !== RV(n) || VV(l)) && (i = setTimeout(() => {
- t === l && l.isConnected && BV(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
- (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (hV(l) !== mV(n) || _V(l)) && (i = setTimeout(() => {
- t === l && l.isConnected && gV(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
++ (!t?.contains(s) || l && !l.contains(t)) && l && !l.closest(".vjs-control") && l.title.trim() && (o(), t = l, n = l.title, r = l.getAttribute("aria-describedby"), l.removeAttribute("title"), (UV(l) !== HV(n) || GV(l)) && (i = setTimeout(() => {
++ t === l && l.isConnected && WV(l) && ((l.closest("dialog[open]") ?? document.body).append(e), e.textContent = n, e.hidden = !1, e.showPopover(), a(l), l.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" ")));
}, c)));
};
document.addEventListener("pointerover", (e) => s(e.target, 400)), document.addEventListener("pointerout", (e) => {
@@@ -58588,33 -56935,33 +58594,33 @@@
e.key === "Escape" && o();
}), document.addEventListener("scroll", (n) => {
if (!t || !io(n, t)) return;
- let r = BV(t);
- let r = gV(t);
++ let r = WV(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && a(t) : o();
}, !0), window.addEventListener("resize", o);
}
//#endregion
//#region src/board-controls.ts
- function HV(e) {
-function vV(e) {
++function KV(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 UV = /* @__PURE__ */ new WeakSet();
- function cke() {
- if (UV.has(document)) return;
- UV.add(document);
-var yV = /* @__PURE__ */ new WeakSet();
-function dOe() {
- if (yV.has(document)) return;
- yV.add(document);
++var qV = /* @__PURE__ */ new WeakSet();
++function ike() {
++ if (qV.has(document)) return;
++ qV.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(HV), uke(e), lke(e);
- e.querySelectorAll("input[type=range]").forEach(vV), pOe(e), fOe(e);
++ e.querySelectorAll("input[type=range]").forEach(KV), oke(e), ake(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]") && HV(t), e(t));
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && vV(t), e(t));
++ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && KV(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && HV(e.target);
- }), ske();
- e.target instanceof HTMLInputElement && e.target.type === "range" && vV(e.target);
- }), uOe();
++ e.target instanceof HTMLInputElement && e.target.type === "range" && KV(e.target);
++ }), rke();
}
- function lke(e) {
-function fOe(e) {
++function ake(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;
@@@ -58638,15 -56985,15 +58644,15 @@@
r.observe(e);
});
}
- var WV = /* @__PURE__ */ new Map();
- function uke(e) {
-var bV = /* @__PURE__ */ new Map();
-function pOe(e) {
++var JV = /* @__PURE__ */ new Map();
++function oke(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 = WV.get(n) ?? null, i = () => {
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = bV.get(n) ?? null, i = () => {
++ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = JV.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@@ -58655,7 -57002,7 +58661,7 @@@
w: i.offsetWidth,
h: i.offsetHeight
};
- ws(t, r, a, "x"), r = a, WV.set(n, a);
- ws(t, r, a, "x"), r = a, bV.set(n, a);
++ ws(t, r, a, "x"), r = a, JV.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@@ -58672,8 -57019,8 +58678,8 @@@
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
- var GV = "/vendor/swiper/14.3.0/", KV = null, dke = () => KV ??= Promise.all([new Promise((e, t) => {
- let n = `${GV}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
-var xV = "/vendor/swiper/14.3.0/", SV = null, mOe = () => SV ??= Promise.all([new Promise((e, t) => {
- let n = `${xV}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
++var YV = "/vendor/swiper/14.3.0/", XV = null, ske = () => XV ??= Promise.all([new Promise((e, t) => {
++ let n = `${YV}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@@ -58687,11 -57034,11 +58693,11 @@@
return;
}
let r = document.createElement("script");
- r.src = `${GV}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
- r.src = `${xV}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
++ r.src = `${YV}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 KV = null, e;
- throw SV = null, e;
++ throw XV = null, e;
});
- function fke(e, t, n) {
-function hOe(e, t, n) {
++function cke(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);
@@@ -58712,47 -57059,47 +58718,47 @@@
}
};
}
- var qV = (e) => {
-var CV = (e) => {
++var ZV = (e) => {
let t = Number(e) || 0;
- return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : sn(t)).replace(" ", "\xA0") : "大小未知";
-}, gOe = (e) => e.asset?.name || e.name || "未命名图片";
-function _Oe(e, t) {
+ return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : on(t)).replace(" ", "\xA0") : "大小未知";
- }, pke = (e) => e.asset?.name || e.name || "未命名图片";
- function mke(e, t) {
++}, lke = (e) => e.asset?.name || e.name || "未命名图片";
++function uke(e, t) {
let n = e.asset;
- if (n) return [fn[n.location ?? ""] || n.location || "来源未知", qV(n.size)].join(" · ");
- if (n) return [pn[n.location ?? ""] || n.location || "来源未知", CV(n.size)].join(" · ");
++ if (n) return [fn[n.location ?? ""] || n.location || "来源未知", ZV(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? qV(e.size) : ""
- e.size ? CV(e.size) : ""
++ e.size ? ZV(e.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
- var JV = null, YV = null, hke = 0;
- function gke() {
- return (!YV || !JV?.isConnected) && (YV?.unmount(), JV = document.createElement("div"), JV.className = "peach-react", JV.dataset.photoLightboxHost = "", document.body.append(JV), YV = (0, gt.createRoot)(JV)), YV;
-var wV = null, TV = null, vOe = 0;
-function yOe() {
- return (!TV || !wV?.isConnected) && (TV?.unmount(), wV = document.createElement("div"), wV.className = "peach-react", wV.dataset.photoLightboxHost = "", document.body.append(wV), TV = (0, _t.createRoot)(wV)), TV;
++var QV = null, $V = null, dke = 0;
++function fke() {
++ return (!$V || !QV?.isConnected) && ($V?.unmount(), QV = document.createElement("div"), QV.className = "peach-react", QV.dataset.photoLightboxHost = "", document.body.append(QV), $V = (0, gt.createRoot)(QV)), $V;
}
- async function XV(e, t, n) {
-async function EV(e, t, n) {
++async function eH(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await dke();
- r = await mOe();
++ r = await ske();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = gke();
- (0, ht.flushSync)(() => i.render(/* @__PURE__ */ (0, C.jsx)(_ke, {
- let i = yOe();
- (0, gt.flushSync)(() => i.render(/* @__PURE__ */ (0, C.jsx)(bOe, {
++ let i = fke();
++ (0, ht.flushSync)(() => i.render(/* @__PURE__ */ (0, C.jsx)(pke, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++hke)));
- }, ++vOe)));
++ }, ++dke)));
}
- function ZV() {
- YV && (0, ht.flushSync)(() => YV.render(null));
-function DV() {
- TV && (0, gt.flushSync)(() => TV.render(null));
++function tH() {
++ $V && (0, ht.flushSync)(() => $V.render(null));
}
- function _ke({ slides: e, index: t, Swiper: n, host: r }) {
-function bOe({ slides: e, index: t, Swiper: n, host: r }) {
++function pke({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, S.useId)(), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = (0, S.useRef)(null), l = (0, S.useRef)(null), u = (0, S.useRef)(null), d = (0, S.useRef)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = (0, S.useRef)(null), [_, v] = (0, S.useState)(t), [y, b] = (0, S.useState)(100), [x, w] = (0, S.useState)({}), [T, E] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [k, A] = (0, S.useState)(!1), [j, M] = (0, S.useState)({
at: t,
text: ""
@@@ -58795,7 -57142,7 +58801,7 @@@
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = fke(e, a, b);
- i(t, 0), h.current = hOe(e, a, b);
++ i(t, 0), h.current = cke(e, a, b);
let m = Is(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();
};
@@@ -58812,13 -57159,13 +58818,13 @@@
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : ZV());
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : DV());
++ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : tH());
};
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, S.useLayoutEffect)(() => {
- m.current && HV(m.current);
- m.current && vV(m.current);
++ m.current && KV(m.current);
}, [y]);
let N = e[_], P = N.asset ?? null, F = async (e) => {
if (!P || !r || e.getAttribute("aria-busy") === "true") return;
@@@ -58849,18 -57196,18 +58855,18 @@@
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), ZV();
- e.preventDefault(), DV();
++ e.preventDefault(), tH();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && ZV();
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && DV();
++ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && tH();
},
children: [
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: ZV,
- onClick: DV,
++ onClick: tH,
dangerouslySetInnerHTML: { __html: z("x") }
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -58996,10 -57343,10 +59002,10 @@@
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: pke(N)
- children: gOe(N)
++ children: lke(N)
}, _), /* @__PURE__ */ (0, C.jsx)("span", {
"data-photo-detail-meta": "",
- children: mke(N, x[_])
- children: _Oe(N, x[_])
++ children: uke(N, x[_])
})]
}),
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -59038,40 -57385,40 +59044,40 @@@
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
- function vke(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, C.jsx)(yke, {
-function xOe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, C.jsx)(SOe, {
++function mke(e) {
++ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, C.jsx)(hke, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, C.jsx)(bke, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, C.jsx)(Cke, {
- }) : e.view === "videos" ? /* @__PURE__ */ (0, C.jsx)(COe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, C.jsx)(EOe, {
++ }) : e.view === "videos" ? /* @__PURE__ */ (0, C.jsx)(gke, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, C.jsx)(yke, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
- var QV = EV.people;
- function yke({ roster: e, props: t }) {
-var OV = nV.people;
-function SOe({ roster: e, props: t }) {
++var nH = AV.people;
++function hke({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, S.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, S.useState)(QV), s = (0, S.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, S.useCallback)(async () => {
- o((e) => e + QV);
- }), [n, r]), [a, o] = (0, S.useState)(OV), s = (0, S.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, S.useCallback)(async () => {
- o((e) => e + OV);
++ }), [n, r]), [a, o] = (0, S.useState)(nH), s = (0, S.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, S.useCallback)(async () => {
++ o((e) => e + nH);
}, []);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(LV, {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(pV, {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(VV, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, C.jsx)(ez, {
- }), a < e.people.length ? /* @__PURE__ */ (0, C.jsx)(OR, {
++ }), a < e.people.length ? /* @__PURE__ */ (0, C.jsx)(rz, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
- function bke(e) {
- let t = _I(!e.items, e.skeletonHtml);
-function COe(e) {
- let t = IF(!e.items, e.skeletonHtml);
++function gke(e) {
++ let t = bI(!e.items, e.skeletonHtml);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-entity-grid": "",
"data-grid-reveal": t.fading ? "" : void 0,
- children: [t.layer, e.items ? /* @__PURE__ */ (0, C.jsx)($R, {
- children: [t.layer, e.items ? /* @__PURE__ */ (0, C.jsx)(DR, {
++ children: [t.layer, e.items ? /* @__PURE__ */ (0, C.jsx)(nz, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@@ -59091,33 -57438,33 +59097,33 @@@
}) : null]
});
}
- var xke = (e) => Array.from({ length: e.n }, (t, n) => ({
-var wOe = (e) => Array.from({ length: e.n }, (t, n) => ({
++var _ke = (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 || "官方样张"
- })), $V = (e) => e.sample === !0, eH = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, tH = (e) => $V(e) ? `/sample-thumb?${eH(e)}` : `/photo-thumb?id=${e.id}`, Ske = (e) => $V(e) ? {
- src: `/sample-image?${eH(e)}`,
- thumb: tH(e),
-})), kV = (e) => e.sample === !0, AV = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, jV = (e) => kV(e) ? `/sample-thumb?${AV(e)}` : `/photo-thumb?id=${e.id}`, TOe = (e) => kV(e) ? {
- src: `/sample-image?${AV(e)}`,
- thumb: jV(e),
++})), rH = (e) => e.sample === !0, iH = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, aH = (e) => rH(e) ? `/sample-thumb?${iH(e)}` : `/photo-thumb?id=${e.id}`, vke = (e) => rH(e) ? {
++ src: `/sample-image?${iH(e)}`,
++ thumb: aH(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: tH(e),
- thumb: jV(e),
++ thumb: aH(e),
name: e.name || "",
asset: e
};
- function Cke({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, S.useMemo)(() => [...e.codeSets.flatMap(xke), ...e.items], [e]), [s, c] = (0, S.useState)(() => /* @__PURE__ */ new Set()), l = (0, S.useCallback)((e) => c((t) => {
-function EOe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, S.useMemo)(() => [...e.codeSets.flatMap(wOe), ...e.items], [e]), [s, c] = (0, S.useState)(() => /* @__PURE__ */ new Set()), l = (0, S.useCallback)((e) => c((t) => {
++function yke({ photos: e, props: t }) {
++ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, S.useMemo)(() => [...e.codeSets.flatMap(_ke), ...e.items], [e]), [s, c] = (0, S.useState)(() => /* @__PURE__ */ new Set()), l = (0, S.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, S.useCallback)((e) => {
- XV(e, o.map(Ske), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, C.jsx)(wke, {
- EV(e, o.map(TOe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, C.jsx)(DOe, {
++ eH(e, o.map(vke), { revealSource: i.revealSource });
++ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, C.jsx)(bke, {
item: e,
index: t,
lost: s.has(t),
@@@ -59135,7 -57482,7 +59141,7 @@@
};
}), h = p;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(nH, {
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(MV, {
++ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(oH, {
label: e.code,
title: e.name,
meta: [
@@@ -59147,7 -57494,7 +59153,7 @@@
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, C.jsx)(nH, {
- m.length && e.total ? /* @__PURE__ */ (0, C.jsx)(MV, {
++ m.length && e.total ? /* @__PURE__ */ (0, C.jsx)(oH, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@@ -59156,14 -57503,14 +59162,14 @@@
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, C.jsx)(ez, {
- e.hasMore ? /* @__PURE__ */ (0, C.jsx)(OR, {
++ e.hasMore ? /* @__PURE__ */ (0, C.jsx)(rz, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
- function nH({ label: e, title: t, meta: n }) {
-function MV({ label: e, title: t, meta: n }) {
++function oH({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-photo-group": "",
children: [
@@@ -59180,7 -57527,7 +59186,7 @@@
]
});
}
- function wke({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
-function DOe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
++function bke({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -59189,7 -57536,7 +59195,7 @@@
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, C.jsx)("img", {
- src: tH(e),
- src: jV(e),
++ src: aH(e),
alt: a,
loading: "lazy",
decoding: "async",
@@@ -59200,26 -57547,26 +59206,26 @@@
}
//#endregion
//#region src/react/follow-feed/follow-card.tsx
- var Tke = (e) => Number(e) > 0;
- function rH({ name: e, actions: t, children: n, ...r }) {
-var OOe = (e) => Number(e) > 0;
-function NV({ name: e, actions: t, children: n, ...r }) {
++var xke = (e) => Number(e) > 0;
++function sH({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, C.jsx)("a", {
...r,
- href: Wt("creator", e),
+ href: Ut("creator", e),
onClick: (n) => {
n.stopPropagation(), !(n.button || n.ctrlKey || n.metaKey || n.shiftKey || n.altKey) && (n.preventDefault(), t.openAuthor(e));
},
children: n
});
}
- var iH = ({ provider: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var PV = ({ provider: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var cH = ({ provider: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: JF(e) }
- dangerouslySetInnerHTML: { __html: pF(e) }
++ dangerouslySetInnerHTML: { __html: ZF(e) }
});
- function Eke({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
-function kOe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
++function Ske({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(!1), [d, f] = (0, S.useState)(null);
return (0, S.useEffect)(() => {
c(!1);
- }, [o]), s ? /* @__PURE__ */ (0, C.jsx)(iH, { provider: i }) : /* @__PURE__ */ (0, C.jsx)("img", {
- }, [o]), s ? /* @__PURE__ */ (0, C.jsx)(PV, { provider: i }) : /* @__PURE__ */ (0, C.jsx)("img", {
++ }, [o]), s ? /* @__PURE__ */ (0, C.jsx)(cH, { provider: i }) : /* @__PURE__ */ (0, C.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@@ -59238,8 -57585,8 +59244,8 @@@
} : void 0
});
}
- function Dke(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = bi(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) => TSe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Si(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = wi({
-function AOe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = bi(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) => Sxe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Si(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = wi({
++function Cke(e) {
++ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = bi(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) => SSe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? Si(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = wi({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@@ -59247,7 -57594,7 +59253,7 @@@
limit: 9
}), w = (0, S.useRef)(x.faces);
w.current = x.faces;
- let T = kI({
- let T = JF({
++ let T = MI({
load: async () => w.current,
canFlip: () => w.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@@ -59255,7 -57602,7 +59261,7 @@@
E.current = T.onPointerLeave;
let D = (0, S.useCallback)((e) => {
e && (e._stopHover = () => E.current());
- }, []), O = $F(u, n, i), k = YF(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = nI(u, i), N = tI(t, u), P = u.status === "saved", F = (e) => {
- }, []), O = vF(u, n, i), k = mF(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = xF(u, i), N = bF(t, u), P = u.status === "saved", F = (e) => {
++ }, []), O = nI(u, n, i), k = QF(u), A = u.resource_provider || u.provider, j = (u.tags || []).slice(0, 3), M = aI(u, i), N = iI(t, u), P = u.status === "saved", F = (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));
}, I = (e, t) => {
e.stopPropagation(), t();
@@@ -59270,7 -57617,7 +59276,7 @@@
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: F,
- onMouseDown: xI,
- onMouseDown: BF,
++ onMouseDown: wI,
onMouseEnter: T.onPointerEnter,
onMouseLeave: T.onPointerLeave,
children: [
@@@ -59284,7 -57631,7 +59290,7 @@@
}), /* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, C.jsx)(Eke, {
- p ? /* @__PURE__ */ (0, C.jsx)(kOe, {
++ p ? /* @__PURE__ */ (0, C.jsx)(Ske, {
src: p,
fallback: m,
width: _?.width,
@@@ -59292,7 -57639,7 +59298,7 @@@
provider: A,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, C.jsx)(iH, { provider: A }),
- }, p) : /* @__PURE__ */ (0, C.jsx)(PV, { provider: A }),
++ }, p) : /* @__PURE__ */ (0, C.jsx)(cH, { provider: A }),
x.faces.length > 1 ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-mix-faces": "",
hidden: !T.faces.length,
@@@ -59312,7 -57659,7 +59318,7 @@@
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: JF(u.provider, u.provider_label) }
- dangerouslySetInnerHTML: { __html: pF(u.provider, u.provider_label) }
++ dangerouslySetInnerHTML: { __html: ZF(u.provider, u.provider_label) }
}), N ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: N }
@@@ -59325,9 -57672,9 +59331,9 @@@
},
dangerouslySetInnerHTML: { __html: z("check") }
}) : null,
- Tke(u.duration) ? /* @__PURE__ */ (0, C.jsx)("span", {
- OOe(u.duration) ? /* @__PURE__ */ (0, C.jsx)("span", {
++ xke(u.duration) ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-duration": "",
- children: an(u.duration)
+ children: rn(u.duration)
}) : null,
o ? null : /* @__PURE__ */ (0, C.jsxs)("div", {
"data-follow-corner": "",
@@@ -59397,7 -57744,7 +59403,7 @@@
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-meta": "",
children: [
- O.entityName ? /* @__PURE__ */ (0, C.jsx)(rH, {
- O.entityName ? /* @__PURE__ */ (0, C.jsx)(NV, {
++ O.entityName ? /* @__PURE__ */ (0, C.jsx)(sH, {
name: O.entityName,
actions: l,
"data-media-avatar": "",
@@@ -59416,12 -57763,12 +59422,12 @@@
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: eI(t, u) + B(k) }
- dangerouslySetInnerHTML: { __html: yF(t, u) + B(k) }
++ dangerouslySetInnerHTML: { __html: rI(t, u) + B(k) }
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-follow-byline": "",
children: [
- O.entityName ? /* @__PURE__ */ (0, C.jsx)(rH, {
- O.entityName ? /* @__PURE__ */ (0, C.jsx)(NV, {
++ O.entityName ? /* @__PURE__ */ (0, C.jsx)(sH, {
name: O.entityName,
actions: l,
"data-follow-author": "",
@@@ -59434,8 -57781,8 +59440,8 @@@
}),
/* @__PURE__ */ (0, C.jsx)("time", {
dateTime: u.published_at || "",
- title: iI(u),
- children: wSe(u)
- title: CF(u),
- children: xxe(u)
++ title: sI(u),
++ children: xSe(u)
}),
O.credited ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-credit": "",
@@@ -59470,10 -57817,10 +59476,10 @@@
]
});
}
- var aH = (0, S.memo)(Dke);
-var FV = (0, S.memo)(AOe);
++var lH = (0, S.memo)(Cke);
//#endregion
//#region src/react/components/use-masonry-grid.ts
- function Oke(e, t) {
-function jOe(e, t) {
++function wke(e, t) {
let n = (0, S.useRef)(null);
return (0, S.useLayoutEffect)(() => {
let t = n.current;
@@@ -59509,10 -57856,10 +59515,10 @@@
}
//#endregion
//#region src/react/follow-feed/follow-feed-page.tsx
- var oH = () => /* @__PURE__ */ (0, C.jsx)("span", {
-var IV = () => /* @__PURE__ */ (0, C.jsx)("span", {
++var uH = () => /* @__PURE__ */ (0, C.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
- }), kke = wP("settings"), sH = wP("chevron-down"), Ake = wP("history"), jke = [[
-}), MOe = vP("settings"), LV = vP("chevron-down"), NOe = vP("history"), POe = [[
++}), Tke = DP("settings"), dH = DP("chevron-down"), Eke = DP("history"), Dke = [[
"fixed",
"固定比例",
"layout-grid"
@@@ -59521,7 -57868,7 +59527,7 @@@
"瀑布流",
"columns-2"
]];
- function Mke(e, t, n) {
-function FOe(e, t, n) {
++function Oke(e, t, n) {
return (0, S.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) => {
@@@ -59569,15 -57916,15 +59575,15 @@@
n
]);
}
- function Nke(e) {
-function IOe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = si(t, r), o = ht(a), s = pt({
++function kke(e) {
+ let { view: t, seed: n, revision: r, actions: i } = e, a = si(t, r), o = mt(a), s = ft({
queryKey: ci,
queryFn: ({ signal: e }) => li(e)
}), c = (0, S.useMemo)(() => di(o.data), [o.data]), l = (0, S.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, S.useMemo)(() => ({
sources: c?.sources || [],
aliases: c?.author_aliases || [],
credentials: l
- }), [c, l]), d = Mke(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, S.useMemo)(() => ({
- }), [c, l]), d = FOe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, S.useMemo)(() => ({
++ }), [c, l]), d = Oke(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, S.useMemo)(() => ({
tags: Rc(d.visible.flatMap(pi).map((e) => ({ tags: e.tags || [] }))),
providers: [...d.providers].map(([e, t]) => [
e,
@@@ -59603,11 -57950,11 +59609,11 @@@
m,
i
]);
- let h = Fke(e, !!c);
- let h = ROe(e, !!c);
++ let h = jke(e, !!c);
if (!c) return o.isError ? /* @__PURE__ */ (0, C.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, C.jsx)(cH, { onManage: i.openManage }), /* @__PURE__ */ (0, C.jsx)(vI, {
- children: [/* @__PURE__ */ (0, C.jsx)(RV, { onManage: i.openManage }), /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(o.error),
++ children: [/* @__PURE__ */ (0, C.jsx)(fH, { onManage: i.openManage }), /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(o.error),
onRetry: () => void o.refetch()
})]
}) : null;
@@@ -59619,7 -57966,7 +59625,7 @@@
author: d.author,
provider: d.provider
}, {
- authors: new Map([...d.authorSources].map(([e, t]) => [e, XF(t, u)])),
- authors: new Map([...d.authorSources].map(([e, t]) => [e, hF(t, u)])),
++ authors: new Map([...d.authorSources].map(([e, t]) => [e, $F(t, u)])),
providers: d.providers,
works: d.workNames
}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);
@@@ -59637,7 -57984,7 +59643,7 @@@
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, C.jsx)(cH, {
- /* @__PURE__ */ (0, C.jsx)(RV, {
++ /* @__PURE__ */ (0, C.jsx)(fH, {
onManage: i.openManage,
children: d.sources.length ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "primary",
@@@ -59651,20 -57998,20 +59657,20 @@@
}) : "检查更新"
}) : null
}),
- /* @__PURE__ */ (0, C.jsx)(Ike, {
- /* @__PURE__ */ (0, C.jsx)(zOe, {
++ /* @__PURE__ */ (0, C.jsx)(Mke, {
facets: d,
pressed: d.author,
context: u,
props: e,
onPick: (e) => g({ author: d.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, C.jsx)(Lke, {
- /* @__PURE__ */ (0, C.jsx)(BOe, {
++ /* @__PURE__ */ (0, C.jsx)(Nke, {
rows: d.workRows,
pressed: t.work,
props: e,
onPick: (e) => g({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, C.jsx)(Rke, {
- /* @__PURE__ */ (0, C.jsx)(VOe, {
++ /* @__PURE__ */ (0, C.jsx)(Pke, {
facets: d,
view: t,
total: v,
@@@ -59672,7 -58019,7 +59678,7 @@@
props: e,
route: g
}),
- /* @__PURE__ */ (0, C.jsx)(zke, {
- /* @__PURE__ */ (0, C.jsx)(HOe, {
++ /* @__PURE__ */ (0, C.jsx)(Fke, {
conditions: _,
onDrop: (e) => i.route(Ai(t, e)),
onClear: () => g({
@@@ -59684,11 -58031,11 +59690,11 @@@
durMax: 0
})
}),
- d.broken.length ? /* @__PURE__ */ (0, C.jsx)(Bke, {
- d.broken.length ? /* @__PURE__ */ (0, C.jsx)(UOe, {
++ d.broken.length ? /* @__PURE__ */ (0, C.jsx)(Ike, {
count: d.broken.length,
onManage: i.openManage
}) : null,
- /* @__PURE__ */ (0, C.jsx)(Vke, {
- /* @__PURE__ */ (0, C.jsx)(WOe, {
++ /* @__PURE__ */ (0, C.jsx)(Lke, {
retryKey: o.dataUpdatedAt,
pending: f,
facets: d,
@@@ -59700,16 -58047,16 +59706,16 @@@
"data-follow-pagination": "",
children: [c.has_more ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-page-action": "",
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, C.jsxs)(ez, {
- children: c.groups.length < 500 ? /* @__PURE__ */ (0, C.jsxs)(OR, {
++ children: c.groups.length < 500 ? /* @__PURE__ */ (0, C.jsxs)(rz, {
entity: !0,
enabled: () => !h.busyRef.current,
load: async () => {
await o.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, C.jsx)(sH, { className: "size-3.5" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, C.jsx)(Pke, {
- children: [/* @__PURE__ */ (0, C.jsx)(LV, { className: "size-3.5" }), "加载更多"]
- }, o.data?.pages.length) : /* @__PURE__ */ (0, C.jsx)(LOe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(dH, { className: "size-3.5" }), "加载更多"]
++ }, o.data?.pages.length) : /* @__PURE__ */ (0, C.jsx)(Ake, {
busy: o.isFetchingNextPage,
- error: o.isFetchNextPageError ? Ft(o.error) : "",
+ error: o.isFetchNextPageError ? Pt(o.error) : "",
load: () => {
!h.busyRef.current && !o.isFetchingNextPage && o.fetchNextPage();
}
@@@ -59718,7 -58065,7 +59724,7 @@@
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
- leadingIcon: h.olderBusy ? void 0 : Ake,
- leadingIcon: h.olderBusy ? void 0 : NOe,
++ leadingIcon: h.olderBusy ? void 0 : Eke,
"data-follow-older": "",
"aria-busy": h.busy || void 0,
onClick: () => void h.start(!0),
@@@ -59736,7 -58083,7 +59742,7 @@@
})
] });
}
- function cH({ onManage: e, children: t }) {
-function RV({ onManage: e, children: t }) {
++function fH({ onManage: e, children: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, C.jsx)("h2", {
@@@ -59746,7 -58093,7 +59752,7 @@@
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
- leadingIcon: kke,
- leadingIcon: MOe,
++ leadingIcon: Tke,
"data-follow-manage": "",
onClick: e,
children: "管理关注"
@@@ -59754,20 -58101,20 +59760,20 @@@
})]
});
}
- function Pke({ busy: e, error: t, load: n }) {
-function LOe({ busy: e, error: t, load: n }) {
++function Ake({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, C.jsx)(sH, { className: "size-3.5" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, C.jsx)(vI, {
- children: [/* @__PURE__ */ (0, C.jsx)(LV, { className: "size-3.5" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ children: [/* @__PURE__ */ (0, C.jsx)(dH, { className: "size-3.5" }), "加载更多"]
++ }), t ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: t,
onRetry: n
}) : null] });
}
- function Fke(e, t) {
-function ROe(e, t) {
++function jke(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, S.useState)(0), [o, s] = (0, S.useState)(!1), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(!1), m = (0, S.useRef)(!1), h = (0, S.useRef)(null), g = (0, S.useRef)({
helpers: n,
actions: r
@@@ -59829,12 -58176,12 +59835,12 @@@
olderBusy: c === "older" || f && o
};
}
- function Ike({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
-function zOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
++function Mke({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, S.useRef)(null);
(0, S.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => XF(e.authorSources.get(t) || [], n);
- let o = (t) => hF(e.authorSources.get(t) || [], n);
++ let o = (t) => $F(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -59842,14 -58189,14 +59848,14 @@@
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = ZF(a), c = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
- let a = e.authorSources.get(n) || [], s = gF(a), c = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
++ let a = e.authorSources.get(n) || [], s = eI(a), c = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: QF(a, o(n)) }
- dangerouslySetInnerHTML: { __html: _F(a, o(n)) }
++ dangerouslySetInnerHTML: { __html: tI(a, o(n)) }
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, C.jsx)(rH, {
- return s ? /* @__PURE__ */ (0, C.jsx)(NV, {
++ return s ? /* @__PURE__ */ (0, C.jsx)(sH, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@@ -59866,7 -58213,7 +59872,7 @@@
})
}) : null;
}
- function Lke({ rows: e, pressed: t, props: n, onPick: r }) {
-function BOe({ rows: e, pressed: t, props: n, onPick: r }) {
++function Nke({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@@ -59887,13 -58234,13 +59893,13 @@@
}, e[0]))
}) : null;
}
- function Rke({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
-function VOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
-- let { helpers: o, actions: s } = i, c = (0, S.useRef)(null), l = (0, S.useRef)(null), u = (0, S.useRef)(null), d = (0, S.useRef)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = bj(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = bj(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
++function Pke({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
++ let { helpers: o, actions: s } = i, c = (0, S.useRef)(null), l = (0, S.useRef)(null), u = (0, S.useRef)(null), d = (0, S.useRef)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = Cj(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = Cj(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, S.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, C.jsx)(hj, {
++ return /* @__PURE__ */ (0, C.jsx)(vj, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@@ -59945,7 -58292,7 +59951,7 @@@
dangerouslySetInnerHTML: { __html: z(i) }
}, e);
})
- }), /* @__PURE__ */ (0, C.jsx)(oH, {})] }) : null, /* @__PURE__ */ (0, C.jsxs)("div", {
- }), /* @__PURE__ */ (0, C.jsx)(IV, {})] }) : null, /* @__PURE__ */ (0, C.jsxs)("div", {
++ }), /* @__PURE__ */ (0, C.jsx)(uH, {})] }) : null, /* @__PURE__ */ (0, C.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -59965,7 -58312,7 +59971,7 @@@
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, C.jsx)(oH, {}) : null]
- }, e)), v ? /* @__PURE__ */ (0, C.jsx)(IV, {}) : null]
++ }, e)), v ? /* @__PURE__ */ (0, C.jsx)(uH, {}) : null]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@@ -59978,10 -58325,10 +59984,10 @@@
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: JF(t, n) }
- dangerouslySetInnerHTML: { __html: pF(t, n) }
++ dangerouslySetInnerHTML: { __html: ZF(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, C.jsx)(oH, {}) : null,
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, C.jsx)(IV, {}) : null,
-- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, C.jsxs)(gj, {
++ _.length && e.tagRows.length ? /* @__PURE__ */ (0, C.jsx)(uH, {}) : null,
++ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${ji(e.groups, n)}`,
@@@ -60001,18 -58348,18 +60007,18 @@@
"data-follow-readout": "",
children: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`
}),
- /* @__PURE__ */ (0, C.jsx)(LP, {
- /* @__PURE__ */ (0, C.jsx)(jP, {
++ /* @__PURE__ */ (0, C.jsx)(BP, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(fI, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(dI, {
- /* @__PURE__ */ (0, C.jsx)(jF, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(AF, {
++ /* @__PURE__ */ (0, C.jsx)(hI, { onPress: s.shuffle }),
++ y ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(mI, {
label: "图片布局",
value: i.photoLayout,
- options: jke,
- options: POe,
++ options: Dke,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
@@@ -60030,7 -58377,7 +60036,7 @@@
})]
})] }) : null,
ni.map(([e, n]) => {
- let r = t.sort === e, i = wP(t.dir === "asc" ? "arrow-up" : "arrow-down");
- let r = t.sort === e, i = vP(t.dir === "asc" ? "arrow-up" : "arrow-down");
++ let r = t.sort === e, i = DP(t.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-entity-sort": e,
@@@ -60050,7 -58397,7 +60056,7 @@@
] })
});
}
- function zke({ conditions: e, onDrop: t, onClear: n }) {
-function HOe({ conditions: e, onDrop: t, onClear: n }) {
++function Fke({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@@ -60075,7 -58422,7 +60081,7 @@@
})] }) : null
});
}
- function Bke({ count: e, onManage: t }) {
-function UOe({ count: e, onManage: t }) {
++function Ike({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@@ -60084,12 -58431,12 +60090,12 @@@
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${z("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }
});
}
- function Vke({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a }) {
- let { view: o, helpers: s } = i, c = o.media === "images", l = _I(e, () => s.listSkeletonHtml(o.media));
-function WOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a }) {
- let { view: o, helpers: s } = i, c = o.media === "images", l = IF(e, () => s.listSkeletonHtml(o.media));
++function Lke({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a }) {
++ let { view: o, helpers: s } = i, c = o.media === "images", l = bI(e, () => s.listSkeletonHtml(o.media));
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-follow-list-body": "",
"data-grid-reveal": l.fading ? "" : void 0,
- children: [l.layer, e ? null : /* @__PURE__ */ (0, C.jsx)(Hke, {
- children: [l.layer, e ? null : /* @__PURE__ */ (0, C.jsx)(GOe, {
++ children: [l.layer, e ? null : /* @__PURE__ */ (0, C.jsx)(Rke, {
facets: t,
data: n,
context: r,
@@@ -60099,29 -58446,29 +60105,29 @@@
})]
});
}
- function Hke({ facets: e, data: t, context: n, props: r, images: i, retryKey: a }) {
- let { view: o, actions: s } = r, c = uH(r), l = i ? {
-function GOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a }) {
- let { view: o, actions: s } = r, c = BV(r), l = i ? {
++function Rke({ facets: e, data: t, context: n, props: r, images: i, retryKey: a }) {
++ let { view: o, actions: s } = r, c = mH(r), l = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, u = Oke(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), d;
- } : {}, u = jOe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), d;
++ } : {}, u = wke(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), d;
return d = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), l = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
- return /* @__PURE__ */ (0, C.jsx)(aH, {
- return /* @__PURE__ */ (0, C.jsx)(FV, {
++ return /* @__PURE__ */ (0, C.jsx)(lH, {
group: t,
authorSources: l,
media: o.media,
retryKey: a,
context: n,
- selected: r.selected.has(lH(t, o)),
- selected: r.selected.has(zV(t, o)),
++ selected: r.selected.has(pH(t, o)),
selectMode: r.selectMode,
- busy: c.busy.get(lH(t, o)) || "",
- failure: c.failures.get(lH(t, o)) || "",
- busy: c.busy.get(zV(t, o)) || "",
- failure: c.failures.get(zV(t, o)) || "",
++ busy: c.busy.get(pH(t, o)) || "",
++ failure: c.failures.get(pH(t, o)) || "",
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${o.media}`);
- }) : /* @__PURE__ */ (0, C.jsx)(Uke, {
- }) : /* @__PURE__ */ (0, C.jsx)(KOe, {
++ }) : /* @__PURE__ */ (0, C.jsx)(zke, {
data: t,
filtered: !!(o.status || e.author || e.provider || o.work || o.tags.length)
}), /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -60132,10 -58479,10 +60138,10 @@@
children: d
});
}
- function lH(e, t) {
-function zV(e, t) {
++function pH(e, t) {
return bi(e, t.media).id;
}
- function Uke({ data: e, filtered: t }) {
-function KOe({ data: e, filtered: t }) {
++function zke({ data: e, filtered: t }) {
let n = (e.groups || []).length ? Io("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源、时长或标签后再试。") : (e.sources || []).length ? t ? Io("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Io("rss", "还没有更新", "点「检查更新」去各个来源取一遍;来源有新内容时会集中显示在这里。") : Io("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/subscriptions?tab=add\">添加关注</a>" });
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-empty": "",
@@@ -60143,12 -58490,12 +60149,12 @@@
dangerouslySetInnerHTML: { __html: n }
});
}
- var Wke = {
-var qOe = {
++var Bke = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
- function uH(e) {
-function BV(e) {
++function mH(e) {
let { view: t, revision: n, actions: r } = e, [i, a] = (0, S.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, S.useState)(() => /* @__PURE__ */ new Map()), c = si(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
@@@ -60171,8 -58518,8 +60177,8 @@@
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(Wke[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- u(t, n), d(), r.toast(qOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await U(Hn, {
++ u(t, n), d(), r.toast(Bke[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await H(Hn, {
item: t,
to: i
}), u(t, i), d();
@@@ -60217,10 -58564,10 +60223,10 @@@
}
//#endregion
//#region src/react/entity-body/entity-online.tsx
- function Gke(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = _I(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, C.jsx)(vI, {
-function JOe(e) {
- let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = IF(a, () => i.listSkeletonHtml(r));
- return !n && t.isError ? /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(t.error),
++function Vke(e) {
++ let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData, o = bI(a, () => i.listSkeletonHtml(r));
++ return !n && t.isError ? /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(t.error),
onRetry: () => {
t.refetch();
}
@@@ -60230,11 -58577,11 +60236,11 @@@
"data-grid-reveal": o.fading ? "" : void 0,
children: [
o.layer,
- a || !n ? null : /* @__PURE__ */ (0, C.jsx)(Kke, {
- a || !n ? null : /* @__PURE__ */ (0, C.jsx)(YOe, {
++ a || !n ? null : /* @__PURE__ */ (0, C.jsx)(Hke, {
...e,
data: n
}),
- !a && n?.has_more ? /* @__PURE__ */ (0, C.jsx)(ez, {
- !a && n?.has_more ? /* @__PURE__ */ (0, C.jsx)(OR, {
++ !a && n?.has_more ? /* @__PURE__ */ (0, C.jsx)(rz, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@@ -60244,8 -58591,8 +60250,8 @@@
]
});
}
- function Kke({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c }) {
- let l = uH({
-function YOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c }) {
- let l = BV({
++function Hke({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c }) {
++ let l = mH({
view: e,
revision: 0,
actions: c
@@@ -60263,7 -58610,7 +60269,7 @@@
"data-images-only": String(s)
} : {}, p = r.length ? r.map((e) => {
let n = bi(e, t).id, r = u.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, C.jsx)(aH, {
- return /* @__PURE__ */ (0, C.jsx)(FV, {
++ return /* @__PURE__ */ (0, C.jsx)(lH, {
group: e,
authorSources: r && u.byAuthor.get(r) || [],
media: t,
@@@ -60276,7 -58623,7 +60282,7 @@@
onStatus: l.status,
onSave: l.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, C.jsx)(qke, { searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length) });
- }) : /* @__PURE__ */ (0, C.jsx)(XOe, { searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length) });
++ }) : /* @__PURE__ */ (0, C.jsx)(Uke, { searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length) });
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": d ? "" : void 0,
@@@ -60284,7 -58631,7 +60290,7 @@@
children: p
});
}
- function qke({ searched: e }) {
-function XOe({ searched: e }) {
++function Uke({ searched: e }) {
let t = e ? Io("search-x", "当前筛选下没有更新", "切换媒体类型、状态、来源或标签后再试。") : Io("rss", "还没有抓到更新", "关注页检查更新之后,这位创作者的新内容会出现在这里。");
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-empty": "",
@@@ -60292,7 -58639,7 +60298,7 @@@
dangerouslySetInnerHTML: { __html: t }
});
}
- function dH(e) {
-function VV(e) {
++function hH(e) {
return {
x0: 0,
y0: 0,
@@@ -60300,7 -58647,7 +60306,7 @@@
y1: e.height
};
}
- function fH(e) {
-function HV(e) {
++function gH(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@@ -60308,40 -58655,40 +60314,40 @@@
y1: Math.round(e.y1)
};
}
- function pH(e) {
-function UV(e) {
++function _H(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
- function mH(e, t) {
- if (!pH(e)) return {
-function WV(e, t) {
- if (!UV(e)) return {
++function vH(e, t) {
++ if (!_H(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return dH(e);
- if (t == null || !(t > 0)) return VV(e);
++ if (t == null || !(t > 0)) return hH(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 fH({
- return HV({
++ return gH({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
- function Jke(e, t) {
- if (!pH(e) || !(t > 0)) return dH(e);
-function ZOe(e, t) {
- if (!UV(e) || !(t > 0)) return VV(e);
++function Wke(e, t) {
++ if (!_H(e) || !(t > 0)) return hH(e);
let n = Math.min(e.width, e.height * t);
- return fH({
- return HV({
++ return gH({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
- function Yke(e, t, n) {
- if (!pH(t) || !(n > 0)) return dH(t);
- let r = hH(e, t), i = mH({
-function QOe(e, t, n) {
- if (!UV(t) || !(n > 0)) return VV(t);
- let r = GV(e, t), i = WV({
++function Gke(e, t, n) {
++ if (!_H(t) || !(n > 0)) return hH(t);
++ let r = yH(e, t), i = vH({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@@ -60352,8 -58699,8 +60358,8 @@@
y1: r.y0 + i.y1
};
}
- function hH(e, t, n = null, r = "width") {
- if (!pH(t)) return {
-function GV(e, t, n = null, r = "width") {
- if (!UV(t)) return {
++function yH(e, t, n = null, r = "width") {
++ if (!_H(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@@ -60362,43 -58709,43 +60368,43 @@@
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 fH({
- return HV({
++ return gH({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
- function gH(e, t, n, r) {
-function KV(e, t, n, r) {
++function bH(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 fH({
- return HV({
++ return gH({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
- function _H(e, t, n, r = null) {
- if (!pH(n) || !(t > 0)) return e;
-function qV(e, t, n, r = null) {
- if (!UV(n) || !(t > 0)) return e;
++function xH(e, t, n, r = null) {
++ if (!_H(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 hH({
- return GV({
++ return yH({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
- function Xke(e, t, n, r, i = null) {
-function $Oe(e, t, n, r, i = null) {
++function Kke(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 hH(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
- return GV(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
++ return yH(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
- function Zke(e, t) {
- return pH(t) ? {
-function eke(e, t) {
- return UV(t) ? {
++function qke(e, t) {
++ return _H(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@@ -60410,8 -58757,8 +60416,8 @@@
height: 0
};
}
- function Qke(e, t) {
- if (!pH(t)) return {
-function tke(e, t) {
- if (!UV(t)) return {
++function Jke(e, t) {
++ if (!_H(t)) return {
size: "cover",
position: "50% 50%"
};
@@@ -60421,7 -58768,7 +60427,7 @@@
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
- function $ke(e, t) {
-function nke(e, t) {
++function Yke(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}%`,
@@@ -60430,16 -58777,16 +60436,16 @@@
height: `${t.height / r * 100}%`
};
}
- function vH(e, t, n) {
-function JV(e, t, n) {
++function SH(e, t, n) {
return t > 0 ? e * n / t : 0;
}
- function eAe(e, t) {
-function rke(e, t) {
++function Xke(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
//#endregion
//#region src/react/crop/crop-frame.tsx
- var tAe = .02, yH = 1.08;
- function bH({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
-var ike = .02, YV = 1.08;
-function XV({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
++var Zke = .02, CH = 1.08;
++function wH({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, S.useRef)(null), c = (0, S.useRef)(null), [l, u] = (0, S.useState)(!1), [d, f] = (0, S.useState)(null);
(0, S.useEffect)(() => {
u(!1);
@@@ -60458,8 -58805,8 +60464,8 @@@
dx: 0,
dy: 0
} : {
- dx: vH(e, n.clientWidth, r.width),
- dy: vH(t, n.clientHeight, r.height)
- dx: JV(e, n.clientWidth, r.width),
- dy: JV(t, n.clientHeight, r.height)
++ dx: SH(e, n.clientWidth, r.width),
++ dy: SH(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@@ -60476,22 -58823,22 +60482,22 @@@
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(gH(n.box, o.dx, o.dy, r)) : i(Xke(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(KV(n.box, o.dx, o.dy, r)) : i($Oe(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(bH(n.box, o.dx, o.dy, r)) : i(Kke(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) * tAe), o = {
- let a = Math.max(1, (n.x1 - n.x0) * ike), o = {
++ let a = Math.max(1, (n.x1 - n.x0) * Zke), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(gH(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(_H(n, e.key === "-" ? 1 / yH : yH, r, t)));
- o[e.key] ? (e.preventDefault(), i(KV(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(qV(n, e.key === "-" ? 1 / YV : YV, r, t)));
++ o[e.key] ? (e.preventDefault(), i(bH(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(xH(n, e.key === "-" ? 1 / CH : CH, r, t)));
}
- let v = n && r ? Zke(hH(n, r, t), r) : null, y = v ? eAe(v, d) : !1, b = v ? {
- let v = n && r ? eke(GV(n, r, t), r) : null, y = v ? rke(v, d) : !1, b = v ? {
++ let v = n && r ? qke(yH(n, r, t), r) : null, y = v ? Xke(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@@ -60510,7 -58857,7 +60516,7 @@@
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- pH({
- UV({
++ _H({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@@ -60549,7 -58896,7 +60555,7 @@@
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(_H(n, e.deltaY > 0 ? yH : 1 / yH, r, t));
- n && r && i(qV(n, e.deltaY > 0 ? YV : 1 / YV, r, t));
++ n && r && i(xH(n, e.deltaY > 0 ? CH : 1 / CH, 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, C.jsx)("span", {
@@@ -60572,13 -58919,13 +60578,13 @@@
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
- var nAe = "/api/avatar-choices", xH = "/api/avatar-pick", rAe = "/api/avatar-code-cover", SH = "/api/avatar-frame", iAe = "/avatar-choice", CH = (e, t) => [
-var ake = "/api/avatar-choices", ZV = "/api/avatar-pick", oke = "/api/avatar-code-cover", QV = "/api/avatar-frame", ske = "/avatar-choice", $V = (e, t) => [
++var Qke = "/api/avatar-choices", TH = "/api/avatar-pick", $ke = "/api/avatar-code-cover", EH = "/api/avatar-frame", eAe = "/avatar-choice", DH = (e, t) => [
"avatar-choices",
e,
t
- ], wH = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, TH = (e, t, n, r = "") => `${iAe}${wH(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), EH = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", aAe = (e, t, n) => yn(nAe + wH(e, t), n), oAe = (e) => H(rAe, { code: e });
- async function sAe(e, t, n) {
- let r = await H(SH, {
-], eH = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, tH = (e, t, n, r = "") => `${ske}${eH(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), nH = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", cke = (e, t, n) => H(ake + eH(e, t), n), lke = (e) => U(oke, { code: e });
-async function uke(e, t, n) {
- let r = await U(QV, {
++], OH = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, kH = (e, t, n, r = "") => `${eAe}${OH(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), AH = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", tAe = (e, t, n) => yn(Qke + OH(e, t), n), nAe = (e) => H($ke, { code: e });
++async function rAe(e, t, n) {
++ let r = await H(EH, {
kind: e,
id: t,
ref: n.ref
@@@ -60591,31 -58938,31 +60597,31 @@@
bases: r.bases
};
}
- var cAe = (e, t, n) => H(SH, {
-var dke = (e, t, n) => U(QV, {
++var iAe = (e, t, n) => H(EH, {
kind: e,
id: t,
url: n
- }), lAe = (e, t, n) => DH(`${SH}${wH(e, t)}&name=${encodeURIComponent(n.name)}`, n);
- async function DH(e, t) {
-}), fke = (e, t, n) => rH(`${QV}${eH(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function rH(e, t) {
++}), aAe = (e, t, n) => jH(`${EH}${OH(e, t)}&name=${encodeURIComponent(n.name)}`, n);
++async function jH(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
body: t
}), r = await n.json().catch(() => null);
if (n.ok) return r;
- throw new vn(r?.error || `请求失败(${n.status})`, n.status, r);
+ throw new _n(r?.error || `请求失败(${n.status})`, n.status, r);
}
- function OH(e, t, n) {
-function iH(e, t, n) {
++function MH(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? Yke(e.focus, t, n) : mH(t, n);
- return e.focus && r ? QOe(e.focus, t, n) : WV(t, n);
++ return e.focus && r ? Gke(e.focus, t, n) : vH(t, n);
}
- var uAe = (e) => e.crop && pH({
-var pke = (e) => e.crop && UV({
++var oAe = (e) => e.crop && _H({
width: e.width,
height: e.height
});
- async function dAe(e, t, n) {
-async function mke(e, t, n) {
++async function sAe(e, t, n) {
if (!("file" in n)) {
- await H(xH, {
- await U(ZV, {
++ await H(TH, {
kind: e,
id: t,
...n
@@@ -60628,19 -58975,19 +60634,19 @@@
i.x1,
i.y1
].join(",")}` : "";
- await DH(`${xH}${wH(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
- await rH(`${ZV}${eH(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
++ await jH(`${TH}${OH(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
- var kH = 2;
- function fAe(e, t) {
-var aH = 2;
-function hke(e, t) {
++var NH = 2;
++function cAe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, kH).join("」「")}」`}${n.length > kH ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有候选图片,可输入番号、图片地址或从本机选择。`;
- return n.length ? `${e}:图库里按${`「${n.slice(0, aH).join("」「")}」`}${n.length > aH ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有候选图片,可输入番号、图片地址或从本机选择。`;
++ return n.length ? `${e}:图库里按${`「${n.slice(0, NH).join("」「")}」`}${n.length > NH ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有候选图片,可输入番号、图片地址或从本机选择。`;
}
- var pAe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
- function mAe(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${pAe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
-var gke = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function _ke(e) {
- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${gke(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
++var lAe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
++function uAe(e) {
++ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${lAe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
- var AH = (e) => e.cast > 1, hAe = (e) => AH(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, gAe = {
-var oH = (e) => e.cast > 1, vke = (e) => oH(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, yke = {
++var PH = (e) => e.cast > 1, dAe = (e) => PH(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, fAe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@@ -60650,7 -58997,7 +60656,7 @@@
social: "社媒头像",
online: "在线作品"
};
- function _Ae(e) {
-function bke(e) {
++function pAe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@@ -60661,19 -59008,19 +60667,19 @@@
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
- var vAe = (e) => `${gAe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (AH(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), yAe = 8, bAe = 3 / 4;
- async function xAe(e, t, n) {
-var xke = (e) => `${yke[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (oH(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), Ske = 8, Cke = 3 / 4;
-async function wke(e, t, n) {
++var mAe = (e) => `${fAe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (PH(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), hAe = 8, gAe = 3 / 4;
++async function _Ae(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await sAe(e, t, n.choice) };
- case "code": return { choice: await oAe(n.code) };
- case "url": return { choice: await cAe(e, t, n.url) };
- case "choice": return { choice: await uke(e, t, n.choice) };
- case "code": return { choice: await lke(n.code) };
- case "url": return { choice: await dke(e, t, n.url) };
++ case "choice": return { choice: await rAe(e, t, n.choice) };
++ case "code": return { choice: await nAe(n.code) };
++ case "url": return { choice: await iAe(e, t, n.url) };
case "file": return {
- choice: await lAe(e, t, n.file),
- choice: await fke(e, t, n.file),
++ choice: await aAe(e, t, n.file),
file: n.file
};
}
}
- function SAe({ kind: e, entityId: t, name: n, onPicked: r }) {
-function Tke({ kind: e, entityId: t, name: n, onPicked: r }) {
++function vAe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@@ -60683,17 -59030,17 +60689,17 @@@
"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, C.jsx)(ige, {
- children: /* @__PURE__ */ (0, C.jsx)(Ghe, {
++ children: /* @__PURE__ */ (0, C.jsx)(nge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, C.jsx)(xP, {
- }), /* @__PURE__ */ (0, C.jsx)(hP, {
++ }), /* @__PURE__ */ (0, C.jsx)(wP, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, C.jsx)(CAe, {
- children: /* @__PURE__ */ (0, C.jsx)(Eke, {
++ children: /* @__PURE__ */ (0, C.jsx)(yAe, {
kind: e,
entityId: t,
name: n,
@@@ -60702,22 -59049,22 +60708,22 @@@
})
})] });
}
- function CAe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, S.useRef)(null), o = YP(), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(null), p = CH(e, t), m = (0, S.useRef)(!1), h = ft({
-function Eke({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, S.useRef)(null), o = UP(), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(null), p = $V(e, t), m = (0, S.useRef)(!1), h = pt({
++function yAe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
++ let a = (0, S.useRef)(null), o = QP(), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(null), p = DH(e, t), m = (0, S.useRef)(!1), h = ft({
queryKey: p,
- queryFn: ({ signal: n }) => aAe(e, t, n),
- queryFn: ({ signal: n }) => cke(e, t, n),
++ queryFn: ({ signal: n }) => tAe(e, t, n),
retryOnMount: !0
});
(0, S.useEffect)(() => () => {
- m.current && U.removeQueries({ queryKey: CH(e, t) });
- m.current && W.removeQueries({ queryKey: $V(e, t) });
++ m.current && U.removeQueries({ queryKey: DH(e, t) });
}, [e, t]);
- let g = mt({
- mutationFn: (n) => mke(e, t, n),
+ let g = pt({
- mutationFn: (n) => dAe(e, t, n),
++ mutationFn: (n) => sAe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
- }), _ = mt({
- mutationFn: (n) => wke(e, t, n),
+ }), _ = pt({
- mutationFn: (n) => xAe(e, t, n),
++ mutationFn: (n) => _Ae(e, t, n),
onSuccess: f
}), v = (e) => _.isPending && _.variables?.via === e;
function y(e) {
@@@ -60735,28 -59082,28 +60741,28 @@@
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, w = x?.choices ?? [], T = (g.error ? V(g.error) : "") || (!d && _.error ? V(_.error) : "") || (h.error ? V(h.error) : ""), E = g.isPending || _.isPending, D = d ? "" : mAe(x), O = !!T && !!h.error && T === V(h.error), k = h.isPending || w.length > 0;
- let x = h.data, w = x?.choices ?? [], T = (g.error ? V(g.error) : "") || (!d && _.error ? V(_.error) : "") || (h.error ? V(h.error) : ""), E = g.isPending || _.isPending, D = d ? "" : _ke(x), O = !!T && !!h.error && T === V(h.error), k = h.isPending || w.length > 0;
++ let x = h.data, w = x?.choices ?? [], T = (g.error ? V(g.error) : "") || (!d && _.error ? V(_.error) : "") || (h.error ? V(h.error) : ""), E = g.isPending || _.isPending, D = d ? "" : uAe(x), O = !!T && !!h.error && T === V(h.error), k = h.isPending || w.length > 0;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, C.jsx)(SP, { children: /* @__PURE__ */ (0, C.jsx)(Rge, { className: "size-6" }) }),
- /* @__PURE__ */ (0, C.jsx)(gP, { children: /* @__PURE__ */ (0, C.jsx)(Ege, { className: "size-6" }) }),
++ /* @__PURE__ */ (0, C.jsx)(TP, { children: /* @__PURE__ */ (0, C.jsx)(Ige, { className: "size-6" }) }),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(Hj, {
- children: [/* @__PURE__ */ (0, C.jsx)(Vj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Gj, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && w.length ? /* @__PURE__ */ (0, C.jsxs)(mA, {
- }), !d && w.length ? /* @__PURE__ */ (0, C.jsxs)(pA, {
++ }), !d && w.length ? /* @__PURE__ */ (0, C.jsxs)(gA, {
color: "soft",
children: [w.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? hAe(d.choice) : fAe(n, x)
- children: d ? vke(d.choice) : hke(n, x)
++ children: d ? dAe(d.choice) : cAe(n, x)
}),
D ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
@@@ -60777,14 -59124,14 +60783,14 @@@
}) : null
]
}),
-- /* @__PURE__ */ (0, C.jsx)(dj, {
- icon: Mk,
- icon: jk,
++ /* @__PURE__ */ (0, C.jsx)(mj, {
++ icon: Pk,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, C.jsx)(EAe, {
- }), d ? /* @__PURE__ */ (0, C.jsx)(kke, {
++ }), d ? /* @__PURE__ */ (0, C.jsx)(SAe, {
kind: e,
entityId: t,
choice: d.choice,
@@@ -60803,7 -59150,7 +60809,7 @@@
"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: yAe }, (e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
- children: h.isPending ? Array.from({ length: Ske }, (e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: h.isPending ? Array.from({ length: hAe }, (e, t) => /* @__PURE__ */ (0, C.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",
@@@ -60816,7 -59163,7 +60822,7 @@@
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: vAe(n),
- title: xke(n),
++ title: mAe(n),
...J(E),
onClick: () => {
E || (n.crop ? f({ choice: n }) : _.mutate({
@@@ -60826,8 -59173,8 +60832,8 @@@
},
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, C.jsx)(wAe, {
- src: TH(e, t, n.ref, EH(n, n.ref)),
- /* @__PURE__ */ (0, C.jsx)(Dke, {
- src: tH(e, t, n.ref, nH(n, n.ref)),
++ /* @__PURE__ */ (0, C.jsx)(bAe, {
++ src: kH(e, t, n.ref, AH(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -60836,15 -59183,15 +60842,15 @@@
}),
n.current ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, C.jsx)(mA, {
- children: /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- AH(n) ? /* @__PURE__ */ (0, C.jsx)("span", {
- oH(n) ? /* @__PURE__ */ (0, C.jsx)("span", {
++ PH(n) ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, C.jsxs)(mA, {
- children: /* @__PURE__ */ (0, C.jsxs)(pA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(gA, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@@ -60866,7 -59213,7 +60872,7 @@@
},
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@@ -60901,7 -59248,7 +60907,7 @@@
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@@ -60924,7 -59271,7 +60930,7 @@@
})]
})] })] });
}
- function wAe({ src: e, choice: t }) {
-function Dke({ src: e, choice: t }) {
++function bAe({ src: e, choice: t }) {
let n = (0, S.useRef)(null), [r, i] = (0, S.useState)(!1), [a, o] = (0, S.useState)(!1);
(0, S.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@@ -60932,7 -59279,7 +60938,7 @@@
let s = {
width: t.width,
height: t.height
- }, c = uAe(t) ? $ke(OH(t, s, bAe), s) : null, l = r || a ? !0 : void 0;
- }, c = pke(t) ? nke(iH(t, s, Cke), s) : null, l = r || a ? !0 : void 0;
++ }, c = oAe(t) ? Yke(MH(t, s, gAe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@@ -60958,7 -59305,7 +60964,7 @@@
})]
});
}
- function TAe(e) {
-function Oke(e) {
++function xAe(e) {
let [t, n] = (0, S.useState)("");
return (0, S.useEffect)(() => {
if (!e) return;
@@@ -60966,23 -59313,23 +60972,23 @@@
return n(t), () => URL.revokeObjectURL(t);
}, [e]), t;
}
- function EAe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, S.useState)(s[0]), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = EH(n, c), h = TAe(r), g = r ? h : TH(e, t, c, m), _ = YP();
-function kke({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
- let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, S.useState)(s[0]), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = nH(n, c), h = Oke(r), g = r ? h : tH(e, t, c, m), _ = UP();
++function SAe({ kind: e, entityId: t, choice: n, file: r, busy: i, back: a, confirm: o }) {
++ let s = n.bases.length ? n.bases : [n.ref], [c, l] = (0, S.useState)(s[0]), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = AH(n, c), h = xAe(r), g = r ? h : kH(e, t, c, m), _ = QP();
function v(e) {
l(e), d(null), p(null);
}
- let y = f && u ? Qke(f, u) : null;
- let y = f && u ? tke(f, u) : null;
++ let y = f && u ? Jke(f, u) : null;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
ref: _,
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: [g ? /* @__PURE__ */ (0, C.jsx)(bH, {
- children: [g ? /* @__PURE__ */ (0, C.jsx)(XV, {
++ children: [g ? /* @__PURE__ */ (0, C.jsx)(wH, {
src: g,
aspect: 1,
box: f,
size: u,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- d(e), pH(e) && p(c === n.ref ? OH(n, e, 1) : mH(e, 1));
- d(e), UV(e) && p(c === n.ref ? iH(n, e, 1) : WV(e, 1));
++ d(e), _H(e) && p(c === n.ref ? MH(n, e, 1) : vH(e, 1));
},
onBox: p
}) : null, s.length > 1 ? /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -60996,7 -59343,7 +61002,7 @@@
"data-crop-base": !0,
onClick: () => v(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: _Ae(e)
- children: bke(e)
++ children: pAe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -61045,7 -59392,7 +61051,7 @@@
}
//#endregion
//#region src/react/components/source-avatar.tsx
- function jH({ code: e, person: t, detail: n = !1 }) {
-function sH({ code: e, person: t, detail: n = !1 }) {
++function FH({ code: e, person: t, detail: n = !1 }) {
let r = (0, S.useRef)(null), [i, a] = (0, S.useState)(n || typeof IntersectionObserver > "u");
(0, S.useEffect)(() => {
if (!r.current || i) return;
@@@ -61079,8 -59426,8 +61085,8 @@@
}
//#endregion
//#region src/react/feed-new/feed-new-row.tsx
- function MH({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, S.useContext)(jF), o = (0, S.useRef)(null), [s, c] = (0, S.useState)([]), l = e?.items.length ? e.html : "";
-function cH({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, S.useContext)(YP), o = (0, S.useRef)(null), [s, c] = (0, S.useState)([]), l = e?.items.length ? e.html : "";
++function IH({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
++ let a = (0, S.useContext)(PF), o = (0, S.useRef)(null), [s, c] = (0, S.useState)([]), l = e?.items.length ? e.html : "";
(0, S.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@@ -61112,7 -59459,7 +61118,7 @@@
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(jH, {
- }), s.map((e, t) => (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(sH, {
++ }), s.map((e, t) => (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(FH, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@@ -61122,12 -59469,12 +61128,12 @@@
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
- var DAe = {
-var Ake = {
++var CAe = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
- function NH({ name: e }) {
- let t = DAe[e];
-function lH({ name: e }) {
- let t = Ake[e];
++function LH({ name: e }) {
++ let t = CAe[e];
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24",
"aria-hidden": "true",
@@@ -61137,20 -59484,20 +61143,20 @@@
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
- function PH(e, t) {
-function uH(e, t) {
++function RH(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 FH = (e) => !!e?.isConnected && e.matches(":popover-open");
- function IH(e, t, n, r) {
-var dH = (e) => !!e?.isConnected && e.matches(":popover-open");
-function fH(e, t, n, r) {
++var zH = (e) => !!e?.isConnected && e.matches(":popover-open");
++function BH(e, t, n, r) {
let i = (0, S.useRef)(r);
i.current = r, (0, S.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && FH(n.current) ? PH(t.current, n.current) : i.current();
- t.current && dH(n.current) ? uH(t.current, n.current) : i.current();
++ t.current && zH(n.current) ? RH(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@@ -61164,17 -59511,17 +61170,17 @@@
n
]);
}
- function LH({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
-function pH({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
++function VH({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)(!1), u = (0, S.useRef)(!1), d = (0, S.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, FH(s.current) && s.current.hidePopover(), l(!1);
- clearTimeout(d.current), u.current = !1, dH(s.current) && s.current.hidePopover(), l(!1);
++ clearTimeout(d.current), u.current = !1, zH(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !FH(s.current) && (s.current.showPopover(), PH(o.current, s.current), l(!0));
- clearTimeout(d.current), s.current && o.current && !dH(s.current) && (s.current.showPopover(), uH(o.current, s.current), l(!0));
++ clearTimeout(d.current), s.current && o.current && !zH(s.current) && (s.current.showPopover(), RH(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 IH(c, o, s, f), (0, S.useEffect)(() => {
- return fH(c, o, s, f), (0, S.useEffect)(() => {
++ return BH(c, o, s, f), (0, S.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@@ -61200,7 -59547,7 +61206,7 @@@
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && FH(s.current) && (e.preventDefault(), f());
- e.key === "Escape" && dH(s.current) && (e.preventDefault(), f());
++ e.key === "Escape" && zH(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -61218,16 -59565,16 +61224,16 @@@
}), a]
})] });
}
- function OAe({ following: e, busy: t, onToggle: n, tip: r }) {
-function jke({ following: e, busy: t, onToggle: n, tip: r }) {
++function wAe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(null), [s, c] = (0, S.useState)(!1), l = (0, S.useRef)(!1), u = () => {
- FH(o.current) && o.current.hidePopover(), c(!1);
- dH(o.current) && o.current.hidePopover(), c(!1);
++ zH(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !FH(o.current) && (o.current.showPopover(), PH(i.current, o.current), c(!0));
- !l.current && o.current && i.current && !dH(o.current) && (o.current.showPopover(), uH(i.current, o.current), c(!0));
++ !l.current && o.current && i.current && !zH(o.current) && (o.current.showPopover(), RH(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return IH(s, i, o, () => c(!1)), (0, S.useEffect)(() => {
- i.current && FH(o.current) && PH(i.current, o.current);
- return fH(s, i, o, () => c(!1)), (0, S.useEffect)(() => {
- i.current && dH(o.current) && uH(i.current, o.current);
++ return BH(s, i, o, () => c(!1)), (0, S.useEffect)(() => {
++ i.current && zH(o.current) && RH(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, C.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@@ -61236,7 -59583,7 +61242,7 @@@
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, C.jsx)(NH, { name: "rss" }),
- /* @__PURE__ */ (0, C.jsx)(lH, { name: "rss" }),
++ /* @__PURE__ */ (0, C.jsx)(LH, { name: "rss" }),
/* @__PURE__ */ (0, C.jsx)("input", {
ref: a,
type: "checkbox",
@@@ -61271,29 -59618,29 +61277,29 @@@
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
- function kAe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
-function Mke({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
++function TAe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, S.useState)(!1), o = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, C.jsxs)(Oye, {
- }, []), /* @__PURE__ */ (0, C.jsxs)(sye, {
++ }, []), /* @__PURE__ */ (0, C.jsxs)(Tye, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, C.jsx)(Bj, {
- children: [/* @__PURE__ */ (0, C.jsx)(zj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Uj, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, C.jsx)(NH, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- children: /* @__PURE__ */ (0, C.jsx)(lH, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
++ children: /* @__PURE__ */ (0, C.jsx)(LH, { name: "chevron-down" })
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: VP,
- className: FP,
++ className: WP,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, C.jsxs)(Aye, {
- children: /* @__PURE__ */ (0, C.jsxs)(lye, {
++ children: /* @__PURE__ */ (0, C.jsxs)(Dye, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(bN, {
- /* @__PURE__ */ (0, C.jsx)(mN, {
++ /* @__PURE__ */ (0, C.jsx)(CN, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@@ -61301,31 -59648,31 +61307,31 @@@
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, C.jsxs)(SN, {
- children: t.map((e) => /* @__PURE__ */ (0, C.jsxs)(gN, {
++ children: t.map((e) => /* @__PURE__ */ (0, C.jsxs)(TN, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "check" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "check" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "check" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(dye, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, C.jsx)(bN, { children: /* @__PURE__ */ (0, C.jsxs)(SN, {
- /* @__PURE__ */ (0, C.jsx)(Wve, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, C.jsx)(mN, { children: /* @__PURE__ */ (0, C.jsxs)(gN, {
++ /* @__PURE__ */ (0, C.jsx)(cye, { "data-namepick-rule": "" }),
++ /* @__PURE__ */ (0, C.jsx)(CN, { children: /* @__PURE__ */ (0, C.jsxs)(TN, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "plus" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "添加别名…" })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "plus" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "添加别名…" })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "plus" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
- var AAe = (e) => e === "studio" || e === "agency", RH = (e) => e === "performer" || e === "creator", jAe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
- function MAe(e) {
-var Nke = (e) => e === "studio" || e === "agency", mH = (e) => e === "performer" || e === "creator", Pke = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function Fke(e) {
++var EAe = (e) => e === "studio" || e === "agency", HH = (e) => e === "performer" || e === "creator", DAe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
++function OAe(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
- function zH(e) {
-function hH(e) {
++function UH(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@@ -61337,13 -59684,13 +61343,13 @@@
linked: !1
} : null;
}
- function BH(e, t) {
-function gH(e, t) {
- let n = nn(e, "performer"), r = $t(t);
- return r && [e.label, n].map($t).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
++function WH(e, t) {
+ let n = tn(e, "performer"), r = Qt(t);
+ return r && [e.label, n].map(Qt).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
- var VH = (e) => ({ site: Jt(e) });
- function NAe(e, t) {
- let n = zH(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
-var _H = (e) => ({ site: Yt(e) });
-function Ike(e, t) {
- let n = hH(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
++var GH = (e) => ({ site: Jt(e) });
++function kAe(e, t) {
++ let n = UH(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@@ -61353,7 -59700,7 +61359,7 @@@
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${BH(e, n)} · ${t}`
- title: `${gH(e, n)} · ${t}`
++ title: `${WH(e, n)} · ${t}`
};
}
let r = e.url || "";
@@@ -61361,32 -59708,32 +61367,32 @@@
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (RH(t) && e.link_kind !== "social") return {
- if (mH(t) && e.link_kind !== "social") return {
++ if (HH(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: BH(e, n),
- mark: VH(e)
- title: gH(e, n),
- mark: _H(e)
++ title: WH(e, n),
++ mark: GH(e)
};
if (e.link_kind === "social") {
- let t = Qt(r);
+ let t = Zt(r);
return {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : VH(e)
- mark: t ? { brand: t } : _H(e)
++ mark: t ? { brand: t } : GH(e)
};
}
return {
type: "url",
url: r,
title: e.label || "",
- text: nn(e, t, i),
- mark: _H(e)
+ text: tn(e, t, i),
- mark: VH(e)
++ mark: GH(e)
};
});
- return [...r, ...PAe(a)];
- return [...r, ...Lke(a)];
++ return [...r, ...AAe(a)];
}
- function PAe(e) {
-function Lke(e) {
++function AAe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@@ -61394,8 -59741,8 +61400,8 @@@
sources: t.map((e) => e.label)
}];
}
- var HH = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
- function FAe(e) {
-var vH = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function Rke(e) {
++var KH = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
++function jAe(e) {
return [
[
"legal_name",
@@@ -61451,7 -59798,7 +61457,7 @@@
}]
}] : []);
}
- function IAe(e) {
-function zke(e) {
++function MAe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@@ -61508,14 -59855,14 +61514,14 @@@
tags: e.tags
}), t;
}
- function UH(e, t = 4) {
-function yH(e, t = 4) {
++function qH(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
- function LAe(e) {
-function Bke(e) {
++function NAe(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 ? {
@@@ -61526,7 -59873,7 +61532,7 @@@
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
- function RAe(e) {
-function Vke(e) {
++function PAe(e) {
return _a({
id: e.id,
hasImage: e.has_image,
@@@ -61537,8 -59884,8 +61543,8 @@@
standIn: e.avatar_stand_in
});
}
- function zAe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = RH(e), c = AAe(e), l = s ? IAe(n.profile) : c ? FAe(n.company_profile) : [], u = NAe(n, e), d = HH(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, S.useRef)(null), m = (0, S.useRef)(null);
-function Hke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- let s = mH(e), c = Nke(e), l = s ? zke(n.profile) : c ? Rke(n.company_profile) : [], u = Ike(n, e), d = vH(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, S.useRef)(null), m = (0, S.useRef)(null);
++function FAe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
++ let s = HH(e), c = EAe(e), l = s ? MAe(n.profile) : c ? jAe(n.company_profile) : [], u = kAe(n, e), d = KH(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, S.useRef)(null), m = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
o.wireScroller(p.current);
}, [o, u.length]), (0, S.useEffect)(() => {
@@@ -61551,7 -59898,7 +61557,7 @@@
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, C.jsx)(BAe, {
- children: [/* @__PURE__ */ (0, C.jsx)(Uke, {
++ children: [/* @__PURE__ */ (0, C.jsx)(IAe, {
kind: e,
name: t,
helpers: o,
@@@ -61559,7 -59906,7 +61565,7 @@@
company: c
}), s && n.id ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, C.jsx)(SAe, {
- children: /* @__PURE__ */ (0, C.jsx)(Tke, {
++ children: /* @__PURE__ */ (0, C.jsx)(vAe, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@@ -61574,13 -59921,13 +61580,13 @@@
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, C.jsx)("h2", { children: n.canonical_name }),
- e === "tag" ? null : /* @__PURE__ */ (0, C.jsx)(kAe, {
- e === "tag" ? null : /* @__PURE__ */ (0, C.jsx)(Mke, {
++ e === "tag" ? null : /* @__PURE__ */ (0, C.jsx)(TAe, {
current: n.canonical_name,
- choices: MAe(n),
- choices: Fke(n),
++ choices: OAe(n),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, C.jsx)(IP, { item: {
- n.id ? /* @__PURE__ */ (0, C.jsx)(AP, { item: {
++ n.id ? /* @__PURE__ */ (0, C.jsx)(zP, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@@ -61588,7 -59935,7 +61594,7 @@@
} }) : null
]
}),
- /* @__PURE__ */ (0, C.jsx)(VAe, {
- /* @__PURE__ */ (0, C.jsx)(Wke, {
++ /* @__PURE__ */ (0, C.jsx)(LAe, {
kind: e,
entity: n,
actions: a
@@@ -61609,14 -59956,14 +61615,14 @@@
u.length ? /* @__PURE__ */ (0, C.jsx)("div", {
ref: p,
"data-entity-links": "",
- children: u.map((e, t) => /* @__PURE__ */ (0, C.jsx)(qAe, { link: e }, t))
- children: u.map((e, t) => /* @__PURE__ */ (0, C.jsx)(Xke, { link: e }, t))
++ children: u.map((e, t) => /* @__PURE__ */ (0, C.jsx)(UAe, { link: e }, t))
}) : null,
- d.length || n.feed ? /* @__PURE__ */ (0, C.jsx)(JAe, {
- d.length || n.feed ? /* @__PURE__ */ (0, C.jsx)(Zke, {
++ d.length || n.feed ? /* @__PURE__ */ (0, C.jsx)(WAe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, C.jsx)(WAe, {
- n.follow?.held.length ? /* @__PURE__ */ (0, C.jsx)(qke, {
++ n.follow?.held.length ? /* @__PURE__ */ (0, C.jsx)(BAe, {
follow: n.follow,
entity: n,
actions: a
@@@ -61625,11 -59972,11 +61631,11 @@@
}),
l.length ? /* @__PURE__ */ (0, C.jsx)("dl", {
"data-entity-facts": "",
- children: l.map((e) => /* @__PURE__ */ (0, C.jsx)(GAe, {
- children: l.map((e) => /* @__PURE__ */ (0, C.jsx)(Jke, {
++ children: l.map((e) => /* @__PURE__ */ (0, C.jsx)(VAe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, C.jsx)(KAe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
- children: e.tags ? /* @__PURE__ */ (0, C.jsx)(Yke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: e.tags ? /* @__PURE__ */ (0, C.jsx)(HAe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@@ -61648,7 -59995,7 +61654,7 @@@
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(un(e.k))}</span>${RAe(e)}` }
- dangerouslySetInnerHTML: { __html: `<span>${B(dn(e.k))}</span>${Vke(e)}` }
++ dangerouslySetInnerHTML: { __html: `<span>${B(un(e.k))}</span>${PAe(e)}` }
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-hero-costar-name": "",
children: e.k
@@@ -61656,15 -60003,15 +61662,15 @@@
}, e.k))
})
}) : null]
- }), i ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(MH, {
- }), i ? (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(cH, {
++ }), i ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(IH, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
- function BAe({ kind: e, name: t, helpers: n, people: r, company: i }) {
-function Uke({ kind: e, name: t, helpers: n, people: r, company: i }) {
- let [a] = (0, S.useState)(() => `${n.portraitImg()}<span>${B(dn(t))}</span>`);
++function IAe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+ let [a] = (0, S.useState)(() => `${n.portraitImg()}<span>${B(un(t))}</span>`);
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-entity-portrait": r ? "round" : "square",
"data-fit-native": i ? "mark" : "portrait",
@@@ -61672,51 -60019,51 +61678,51 @@@
dangerouslySetInnerHTML: { __html: a }
});
}
- function VAe({ kind: e, entity: t, actions: n }) {
- let r = zH(t), i = (e, t) => (r) => {
-function Wke({ kind: e, entity: t, actions: n }) {
- let r = hH(t), i = (e, t) => (r) => {
++function LAe({ kind: e, entity: t, actions: n }) {
++ let r = UH(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, C.jsx)("a", {
- href: Wt("agency", r.name, r.id),
+ href: Ut("agency", r.name, r.id),
"data-agency": r.name,
onClick: i("agency", r.name),
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = LAe(t.name_groups);
- let e = Bke(t.name_groups);
++ let e = NAe(t.name_groups);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, C.jsx)(WH, { entity: t }),
- /* @__PURE__ */ (0, C.jsx)(bH, { entity: t }),
++ /* @__PURE__ */ (0, C.jsx)(JH, { entity: t }),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "film" }), /* @__PURE__ */ (0, C.jsx)("span", { children: o })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "film" }), /* @__PURE__ */ (0, C.jsx)("span", { children: o })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "film" }), /* @__PURE__ */ (0, C.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, C.jsx)(UAe, {
- t.follow?.key ? /* @__PURE__ */ (0, C.jsx)(Kke, {
++ t.follow?.key ? /* @__PURE__ */ (0, C.jsx)(zAe, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
}) : null,
e ? /* @__PURE__ */ (0, C.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, C.jsx)(NH, { name: "id-card" }),
- /* @__PURE__ */ (0, C.jsx)(lH, { name: "id-card" }),
++ /* @__PURE__ */ (0, C.jsx)(LH, { name: "id-card" }),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: e.names.map((e, t) => /* @__PURE__ */ (0, C.jsx)("span", { children: e }, t))
}),
- e.rest > 0 ? /* @__PURE__ */ (0, C.jsx)(LH, {
- e.rest > 0 ? /* @__PURE__ */ (0, C.jsx)(pH, {
++ e.rest > 0 ? /* @__PURE__ */ (0, C.jsx)(VH, {
id: "entityAliasPop",
hook: "alias",
rest: e.rest,
label: `另外 ${e.rest.toLocaleString()} 个别名`,
heading: `${e.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, C.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, C.jsx)(GH, {
- children: /* @__PURE__ */ (0, C.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, C.jsx)(xH, {
++ children: /* @__PURE__ */ (0, C.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, C.jsx)(YH, {
label: e.label,
names: e.names
}, t)) })
@@@ -61738,61 -60085,61 +61744,61 @@@
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, C.jsx)(WH, { entity: t }) : null,
- e === "creator" ? /* @__PURE__ */ (0, C.jsx)(bH, { entity: t }) : null,
++ e === "creator" ? /* @__PURE__ */ (0, C.jsx)(JH, { entity: t }) : null,
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "film" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [o, c] })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "film" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [o, c] })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "film" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "briefcase" }), /* @__PURE__ */ (0, C.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "clapperboard" }), /* @__PURE__ */ (0, C.jsx)("a", {
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "clapperboard" }), /* @__PURE__ */ (0, C.jsx)("a", {
- href: Wt("studio", l.name, l.id),
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "clapperboard" }), /* @__PURE__ */ (0, C.jsx)("a", {
+ href: Ut("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, C.jsx)(HAe, { aliases: s }) : null
- s.length ? /* @__PURE__ */ (0, C.jsx)(Gke, { aliases: s }) : null
++ s.length ? /* @__PURE__ */ (0, C.jsx)(RAe, { aliases: s }) : null
]
});
}
- function HAe({ aliases: e }) {
- let { shown: t, rest: n } = UH(e, 3);
-function Gke({ aliases: e }) {
- let { shown: t, rest: n } = yH(e, 3);
++function RAe({ aliases: e }) {
++ let { shown: t, rest: n } = qH(e, 3);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(NH, { name: "id-card" }),
- /* @__PURE__ */ (0, C.jsx)(lH, { name: "id-card" }),
++ /* @__PURE__ */ (0, C.jsx)(LH, { name: "id-card" }),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, C.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, C.jsx)(LH, {
- n ? /* @__PURE__ */ (0, C.jsx)(pH, {
++ n ? /* @__PURE__ */ (0, C.jsx)(VH, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, C.jsx)("dl", { children: /* @__PURE__ */ (0, C.jsx)(GH, { names: e.map((e) => ({ name: e })) }) })
- children: /* @__PURE__ */ (0, C.jsx)("dl", { children: /* @__PURE__ */ (0, C.jsx)(xH, { names: e.map((e) => ({ name: e })) }) })
++ children: /* @__PURE__ */ (0, C.jsx)("dl", { children: /* @__PURE__ */ (0, C.jsx)(YH, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
- function UAe({ follow: e, actions: t }) {
-function Kke({ follow: e, actions: t }) {
++function zAe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "rss" }), /* @__PURE__ */ (0, C.jsxs)("a", {
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "rss" }), /* @__PURE__ */ (0, C.jsxs)("a", {
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "rss" }), /* @__PURE__ */ (0, C.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@@ -61801,7 -60148,7 +61807,7 @@@
})]
});
}
- function WAe({ follow: e, entity: t, actions: n }) {
-function qke({ follow: e, entity: t, actions: n }) {
++function BAe({ follow: e, entity: t, actions: n }) {
let [r, i] = (0, S.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@@ -61835,14 -60182,14 +61841,14 @@@
}, e.key))
});
}
- function WH({ entity: e }) {
-function bH({ entity: e }) {
++function JH({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.identity_labels.join(" · ") })]
- children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.identity_labels.join(" · ") })]
++ children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: "user-round" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
- function GH({ label: e, names: t }) {
-function xH({ label: e, names: t }) {
++function YH({ label: e, names: t }) {
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [e ? /* @__PURE__ */ (0, C.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, C.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -61851,20 -60198,20 +61857,20 @@@
}, t))
})] });
}
- function GAe({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("dt", { children: [/* @__PURE__ */ (0, C.jsx)(NH, { name: e }), t] }), /* @__PURE__ */ (0, C.jsx)("dd", {
-function Jke({ glyph: e, label: t, clip: n, children: r }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("dt", { children: [/* @__PURE__ */ (0, C.jsx)(lH, { name: e }), t] }), /* @__PURE__ */ (0, C.jsx)("dd", {
++function VAe({ glyph: e, label: t, clip: n, children: r }) {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("dt", { children: [/* @__PURE__ */ (0, C.jsx)(LH, { name: e }), t] }), /* @__PURE__ */ (0, C.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
- function KAe({ tags: e }) {
- let { shown: t, rest: n } = UH(e);
-function Yke({ tags: e }) {
- let { shown: t, rest: n } = yH(e);
++function HAe({ tags: e }) {
++ let { shown: t, rest: n } = qH(e);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, C.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, C.jsx)(LH, {
- }, e)), n ? /* @__PURE__ */ (0, C.jsx)(pH, {
++ }, e)), n ? /* @__PURE__ */ (0, C.jsx)(VH, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@@ -61880,10 -60227,10 +61886,10 @@@
})
}) : null] });
}
- function KH({ mark: e }) {
-function SH({ mark: e }) {
++function XH({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, C.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, C.jsx)(NH, { name: e.brand })
- children: /* @__PURE__ */ (0, C.jsx)(lH, { name: e.brand })
++ children: /* @__PURE__ */ (0, C.jsx)(LH, { name: e.brand })
});
let t = z("globe") + ("site" in e ? `<img src="${B(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -61891,7 -60238,7 +61897,7 @@@
dangerouslySetInnerHTML: { __html: t }
});
}
- function qAe({ link: e }) {
-function Xke({ link: e }) {
++function UAe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, C.jsx)("a", {
"data-link": "icon",
@@@ -61900,19 -60247,19 +61906,19 @@@
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, C.jsx)(KH, { mark: e.mark })
- children: /* @__PURE__ */ (0, C.jsx)(SH, { mark: e.mark })
++ children: /* @__PURE__ */ (0, C.jsx)(XH, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, C.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, C.jsx)(KH, { mark: { globe: !0 } })
- children: /* @__PURE__ */ (0, C.jsx)(SH, { mark: { globe: !0 } })
++ children: /* @__PURE__ */ (0, C.jsx)(XH, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, C.jsx)(KH, { mark: { globe: !0 } }), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(SH, { mark: { globe: !0 } }), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(XH, { mark: { globe: !0 } }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@@ -61923,14 -60270,14 +61929,14 @@@
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, C.jsx)(KH, { mark: e.mark }), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(SH, { mark: e.mark }), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(XH, { mark: e.mark }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
- function JAe({ entity: e, actions: t, helpers: n }) {
-function Zke({ entity: e, actions: t, helpers: n }) {
++function WAe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, S.useState)(!!e.feed?.following), [a, o] = (0, S.useState)(!1), s = (0, S.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@@ -61948,34 -60295,34 +61954,34 @@@
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-entry-marks": "",
- children: [HH(e).map((e, t) => /* @__PURE__ */ (0, C.jsxs)("a", {
- children: [vH(e).map((e, t) => /* @__PURE__ */ (0, C.jsxs)("a", {
++ children: [KH(e).map((e, t) => /* @__PURE__ */ (0, C.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(NH, { name: e.mark }) : /* @__PURE__ */ (0, C.jsxs)("span", {
- children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(lH, { name: e.mark }) : /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(LH, { name: e.mark }) : /* @__PURE__ */ (0, C.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, C.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, C.jsx)(OAe, {
- }, t)), e.feed ? /* @__PURE__ */ (0, C.jsx)(jke, {
++ }, t)), e.feed ? /* @__PURE__ */ (0, C.jsx)(wAe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: jAe(r)
- tip: Pke(r)
++ tip: DAe(r)
}) : null]
});
}
//#endregion
//#region src/react/entity-page/use-entity-online.ts
- var YAe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
- function XAe(e, t, n) {
-var Qke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function $ke(e, t, n) {
++var GAe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
++function KAe(e, t, n) {
let [r, i] = (0, S.useState)(() => xi(e));
r.author !== e && i(xi(e));
let [a, o] = (0, S.useState)({
@@@ -62054,7 -60401,7 +62060,7 @@@
onlineMedia: (e) => c(e),
onlineShuffle: () => E({
sort: ii,
- seed: YAe()
- seed: Qke()
++ seed: GAe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => E({ status: e }),
@@@ -62072,8 -60419,8 +62078,8 @@@
}
//#endregion
//#region src/react/entity-page/entity-page-view.tsx
- function ZAe(e) {
- let { kind: t, name: n } = e, r = ft(vV(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
-function eAe(e) {
- let { kind: t, name: n } = e, r = pt(JB(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
++function qAe(e) {
++ let { kind: t, name: n } = e, r = ft(SV(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;
@@@ -62091,17 -60438,17 +62097,17 @@@
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, C.jsx)(vI, {
- ]), r.isError ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ ]), r.isError ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: V(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, C.jsx)(eje, {
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, C.jsx)(rAe, {
++ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, C.jsx)(XAe, {
...e,
entity: r.data
});
}
- function qH(e) {
-function CH(e) {
++function ZH(e) {
let [t, n] = (0, S.useState)({
key: e,
n: 1
@@@ -62113,22 -60460,22 +62119,22 @@@
};
return n(r), r.n;
}
- var QAe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
- function $Ae(e, t) {
-var tAe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function nAe(e, t) {
++var JAe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
++function YAe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
- function eje(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 = mt(yV(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 || bV(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
-function rAe(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 = ht(YB(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 || XB(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
++function XAe(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 = mt(CV(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 || wV(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
- } : dV, [y, b] = (0, S.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [w, T] = (0, S.useState)(x);
- } : VB, [y, b] = (0, S.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [w, T] = (0, S.useState)(x);
++ } : hV, [y, b] = (0, S.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [w, T] = (0, S.useState)(x);
w !== x && (T(x), b("videos"));
- let E = l && y === "people" && u.length ? "people" : v.media, D = XAe(g, E === "online", {
- let E = l && y === "people" && u.length ? "people" : v.media, D = $ke(g, E === "online", {
++ let E = l && y === "people" && u.length ? "people" : v.media, D = KAe(g, E === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), O = E === "photos" || E === "online" && D.media === "images", [k, A] = (0, S.useState)(0), j = _V(e), M = ft(j), N = qH(JSON.stringify([j.queryKey, k])), [P] = (0, S.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
- }), O = E === "photos" || E === "online" && D.media === "images", [k, A] = (0, S.useState)(0), j = qB(e), M = pt(j), N = CH(JSON.stringify([j.queryKey, k])), [P] = (0, S.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
++ }), O = E === "photos" || E === "online" && D.media === "images", [k, A] = (0, S.useState)(0), j = xV(e), M = ft(j), N = ZH(JSON.stringify([j.queryKey, k])), [P] = (0, S.useState)(() => (t === "performer" || t === "studio") && (e.jav || (M.data?.items || []).some((e) => e.is_jav)));
(0, S.useLayoutEffect)(() => {
s.javContext(P);
}, [s, P]);
@@@ -62138,26 -60485,26 +62144,26 @@@
}, [e.layout, P]), I = {
jav: e.jav,
seed: e.seed
- }, ee = (0, S.useCallback)((e, r, a) => gV(t, n, i, I, e, r, a), [N]), [L, te] = (0, S.useState)({}), ne = v.set, re = L[ne] || "", ie = mt({
- ...yV(t, n, ne, re),
- }, ee = (0, S.useCallback)((e, r, a) => KB(t, n, i, I, e, r, a), [N]), [L, te] = (0, S.useState)({}), ne = v.set, re = L[ne] || "", ie = ht({
- ...YB(t, n, ne, re),
++ }, ee = (0, S.useCallback)((e, r, a) => bV(t, n, i, I, e, r, a), [N]), [L, te] = (0, S.useState)({}), ne = v.set, re = L[ne] || "", ie = mt({
++ ...CV(t, n, ne, re),
enabled: E === "photos"
- }), ae = ie.data?.pages[0], oe = qH(JSON.stringify(pV(t, n, ne, re))), se = (0, S.useMemo)(() => {
- }), ae = ie.data?.pages[0], oe = CH(JSON.stringify(UB(t, n, ne, re))), se = (0, S.useMemo)(() => {
++ }), ae = ie.data?.pages[0], oe = ZH(JSON.stringify(_V(t, n, ne, re))), se = (0, S.useMemo)(() => {
let e = ie.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: oe,
- codeSets: t.id ? [] : bV(t),
- codeSets: t.id ? [] : XB(t),
++ codeSets: t.id ? [] : wV(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
- }, [ie.data, oe]), ce = ie.refetch, le = ie.fetchNextPage, ue = pt({
- ...RB(d, o.feedRowHtml),
+ }, [ie.data, oe]), ce = ie.refetch, le = ie.fetchNextPage, ue = ft({
- ...cV(d, o.feedRowHtml),
++ ...fV(d, o.feedRowHtml),
enabled: !!d
}), de = (0, S.useRef)(e.feedRevision);
(0, S.useEffect)(() => {
- de.current !== e.feedRevision && (de.current = e.feedRevision, U.invalidateQueries({ queryKey: sV(d) }));
- de.current !== e.feedRevision && (de.current = e.feedRevision, W.invalidateQueries({ queryKey: LB(d) }));
++ de.current !== e.feedRevision && (de.current = e.feedRevision, U.invalidateQueries({ queryKey: dV(d) }));
}, [d, e.feedRevision]);
let fe = !!M.data;
(0, S.useEffect)(() => {
@@@ -62176,7 -60523,7 +62182,7 @@@
pe.current = !1;
}, []);
let me = (0, S.useCallback)(async () => {
- await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: fV(t, n) }), await U.invalidateQueries({ queryKey: [
- await W.invalidateQueries({ queryKey: ["entity-route"] }), await W.invalidateQueries({ queryKey: HB(t, n) }), await W.invalidateQueries({ queryKey: [
++ await U.invalidateQueries({ queryKey: ["entity-route"] }), await U.invalidateQueries({ queryKey: gV(t, n) }), await U.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@@ -62210,7 -60557,7 +62216,7 @@@
enabled: e
})
}),
- onSuccess: (e, r) => U.setQueryData(fV(t, n), (e) => e && {
- onSuccess: (e, r) => W.setQueryData(HB(t, n), (e) => e && {
++ onSuccess: (e, r) => U.setQueryData(gV(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@@ -62261,13 -60608,13 +62267,13 @@@
await new Promise((e) => {
setTimeout(e, 3e3);
});
- let e = await It("/api/feeds/check").catch(() => null);
+ let e = await Ft("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- pe.current && await U.invalidateQueries({ queryKey: sV(d) });
- pe.current && await W.invalidateQueries({ queryKey: LB(d) });
++ pe.current && await U.invalidateQueries({ queryKey: dV(d) });
})();
},
- feedAction: lV,
- feedAction: zB,
++ feedAction: pV,
avatarPicked: () => {
s.avatarChanged(), me().then(() => {
pe.current && A((e) => e + 1);
@@@ -62315,19 -60662,19 +62321,19 @@@
(e !== E || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : dV));
- } : VB));
++ } : hV));
},
setState: (e) => s.route({
...i,
state: e
- }, dV),
- }, VB),
++ }, hV),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (E !== "photos") {
- let r = s.reshuffleVideos(), a = _V({
- let r = s.reshuffleVideos(), a = qB({
++ let r = s.reshuffleVideos(), a = xV({
kind: t,
name: n,
filters: {
@@@ -62338,10 -60685,10 +62344,10 @@@
seed: r,
revision: e.revision
});
- await W.fetchQuery(a).catch(() => null);
+ await U.fetchQuery(a).catch(() => null);
return;
}
- let r = QAe(), a = await U.fetchInfiniteQuery(yV(t, n, ne, r)).catch(() => null);
- let r = tAe(), a = await W.fetchInfiniteQuery(YB(t, n, ne, r)).catch(() => null);
++ let r = JAe(), a = await U.fetchInfiniteQuery(CV(t, n, ne, r)).catch(() => null);
pe.current && a?.pages[0] && !a.pages[0].error && te((e) => ({
...e,
[ne]: r
@@@ -62376,7 -60723,7 +62382,7 @@@
k: e.k,
label: kc(e.k),
n: e.n,
- selected: ROe(i.tag, e.k)
- selected: VDe(i.tag, e.k)
++ selected: POe(i.tag, e.k)
})), we = [
u.length,
!_,
@@@ -62411,14 -60758,14 +62417,14 @@@
creator: "",
studio: "",
owner: ""
- }, dV), Me = "", Ne = !1;
- }, VB), Me = "", Ne = !1;
++ }, hV), Me = "", Ne = !1;
if (E === "people") Me = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (E === "online") Ne = D.busy, Me = `在线 · ${(D.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (E === "videos") {
Ne = !M.data;
- let e = mV(i.tag).length;
- let e = WB(i.tag).length;
++ let e = vV(i.tag).length;
Me = `视频 · ${(M.data?.work_total ?? M.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else ae && !ae.error ? Me = Ee ? `${ae.title} · ${(ae.total || 0).toLocaleString()} 张` : $Ae(ae, bV(ae).length) : Ne = ie.isPending;
- } else ae && !ae.error ? Me = Ee ? `${ae.title} · ${(ae.total || 0).toLocaleString()} 张` : nAe(ae, XB(ae).length) : Ne = ie.isPending;
++ } else ae && !ae.error ? Me = Ee ? `${ae.title} · ${(ae.total || 0).toLocaleString()} 张` : YAe(ae, wV(ae).length) : Ne = ie.isPending;
let Pe = (0, S.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@@ -62435,7 -60782,7 +62441,7 @@@
u
]);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(zAe, {
- /* @__PURE__ */ (0, C.jsx)(Hke, {
++ /* @__PURE__ */ (0, C.jsx)(FAe, {
kind: t,
name: n,
entity: r,
@@@ -62445,7 -60792,7 +62451,7 @@@
actions: ye,
helpers: be
}, k),
- (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(DSe, {
- (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(wxe, {
++ (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(wSe, {
kind: t,
name: n,
view: E,
@@@ -62462,7 -60809,7 +62468,7 @@@
actions: xe,
helpers: Se
}), c.filter),
- (0, ht.createPortal)(E === "online" ? /* @__PURE__ */ (0, C.jsx)(Gke, {
- (0, gt.createPortal)(E === "online" ? /* @__PURE__ */ (0, C.jsx)(JOe, {
++ (0, ht.createPortal)(E === "online" ? /* @__PURE__ */ (0, C.jsx)(Vke, {
view: D.view,
media: D.media,
result: D.result,
@@@ -62475,15 -60822,15 +62481,15 @@@
helpers: e.follow.helpers,
actions: e.follow.actions,
canLoadMore: e.canLoadMore
- }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, C.jsx)(vI, {
- }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ }, D.key) : E === "videos" && M.isError ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: V(M.error),
onRetry: () => {
M.refetch();
}
- }) : Ae ? /* @__PURE__ */ (0, C.jsx)(tje, {
- }) : Ae ? /* @__PURE__ */ (0, C.jsx)(iAe, {
++ }) : Ae ? /* @__PURE__ */ (0, C.jsx)(ZAe, {
filtered: ke,
onShowAll: je
- }) : /* @__PURE__ */ (0, C.jsx)(vke, {
- }) : /* @__PURE__ */ (0, C.jsx)(xOe, {
++ }) : /* @__PURE__ */ (0, C.jsx)(mke, {
kind: t,
name: n,
view: E,
@@@ -62514,9 -60861,9 +62520,9 @@@
}), c.body)
] });
}
- function tje({ filtered: e, onShowAll: t }) {
- return e ? /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: wP("search"),
-function iAe({ filtered: e, onShowAll: t }) {
- return e ? /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: vP("search"),
++function ZAe({ filtered: e, onShowAll: t }) {
++ return e ? /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: DP("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
@@@ -62524,15 -60871,15 +62530,15 @@@
children: "查看全部视频"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: wP("film"),
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: vP("film"),
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: DP("film"),
title: "还没有视频",
children: "署上这个名字的视频入库后会显示在这里。"
});
}
//#endregion
//#region src/react/components/collection-summary.tsx
- function JH({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
-function wH({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
++function QH({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, C.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
@@@ -62559,30 -60906,30 +62565,30 @@@
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
- var nje = wP("play"), rje = wP("file-stack"), ije = _A({
-var aAe = vP("play"), oAe = vP("file-stack"), sAe = gA({
++var QAe = DP("play"), $Ae = DP("file-stack"), eje = yA({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
- }), YH = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", XH = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", ZH = "font-mono text-caption-1-regular leading-5 text-text-secondary", QH = () => {
-}), TH = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", EH = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", DH = "font-mono text-caption-1-regular leading-5 text-text-secondary", OH = () => {
- W.invalidateQueries({
- queryKey: jR,
++}), $H = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", eU = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", tU = "font-mono text-caption-1-regular leading-5 text-text-secondary", nU = () => {
+ U.invalidateQueries({
- queryKey: rz,
++ queryKey: oz,
exact: !0
- }), W.invalidateQueries({
- queryKey: Gz,
+ }), U.invalidateQueries({
- queryKey: _B,
++ queryKey: bB,
exact: !0
});
};
- function aje(e) {
-function cAe(e) {
++function tje(e) {
return e.identical ? /* @__PURE__ */ (0, C.jsx)("span", {
- className: `${XH} text-(--keep)`,
- className: `${EH} text-(--keep)`,
++ className: `${eU} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, C.jsx)("span", {
- className: `${XH} text-text-secondary`,
- className: `${EH} text-text-secondary`,
++ className: `${eU} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
- function oje({ file: e, prefix: t, openItem: n }) {
-function lAe({ file: e, prefix: t, openItem: n }) {
- let r = () => n(e.id), i = pn[e.location] || e.location || e.drive;
++function nje({ file: e, prefix: t, openItem: n }) {
+ let r = () => n(e.id), i = fn[e.location] || e.location || e.drive;
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
children: [
@@@ -62591,7 -60938,7 +62597,7 @@@
onClick: r,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, C.jsx)(nje, {
- children: [/* @__PURE__ */ (0, C.jsx)(aAe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(QAe, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, C.jsx)("img", {
@@@ -62611,58 -60958,58 +62617,58 @@@
"data-middle-truncate": !0,
"data-middle-truncate-within": !0,
className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",
- children: dEe(e.name, t)
- children: hTe(e.name, t)
++ children: cEe(e.name, t)
}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex flex-none gap-1",
children: [e.is_largest ? /* @__PURE__ */ (0, C.jsx)("i", {
- className: `${YH} not-italic bg-background-primary-hover text-text-secondary`,
- className: `${TH} not-italic bg-background-primary-hover text-text-secondary`,
++ className: `${$H} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, e.is_longest ? /* @__PURE__ */ (0, C.jsx)("i", {
- className: `${YH} not-italic bg-(--keep)/22 text-(--keep)`,
- className: `${TH} not-italic bg-(--keep)/22 text-(--keep)`,
++ className: `${$H} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
- className: `${ZH} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: uo[e.location] || "database" }), /* @__PURE__ */ (0, C.jsx)("span", {
- className: `${DH} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: uo[e.location] || "database" }), /* @__PURE__ */ (0, C.jsx)("span", {
++ className: `${tU} flex min-w-0 items-center gap-1.5`,
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: uo[e.location] || "database" }), /* @__PURE__ */ (0, C.jsx)("span", {
title: i,
className: "min-w-0 truncate",
children: i
})]
}),
/* @__PURE__ */ (0, C.jsx)("span", {
- className: ZH,
- className: DH,
- children: sn(e.size || 0)
++ className: tU,
+ children: on(e.size || 0)
}),
/* @__PURE__ */ (0, C.jsx)("span", {
- className: ZH,
- className: DH,
- children: an(e.duration)
++ className: tU,
+ children: rn(e.duration)
}),
/* @__PURE__ */ (0, C.jsx)("span", {
- className: `${ZH} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
- className: `${DH} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
++ className: `${tU} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
- function sje({ openItem: e, toast: t, failure: n }) {
-function uAe({ openItem: e, toast: t, failure: n }) {
- let r = pt({
- queryKey: jR,
- queryFn: ({ signal: e }) => NR(e)
- }), i = pt({
++function rje({ openItem: e, toast: t, failure: n }) {
+ let r = ft({
- queryKey: rz,
- queryFn: ({ signal: e }) => az(e)
++ queryKey: oz,
++ queryFn: ({ signal: e }) => cz(e)
+ }), i = ft({
queryKey: kn,
queryFn: ({ signal: e }) => An(e)
- }), [a, o] = (0, S.useState)(""), s = mt({
- mutationFn: (e) => IR(e, "dispose"),
+ }), [a, o] = (0, S.useState)(""), s = pt({
- mutationFn: (e) => cz(e, "dispose"),
++ mutationFn: (e) => dz(e, "dispose"),
onSuccess: (e, r) => {
- QH(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
- OH(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
++ nU(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {
try {
- await cz(r, "restore");
- await IR(r, "restore");
++ await dz(r, "restore");
} catch (e) {
n("撤销移入回收站", e);
} finally {
- QH();
- OH();
++ nU();
}
} });
},
@@@ -62676,12 -61023,12 +62682,12 @@@
children: r.error ? V(r.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let l = c.groups ?? [], u = sEe(i.data), d = ({ groups: e, keep: t, key: n }) => {
- let l = c.groups ?? [], u = dTe(i.data), d = ({ groups: e, keep: t, key: n }) => {
++ let l = c.groups ?? [], u = iEe(i.data), d = ({ groups: e, keep: t, key: n }) => {
if (s.isPending) return;
- let r = hEe(e, t);
- let r = yTe(e, t);
++ let r = fEe(e, t);
r.length && Vs({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${oz[t] ?? oz.largest}。文件共 ${on(gEe(e, r))},记录可从回收站还原。`,
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${PR[t] ?? PR.largest}。文件共 ${sn(bTe(e, r))},记录可从回收站还原。`,
++ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${lz[t] ?? lz.largest}。文件共 ${on(pEe(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (o(n), s.mutateAsync(r))
});
@@@ -62689,15 -61036,15 +62695,15 @@@
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, C.jsx)(JH, {
- /* @__PURE__ */ (0, C.jsx)(wH, {
++ /* @__PURE__ */ (0, C.jsx)(QH, {
label: "重复内容",
figure: `${Number(c.total || 0).toLocaleString()} 组`,
- detail: `${Number(c.files || 0).toLocaleString()} 个文件 · 可回收 ${sn(c.reclaimable)}`
+ detail: `${Number(c.files || 0).toLocaleString()} 个文件 · 可回收 ${on(c.reclaimable)}`
}),
- l.length ? /* @__PURE__ */ (0, C.jsxs)(Rve, {
- l.length ? /* @__PURE__ */ (0, C.jsxs)(Tve, {
++ l.length ? /* @__PURE__ */ (0, C.jsxs)(Fve, {
title: "批量保留",
children: [
-- /* @__PURE__ */ (0, C.jsx)(_j, {
++ /* @__PURE__ */ (0, C.jsx)(bj, {
busy: a === "all:largest",
onPress: () => d({
groups: l,
@@@ -62706,7 -61053,7 +62712,7 @@@
}),
children: "全部保留最大"
}),
-- /* @__PURE__ */ (0, C.jsx)(_j, {
++ /* @__PURE__ */ (0, C.jsx)(bj, {
busy: a === "all:longest",
onPress: () => d({
groups: l,
@@@ -62715,16 -61062,16 +62721,16 @@@
}),
children: "全部保留最长"
}),
- mEe(l, u).map((e) => /* @__PURE__ */ (0, C.jsx)(_j, {
- vTe(l, u).map((e) => /* @__PURE__ */ (0, C.jsx)(_j, {
++ dEe(l, u).map((e) => /* @__PURE__ */ (0, C.jsx)(bj, {
busy: a === `all:${e}`,
onPress: () => d({
groups: l,
keep: e,
key: `all:${e}`
}),
-- children: /* @__PURE__ */ (0, C.jsx)($A, {
++ children: /* @__PURE__ */ (0, C.jsx)(nj, {
source: e,
- label: `全部优先 ${pn[e] || e}`
+ label: `全部优先 ${fn[e] || e}`
})
}, e))
]
@@@ -62738,10 -61085,10 +62744,10 @@@
})
}) : null,
l.length ? l.map((t, n) => {
- let r = [t], i = uEe(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
- let r = [t], i = mTe(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
++ let r = [t], i = sEe(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": t.code,
- className: ije,
- className: sAe,
++ className: eje,
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
@@@ -62751,11 -61098,11 +62757,11 @@@
}),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
- children: `${Number(t.count || 0).toLocaleString()} 个 · 可回收 ${sn(t.reclaimable)}`
+ children: `${Number(t.count || 0).toLocaleString()} 个 · 可回收 ${on(t.reclaimable)}`
}),
- aje(t),
- cAe(t),
++ tje(t),
t.cross_drive ? /* @__PURE__ */ (0, C.jsx)("span", {
- className: `${XH} text-text-secondary`,
- className: `${EH} text-text-secondary`,
++ className: `${eU} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -62783,7 -61130,7 +62789,7 @@@
}),
children: "留最长"
}),
- sz(t.files, u).map((e) => /* @__PURE__ */ (0, C.jsx)(K, {
- FR(t.files, u).map((e) => /* @__PURE__ */ (0, C.jsx)(K, {
++ uz(t.files, u).map((e) => /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
...f(a(e)),
@@@ -62792,9 -61139,9 +62798,9 @@@
keep: e,
key: a(e)
}),
-- children: /* @__PURE__ */ (0, C.jsx)($A, {
++ children: /* @__PURE__ */ (0, C.jsx)(nj, {
source: e,
- label: `留 ${pn[e] || e}`
+ label: `留 ${fn[e] || e}`
})
}, e)),
/* @__PURE__ */ (0, C.jsx)(K, {
@@@ -62811,14 -61158,14 +62817,14 @@@
]
})
]
- }), /* @__PURE__ */ (0, C.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, C.jsx)(oje, {
- }), /* @__PURE__ */ (0, C.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, C.jsx)(lAe, {
++ }), /* @__PURE__ */ (0, C.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, C.jsx)(nje, {
file: t,
prefix: i,
openItem: e
}, t.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: rje,
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: oAe,
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: $Ae,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
}),
@@@ -62831,27 -61178,27 +62837,27 @@@
}
//#endregion
//#region src/react/diagnostics/diagnostics.ts
- var $H = ["diagnostics"], eU = (e) => yn("/api/diagnostics", e);
- async function cje(e) {
-var kH = ["diagnostics"], AH = (e) => H("/api/diagnostics", e);
-async function dAe(e) {
- await W.fetchQuery({
- queryKey: kH,
- queryFn: () => AH(e),
++var rU = ["diagnostics"], iU = (e) => yn("/api/diagnostics", e);
++async function ije(e) {
+ await U.fetchQuery({
- queryKey: $H,
- queryFn: () => eU(e),
++ queryKey: rU,
++ queryFn: () => iU(e),
staleTime: 1e4
});
}
//#endregion
//#region src/react/diagnostics/diagnostics-page.tsx
- var tU = {
-var jH = {
++var aU = {
ok: "正常",
warning: "需检查",
failed: "需处理",
unknown: "未取得",
disabled: "未配置"
- }, lje = {
-}, fAe = {
++}, aje = {
"/settings/network": "打开网络与访问",
"/settings/maintenance": "打开维护与更新",
"/tasks": "查看任务"
- }, uje = [
-}, pAe = [
++}, oje = [
["媒体库与挂载", ["media_mounts", "data_root"]],
["数据库与迁移", ["database", "schema"]],
["工具", ["ffmpeg"]],
@@@ -62862,9 -61209,9 +62868,9 @@@
"version"
]],
["后台任务", ["tasks"]]
- ], nU = (e) => new Date(e).toLocaleString();
- function rU() {
- let e = CA();
-], MH = (e) => new Date(e).toLocaleString();
-function NH() {
- let e = SA();
++], oU = (e) => new Date(e).toLocaleString();
++function sU() {
++ let e = TA();
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
@@@ -62888,7 -61235,7 +62894,7 @@@
}) : null]
});
}
- function iU({ name: e, check: t, navigate: n, configure: r }) {
-function PH({ name: e, check: t, navigate: n, configure: r }) {
++function cU({ name: e, check: t, navigate: n, configure: r }) {
let i = e === "security" || e === "port" ? "网络与访问" : "媒体库与入库";
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",
@@@ -62900,7 -61247,7 +62906,7 @@@
children: t.label
}), /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: tU[t.status] ?? "未取得"
- children: jH[t.status] ?? "未取得"
++ children: aU[t.status] ?? "未取得"
})]
}),
/* @__PURE__ */ (0, C.jsx)("p", {
@@@ -62915,19 -61262,19 +62921,19 @@@
size: "small",
variant: "secondary",
onClick: () => t.target === "/settings/library" ? r(i) : n(t.target),
- children: t.target === "/settings/library" ? `打开${i}` : lje[t.target] ?? "打开相关页面"
- children: t.target === "/settings/library" ? `打开${i}` : fAe[t.target] ?? "打开相关页面"
++ children: t.target === "/settings/library" ? `打开${i}` : aje[t.target] ?? "打开相关页面"
}) }) : null
]
});
}
- function dje({ group: e, openItem: t, receipt: n }) {
- let r = CA(), i = YP(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, C.jsx)(zA, {
-function mAe({ group: e, openItem: t, receipt: n }) {
- let r = SA(), i = UP(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
- return /* @__PURE__ */ (0, C.jsx)(RA, {
++function sje({ group: e, openItem: t, receipt: n }) {
++ let r = TA(), i = QP(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");
++ return /* @__PURE__ */ (0, C.jsx)(VA, {
summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count.toLocaleString()} 项`}`,
children: e.count === null ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
children: "清单未取得,请重新检查。"
- }) : e.items.length ? /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- }) : e.items.length ? /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
++ }) : e.items.length ? /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2",
children: [e.truncated ? /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -62962,27 -61309,27 +62968,27 @@@
}) }, e.id))
})
})
- ] }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: vge,
- ] }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: oge,
++ ] }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: gge,
title: "清单为空",
shell: "plain",
children: "没有需要处理的作品。"
})
});
}
- function fje(e) {
-function hAe(e) {
- let t = pt({
- queryKey: kH,
- queryFn: ({ signal: e }) => AH(e),
++function cje(e) {
+ let t = ft({
- queryKey: $H,
- queryFn: ({ signal: e }) => eU(e),
++ queryKey: rU,
++ queryFn: ({ signal: e }) => iU(e),
staleTime: 1e4
- }), n = CA(), [r, i] = (0, S.useState)(""), a = () => void n.run("refresh", async () => {
- }), n = SA(), [r, i] = (0, S.useState)(""), a = () => void n.run("refresh", async () => {
++ }), n = TA(), [r, i] = (0, S.useState)(""), a = () => void n.run("refresh", async () => {
let e = await t.refetch();
if (e.error) throw e.error;
return e.data;
}, () => i(""), (e) => i(V(e))), o = t.data;
if (!o) return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "ui-configpage",
- children: [/* @__PURE__ */ (0, C.jsx)(rU, {}), /* @__PURE__ */ (0, C.jsx)(q, {
- children: [/* @__PURE__ */ (0, C.jsx)(NH, {}), /* @__PURE__ */ (0, C.jsx)(q, {
++ children: [/* @__PURE__ */ (0, C.jsx)(sU, {}), /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "诊断读取失败",
action: /* @__PURE__ */ (0, C.jsx)(K, {
@@@ -63008,7 -61355,7 +63014,7 @@@
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap justify-end gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(rU, {}), /* @__PURE__ */ (0, C.jsx)(K, {
- children: [/* @__PURE__ */ (0, C.jsx)(NH, {}), /* @__PURE__ */ (0, C.jsx)(K, {
++ children: [/* @__PURE__ */ (0, C.jsx)(sU, {}), /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: a,
...J(n.busy === "refresh"),
@@@ -63019,34 -61366,34 +63025,34 @@@
tone: "error",
children: r
}) : null,
- s.length ? /* @__PURE__ */ (0, C.jsx)(kA, {
- s.length ? /* @__PURE__ */ (0, C.jsx)(OA, {
++ s.length ? /* @__PURE__ */ (0, C.jsx)(jA, {
title: `需要关注 · ${s.length} 项`,
- children: s.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(iU, {
- children: s.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(PH, {
++ children: s.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(cU, {
name: t,
check: n,
...e
}, t))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(kA, {
- /* @__PURE__ */ (0, C.jsx)(OA, {
++ /* @__PURE__ */ (0, C.jsx)(jA, {
title: "库健康",
- children: /* @__PURE__ */ (0, C.jsxs)(jA, { children: [o.library.issue_at ? /* @__PURE__ */ (0, C.jsxs)("p", {
- children: /* @__PURE__ */ (0, C.jsxs)(AA, { children: [o.library.issue_at ? /* @__PURE__ */ (0, C.jsxs)("p", {
++ children: /* @__PURE__ */ (0, C.jsxs)(NA, { children: [o.library.issue_at ? /* @__PURE__ */ (0, C.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
- children: ["处理记录 · ", nU(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(dje, {
- children: ["处理记录 · ", MH(o.library.issue_at)]
- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(mAe, {
++ children: ["处理记录 · ", oU(o.library.issue_at)]
++ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(sje, {
group: n,
...e
}, t))] })
}),
- c.length ? /* @__PURE__ */ (0, C.jsx)(kA, {
- c.length ? /* @__PURE__ */ (0, C.jsx)(OA, {
++ c.length ? /* @__PURE__ */ (0, C.jsx)(jA, {
title: "系统检查",
- children: /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(zA, {
- children: /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(RA, {
++ children: /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(VA, {
summary: `其他检查 · ${c.length} 项`,
- children: uje.map(([t, n]) => {
- children: pAe.map(([t, n]) => {
++ children: oje.map(([t, n]) => {
let r = c.filter(([e]) => n.some((t) => t === e));
return r.length ? /* @__PURE__ */ (0, C.jsxs)("div", { children: [/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-medium text-text-secondary",
children: t
- }), r.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(iU, {
- }), r.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(PH, {
++ }), r.map(([t, n]) => /* @__PURE__ */ (0, C.jsx)(cU, {
name: t,
check: n,
...e
@@@ -63054,9 -61401,9 +63060,9 @@@
})
}) })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(kA, {
- /* @__PURE__ */ (0, C.jsx)(OA, {
++ /* @__PURE__ */ (0, C.jsx)(jA, {
title: "来源会话",
- children: /* @__PURE__ */ (0, C.jsxs)(jA, { children: [o.sources.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- children: /* @__PURE__ */ (0, C.jsxs)(AA, { children: [o.sources.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
++ children: /* @__PURE__ */ (0, C.jsxs)(NA, { children: [o.sources.map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, C.jsxs)("h3", {
@@@ -63064,25 -61411,25 +63070,25 @@@
children: [
e.label,
" · ",
- tU[e.status] ?? "未取得"
- jH[e.status] ?? "未取得"
++ aU[e.status] ?? "未取得"
]
}),
-- /* @__PURE__ */ (0, C.jsx)(ij, {
++ /* @__PURE__ */ (0, C.jsx)(sj, {
text: e.reason,
className: "text-body-regular text-text-primary"
}),
- /* @__PURE__ */ (0, C.jsxs)(LA, { children: [
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsxs)(IA, { children: [
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsxs)(zA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "上次解析成功",
- children: e.last_success_at ? nU(e.last_success_at) : "未取得"
- children: e.last_success_at ? MH(e.last_success_at) : "未取得"
++ children: e.last_success_at ? oU(e.last_success_at) : "未取得"
}),
- e.last_check_at ? /* @__PURE__ */ (0, C.jsxs)(RA, {
- e.last_check_at ? /* @__PURE__ */ (0, C.jsxs)(LA, {
++ e.last_check_at ? /* @__PURE__ */ (0, C.jsxs)(BA, {
term: "上次检查",
- children: [nU(e.last_check_at), e.elapsed_s !== void 0 && e.elapsed_s !== null ? ` · ${e.elapsed_s.toFixed(2)} 秒` : ""]
- children: [MH(e.last_check_at), e.elapsed_s !== void 0 && e.elapsed_s !== null ? ` · ${e.elapsed_s.toFixed(2)} 秒` : ""]
++ children: [oU(e.last_check_at), e.elapsed_s !== void 0 && e.elapsed_s !== null ? ` · ${e.elapsed_s.toFixed(2)} 秒` : ""]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "冷却截止",
- children: e.cooldown_until ? nU(e.cooldown_until) : "未在冷却"
- children: e.cooldown_until ? MH(e.cooldown_until) : "未在冷却"
++ children: e.cooldown_until ? oU(e.cooldown_until) : "未在冷却"
})
] })
]
@@@ -63098,21 -61445,21 +63104,21 @@@
}
//#endregion
//#region src/react/feed-new/feed-new-page.tsx
- function pje({ host: e, revision: t, helpers: n, actions: r }) {
- let i = ft(cV(null, n.feedRowHtml)), a = (0, S.useRef)(t);
-function gAe({ host: e, revision: t, helpers: n, actions: r }) {
- let i = pt(RB(null, n.feedRowHtml)), a = (0, S.useRef)(t);
++function lje({ host: e, revision: t, helpers: n, actions: r }) {
++ let i = ft(fV(null, n.feedRowHtml)), a = (0, S.useRef)(t);
return (0, S.useEffect)(() => {
- a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: sV(null) }));
- }, [t]), (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(MH, {
- a.current !== t && (a.current = t, W.invalidateQueries({ queryKey: LB(null) }));
- }, [t]), (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(cH, {
++ a.current !== t && (a.current = t, U.invalidateQueries({ queryKey: dV(null) }));
++ }, [t]), (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(IH, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: lV,
- act: zB,
++ act: pV,
settled: r.settled
}), e);
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
- function aU({ provider: e, label: t }) {
-function FH({ provider: e, label: t }) {
++function lU({ provider: e, label: t }) {
let n = Qr(e), [r, i] = (0, S.useState)(!1);
return !n || r ? t ? /* @__PURE__ */ (0, C.jsx)(C.Fragment, { children: t }) : null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("img", {
src: n,
@@@ -63122,9 -61469,9 +63128,9 @@@
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, C.jsx)(vx, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, C.jsx)(xx, { children: t }) : null] });
}
- function oU({ group: e, name: t }) {
-function IH({ group: e, name: t }) {
++function uU({ group: e, name: t }) {
let { src: n, fallback: r } = mr(e), [i, a] = (0, S.useState)(0), o = [n, r].filter(Boolean)[i];
return o ? /* @__PURE__ */ (0, C.jsx)("img", {
src: o,
@@@ -63141,15 -61488,15 +63147,15 @@@
children: pr(t)
});
}
- function sU({ source: e }) {
-function LH({ source: e }) {
++function dU({ source: e }) {
let t = ar(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(mA, {
- return /* @__PURE__ */ (0, C.jsx)(pA, {
++ return /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: t,
children: ir(e)
});
}
- function cU({ source: e }) {
-function RH({ source: e }) {
++function fU({ source: e }) {
return /* @__PURE__ */ (0, C.jsx)("a", {
href: e.url,
target: "_blank",
@@@ -63159,7 -61506,7 +63165,7 @@@
children: e.label
});
}
- function lU({ text: e, prefix: t = "", tone: n = "error" }) {
-function zH({ text: e, prefix: t = "", tone: n = "error" }) {
++function pU({ text: e, prefix: t = "", tone: n = "error" }) {
let r = (0, S.useRef)(null), [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(!1), c = sr(e);
(0, S.useLayoutEffect)(() => {
let e = r.current;
@@@ -63190,11 -61537,11 +63196,11 @@@
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
- var uU = dA(HP, UP, "text-body-2-medium"), mje = "粘贴来源链接,或输入创作者名、id…", hje = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", gje = "识别中…", _je = "站内没有查到来源", dU = (e, t) => `${e}:${t.url}`;
- function vje({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
-var BH = uA(IP, LP, "text-body-2-medium"), _Ae = "粘贴来源链接,或输入创作者名、id…", vAe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", yAe = "识别中…", bAe = "站内没有查到来源", VH = (e, t) => `${e}:${t.url}`;
-function xAe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
++var mU = pA(GP, KP, "text-body-2-medium"), uje = "粘贴来源链接,或输入创作者名、id…", dje = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", fje = "识别中…", pje = "站内没有查到来源", hU = (e, t) => `${e}:${t.url}`;
++function mje({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
return (0, S.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, C.jsxs)(fN, {
- }, [t, r]), /* @__PURE__ */ (0, C.jsxs)(oN, {
++ }, [t, r]), /* @__PURE__ */ (0, C.jsxs)(hN, {
ref: t,
triggerRef: e,
isOpen: !0,
@@@ -63206,17 -61553,17 +63212,17 @@@
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: dA(VP, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
- className: uA(FP, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
++ className: pA(WP, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
children: [i && !n.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "px-2 py-1.5",
- children: /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在查找建议" })
- children: /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在查找建议" })
++ children: /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在查找建议" })
}) : null, n.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(S.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, C.jsx)("div", {
className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",
children: e.group
}), /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? dA(uU, "bg-background-secondary-default") : uU,
- className: t === r ? uA(BH, "bg-background-secondary-default") : BH,
++ className: t === r ? pA(mU, "bg-background-secondary-default") : mU,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@@ -63236,7 -61583,7 +63242,7 @@@
})] }, `${e.group}-${e.value}`))]
});
}
- function yje({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
-function SAe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
++function hje({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {
let i = new Set(t);
r ? i.delete(e) : i.add(e), n(i);
@@@ -63244,20 -61591,20 +63250,20 @@@
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
ref: i,
variant: "secondary",
- leadingIcon: yge,
- leadingIcon: sge,
++ leadingIcon: _ge,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsxs)(TN, {
- className: FP,
- children: /* @__PURE__ */ (0, C.jsxs)(yN, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsxs)(ON, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -63273,16 -61620,16 +63279,16 @@@
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, C.jsx)(NA, { children: "暂无可用来源" }), s.map((e) => {
- }) : /* @__PURE__ */ (0, C.jsx)(MA, { children: "暂无可用来源" }), s.map((e) => {
++ }) : /* @__PURE__ */ (0, C.jsx)(FA, { children: "暂无可用来源" }), s.map((e) => {
let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(JP, {
- children: [/* @__PURE__ */ (0, C.jsx)(HP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: !t.has(e.provider_label),
onChange: (t) => u(e.provider_label, t),
children: /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(aU, { provider: e.provider }), e.provider_label]
- children: [/* @__PURE__ */ (0, C.jsx)(FH, { provider: e.provider }), e.provider_label]
++ children: [/* @__PURE__ */ (0, C.jsx)(lU, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "ghost",
@@@ -63298,7 -61645,7 +63304,7 @@@
})
})] });
}
- function bje({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
-function CAe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
++function gje({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: e.line,
@@@ -63306,7 -61653,7 +63312,7 @@@
});
let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-2 p-4"
@@@ -63317,15 -61664,15 +63323,15 @@@
children: e.line
}),
a.length ? a.map((e) => {
- let n = dU(t, e);
- return /* @__PURE__ */ (0, C.jsx)(JP, {
- let n = VH(t, e);
- return /* @__PURE__ */ (0, C.jsx)(HP, {
++ let n = hU(t, e);
++ return /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
onChange: (e) => i(n, e),
children: /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, C.jsx)(aU, { provider: e.provider }),
- /* @__PURE__ */ (0, C.jsx)(FH, { provider: e.provider }),
++ /* @__PURE__ */ (0, C.jsx)(lU, { provider: e.provider }),
/* @__PURE__ */ (0, C.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@@ -63341,22 -61688,22 +63347,22 @@@
]
})
}, n);
- }) : /* @__PURE__ */ (0, C.jsx)(NA, { children: _je }),
- }) : /* @__PURE__ */ (0, C.jsx)(MA, { children: bAe }),
++ }) : /* @__PURE__ */ (0, C.jsx)(FA, { children: pje }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
children: e.evidence
- }), /* @__PURE__ */ (0, C.jsx)(IA, {
- }), /* @__PURE__ */ (0, C.jsx)(FA, {
++ }), /* @__PURE__ */ (0, C.jsx)(RA, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, C.jsx)(NA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
- o.length ? /* @__PURE__ */ (0, C.jsx)(MA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
++ o.length ? /* @__PURE__ */ (0, C.jsx)(FA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
- function xje({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
-function wAe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
++function _je({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(null), [_, v] = (0, S.useState)(-1), y = (0, S.useRef)(null), b = (0, S.useRef)(null), [x, w] = (0, S.useState)(/* @__PURE__ */ new Set()), [T, E] = (0, S.useState)(/* @__PURE__ */ new Set()), [D, O] = (0, S.useState)(""), [k, A] = (0, S.useState)(0);
(0, S.useEffect)(() => {
let e = a.trim();
@@@ -63376,7 -61723,7 +63382,7 @@@
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [j.data]), { job: N, running: P, outcome: F, start: I, dismiss: ee } = HB({
- }))), [j.data]), { job: N, running: P, outcome: F, start: I, dismiss: ee } = _B({
++ }))), [j.data]), { job: N, running: P, outcome: F, start: I, dismiss: ee } = GB({
queryKey: qn,
queryFn: ({ signal: e }) => Tr(e),
start: (e) => Or([e]),
@@@ -63408,8 -61755,8 +63414,8 @@@
}
}, ae = F?.results || [], oe = ae.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !x.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: dU(t, e)
- key: VH(t, e)
- })).filter((e) => !T.has(e.key))), se = mt({
++ key: hU(t, e)
+ })).filter((e) => !T.has(e.key))), se = pt({
mutationFn: async (e) => {
let t = [], n = [];
A(0);
@@@ -63438,7 -61785,7 +63444,7 @@@
onError: (e) => O(V(e))
}), ce = e.suggestions || [], le = !l.includes("/");
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -63458,11 -61805,11 +63464,11 @@@
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !b.current?.contains(t) && m(!1);
},
- children: [/* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "来源链接、名字或 id",
- placeholder: mje,
- placeholder: _Ae,
++ placeholder: uje,
value: a,
- leadingIcon: Hk,
- leadingIcon: Vk,
++ leadingIcon: Wk,
enterKeyHint: "search",
isDisabled: n,
onChange: o,
@@@ -63473,7 -61820,7 +63479,7 @@@
c(!1), o(e.currentTarget.value);
},
onKeyDown: ie
- }), ne ? /* @__PURE__ */ (0, C.jsx)(vje, {
- }), ne ? /* @__PURE__ */ (0, C.jsx)(xAe, {
++ }), ne ? /* @__PURE__ */ (0, C.jsx)(mje, {
field: y,
menu: b,
options: M,
@@@ -63483,7 -61830,7 +63489,7 @@@
onClose: re
}) : null]
}),
- /* @__PURE__ */ (0, C.jsx)(yje, {
- /* @__PURE__ */ (0, C.jsx)(SAe, {
++ /* @__PURE__ */ (0, C.jsx)(hje, {
credentials: t,
hidden: x,
onHidden: w,
@@@ -63501,9 -61848,9 +63507,9 @@@
/* @__PURE__ */ (0, C.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
- children: [P || I.isPending ? /* @__PURE__ */ (0, C.jsx)(zB, {
- children: [P || I.isPending ? /* @__PURE__ */ (0, C.jsx)(pB, {
++ children: [P || I.isPending ? /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
- label: N?.message || (N?.total ? `查找中:${N.checked || 0}/${N.total}` : le ? hje : gje),
- label: N?.message || (N?.total ? `查找中:${N.checked || 0}/${N.total}` : le ? vAe : yAe),
++ label: N?.message || (N?.total ? `查找中:${N.checked || 0}/${N.total}` : le ? dje : fje),
value: N?.checked,
total: N?.total
}) : null, D ? /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -63515,8 -61862,8 +63521,8 @@@
ae.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "查找结果" }),
- ae.map((e, t) => /* @__PURE__ */ (0, C.jsx)(bje, {
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "查找结果" }),
- ae.map((e, t) => /* @__PURE__ */ (0, C.jsx)(CAe, {
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "查找结果" }),
++ ae.map((e, t) => /* @__PURE__ */ (0, C.jsx)(gje, {
row: e,
at: t,
hidden: x,
@@@ -63571,22 -61918,22 +63577,22 @@@
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
- var Sje = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fU = $L({
- rowSelectionFeature: AR,
- rowSortingFeature: UR,
- rowPaginationFeature: lR,
- sortedRowModel: GR(),
- paginatedRowModel: WR()
- }), Cje = fU, wje = (e) => e.alias;
- function Tje(e, t, n) {
-var TAe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, HH = DL({
- rowSelectionFeature: iR,
- rowSortingFeature: _R,
- rowPaginationFeature: LL,
- sortedRowModel: yR(),
- paginatedRowModel: vR()
-}), EAe = HH, DAe = (e) => e.alias;
-function OAe(e, t, n) {
++var vje = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, gU = nR({
++ rowSelectionFeature: NR,
++ rowSortingFeature: KR,
++ rowPaginationFeature: fR,
++ sortedRowModel: JR(),
++ paginatedRowModel: qR()
++}), yje = gU, bje = (e) => e.alias;
++function xje(e, t, n) {
let r = n ? `name:${n}` : "", i = r && e.find((e) => e.author_key === r) || e.find((e) => e.author_name === t || e.entity_name === t);
return i ? e.filter((e) => e.author_key === i.author_key) : [];
}
- function pU({ sources: e, name: t, canonicalKey: n }) {
-function UH({ sources: e, name: t, canonicalKey: n }) {
++function _U({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(oU, {
- group: Tje(e, t, n),
- children: [/* @__PURE__ */ (0, C.jsx)(IH, {
- group: OAe(e, t, n),
++ children: [/* @__PURE__ */ (0, C.jsx)(uU, {
++ group: xje(e, t, n),
name: t
}), /* @__PURE__ */ (0, C.jsx)("b", {
className: "text-body-medium",
@@@ -63594,8 -61941,8 +63600,8 @@@
})]
});
}
- function Eje({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, S.useState)({}), [s, c] = (0, S.useState)({}), l = GB(() => o({})), u = GB(() => c({})), [d, f] = (0, S.useState)([]), [p, m] = (0, S.useState)([]), [h, g] = (0, S.useState)({
-function kAe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
- let [a, o] = (0, S.useState)({}), [s, c] = (0, S.useState)({}), l = bB(() => o({})), u = bB(() => c({})), [d, f] = (0, S.useState)([]), [p, m] = (0, S.useState)([]), [h, g] = (0, S.useState)({
++function Sje({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
++ let [a, o] = (0, S.useState)({}), [s, c] = (0, S.useState)({}), l = JB(() => o({})), u = JB(() => c({})), [d, f] = (0, S.useState)([]), [p, m] = (0, S.useState)([]), [h, g] = (0, S.useState)({
pageIndex: 0,
pageSize: 20
}), [_, v] = (0, S.useState)({
@@@ -63657,7 -62004,7 +63663,7 @@@
});
}, N = (e) => void Vs({
title: "移除创作者别名",
- body: Sje(e),
- body: TAe(e),
++ body: vje(e),
confirmLabel: "移除创作者别名",
onConfirm: () => j.mutateAsync(e)
}), P = (0, S.useRef)({
@@@ -63677,18 -62024,18 +63683,18 @@@
remove: N
};
let F = (0, S.useMemo)(() => {
- let e = QL();
- let e = EL();
++ let e = tR();
return e.columns([
e.display({
id: "select",
- header: (e) => /* @__PURE__ */ (0, C.jsx)(JP, {
- header: (e) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ header: (e) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
isSelected: e.table.getIsAllRowsSelected(),
isIndeterminate: e.table.getSelectedRowModel().rows.length > 0 && !e.table.getIsAllRowsSelected(),
"aria-label": "全选待合并别名",
onChange: (t) => e.table.toggleAllRowsSelected(t)
}),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
isSelected: e.row.getIsSelected(),
"aria-label": `选择别名 ${e.row.original.alias},归入 ${e.row.original.canonical}`,
@@@ -63697,7 -62044,7 +63703,7 @@@
}),
e.accessor("canonical", {
header: "规范创作者",
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(pU, {
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(UH, {
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(_U, {
sources: P.current.sources,
name: e.getValue()
})
@@@ -63727,18 -62074,18 +63733,18 @@@
})
]);
}, []), I = (0, S.useMemo)(() => {
- let e = QL();
- let e = EL();
++ let e = tR();
return e.columns([
e.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ header: ({ table: e }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": "全选已保存别名",
isSelected: e.getIsAllRowsSelected(),
isIndeterminate: e.getIsSomeRowsSelected(),
onChange: (t) => e.toggleAllRowsSelected(t)
}),
- cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: ({ row: e }) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
"aria-label": `选择已保存别名 ${e.original.canonical_name}`,
isSelected: e.getIsSelected(),
@@@ -63748,7 -62095,7 +63754,7 @@@
e.accessor("canonical_name", {
id: "canonical",
header: "规范创作者",
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(pU, {
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(UH, {
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(_U, {
sources: P.current.sources,
name: e.getValue(),
canonicalKey: e.row.original.canonical_key
@@@ -63765,7 -62112,7 +63771,7 @@@
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: Mk,
- leadingIcon: jk,
++ leadingIcon: Pk,
"aria-label": `移除别名 ${e.name}`,
disabled: P.current.readOnly,
...J(P.current.removing),
@@@ -63775,11 -62122,11 +63781,11 @@@
})
})
]);
- }, []), ee = KR({
- features: fU,
- }, []), ee = bR({
- features: HH,
++ }, []), ee = YR({
++ features: gU,
data: t,
columns: F,
- getRowId: wje,
- getRowId: DAe,
++ getRowId: bje,
state: {
rowSelection: a,
sorting: d,
@@@ -63796,8 -62143,8 +63802,8 @@@
},
onPaginationChange: g,
enableRowSelection: !0
- }), L = KR({
- features: Cje,
- }), L = bR({
- features: EAe,
++ }), L = YR({
++ features: yje,
data: e,
columns: I,
getRowId: (e) => e.canonical_key,
@@@ -63819,7 -62166,7 +63825,7 @@@
onPaginationChange: v
}), te = ee.getSelectedRowModel().rows.map((e) => e.original), ne = L.getSelectedRowModel().rows.flatMap((e) => e.original.aliases.map((e) => e.name)), re = J(k.isPending);
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -63830,10 -62177,10 +63836,10 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: "手动添加别名" }), /* @__PURE__ */ (0, C.jsxs)("div", {
- children: [/* @__PURE__ */ (0, C.jsx)(PA, { children: "手动添加别名" }), /* @__PURE__ */ (0, C.jsxs)("div", {
++ children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: "手动添加别名" }), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: T,
@@@ -63841,7 -62188,7 +63847,7 @@@
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: D,
@@@ -63862,14 -62209,14 +63868,14 @@@
]
})]
}),
- x ? /* @__PURE__ */ (0, C.jsx)(PA, { children: x }) : null,
- x ? /* @__PURE__ */ (0, C.jsx)(NA, { children: x }) : null,
++ x ? /* @__PURE__ */ (0, C.jsx)(IA, { children: x }) : null,
t.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "待合并" }),
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "待合并" }),
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "待合并" }),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@@ -63882,7 -62229,7 +63888,7 @@@
onClick: () => M(t, !0),
children: `全部合并(${t.length})`
}),
- /* @__PURE__ */ (0, C.jsx)(XR, {
- /* @__PURE__ */ (0, C.jsx)(wR, {
++ /* @__PURE__ */ (0, C.jsx)($R, {
label: "待合并创作者别名",
sorting: d,
options: [
@@@ -63908,7 -62255,7 +63914,7 @@@
})
]
}),
-- /* @__PURE__ */ (0, C.jsxs)(nE, {
++ /* @__PURE__ */ (0, C.jsxs)(iE, {
label: "待合并别名批量操作",
visible: te.length > 0,
count: `已选 ${te.length} 组`,
@@@ -63926,9 -62273,9 +63932,9 @@@
children: "取消选择"
})]
}),
- /* @__PURE__ */ (0, C.jsx)(JR, {
- /* @__PURE__ */ (0, C.jsx)(SR, {
++ /* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": "待合并创作者别名",
size: "sm",
sortDescriptor: d[0] ? {
@@@ -63936,26 -62283,26 +63942,26 @@@
direction: d[0].desc ? "descending" : "ascending"
} : void 0,
onSortChange: (e) => ee.getColumn(String(e.column))?.toggleSorting(e.direction === "descending"),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: ee.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: ee.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: ee.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
isRowHeader: e.column.id === "alias",
allowsSorting: e.column.getCanSort(),
children: ({ sortDirection: t }) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [oL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
- children: [PI(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [lL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": t || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
}) : null]
})
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)($N, { children: ee.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(qN, { children: ee.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(nP, { children: ee.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-board-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
}),
- /* @__PURE__ */ (0, C.jsx)(ZR, {
- /* @__PURE__ */ (0, C.jsx)(TR, {
++ /* @__PURE__ */ (0, C.jsx)(ez, {
label: "待合并创作者别名",
unit: "组",
total: t.length,
@@@ -63970,12 -62317,12 +63976,12 @@@
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "已保存别名" }),
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "已保存别名" }),
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "已保存别名" }),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${e.length} 组`
}),
- /* @__PURE__ */ (0, C.jsx)(XR, {
- /* @__PURE__ */ (0, C.jsx)(wR, {
++ /* @__PURE__ */ (0, C.jsx)($R, {
label: "已保存创作者别名",
sorting: p,
options: [{
@@@ -63994,7 -62341,7 +64000,7 @@@
})
]
}),
-- /* @__PURE__ */ (0, C.jsxs)(nE, {
++ /* @__PURE__ */ (0, C.jsxs)(iE, {
label: "已保存别名批量操作",
visible: ne.length > 0,
count: `已选 ${ne.length} 个别名`,
@@@ -64017,9 -62364,9 +64023,9 @@@
children: "取消选择"
})]
}),
- e.length ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(JR, {
- e.length ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(SR, {
++ e.length ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": "已保存创作者别名",
size: "sm",
sortDescriptor: p[0] ? {
@@@ -64027,33 -62374,33 +64033,33 @@@
direction: p[0].desc ? "descending" : "ascending"
} : void 0,
onSortChange: (e) => L.getColumn(String(e.column))?.toggleSorting(e.direction === "descending"),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: L.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: L.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: L.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
isRowHeader: e.column.id === "canonical",
allowsSorting: e.column.getCanSort(),
children: ({ sortDirection: t }) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [oL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
- children: [PI(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [lL(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": t || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
}) : null]
})
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)($N, { children: L.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(qN, { children: L.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ }, e.id)) }), /* @__PURE__ */ (0, C.jsx)(nP, { children: L.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-board-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }), /* @__PURE__ */ (0, C.jsx)(ZR, {
- }), /* @__PURE__ */ (0, C.jsx)(TR, {
++ }), /* @__PURE__ */ (0, C.jsx)(ez, {
label: "已保存创作者别名",
unit: "组",
total: e.length,
pagination: b,
onChange: v
- })] }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- })] }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ })] }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Rge,
- icon: Ege,
++ icon: Ige,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})
@@@ -64064,7 -62411,7 +64070,7 @@@
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
- var Dje = fA({
-var AAe = dA({
++var Cje = mA({
sm: {
track: "h-4 w-7",
trackRadius: {
@@@ -64126,23 -62473,23 +64132,23 @@@
}
}
});
- function Oje({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = Dje[t];
-function jAe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = AAe[t];
++function wje({ state: e, size: t = "md", shape: n = "pill" }) {
++ let r = Cje[t];
return /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: dA("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? dA("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"),
- className: uA("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? uA("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"),
++ className: pA("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? pA("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"),
children: /* @__PURE__ */ (0, C.jsx)("span", {
- className: dA("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: dA("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
- className: uA("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: uA("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
++ className: pA("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),
++ children: /* @__PURE__ */ (0, C.jsx)("span", { className: pA("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
})
});
}
- function mU({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)($ye, {
-function WH({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, C.jsx)(Mye, {
++function vU({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
++ return /* @__PURE__ */ (0, C.jsx)(Xye, {
ref: i,
...a,
- className: (t) => dA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(Oje, {
- className: (t) => uA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(jAe, {
++ className: (t) => pA("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, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(wje, {
state: e,
size: n,
shape: r
@@@ -64154,8 -62501,8 +64160,8 @@@
}
//#endregion
//#region src/react/components/legacy-avatar.ts
- var hU = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", kje = "输入女优名,到 JavDB 找她的演员页";
- function Aje(e, t) {
-var GH = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", MAe = "输入女优名,到 JavDB 找她的演员页";
-function NAe(e, t) {
++var yU = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Tje = "输入女优名,到 JavDB 找她的演员页";
++function Eje(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);
if (n.size > 1) return {
@@@ -64174,10 -62521,10 +64180,10 @@@
blocked: !1
};
}
- function jje({ card: e, picked: t, onPick: n }) {
-function PAe({ card: e, picked: t, onPick: n }) {
++function Dje({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(JP, {
- children: [/* @__PURE__ */ (0, C.jsx)(HP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -64187,7 -62534,7 +64193,7 @@@
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, C.jsx)(mA, {
- e.record ? /* @__PURE__ */ (0, C.jsx)(pA, {
++ e.record ? /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "neutral",
children: e.record
@@@ -64198,14 -62545,14 +64204,14 @@@
}) : null
]
})
- }), /* @__PURE__ */ (0, C.jsx)(IA, {
- }), /* @__PURE__ */ (0, C.jsx)(FA, {
++ }), /* @__PURE__ */ (0, C.jsx)(RA, {
href: e.url,
children: e.id
})]
});
}
- function Mje({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), l = CA(), u = () => {
-function FAe({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), l = SA(), u = () => {
++function Oje({ readOnly: e, toast: t, onAdded: n }) {
++ let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(/* @__PURE__ */ new Set()), l = TA(), u = () => {
let t = r.trim();
t && !e && l.run("lookup", (e) => Br(t, e), (e) => {
o(e), c(new Set(e.suggested));
@@@ -64218,9 -62565,9 +64224,9 @@@
a && l.run("follow", (e) => Vr(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? Aje(a, s) : null;
- }, m = a ? NAe(a, s) : null;
++ }, m = a ? Eje(a, s) : null;
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -64233,11 -62580,11 +64239,11 @@@
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "女优名",
- placeholder: kje,
- placeholder: MAe,
++ placeholder: Tje,
value: r,
- leadingIcon: Hk,
- leadingIcon: Vk,
++ leadingIcon: Wk,
enterKeyHint: "search",
isDisabled: e,
onChange: i,
@@@ -64259,16 -62606,16 +64265,16 @@@
a ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(jje, {
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(PAe, {
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "JavDB 上的演员卡" }),
++ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, C.jsx)(Dje, {
card: e,
picked: s.has(e.id),
onPick: (t) => c((n) => {
let r = new Set(n);
return t ? r.add(e.id) : r.delete(e.id), r;
})
- }, e.id)) : /* @__PURE__ */ (0, C.jsx)(NA, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, C.jsx)(NA, {
- }, e.id)) : /* @__PURE__ */ (0, C.jsx)(MA, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, C.jsx)(MA, {
++ }, e.id)) : /* @__PURE__ */ (0, C.jsx)(FA, { children: "JavDB 上没有搜到这个名字。" }),
++ a.candidates.length ? /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
}) : null,
@@@ -64295,13 -62642,13 +64301,13 @@@
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
- var Nje = $L({
- rowPaginationFeature: lR,
- rowSelectionFeature: AR,
- rowSortingFeature: UR,
- sortedRowModel: GR(),
- paginatedRowModel: WR()
- }), gU = {
-var IAe = DL({
- rowPaginationFeature: LL,
- rowSelectionFeature: iR,
- rowSortingFeature: _R,
- sortedRowModel: yR(),
- paginatedRowModel: vR()
-}), KH = {
++var kje = nR({
++ rowPaginationFeature: fR,
++ rowSelectionFeature: NR,
++ rowSortingFeature: KR,
++ sortedRowModel: JR(),
++ paginatedRowModel: qR()
++}), bU = {
select: "选择",
name: "名称",
kind: "类型",
@@@ -64311,33 -62658,33 +64317,33 @@@
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
- }, Pje = /* @__PURE__ */ new Set(["select", "actions"]), _U = () => U.invalidateQueries({
-}, LAe = /* @__PURE__ */ new Set(["select", "actions"]), qH = () => W.invalidateQueries({
++}, Aje = /* @__PURE__ */ new Set(["select", "actions"]), xU = () => U.invalidateQueries({
queryKey: Jn,
exact: !0
- }), vU = (e) => e.name || e.url;
- function Fje(e) {
-}), JH = (e) => e.name || e.url;
-function RAe(e) {
++}), SU = (e) => e.name || e.url;
++function jje(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
- function Ije({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, C.jsx)(mA, {
-function zAe({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, C.jsx)(pA, {
++function Mje({ source: e }) {
++ return e.last_error ? /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, C.jsx)(mA, {
- }) : e.enabled ? /* @__PURE__ */ (0, C.jsx)(pA, {
++ }) : e.enabled ? /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, C.jsx)(mA, {
- }) : /* @__PURE__ */ (0, C.jsx)(pA, {
++ }) : /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
- function Lje({ source: e }) {
-function BAe({ source: e }) {
++function Nje({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@@ -64346,31 -62693,31 +64352,31 @@@
} : null;
return /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${hU}`,
- dangerouslySetInnerHTML: { __html: va(vU(e), t, null, "performer") }
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${GH}`,
- dangerouslySetInnerHTML: { __html: va(JH(e), t, null, "performer") }
++ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${yU}`,
++ dangerouslySetInnerHTML: { __html: va(SU(e), t, null, "performer") }
});
}
- var Rje = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
- function zje(e) {
-var VAe = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function HAe(e) {
++var Pje = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
++function Fje(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));
return n;
}
- function yU(e, t) {
-function YH(e, t) {
++function CU(e, t) {
let n = e.length === 1 ? e[0] : null;
return Vs({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${vU(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
- body: n ? `将移除订阅源「${JH(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
++ body: n ? `将移除订阅源「${SU(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
- function Bje({ readOnly: e, toast: t }) {
-function UAe({ readOnly: e, toast: t }) {
- let n = pt({
++function Ije({ readOnly: e, toast: t }) {
+ let n = ft({
queryKey: Jn,
queryFn: ({ signal: e }) => Ir(e)
- }), r = CA(), i = n.data, a = (0, S.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, S.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, S.useState)(1), [u, d] = (0, S.useState)(20), [f, p] = (0, S.useState)([]), m = vr(a.length, u, c);
- }), r = SA(), i = n.data, a = (0, S.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, S.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, S.useState)(1), [u, d] = (0, S.useState)(20), [f, p] = (0, S.useState)([]), m = vr(a.length, u, c);
++ }), r = TA(), i = n.data, a = (0, S.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, S.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, S.useState)(1), [u, d] = (0, S.useState)(20), [f, p] = (0, S.useState)([]), m = vr(a.length, u, c);
(0, S.useEffect)(() => {
l((e) => Math.min(e, m.pages));
}, [m.pages]), (0, S.useEffect)(() => {
@@@ -64391,13 -62738,13 +64397,13 @@@
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;
- if (s(/* @__PURE__ */ new Set()), _U(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
- if (s(/* @__PURE__ */ new Set()), qH(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
++ if (s(/* @__PURE__ */ new Set()), xU(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {
let e = n[0];
r.setError(`${n.length} 条没有写入:${e.ok ? "" : V(e.error)}`);
}
},
onError: (e) => r.setError(V(e))
- }), g = (0, S.useMemo)(() => zje(a), [a]), _ = (0, S.useRef)({
- }), g = (0, S.useMemo)(() => HAe(a), [a]), _ = (0, S.useRef)({
++ }), g = (0, S.useMemo)(() => Fje(a), [a]), _ = (0, S.useRef)({
readOnly: e,
shared: g,
busy: null,
@@@ -64409,34 -62756,34 +64415,34 @@@
readOnly: e,
shared: g,
busy: r.busy,
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => Lr(e.id, t, n), () => void _U()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => zr(t, [e.id]), () => void _U()),
- remove: (e) => void yU([e], async () => {
- await Rr(e.id), t(`已移除订阅源「${vU(e)}」`), _U();
- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => Lr(e.id, t, n), () => void qH()),
- fetch: (e) => void r.run(`check-${e.id}`, (t) => zr(t, [e.id]), () => void qH()),
- remove: (e) => void YH([e], async () => {
- await Rr(e.id), t(`已移除订阅源「${JH(e)}」`), qH();
++ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => Lr(e.id, t, n), () => void xU()),
++ fetch: (e) => void r.run(`check-${e.id}`, (t) => zr(t, [e.id]), () => void xU()),
++ remove: (e) => void CU([e], async () => {
++ await Rr(e.id), t(`已移除订阅源「${SU(e)}」`), xU();
})
};
let v = (0, S.useMemo)(() => {
- let e = QL(), t = (e) => () => gU[e] || e;
- let e = EL(), t = (e) => () => KH[e] || e;
++ let e = tR(), t = (e) => () => bU[e] || e;
return e.columns([
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${vU(e.row.original)}`
- "aria-label": `选择 ${JH(e.row.original)}`
++ "aria-label": `选择 ${SU(e.row.original)}`
})
}),
- e.accessor(vU, {
- e.accessor(JH, {
++ e.accessor(SU, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = Rje(e.row.original, _.current.shared);
- let t = VAe(e.row.original, _.current.shared);
++ let t = Pje(e.row.original, _.current.shared);
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, C.jsx)(Lje, { source: e.row.original }),
- /* @__PURE__ */ (0, C.jsx)(BAe, { source: e.row.original }),
++ /* @__PURE__ */ (0, C.jsx)(Nje, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@@ -64464,13 -62811,13 +64470,13 @@@
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: Fje(e.getValue())
- children: RAe(e.getValue())
++ children: jje(e.getValue())
})
}),
e.accessor((e) => e.last_error ? "拉取失败" : e.enabled ? "已启用" : "已暂停", {
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(Ije, { source: e.row.original })
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(zAe, { source: e.row.original })
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(Mje, { source: e.row.original })
}),
e.accessor((e) => e.interval_minutes, {
id: "interval",
@@@ -64502,8 -62849,8 +64508,8 @@@
cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, C.jsx)(mU, {
- "aria-label": `启用 ${vU(e.row.original)}`,
- /* @__PURE__ */ (0, C.jsx)(WH, {
- "aria-label": `启用 ${JH(e.row.original)}`,
++ /* @__PURE__ */ (0, C.jsx)(vU, {
++ "aria-label": `启用 ${SU(e.row.original)}`,
isSelected: e.row.original.enabled,
isDisabled: _.current.readOnly,
onChange: (t) => _.current.toggle(e.row.original, t)
@@@ -64512,8 -62859,8 +64518,8 @@@
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: Vk,
- "aria-label": `拉取 ${vU(e.row.original)}`,
- leadingIcon: Bk,
- "aria-label": `拉取 ${JH(e.row.original)}`,
++ leadingIcon: Uk,
++ "aria-label": `拉取 ${SU(e.row.original)}`,
disabled: _.current.readOnly,
...J(_.current.busy === `check-${e.row.original.id}`),
onClick: () => _.current.fetch(e.row.original)
@@@ -64522,8 -62869,8 +64528,8 @@@
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: Fk,
- "aria-label": `移除 ${vU(e.row.original)}`,
- leadingIcon: Pk,
- "aria-label": `移除 ${JH(e.row.original)}`,
++ leadingIcon: Lk,
++ "aria-label": `移除 ${SU(e.row.original)}`,
disabled: _.current.readOnly,
onClick: () => _.current.remove(e.row.original)
})
@@@ -64531,8 -62878,8 +64537,8 @@@
})
})
]);
- }, []), y = (0, S.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), b = KR({
- features: Nje,
- }, []), y = (0, S.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), b = bR({
- features: IAe,
++ }, []), y = (0, S.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), b = YR({
++ features: kje,
data: a,
columns: v,
getRowId: (e) => String(e.id),
@@@ -64557,20 -62904,20 +64563,20 @@@
tone: "error",
title: "打不开订阅源",
children: V(n.error)
- }) : /* @__PURE__ */ (0, C.jsx)(NA, { children: "正在读订阅源。" });
- let x = () => void r.run("check", (e) => zr(e), () => void _U()), w = (e) => s((t) => {
- }) : /* @__PURE__ */ (0, C.jsx)(MA, { children: "正在读订阅源。" });
- let x = () => void r.run("check", (e) => zr(e), () => void qH()), w = (e) => s((t) => {
++ }) : /* @__PURE__ */ (0, C.jsx)(FA, { children: "正在读订阅源。" });
++ let x = () => void r.run("check", (e) => zr(e), () => void xU()), w = (e) => s((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
}), T = a.filter((e) => o.has(e.id)), E = a.filter((e) => e.last_error);
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)(Mje, {
- children: [/* @__PURE__ */ (0, C.jsx)(FAe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Oje, {
readOnly: e,
toast: t,
- onAdded: () => void _U()
- onAdded: () => void qH()
++ onAdded: () => void xU()
}), /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": "JAV 订阅列表",
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -64592,7 -62939,7 +64598,7 @@@
...J(r.busy === "check"),
children: "立即拉取"
}),
- /* @__PURE__ */ (0, C.jsx)(XR, {
- /* @__PURE__ */ (0, C.jsx)(wR, {
++ /* @__PURE__ */ (0, C.jsx)($R, {
label: "JAV 订阅源",
sorting: f,
onChange: (e) => {
@@@ -64608,7 -62955,7 +64614,7 @@@
"fresh"
].map((e) => ({
id: e,
- label: gU[e]
- label: KH[e]
++ label: bU[e]
}))
})
]
@@@ -64623,13 -62970,13 +64629,13 @@@
children: E.map((e) => /* @__PURE__ */ (0, C.jsx)("li", {
className: "min-w-0 truncate",
title: e.last_error || "",
- children: `${vU(e)}:${sr(e.last_error || "") || "未说明原因"}`
- children: `${JH(e)}:${sr(e.last_error || "") || "未说明原因"}`
++ children: `${SU(e)}:${sr(e.last_error || "") || "未说明原因"}`
}, e.id))
}),
children: "这些订阅源这一轮没有取到新条目。"
- }) : null, r.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: r.error }) : null]
- }) : null, r.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: r.error }) : null]
++ }) : null, r.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: r.error }) : null]
}) : null,
-- /* @__PURE__ */ (0, C.jsxs)(nE, {
++ /* @__PURE__ */ (0, C.jsxs)(iE, {
visible: T.length > 0,
label: "订阅源批量操作",
count: `已选 ${T.length} 条订阅源`,
@@@ -64661,7 -63008,7 +64667,7 @@@
size: "small",
disabled: e,
...J(h.isPending),
- onClick: () => void yU(T, () => h.mutateAsync({
- onClick: () => void YH(T, () => h.mutateAsync({
++ onClick: () => void CU(T, () => h.mutateAsync({
ids: T.map((e) => e.id),
action: "remove"
})),
@@@ -64675,10 -63022,10 +64681,10 @@@
})
]
}),
- a.length ? /* @__PURE__ */ (0, C.jsx)(JR, {
- a.length ? /* @__PURE__ */ (0, C.jsx)(SR, {
++ a.length ? /* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
onRowClick: (e) => w(Number(e)),
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": "JAV 订阅源",
size: "sm",
sortDescriptor: f[0] ? {
@@@ -64686,34 -63033,34 +64692,34 @@@
direction: f[0].desc ? "descending" : "ascending"
} : void 0,
onSortChange: (e) => b.getColumn(String(e.column))?.toggleSorting(e.direction === "descending"),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: b.getHeaderGroups()[0].headers.map((e) => {
- let t = oL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: b.getHeaderGroups()[0].headers.map((e) => {
- let t = PI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: b.getHeaderGroups()[0].headers.map((e) => {
++ let t = lL(e.column.columnDef.header, e.getContext());
++ return /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
isRowHeader: e.column.id === "name",
allowsSorting: e.column.getCanSort(),
- children: ({ sortDirection: n }) => Pje.has(e.column.id) ? /* @__PURE__ */ (0, C.jsx)(xx, { children: t }) : /* @__PURE__ */ (0, C.jsxs)("span", {
- children: ({ sortDirection: n }) => LAe.has(e.column.id) ? /* @__PURE__ */ (0, C.jsx)(vx, { children: t }) : /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: ({ sortDirection: n }) => Aje.has(e.column.id) ? /* @__PURE__ */ (0, C.jsx)(xx, { children: t }) : /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-0.5",
children: [t, e.column.getCanSort() ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
}) : null]
})
}, e.id);
- }) }), /* @__PURE__ */ (0, C.jsx)($N, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- }) }), /* @__PURE__ */ (0, C.jsx)(qN, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ }) }), /* @__PURE__ */ (0, C.jsx)(nP, { children: b.getRowModel().rows.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id)) })]
})
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: jge,
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: yge,
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: kge,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
}),
- a.length ? /* @__PURE__ */ (0, C.jsx)(ZR, {
- a.length ? /* @__PURE__ */ (0, C.jsx)(TR, {
++ a.length ? /* @__PURE__ */ (0, C.jsx)(ez, {
label: "JAV 订阅",
total: m.total,
unit: "个订阅源",
@@@ -64739,24 -63086,24 +64745,24 @@@
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
- var Vje = $L({
- rowPaginationFeature: lR,
- rowSelectionFeature: AR,
- rowSortingFeature: UR,
- paginatedRowModel: WR()
- }), bU = (e) => (Number(e) || 0).toLocaleString(), Hje = Object.fromEntries(Object.entries($n).map(([e, t]) => [t, e])), xU = 740;
- function Uje() {
-var WAe = DL({
- rowPaginationFeature: LL,
- rowSelectionFeature: iR,
- rowSortingFeature: _R,
- paginatedRowModel: vR()
-}), XH = (e) => (Number(e) || 0).toLocaleString(), GAe = Object.fromEntries(Object.entries($n).map(([e, t]) => [t, e])), ZH = 740;
-function KAe() {
++var Lje = nR({
++ rowPaginationFeature: fR,
++ rowSelectionFeature: NR,
++ rowSortingFeature: KR,
++ paginatedRowModel: qR()
++}), wU = (e) => (Number(e) || 0).toLocaleString(), Rje = Object.fromEntries(Object.entries($n).map(([e, t]) => [t, e])), TU = 740;
++function zje() {
let [e, t] = (0, S.useState)(!1), n = (0, S.useRef)(null), r = (0, S.useCallback)((e) => {
if (n.current?.disconnect(), !e) {
n.current = null;
return;
}
- let r = new ResizeObserver(() => t(e.clientWidth < xU));
- r.observe(e), n.current = r, t(e.clientWidth < xU);
- let r = new ResizeObserver(() => t(e.clientWidth < ZH));
- r.observe(e), n.current = r, t(e.clientWidth < ZH);
++ let r = new ResizeObserver(() => t(e.clientWidth < TU));
++ r.observe(e), n.current = r, t(e.clientWidth < TU);
}, []);
return (0, S.useEffect)(() => () => n.current?.disconnect(), []), [r, e];
}
- var Wje = {
-var qAe = {
++var Bje = {
select: "选择",
author: "创作者",
source: "来源",
@@@ -64765,33 -63112,33 +64771,33 @@@
checked: "上次检查",
actions: "操作"
};
- function Gje({ source: e, selected: t, onToggle: n, handlers: r }) {
-function JAe({ source: e, selected: t, onToggle: n, handlers: r }) {
++function Vje({ source: e, selected: t, onToggle: n, handlers: r }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-selected": t || void 0,
"data-follow-source-row": "",
className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2",
onClick: (e) => {
- bI(e, e.currentTarget) && n(!t);
- zF(e, e.currentTarget) && n(!t);
++ CI(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: t,
onChange: n,
"aria-label": `选择 ${e.label}`
}),
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 grow basis-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)(cU, { source: e }), e.last_error ? /* @__PURE__ */ (0, C.jsx)(lU, { text: e.last_error }) : null]
- children: [/* @__PURE__ */ (0, C.jsx)(RH, { source: e }), e.last_error ? /* @__PURE__ */ (0, C.jsx)(zH, { text: e.last_error }) : null]
++ children: [/* @__PURE__ */ (0, C.jsx)(fU, { source: e }), e.last_error ? /* @__PURE__ */ (0, C.jsx)(pU, { text: e.last_error }) : null]
}),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",
title: e.provider_label,
- children: /* @__PURE__ */ (0, C.jsx)(aU, {
- children: /* @__PURE__ */ (0, C.jsx)(FH, {
++ children: /* @__PURE__ */ (0, C.jsx)(lU, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, C.jsx)(sU, { source: e }),
- /* @__PURE__ */ (0, C.jsx)(LH, { source: e }),
++ /* @__PURE__ */ (0, C.jsx)(dU, { source: e }),
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-follow-source-controls": "",
className: "contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5",
@@@ -64800,7 -63147,7 +64806,7 @@@
className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular",
children: Xr(e)
}),
- /* @__PURE__ */ (0, C.jsx)(mU, {
- /* @__PURE__ */ (0, C.jsx)(WH, {
++ /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@@ -64812,7 -63159,7 +64818,7 @@@
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Vk,
- leadingIcon: Bk,
++ leadingIcon: Uk,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...J(r.busy),
@@@ -64821,7 -63168,7 +64827,7 @@@
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@@ -64832,11 -63179,11 +64838,11 @@@
]
});
}
- function Kje({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
-function YAe({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
++function Hje({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {
let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(ar).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = br(r, c);
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": `${t} 的关注来源`,
- className: _A({
- className: gA({
++ className: yA({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@@ -64846,7 -63193,7 +64852,7 @@@
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, C.jsx)(oU, {
- /* @__PURE__ */ (0, C.jsx)(IH, {
++ /* @__PURE__ */ (0, C.jsx)(uU, {
group: e,
name: t
}),
@@@ -64858,7 -63205,7 +64864,7 @@@
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Vk,
- leadingIcon: Bk,
++ leadingIcon: Uk,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...J(i.busy),
@@@ -64871,7 -63218,7 +64877,7 @@@
/* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex shrink-0 items-center gap-1 max-sm:mr-auto max-sm:min-w-0 max-sm:shrink max-sm:flex-wrap",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(aU, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(xx, { children: `来源:${d}` })]
- children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(FH, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(vx, { children: `来源:${d}` })]
++ children: [e.map((e) => /* @__PURE__ */ (0, C.jsx)(lU, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, C.jsx)(xx, { children: `来源:${d}` })]
}),
u ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "shrink-0 text-body-2-regular text-text-error-primary",
@@@ -64880,7 -63227,7 +64886,7 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: uge,
- leadingIcon: Qhe,
++ leadingIcon: cge,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@@ -64891,7 -63238,7 +64897,7 @@@
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? jk : Ok,
- leadingIcon: n ? Jhe : Ok,
++ leadingIcon: n ? Nk : Ak,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@@ -64903,7 -63250,7 +64909,7 @@@
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(Gje, {
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(JAe, {
++ children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(Vje, {
source: e,
handlers: i,
selected: r.has(e.id),
@@@ -64912,8 -63259,8 +64918,8 @@@
})]
});
}
- function qje(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, S.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, S.useState)(/* @__PURE__ */ new Set()), [x, w] = Uje(), [T, E] = (0, S.useState)(""), D = (0, S.useMemo)(() => gr(g, n, r, _), [
-function XAe(e) {
- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, S.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, S.useState)(/* @__PURE__ */ new Set()), [x, w] = KAe(), [T, E] = (0, S.useState)(""), D = (0, S.useMemo)(() => gr(g, n, r, _), [
++function Uje(e) {
++ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, S.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, S.useState)(/* @__PURE__ */ new Set()), [x, w] = zje(), [T, E] = (0, S.useState)(""), D = (0, S.useMemo)(() => gr(g, n, r, _), [
g,
n,
r,
@@@ -64923,7 -63270,7 +64929,7 @@@
n,
r,
_
- ]), { job: k, running: A, outcome: j, start: M } = HB({
- ]), { job: k, running: A, outcome: j, start: M } = _B({
++ ]), { job: k, running: A, outcome: j, start: M } = GB({
queryKey: Kn,
queryFn: ({ signal: e }) => wr(e),
start: (e) => Dr(e),
@@@ -65010,12 -63357,12 +65016,12 @@@
readOnly: c
};
let ae = ie.current, oe = (0, S.useMemo)(() => {
- let e = QL(), t = (e) => () => Wje[e] || e;
- let e = EL(), t = (e) => () => qAe[e] || e;
++ let e = tR(), t = (e) => () => Bje[e] || e;
return e.columns([
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(JP, {
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(ZP, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@@ -65027,7 -63374,7 +65033,7 @@@
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(oU, {
- children: [/* @__PURE__ */ (0, C.jsx)(IH, {
++ children: [/* @__PURE__ */ (0, C.jsx)(uU, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, C.jsx)("span", {
@@@ -65041,7 -63388,7 +65047,7 @@@
header: t("source"),
cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 flex-col gap-0.5",
- children: [/* @__PURE__ */ (0, C.jsx)(cU, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, C.jsx)(lU, { text: e.row.original.source.last_error }) : null]
- children: [/* @__PURE__ */ (0, C.jsx)(RH, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, C.jsx)(zH, { text: e.row.original.source.last_error }) : null]
++ children: [/* @__PURE__ */ (0, C.jsx)(fU, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, C.jsx)(pU, { text: e.row.original.source.last_error }) : null]
})
}),
e.accessor((e) => e.source.provider_label, {
@@@ -65049,13 -63396,13 +65055,13 @@@
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, C.jsx)(aU, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
- children: [/* @__PURE__ */ (0, C.jsx)(FH, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
++ children: [/* @__PURE__ */ (0, C.jsx)(lU, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(sU, { source: e.row.original.source })
- cell: (e) => /* @__PURE__ */ (0, C.jsx)(LH, { source: e.row.original.source })
++ cell: (e) => /* @__PURE__ */ (0, C.jsx)(dU, { source: e.row.original.source })
}),
e.accessor((e) => e.source.last_checked_at || "", {
id: "checked",
@@@ -65068,7 -63415,7 +65074,7 @@@
cell: (e) => /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, C.jsx)(mU, {
- /* @__PURE__ */ (0, C.jsx)(WH, {
++ /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: ae.readOnly,
@@@ -65078,7 -63425,7 +65084,7 @@@
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Vk,
- leadingIcon: Bk,
++ leadingIcon: Uk,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || ae.readOnly,
...J(ae.busy),
@@@ -65088,7 -63435,7 +65094,7 @@@
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: ae.readOnly,
onClick: () => ie.current.remove(e.row.original.source)
@@@ -65098,13 -63445,13 +65104,13 @@@
})
]);
}, [ae]), se = (0, S.useMemo)(() => {
- let e = Hje[n];
- let e = GAe[n];
++ let e = Rje[n];
return e ? [{
id: e,
desc: r === "desc"
}] : [];
- }, [n, r]), ce = (0, S.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = vr(le ? O.length : D.length, o, i), de = KR({
- features: Vje,
- }, [n, r]), ce = (0, S.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = vr(le ? O.length : D.length, o, i), de = bR({
- features: WAe,
++ }, [n, r]), ce = (0, S.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = vr(le ? O.length : D.length, o, i), de = YR({
++ features: Lje,
data: O,
columns: oe,
getRowId: (e) => String(e.source.id),
@@@ -65137,7 -63484,7 +65143,7 @@@
}
}), fe = de.getRowModel().rows, pe = le ? fe.map((e) => e.original.source.id) : D.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), me = br(s, pe), he = [...s], ge = Jr(j), _e = g.filter((e) => e.enabled && (e.last_status === "error" || e.last_status === "unauthorized")).map((e) => e.id), ve = Yr(j), ye = D.length > 0 && y.size >= D.length;
return g.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -65154,12 -63501,12 +65160,12 @@@
children: "关注列表"
}), /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: `${g.length.toLocaleString()} 个来源${v.new ? ` · ${bU(v.new)} 条未看` : ""}`
- children: `${g.length.toLocaleString()} 个来源${v.new ? ` · ${XH(v.new)} 条未看` : ""}`
++ children: `${g.length.toLocaleString()} 个来源${v.new ? ` · ${wU(v.new)} 条未看` : ""}`
})]
}),
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "primary",
- leadingIcon: Vk,
- leadingIcon: Bk,
++ leadingIcon: Uk,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
@@@ -65185,20 -63532,20 +65191,20 @@@
children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Dge,
- leadingIcon: hge,
++ leadingIcon: Tge,
"aria-label": Xn[0][1],
"aria-pressed": !le,
onClick: () => d("default")
}), /* @__PURE__ */ (0, C.jsx)(K, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Pge,
- leadingIcon: Sge,
++ leadingIcon: Mge,
"aria-label": Xn[1][1],
"aria-pressed": le,
onClick: () => d("table")
})]
}),
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
@@@ -65206,7 -63553,7 +65212,7 @@@
let t = String(e);
l(t, Sn[t]);
},
- children: bn.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: bn.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: bn.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
@@@ -65214,14 -63561,14 +65220,14 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? oge : age,
- leadingIcon: r === "asc" ? qhe : Khe,
++ leadingIcon: r === "asc" ? ige : rge,
"aria-label": nr(n, r),
onClick: () => l(n, r === "asc" ? "desc" : "asc")
}),
le ? null : /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
iconOnly: w,
- leadingIcon: ye ? Ok : jk,
- leadingIcon: ye ? Ok : Jhe,
++ leadingIcon: ye ? Ak : Nk,
"aria-label": ye ? "全部展开" : "全部收起",
onClick: () => b(ye ? /* @__PURE__ */ new Set() : new Set(D.map((e) => String(e[0].author_key || e[0].id)))),
children: ye ? "全部展开" : "全部收起"
@@@ -65234,7 -63581,7 +65240,7 @@@
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? /* @__PURE__ */ (0, C.jsx)(zB, {
- A ? /* @__PURE__ */ (0, C.jsx)(pB, {
++ A ? /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: k?.message || (k?.total ? `${k.older ? "抓取历史" : "检查更新"}:已完成 ${k.checked || 0}/${k.total} 个来源` : "正在准备检查任务"),
value: k?.checked,
@@@ -65265,7 -63612,7 +65271,7 @@@
}) : null
]
}),
-- /* @__PURE__ */ (0, C.jsxs)(nE, {
++ /* @__PURE__ */ (0, C.jsxs)(iE, {
label: "关注来源批量操作",
visible: he.length > 0,
count: `已选 ${he.length} 个来源`,
@@@ -65325,10 -63672,10 +65331,10 @@@
})
]
}),
- le ? /* @__PURE__ */ (0, C.jsx)(JR, {
- le ? /* @__PURE__ */ (0, C.jsx)(SR, {
++ le ? /* @__PURE__ */ (0, C.jsx)(ZR, {
follow: !0,
onRowClick: (e) => P(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, C.jsxs)(qR, {
- children: /* @__PURE__ */ (0, C.jsxs)(xR, {
++ children: /* @__PURE__ */ (0, C.jsxs)(XR, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: se[0] ? {
@@@ -65339,9 -63686,9 +65345,9 @@@
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, C.jsx)(XN, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in $n, n = oL(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, C.jsx)(ZN, {
- children: [/* @__PURE__ */ (0, C.jsx)(WN, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in $n, n = PI(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, C.jsx)(GN, {
++ children: [/* @__PURE__ */ (0, C.jsx)($N, { children: de.getHeaderGroups()[0].headers.map((e) => {
++ let t = e.column.id in $n, n = lL(e.column.columnDef.header, e.getContext());
++ return /* @__PURE__ */ (0, C.jsx)(eP, {
id: e.id,
allowsSorting: t,
isRowHeader: e.column.id === "source",
@@@ -65350,20 -63697,20 +65356,20 @@@
children: [n, /* @__PURE__ */ (0, C.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(RP, {})
- children: /* @__PURE__ */ (0, C.jsx)(MP, {})
++ children: /* @__PURE__ */ (0, C.jsx)(VP, {})
})]
- }) : /* @__PURE__ */ (0, C.jsx)(vx, { children: n })
+ }) : /* @__PURE__ */ (0, C.jsx)(xx, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, C.jsx)($N, {
- }) }), /* @__PURE__ */ (0, C.jsx)(qN, {
++ }) }), /* @__PURE__ */ (0, C.jsx)(nP, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, C.jsx)(nP, {
- children: fe.map((e) => /* @__PURE__ */ (0, C.jsx)(XN, {
++ children: fe.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
id: e.id,
"data-follow-selected": e.getIsSelected() || void 0,
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(iP, { children: oL(e.column.columnDef.cell, e.getContext()) }, e.id))
- children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(QN, { children: PI(e.column.columnDef.cell, e.getContext()) }, e.id))
++ children: e.getAllCells().map((e) => /* @__PURE__ */ (0, C.jsx)(sP, { children: lL(e.column.columnDef.cell, e.getContext()) }, e.id))
}, e.id))
})]
})
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(JP, {
- }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(HP, {
++ }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => F(pe, e),
@@@ -65373,7 -63720,7 +65379,7 @@@
className: "flex flex-col gap-3",
children: D.slice(ue.start, ue.end).map((e) => {
let t = String(e[0].author_key || e[0].id);
- return /* @__PURE__ */ (0, C.jsx)(Kje, {
- return /* @__PURE__ */ (0, C.jsx)(YAe, {
++ return /* @__PURE__ */ (0, C.jsx)(Hje, {
group: e,
name: fr(e, _),
handlers: ae,
@@@ -65388,7 -63735,7 +65394,7 @@@
}, t);
})
})] }),
- /* @__PURE__ */ (0, C.jsx)(ZR, {
- /* @__PURE__ */ (0, C.jsx)(TR, {
++ /* @__PURE__ */ (0, C.jsx)(ez, {
label: "关注列表",
total: ue.total,
pagination: {
@@@ -65406,7 -63753,7 +65412,7 @@@
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
- children: `未看 ${bU(v.new)} · 已看 ${bU(v.seen)} · 已保存 ${bU(v.saved)} · 已忽略 ${bU(v.ignored)}`
- children: `未看 ${XH(v.new)} · 已看 ${XH(v.seen)} · 已保存 ${XH(v.saved)} · 已忽略 ${XH(v.ignored)}`
++ children: `未看 ${wU(v.new)} · 已看 ${wU(v.seen)} · 已保存 ${wU(v.saved)} · 已忽略 ${wU(v.ignored)}`
}),
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
@@@ -65443,11 -63790,11 +65449,11 @@@
]
}) : null
]
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: jge,
- icon: yge,
++ icon: kge,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "primary",
size: "small",
href: "/subscriptions?tab=add",
@@@ -65458,14 -63805,14 +65464,14 @@@
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
- var SU = [
-var QH = [
++var EU = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
- ], CU = (e) => SU.some(([t]) => t === e);
- function wU({ term: e, figure: t, unit: n }) {
-], $H = (e) => QH.some(([t]) => t === e);
-function eU({ term: e, figure: t, unit: n }) {
++], DU = (e) => EU.some(([t]) => t === e);
++function OU({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@@ -65485,14 -63832,14 +65491,14 @@@
})]
});
}
- function Jje(e) {
- let t = pj(), { route: n, savePreference: r, toast: i, openFollow: a, openServiceConfiguration: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, S.useState)(CU(e.tab) ? e.tab : "list"), [f, p] = (0, S.useState)(Math.max(1, Math.floor(e.page) || 1)), [m, h] = (0, S.useState)(() => wn(e.sort, e.dir).sort), [g, _] = (0, S.useState)(() => wn(e.sort, e.dir).dir), [v, y] = (0, S.useState)(er(e.layout) ? e.layout : "default"), [b, x] = (0, S.useState)(cee(e.pageSize)), [w, T] = (0, S.useState)(/* @__PURE__ */ new Set()), E = ft({
-function ZAe(e) {
- let t = pj(), { route: n, savePreference: r, toast: i, openFollow: a, openServiceConfiguration: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, S.useState)($H(e.tab) ? e.tab : "list"), [f, p] = (0, S.useState)(Math.max(1, Math.floor(e.page) || 1)), [m, h] = (0, S.useState)(() => wn(e.sort, e.dir).sort), [g, _] = (0, S.useState)(() => wn(e.sort, e.dir).dir), [v, y] = (0, S.useState)(er(e.layout) ? e.layout : "default"), [b, x] = (0, S.useState)(see(e.pageSize)), [w, T] = (0, S.useState)(/* @__PURE__ */ new Set()), E = pt({
++function Wje(e) {
++ let t = gj(), { route: n, savePreference: r, toast: i, openFollow: a, openServiceConfiguration: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, S.useState)(DU(e.tab) ? e.tab : "list"), [f, p] = (0, S.useState)(Math.max(1, Math.floor(e.page) || 1)), [m, h] = (0, S.useState)(() => wn(e.sort, e.dir).sort), [g, _] = (0, S.useState)(() => wn(e.sort, e.dir).dir), [v, y] = (0, S.useState)(er(e.layout) ? e.layout : "default"), [b, x] = (0, S.useState)(cee(e.pageSize)), [w, T] = (0, S.useState)(/* @__PURE__ */ new Set()), E = ft({
queryKey: Wn,
queryFn: ({ signal: e }) => Sr(e)
- }), D = pt({
+ }), D = ft({
queryKey: Gn,
queryFn: ({ signal: e }) => Cr(e)
- }), O = pt({
+ }), O = ft({
queryKey: Jn,
queryFn: ({ signal: e }) => Ir(e)
}), k = E.data || { sources: [] }, A = D.data || {
@@@ -65514,7 -63861,7 +65520,7 @@@
dir: r === Sn[t] ? "" : r
});
}, N = hr(j), P = j.filter(ar).length, F = j.filter((e) => e.enabled).length, I = (A.providers || []).filter((e) => e.requirement === "required" && !ei(e)).length, ee = new Set((O.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- return /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
++ return /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
s ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "warning",
title: "本机只能浏览",
@@@ -65529,65 -63876,65 +65535,65 @@@
children: c
}) : null,
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: ODe,
- className: MEe,
++ className: TDe,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "关注创作者",
figure: N.length,
unit: "位"
}),
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "启用来源",
figure: F,
unit: `/ ${j.length}`
}),
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "检查失败",
figure: P,
unit: "个来源"
}),
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "未看更新",
figure: k.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "JAV 订阅",
figure: ee,
unit: "位"
}),
- /* @__PURE__ */ (0, C.jsx)(wU, {
- /* @__PURE__ */ (0, C.jsx)(eU, {
++ /* @__PURE__ */ (0, C.jsx)(OU, {
term: "未看新作",
figure: O.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(cP, {
- /* @__PURE__ */ (0, C.jsxs)(nP, {
++ /* @__PURE__ */ (0, C.jsxs)(dP, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- CU(t) && (d(t), M({ tab: t }));
- $H(t) && (d(t), M({ tab: t }));
++ DU(t) && (d(t), M({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, C.jsx)(lP, {
- /* @__PURE__ */ (0, C.jsx)(rP, {
++ /* @__PURE__ */ (0, C.jsx)(fP, {
ref: t,
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
className: "flex max-w-full flex-nowrap overflow-x-auto",
- children: SU.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(uP, {
- children: QH.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(iP, {
++ children: EU.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(pP, {
id: e,
className: "cursor-pointer whitespace-nowrap",
children: t
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, C.jsx)(qje, {
- children: /* @__PURE__ */ (0, C.jsx)(XAe, {
++ children: /* @__PURE__ */ (0, C.jsx)(Uje, {
data: k,
sort: m,
dir: g,
@@@ -65617,16 -63964,16 +65623,16 @@@
}
})
}),
- /* @__PURE__ */ (0, C.jsxs)(dP, {
- /* @__PURE__ */ (0, C.jsxs)(aP, {
++ /* @__PURE__ */ (0, C.jsxs)(mP, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, C.jsx)(xje, {
- children: [/* @__PURE__ */ (0, C.jsx)(wAe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(_je, {
data: k,
credentials: A,
readOnly: s,
toast: i,
openCredentials: o
- }), /* @__PURE__ */ (0, C.jsx)(Eje, {
- }), /* @__PURE__ */ (0, C.jsx)(kAe, {
++ }), /* @__PURE__ */ (0, C.jsx)(Sje, {
groups: k.author_aliases || [],
readOnly: s,
toast: i,
@@@ -65634,10 -63981,10 +65640,10 @@@
sources: k.sources
})]
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, C.jsx)(Bje, {
- children: /* @__PURE__ */ (0, C.jsx)(UAe, {
++ children: /* @__PURE__ */ (0, C.jsx)(Ije, {
readOnly: s,
toast: i
})
@@@ -65653,16 -64000,16 +65659,16 @@@
}
//#endregion
//#region src/react/components/board-tabs.tsx
- function TU({ value: e }) {
-function tU({ value: e }) {
++function kU({ value: e }) {
return /* @__PURE__ */ (0, C.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 Yje = "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 EU({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
-var QAe = "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 nU({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
-- let a = (0, S.useRef)(null), o = pj(a);
++var Gje = "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 AU({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
++ let a = (0, S.useRef)(null), o = gj(a);
return (0, S.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@@ -65685,14 -64032,14 +65691,14 @@@
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? wP(e.symbol) : null, i = e.value === t;
- let n = e.symbol ? vP(e.symbol) : null, i = e.value === t;
++ let n = e.symbol ? DP(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
role: "tab",
"data-tab": e.value,
"aria-selected": i,
tabIndex: i ? 0 : -1,
- className: Yje,
- className: QAe,
++ className: Gje,
onClick: () => {
i || r(e.value);
},
@@@ -65703,12 -64050,12 +65709,12 @@@
}
//#endregion
//#region src/react/index/index-tags.tsx
- var DU = () => /* @__PURE__ */ (0, C.jsx)("span", {
-var rU = () => /* @__PURE__ */ (0, C.jsx)("span", {
++var jU = () => /* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
- function Xje({ tag: e, actions: t }) {
-function $Ae({ tag: e, actions: t }) {
++function Kje({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@@ -65716,13 -64063,13 +65722,13 @@@
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": PV(t.online, e.cat),
- "data-tag-cat": uV(t.online, e.cat),
++ "data-tag-cat": RV(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, C.jsx)(DU, {}),
- /* @__PURE__ */ (0, C.jsx)(rU, {}),
++ /* @__PURE__ */ (0, C.jsx)(jU, {}),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@@ -65732,7 -64079,7 +65738,7 @@@
children: e.n.toLocaleString()
})
]
- }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(IP, { item: {
- }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(AP, { item: {
++ }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(zP, { item: {
kind: "tag",
name: e.k,
entity_id: e.entity_id,
@@@ -65740,23 -64087,23 +65746,23 @@@
} })]
});
}
- function Zje({ groups: e, actions: t }) {
-function eje({ groups: e, actions: t }) {
++function qje({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, C.jsxs)("section", {
"data-alpha-group": r,
- className: _A({
- className: gA({
++ className: yA({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, C.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, C.jsx)(TU, { value: n.length })]
- children: [e, /* @__PURE__ */ (0, C.jsx)(tU, { value: n.length })]
++ children: [e, /* @__PURE__ */ (0, C.jsx)(kU, { value: n.length })]
}), /* @__PURE__ */ (0, C.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, C.jsx)(Xje, {
- children: n.map((e) => /* @__PURE__ */ (0, C.jsx)($Ae, {
++ children: n.map((e) => /* @__PURE__ */ (0, C.jsx)(Kje, {
tag: e,
actions: t
}, e.k))
@@@ -65764,8 -64111,8 +65770,8 @@@
}, e))
});
}
- var Qje = "\xA0";
- function $je({ tags: e, actions: t }) {
-var tje = "\xA0";
-function nje({ tags: e, actions: t }) {
++var Jje = "\xA0";
++function Yje({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@@ -65775,16 -64122,16 +65781,16 @@@
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": PV(t.online, e.cat),
- "data-tag-cat": uV(t.online, e.cat),
++ "data-tag-cat": RV(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: [e.label + Qje, /* @__PURE__ */ (0, C.jsx)("span", {
- children: [e.label + tje, /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [e.label + Jje, /* @__PURE__ */ (0, C.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
})]
- }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(IP, { item: {
- }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(AP, { item: {
++ }), t.online ? null : /* @__PURE__ */ (0, C.jsx)(zP, { item: {
kind: "tag",
name: e.k,
entity_id: e.entity_id,
@@@ -65793,7 -64140,7 +65799,7 @@@
}, e.k))
});
}
- var eMe = [[
-var rje = [[
++var Xje = [[
"cloud",
"标签云",
"tags"
@@@ -65802,17 -64149,17 +65808,17 @@@
"字母表",
"text-aa"
]];
- function tMe({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
-function ije({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
-- let l = pj();
-- return /* @__PURE__ */ (0, C.jsx)(hj, {
++function Zje({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
++ let l = gj();
++ return /* @__PURE__ */ (0, C.jsx)(vj, {
label: "标签筛选",
topLabel: "标签类型",
-- top: e.map(([e, r]) => /* @__PURE__ */ (0, C.jsxs)(gj, {
++ top: e.map(([e, r]) => /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : PV(n, e),
- "data-tag-cat": e === "all" ? "all" : uV(n, e),
++ "data-tag-cat": e === "all" ? "all" : RV(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, C.jsx)(DU, {}), r]
- children: [/* @__PURE__ */ (0, C.jsx)(rU, {}), r]
++ children: [/* @__PURE__ */ (0, C.jsx)(jU, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -65832,19 -64179,19 +65838,19 @@@
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MN, {
- /* @__PURE__ */ (0, C.jsx)(EN, {
++ /* @__PURE__ */ (0, C.jsx)(FN, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${HF}`,
- children: eMe.map(([e, t, n]) => {
- let r = wP(n);
- return /* @__PURE__ */ (0, C.jsx)(NN, {
- className: `ml-auto ${sF}`,
- children: rje.map(([e, t, n]) => {
- let r = vP(n);
- return /* @__PURE__ */ (0, C.jsx)(DN, {
++ className: `ml-auto ${GF}`,
++ children: Xje.map(([e, t, n]) => {
++ let r = DP(n);
++ return /* @__PURE__ */ (0, C.jsx)(IN, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: UF,
- className: cF,
++ className: KF,
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: t,
className: "contents",
@@@ -65856,13 -64203,13 +65862,13 @@@
] })
});
}
- function nMe({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
-function aje({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
-- return /* @__PURE__ */ (0, C.jsxs)(nE, {
++function Qje({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
++ return /* @__PURE__ */ (0, C.jsxs)(iE, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -65894,7 -64241,7 +65900,7 @@@
}
//#endregion
//#region src/react/index/index-page.tsx
- var rMe = [{
-var oje = [{
++var $je = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@@ -65902,7 -64249,7 +65908,7 @@@
value: "agencies",
label: "事务所",
symbol: "briefcase"
- }], iMe = [{
-}], sje = [{
++}], eMe = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@@ -65910,7 -64257,7 +65916,7 @@@
value: "online",
label: "在线",
symbol: "rss"
- }], aMe = [
-}], cje = [
++}], tMe = [
{
value: "performers",
label: "艺人",
@@@ -65926,7 -64273,7 +65932,7 @@@
label: "在线",
symbol: "rss"
}
- ], oMe = {
-], lje = {
++], nMe = {
people: [[
"big",
"大图 · 竖幅头像",
@@@ -65946,20 -64293,20 +65952,20 @@@
"layout-grid"
]]
};
- function sMe({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, C.jsx)(zF, {
- "aria-label": `${CV[e]}索引版式`,
-function uje({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, C.jsx)(iF, {
- "aria-label": `${$B[e]}索引版式`,
++function rMe({ kind: e, layout: t, onChange: n }) {
++ return /* @__PURE__ */ (0, C.jsx)(HF, {
++ "aria-label": `${DV[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${BF}`,
- children: oMe[OV(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = wP(n);
- return /* @__PURE__ */ (0, C.jsx)(NN, {
- className: `flex-none max-board-narrow:order-3 ${aF}`,
- children: lje[iV(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = vP(n);
- return /* @__PURE__ */ (0, C.jsx)(DN, {
++ className: `flex-none max-board-narrow:order-3 ${UF}`,
++ children: nMe[MV(e) ? "company" : "people"].map(([e, t, n]) => {
++ let r = DP(n);
++ return /* @__PURE__ */ (0, C.jsx)(IN, {
value: e,
"aria-label": t,
- className: xSe,
- className: vxe,
++ className: vSe,
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: t,
className: "contents",
@@@ -65969,8 -64316,8 +65975,8 @@@
})
});
}
- var cMe = wP("search");
- function lMe({ label: e, value: t, onQuery: n }) {
-var dje = vP("search");
-function fje({ label: e, value: t, onQuery: n }) {
++var iMe = DP("search");
++function aMe({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, S.useState)(t), a = (0, S.useRef)(!1), o = (0, S.useRef)(void 0);
(0, S.useEffect)(() => () => clearTimeout(o.current), []);
let s = (e) => {
@@@ -65985,15 -64332,15 +65991,15 @@@
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, C.jsx)(_P, {
- children: /* @__PURE__ */ (0, C.jsx)(dP, {
++ children: /* @__PURE__ */ (0, C.jsx)(bP, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, C.jsx)(yP, {
- children: /* @__PURE__ */ (0, C.jsx)(pP, {
++ children: /* @__PURE__ */ (0, C.jsx)(SP, {
type: "search",
- leadingIcon: cMe,
- leadingIcon: dje,
++ leadingIcon: iMe,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
@@@ -66004,14 -64351,14 +66010,14 @@@
})
});
}
- function uMe(e) {
- let [t, n] = (0, S.useState)(() => kV({
-function pje(e) {
- let [t, n] = (0, S.useState)(() => aV({
++function oMe(e) {
++ let [t, n] = (0, S.useState)(() => NV({
kind: e.kind,
q: e.q,
scope: e.scope,
view: e.view,
category: e.category
- })), [r, i] = (0, S.useState)(e.layout), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)("any"), l = (0, S.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = CV[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
- })), [r, i] = (0, S.useState)(e.layout), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)("any"), l = (0, S.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = $B[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
++ })), [r, i] = (0, S.useState)(e.layout), [a, o] = (0, S.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, S.useState)("any"), l = (0, S.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = DV[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";
(0, S.useEffect)(() => {
if (t.kind === e.kind && t.scope === e.scope && t.category === e.category) return;
let n = !0;
@@@ -66029,7 -64376,7 +66035,7 @@@
...r
};
y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, x = NV(AV(t)), w = mt({
- }, x = lV(oV(t)), w = ht({
++ }, x = LV(PV(t)), w = mt({
queryKey: x.queryKey,
queryFn: ({ pageParam: e, signal: t }) => x.queryFn({
pageParam: e,
@@@ -66038,7 -64385,7 +66044,7 @@@
initialPageParam: 0,
getNextPageParam: x.getNextPageParam,
placeholderData: v ? de : void 0
- }), T = $Oe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = eke(T.length, !!w.hasNextPage), O = `${u}:${f}:${d}`, k = (0, S.useRef)(null), A = w.data?.pages[0]?.categories;
- }), T = nOe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = rOe(T.length, !!w.hasNextPage), O = `${u}:${f}:${d}`, k = (0, S.useRef)(null), A = w.data?.pages[0]?.categories;
++ }), T = YOe(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = XOe(T.length, !!w.hasNextPage), O = `${u}:${f}:${d}`, k = (0, S.useRef)(null), A = w.data?.pages[0]?.categories;
A && !w.isPlaceholderData && (k.current = {
key: O,
counts: A
@@@ -66050,14 -64397,14 +66056,14 @@@
let P = (0, S.useMemo)(() => u === "tags" ? T.map((t) => ({
...t,
label: e.tagLabel(t.k)
- })) : [], [T, u]), F = (0, S.useMemo)(() => u === "tags" && p === "alphabet" ? rke(P, (t) => e.tagLabel(t)) : [], [
- })) : [], [T, u]), F = (0, S.useMemo)(() => u === "tags" && p === "alphabet" ? oOe(P, (t) => e.tagLabel(t)) : [], [
++ })) : [], [T, u]), F = (0, S.useMemo)(() => u === "tags" && p === "alphabet" ? $Oe(P, (t) => e.tagLabel(t)) : [], [
P,
p,
u
]), I = (t) => {
i(t), e.savePreference({ layout: t });
- }, ee = u === "tags" ? /* @__PURE__ */ (0, C.jsx)(EU, {
- tabs: iMe,
- }, ee = u === "tags" ? /* @__PURE__ */ (0, C.jsx)(nU, {
- tabs: sje,
++ }, ee = u === "tags" ? /* @__PURE__ */ (0, C.jsx)(AU, {
++ tabs: eMe,
value: f,
label: "词表",
onChange: (e) => {
@@@ -66067,8 -64414,8 +66073,8 @@@
view: e === "online" ? "alphabet" : p
});
}
- }) : OV(u) ? /* @__PURE__ */ (0, C.jsx)(EU, {
- tabs: rMe,
- }) : iV(u) ? /* @__PURE__ */ (0, C.jsx)(nU, {
- tabs: oje,
++ }) : MV(u) ? /* @__PURE__ */ (0, C.jsx)(AU, {
++ tabs: $je,
value: u,
label: "公司类型",
onChange: (e) => b({ kind: e })
@@@ -66077,7 -64424,7 +66083,7 @@@
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : P.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, te = (g ? TV : wV).filter(N);
- }, te = (g ? tV : eV).filter(N);
++ }, te = (g ? kV : OV).filter(N);
return /* @__PURE__ */ (0, C.jsxs)("div", {
ref: l,
"data-index-page": u,
@@@ -66092,22 -64439,22 +66098,22 @@@
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: h
}),
- DV(u) ? /* @__PURE__ */ (0, C.jsx)("span", {
- rV(u) ? /* @__PURE__ */ (0, C.jsx)("span", {
++ jV(u) ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",
children: w.isPending || w.isError ? "" : D
}) : null,
- DV(u) ? /* @__PURE__ */ (0, C.jsx)(sMe, {
- rV(u) ? /* @__PURE__ */ (0, C.jsx)(uje, {
++ jV(u) ? /* @__PURE__ */ (0, C.jsx)(rMe, {
kind: u,
layout: r,
onChange: I
}) : null,
- /* @__PURE__ */ (0, C.jsx)(LP, { kind: u === "tags" ? "tag" : u === "studios" ? "studio" : u === "agencies" ? "agency" : u === "creators" ? "creator" : "performer" }),
- /* @__PURE__ */ (0, C.jsx)(jP, { kind: u === "tags" ? "tag" : u === "studios" ? "studio" : u === "agencies" ? "agency" : u === "creators" ? "creator" : "performer" }),
++ /* @__PURE__ */ (0, C.jsx)(BP, { kind: u === "tags" ? "tag" : u === "studios" ? "studio" : u === "agencies" ? "agency" : u === "creators" ? "creator" : "performer" }),
/* @__PURE__ */ (0, C.jsx)("span", {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, C.jsx)(lMe, {
- /* @__PURE__ */ (0, C.jsx)(fje, {
++ /* @__PURE__ */ (0, C.jsx)(aMe, {
label: `过滤${h}`,
value: d,
onQuery: (e) => {
@@@ -66116,8 -64463,8 +66122,8 @@@
})
]
}),
- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, C.jsx)(EU, {
- tabs: aMe,
- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, C.jsx)(nU, {
- tabs: cje,
++ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, C.jsx)(AU, {
++ tabs: tMe,
value: _ ? "online" : u,
label: "人物名册",
onChange: (t) => {
@@@ -66131,8 -64478,8 +66137,8 @@@
ee,
u === "performers" && f === "local" ? /* @__PURE__ */ (0, C.jsx)("div", {
"aria-label": "身份分类",
- className: SV,
- children: xV.filter((e) => e[0] === m || N(e)).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(K, {
- className: QB,
- children: ZB.filter((e) => e[0] === m || N(e)).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(K, {
++ className: EV,
++ children: TV.filter((e) => e[0] === m || N(e)).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(K, {
variant: m === e ? "primary" : "secondary",
size: "small",
"aria-pressed": m === e,
@@@ -66140,7 -64487,7 +66146,7 @@@
children: t
}, e))
}) : null,
- u === "tags" ? /* @__PURE__ */ (0, C.jsx)(tMe, {
- u === "tags" ? /* @__PURE__ */ (0, C.jsx)(ije, {
++ u === "tags" ? /* @__PURE__ */ (0, C.jsx)(Zje, {
categories: te,
category: m,
online: g,
@@@ -66165,28 -64512,28 +66171,28 @@@
mode: p
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: wP("alert"),
- if (w.isError) return /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: vP("alert"),
++ if (w.isError) return /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: DP("alert"),
title: `没能读取${h}`,
actions: /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: () => void w.refetch(),
children: "重试"
}),
- children: Ft(w.error)
+ children: Pt(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, C.jsx)(fMe, {
- if (!T.length) return /* @__PURE__ */ (0, C.jsx)(hje, {
++ if (!T.length) return /* @__PURE__ */ (0, C.jsx)(cMe, {
kind: u,
filtered: !!d || m !== "all",
online: g || _,
configurable: e.configurable
});
- if (_) return /* @__PURE__ */ (0, C.jsx)(oke, {
- if (_) return /* @__PURE__ */ (0, C.jsx)(lOe, {
++ if (_) return /* @__PURE__ */ (0, C.jsx)(nke, {
items: T,
layout: r,
props: e
});
- if (DV(u)) return /* @__PURE__ */ (0, C.jsx)(LV, {
- if (rV(u)) return /* @__PURE__ */ (0, C.jsx)(pV, {
++ if (jV(u)) return /* @__PURE__ */ (0, C.jsx)(VV, {
kind: u,
items: T,
layout: r,
@@@ -66197,10 -64544,10 +66203,10 @@@
picked: a,
press: L
};
- return p === "alphabet" ? /* @__PURE__ */ (0, C.jsx)(Zje, {
- return p === "alphabet" ? /* @__PURE__ */ (0, C.jsx)(eje, {
++ return p === "alphabet" ? /* @__PURE__ */ (0, C.jsx)(qje, {
groups: F,
actions: t
- }) : /* @__PURE__ */ (0, C.jsx)($je, {
- }) : /* @__PURE__ */ (0, C.jsx)(nje, {
++ }) : /* @__PURE__ */ (0, C.jsx)(Yje, {
tags: P,
actions: t
});
@@@ -66215,13 -64562,13 +66221,13 @@@
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, C.jsx)(yA, {
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, C.jsx)(vA, {
++ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, C.jsx)(xA, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, C.jsx)(nMe, {
- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, C.jsx)(aje, {
++ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, C.jsx)(Qje, {
count: a.size,
match: s,
onMatch: c,
@@@ -66234,31 -64581,31 +66240,31 @@@
]
});
}
- var dMe = {
-var mje = {
++var sMe = {
tags: "标签",
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所"
};
- function fMe({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: wP("search"),
-function hje({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: vP("search"),
++function cMe({ kind: e, filtered: t, online: n, configurable: r }) {
++ if (t) return /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: DP("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : dMe[e], a = /* @__PURE__ */ (0, C.jsx)(gA, {
- let i = n && e === "performers" ? "创作者" : mje[e], a = /* @__PURE__ */ (0, C.jsx)(hA, {
++ let i = n && e === "performers" ? "创作者" : sMe[e], a = /* @__PURE__ */ (0, C.jsx)(vA, {
variant: !r || n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: wP(e === "tags" ? "tags" : "user-round"),
- return /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: vP(e === "tags" ? "tags" : "user-round"),
++ return /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: DP(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
actions: n ? a : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [r ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "primary",
@@@ -66268,15 -64615,15 +66274,15 @@@
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
- var OU = {
-var iU = {
++var MU = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
- }, pMe = (e) => OU[e.junk_kind || "other"] || OU.other;
- function mMe(e) {
-}, gje = (e) => iU[e.junk_kind || "other"] || iU.other;
-function _je(e) {
++}, lMe = (e) => MU[e.junk_kind || "other"] || MU.other;
++function uMe(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@@ -66287,21 -64634,21 +66293,21 @@@
glyph: "check"
};
}
- var kU = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), hMe = (e, t) => [
-var aU = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), vje = (e, t) => [
++var NU = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), dMe = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
- function gMe({ kind: e, view: t }) {
-function yje({ kind: e, view: t }) {
++function fMe({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
- async function _Me(e, t) {
- let n = await yn(`/api/ads?${gMe(e)}`, t);
-async function bje(e, t) {
- let n = await H(`/api/ads?${yje(e)}`, t);
++async function pMe(e, t) {
++ let n = await yn(`/api/ads?${fMe(e)}`, t);
return {
...n,
items: n.items || []
@@@ -66309,19 -64656,19 +66315,19 @@@
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
- function AU({ name: e }) {
-function oU({ name: e }) {
++function PU({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- var jU = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
- function vMe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, S.useRef)(null), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), d = e.junk_kind || "other", [f, p] = pMe(e), m = String(e.name || ""), h = mMe(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]") || jU(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
-var sU = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function xje({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, S.useRef)(null), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), d = e.junk_kind || "other", [f, p] = gje(e), m = String(e.name || ""), h = _je(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]") || sU(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
++var FU = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
++function mMe({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
++ let o = (0, S.useRef)(null), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), d = e.junk_kind || "other", [f, p] = lMe(e), m = String(e.name || ""), h = uMe(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]") || FU(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), jU(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
- t.stopPropagation(), sU(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
++ t.stopPropagation(), FU(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) => {
@@@ -66352,7 -64699,7 +66358,7 @@@
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: xI,
- onMouseDown: BF,
++ onMouseDown: wI,
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-pic": "",
@@@ -66360,7 -64707,7 +66366,7 @@@
children: [
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, C.jsx)(AU, { name: p }), /* @__PURE__ */ (0, C.jsx)("b", { children: f })]
- children: [/* @__PURE__ */ (0, C.jsx)(oU, { name: p }), /* @__PURE__ */ (0, C.jsx)("b", { children: f })]
++ children: [/* @__PURE__ */ (0, C.jsx)(PU, { name: p }), /* @__PURE__ */ (0, C.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-art": "thumb",
@@@ -66372,7 -64719,7 +66378,7 @@@
}),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, C.jsx)(AU, { name: "check" })
- children: /* @__PURE__ */ (0, C.jsx)(oU, { name: "check" })
++ children: /* @__PURE__ */ (0, C.jsx)(PU, { name: "check" })
})
]
}),
@@@ -66409,7 -64756,7 +66415,7 @@@
children: [s === "reveal" ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: No("正在定位") }
- }) : /* @__PURE__ */ (0, C.jsx)(AU, { name: "folder-open" }), /* @__PURE__ */ (0, C.jsx)("span", {
- }) : /* @__PURE__ */ (0, C.jsx)(oU, { name: "folder-open" }), /* @__PURE__ */ (0, C.jsx)("span", {
++ }) : /* @__PURE__ */ (0, C.jsx)(PU, { name: "folder-open" }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@@ -66421,7 -64768,7 +66427,7 @@@
"aria-label": h.label,
...w(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, C.jsx)(AU, { name: h.glyph }), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(oU, { name: h.glyph }), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(PU, { name: h.glyph }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@@ -66433,7 -64780,7 +66439,7 @@@
"aria-label": "移入回收站",
...w("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, C.jsx)(AU, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(oU, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(PU, { name: "trash" }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@@ -66448,7 -64795,7 +66454,7 @@@
]
});
}
- var yMe = (0, S.memo)(vMe), MU = [
-var Sje = (0, S.memo)(xje), cU = [
++var hMe = (0, S.memo)(mMe), IU = [
[
"",
"全部",
@@@ -66484,65 -64831,65 +66490,65 @@@
"其它",
"hard-drive"
]
- ], bMe = (e) => MU.find(([t]) => t === e)?.[0] ?? "";
- function NU(e) {
-], Cje = (e) => cU.find(([t]) => t === e)?.[0] ?? "";
-function lU(e) {
++], gMe = (e) => IU.find(([t]) => t === e)?.[0] ?? "";
++function LU(e) {
let t = new URLSearchParams(e);
return {
- kind: bMe(t.get("type")),
- kind: Cje(t.get("type")),
++ kind: gMe(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
- function PU(e = "", t = "pending") {
-function uU(e = "", t = "pending") {
++function RU(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 FU(e) {
-function dU(e) {
++function zU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: PU("", "pending")
- href: uU("", "pending")
++ href: RU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: PU("", "dismissed")
- href: uU("", "dismissed")
++ href: RU("", "dismissed")
};
}
- var IU = (e) => e === "dismissed" ? "已排除" : "待判断", LU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
- function xMe({ 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)}${B(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">${ko(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>`;
-var fU = (e) => e === "dismissed" ? "已排除" : "待判断", pU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function wje({ kind: e, view: t }) {
- let n = cU.map(([n, r, i]) => `<a href="${uU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${pU(i)}${B(r)}</a>`).join(""), r = dU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${ko(fU(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\"" : ""}>${pU(r.glyph)}${r.label}</a></nav></div></div></div>`;
++var BU = (e) => e === "dismissed" ? "已排除" : "待判断", VU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
++function _Me({ kind: e, view: t }) {
++ let n = IU.map(([n, r, i]) => `<a href="${RU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${VU(i)}${B(r)}</a>`).join(""), r = zU(t);
++ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${ko(BU(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\"" : ""}>${VU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
//#endregion
//#region src/react/junk-queue/junk-count.tsx
- function RU({ name: e }) {
-function mU({ name: e }) {
++function HU({ name: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
}
- function zU({ scope: e, count: t }) {
-function hU({ scope: e, count: t }) {
++function UU({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [" ", /* @__PURE__ */ (0, C.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
- function SMe({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = YP(), a = (0, S.useRef)(null), { kind: o, view: s } = e, c = bj(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? MU.map(([e]) => kU(t, e)).join(",") : ""}`), l = FU(s), u = (e) => {
-function Tje({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = UP(), a = (0, S.useRef)(null), { kind: o, view: s } = e, c = bj(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? cU.map(([e]) => aU(t, e)).join(",") : ""}`), l = dU(s), u = (e) => {
++function vMe({ route: e, page: t, failed: n, onNavigate: r }) {
++ let i = QP(), a = (0, S.useRef)(null), { kind: o, view: s } = e, c = Cj(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? IU.map(([e]) => NU(t, e)).join(",") : ""}`), l = zU(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") || PU()));
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || uU()));
++ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || RU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, C.jsx)(JH, {
- label: IU(s),
- children: /* @__PURE__ */ (0, C.jsx)(wH, {
- label: fU(s),
++ children: /* @__PURE__ */ (0, C.jsx)(QH, {
++ label: BU(s),
figure: d,
pending: !t && !n,
flush: !0
@@@ -66562,17 -64909,17 +66568,17 @@@
onClick: u,
onPointerLeave: c.leave,
children: [
- MU.map(([e, n, r]) => /* @__PURE__ */ (0, C.jsxs)("a", {
- href: PU(e, s),
- cU.map(([e, n, r]) => /* @__PURE__ */ (0, C.jsxs)("a", {
- href: uU(e, s),
++ IU.map(([e, n, r]) => /* @__PURE__ */ (0, C.jsxs)("a", {
++ href: RU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, C.jsx)(RU, { name: r }),
- /* @__PURE__ */ (0, C.jsx)(mU, { name: r }),
++ /* @__PURE__ */ (0, C.jsx)(HU, { name: r }),
n,
- /* @__PURE__ */ (0, C.jsx)(zU, {
- /* @__PURE__ */ (0, C.jsx)(hU, {
++ /* @__PURE__ */ (0, C.jsx)(UU, {
scope: e,
- count: t ? kU(t, e) : 0
- count: t ? aU(t, e) : 0
++ count: t ? NU(t, e) : 0
})
]
}, e || "all")),
@@@ -66586,9 -64933,9 +66592,9 @@@
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, C.jsx)(RU, { name: l.glyph }),
- /* @__PURE__ */ (0, C.jsx)(mU, { name: l.glyph }),
++ /* @__PURE__ */ (0, C.jsx)(HU, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, C.jsx)(zU, {
- /* @__PURE__ */ (0, C.jsx)(hU, {
++ /* @__PURE__ */ (0, C.jsx)(UU, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@@ -66601,33 -64948,33 +66607,33 @@@
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
- var CMe = wP("check"), wMe = (e, t) => e[1] === t.view && e[2] === t.kind;
- function TMe(e) {
-var Eje = vP("check"), Dje = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Oje(e) {
++var yMe = DP("check"), bMe = (e, t) => e[1] === t.view && e[2] === t.kind;
++function xMe(e) {
let t = {
kind: e.kind,
view: e.view
- }, n = pt({
- queryKey: vje(t, e.revision),
- queryFn: ({ signal: e }) => bje(t, e),
- placeholderData: (e, n) => n && Dje(n.queryKey, t) ? e : void 0
+ }, n = ft({
- queryKey: hMe(t, e.revision),
- queryFn: ({ signal: e }) => _Me(t, e),
- placeholderData: (e, n) => n && wMe(n.queryKey, t) ? e : void 0
++ queryKey: dMe(t, e.revision),
++ queryFn: ({ signal: e }) => pMe(t, e),
++ placeholderData: (e, n) => n && bMe(n.queryKey, t) ? e : void 0
});
(0, S.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = EMe(e.countRow), i = n.isPending;
- let r = kje(e.countRow), i = n.isPending;
++ let r = SMe(e.countRow), i = n.isPending;
(0, S.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, S.useLayoutEffect)(() => {
r && n.data && Wo(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(SMe, {
- let { navigate: a } = e.actions, o = r ? (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(Tje, {
++ let { navigate: a } = e.actions, o = r ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(vMe, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [o, /* @__PURE__ */ (0, C.jsx)(DMe, {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [o, /* @__PURE__ */ (0, C.jsx)(Aje, {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [o, /* @__PURE__ */ (0, C.jsx)(CMe, {
props: e,
data: n.data,
pending: i,
@@@ -66635,7 -64982,7 +66641,7 @@@
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
- function EMe(e) {
-function kje(e) {
++function SMe(e) {
let [t, n] = (0, S.useState)(null);
return (0, S.useLayoutEffect)(() => {
if (!e) return;
@@@ -66645,8 -64992,8 +66651,8 @@@
};
}, [e]), t;
}
- function DMe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = _I(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, S.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, S.useCallback)(() => {
-function Aje({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = IF(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, S.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, S.useCallback)(() => {
++function CMe({ props: e, data: t, pending: n, error: r, retry: i }) {
++ let a = bI(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, S.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, S.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -66654,14 -65001,14 +66660,14 @@@
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, C.jsx)(vI, {
- if (!t) return /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(r),
++ if (!t) return /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: CMe,
- return /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: Eje,
++ return /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: yMe,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@@ -66671,7 -65018,7 +66677,7 @@@
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, C.jsx)(yMe, {
- children: u.map((t) => /* @__PURE__ */ (0, C.jsx)(Sje, {
++ children: u.map((t) => /* @__PURE__ */ (0, C.jsx)(hMe, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@@ -66680,7 -65027,7 +66686,7 @@@
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, C.jsx)(OMe, { onMore: f }, s) : null,
- u.length < l.length ? /* @__PURE__ */ (0, C.jsx)(jje, { onMore: f }, s) : null,
++ u.length < l.length ? /* @__PURE__ */ (0, C.jsx)(wMe, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, C.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@@ -66690,7 -65037,7 +66696,7 @@@
})()]
});
}
- function OMe({ onMore: e }) {
-function jje({ onMore: e }) {
++function wMe({ onMore: e }) {
let t = (0, S.useRef)(null);
return (0, S.useEffect)(() => {
let n = t.current;
@@@ -66708,9 -65055,9 +66714,9 @@@
}
//#endregion
//#region src/react/jav/discovery-faces.tsx
- function kMe({ item: e }) {
-function Mje({ item: e }) {
++function TMe({ item: e }) {
let t = e.performer_refs?.length ? e.performer_refs : [...new Set(e.performers.split(/[,,、;/]/).filter(Boolean))].map((e) => ({ name: e })), n = t.slice(0, 5).map((t) => {
- let n = t.source_avatar && t.source_actor_id && !t.has_image ? { children: /* @__PURE__ */ (0, C.jsx)(jH, {
- let n = t.source_avatar && t.source_actor_id && !t.has_image ? { children: /* @__PURE__ */ (0, C.jsx)(sH, {
++ let n = t.source_avatar && t.source_actor_id && !t.has_image ? { children: /* @__PURE__ */ (0, C.jsx)(FH, {
code: e.code,
person: t
}) } : { dangerouslySetInnerHTML: { __html: va(t.name, t, null) } };
@@@ -66732,18 -65079,18 +66738,18 @@@
}
//#endregion
//#region src/react/jav/jav-navigation.ts
- var BU = [
-var gU = [
++var WU = [
["library", "馆藏"],
["discover", "发现"],
["wants", "想要"]
- ], VU = (e) => BU.some(([t]) => t === e) ? e : "library", AMe = (e) => VU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
- function jMe(e) {
-], _U = (e) => gU.some(([t]) => t === e) ? e : "library", Nje = (e) => _U(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Pje(e) {
++], GU = (e) => WU.some(([t]) => t === e) ? e : "library", EMe = (e) => GU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
++function DMe(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
//#endregion
//#region src/react/jav/discovery-sorts.ts
- var HU = [
-var vU = [
++var KU = [
[
"taste",
"口味",
@@@ -66751,7 -65098,7 +66757,7 @@@
],
[
"release_date",
-- sE[1],
++ lE[1],
"按发行日期排序"
],
[
@@@ -66770,10 -65117,10 +66776,10 @@@
"按番号排序"
]
];
- function UU(e) {
-function yU(e) {
++function qU(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
- function MMe(e) {
-function Fje(e) {
++function OMe(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@@ -66799,8 -65146,8 +66805,8 @@@
}
//#endregion
//#region src/jav-skeleton.ts
- var WU = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, NMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, GU = "w-full min-w-0";
- function KU() {
-var bU = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, Ije = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, xU = "w-full min-w-0";
-function SU() {
++var JU = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, kMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, YU = "w-full min-w-0";
++function XU() {
return [
"w-20",
"w-16",
@@@ -66810,26 -65157,26 +66816,26 @@@
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-7.5 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
- function qU(e, t = DE()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${WU("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${NMe("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">${WU("80%")}${WU("60%")}${WU("40%")}</div></div>`).join("")}</div>`;
-function CU(e, t = DE()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${bU("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${Ije("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">${bU("80%")}${bU("60%")}${bU("40%")}</div></div>`).join("")}</div>`;
-- let n = ME({
-- ...jE({
++function ZU(e, t = kE()) {
++ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${JU("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${kMe("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">${JU("80%")}${JU("60%")}${JU("40%")}</div></div>`).join("")}</div>`;
++ let n = PE({
++ ...NE({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${GU}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
- return `<div data-media-grid class="${xU}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
++ return `<div data-media-grid class="${YU}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${WU("85%")}${WU("65%")}</div><div data-media-byline>${WU("55%")}</div>
- <div data-media-title>${bU("85%")}${bU("65%")}</div><div data-media-byline>${bU("55%")}</div>
++ <div data-media-title>${JU("85%")}${JU("65%")}</div><div data-media-byline>${JU("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<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>`;
}
- function PMe(e) {
-function Lje(e) {
++function AMe(e) {
let t = e === "wants" ? "筛选想要" : "筛选推荐";
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 flex-wrap items-center justify-between gap-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2>${xo({
@@@ -66837,42 -65184,42 +66843,42 @@@
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${BU.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">${gU.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">${WU.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>
<form aria-label="${t}">${bo("筛选番号、女优或标题", "", t)}</form>
- ${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>${WU("100%")}</div>${qU(e)}` : `<section class="flex min-w-0 flex-col gap-4">${FMe()}${qU(e)}</section>`}</div></div>`;
- ${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>${bU("100%")}</div>${CU(e)}` : `<section class="flex min-w-0 flex-col gap-4">${Rje()}${CU(e)}</section>`}</div></div>`;
++ ${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>${JU("100%")}</div>${ZU(e)}` : `<section class="flex min-w-0 flex-col gap-4">${jMe()}${ZU(e)}</section>`}</div></div>`;
}
- function FMe() {
-function Rje() {
-- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 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="" ${DE() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${vo(t, "size-4")}</span>`;
++function jMe() {
++ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-7.5 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="" ${kE() === e ? "data-selected=\"true\"" : ""} class="flex size-7.5 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${vo(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>${KU()}</div></div>
- <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>${SU()}</div></div>
++ <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>${XU()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<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>
${yo()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${vo("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>
- ${HU.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? vo("arrow-down", "size-3.5") : ""}</button>`).join("")}
- ${vU.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? vo("arrow-down", "size-3.5") : ""}</button>`).join("")}
++ ${KU.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? vo("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
//#endregion
//#region src/react/activity/work-code.ts
- var JU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), YU = (e, t) => !!JU(e) && JU(e) === JU(t);
-var wU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), TU = (e, t) => !!wU(e) && wU(e) === wU(t);
++var QU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), $U = (e, t) => !!QU(e) && QU(e) === QU(t);
//#endregion
//#region src/react/activity/resource-search.tsx
- function IMe({ className: e }) {
-function zje({ className: e }) {
++function MMe({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: No("") }
});
}
- function LMe(e) {
-function Bje(e) {
++function NMe(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
- function RMe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(() => LMe(t)), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(null), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(""), y = CA(), b = (0, S.useRef)(null);
-function Vje({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(() => Bje(t)), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(null), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(""), y = SA(), b = (0, S.useRef)(null);
++function PMe({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
++ let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(() => NMe(t)), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(null), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(""), y = TA(), b = (0, S.useRef)(null);
(0, S.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@@ -66886,9 -65233,9 +66892,9 @@@
m(e), g(t);
}), i) {
let e = new AbortController();
- b.current = e, H(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
+ b.current = e, yn(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => YU(e.code, t));
- let r = (n.items || []).find((e) => TU(e.code, t));
++ let r = (n.items || []).find((e) => $U(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@@ -66909,18 -65256,18 +66915,18 @@@
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
- t ? /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ t ? /* @__PURE__ */ (0, C.jsxs)(FA, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? IMe : Hk,
- leadingIcon: y.busy ? zje : Vk,
++ leadingIcon: y.busy ? MMe : Wk,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
@@@ -66930,7 -65277,7 +66936,7 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: "优先寻找" }), /* @__PURE__ */ (0, C.jsxs)(NF, {
- children: [/* @__PURE__ */ (0, C.jsx)(PA, { children: "优先寻找" }), /* @__PURE__ */ (0, C.jsxs)(ZP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: "优先寻找" }), /* @__PURE__ */ (0, C.jsxs)(IF, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@@ -66938,15 -65285,15 +66944,15 @@@
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, C.jsx)(PF, {
- /* @__PURE__ */ (0, C.jsx)(QP, {
++ /* @__PURE__ */ (0, C.jsx)(LF, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, C.jsx)(PF, {
- /* @__PURE__ */ (0, C.jsx)(QP, {
++ /* @__PURE__ */ (0, C.jsx)(LF, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, C.jsx)(PF, {
- /* @__PURE__ */ (0, C.jsx)(QP, {
++ /* @__PURE__ */ (0, C.jsx)(LF, {
id: "uncensored",
children: "无码"
})
@@@ -66955,32 -65302,32 +66961,32 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(CP, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, C.jsx)(bP, {
- }), /* @__PURE__ */ (0, C.jsx)(mP, {
++ }), /* @__PURE__ */ (0, C.jsx)(CP, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, C.jsx)(NA, {
- y.busy ? /* @__PURE__ */ (0, C.jsx)(MA, {
++ y.busy ? /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
- y.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, C.jsx)(MA, {
++ y.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: y.error }) : null,
++ p?.error ? /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, C.jsx)(NA, {
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, C.jsx)(MA, {
++ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, C.jsx)(NA, { children: e }, e)),
- p?.warnings.map((e) => /* @__PURE__ */ (0, C.jsx)(MA, { children: e }, e)),
++ p?.warnings.map((e) => /* @__PURE__ */ (0, C.jsx)(FA, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, C.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
@@@ -66990,7 -65337,7 +66996,7 @@@
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: [
- /* @__PURE__ */ (0, C.jsx)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@@ -67015,19 -65362,19 +67021,19 @@@
}
//#endregion
//#region src/react/activity/cloud-download-dialog.tsx
- var zMe = {
-var Hje = {
++var FMe = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "远端已有同一任务,已接管"
};
- function XU({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, C.jsx)(xP, {
-function EU({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, C.jsx)(hP, {
++function eW({ prefill: e, close: t, receipt: n, provider: r }) {
++ return /* @__PURE__ */ (0, C.jsx)(wP, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, C.jsx)(BMe, {
- children: e ? /* @__PURE__ */ (0, C.jsx)(Uje, {
++ children: e ? /* @__PURE__ */ (0, C.jsx)(IMe, {
prefill: e,
close: t,
receipt: n,
@@@ -67035,26 -65382,26 +67041,26 @@@
}) : null
});
}
- function BMe({ prefill: e, close: t, receipt: n, provider: r }) {
-function Uje({ prefill: e, close: t, receipt: n, provider: r }) {
- let i = pt({
- queryKey: tj,
- queryFn: ({ signal: e }) => H(`${ej}?limit=50`, e),
- refetchInterval: (e) => nj(e.state.data)
++function IMe({ prefill: e, close: t, receipt: n, provider: r }) {
+ let i = ft({
- queryKey: tj,
- queryFn: ({ signal: e }) => yn(`${ej}?limit=50`, e),
- refetchInterval: (e) => nj(e.state.data)
++ queryKey: ij,
++ queryFn: ({ signal: e }) => yn(`${rj}?limit=50`, e),
++ refetchInterval: (e) => aj(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, C.jsx)(Hj, {
- children: [/* @__PURE__ */ (0, C.jsx)(Vj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Gj, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, C.jsx)(K, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: Mk,
- leadingIcon: jk,
++ leadingIcon: Pk,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, C.jsx)(VMe, {
- return a ? /* @__PURE__ */ (0, C.jsx)(Wje, {
++ return a ? /* @__PURE__ */ (0, C.jsx)(LMe, {
header: o,
snapshot: a,
prefill: e,
@@@ -67083,8 -65430,8 +67089,8 @@@
]
});
}
- function VMe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = T(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, S.useState)(c?.key || "pikpak"), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(n.code ?? ""), [h, g] = (0, S.useState)(c?.target || ""), [_, v] = (0, S.useState)(n.code ? n : null), [y, b] = (0, S.useState)(""), x = t.available && s.some((e) => e.key === l), w = CA(), E = (0, S.useRef)(null), D = (e) => {
-function Wje({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = T(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, S.useState)(c?.key || "pikpak"), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(n.code ?? ""), [h, g] = (0, S.useState)(c?.target || ""), [_, v] = (0, S.useState)(n.code ? n : null), [y, b] = (0, S.useState)(""), x = t.available && s.some((e) => e.key === l), w = SA(), E = (0, S.useRef)(null), D = (e) => {
++function LMe({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
++ let o = T(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, S.useState)(c?.key || "pikpak"), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(n.code ?? ""), [h, g] = (0, S.useState)(c?.target || ""), [_, v] = (0, S.useState)(n.code ? n : null), [y, b] = (0, S.useState)(""), x = t.available && s.some((e) => e.key === l), w = TA(), E = (0, S.useRef)(null), D = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, C.jsxs)("form", {
@@@ -67100,14 -65447,14 +67106,14 @@@
title: _?.title,
origin: _?.origin
};
- b(""), w.run("submit", (e) => H(ej, t, "POST", e), (e) => {
- b(""), w.run("submit", (e) => U(ej, t, "POST", e), (e) => {
-- o.invalidateQueries({ queryKey: tj });
- let t = zMe[e.outcome];
- let t = Hje[e.outcome];
++ b(""), w.run("submit", (e) => H(rj, t, "POST", e), (e) => {
++ o.invalidateQueries({ queryKey: ij });
++ let t = FMe[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
-- let n = rj(e.task);
++ let n = oj(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@@ -67131,7 -65478,7 +67137,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, C.jsx)(NA, { children: [
- }), _ ? /* @__PURE__ */ (0, C.jsx)(MA, { children: [
++ }), _ ? /* @__PURE__ */ (0, C.jsx)(FA, { children: [
_.performers,
_.studio,
_.release_date,
@@@ -67139,22 -65486,22 +67145,22 @@@
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(RMe, {
- /* @__PURE__ */ (0, C.jsx)(Vje, {
++ /* @__PURE__ */ (0, C.jsx)(PMe, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- YU(e, _?.code) || (v(YU(e, n.code) ? n : null), f("")), m(e);
- TU(e, _?.code) || (v(TU(e, n.code) ? n : null), f("")), m(e);
++ $U(e, _?.code) || (v($U(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? YU(t?.code, e.code) ? {
- onWork: (e) => v((t) => e ? TU(t?.code, e.code) ? {
++ onWork: (e) => v((t) => e ? $U(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : YU(t?.code, n.code) ? t : null),
- } : e : TU(t?.code, n.code) ? t : null),
++ } : e : $U(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), E.current?.focus();
}
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
ref: E,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@@ -67166,24 -65513,24 +67172,24 @@@
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "下载到" }),
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "下载到" }),
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "下载到" }),
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "下载到",
selectedKey: l,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && D(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: s.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: s.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e.key,
textValue: e.label,
-- children: /* @__PURE__ */ (0, C.jsx)($A, {
++ children: /* @__PURE__ */ (0, C.jsx)(nj, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
- l === "115" ? /* @__PURE__ */ (0, C.jsx)(MA, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
++ l === "115" ? /* @__PURE__ */ (0, C.jsx)(FA, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
t.available ? null : /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -67197,7 -65544,7 +67203,7 @@@
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@@ -67205,17 -65552,17 +67211,17 @@@
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, C.jsx)(bP, {
- n.code ? null : /* @__PURE__ */ (0, C.jsx)(mP, {
++ n.code ? null : /* @__PURE__ */ (0, C.jsx)(CP, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), YU(e, _?.code) || v(null);
- m(e), TU(e, _?.code) || v(null);
++ m(e), $U(e, _?.code) || v(null);
}
}),
- y || w.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: y || w.error }) : null
- y || w.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: y || w.error }) : null
++ y || w.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: y || w.error }) : null
]
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -67236,18 -65583,18 +67242,18 @@@
}
//#endregion
//#region src/react/wants/wants.ts
- var ZU = "/api/wants", QU = ["wants"], HMe = (e) => [
-var DU = "/api/wants", OU = ["wants"], Gje = (e) => [
++var tW = "/api/wants", nW = ["wants"], RMe = (e) => [
"wants",
"follow",
e
- ], UMe = [
-], Kje = [
++], zMe = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
- ], $U = (e) => yn(ZU, e);
- function WMe(e, t) {
- U.setQueryData(QU, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
-], kU = (e) => H(DU, e);
-function qje(e, t) {
- W.setQueryData(OU, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
++], rW = (e) => yn(tW, e);
++function BMe(e, t) {
++ U.setQueryData(nW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@@ -67255,26 -65602,26 +67261,26 @@@
} : n)
} : n);
}
- var GMe = (e, t) => yn(`${ZU}?follow=${encodeURIComponent(e)}`, t), eW = (e, t) => H(ZU, {
-var Jje = (e, t) => H(`${DU}?follow=${encodeURIComponent(e)}`, t), AU = (e, t) => U(DU, {
++var VMe = (e, t) => yn(`${tW}?follow=${encodeURIComponent(e)}`, t), iW = (e, t) => H(tW, {
action: "add",
...e
- }, "POST", t), tW = (e, t) => H(ZU, {
-}, "POST", t), jU = (e, t) => U(DU, {
++}, "POST", t), aW = (e, t) => H(tW, {
action: "remove",
ids: e
- }, "POST", t), KMe = (e, t) => H(ZU, {
-}, "POST", t), Yje = (e, t) => U(DU, {
++}, "POST", t), HMe = (e, t) => H(tW, {
action: "reset",
ids: e
- }, "POST", t), nW = () => U.invalidateQueries({ queryKey: QU }), rW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
- function qMe(e) {
-}, "POST", t), MU = () => W.invalidateQueries({ queryKey: OU }), NU = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Xje(e) {
++}, "POST", t), oW = () => U.invalidateQueries({ queryKey: nW }), sW = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
++function UMe(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
//#endregion
//#region src/react/publication-cache.ts
- var iW = 864e5, aW = (e) => {
-var PU = 864e5, FU = (e) => {
++var cW = 864e5, lW = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
- function oW(e) {
-function IU(e) {
++function uW(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@@ -67282,26 -65629,26 +67288,26 @@@
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
- function JMe(e, t = Date.now()) {
- let n = oW(e);
- return n !== void 0 && aW(t) > n ? Infinity : iW;
-function Zje(e, t = Date.now()) {
- let n = IU(e);
- return n !== void 0 && FU(t) > n ? Infinity : PU;
++function WMe(e, t = Date.now()) {
++ let n = uW(e);
++ return n !== void 0 && lW(t) > n ? Infinity : cW;
}
- function sW(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : JMe(t, n) === Infinity ? aW(e) > oW(t) : n - e < iW;
-function LU(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : Zje(t, n) === Infinity ? FU(e) > IU(t) : n - e < PU;
++function dW(e, t, n = Date.now()) {
++ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : WMe(t, n) === Infinity ? lW(e) > uW(t) : n - e < cW;
}
//#endregion
//#region src/react/wants/resource-cache.ts
- var cW = "peach.want-resources.v1";
- function lW(e) {
-var RU = "peach.want-resources.v1";
-function zU(e) {
++var fW = "peach.want-resources.v1";
++function pW(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
- function uW(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !lW(e) ? Date.now() - t < 6e4 : sW(t, n));
-function BU(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !zU(e) ? Date.now() - t < 6e4 : LU(t, n));
++function mW(e, t, n) {
++ return !!e && !e.cache_stale && (e.state === "error" || !pW(e) ? Date.now() - t < 6e4 : dW(t, n));
}
- function dW() {
-function VU() {
++function hW() {
try {
- let e = JSON.parse(localStorage.getItem(cW) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && lW(e.result) && e.result.items.every((e) => e && [
- let e = JSON.parse(localStorage.getItem(RU) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && zU(e.result) && e.result.items.every((e) => e && [
++ let e = JSON.parse(localStorage.getItem(fW) || "[]");
++ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && pW(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@@ -67310,23 -65657,23 +67316,23 @@@
return [];
}
}
- function YMe(e, t) {
- let n = dW().find((t) => t.code === e);
- return n && sW(n.saved, t) ? n : void 0;
-function Qje(e, t) {
- let n = VU().find((t) => t.code === e);
- return n && LU(n.saved, t) ? n : void 0;
++function GMe(e, t) {
++ let n = hW().find((t) => t.code === e);
++ return n && dW(n.saved, t) ? n : void 0;
}
- function XMe(e) {
- let t = new Map(dW().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
-function $je(e) {
- let t = new Map(VU().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
++function KMe(e) {
++ let t = new Map(hW().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && sW(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
- e && LU(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
++ e && dW(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
- function ZMe(e, t) {
- if (t.state === "ready" && lW(t)) try {
- let n = dW().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(cW, JSON.stringify([{
-function eMe(e, t) {
- if (t.state === "ready" && zU(t)) try {
- let n = VU().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(RU, JSON.stringify([{
++function qMe(e, t) {
++ if (t.state === "ready" && pW(t)) try {
++ let n = hW().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
++ localStorage.setItem(fW, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@@ -67335,16 -65682,16 +67341,16 @@@
}
//#endregion
//#region src/react/wants/resource-display.ts
- function QMe(e) {
-function tMe(e) {
++function JMe(e) {
let t = /^([\d,]+)\s*B$/i.exec(e.trim());
- return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? sn(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
+ return /^[\d,.]+$/.test(e.trim()) ? "大小未知" : t ? on(Number(t[1].replaceAll(",", ""))) : e || "大小未知";
}
- function $Me(e) {
-function nMe(e) {
++function YMe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
//#endregion
//#region src/react/wants/want-magnets.tsx
- function fW({ icon: e, children: t, title: n }) {
-function HU({ icon: e, children: t, title: n }) {
++function gW({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@@ -67354,8 -65701,8 +67360,8 @@@
}), t]
});
}
- function pW({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, S.useRef)(null), [c, l] = (0, S.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, S.useState)([]), f = CA(), p = T(), m = (0, S.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, S.useMemo)(() => YMe(h, e.release_date), [h, e.release_date]);
-function UU({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, S.useRef)(null), [c, l] = (0, S.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, S.useState)([]), f = SA(), p = T(), m = (0, S.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, S.useMemo)(() => Qje(h, e.release_date), [h, e.release_date]);
++function _W({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
++ let s = (0, S.useRef)(null), [c, l] = (0, S.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, S.useState)([]), f = TA(), p = T(), m = (0, S.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, S.useMemo)(() => GMe(h, e.release_date), [h, e.release_date]);
(0, S.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@@ -67374,23 -65721,23 +67380,23 @@@
e.code
],
queryFn: async ({ signal: t }) => {
- let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await H(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", eMe(h, i), i;
+ let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await yn(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", ZMe(h, i), i;
++ return m.current = n && i.state === "busy", qMe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => uW(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
- staleTime: (t) => BU(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
++ staleTime: (t) => mW(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !uW(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
- refetchOnMount: (t) => !BU(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
++ refetchOnMount: (t) => !mW(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(0, S.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, S.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && WMe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && qje(e.id, _.data.items.some((e) => e.protocol === "magnet"));
++ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && BMe(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@@ -67398,7 -65745,7 +67404,7 @@@
]);
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 H(ej, {
- let n = await U(ej, {
++ let n = await H(rj, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@@ -67409,7 -65756,7 +67415,7 @@@
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: tj });
++ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: ij });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@@ -67427,7 -65774,7 +67433,7 @@@
}), /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Vk,
- leadingIcon: Bk,
++ leadingIcon: Uk,
...J(x),
onClick: () => {
x || (m.current = !0, _.refetch());
@@@ -67435,7 -65782,7 +67441,7 @@@
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在查找资源链接…" }) : null,
- x ? /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在查找资源链接…" }) : null,
++ x ? /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在查找资源链接…" }) : null,
w ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "资源链接未取得",
@@@ -67443,13 -65790,13 +67449,13 @@@
}) : null,
_.data?.warnings?.map((e) => /* @__PURE__ */ (0, C.jsx)(q, {
tone: "neutral",
- children: $Me(e)
- children: nMe(e)
++ children: YMe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, C.jsx)(gA, {
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, C.jsx)(hA, {
++ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@@ -67474,7 -65821,7 +67480,7 @@@
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(mA, {
- children: [/* @__PURE__ */ (0, C.jsx)(pA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@@ -67488,26 -65835,26 +67494,26 @@@
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, C.jsx)(fW, {
- icon: Oge,
- /* @__PURE__ */ (0, C.jsx)(HU, {
- icon: gge,
++ /* @__PURE__ */ (0, C.jsx)(gW, {
++ icon: Ege,
children: e.source
}),
- /* @__PURE__ */ (0, C.jsx)(fW, {
- icon: Rk,
- /* @__PURE__ */ (0, C.jsx)(HU, {
- icon: Lk,
++ /* @__PURE__ */ (0, C.jsx)(gW, {
++ icon: Bk,
title: `来源大小:${e.size}`,
- children: QMe(e.size)
- children: tMe(e.size)
++ children: JMe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, C.jsx)(fW, {
- icon: _ge,
- e.files ? /* @__PURE__ */ (0, C.jsx)(HU, {
- icon: age,
++ e.files ? /* @__PURE__ */ (0, C.jsx)(gW, {
++ icon: hge,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, C.jsx)(fW, {
- icon: cge,
- /* @__PURE__ */ (0, C.jsx)(HU, {
- icon: Xhe,
++ /* @__PURE__ */ (0, C.jsx)(gW, {
++ icon: oge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, C.jsx)(fW, {
- icon: Bk,
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, C.jsx)(HU, {
- icon: zk,
++ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, C.jsx)(gW, {
++ icon: Hk,
children: e
}, e))
]
@@@ -67519,7 -65866,7 +67525,7 @@@
e.protocol === "magnet" ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "primary",
size: "small",
- leadingIcon: v ? QA[v.key] : fge,
- leadingIcon: v ? QA[v.key] : ege,
++ leadingIcon: v ? tj[v.key] : uge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
...J(f.busy === e.id),
@@@ -67529,16 -65876,16 +67535,16 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: e.protocol === "magnet" ? "secondary" : "primary",
size: "small",
- leadingIcon: hge,
- leadingIcon: rge,
++ leadingIcon: pge,
...J(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
- /* @__PURE__ */ (0, C.jsx)(gA, {
- /* @__PURE__ */ (0, C.jsx)(hA, {
++ /* @__PURE__ */ (0, C.jsx)(vA, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@@ -67551,7 -65898,7 +67557,7 @@@
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, C.jsx)(zA, {
- }), e.length > 3 ? /* @__PURE__ */ (0, C.jsx)(RA, {
++ }), e.length > 3 ? /* @__PURE__ */ (0, C.jsx)(VA, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, C.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@@ -67564,21 -65911,21 +67570,21 @@@
}
//#endregion
//#region src/react/wants/want-list.tsx
- var eNe = {
-var rMe = {
++var XMe = {
code: "手动添加",
feed: "订阅新作",
follow: "关注"
- }, tNe = [
-}, iMe = [
++}, ZMe = [
["all", "全部"],
["available", "有磁链"],
["missing", "没磁链"]
- ], mW = (e) => [
-], WU = (e) => [
++], vW = (e) => [
e.release_date,
e.studio,
e.performers,
- eNe[e.origin]
- rMe[e.origin]
++ XMe[e.origin]
].filter(Boolean).join(" · ");
- function nNe({ want: e }) {
-function aMe({ want: e }) {
++function QMe({ want: e }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",
children: [/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -67594,39 -65941,39 +67600,39 @@@
}) : null]
});
}
- function rNe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
-function oMe({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
++function $Me({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {
let [l, u] = (0, S.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-want-id": e.id,
- className: _A({
- className: gA({
++ className: yA({
bordered: "soft",
className: "flex flex-col gap-4 max-sm:p-4"
}),
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 items-start gap-4 max-sm:gap-3",
- children: [/* @__PURE__ */ (0, C.jsx)(nNe, { want: e }), /* @__PURE__ */ (0, C.jsxs)("div", {
- children: [/* @__PURE__ */ (0, C.jsx)(aMe, { want: e }), /* @__PURE__ */ (0, C.jsxs)("div", {
++ children: [/* @__PURE__ */ (0, C.jsx)(QMe, { want: e }), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-1",
children: [
/* @__PURE__ */ (0, C.jsxs)("p", {
className: "flex min-w-0 flex-wrap items-baseline gap-x-2",
children: [/* @__PURE__ */ (0, C.jsx)("b", {
className: "min-w-0 text-headline-medium wrap-anywhere text-text-primary",
- children: rW(e)
- children: NU(e)
++ children: sW(e)
}), e.code && e.title ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "min-w-0 truncate text-body-2-regular text-text-secondary",
children: e.title
}) : null]
}),
- mW(e) ? /* @__PURE__ */ (0, C.jsx)("p", {
- WU(e) ? /* @__PURE__ */ (0, C.jsx)("p", {
++ vW(e) ? /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: mW(e)
- children: WU(e)
++ children: vW(e)
}) : null,
!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, C.jsx)("p", {
"data-want-note": "",
className: "text-caption-1-regular text-text-secondary",
- children: qMe(e)
- children: Xje(e)
++ children: UMe(e)
}) : null,
- e.scrape_error ? /* @__PURE__ */ (0, C.jsx)(lU, {
- e.scrape_error ? /* @__PURE__ */ (0, C.jsx)(zH, {
++ e.scrape_error ? /* @__PURE__ */ (0, C.jsx)(pU, {
text: e.scrape_error,
prefix: "资料未取得:",
tone: "muted"
@@@ -67651,17 -65998,17 +67657,17 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
disabled: t,
...J(n === `remove:${e.id}`),
onClick: i,
children: "移除"
}),
- d ? /* @__PURE__ */ (0, C.jsx)(gA, {
- d ? /* @__PURE__ */ (0, C.jsx)(hA, {
++ d ? /* @__PURE__ */ (0, C.jsx)(vA, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
href: d,
target: "_blank",
rel: "noopener noreferrer",
@@@ -67671,7 -66018,7 +67677,7 @@@
})
]
})]
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, C.jsx)(pW, {
- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, C.jsx)(UU, {
++ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, C.jsx)(_W, {
want: e,
readOnly: t,
downloads: o,
@@@ -67681,8 -66028,8 +67687,8 @@@
}) : null]
});
}
- function iNe({ phase: e, label: t, rows: n, row: r }) {
- let [i, a] = (0, S.useState)(1), [o, s] = (0, S.useState)("all"), c = XMe(n), l = (e) => e.has_magnets ?? c.get(e.code || "") ?? !1, u = n.filter(l), d = e !== "searching" || o === "all" ? n : n.filter((e) => l(e) === (o === "available")), f = vr(d.length, 20, i);
-function sMe({ phase: e, label: t, rows: n, row: r }) {
- let [i, a] = (0, S.useState)(1), [o, s] = (0, S.useState)("all"), c = $je(n), l = (e) => e.has_magnets ?? c.get(e.code || "") ?? !1, u = n.filter(l), d = e !== "searching" || o === "all" ? n : n.filter((e) => l(e) === (o === "available")), f = vr(d.length, 20, i);
++function eNe({ phase: e, label: t, rows: n, row: r }) {
++ let [i, a] = (0, S.useState)(1), [o, s] = (0, S.useState)("all"), c = KMe(n), l = (e) => e.has_magnets ?? c.get(e.code || "") ?? !1, u = n.filter(l), d = e !== "searching" || o === "all" ? n : n.filter((e) => l(e) === (o === "available")), f = vr(d.length, 20, i);
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": t,
"data-want-phase": e,
@@@ -67696,19 -66043,19 +67702,19 @@@
className: "text-body-2-regular tabular-nums text-text-secondary",
children: n.length.toLocaleString()
})]
- }), e === "searching" ? /* @__PURE__ */ (0, C.jsx)(zF, {
- }), e === "searching" ? /* @__PURE__ */ (0, C.jsx)(iF, {
++ }), e === "searching" ? /* @__PURE__ */ (0, C.jsx)(HF, {
name: "want-magnet-filter",
"aria-label": "待找磁链筛选",
orientation: "horizontal",
value: o,
- className: BF,
- className: aF,
++ className: UF,
onChange: (e) => {
s(e), a(1);
},
- children: tNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(NN, {
- children: iMe.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(DN, {
++ children: ZMe.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(IN, {
value: e,
"aria-label": t,
- className: VF,
- className: oF,
++ className: WF,
children: [t, /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-caption-1-regular tabular-nums text-text-tertiary",
children: (e === "all" ? n.length : e === "available" ? u.length : n.length - u.length).toLocaleString()
@@@ -67716,9 -66063,9 +67722,9 @@@
}, e))
}) : null]
}),
- d.length ? null : /* @__PURE__ */ (0, C.jsx)(vA, {
- d.length ? null : /* @__PURE__ */ (0, C.jsx)(_A, {
++ d.length ? null : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Nge,
- icon: xge,
++ icon: jge,
title: "暂无符合条件的作品",
children: null
}),
@@@ -67732,7 -66079,7 +67738,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "text-body-2-regular tabular-nums text-text-secondary",
children: `${(f.start + 1).toLocaleString()}–${f.end.toLocaleString()} / ${f.total.toLocaleString()} 条`
- }), /* @__PURE__ */ (0, C.jsx)(YR, {
- }), /* @__PURE__ */ (0, C.jsx)(CR, {
++ }), /* @__PURE__ */ (0, C.jsx)(QR, {
label: `${t}分页`,
page: f.page,
pages: f.pages,
@@@ -67742,34 -66089,34 +67748,34 @@@
]
});
}
- function aNe({ readOnly: e, toast: t, query: n = "" }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), s = CA(), c = ft({
- queryKey: QU,
- queryFn: ({ signal: e }) => $U(e),
-function cMe({ readOnly: e, toast: t, query: n = "" }) {
- let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), s = SA(), c = pt({
- queryKey: OU,
- queryFn: ({ signal: e }) => kU(e),
++function tNe({ readOnly: e, toast: t, query: n = "" }) {
++ let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(null), s = TA(), c = ft({
++ queryKey: nW,
++ queryFn: ({ signal: e }) => rW(e),
staleTime: 3e4,
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
}), l = () => {
let n = r.trim();
- n && !e && s.run("add", (e) => eW({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${rW(e.want)}` : `${rW(e.want)} 已经在想要里`), i(""), nW();
- n && !e && s.run("add", (e) => AU({ code: n }, e), (e) => {
- t(e.created ? `已加入想要:${NU(e.want)}` : `${NU(e.want)} 已经在想要里`), i(""), MU();
++ n && !e && s.run("add", (e) => iW({ code: n }, e), (e) => {
++ t(e.created ? `已加入想要:${sW(e.want)}` : `${sW(e.want)} 已经在想要里`), i(""), oW();
});
}, u = (e) => {
e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());
}, d = (e) => {
- s.run(`remove:${e.id}`, (t) => tW([e.id], t), () => {
- t(`已移除:${rW(e)}`), nW();
- s.run(`remove:${e.id}`, (t) => jU([e.id], t), () => {
- t(`已移除:${NU(e)}`), MU();
++ s.run(`remove:${e.id}`, (t) => aW([e.id], t), () => {
++ t(`已移除:${sW(e)}`), oW();
});
}, f = (e) => {
- s.run(`reset:${e.id}`, (t) => KMe([e.id], t), () => {
- t(`${rW(e)} 回到待找`), nW();
- s.run(`reset:${e.id}`, (t) => Yje([e.id], t), () => {
- t(`${NU(e)} 回到待找`), MU();
++ s.run(`reset:${e.id}`, (t) => HMe([e.id], t), () => {
++ t(`${sW(e)} 回到待找`), oW();
});
}, p = c.data, m = (p?.items || []).filter((e) => !n || [
e.code,
e.title,
e.performers
- ].join(" ").toLocaleLowerCase().includes(n.toLocaleLowerCase())), h = pt({
- queryKey: tj,
- queryFn: ({ signal: e }) => H(`${ej}?limit=100`, e),
+ ].join(" ").toLocaleLowerCase().includes(n.toLocaleLowerCase())), h = ft({
- queryKey: tj,
- queryFn: ({ signal: e }) => yn(`${ej}?limit=100`, e),
++ queryKey: ij,
++ queryFn: ({ signal: e }) => yn(`${rj}?limit=100`, e),
enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))
}), g = h.data?.providers.filter((e) => e.configured) || [], _ = g[0]?.key || "";
return /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -67777,7 -66124,7 +67783,7 @@@
className: "flex flex-col gap-8",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -67790,7 -66137,7 +67796,7 @@@
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-64 grow max-sm:min-w-0",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
value: r,
@@@ -67821,9 -66168,9 +67827,9 @@@
c.isPending ? /* @__PURE__ */ (0, C.jsx)("div", {
role: "status",
"aria-label": "正在读取想要",
- dangerouslySetInnerHTML: { __html: qU("wants") }
- dangerouslySetInnerHTML: { __html: CU("wants") }
++ dangerouslySetInnerHTML: { __html: ZU("wants") }
}) : null,
- p?.scraping ? /* @__PURE__ */ (0, C.jsx)(NA, {
- p?.scraping ? /* @__PURE__ */ (0, C.jsx)(MA, {
++ p?.scraping ? /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
@@@ -67843,19 -66190,19 +67849,19 @@@
tone: "neutral",
children: "云下载只在账本写入端可用。"
}) : null,
- p && !m.length ? /* @__PURE__ */ (0, C.jsx)(vA, {
- p && !m.length ? /* @__PURE__ */ (0, C.jsx)(_A, {
++ p && !m.length ? /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Nge,
- icon: xge,
++ icon: jge,
title: n ? "没有符合条件的作品" : "还没有想要的作品",
children: n ? "试试其他番号、女优或标题。" : "输入番号,添加想看的作品。"
}) : null,
- UMe.map(([n, r]) => {
- Kje.map(([n, r]) => {
++ zMe.map(([n, r]) => {
let i = m.filter((e) => e.phase === n);
- return i.length ? /* @__PURE__ */ (0, C.jsx)(iNe, {
- return i.length ? /* @__PURE__ */ (0, C.jsx)(sMe, {
++ return i.length ? /* @__PURE__ */ (0, C.jsx)(eNe, {
phase: n,
label: r,
rows: i,
- row: (n) => /* @__PURE__ */ (0, C.jsx)(rNe, {
- row: (n) => /* @__PURE__ */ (0, C.jsx)(oMe, {
++ row: (n) => /* @__PURE__ */ (0, C.jsx)($Me, {
want: n,
readOnly: e,
busy: s.busy,
@@@ -67876,7 -66223,7 +67882,7 @@@
}, n.id)
}, n) : null;
}),
- /* @__PURE__ */ (0, C.jsx)(XU, {
- /* @__PURE__ */ (0, C.jsx)(EU, {
++ /* @__PURE__ */ (0, C.jsx)(eW, {
prefill: a,
close: () => o(null),
receipt: t,
@@@ -67887,44 -66234,44 +67893,44 @@@
}
//#endregion
//#region src/react/jav/jav.ts
- var hW = (e, t = "taste", n = "desc") => [
-var GU = (e, t = "taste", n = "desc") => [
++var yW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
- function gW(e, t, n = {}) {
-function KU(e, t, n = {}) {
++function bW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
sort: n.sort || "taste",
direction: n.direction || "desc"
});
- return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), H(`/api/jav/discoveries?${r}`, t);
+ return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), yn(`/api/jav/discoveries?${r}`, t);
}
- function _W(e, t, n) {
-function qU(e, t, n) {
++function xW(e, t, n) {
let r = Ta({
...e,
is_jav: !0
}, t, !1, n);
return r.html || !e.cover_url ? r.html : Ca(e, t).replace(/ src="[^"]*"/, ` src="${B(e.cover_url)}" referrerpolicy="no-referrer" data-jav-image="${e.id}" data-jav-cover="${B(e.cover_url)}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`);
}
- async function oNe(e, t) {
-async function lMe(e, t) {
- e === "wants" ? await W.ensureQueryData({
- queryKey: OU,
- queryFn: () => kU(t),
++async function nNe(e, t) {
+ e === "wants" ? await U.ensureQueryData({
- queryKey: QU,
- queryFn: () => $U(t),
++ queryKey: nW,
++ queryFn: () => rW(t),
staleTime: 3e4,
revalidateIfStale: !0
- }) : e === "discover" && await W.ensureQueryData({
- queryKey: GU("external"),
- queryFn: () => KU("external", t),
+ }) : e === "discover" && await U.ensureQueryData({
- queryKey: hW("external"),
- queryFn: () => gW("external", t),
++ queryKey: yW("external"),
++ queryFn: () => bW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
//#endregion
//#region src/react/jav/jav-header.tsx
- function vW({ tab: e, navigate: t, find: n }) {
-function JU({ tab: e, navigate: t, find: n }) {
++function SW({ tab: e, navigate: t, find: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -67938,25 -66285,25 +67944,25 @@@
onClick: n,
children: "查找资源"
})]
- }), /* @__PURE__ */ (0, C.jsx)(EU, {
- tabs: BU.map(([e, t]) => ({
- }), /* @__PURE__ */ (0, C.jsx)(nU, {
- tabs: gU.map(([e, t]) => ({
++ }), /* @__PURE__ */ (0, C.jsx)(AU, {
++ tabs: WU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(AMe(e))
- onChange: (e) => t(Nje(e))
++ onChange: (e) => t(EMe(e))
})]
});
}
- function sNe({ navigate: e, receipt: t }) {
-function uMe({ navigate: e, receipt: t }) {
++function rNe({ navigate: e, receipt: t }) {
let [n, r] = (0, S.useState)(null);
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(vW, {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(JU, {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(SW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, C.jsx)(XU, {
- }), /* @__PURE__ */ (0, C.jsx)(EU, {
++ }), /* @__PURE__ */ (0, C.jsx)(eW, {
prefill: n,
close: () => r(null),
receipt: t
@@@ -67964,23 -66311,23 +67970,23 @@@
}
//#endregion
//#region src/react/jav/jav-page.tsx
- var cNe = wP("search"), lNe = wP("x"), uNe = wP("refresh-cw");
- function yW(e) {
-var dMe = vP("search"), fMe = vP("x"), pMe = vP("refresh-cw");
-function YU(e) {
++var iNe = DP("search"), aNe = DP("x"), oNe = DP("refresh-cw");
++function CW(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
-- Ck(location.pathname + (t.size ? `?${t}` : ""), {
++ Tk(location.pathname + (t.size ? `?${t}` : ""), {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
});
}
- function dNe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
-function mMe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
++function sNe({ tab: e, readOnly: t, navigate: n, receipt: r }) {
let [i, a] = (0, S.useState)(null), [o, s] = (0, S.useState)(() => new URLSearchParams(location.search).get("q") || ""), c = (e) => {
- s(e), yW({ q: e });
- s(e), YU({ q: e });
++ s(e), CW({ q: e });
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex w-full flex-col gap-6",
children: [
- /* @__PURE__ */ (0, C.jsx)(vW, {
- /* @__PURE__ */ (0, C.jsx)(JU, {
++ /* @__PURE__ */ (0, C.jsx)(SW, {
tab: e,
navigate: n,
find: () => a({})
@@@ -67990,29 -66337,29 +67996,29 @@@
onSubmit: (e) => {
e.preventDefault();
},
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
type: "search",
"aria-label": e === "discover" ? "筛选推荐" : "筛选想要",
placeholder: "筛选番号、女优或标题",
- leadingIcon: cNe,
- leadingIcon: dMe,
++ leadingIcon: iNe,
value: o,
onChange: c,
enterKeyHint: "search"
})
}),
- e === "discover" ? /* @__PURE__ */ (0, C.jsx)(fNe, {
- e === "discover" ? /* @__PURE__ */ (0, C.jsx)(hMe, {
++ e === "discover" ? /* @__PURE__ */ (0, C.jsx)(cNe, {
readOnly: t,
receipt: r,
resource: a,
query: o.trim(),
navigate: n,
clearText: () => c("")
- }) : /* @__PURE__ */ (0, C.jsx)(aNe, {
- }) : /* @__PURE__ */ (0, C.jsx)(cMe, {
++ }) : /* @__PURE__ */ (0, C.jsx)(tNe, {
readOnly: t,
toast: r,
query: o.trim()
}),
- /* @__PURE__ */ (0, C.jsx)(XU, {
- /* @__PURE__ */ (0, C.jsx)(EU, {
++ /* @__PURE__ */ (0, C.jsx)(eW, {
prefill: i,
close: () => a(null),
receipt: r
@@@ -68020,33 -66367,33 +68026,33 @@@
]
});
}
- function fNe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clearText: a }) {
- let o = new URLSearchParams(location.search), [s, c] = (0, S.useState)(() => o.get("scope") === "library" ? "library" : "external"), [l, u] = (0, S.useState)(() => o.get("tag") || ""), [d, f] = (0, S.useState)(() => HU.some(([e]) => e === o.get("sort")) ? o.get("sort") : "taste"), [p, m] = (0, S.useState)(() => o.get("dir") === "asc"), h = (e) => {
- c(e), yW({ scope: e === "external" ? "" : e });
-function hMe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clearText: a }) {
- let o = new URLSearchParams(location.search), [s, c] = (0, S.useState)(() => o.get("scope") === "library" ? "library" : "external"), [l, u] = (0, S.useState)(() => o.get("tag") || ""), [d, f] = (0, S.useState)(() => vU.some(([e]) => e === o.get("sort")) ? o.get("sort") : "taste"), [p, m] = (0, S.useState)(() => o.get("dir") === "asc"), h = (e) => {
- c(e), YU({ scope: e === "external" ? "" : e });
++function cNe({ readOnly: e, receipt: t, resource: n, query: r, navigate: i, clearText: a }) {
++ let o = new URLSearchParams(location.search), [s, c] = (0, S.useState)(() => o.get("scope") === "library" ? "library" : "external"), [l, u] = (0, S.useState)(() => o.get("tag") || ""), [d, f] = (0, S.useState)(() => KU.some(([e]) => e === o.get("sort")) ? o.get("sort") : "taste"), [p, m] = (0, S.useState)(() => o.get("dir") === "asc"), h = (e) => {
++ c(e), CW({ scope: e === "external" ? "" : e });
}, g = (e) => {
- u(e), yW({ tag: e });
- u(e), YU({ tag: e });
++ u(e), CW({ tag: e });
}, _ = (e) => {
- f(e), yW({ sort: e === "taste" ? "" : e });
- f(e), YU({ sort: e === "taste" ? "" : e });
++ f(e), CW({ sort: e === "taste" ? "" : e });
}, v = (e) => {
- m(e), yW({ dir: e ? "asc" : "" });
- m(e), YU({ dir: e ? "asc" : "" });
++ m(e), CW({ dir: e ? "asc" : "" });
}, y = (0, S.useRef)(null);
(0, S.useEffect)(() => {
let e = [...y.current?.querySelectorAll("[data-catalog-scroll],[data-catalog-tags],[data-filter-row=\"bottom\"]") || []].map((e) => ps(e, { drag: !0 }));
return () => e.forEach((e) => e.destroy());
}, []);
-- let b = xE();
++ let b = CE();
(0, S.useSyncExternalStore)(b.subscribe, b.version, b.version);
-- let x = DE(), w = ME(jE({
++ let x = kE(), w = PE(NE({
active: !0,
home: !1,
portrait: !1
- })), T = (0, S.useRef)({}), E = (0, S.useRef)(!1), D = (0, S.useRef)(!1), O = p ? "asc" : "desc", k = pt({
- queryKey: GU(s, d, O),
+ })), T = (0, S.useRef)({}), E = (0, S.useRef)(!1), D = (0, S.useRef)(!1), O = p ? "asc" : "desc", k = ft({
- queryKey: hW(s, d, O),
++ queryKey: yW(s, d, O),
retry: !1,
refetchOnWindowFocus: !1,
queryFn: ({ signal: e }) => {
let t = E.current, n = D.current;
- return E.current = !1, D.current = !1, gW(s, e, {
- return E.current = !1, D.current = !1, KU(s, e, {
++ return E.current = !1, D.current = !1, bW(s, e, {
sort: d,
direction: O,
jobId: t ? void 0 : T.current[s],
@@@ -68059,7 -66406,7 +68065,7 @@@
(0, S.useEffect)(() => {
A?.job_id && (T.current[s] = A.job_id);
}, [s, A?.job_id]);
- let j = CA(), M = CA(), N = (e) => {
- let j = SA(), M = SA(), N = (e) => {
++ let j = TA(), M = TA(), N = (e) => {
M.run(e, async () => (D.current = e === "stop", E.current = e !== "stop", k.refetch({
cancelRefetch: !0,
throwOnError: !0
@@@ -68078,7 -66425,7 +68084,7 @@@
"aria-busy": ee,
className: "flex min-w-0 flex-col gap-4",
children: [
-- /* @__PURE__ */ (0, C.jsx)(hj, {
++ /* @__PURE__ */ (0, C.jsx)(vj, {
label: "发现筛选与排序",
topLabel: "发现范围与标签",
attrs: {
@@@ -68093,7 -66440,7 +68099,7 @@@
"data-catalog-scroll": "",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-catalog-views": "",
-- children: [[["external", "库外发现"], ["library", "馆藏探索"]].map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(gj, {
++ children: [[["external", "库外发现"], ["library", "馆藏探索"]].map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(yj, {
"data-entity-tag": e,
"data-entity-press": "",
pressed: s === e,
@@@ -68107,8 -66454,8 +68113,8 @@@
})]
}), /* @__PURE__ */ (0, C.jsx)("div", {
"data-catalog-tags": "",
- dangerouslySetInnerHTML: ee ? { __html: KU() } : void 0,
- dangerouslySetInnerHTML: ee ? { __html: SU() } : void 0,
-- children: ee ? null : F.map((e) => /* @__PURE__ */ (0, C.jsxs)(gj, {
++ dangerouslySetInnerHTML: ee ? { __html: XU() } : void 0,
++ children: ee ? null : F.map((e) => /* @__PURE__ */ (0, C.jsxs)(yj, {
"data-catalog-tag": e,
"data-entity-press": "",
pressed: l === e,
@@@ -68129,8 -66476,8 +68135,8 @@@
className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"
}) : `${I.length} 部`
}),
- /* @__PURE__ */ (0, C.jsx)(LP, { currentHref: () => location.pathname + location.search }),
- /* @__PURE__ */ (0, C.jsx)(jP, { currentHref: () => location.pathname + location.search }),
-- r || l ? /* @__PURE__ */ (0, C.jsx)(_j, {
++ /* @__PURE__ */ (0, C.jsx)(BP, { currentHref: () => location.pathname + location.search }),
++ r || l ? /* @__PURE__ */ (0, C.jsx)(bj, {
onPress: () => {
g(""), a();
},
@@@ -68139,24 -66486,24 +68145,24 @@@
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-entity-sorts": "",
children: [
-- s === "external" ? /* @__PURE__ */ (0, C.jsx)(mj, {
++ s === "external" ? /* @__PURE__ */ (0, C.jsx)(_j, {
"data-entity-batch": "",
"data-jav-metadata-update": "",
label: A?.status === "running" ? "停止读取" : "更新资料",
disabled: ee,
"data-skeleton-action": ee ? "" : void 0,
busy: !!M.busy,
- icon: A?.status === "running" ? lNe : uNe,
- icon: A?.status === "running" ? fMe : pMe,
++ icon: A?.status === "running" ? aNe : oNe,
onPress: () => N(A?.status === "running" ? "stop" : "update")
}) : null,
- /* @__PURE__ */ (0, C.jsx)(dI, {
- /* @__PURE__ */ (0, C.jsx)(AF, {
++ /* @__PURE__ */ (0, C.jsx)(mI, {
label: "JAV 卡片版式",
value: x,
-- options: wE,
- onChange: mue
- onChange: tue
++ options: EE,
++ onChange: fue
}),
- /* @__PURE__ */ (0, C.jsx)(pI, {
- sorts: HU.map(([e, t, n]) => ({
- /* @__PURE__ */ (0, C.jsx)(MF, {
- sorts: vU.map(([e, t, n]) => ({
++ /* @__PURE__ */ (0, C.jsx)(gI, {
++ sorts: KU.map(([e, t, n]) => ({
key: e,
label: t,
ariaLabel: n,
@@@ -68174,7 -66521,7 +68180,7 @@@
ee ? /* @__PURE__ */ (0, C.jsx)("div", {
role: "status",
"aria-label": "正在读取推荐",
- dangerouslySetInnerHTML: { __html: qU("discover", x) }
- dangerouslySetInnerHTML: { __html: CU("discover", x) }
++ dangerouslySetInnerHTML: { __html: ZU("discover", x) }
}) : null,
k.error ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
@@@ -68184,7 -66531,7 +68190,7 @@@
s === "external" && A?.status === "running" ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-jav-metadata": "",
className: "min-w-0",
- children: /* @__PURE__ */ (0, C.jsx)(zB, {
- children: /* @__PURE__ */ (0, C.jsx)(pB, {
++ children: /* @__PURE__ */ (0, C.jsx)(HB, {
embedded: !0,
label: `正在读取作品资料 · ${A.completed} / ${A.total} 部`,
value: A.completed,
@@@ -68205,11 -66552,11 +68211,11 @@@
tone: "error",
children: M.error
}) : null,
- !ee && !k.error && !I.length ? /* @__PURE__ */ (0, C.jsx)(vA, {
- !ee && !k.error && !I.length ? /* @__PURE__ */ (0, C.jsx)(_A, {
++ !ee && !k.error && !I.length ? /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Nk,
- icon: Mk,
++ icon: Fk,
title: r || l ? "没有符合条件的推荐" : "暂无匹配口味的作品",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
href: "/taste",
variant: "secondary",
children: "查看口味"
@@@ -68222,13 -66569,13 +68228,13 @@@
}) : null,
/* @__PURE__ */ (0, C.jsx)("div", {
"data-media-grid": "",
- className: GU,
- className: xU,
++ className: YU,
style: { "--card-ratio": w },
children: I.map((r) => {
- let a = r.performer_refs?.length ? r.performer_refs.map((e) => e.name).join("、") : r.performers, o = _W(r, x, b.value.javImage), s = MMe(r.taste_score ?? r.score), c = [
- let a = r.performer_refs?.length ? r.performer_refs.map((e) => e.name).join("、") : r.performers, o = qU(r, x, b.value.javImage), s = Fje(r.taste_score ?? r.score), c = [
++ let a = r.performer_refs?.length ? r.performer_refs.map((e) => e.name).join("、") : r.performers, o = xW(r, x, b.value.javImage), s = OMe(r.taste_score ?? r.score), c = [
s.label,
- `口味 ${UU(r.taste_score ?? r.score)}`,
- k.data?.ranking_method === "mmr" && r.ranking_score != null ? `排序 ${UU(r.ranking_score)}` : "",
- `口味 ${yU(r.taste_score ?? r.score)}`,
- k.data?.ranking_method === "mmr" && r.ranking_score != null ? `排序 ${yU(r.ranking_score)}` : "",
++ `口味 ${qU(r.taste_score ?? r.score)}`,
++ k.data?.ranking_method === "mmr" && r.ranking_score != null ? `排序 ${qU(r.ranking_score)}` : "",
r.source_score == null ? "" : `来源评分 ${r.source_score.toFixed(1)} / 5`,
...r.reasons || []
].filter(Boolean).join(" · ");
@@@ -68248,12 -66595,12 +68254,12 @@@
"data-media-pic": "",
"data-jav-cover-box": "",
className: "relative inline-grid place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default",
- children: o ? /* @__PURE__ */ (0, C.jsx)(yI, {
- children: o ? /* @__PURE__ */ (0, C.jsx)(RF, {
++ children: o ? /* @__PURE__ */ (0, C.jsx)(SI, {
artwork: {
kind: "cover",
html: o
},
- identity: _W(r, "small", b.value.javImage),
- identity: qU(r, "small", b.value.javImage),
++ identity: xW(r, "small", b.value.javImage),
relayout: (e) => vc(e, x)
}) : /* @__PURE__ */ (0, C.jsx)("span", {
"data-media-nopic": "",
@@@ -68262,7 -66609,7 +68268,7 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-meta": "",
- children: [/* @__PURE__ */ (0, C.jsx)(kMe, { item: r }), /* @__PURE__ */ (0, C.jsxs)("div", {
- children: [/* @__PURE__ */ (0, C.jsx)(Mje, { item: r }), /* @__PURE__ */ (0, C.jsxs)("div", {
++ children: [/* @__PURE__ */ (0, C.jsx)(TMe, { item: r }), /* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-text": "",
children: [
/* @__PURE__ */ (0, C.jsxs)("h3", {
@@@ -68324,7 -66671,7 +68330,7 @@@
title: c,
"aria-label": `推荐分 ${s.score},${s.label}`,
className: "rounded-md outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, C.jsx)(mA, {
- children: /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: /* @__PURE__ */ (0, C.jsx)(gA, {
color: s.color,
children: s.label
})
@@@ -68357,16 -66704,16 +68363,16 @@@
disabled: e || r.wanted || !!r.asset_id,
...J(j.busy === String(r.id)),
onClick: () => {
- j.run(String(r.id), (e) => eW({ code: r.code }, e), () => {
- t("已加入想要"), nW(), k.refetch();
- j.run(String(r.id), (e) => AU({ code: r.code }, e), () => {
- t("已加入想要"), MU(), k.refetch();
++ j.run(String(r.id), (e) => iW({ code: r.code }, e), () => {
++ t("已加入想要"), oW(), k.refetch();
});
},
children: r.asset_id ? "已入库" : r.wanted ? "已加入想要" : "想要"
}),
- r.link ? /* @__PURE__ */ (0, C.jsx)(gA, {
- r.link ? /* @__PURE__ */ (0, C.jsx)(hA, {
++ r.link ? /* @__PURE__ */ (0, C.jsx)(vA, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
href: r.link,
target: "_blank",
rel: "noopener noreferrer",
@@@ -68382,33 -66729,95 +68388,33 @@@
});
}
//#endregion
-//#region src/react/library-processing/library-processing-notice.tsx
-var XU = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", gMe = {
- gray: `${XU} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${XU} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${XU} border-current/35 bg-background-tertiary-error text-text-error-primary`
-};
-function _Me({ value: e, max: t }) {
- let n = Math.max(0, Math.min(100, e / t * 100));
- return /* @__PURE__ */ (0, C.jsxs)("svg", {
- role: "progressbar",
- "aria-label": "任务完成率",
- "aria-valuemin": 0,
- "aria-valuemax": 100,
- "aria-valuenow": n,
- viewBox: "0 0 32 32",
- fill: "none",
- className: "size-8 shrink-0 -rotate-90 stroke-current",
- children: [/* @__PURE__ */ (0, C.jsx)("circle", {
- cx: "16",
- cy: "16",
- r: "13",
- strokeWidth: "4",
- className: "opacity-25"
- }), /* @__PURE__ */ (0, C.jsx)("circle", {
- cx: "16",
- cy: "16",
- r: "13",
- strokeWidth: "4",
- pathLength: 100,
- strokeDasharray: `${n} 100`,
- strokeLinecap: "round"
- })]
- });
-}
-function vMe(e) {
- let { job: t } = mB(e), n = t.data, r = t.isError ? n ? TI : V(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
- if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.total || 0, l = Math.min(n?.checked || 0, c), u = r || (a ? "扫描与资料采集未完成" : OI(n) + (c ? ` · ${JA(l, c)}` : "")), d = s === "gray" ? pge : tge;
- return /* @__PURE__ */ (0, C.jsxs)("aside", {
- role: a ? "alert" : "status",
- className: gMe[s],
- children: [/* @__PURE__ */ (0, C.jsxs)("div", {
- className: "flex min-w-0 items-center gap-3",
- children: [o && c ? /* @__PURE__ */ (0, C.jsx)(_Me, {
- value: l,
- max: c
- }) : /* @__PURE__ */ (0, C.jsx)(d, {
- "aria-hidden": !0,
- className: "size-4 shrink-0"
- }), /* @__PURE__ */ (0, C.jsx)("p", {
- className: "min-w-0 text-body-2-regular",
- children: u
- })]
- }), /* @__PURE__ */ (0, C.jsx)(DA, {
- href: "/data-cleanup#libraryProcessing",
- size: "small",
- trailingIcon: kk,
- children: r || a ? "查看并处理" : "查看进度"
- })]
- });
-}
-//#endregion
//#region src/react/playlists/playlists.ts
- var pNe = "/api/playlists", bW = "/api/playlist", xW = ["playlists"], SW = (e) => yn(pNe, e);
- async function mNe(e) {
-var yMe = "/api/playlists", ZU = "/api/playlist", QU = ["playlists"], $U = (e) => H(yMe, e);
-async function bMe(e) {
- await W.fetchQuery({
- queryKey: QU,
- queryFn: () => $U(e),
++var lNe = "/api/playlists", wW = "/api/playlist", TW = ["playlists"], EW = (e) => yn(lNe, e);
++async function uNe(e) {
+ await U.fetchQuery({
- queryKey: xW,
- queryFn: () => SW(e),
++ queryKey: TW,
++ queryFn: () => EW(e),
staleTime: 0
});
}
- var CW = () => U.invalidateQueries({
- queryKey: xW,
-var eW = () => W.invalidateQueries({
- queryKey: QU,
++var DW = () => U.invalidateQueries({
++ queryKey: TW,
exact: !0
- }), hNe = (e) => e.current_asset_id || e.preview_asset_id || null, wW = (e) => `/poster?id=${e}&c=4`, gNe = (e) => H(bW, {
-}), xMe = (e) => e.current_asset_id || e.preview_asset_id || null, tW = (e) => `/poster?id=${e}&c=4`, SMe = (e) => U(ZU, {
++}), dNe = (e) => e.current_asset_id || e.preview_asset_id || null, OW = (e) => `/poster?id=${e}&c=4`, fNe = (e) => H(wW, {
action: "create",
name: e,
asset_ids: []
- }), TW = (e, t) => H(bW, {
-}), nW = (e, t) => U(ZU, {
++}), kW = (e, t) => H(wW, {
action: "rename",
id: e,
name: t
- }), EW = (e) => H(bW, {
-}), rW = (e) => U(ZU, {
++}), AW = (e) => H(wW, {
action: "delete",
id: e
- }), _Ne = (e) => yn(`${bW}?id=${e}`).catch(() => null);
- function vNe(e) {
-}), CMe = (e) => H(`${ZU}?id=${e}`).catch(() => null);
-function wMe(e) {
++}), pNe = (e) => yn(`${wW}?id=${e}`).catch(() => null);
++function mNe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return H(bW, {
- return U(ZU, {
++ return H(wW, {
action: "create",
name: e.name,
asset_ids: t,
@@@ -68418,18 -66827,18 +68424,18 @@@
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
- var yNe = wP("ellipsis"), bNe = wP("pencil"), xNe = wP("trash"), SNe = wP("playlist"), DW = dA(HP, UP, "text-body-2-medium"), OW = "播放列表名称不能为空", kW = (e) => async () => {
-var TMe = vP("ellipsis"), EMe = vP("pencil"), DMe = vP("trash"), OMe = vP("playlist"), iW = uA(IP, LP, "text-body-2-medium"), aW = "播放列表名称不能为空", oW = (e) => async () => {
++var hNe = DP("ellipsis"), gNe = DP("pencil"), _Ne = DP("trash"), vNe = DP("playlist"), jW = pA(GP, KP, "text-body-2-medium"), MW = "播放列表名称不能为空", NW = (e) => async () => {
try {
await e();
} finally {
- CW();
- eW();
++ DW();
}
};
- function CNe({ toast: e }) {
-function kMe({ toast: e }) {
- let [t, n] = (0, S.useState)(""), [r, i] = (0, S.useState)(""), a = mt({
- mutationFn: (e) => SMe(e),
++function yNe({ toast: e }) {
+ let [t, n] = (0, S.useState)(""), [r, i] = (0, S.useState)(""), a = pt({
- mutationFn: (e) => gNe(e),
++ mutationFn: (e) => fNe(e),
onSuccess: (t) => {
- n(""), i(""), CW(), e("已新建播放列表", { undo: kW(() => EW(t.playlist.id)) });
- n(""), i(""), eW(), e("已新建播放列表", { undo: oW(() => rW(t.playlist.id)) });
++ n(""), i(""), DW(), e("已新建播放列表", { undo: NW(() => AW(t.playlist.id)) });
},
onError: (e) => i(V(e) || "新建失败")
});
@@@ -68437,12 -66846,12 +68443,12 @@@
"data-playlist-create": "",
"aria-label": "新建播放列表",
onSubmit: (e) => {
- e.preventDefault(), !a.isPending && (t.trim() ? a.mutate(t) : i(OW));
- e.preventDefault(), !a.isPending && (t.trim() ? a.mutate(t) : i(aW));
++ e.preventDefault(), !a.isPending && (t.trim() ? a.mutate(t) : i(MW));
},
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@@ -68461,7 -66870,7 +68467,7 @@@
})]
});
}
- function wNe({ target: e, close: t, toast: n }) {
-function AMe({ target: e, close: t, toast: n }) {
++function bNe({ target: e, close: t, toast: n }) {
let [r, i] = (0, S.useState)(""), [a, o] = (0, S.useState)(""), s = (0, S.useRef)(null);
(0, S.useEffect)(() => {
if (!e) return;
@@@ -68471,14 -66880,14 +68477,14 @@@
});
return () => cancelAnimationFrame(t);
}, [e]);
- let c = mt({
- mutationFn: ({ row: e, value: t }) => nW(e.id, t),
+ let c = pt({
- mutationFn: ({ row: e, value: t }) => TW(e.id, t),
++ mutationFn: ({ row: e, value: t }) => kW(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), CW(), n("已重命名播放列表", { undo: kW(() => TW(r.id, r.name)) });
- t(), eW(), n("已重命名播放列表", { undo: oW(() => nW(r.id, r.name)) });
++ t(), DW(), n("已重命名播放列表", { undo: NW(() => kW(r.id, r.name)) });
},
onError: (e) => o(V(e))
});
- return /* @__PURE__ */ (0, C.jsx)(xP, {
- return /* @__PURE__ */ (0, C.jsx)(hP, {
++ return /* @__PURE__ */ (0, C.jsx)(wP, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@@ -68492,16 -66901,16 +68498,16 @@@
n ? c.mutate({
row: e,
value: n
- }) : o(OW);
- }) : o(aW);
++ }) : o(MW);
},
className: "flex min-h-0 flex-col",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-4 p-5",
- children: [/* @__PURE__ */ (0, C.jsx)(Hj, {
- children: [/* @__PURE__ */ (0, C.jsx)(Vj, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Gj, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, C.jsx)(bP, {
- }), /* @__PURE__ */ (0, C.jsx)(mP, {
++ }), /* @__PURE__ */ (0, C.jsx)(CP, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@@ -68529,7 -66938,7 +68535,7 @@@
})
});
}
- function TNe({ name: e, onRename: t, onDelete: n }) {
-function jMe({ name: e, onRename: t, onDelete: n }) {
++function xNe({ name: e, onRename: t, onDelete: n }) {
let r = (0, S.useRef)(null), [i, a] = (0, S.useState)(!1), o = (e) => {
a(!1), e();
};
@@@ -68543,33 -66952,33 +68549,33 @@@
"data-playlist-menu": "",
onClick: () => a(!0),
className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, C.jsx)(yNe, {
- children: /* @__PURE__ */ (0, C.jsx)(TMe, {
++ children: /* @__PURE__ */ (0, C.jsx)(hNe, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsxs)(vF, {
- className: FP,
- children: /* @__PURE__ */ (0, C.jsxs)(AI, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsxs)(xF, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: DW,
- className: iW,
++ className: jW,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, C.jsx)(bNe, {
- children: [/* @__PURE__ */ (0, C.jsx)(EMe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(gNe, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: DW,
- className: iW,
++ className: jW,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, C.jsx)(xNe, {
- children: [/* @__PURE__ */ (0, C.jsx)(DMe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(_Ne, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@@ -68577,13 -66986,13 +68583,13 @@@
})
})] });
}
- function ENe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
-function MMe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
- let a = pt({
- queryKey: QU,
- queryFn: ({ signal: e }) => $U(e)
++function SNe({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {
+ let a = ft({
- queryKey: xW,
- queryFn: ({ signal: e }) => SW(e)
++ queryKey: TW,
++ queryFn: ({ signal: e }) => EW(e)
}), [o, s] = (0, S.useState)(null), c = (0, S.useRef)(i);
(0, S.useEffect)(() => {
- c.current !== i && (c.current = i, CW());
- c.current !== i && (c.current = i, eW());
++ c.current !== i && (c.current = i, DW());
}, [i]);
let l = a.data, u = l?.items ?? [], d = (e) => {
Vs({
@@@ -68592,8 -67001,8 +68598,8 @@@
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await _Ne(e.id);
- await EW(e.id), CW(), r("已删除播放列表", t ? { undo: kW(() => vNe(t)) } : void 0);
- let t = await CMe(e.id);
- await rW(e.id), eW(), r("已删除播放列表", t ? { undo: oW(() => wMe(t)) } : void 0);
++ let t = await pNe(e.id);
++ await AW(e.id), DW(), r("已删除播放列表", t ? { undo: NW(() => mNe(t)) } : void 0);
}
});
};
@@@ -68608,7 -67017,7 +68614,7 @@@
}), /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "保存 Mix,按自己的顺序继续播放。"
- })] }), /* @__PURE__ */ (0, C.jsx)(CNe, { toast: r })]
- })] }), /* @__PURE__ */ (0, C.jsx)(kMe, { toast: r })]
++ })] }), /* @__PURE__ */ (0, C.jsx)(yNe, { toast: r })]
}),
/* @__PURE__ */ (0, C.jsx)("div", {
className: "mx-auto w-full max-w-board",
@@@ -68616,36 -67025,36 +68622,36 @@@
"data-playlist-grid": "",
className: "card-grid-cover gap-4.5",
children: u.map((r) => {
- let i = hNe(r), a = r.name.trim() || "未命名播放列表";
- return /* @__PURE__ */ (0, C.jsx)(MI, {
- let i = xMe(r), a = r.name.trim() || "未命名播放列表";
- return /* @__PURE__ */ (0, C.jsx)(ZF, {
++ let i = dNe(r), a = r.name.trim() || "未命名播放列表";
++ return /* @__PURE__ */ (0, C.jsx)(FI, {
"data-playlist-card": String(r.id),
name: a,
caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: r.item_count,
- poster: r.preview_asset_id ? wW(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(wW),
- poster: r.preview_asset_id ? tW(r.preview_asset_id) : null,
- flipImages: async () => (r.preview_ids || []).map(tW),
++ poster: r.preview_asset_id ? OW(r.preview_asset_id) : null,
++ flipImages: async () => (r.preview_ids || []).map(OW),
canFlip: n,
faces: r.faces || [],
onOpenEntity: t,
...i ? { onOpen: () => e(r.id, i) } : {},
openLabel: `打开播放列表 ${a}`,
- menu: /* @__PURE__ */ (0, C.jsx)(TNe, {
- menu: /* @__PURE__ */ (0, C.jsx)(jMe, {
++ menu: /* @__PURE__ */ (0, C.jsx)(xNe, {
name: a,
onRename: () => s(r),
onDelete: () => d(r)
})
}, r.id);
})
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: SNe,
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: OMe,
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: vNe,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
- }) : a.isError ? /* @__PURE__ */ (0, C.jsx)(vI, {
- }) : a.isError ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ }) : a.isError ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: V(a.error) || "播放列表读取失败",
onRetry: () => void a.refetch()
}) : null
}),
- /* @__PURE__ */ (0, C.jsx)(wNe, {
- /* @__PURE__ */ (0, C.jsx)(AMe, {
++ /* @__PURE__ */ (0, C.jsx)(bNe, {
target: o,
close: () => s(null),
toast: r
@@@ -68655,11 -67064,11 +68661,11 @@@
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
- function DNe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
-function NMe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
++function CNe({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {
let o = () => t(e.id);
return /* @__PURE__ */ (0, C.jsxs)("li", {
"data-goal-id": e.id,
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@@ -68675,7 -67084,7 +68681,7 @@@
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, C.jsx)("img", {
- src: _z(e),
- src: GR(e),
++ src: bz(e),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@@ -68723,7 -67132,7 +68729,7 @@@
origin: `asset:${e.id}`,
searchReason: e.reason || "",
duration: e.duration,
- cover: _z(e)
- cover: GR(e)
++ cover: bz(e)
}),
children: "查找资源"
}) : null, /* @__PURE__ */ (0, C.jsx)(K, {
@@@ -68735,26 -67144,26 +68741,26 @@@
})]
});
}
- function ONe({ toast: e, ...t }) {
-function PMe({ toast: e, ...t }) {
- let [n, r] = (0, S.useState)(null), i = pt({
- queryKey: UR,
- queryFn: ({ signal: e }) => WR(e)
++function wNe({ toast: e, ...t }) {
+ let [n, r] = (0, S.useState)(null), i = ft({
- queryKey: hz,
- queryFn: ({ signal: e }) => gz(e)
++ queryKey: vz,
++ queryFn: ({ signal: e }) => yz(e)
}), a = i.data;
- if (!a) return /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- if (!a) return /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ if (!a) return /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "高清版目标读取失败",
children: i.error ? V(i.error) : "未取得高清版目标,请刷新页面重试。"
}) });
let o = a.items || [];
- return o.length ? /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- /* @__PURE__ */ (0, C.jsx)(JH, {
- return o.length ? /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
- /* @__PURE__ */ (0, C.jsx)(wH, {
++ return o.length ? /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(QH, {
label: "待升级",
figure: `${Number(a.total || 0).toLocaleString()} 部作品`,
flush: !0
}),
/* @__PURE__ */ (0, C.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: o.map((e) => /* @__PURE__ */ (0, C.jsx)(DNe, {
- children: o.map((e) => /* @__PURE__ */ (0, C.jsx)(NMe, {
++ children: o.map((e) => /* @__PURE__ */ (0, C.jsx)(CNe, {
item: e,
...t,
searchResources: r
@@@ -68764,22 -67173,22 +68770,22 @@@
className: "mt-6 text-center text-caption-1-regular text-text-secondary",
children: `显示前 ${o.length.toLocaleString()} 部,共 ${Number(a.total).toLocaleString()} 部。`
}) : null,
- /* @__PURE__ */ (0, C.jsx)(XU, {
- /* @__PURE__ */ (0, C.jsx)(EU, {
++ /* @__PURE__ */ (0, C.jsx)(eW, {
prefill: n,
close: () => r(null),
receipt: e
})
- ] }) : /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(vA, {
- ] }) : /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(_A, {
++ ] }) : /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Bge,
- icon: Oge,
++ icon: Rge,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
- function kNe(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = MEe(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
-function FMe(e) {
- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = ITe(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
++function TNe(e) {
++ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = kEe(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
role: "group",
"aria-label": "复核筛选",
@@@ -68787,29 -67196,29 +68793,29 @@@
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: t.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: t.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, C.jsxs)(NF, {
- i.length > 1 ? /* @__PURE__ */ (0, C.jsxs)(ZP, {
++ i.length > 1 ? /* @__PURE__ */ (0, C.jsxs)(IF, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, C.jsx)(PF, {
- children: [/* @__PURE__ */ (0, C.jsx)(QP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LF, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@@ -68817,7 -67226,7 +68823,7 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: uge,
- leadingIcon: Qhe,
++ leadingIcon: cge,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@@ -68828,12 -67237,12 +68834,12 @@@
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
-- }), /* @__PURE__ */ (0, C.jsxs)(nE, {
++ }), /* @__PURE__ */ (0, C.jsxs)(iE, {
label: "复核所选项目",
visible: c.size > 0,
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, C.jsxs)(NF, {
- b ? /* @__PURE__ */ (0, C.jsxs)(ZP, {
++ b ? /* @__PURE__ */ (0, C.jsxs)(IF, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@@ -68841,10 -67250,10 +68847,10 @@@
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, C.jsx)(PF, {
- children: [/* @__PURE__ */ (0, C.jsx)(QP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LF, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- }), y.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ }), y.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: e
}, e))]
@@@ -68880,7 -67289,7 +68886,7 @@@
}
//#endregion
//#region src/react/review/candidate-form.tsx
- var ANe = {
-var IMe = {
++var ENe = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@@ -68890,14 -67299,14 +68896,14 @@@
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
- }, AW = "reviewgenretags";
- function jNe({ tags: e }) {
-}, sW = "reviewgenretags";
-function LMe({ tags: e }) {
++}, PW = "reviewgenretags";
++function DNe({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("datalist", {
- id: AW,
- id: sW,
++ id: PW,
children: e.map((e) => /* @__PURE__ */ (0, C.jsx)("option", { value: e }, e))
}) : null;
}
- function jW({ candidate: e, selectable: t = !1 }) {
-function cW({ candidate: e, selectable: t = !1 }) {
++function FW({ candidate: e, selectable: t = !1 }) {
let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;
return /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col",
@@@ -68934,7 -67343,7 +68940,7 @@@
children: [
/* @__PURE__ */ (0, C.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: ANe[e] || e
- children: IMe[e] || e
++ children: ENe[e] || e
}),
/* @__PURE__ */ (0, C.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@@ -68949,32 -67358,32 +68955,32 @@@
}) : null]
});
}
- function MNe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
-function RMe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
++function ONe({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
let a = e.candidates || [];
return a.length ? a.length === 1 ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",
- children: /* @__PURE__ */ (0, C.jsx)(jW, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, C.jsx)(MN, {
- children: /* @__PURE__ */ (0, C.jsx)(cW, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, C.jsx)(EN, {
++ children: /* @__PURE__ */ (0, C.jsx)(FW, { candidate: a[0] })
++ }) : /* @__PURE__ */ (0, C.jsx)(FN, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, C.jsx)(NN, {
- children: a.map((e) => /* @__PURE__ */ (0, C.jsx)(DN, {
++ children: a.map((e) => /* @__PURE__ */ (0, C.jsx)(IN, {
value: e.candidate_key,
className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",
- children: /* @__PURE__ */ (0, C.jsx)(jW, {
- children: /* @__PURE__ */ (0, C.jsx)(cW, {
++ children: /* @__PURE__ */ (0, C.jsx)(FW, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
- function NNe({ genre: e, tags: t, locked: n, toast: r }) {
-function zMe({ genre: e, tags: t, locked: n, toast: r }) {
- let [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), c = mt({
- mutationFn: (t) => WTe(e, t),
++function kNe({ genre: e, tags: t, locked: n, toast: r }) {
+ let [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), c = pt({
- mutationFn: (t) => BEe(e, t),
++ mutationFn: (t) => LEe(e, t),
onSuccess: async (t, n) => {
- t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await HEe()) : s(t.error || "服务端拒绝了这次收录");
- t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await KTe()) : s(t.error || "服务端拒绝了这次收录");
++ t.ok ? (r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await zEe()) : s(t.error || "服务端拒绝了这次收录");
},
onError: (e) => s(V(e))
}), l = () => {
@@@ -68989,16 -67398,16 +68995,16 @@@
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, C.jsx)(_P, {
- /* @__PURE__ */ (0, C.jsx)(dP, {
++ /* @__PURE__ */ (0, C.jsx)(bP, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(yP, {
- children: /* @__PURE__ */ (0, C.jsx)(pP, {
++ children: /* @__PURE__ */ (0, C.jsx)(SP, {
size: "small",
- list: t.length ? AW : void 0,
- list: t.length ? sW : void 0,
++ list: t.length ? PW : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@@ -69030,8 -67439,8 +69036,8 @@@
]
});
}
- function PNe({ row: e, tags: t, locked: n, toast: r }) {
- let i = LEe(e);
-function BMe({ row: e, tags: t, locked: n, toast: r }) {
- let i = VTe(e);
++function ANe({ row: e, tags: t, locked: n, toast: r }) {
++ let i = PEe(e);
return i.length ? /* @__PURE__ */ (0, C.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@@ -69039,7 -67448,7 +69045,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("h5", {
className: "text-body-2-medium text-text-secondary",
children: `未收录 genre · ${i.length}`
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(NNe, {
- }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(zMe, {
++ }), i.map((e) => /* @__PURE__ */ (0, C.jsx)(kNe, {
genre: e,
tags: t,
locked: n,
@@@ -69049,12 -67458,12 +69055,12 @@@
}
//#endregion
//#region src/react/review/review-evidence.tsx
- var MW = (e = "") => /^https?:\/\//i.test(e) ? e : "", FNe = (e = "") => MW(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
- function NW({ url: e }) {
- let t = FNe(e || "");
- return /* @__PURE__ */ (0, C.jsx)(INe, { source: t }, t);
-var lW = (e = "") => /^https?:\/\//i.test(e) ? e : "", VMe = (e = "") => lW(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function uW({ url: e }) {
- let t = VMe(e || "");
- return /* @__PURE__ */ (0, C.jsx)(HMe, { source: t }, t);
++var IW = (e = "") => /^https?:\/\//i.test(e) ? e : "", jNe = (e = "") => IW(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
++function LW({ url: e }) {
++ let t = jNe(e || "");
++ return /* @__PURE__ */ (0, C.jsx)(MNe, { source: t }, t);
}
- function INe({ source: e }) {
-function HMe({ source: e }) {
++function MNe({ source: e }) {
let [t, n] = (0, S.useState)("idle");
return (0, S.useEffect)(() => {
if (t !== "loading") return;
@@@ -69091,7 -67500,7 +69097,7 @@@
})]
});
}
- function PW({ asset: e, openItem: t }) {
-function dW({ asset: e, openItem: t }) {
++function RW({ asset: e, openItem: t }) {
let n = e.name || "";
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",
@@@ -69117,21 -67526,21 +69123,21 @@@
}), /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
size: "small",
- leadingIcon: Age,
- leadingIcon: vge,
++ leadingIcon: Oge,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
- function LNe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
-function UMe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
++function NNe({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"aria-label": `打开创作者页:${t}`,
onClick: () => i(e, t),
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${hU}`,
- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${GH}`,
++ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${yU}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@@ -69147,8 -67556,8 +69153,8 @@@
})]
});
}
- function RNe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = MW(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
-function WMe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = lW(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
++function PNe({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
++ let o = IW(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
return /* @__PURE__ */ (0, C.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@@ -69158,10 -67567,10 +69164,10 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [o ? /* @__PURE__ */ (0, C.jsx)(gA, {
- children: [o ? /* @__PURE__ */ (0, C.jsx)(hA, {
++ children: [o ? /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
size: "small",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@@ -69173,7 -67582,7 +69179,7 @@@
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, C.jsx)(NW, { url: e.preview_url }),
- /* @__PURE__ */ (0, C.jsx)(uW, { url: e.preview_url }),
++ /* @__PURE__ */ (0, C.jsx)(LW, { url: e.preview_url }),
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@@ -69216,7 -67625,7 +69222,7 @@@
]
});
}
- function zNe({ assets: e, picked: t, onPicked: n, locked: r }) {
-function GMe({ assets: e, picked: t, onPicked: n, locked: r }) {
++function FNe({ assets: e, picked: t, onPicked: n, locked: r }) {
let [i, a] = (0, S.useState)(null), o = new Set(t), s = (t, s) => {
if (r) return;
let c = new Set(o);
@@@ -69272,7 -67681,7 +69278,7 @@@
}),
/* @__PURE__ */ (0, C.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, C.jsx)(qP, {
- children: /* @__PURE__ */ (0, C.jsx)(VP, {
++ children: /* @__PURE__ */ (0, C.jsx)(XP, {
size: "sm",
state: {
isSelected: n,
@@@ -69292,22 -67701,22 +69298,22 @@@
}
//#endregion
//#region src/react/review/review-card.tsx
- var BNe = _A({
-var KMe = gA({
++var INe = yA({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
- }), FW = "flex min-h-6 min-w-0 items-center", IW = 2, VNe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
- function HNe(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, S.useRef)(!1), m = YP(), h = YP(), g = t === "metadata_fields", _ = OEe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = PEe(t, n), x = Tz(t, n), w = wz(t, n), T = FEe(n), E = IEe(n), D = Cz(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, C.jsxs)("div", {
-}), fW = "flex min-h-6 min-w-0 items-center", pW = 2, qMe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function JMe(e) {
- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, S.useRef)(!1), m = UP(), h = UP(), g = t === "metadata_fields", _ = MTe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = RTe(t, n), x = $R(t, n), w = QR(t, n), T = zTe(n), E = BTe(n), D = ZR(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, C.jsxs)("div", {
++}), zW = "flex min-h-6 min-w-0 items-center", BW = 2, LNe = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
++function RNe(e) {
++ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, S.useRef)(!1), m = QP(), h = QP(), g = t === "metadata_fields", _ = TEe[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = jEe(t, n), x = Oz(t, n), w = Dz(t, n), T = MEe(n), E = NEe(n), D = Ez(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
- children: [O.slice(0, IW).map((e) => /* @__PURE__ */ (0, C.jsx)(PW, {
- children: [O.slice(0, pW).map((e) => /* @__PURE__ */ (0, C.jsx)(dW, {
++ children: [O.slice(0, BW).map((e) => /* @__PURE__ */ (0, C.jsx)(RW, {
asset: e,
openItem: f.openItem
- }, e.id)), O.length > IW ? /* @__PURE__ */ (0, C.jsx)("p", {
- }, e.id)), O.length > pW ? /* @__PURE__ */ (0, C.jsx)("p", {
++ }, e.id)), O.length > BW ? /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: `另有 ${(O.length - IW).toLocaleString()} 部对照作品`
- children: `另有 ${(O.length - pW).toLocaleString()} 部对照作品`
++ children: `另有 ${(O.length - BW).toLocaleString()} 部对照作品`
}) : null]
- }) : y ? /* @__PURE__ */ (0, C.jsx)(LNe, {
- }) : y ? /* @__PURE__ */ (0, C.jsx)(UMe, {
++ }) : y ? /* @__PURE__ */ (0, C.jsx)(NNe, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@@ -69318,14 -67727,14 +69324,14 @@@
image_version: n.image_version,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, C.jsx)(PW, {
- }) : n.asset_id ? /* @__PURE__ */ (0, C.jsx)(dW, {
++ }) : n.asset_id ? /* @__PURE__ */ (0, C.jsx)(RW, {
openItem: f.openItem,
asset: {
id: n.asset_id,
name: n.asset_name,
preview_url: n.asset_preview_url
}
- }) : null, M = g ? /* @__PURE__ */ (0, C.jsx)(MNe, {
- }) : null, M = g ? /* @__PURE__ */ (0, C.jsx)(RMe, {
++ }) : null, M = g ? /* @__PURE__ */ (0, C.jsx)(ONe, {
row: n,
fieldName: x,
value: r.candidateKey,
@@@ -69334,7 -67743,7 +69340,7 @@@
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, C.jsx)(zNe, {
- }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, C.jsx)(GMe, {
++ }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, C.jsx)(FNe, {
assets: k,
picked: r.assets,
locked: s,
@@@ -69342,24 -67751,24 +69348,24 @@@
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "inset",
- icon: Cge,
- icon: dge,
++ icon: xge,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, C.jsx)(RNe, {
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, C.jsx)(WMe, {
++ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, C.jsx)(PNe, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, C.jsx)(NW, { url: n.preview_url }), N = y ? j : x ? /* @__PURE__ */ (0, C.jsxs)("h4", {
- className: `${FW} flex-wrap gap-2`,
- }) : /* @__PURE__ */ (0, C.jsx)(uW, { url: n.preview_url }), N = y ? j : x ? /* @__PURE__ */ (0, C.jsxs)("h4", {
- className: `${fW} flex-wrap gap-2`,
++ }) : /* @__PURE__ */ (0, C.jsx)(LW, { url: n.preview_url }), N = y ? j : x ? /* @__PURE__ */ (0, C.jsxs)("h4", {
++ className: `${zW} flex-wrap gap-2`,
children: [/* @__PURE__ */ (0, C.jsx)("span", {
title: x,
className: "flex max-w-full min-w-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, C.jsx)(mA, {
- children: /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "blue",
children: x
@@@ -69370,7 -67779,7 +69376,7 @@@
children: w
})]
}) : /* @__PURE__ */ (0, C.jsx)("h4", {
- className: FW,
- className: fW,
++ className: zW,
children: /* @__PURE__ */ (0, C.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@@ -69380,20 -67789,20 +69386,20 @@@
return /* @__PURE__ */ (0, C.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${BNe} ${VNe(t)} overflow-hidden`,
- className: `${KMe} ${qMe(t)} overflow-hidden`,
++ className: `${INe} ${LNe(t)} overflow-hidden`,
children: [
/* @__PURE__ */ (0, C.jsxs)("header", {
className: "flex min-w-0 shrink-0 items-start gap-2",
children: [
s ? null : /* @__PURE__ */ (0, C.jsx)("span", {
- className: `${FW} shrink-0`,
- className: `${fW} shrink-0`,
++ className: `${zW} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, C.jsx)(JP, {
- children: /* @__PURE__ */ (0, C.jsx)(HP, {
++ children: /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@@ -69403,7 -67812,7 +69409,7 @@@
className: "min-w-0 flex-1",
children: N
}),
- A ? /* @__PURE__ */ (0, C.jsx)(mA, {
- A ? /* @__PURE__ */ (0, C.jsx)(pA, {
++ A ? /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "neutral",
children: n.decision
@@@ -69427,7 -67836,7 +69433,7 @@@
!y && j ? j : null,
E.length || t === "creator_tags" ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-wrap gap-1",
- children: E.length ? E.map((e) => /* @__PURE__ */ (0, C.jsx)(mA, {
- children: E.length ? E.map((e) => /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: E.length ? E.map((e) => /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "soft",
children: e
@@@ -69437,7 -67846,7 +69443,7 @@@
})
}) : null,
M,
- /* @__PURE__ */ (0, C.jsx)(PNe, {
- /* @__PURE__ */ (0, C.jsx)(BMe, {
++ /* @__PURE__ */ (0, C.jsx)(ANe, {
row: n,
tags: u,
locked: s,
@@@ -69500,8 -67909,8 +69506,8 @@@
}
//#endregion
//#region src/react/review/review-page.tsx
- var UNe = "flex cursor-pointer items-center justify-between gap-2";
- function WNe({ page: e, pages: t, onPage: n }) {
-var YMe = "flex cursor-pointer items-center justify-between gap-2";
-function XMe({ page: e, pages: t, onPage: n }) {
++var zNe = "flex cursor-pointer items-center justify-between gap-2";
++function BNe({ page: e, pages: t, onPage: n }) {
return t <= 1 ? null : /* @__PURE__ */ (0, C.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@@ -69538,44 -67947,44 +69544,44 @@@
]
});
}
- function GNe(e) {
-function ZMe(e) {
-- let [t, n] = (0, S.useState)(() => matchMedia("(max-width:900px)").matches), r = pj(void 0, t);
++function VNe(e) {
++ let [t, n] = (0, S.useState)(() => matchMedia("(max-width:900px)").matches), r = gj(void 0, t);
(0, S.useEffect)(() => {
let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let { route: i, openItem: a, openEntity: o, revealSource: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, S.useState)(xz(e.category) ? e.category : DEe), [m, h] = (0, S.useState)("candidates"), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(1), [b, x] = (0, S.useState)(/* @__PURE__ */ new Set()), [w, T] = (0, S.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, S.useState)(/* @__PURE__ */ new Map()), [O, k] = (0, S.useState)(""), A = (0, S.useRef)(null), [j, M] = (0, S.useState)(0), [N, P] = (0, S.useState)(""), F = (0, S.useRef)(!0);
- let { route: i, openItem: a, openEntity: o, revealSource: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, S.useState)(YR(e.category) ? e.category : jTe), [m, h] = (0, S.useState)("candidates"), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(1), [b, x] = (0, S.useState)(/* @__PURE__ */ new Set()), [w, T] = (0, S.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, S.useState)(/* @__PURE__ */ new Map()), [O, k] = (0, S.useState)(""), A = (0, S.useRef)(null), [j, M] = (0, S.useState)(0), [N, P] = (0, S.useState)(""), F = (0, S.useRef)(!0);
++ let { route: i, openItem: a, openEntity: o, revealSource: s, toast: c, readOnly: l, readOnlyMessage: u, writerUrl: d } = e, [f, p] = (0, S.useState)(wz(e.category) ? e.category : wEe), [m, h] = (0, S.useState)("candidates"), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(1), [b, x] = (0, S.useState)(/* @__PURE__ */ new Set()), [w, T] = (0, S.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, S.useState)(/* @__PURE__ */ new Map()), [O, k] = (0, S.useState)(""), A = (0, S.useRef)(null), [j, M] = (0, S.useState)(0), [N, P] = (0, S.useState)(""), F = (0, S.useRef)(!0);
(0, S.useEffect)(() => () => {
F.current = !1;
}, []);
- let I = pt({
- queryKey: qR,
- queryFn: ({ signal: e }) => tz(e)
+ let I = ft({
- queryKey: yz,
- queryFn: ({ signal: e }) => Dz(e)
++ queryKey: Sz,
++ queryFn: ({ signal: e }) => Az(e)
}), ee = I.data || {
sections: {},
counts: {}
- }, L = ee.sections[f] || [], te = f === "metadata_fields", ne = l, re = kEe(L, te), ie = re.some(([e]) => e === m) ? m : "candidates", ae = Sz(L, ie), oe = ae.some((e) => e.key === g) ? g : "", se = jEe(AEe(L, ie, oe), v), ce = se.rows.map((e) => e.item_key), le = new Set(ce), ue = ae.map((e) => ({
- }, L = ee.sections[f] || [], te = f === "metadata_fields", ne = l, re = NTe(L, te), ie = re.some(([e]) => e === m) ? m : "candidates", ae = XR(L, ie), oe = ae.some((e) => e.key === g) ? g : "", se = FTe(PTe(L, ie, oe), v), ce = se.rows.map((e) => e.item_key), le = new Set(ce), ue = ae.map((e) => ({
++ }, L = ee.sections[f] || [], te = f === "metadata_fields", ne = l, re = EEe(L, te), ie = re.some(([e]) => e === m) ? m : "candidates", ae = Tz(L, ie), oe = ae.some((e) => e.key === g) ? g : "", se = OEe(DEe(L, ie, oe), v), ce = se.rows.map((e) => e.item_key), le = new Set(ce), ue = ae.map((e) => ({
...e,
rows: e.rows.filter((e) => le.has(e.item_key))
- })).filter((e) => e.rows.length), de = (e) => w.get(e.item_key) || REe(e), fe = L.filter((e) => b.has(e.item_key)), pe = (e) => {
- })).filter((e) => e.rows.length), de = (e) => w.get(e.item_key) || HTe(e), fe = L.filter((e) => b.has(e.item_key)), pe = (e) => {
++ })).filter((e) => e.rows.length), de = (e) => w.get(e.item_key) || FEe(e), fe = L.filter((e) => b.has(e.item_key)), pe = (e) => {
let t = new Set(e);
x((e) => new Set([...e].filter((e) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e)))), D((e) => new Map([...e].filter(([e]) => !t.has(e))));
}, me = (e, t) => D((n) => new Map(n).set(e, t)), he = (e) => {
p(e), h("candidates"), _(""), y(1), x(/* @__PURE__ */ new Set()), T(/* @__PURE__ */ new Map()), D(/* @__PURE__ */ new Map()), k(""), A.current = null, i({ category: e === "metadata_fields" ? "" : e });
- }, ge = mt({
- mutationFn: ({ row: e, status: t }) => nz(ez(f, rz(f, e), t, de(e))),
+ }, ge = pt({
- mutationFn: ({ row: e, status: t }) => Oz(Ez(f, kz(f, e), t, de(e))),
++ mutationFn: ({ row: e, status: t }) => jz(kz(f, Mz(f, e), t, de(e))),
onSuccess: (e, { row: t, status: n }) => {
- e.ok ? (Az(f, [t.item_key]), pe([t.item_key]), c(zEe(n))) : me(t.item_key, e.error || "服务端拒绝了这次判定");
- e.ok ? (iz(f, [t.item_key]), pe([t.item_key]), c(UTe(n))) : me(t.item_key, e.error || "服务端拒绝了这次判定");
++ e.ok ? (Nz(f, [t.item_key]), pe([t.item_key]), c(IEe(n))) : me(t.item_key, e.error || "服务端拒绝了这次判定");
},
onError: (e, { row: t }) => me(t.item_key, V(e))
- }), _e = mt({
+ }), _e = pt({
mutationFn: async (e) => {
let t = fe, n = [], r = [];
for (let [i, a] of t.entries()) {
if (!F.current) break;
k(`正在处理 ${i} / ${t.length}`);
try {
- let t = await Oz(Ez(f, kz(f, a), e, de(a)));
- let t = await nz(ez(f, rz(f, a), e, de(a)));
++ let t = await jz(kz(f, Mz(f, a), e, de(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@@ -69589,7 -67998,7 +69595,7 @@@
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- Az(f, t), pe(t), n.forEach(([e, t]) => me(e, t)), k(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
- iz(f, t), pe(t), n.forEach(([e, t]) => me(e, t)), k(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
++ Nz(f, t), pe(t), n.forEach(([e, t]) => me(e, t)), k(""), c(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
},
onError: (e) => {
k(V(e));
@@@ -69613,7 -68022,7 +69619,7 @@@
M(e), P("");
let t = await s(e);
F.current && (M(0), P(t));
- }, xe = UEe(ee.mirror, u), Se = ee.genre_tags || [], Ce = {
- }, xe = qTe(ee.mirror, u), Se = ee.genre_tags || [], Ce = {
++ }, xe = BEe(ee.mirror, u), Se = ee.genre_tags || [], Ce = {
openItem: a,
openEntity: o,
onReveal: be,
@@@ -69621,7 -68030,7 +69627,7 @@@
revealNote: N,
toast: c
};
- return /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
- return /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
++ return /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
ne ? /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -69637,13 -68046,13 +69643,13 @@@
}) : void 0,
children: xe
}) : null,
- /* @__PURE__ */ (0, C.jsx)(jNe, { tags: Se }),
- /* @__PURE__ */ (0, C.jsxs)(cP, {
- /* @__PURE__ */ (0, C.jsx)(LMe, { tags: Se }),
- /* @__PURE__ */ (0, C.jsxs)(nP, {
++ /* @__PURE__ */ (0, C.jsx)(DNe, { tags: Se }),
++ /* @__PURE__ */ (0, C.jsxs)(dP, {
orientation: t ? "horizontal" : "vertical",
selectedKey: f,
onSelectionChange: (e) => {
let t = String(e);
- xz(t) && he(t);
- YR(t) && he(t);
++ wz(t) && he(t);
},
className: "flex flex-col gap-5 review-split:flex-row review-split:items-start review-split:gap-6",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -69652,28 -68061,28 +69658,28 @@@
children: [/* @__PURE__ */ (0, C.jsx)("h2", {
id: "reviewcategories",
children: "复核分类"
- }), /* @__PURE__ */ (0, C.jsx)(lP, {
- }), /* @__PURE__ */ (0, C.jsx)(rP, {
++ }), /* @__PURE__ */ (0, C.jsx)(fP, {
ref: r,
"aria-labelledby": "reviewcategories",
"data-section-items": !0,
className: "flex review-split:flex-col review-split:items-stretch",
- children: EEe.map((e) => {
- children: ATe.map((e) => {
++ children: CEe.map((e) => {
let t = Number(ee.counts[e] || 0);
- return /* @__PURE__ */ (0, C.jsxs)(uP, {
- return /* @__PURE__ */ (0, C.jsxs)(iP, {
++ return /* @__PURE__ */ (0, C.jsxs)(pP, {
id: e,
- className: UNe,
- children: [bz[e], t ? /* @__PURE__ */ (0, C.jsx)("span", {
- className: YMe,
- children: [JR[e], t ? /* @__PURE__ */ (0, C.jsx)("span", {
++ className: zNe,
++ children: [Cz[e], t ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "tabular-nums text-caption-1-medium text-text-secondary",
children: t.toLocaleString()
}) : null]
}, e);
})
})]
- }), /* @__PURE__ */ (0, C.jsxs)(dP, {
- }), /* @__PURE__ */ (0, C.jsxs)(aP, {
++ }), /* @__PURE__ */ (0, C.jsxs)(mP, {
id: f,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- L.length && !ne ? /* @__PURE__ */ (0, C.jsx)(kNe, {
- L.length && !ne ? /* @__PURE__ */ (0, C.jsx)(FMe, {
++ L.length && !ne ? /* @__PURE__ */ (0, C.jsx)(TNe, {
groupOptions: re,
groupBy: ie,
onGroupBy: (e) => {
@@@ -69689,7 -68098,7 +69695,7 @@@
onSelected: x,
selectedRows: fe,
metadata: te,
- approvable: fe.every((e) => Cz(f, e)),
- approvable: fe.every((e) => ZR(f, e)),
++ approvable: fe.every((e) => Ez(f, e)),
busy: _e.isPending,
feedback: O,
onUnifySource: ye,
@@@ -69714,7 -68123,7 +69720,7 @@@
})]
}) : null, /* @__PURE__ */ (0, C.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(HNe, {
- children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(JMe, {
++ children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(RNe, {
category: f,
row: e,
choice: de(e),
@@@ -69722,7 -68131,7 +69728,7 @@@
selected: b.has(e.item_key),
onSelect: (t, n) => x((r) => {
let i = new Set(r);
- return A.current = NEe(i, ce, A.current, e.item_key, t, n), i;
- return A.current = LTe(i, ce, A.current, e.item_key, t, n), i;
++ return A.current = AEe(i, ce, A.current, e.item_key, t, n), i;
}),
locked: ne,
busy: ge.isPending && ge.variables?.row.item_key === e.item_key,
@@@ -69748,12 -68157,12 +69754,12 @@@
children: "重试"
}),
children: V(I.error)
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- icon: dge,
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
- icon: $he,
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
++ icon: lge,
title: "此分类没有待复核项目",
children: "可切换分类查看其他候选。"
}),
- /* @__PURE__ */ (0, C.jsx)(WNe, {
- /* @__PURE__ */ (0, C.jsx)(XMe, {
++ /* @__PURE__ */ (0, C.jsx)(BNe, {
page: se.page,
pages: se.pages,
onPage: y
@@@ -69766,42 -68175,42 +69772,42 @@@
}
//#endregion
//#region src/react/scraping/custom-source-data.ts
- var LW = "/api/custom-metadata", RW = ["custom-metadata"], zW = (e) => yn(LW, e), KNe = "/api/scraping", qNe = "/api/scraping/settings", JNe = "/api/scraping/check", BW = "/api/scraping/cover", YNe = "/api/scraping/amane-bridge", XNe = "/api/scraping/amane-bridge/check", ZNe = "/api/scraping/amane-bridge/rebuild", VW = ["scraping"], HW = ["scraping", "cover"], UW = ["scraping", "amane-bridge"], WW = (e) => yn(KNe, e), GW = (e) => yn(BW, e), KW = (e) => yn(YNe, e);
- async function QNe(e) {
-var mW = "/api/custom-metadata", hW = ["custom-metadata"], gW = (e) => H(mW, e), QMe = "/api/scraping", $Me = "/api/scraping/settings", eNe = "/api/scraping/check", _W = "/api/scraping/cover", tNe = "/api/scraping/amane-bridge", nNe = "/api/scraping/amane-bridge/check", rNe = "/api/scraping/amane-bridge/rebuild", vW = ["scraping"], yW = ["scraping", "cover"], bW = ["scraping", "amane-bridge"], xW = (e) => H(QMe, e), SW = (e) => H(_W, e), CW = (e) => H(tNe, e);
-async function iNe(e) {
++var VW = "/api/custom-metadata", HW = ["custom-metadata"], UW = (e) => yn(VW, e), HNe = "/api/scraping", UNe = "/api/scraping/settings", WNe = "/api/scraping/check", WW = "/api/scraping/cover", GNe = "/api/scraping/amane-bridge", KNe = "/api/scraping/amane-bridge/check", qNe = "/api/scraping/amane-bridge/rebuild", GW = ["scraping"], KW = ["scraping", "cover"], qW = ["scraping", "amane-bridge"], JW = (e) => yn(HNe, e), YW = (e) => yn(WW, e), XW = (e) => yn(GNe, e);
++async function JNe(e) {
await Promise.all([
- W.fetchQuery({
- queryKey: vW,
- queryFn: () => xW(e)
+ U.fetchQuery({
- queryKey: VW,
- queryFn: () => WW(e)
++ queryKey: GW,
++ queryFn: () => JW(e)
}),
- W.fetchQuery({
- queryKey: yW,
- queryFn: () => SW(e)
+ U.fetchQuery({
- queryKey: HW,
- queryFn: () => GW(e)
++ queryKey: KW,
++ queryFn: () => YW(e)
}),
- W.fetchQuery({
- queryKey: bW,
- queryFn: () => CW(e)
+ U.fetchQuery({
- queryKey: UW,
- queryFn: () => KW(e)
++ queryKey: qW,
++ queryFn: () => XW(e)
}),
- W.fetchQuery({
- queryKey: hW,
- queryFn: () => gW(e)
+ U.fetchQuery({
- queryKey: RW,
- queryFn: () => zW(e)
++ queryKey: HW,
++ queryFn: () => UW(e)
})
]);
}
- function $Ne(e, t) {
-function aNe(e, t) {
++function YNe(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}` : "");
}
//#endregion
//#region src/react/settings-panel/legacy-controls.tsx
- var qW = (e) => e.map(([e, t, n]) => n ? [
-var wW = (e) => e.map(([e, t, n]) => n ? [
++var ZW = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
- function JW({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
-function TW({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
++function QW({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, S.useRef)(null), d = (0, S.useRef)(null), f = (0, S.useRef)(l);
return f.current = l, (0, S.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = js(t, n, qW(r), i, {
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = js(t, n, wW(r), i, {
++ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = js(t, n, ZW(r), i, {
attr: a,
className: o,
text: s
@@@ -69819,13 -68228,13 +69825,13 @@@
ref: u
});
}
- function YW({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
-function EW({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
++function $W({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, S.useRef)(null), f = (0, S.useRef)(null), p = (0, S.useRef)(-1), m = (0, S.useRef)(l);
return m.current = l, (0, S.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = so(qW(n), r, { label: t });
- e.innerHTML = so(wW(n), r, { label: t });
++ e.innerHTML = so(ZW(n), r, { label: t });
let i = co(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
@@@ -69838,7 -68247,7 +69844,7 @@@
"aria-describedby": s
});
}
- function ePe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
-function oNe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
++function XNe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, S.useRef)(null), c = (0, S.useRef)(null), l = (0, S.useRef)({
onStep: a,
onSettle: o
@@@ -69873,7 -68282,7 +69879,7 @@@
}
//#endregion
//#region src/react/scraping/custom-sources.tsx
- var tPe = [
-var sNe = [
++var ZNe = [
["code", "番号"],
["title", "标题"],
["studio", "厂牌"],
@@@ -69881,7 -68290,7 +69887,7 @@@
["release_date", "发行日期"],
["performers", "演员(文本数组)"],
["tags", "标签(文本数组)"]
- ], nPe = [
-], cNe = [
++], QNe = [
["censored", "有码"],
["amateur", "素人"],
["uncensored", "无码"],
@@@ -69890,7 -68299,7 +69896,7 @@@
["other", "其他"],
["unsure", "待核番号"],
["unknown", "未知"]
- ], rPe = () => ({
-], lNe = () => ({
++], $Ne = () => ({
name: "",
endpoint: "",
enabled: !1,
@@@ -69900,25 -68309,25 +69906,25 @@@
},
content_types: ["censored"]
});
- function iPe({ receipt: e }) {
-function uNe({ receipt: e }) {
- let [t, n] = (0, S.useState)(null), r = pt({
- queryKey: hW,
- queryFn: ({ signal: e }) => gW(e)
- }), i = SA(), a = (e) => W.setQueryData(hW, e), o = !!(r.isPending || r.error || r.data?.items.length || i.error), s = /* @__PURE__ */ (0, C.jsx)(K, {
++function ePe({ receipt: e }) {
+ let [t, n] = (0, S.useState)(null), r = ft({
- queryKey: RW,
- queryFn: ({ signal: e }) => zW(e)
- }), i = CA(), a = (e) => U.setQueryData(RW, e), o = !!(r.isPending || r.error || r.data?.items.length || i.error), s = /* @__PURE__ */ (0, C.jsx)(K, {
++ queryKey: HW,
++ queryFn: ({ signal: e }) => UW(e)
++ }), i = TA(), a = (e) => U.setQueryData(HW, e), o = !!(r.isPending || r.error || r.data?.items.length || i.error), s = /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
- onClick: () => n(rPe()),
- onClick: () => n(lNe()),
++ onClick: () => n($Ne()),
children: "添加来源"
});
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "自定义元数据来源",
children: [
- o ? /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- o ? /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
++ o ? /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
r.isPending ? /* @__PURE__ */ (0, C.jsx)("div", {
"aria-busy": "true",
"data-skeleton": "",
"aria-label": "读取自定义来源"
}) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: V(r.error) }) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: V(r.error) }) : null,
++ r.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: V(r.error) }) : null,
r.data?.items.map((t) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
@@@ -69938,7 -68347,7 +69944,7 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
...J(i.busy === t.id),
- onClick: () => void i.run(t.id, (e) => H(LW, {
- onClick: () => void i.run(t.id, (e) => U(mW, {
++ onClick: () => void i.run(t.id, (e) => H(VW, {
...t,
enabled: !t.enabled
}, "POST", e), (n) => {
@@@ -69953,7 -68362,7 +69959,7 @@@
body: `删除「${B(t.name)}」后,采集将不再查询这个来源。`,
confirmLabel: "删除来源",
onConfirm: async () => {
- a(await H(LW, {
- a(await U(mW, {
++ a(await H(VW, {
action: "delete",
id: t.id
})), n(null), e("已删除来源");
@@@ -69963,13 -68372,13 +69969,13 @@@
})
]
}, t.id)),
- i.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: i.error }) : null
- i.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: i.error }) : null
++ i.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: i.error }) : null
] }) : null,
- t ? null : o ? /* @__PURE__ */ (0, C.jsx)(MA, { children: s }) : /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)("div", {
- t ? null : o ? /* @__PURE__ */ (0, C.jsx)(jA, { children: s }) : /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)("div", {
++ t ? null : o ? /* @__PURE__ */ (0, C.jsx)(PA, { children: s }) : /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex justify-end",
children: s
}) }),
- t ? /* @__PURE__ */ (0, C.jsx)(aPe, {
- t ? /* @__PURE__ */ (0, C.jsx)(dNe, {
++ t ? /* @__PURE__ */ (0, C.jsx)(tPe, {
initial: t,
cancel: () => n(null),
saved: (t) => {
@@@ -69979,8 -68388,8 +69985,8 @@@
]
});
}
- function aPe({ initial: e, cancel: t, saved: n }) {
- let [r, i] = (0, S.useState)(e), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), l = (0, S.useRef)(0), u = CA(), d = (e) => {
-function dNe({ initial: e, cancel: t, saved: n }) {
- let [r, i] = (0, S.useState)(e), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), l = (0, S.useRef)(0), u = SA(), d = (e) => {
++function tPe({ initial: e, cancel: t, saved: n }) {
++ let [r, i] = (0, S.useState)(e), [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(""), l = (0, S.useRef)(0), u = TA(), d = (e) => {
l.current++, i((t) => ({
...t,
...e
@@@ -69990,16 -68399,16 +69996,16 @@@
"aria-label": "元数据来源配置",
"aria-busy": u.busy === "preview",
onSubmit: (e) => {
- e.preventDefault(), u.run("save", (e) => H(LW, r, "POST", e), n);
- e.preventDefault(), u.run("save", (e) => U(mW, r, "POST", e), n);
++ e.preventDefault(), u.run("save", (e) => H(VW, r, "POST", e), n);
},
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "来源名称",
value: r.name,
maxLength: 80,
onChange: (e) => d({ name: e })
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "JSON 接口地址",
value: r.endpoint,
maxLength: 2048,
@@@ -70008,7 -68417,7 +70014,7 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: "来源连接方式" }), /* @__PURE__ */ (0, C.jsx)(YW, {
- children: [/* @__PURE__ */ (0, C.jsx)(PA, { children: "来源连接方式" }), /* @__PURE__ */ (0, C.jsx)(EW, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: "来源连接方式" }), /* @__PURE__ */ (0, C.jsx)($W, {
id: "custom-source-network",
label: "来源连接方式",
epoch: 0,
@@@ -70019,7 -68428,7 +70025,7 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: "接口番号格式" }), /* @__PURE__ */ (0, C.jsx)(YW, {
- children: [/* @__PURE__ */ (0, C.jsx)(PA, { children: "接口番号格式" }), /* @__PURE__ */ (0, C.jsx)(EW, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: "接口番号格式" }), /* @__PURE__ */ (0, C.jsx)($W, {
id: "custom-source-code-format",
label: "接口番号格式",
epoch: 0,
@@@ -70033,8 -68442,8 +70039,8 @@@
onPick: (e) => d({ code_format: e })
})]
}),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
- tPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(MA, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
- sNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: "填写公开 JSON 接口和响应字段路径,例如 data.title。番号字段用于核对作品身份。" }),
++ ZNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(CP, {
label: `${t}字段路径`,
value: r.fields[e] || "",
onChange: (t) => {
@@@ -70046,18 -68455,18 +70052,18 @@@
className: "flex flex-wrap gap-3",
role: "group",
"aria-label": "适用内容类型",
- children: nPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(JP, {
- children: cNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(HP, {
++ children: QNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: r.content_types.includes(e),
onChange: (t) => d({ content_types: t ? [...r.content_types, e] : r.content_types.filter((t) => t !== e) }),
children: t
}, e))
}),
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: r.enabled,
onChange: (e) => d({ enabled: e }),
children: "启用来源"
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "试查番号(回车查询)",
value: a,
onChange: (e) => {
@@@ -70067,7 -68476,7 +70073,7 @@@
if (e.key !== "Enter" || e.nativeEvent.isComposing) return;
e.preventDefault();
let t = l.current;
- u.run("preview", (e) => H(LW, {
- u.run("preview", (e) => U(mW, {
++ u.run("preview", (e) => H(VW, {
...r,
code: a,
action: "preview"
@@@ -70078,7 -68487,7 +70084,7 @@@
});
}
}),
- u.busy === "preview" ? /* @__PURE__ */ (0, C.jsxs)(NA, {
- u.busy === "preview" ? /* @__PURE__ */ (0, C.jsxs)(MA, {
++ u.busy === "preview" ? /* @__PURE__ */ (0, C.jsxs)(FA, {
role: "status",
children: [/* @__PURE__ */ (0, C.jsx)("span", { dangerouslySetInnerHTML: { __html: No("正在试查来源") } }), "正在试查来源…"]
}) : null,
@@@ -70086,8 -68495,8 +70092,8 @@@
className: "whitespace-pre-wrap break-all",
children: s
}) : null,
- u.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: u.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(MA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
- u.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: u.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(jA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
++ u.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: u.error }) : null
++ ] }), /* @__PURE__ */ (0, C.jsxs)(PA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
type: "button",
onClick: t,
@@@ -70101,20 -68510,20 +70107,20 @@@
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
- var XW = [["peach", "Peach 代理"], ["direct", "直接连接"]];
- function oPe(e) {
- return XW.some(([t]) => t === e) || !e ? [...XW] : [...XW, [e, e]];
-var DW = [["peach", "Peach 代理"], ["direct", "直接连接"]];
-function fNe(e) {
- return DW.some(([t]) => t === e) || !e ? [...DW] : [...DW, [e, e]];
++var eG = [["peach", "Peach 代理"], ["direct", "直接连接"]];
++function nPe(e) {
++ return eG.some(([t]) => t === e) || !e ? [...eG] : [...eG, [e, e]];
}
- function sPe(e) {
-function pNe(e) {
++function rPe(e) {
try {
return new URL(e).host || e;
} catch {
return e;
}
}
- var ZW = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
- function QW({ source: e }) {
- if (e === "makers") return /* @__PURE__ */ (0, C.jsx)(sge, {
-var OW = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function kW({ source: e }) {
- if (e === "makers") return /* @__PURE__ */ (0, C.jsx)(Yhe, {
++var tG = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
++function nG({ source: e }) {
++ if (e === "makers") return /* @__PURE__ */ (0, C.jsx)(age, {
"aria-hidden": !0,
className: "size-4 shrink-0"
});
@@@ -70135,16 -68544,16 +70141,16 @@@
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
- function cPe() {
- return /* @__PURE__ */ (0, C.jsx)(QW, { source: "github" });
-function mNe() {
- return /* @__PURE__ */ (0, C.jsx)(kW, { source: "github" });
++function iPe() {
++ return /* @__PURE__ */ (0, C.jsx)(nG, { source: "github" });
}
- function lPe({ source: e, toast: t }) {
- let [n, r] = (0, S.useState)(e.network), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(ZW[0][0]), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), m = (0, S.useRef)(null);
-function hNe({ source: e, toast: t }) {
- let [n, r] = (0, S.useState)(e.network), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(OW[0][0]), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), m = (0, S.useRef)(null);
++function aPe({ source: e, toast: t }) {
++ let [n, r] = (0, S.useState)(e.network), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(tG[0][0]), [u, d] = (0, S.useState)(""), [f, p] = (0, S.useState)(""), m = (0, S.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
- let g = mt({
- mutationFn: (t) => U($Me, {
+ let g = pt({
- mutationFn: (t) => H(qNe, {
++ mutationFn: (t) => H(UNe, {
source: e.source,
network: n,
cookie: i,
@@@ -70152,12 -68561,12 +70158,12 @@@
revoke: t
}),
onSuccess: (e, n) => {
- U.setQueryData(VW, (t) => t && {
- W.setQueryData(vW, (t) => t && {
++ U.setQueryData(GW, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = pt({ mutationFn: () => H(JNe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
- }), _ = mt({ mutationFn: () => U(eNe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
++ }), _ = pt({ mutationFn: () => H(WNe, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@@ -70176,27 -68585,27 +70182,27 @@@
}
}
let T = f || (g.error ? V(g.error) : "") || (_.error ? V(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || e.browser || !!T || E.length > 0;
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(QW, { source: e.source }), e.login ? /* @__PURE__ */ (0, C.jsx)(IA, {
- children: [/* @__PURE__ */ (0, C.jsx)(kW, { source: e.source }), e.login ? /* @__PURE__ */ (0, C.jsx)(FA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(nG, { source: e.source }), e.login ? /* @__PURE__ */ (0, C.jsx)(RA, {
href: e.login,
- children: sPe(e.login)
- children: pNe(e.login)
++ children: rPe(e.login)
}) : null]
}),
children: [
- /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, C.jsx)(NF, {
- children: /* @__PURE__ */ (0, C.jsx)(ZP, {
++ children: /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "连接方式",
className: "w-44 min-w-0",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: oPe(n).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: fNe(n).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: nPe(n).map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
@@@ -70206,15 -68615,15 +70212,15 @@@
tone: "warning",
children: ["来源正在冷却,截止 ", (/* @__PURE__ */ new Date(e.cooldown_until * 1e3)).toLocaleString("zh-CN")]
}) : null,
- D ? /* @__PURE__ */ (0, C.jsxs)(jA, {
- D ? /* @__PURE__ */ (0, C.jsxs)(AA, {
++ D ? /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, C.jsx)(OA, {
- children: /* @__PURE__ */ (0, C.jsx)(DA, {
++ children: /* @__PURE__ */ (0, C.jsx)(AA, {
href: "/settings/library#peachProxy",
size: "small",
-- trailingIcon: kk,
++ trailingIcon: jk,
children: "配置 Peach 代理"
})
}) : null,
@@@ -70227,20 -68636,20 +70233,20 @@@
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, C.jsx)(zF, {
- /* @__PURE__ */ (0, C.jsx)(iF, {
++ /* @__PURE__ */ (0, C.jsx)(HF, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: BF,
- children: ZW.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(NN, {
- className: aF,
- children: OW.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(DN, {
++ className: UF,
++ children: tG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(IN, {
value: e,
- className: VF,
- className: oF,
++ className: WF,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, C.jsx)(bP, {
- c === "paste" ? /* @__PURE__ */ (0, C.jsx)(mP, {
++ c === "paste" ? /* @__PURE__ */ (0, C.jsx)(CP, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@@ -70249,7 -68658,7 +70255,7 @@@
}) : /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "Netscape Cookie 文件(.txt)" }),
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "Netscape Cookie 文件(.txt)" }),
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
@@@ -70275,14 -68684,14 +70281,14 @@@
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, C.jsx)(PA, { children: T }) : null,
- T ? /* @__PURE__ */ (0, C.jsx)(NA, { children: T }) : null,
++ T ? /* @__PURE__ */ (0, C.jsx)(IA, { children: T }) : null,
E.map((t) => /* @__PURE__ */ (0, C.jsx)(q, {
tone: t.ok ? "success" : "error",
- children: $Ne(t, e.label)
- children: aNe(t, e.label)
++ children: YNe(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
++ /* @__PURE__ */ (0, C.jsxs)(PA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: b,
@@@ -70304,26 -68713,26 +70310,26 @@@
]
});
}
- function uPe({ toast: e }) {
- let [t, n] = (0, S.useState)(""), { running: r, outcome: i, start: a } = HB({
- queryKey: HW,
- queryFn: ({ signal: e }) => GW(e),
- start: () => H(BW, { code: t }),
-function gNe({ toast: e }) {
- let [t, n] = (0, S.useState)(""), { running: r, outcome: i, start: a } = _B({
- queryKey: yW,
- queryFn: ({ signal: e }) => SW(e),
- start: () => U(_W, { code: t }),
++function oPe({ toast: e }) {
++ let [t, n] = (0, S.useState)(""), { running: r, outcome: i, start: a } = GB({
++ queryKey: KW,
++ queryFn: ({ signal: e }) => YW(e),
++ start: () => H(WW, { code: t }),
onFinish: (t) => {
t.status === "complete" && e(t.result || "封面采集完成");
}
}), o = (e) => {
e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();
}, s = a.error ? V(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, C.jsx)(kA, {
- return /* @__PURE__ */ (0, C.jsx)(OA, {
++ return /* @__PURE__ */ (0, C.jsx)(jA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- children: /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
++ children: /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, C.jsx)(bP, {
- children: /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: /* @__PURE__ */ (0, C.jsx)(CP, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@@ -70338,7 -68747,7 +70344,7 @@@
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在抓取封面" }) : null,
- r ? /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在抓取封面" }) : null,
++ r ? /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: s
@@@ -70350,11 -68759,11 +70356,11 @@@
] })
});
}
- function dPe({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = HB({
- queryKey: UW,
- queryFn: ({ signal: e }) => KW(e),
- start: () => H(ZNe, {}),
-function _Ne({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = _B({
- queryKey: bW,
- queryFn: ({ signal: e }) => CW(e),
- start: () => U(rNe, {}),
++function sPe({ toast: e }) {
++ let { query: t, running: n, outcome: r, start: i } = GB({
++ queryKey: qW,
++ queryFn: ({ signal: e }) => XW(e),
++ start: () => H(qNe, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@@ -70363,52 -68772,52 +70369,52 @@@
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = pt({ mutationFn: () => H(XNe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, C.jsx)(kA, {
- }), a = mt({ mutationFn: () => U(nNe, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, C.jsx)(OA, {
++ }), a = pt({ mutationFn: () => H(KNe, {}) }), o = t.data;
++ if (!o) return t.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
title: "amane",
- children: /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- children: /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ children: /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: V(t.error)
}) })
}) : null;
let s = n || i.isPending || a.isPending, c = i.error ? V(i.error) : a.error ? V(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "amane",
- aside: /* @__PURE__ */ (0, C.jsx)(IA, {
- aside: /* @__PURE__ */ (0, C.jsx)(FA, {
++ aside: /* @__PURE__ */ (0, C.jsx)(RA, {
href: o.repository,
- leadingIcon: cPe,
- leadingIcon: mNe,
++ leadingIcon: iPe,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, C.jsxs)(LA, { children: [
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsxs)(IA, { children: [
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsxs)(zA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "已安装版本",
children: o.installed_version || "未安装"
}),
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, C.jsxs)(RA, {
- /* @__PURE__ */ (0, C.jsxs)(LA, {
++ /* @__PURE__ */ (0, C.jsxs)(BA, {
term: "内置站点",
children: [o.sites.length.toLocaleString(), " 个"]
})
] }),
- /* @__PURE__ */ (0, C.jsxs)(jA, {
- /* @__PURE__ */ (0, C.jsxs)(AA, {
++ /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
children: [
- o.sites.length ? /* @__PURE__ */ (0, C.jsx)(zA, {
- o.sites.length ? /* @__PURE__ */ (0, C.jsx)(RA, {
++ o.sites.length ? /* @__PURE__ */ (0, C.jsx)(VA, {
summary: "查看内置站点",
children: /* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: o.sites.map((e) => e.label).join("、")
})
}) : null,
- /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsxs)(FA, { children: [
"已安装版本:",
o.installed_version || "未安装",
"。amane(",
@@@ -70417,7 -68826,7 +70423,7 @@@
o.version,
" 版本,不随上游自动升级。"
] }),
- n ? /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在重建运行环境" }) : null,
- n ? /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在重建运行环境" }) : null,
++ n ? /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: c
@@@ -70428,7 -68837,7 +70434,7 @@@
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsxs)(jA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsxs)(PA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@@ -70445,24 -68854,24 +70451,24 @@@
]
});
}
- function fPe({ toast: e }) {
-function vNe({ toast: e }) {
- let t = pt({
- queryKey: vW,
- queryFn: ({ signal: e }) => xW(e)
++function cPe({ toast: e }) {
+ let t = ft({
- queryKey: VW,
- queryFn: ({ signal: e }) => WW(e)
++ queryKey: GW,
++ queryFn: ({ signal: e }) => JW(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- return n ? /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
++ return n ? /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, C.jsx)(uPe, { toast: e }),
- /* @__PURE__ */ (0, C.jsx)(iPe, { receipt: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, C.jsx)(lPe, {
- /* @__PURE__ */ (0, C.jsx)(gNe, { toast: e }),
- /* @__PURE__ */ (0, C.jsx)(uNe, { receipt: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, C.jsx)(hNe, {
++ /* @__PURE__ */ (0, C.jsx)(oPe, { toast: e }),
++ /* @__PURE__ */ (0, C.jsx)(ePe, { receipt: e }),
++ (n.sources || []).map((t) => /* @__PURE__ */ (0, C.jsx)(aPe, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, C.jsx)(dPe, { toast: e })
- ] }) : /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- /* @__PURE__ */ (0, C.jsx)(_Ne, { toast: e })
- ] }) : /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ /* @__PURE__ */ (0, C.jsx)(sPe, { toast: e })
++ ] }) : /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "采集来源读取失败",
children: t.error ? V(t.error) : "读取采集来源失败"
@@@ -70470,27 -68879,27 +70476,27 @@@
}
//#endregion
//#region src/react/search/search.ts
- var $W = /* @__PURE__ */ new Set([
-var AW = /* @__PURE__ */ new Set([
++var rG = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
- ]), eG = /* @__PURE__ */ new Set([
-]), jW = /* @__PURE__ */ new Set([
++]), iG = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
- ]), tG = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
- function pPe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
-]), MW = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function yNe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
++]), aG = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
++function lPe({ 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,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || tG(t).includes(tG(e)));
- }, d = t.filter((t) => !e || MW(t).includes(MW(e)));
++ }, d = t.filter((t) => !e || aG(t).includes(aG(e)));
if (!e) {
if (s.length) {
let e = s.map((e) => ({
@@@ -70511,8 -68920,8 +70517,8 @@@
value: e
}))
} : null,
- left: e.filter((e) => !eG.has(e.kind)),
- right: e.filter((e) => eG.has(e.kind)),
- left: e.filter((e) => !jW.has(e.kind)),
- right: e.filter((e) => jW.has(e.kind)),
++ left: e.filter((e) => !iG.has(e.kind)),
++ right: e.filter((e) => iG.has(e.kind)),
empty: !1,
options: l
};
@@@ -70562,7 -68971,7 +70568,7 @@@
options: n,
more: r
};
- }, g = m.filter((e) => !eG.has(e.kind)).map(h), _ = m.filter((e) => eG.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
- }, g = m.filter((e) => !jW.has(e.kind)).map(h), _ = m.filter((e) => jW.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
++ }, g = m.filter((e) => !iG.has(e.kind)).map(h), _ = m.filter((e) => iG.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@@ -70572,17 -68981,17 +70578,17 @@@
options: l
};
}
- function mPe(e, t, n = Math.random) {
-function bNe(e, t, n = Math.random) {
++function uPe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => tG(t) === tG(e))).slice(0, 5);
- return r.filter((e) => !t.some((t) => MW(t) === MW(e))).slice(0, 5);
++ return r.filter((e) => !t.some((t) => aG(t) === aG(e))).slice(0, 5);
}
//#endregion
//#region src/react/search/search-page.tsx
- var hPe = () => ({
-var xNe = () => ({
++var dPe = () => ({
history: [],
pool: [],
poolRequest: 0,
@@@ -70600,7 -69009,7 +70606,7 @@@
active: -1,
reveal: !1,
rewind: !1
- }), nG = (e) => pPe({
-}), NW = (e) => yNe({
++}), oG = (e) => lPe({
query: e.query,
history: e.history,
picks: e.picks,
@@@ -70609,18 -69018,18 +70615,18 @@@
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
- }), gPe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), rG = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
-}), SNe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), PW = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
++}), fPe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), sG = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
});
- function _Pe(e) {
-function CNe(e) {
++function pPe(e) {
let t = (0, S.useRef)(e);
t.current = e;
let n = (0, S.useRef)(null);
- n.current ??= hPe();
- n.current ??= xNe();
++ n.current ??= dPe();
let r = n.current, i = (0, S.useRef)(null), [, a] = (0, S.useReducer)((e) => e + 1, 0), o = (0, S.useRef)(null);
- o.current ??= vPe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
- o.current ??= wNe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
++ o.current ??= mPe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, S.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();
@@@ -70633,7 -69042,7 +70639,7 @@@
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 = nG(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, C.jsx)(bPe, {
- let c = NW(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, C.jsx)(ENe, {
++ let c = oG(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, C.jsx)(gPe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@@ -70646,7 -69055,7 +70652,7 @@@
children: [
/* @__PURE__ */ (0, C.jsxs)("h3", { children: [e.label, e.href ? /* @__PURE__ */ (0, C.jsx)("a", {
href: e.href,
- onMouseDown: iG,
- onMouseDown: FW,
++ onMouseDown: cG,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@@ -70665,7 -69074,7 +70671,7 @@@
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, C.jsx)(yPe, {
- c.tabs ? /* @__PURE__ */ (0, C.jsx)(TNe, {
++ c.tabs ? /* @__PURE__ */ (0, C.jsx)(hPe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@@ -70692,7 -69101,7 +70698,7 @@@
]
});
}
- function vPe(e, t, n, r) {
-function wNe(e, t, n, r) {
++function mPe(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 () => {
@@@ -70703,7 -69112,7 +70709,7 @@@
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => tG(e) !== tG(t))]), H("/api/search-history", { query: t }).catch(() => null));
- t && e().historyLimit && (s([t, ...o().filter((e) => MW(e) !== MW(t))]), U("/api/search-history", { query: t }).catch(() => null));
++ t && e().historyLimit && (s([t, ...o().filter((e) => aG(e) !== aG(t))]), H("/api/search-history", { query: t }).catch(() => null));
}, u = async () => {
let n = ++t.poolRequest;
t.pool = [];
@@@ -70749,9 -69158,9 +70755,9 @@@
let i = n();
i && e().helpers.dismiss(i), t.active = -1, r();
}, h = () => {
- t.query = i().value.trim(), t.picks = t.query ? [] : mPe(t.pool, o()), t.active = -1;
- t.query = i().value.trim(), t.picks = t.query ? [] : bNe(t.pool, o()), t.active = -1;
++ t.query = i().value.trim(), t.picks = t.query ? [] : uPe(t.pool, o()), t.active = -1;
let a = n();
- a && (gPe(nG(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
- a && (SNe(NW(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
++ a && (fPe(oG(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, g = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@@ -70763,7 -69172,7 +70769,7 @@@
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), h(), t.rewind = !0, f(n, e).then(() => {
a() && t.kind === e && h();
}));
- }, v = () => p() ? nG(t).options : [], y = (e) => {
- }, v = () => p() ? NW(t).options : [], y = (e) => {
++ }, v = () => p() ? oG(t).options : [], y = (e) => {
let n = v();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, b = (t, n) => {
@@@ -70772,7 -69181,7 +70778,7 @@@
}, x = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, S = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && $W.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && AW.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
++ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? C(t.item.href) : t.type === "more" ? (b(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && rG.has(t.kind) ? x(t.kind, t.value) : (i().value = t.value, b(!1, !0));
}, C = (t) => {
m(), i().blur(), e().actions.openPath?.(t);
};
@@@ -70815,16 -69224,16 +70821,16 @@@
m(), i().blur(), e().actions.openItem(t.id);
},
remove: async (e) => {
- await U("/api/search-history", {
+ await H("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => tG(t) !== tG(e))), t.active = -1, r();
- }).catch(() => null), s(o().filter((t) => MW(t) !== MW(e))), t.active = -1, r();
++ }).catch(() => null), s(o().filter((t) => aG(t) !== aG(e))), t.active = -1, r();
},
pickKind: _,
openPath: C
};
}
- function yPe({ tabs: e, kind: t, onPick: n, wire: r }) {
-function TNe({ tabs: e, kind: t, onPick: n, wire: r }) {
++function hPe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, S.useRef)(null);
(0, S.useLayoutEffect)(() => {
r(i.current);
@@@ -70836,7 -69245,7 +70842,7 @@@
"aria-selected": t === e,
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, C.jsx)(TU, { value: i }) : null]
- children: [r, i ? /* @__PURE__ */ (0, C.jsx)(tU, { value: i }) : null]
++ children: [r, i ? /* @__PURE__ */ (0, C.jsx)(kU, { value: i }) : null]
}, e || "all");
return /* @__PURE__ */ (0, C.jsxs)("div", {
ref: i,
@@@ -70846,8 -69255,8 +70852,8 @@@
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
- var iG = (e) => e.preventDefault();
- function bPe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
-var FW = (e) => e.preventDefault();
-function ENe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
++var cG = (e) => e.preventDefault();
++function gPe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@@ -70859,33 -69268,33 +70865,33 @@@
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: iG,
- onMouseDown: FW,
++ onMouseDown: cG,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, C.jsx)(rG, { name: "chevron-right" })
- /* @__PURE__ */ (0, C.jsx)(PW, { name: "chevron-right" })
++ /* @__PURE__ */ (0, C.jsx)(sG, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, C.jsx)(rG, { name: e.type === "history" ? "history" : "sparkles" }),
- /* @__PURE__ */ (0, C.jsx)(PW, { name: e.type === "history" ? "history" : "sparkles" }),
++ /* @__PURE__ */ (0, C.jsx)(sG, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, C.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: iG,
- onMouseDown: FW,
++ onMouseDown: cG,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, C.jsx)(rG, { name: "x" })
- children: /* @__PURE__ */ (0, C.jsx)(PW, { name: "x" })
++ children: /* @__PURE__ */ (0, C.jsx)(sG, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = $W.has(c) ? c : void 0;
- let { item: s, kind: c } = e, l = AW.has(c) ? c : void 0;
++ let { item: s, kind: c } = e, l = rG.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@@ -70899,8 -69308,8 +70905,8 @@@
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: iG,
- children: [/* @__PURE__ */ (0, C.jsx)(aG, {
- onMouseDown: FW,
- children: [/* @__PURE__ */ (0, C.jsx)(IW, {
++ onMouseDown: cG,
++ children: [/* @__PURE__ */ (0, C.jsx)(lG, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -70925,9 -69334,9 +70931,9 @@@
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: iG,
- onMouseDown: FW,
++ onMouseDown: cG,
children: [
- /* @__PURE__ */ (0, C.jsx)(oG, {
- /* @__PURE__ */ (0, C.jsx)(LW, {
++ /* @__PURE__ */ (0, C.jsx)(uG, {
item: s,
kind: c
}),
@@@ -70950,11 -69359,11 +70956,11 @@@
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: iG,
- onMouseDown: FW,
++ onMouseDown: cG,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, C.jsx)(aG, {
- children: /* @__PURE__ */ (0, C.jsx)(IW, {
++ children: /* @__PURE__ */ (0, C.jsx)(lG, {
card: e,
helpers: n
})
@@@ -70968,7 -69377,7 +70974,7 @@@
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, C.jsx)(oG, {
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, C.jsx)(LW, {
++ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, C.jsx)(uG, {
item: s,
kind: c
}) : null,
@@@ -70981,13 -69390,13 +70987,13 @@@
]
});
}
- function aG({ card: e, helpers: t }) {
-function IW({ card: e, helpers: t }) {
++function lG({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
- function oG({ item: e, kind: t }) {
-function LW({ item: e, kind: t }) {
++function uG({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, C.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@@ -71007,45 -69416,45 +71013,45 @@@
}
//#endregion
//#region src/configuration-endpoints.ts
- var sG = "/api/configuration", xPe = "/api/pick-folder", cG = ["configuration"], lG = (e) => yn(sG, e);
- async function SPe(e) {
-var RW = "/api/configuration", DNe = "/api/pick-folder", zW = ["configuration"], BW = (e) => H(RW, e);
-async function ONe(e) {
- await W.fetchQuery({
- queryKey: zW,
- queryFn: () => BW(e)
++var dG = "/api/configuration", _Pe = "/api/pick-folder", fG = ["configuration"], pG = (e) => yn(dG, e);
++async function vPe(e) {
+ await U.fetchQuery({
- queryKey: cG,
- queryFn: () => lG(e)
++ queryKey: fG,
++ queryFn: () => pG(e)
});
}
//#endregion
//#region src/react/settings/configuration-panel.ts
- var uG = "flex flex-col gap-6";
- function dG(e) {
-var VW = "flex flex-col gap-6";
-function HW(e) {
++var mG = "flex flex-col gap-6";
++function hG(e) {
return e ? {
- className: e.active ? `${uG} ui-board-group-active` : uG,
- className: e.active ? `${VW} ui-board-group-active` : VW,
++ className: e.active ? `${mG} ui-board-group-active` : mG,
"data-board-group": String(e.index),
id: e.id,
role: "tabpanel",
"aria-labelledby": e.labelledBy
- } : { className: uG };
- } : { className: VW };
++ } : { className: mG };
}
//#endregion
//#region src/react/settings/download-settings.tsx
- var CPe = "/api/configuration/downloads", fG = "/api/configuration/downloads/check", wPe = "/api/configuration/downloads/folder", TPe = "/api/configuration/downloads/pikpak/login", EPe = "/api/configuration/downloads/pikpak/logout", pG = "/api/configuration/downloads/pikpak/browser-login", mG = 2e3;
- function DPe({ initial: e, receipt: t, panel: n }) {
-var kNe = "/api/configuration/downloads", UW = "/api/configuration/downloads/check", ANe = "/api/configuration/downloads/folder", jNe = "/api/configuration/downloads/pikpak/login", MNe = "/api/configuration/downloads/pikpak/logout", WW = "/api/configuration/downloads/pikpak/browser-login", GW = 2e3;
-function NNe({ initial: e, receipt: t, panel: n }) {
++var yPe = "/api/configuration/downloads", gG = "/api/configuration/downloads/check", bPe = "/api/configuration/downloads/folder", xPe = "/api/configuration/downloads/pikpak/login", SPe = "/api/configuration/downloads/pikpak/logout", _G = "/api/configuration/downloads/pikpak/browser-login", vG = 2e3;
++function CPe({ initial: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- ...dG(n),
- children: /* @__PURE__ */ (0, C.jsx)(OPe, {
- ...HW(n),
- children: /* @__PURE__ */ (0, C.jsx)(PNe, {
++ ...hG(n),
++ children: /* @__PURE__ */ (0, C.jsx)(wPe, {
initial: e,
receipt: t
})
});
}
- function OPe({ initial: e, receipt: t }) {
-function PNe({ initial: e, receipt: t }) {
++function wPe({ initial: e, receipt: t }) {
let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), o = n.pikpak.logged_in || !!i.trim();
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(kPe, {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(FNe, {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(TPe, {
state: n,
settle: r,
receipt: t,
pikpakAccount: o
- }), /* @__PURE__ */ (0, C.jsx)(jPe, {
- }), /* @__PURE__ */ (0, C.jsx)(LNe, {
++ }), /* @__PURE__ */ (0, C.jsx)(DPe, {
state: n,
settle: r,
receipt: t,
@@@ -71053,8 -69462,8 +71059,8 @@@
setUsername: a
})] });
}
- function kPe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, S.useState)(e.config), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(String(e.config.wait_hours)), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(hG), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(!1), b = CA(), x = (e) => i.targets[e] ?? "", w = (e, t) => a({
-function FNe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
- let [i, a] = (0, S.useState)(e.config), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(String(e.config.wait_hours)), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(KW), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(!1), b = SA(), x = (e) => i.targets[e] ?? "", w = (e, t) => a({
++function TPe({ state: e, settle: t, receipt: n, pikpakAccount: r }) {
++ let [i, a] = (0, S.useState)(e.config), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(String(e.config.wait_hours)), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(""), [m, h] = (0, S.useState)(yG), [g, _] = (0, S.useState)(""), [v, y] = (0, S.useState)(!1), b = TA(), x = (e) => i.targets[e] ?? "", w = (e, t) => a({
...i,
targets: {
...i.targets,
@@@ -71083,8 -69492,8 +71089,8 @@@
target: !e.config.targets[115],
root: !e.config.pikpak_root
};
- b.run("auto", (e) => yn(fG, e), (e) => E(e, t), (e) => _(V(e)));
- }, []), /* @__PURE__ */ (0, C.jsxs)(kA, {
- b.run("auto", (e) => H(UW, e), (e) => E(e, t), (e) => _(V(e)));
- }, []), /* @__PURE__ */ (0, C.jsxs)(OA, {
++ b.run("auto", (e) => yn(gG, e), (e) => E(e, t), (e) => _(V(e)));
++ }, []), /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "云下载",
onSubmit: (e) => {
if (e.preventDefault(), T) {
@@@ -71097,18 -69506,18 +71103,18 @@@
token: o,
pikpak_account: r
};
- b.run("save", (e) => H(CPe, f, "POST", e), (e) => {
- b.run("save", (e) => U(kNe, f, "POST", e), (e) => {
++ b.run("save", (e) => H(yPe, f, "POST", e), (e) => {
let { report: r, ...i } = e;
t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? E(r, {
address: !i.config.clouddrive_address,
target: u,
root: !i.config.pikpak_root
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(hG), y(!1), _("")), n("已保存配置");
- }, i.config.targets[115] ?? "") : (d(null), p(""), h(KW), y(!1), _("")), n("已保存配置");
++ }, i.config.targets[115] ?? "") : (d(null), p(""), h(yG), y(!1), _("")), n("已保存配置");
}, (e) => _(V(e)));
},
children: [
- /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "CloudDrive2 地址",
placeholder: "留空自动查找",
autoComplete: "off",
@@@ -71120,7 -69529,7 +71126,7 @@@
clouddrive_address: e
})
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "CloudDrive2 API 令牌",
type: "password",
autoComplete: "off",
@@@ -71131,8 -69540,8 +71137,8 @@@
isDisabled: !e.available,
onChange: s
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
-- label: /* @__PURE__ */ (0, C.jsx)($A, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
++ label: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "115",
label: "115 目标目录"
}),
@@@ -71146,8 -69555,8 +71152,8 @@@
isDisabled: !e.available,
onChange: (e) => w("115", e)
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
-- label: /* @__PURE__ */ (0, C.jsx)($A, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
++ label: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "pikpak",
label: "PikPak 目标目录"
}),
@@@ -71161,10 -69570,10 +71167,10 @@@
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: /* @__PURE__ */ (0, C.jsx)($A, {
- children: [/* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)($A, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "pikpak",
label: "PikPak 根目录对应的媒体文件夹"
- }) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, C.jsx)(NF, {
- }) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, C.jsx)(ZP, {
++ }) }), e.pikpak_roots.length ? /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "PikPak 根目录对应的媒体文件夹",
selectedKey: i.pikpak_root || null,
isDisabled: !e.available,
@@@ -71173,13 -69582,13 +71179,13 @@@
...i,
pikpak_root: e === null ? "" : String(e)
}),
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: e
}, e))
- }) : /* @__PURE__ */ (0, C.jsx)(NA, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
- }) : /* @__PURE__ */ (0, C.jsx)(MA, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
++ }) : /* @__PURE__ */ (0, C.jsx)(FA, { children: "先在「媒体库与入库」添加 PikPak 挂载文件夹。" })]
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "等待上限(小时)",
type: "number",
inputMode: "numeric",
@@@ -71190,11 -69599,11 +71196,11 @@@
onChange: l
})
] }),
- b.busy === "auto" ? /* @__PURE__ */ (0, C.jsx)(jA, {
- b.busy === "auto" ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ b.busy === "auto" ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在检查 CloudDrive2" })
- children: /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在检查 CloudDrive2" })
++ children: /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在检查 CloudDrive2" })
}) : null,
- u ? /* @__PURE__ */ (0, C.jsx)(APe, {
- u ? /* @__PURE__ */ (0, C.jsx)(INe, {
++ u ? /* @__PURE__ */ (0, C.jsx)(EPe, {
report: u,
detected: f,
suggested: m,
@@@ -71206,7 -69615,7 +71212,7 @@@
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("folder", (e) => H(wPe, t, "POST", e), (t) => {
- b.run("folder", (e) => U(ANe, t, "POST", e), (t) => {
++ b.run("folder", (e) => H(bPe, t, "POST", e), (t) => {
d(t), h((t) => ({
...t,
target: {
@@@ -71218,11 -69627,11 +71224,11 @@@
} : void 0,
creating: b.busy === "folder"
}) : null,
- g || b.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
- g || b.error ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ g || b.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: g || b.error })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: g || b.error })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: g || b.error })
}) : null,
- /* @__PURE__ */ (0, C.jsxs)(MA, {
- /* @__PURE__ */ (0, C.jsxs)(jA, {
++ /* @__PURE__ */ (0, C.jsxs)(PA, {
status: e.available ? void 0 : "云下载只在账本写入端可用。",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
@@@ -71238,7 -69647,7 +71244,7 @@@
pikpak_root: i.pikpak_root,
pikpak_account: r
};
- b.run("check", (e) => H(fG, t, "POST", e), (t) => E(t, e), (e) => _(V(e)));
- b.run("check", (e) => U(UW, t, "POST", e), (t) => E(t, e), (e) => _(V(e)));
++ b.run("check", (e) => H(gG, t, "POST", e), (t) => E(t, e), (e) => _(V(e)));
},
disabled: !e.available,
...J(b.busy === "check"),
@@@ -71253,29 -69662,29 +71259,29 @@@
]
});
}
- var hG = {
-var KW = {
++var yG = {
target: null,
root: "",
saved: !1
};
- function APe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
-function INe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
++function EPe({ report: e, detected: t, suggested: n, create: r, creating: i }) {
let a = n.target;
- return /* @__PURE__ */ (0, C.jsxs)(jA, {
- return /* @__PURE__ */ (0, C.jsxs)(AA, {
++ return /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
- children: [/* @__PURE__ */ (0, C.jsxs)(LA, { children: [
- t ? /* @__PURE__ */ (0, C.jsx)(RA, {
- children: [/* @__PURE__ */ (0, C.jsxs)(IA, { children: [
- t ? /* @__PURE__ */ (0, C.jsx)(LA, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(zA, { children: [
++ t ? /* @__PURE__ */ (0, C.jsx)(BA, {
term: "CloudDrive2 地址",
children: `探测到 ${t},保存配置后生效`
}) : null,
- a?.exists ? /* @__PURE__ */ (0, C.jsx)(RA, {
- a?.exists ? /* @__PURE__ */ (0, C.jsx)(LA, {
-- term: /* @__PURE__ */ (0, C.jsx)($A, {
++ a?.exists ? /* @__PURE__ */ (0, C.jsx)(BA, {
++ term: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "115",
label: "115 目标目录"
}),
children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`
}) : null,
- a && !a.exists ? /* @__PURE__ */ (0, C.jsxs)(RA, {
- a && !a.exists ? /* @__PURE__ */ (0, C.jsxs)(LA, {
-- term: /* @__PURE__ */ (0, C.jsx)($A, {
++ a && !a.exists ? /* @__PURE__ */ (0, C.jsxs)(BA, {
++ term: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "115",
label: "115 目标目录"
}),
@@@ -71287,59 -69696,59 +71293,59 @@@
children: "新建这个目录"
}) : null]
}) : null,
- n.root ? /* @__PURE__ */ (0, C.jsx)(RA, {
- n.root ? /* @__PURE__ */ (0, C.jsx)(LA, {
-- term: /* @__PURE__ */ (0, C.jsx)($A, {
++ n.root ? /* @__PURE__ */ (0, C.jsx)(BA, {
++ term: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "pikpak",
label: "PikPak 根目录"
}),
children: `按推送发现填入 ${n.root},保存配置后生效`
}) : null,
- e.permissions.length ? /* @__PURE__ */ (0, C.jsx)(RA, {
- e.permissions.length ? /* @__PURE__ */ (0, C.jsx)(LA, {
++ e.permissions.length ? /* @__PURE__ */ (0, C.jsx)(BA, {
term: "离线权限",
- children: /* @__PURE__ */ (0, C.jsx)(mA, {
- children: /* @__PURE__ */ (0, C.jsx)(pA, {
++ children: /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: e.missing.length ? "yellow" : "lime",
children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"
})
}) : null,
- e.folder ? /* @__PURE__ */ (0, C.jsx)(RA, {
- e.folder ? /* @__PURE__ */ (0, C.jsx)(LA, {
++ e.folder ? /* @__PURE__ */ (0, C.jsx)(BA, {
term: "目标目录",
children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`
}) : null,
- e.quota ? /* @__PURE__ */ (0, C.jsx)(RA, {
- e.quota ? /* @__PURE__ */ (0, C.jsx)(LA, {
-- term: /* @__PURE__ */ (0, C.jsx)($A, {
++ e.quota ? /* @__PURE__ */ (0, C.jsx)(BA, {
++ term: /* @__PURE__ */ (0, C.jsx)(nj, {
source: "115",
label: "115 离线配额"
}),
children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`
}) : null
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, C.jsx)(PA, { children: e }, e))]
- ] }), e.problems.map((e) => /* @__PURE__ */ (0, C.jsx)(NA, { children: e }, e))]
++ ] }), e.problems.map((e) => /* @__PURE__ */ (0, C.jsx)(IA, { children: e }, e))]
});
}
- function jPe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(""), h = CA(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
-function LNe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
- let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(""), h = SA(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
++function DPe({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {
++ let [a, o] = (0, S.useState)(""), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(""), h = TA(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";
(0, S.useEffect)(() => {
if (!v) return;
let e = new AbortController(), r, i = async () => {
try {
- let r = await yn(pG, e.signal);
- let r = await H(WW, e.signal);
++ let r = await yn(_G, e.signal);
if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;
} catch (t) {
if (e.signal.aborted) return;
f(V(t));
}
- r = setTimeout(i, mG);
- r = setTimeout(i, GW);
++ r = setTimeout(i, vG);
};
- return r = setTimeout(i, mG), () => {
- return r = setTimeout(i, GW), () => {
++ return r = setTimeout(i, vG), () => {
e.abort(), clearTimeout(r);
};
}, [v]);
let y = () => {
- m(""), h.run("browser", (e) => H(pG, {}, "POST", e), (e) => {
- m(""), h.run("browser", (e) => U(WW, {}, "POST", e), (e) => {
++ m(""), h.run("browser", (e) => H(_G, {}, "POST", e), (e) => {
t(e), f("");
}, (e) => f(V(e)));
}, b = () => {
- h.run("cancel", (e) => H(`${pG}/cancel`, {}, "POST", e), (e) => {
- h.run("cancel", (e) => U(`${WW}/cancel`, {}, "POST", e), (e) => {
++ h.run("cancel", (e) => H(`${_G}/cancel`, {}, "POST", e), (e) => {
t(e), f(""), m(e.pikpak_browser.message);
}, (e) => f(V(e)));
}, x = (e) => {
@@@ -71349,15 -69758,15 +71355,15 @@@
password: a,
remember: s
};
- h.run("login", (e) => H(TPe, i, "POST", e), (e) => {
- h.run("login", (e) => U(jNe, i, "POST", e), (e) => {
++ h.run("login", (e) => H(xPe, i, "POST", e), (e) => {
t(e.settings), f(""), e.ok ? (u(""), o(""), n("已登录 PikPak")) : u(e.captcha_url ?? "");
}, (e) => f(V(e)));
}, w = () => {
- h.run("logout", (e) => H(EPe, {}, "POST", e), (e) => {
- h.run("logout", (e) => U(MNe, {}, "POST", e), (e) => {
++ h.run("logout", (e) => H(SPe, {}, "POST", e), (e) => {
t(e), f(""), n("已登出 PikPak");
}, (e) => f(V(e)));
}, T = /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "账号",
placeholder: "邮箱或手机号",
autoComplete: "username",
@@@ -71366,7 -69775,7 +71372,7 @@@
isDisabled: !e.available,
onChange: i
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "密码",
type: "password",
autoComplete: "current-password",
@@@ -71375,7 -69784,7 +71381,7 @@@
isDisabled: !e.available,
onChange: o
}),
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: s,
isDisabled: !e.available,
onChange: c,
@@@ -71386,7 -69795,7 +71392,7 @@@
title: "需要人机验证",
extra: /* @__PURE__ */ (0, C.jsx)("div", {
className: "pt-2",
- children: /* @__PURE__ */ (0, C.jsx)(IA, {
- children: /* @__PURE__ */ (0, C.jsx)(FA, {
++ children: /* @__PURE__ */ (0, C.jsx)(RA, {
href: l,
children: "打开 PikPak 验证页"
})
@@@ -71399,30 -69808,30 +71405,30 @@@
...J(h.busy === "login"),
children: "登录"
}), D = _.state === "timeout" || _.state === "failed";
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "PikPak 账号",
-- icon: /* @__PURE__ */ (0, C.jsx)(QA.pikpak, {}),
++ icon: /* @__PURE__ */ (0, C.jsx)(tj.pikpak, {}),
onSubmit: x,
children: [
- g.logged_in ? /* @__PURE__ */ (0, C.jsxs)(LA, { children: [/* @__PURE__ */ (0, C.jsx)(RA, {
- g.logged_in ? /* @__PURE__ */ (0, C.jsxs)(IA, { children: [/* @__PURE__ */ (0, C.jsx)(LA, {
++ g.logged_in ? /* @__PURE__ */ (0, C.jsxs)(zA, { children: [/* @__PURE__ */ (0, C.jsx)(BA, {
term: "账号",
children: g.username || "已登录"
- }), g.method === "browser" ? /* @__PURE__ */ (0, C.jsx)(RA, {
- }), g.method === "browser" ? /* @__PURE__ */ (0, C.jsx)(LA, {
++ }), g.method === "browser" ? /* @__PURE__ */ (0, C.jsx)(BA, {
term: "登录方式",
children: "浏览器登录,由 Peach 续期"
- }) : /* @__PURE__ */ (0, C.jsx)(RA, {
- }) : /* @__PURE__ */ (0, C.jsx)(LA, {
++ }) : /* @__PURE__ */ (0, C.jsx)(BA, {
term: "密码",
children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"
- })] }) : /* @__PURE__ */ (0, C.jsxs)(jA, { children: [p ? D ? /* @__PURE__ */ (0, C.jsx)(PA, { children: p }) : /* @__PURE__ */ (0, C.jsx)(NA, {
- })] }) : /* @__PURE__ */ (0, C.jsxs)(AA, { children: [p ? D ? /* @__PURE__ */ (0, C.jsx)(NA, { children: p }) : /* @__PURE__ */ (0, C.jsx)(MA, {
++ })] }) : /* @__PURE__ */ (0, C.jsxs)(NA, { children: [p ? D ? /* @__PURE__ */ (0, C.jsx)(IA, { children: p }) : /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: p
}) : null, T] }),
- d || h.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
- d || h.error ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ d || h.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: d || h.error })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: d || h.error })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: d || h.error })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MA, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, C.jsx)(yA, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
- /* @__PURE__ */ (0, C.jsx)(jA, {
- status: !g.logged_in && v ? /* @__PURE__ */ (0, C.jsx)(vA, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
++ /* @__PURE__ */ (0, C.jsx)(PA, {
++ status: !g.logged_in && v ? /* @__PURE__ */ (0, C.jsx)(xA, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,
children: g.logged_in ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: w,
@@@ -71448,33 -69857,33 +71454,33 @@@
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
- var MPe = [
-var RNe = [
++var OPe = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
- function NPe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
-function zNe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
++function kPe({ data: e, receipt: t, reopenTutorial: n, panel: r }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(r),
- ...HW(r),
++ ...hG(r),
children: [
- /* @__PURE__ */ (0, C.jsx)(IPe, { facts: e.facts }),
- /* @__PURE__ */ (0, C.jsx)(PPe, {
- /* @__PURE__ */ (0, C.jsx)(HNe, { facts: e.facts }),
- /* @__PURE__ */ (0, C.jsx)(BNe, {
++ /* @__PURE__ */ (0, C.jsx)(MPe, { facts: e.facts }),
++ /* @__PURE__ */ (0, C.jsx)(APe, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, C.jsx)(LPe, {
- e.uninstall ? /* @__PURE__ */ (0, C.jsx)(UNe, {
++ e.uninstall ? /* @__PURE__ */ (0, C.jsx)(NPe, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
- function PPe({ receipt: e, reopenTutorial: t }) {
- let n = CA();
-function BNe({ receipt: e, reopenTutorial: t }) {
- let n = SA();
++function APe({ receipt: e, reopenTutorial: t }) {
++ let n = TA();
return /* @__PURE__ */ (0, C.jsx)("section", {
"aria-label": "安装教程",
className: "w-full",
- children: /* @__PURE__ */ (0, C.jsxs)(wA, { children: [/* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- children: /* @__PURE__ */ (0, C.jsxs)(CA, { children: [/* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(EA, { children: [/* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "安装教程",
children: /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
@@@ -71482,61 -69891,61 +71488,61 @@@
...J(n.busy === "reopen"),
children: "重新打开教程"
})
- }) }), n.error ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(PA, { children: n.error }) }) : null] })
- }) }), n.error ? /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(NA, { children: n.error }) }) : null] })
++ }) }), n.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(IA, { children: n.error }) }) : null] })
});
}
- function FPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = CA(e.error), s = (r) => {
-function VNe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = SA(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => U("/api/configuration/automatic-updates", {
++function jPe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e.mode), [i, a] = (0, S.useState)(e.interval_hours), o = TA(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => H("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsxs)(kA, { children: [
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, C.jsx)(NF, {
- children: /* @__PURE__ */ (0, C.jsx)(ZP, {
++ children: /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: MPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: RNe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: OPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
- o.error ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ o.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: o.error })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: o.error })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
disabled: !e.available,
...J(o.busy === "save"),
@@@ -71545,18 -69954,18 +71551,18 @@@
]
});
}
- function IPe({ facts: e }) {
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
-function HNe({ facts: e }) {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++function MPe({ facts: e }) {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "运行信息",
- children: [/* @__PURE__ */ (0, C.jsx)(LA, { children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(RA, {
- children: [/* @__PURE__ */ (0, C.jsx)(IA, { children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(LA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(zA, { children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)(BA, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, C.jsx)(IA, {
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, C.jsx)(FA, {
++ children: [e.value, e.download_url ? /* @__PURE__ */ (0, C.jsx)(RA, {
href: e.download_url,
children: e.download_label
}) : null]
- }, e.term)) }), /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- }, e.term)) }), /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ }, e.term)) }), /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "系统诊断",
- children: /* @__PURE__ */ (0, C.jsx)(gA, {
- children: /* @__PURE__ */ (0, C.jsx)(hA, {
++ children: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/diagnostics",
children: "打开系统诊断"
@@@ -71564,7 -69973,7 +71570,7 @@@
}) })]
});
}
- function LPe({ uninstall: e, receipt: t }) {
-function UNe({ uninstall: e, receipt: t }) {
++function NPe({ uninstall: e, receipt: t }) {
let [n, r] = (0, S.useState)(!1), [i, a] = (0, S.useState)(""), o = () => void Vs({
title: "卸载 Peach",
danger: !0,
@@@ -71578,33 -69987,33 +71584,33 @@@
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
id: "uninstallPeach",
title: "卸载 Peach",
children: [
- e.available ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(NA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) }) : null,
- /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- e.available ? /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(MA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) }) : null,
- /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ e.available ? /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(FA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) }) : null,
++ /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "完全卸载",
description: "同时删除设置、本地数据库、观看记录、凭据和缓存",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "完全卸载",
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r
})
}) }),
- /* @__PURE__ */ (0, C.jsx)(jA, {
- /* @__PURE__ */ (0, C.jsx)(AA, {
++ /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(zA, {
- children: /* @__PURE__ */ (0, C.jsx)(RA, {
++ children: /* @__PURE__ */ (0, C.jsx)(VA, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, C.jsx)(RB, {
- children: c.map((e) => /* @__PURE__ */ (0, C.jsx)(fB, {
++ children: c.map((e) => /* @__PURE__ */ (0, C.jsx)(VB, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
}),
- /* @__PURE__ */ (0, C.jsx)(MA, {
- /* @__PURE__ */ (0, C.jsx)(jA, {
++ /* @__PURE__ */ (0, C.jsx)(PA, {
status: s ? /* @__PURE__ */ (0, C.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@@ -71621,23 -70030,23 +71627,23 @@@
}
//#endregion
//#region src/react/settings/release-updates.tsx
- var gG = /* @__PURE__ */ new Set([
-var qW = /* @__PURE__ */ new Set([
++var bG = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
- ]), RPe = [
-]), WNe = [
++]), PPe = [
65,
75,
90
- ], _G = 120;
- function zPe({ initial: e, initialJob: t }) {
-], JW = 120;
-function GNe({ initial: e, initialJob: t }) {
++], xG = 120;
++function FPe({ initial: e, initialJob: t }) {
let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(t || {
state: "idle",
progress: 0
- }), [o, s] = (0, S.useState)(""), c = CA(), l = (0, S.useRef)(!1), u = (0, S.useRef)(!0), d = gG.has(i.state);
- }), [o, s] = (0, S.useState)(""), c = SA(), l = (0, S.useRef)(!1), u = (0, S.useRef)(!0), d = qW.has(i.state);
++ }), [o, s] = (0, S.useState)(""), c = TA(), l = (0, S.useRef)(!1), u = (0, S.useRef)(!0), d = bG.has(i.state);
(0, S.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@@ -71654,9 -70063,9 +71660,9 @@@
(0, S.useEffect)(() => {
i.state !== "ready" || l.current || (l.current = !0, p());
}, [i.state]), (0, S.useEffect)(() => {
- let e = new AbortController(), t = gG.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
- let e = new AbortController(), t = qW.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
++ let e = new AbortController(), t = bG.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await H("/api/configuration/update-status", e.signal);
+ let t = await yn("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@@ -71664,12 -70073,12 +71670,12 @@@
state: "current",
message: "已是最新测试版。"
}));
- let n = await H("/api/configuration/automatic-updates", e.signal);
+ let n = await yn("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= _G && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
- o += 1, o >= JW && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
++ o += 1, o >= xG && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < _G && (n = setTimeout(c, t));
- !e.signal.aborted && o < JW && (n = setTimeout(c, t));
++ !e.signal.aborted && o < xG && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@@ -71683,62 -70092,62 +71689,62 @@@
state: "error"
}), c.setError(V(t));
}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, C.jsxs)(LA, { children: [
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsxs)(IA, { children: [
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsxs)(zA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, C.jsx)(RA, {
- /* @__PURE__ */ (0, C.jsx)(LA, {
++ /* @__PURE__ */ (0, C.jsx)(BA, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
}),
- n.package_kind ? /* @__PURE__ */ (0, C.jsxs)(RA, {
- n.package_kind ? /* @__PURE__ */ (0, C.jsxs)(LA, {
++ n.package_kind ? /* @__PURE__ */ (0, C.jsxs)(BA, {
term: "下载内容",
children: [n.package_kind === "update" ? "应用更新包" : "应用与工具", n.asset_size ? ` · ${(n.asset_size / 1048576).toFixed(1)} MB` : ""]
}) : null
] }),
- n.package_kind === "update" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: "应用更新包复用已安装工具;工具缺失、损坏或版本变化时会另行下载所需工具包。" }) : n.package_kind === "full" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: "本次更新包含媒体工具。" }) : null,
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, C.jsxs)(jA, {
- n.package_kind === "update" ? /* @__PURE__ */ (0, C.jsx)(MA, { children: "应用更新包复用已安装工具;工具缺失、损坏或版本变化时会另行下载所需工具包。" }) : n.package_kind === "full" ? /* @__PURE__ */ (0, C.jsx)(MA, { children: "本次更新包含媒体工具。" }) : null,
- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, C.jsxs)(AA, {
++ n.package_kind === "update" ? /* @__PURE__ */ (0, C.jsx)(FA, { children: "应用更新包复用已安装工具;工具缺失、损坏或版本变化时会另行下载所需工具包。" }) : n.package_kind === "full" ? /* @__PURE__ */ (0, C.jsx)(FA, { children: "本次更新包含媒体工具。" }) : null,
++ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, C.jsxs)(NA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.checked_at ? /* @__PURE__ */ (0, C.jsxs)(MA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
++ n.checked_at ? /* @__PURE__ */ (0, C.jsxs)(FA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
n.state === "available" && !g ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, C.jsx)(PA, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, C.jsx)(NA, {
- }) : g || n.state === "error" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, C.jsx)(MA, {
++ }) : g || n.state === "error" ? /* @__PURE__ */ (0, C.jsx)(IA, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, C.jsx)(PA, { children: i.message }) : null,
- i.state === "error" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: i.message }) : null,
++ i.state === "error" ? /* @__PURE__ */ (0, C.jsx)(IA, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, C.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(SA, {
- /* @__PURE__ */ (0, C.jsx)(xA, {
++ /* @__PURE__ */ (0, C.jsx)(wA, {
label: "更新准备进度",
value: i.progress,
- stops: RPe
- stops: WNe
++ stops: PPe
}),
- /* @__PURE__ */ (0, C.jsxs)(NA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: _ })
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, C.jsx)(MA, { children: _ })
++ /* @__PURE__ */ (0, C.jsxs)(FA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: _ })
]
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)(MA, {
- status: /* @__PURE__ */ (0, C.jsx)(IA, {
- /* @__PURE__ */ (0, C.jsxs)(jA, {
- status: /* @__PURE__ */ (0, C.jsx)(FA, {
++ /* @__PURE__ */ (0, C.jsxs)(PA, {
++ status: /* @__PURE__ */ (0, C.jsx)(RA, {
href: n.release_url,
children: "查看发布页"
}),
@@@ -71766,60 -70175,60 +71772,60 @@@
}
//#endregion
//#region src/react/settings/general-settings.tsx
- function BPe({ data: e, receipt: t, panel: n }) {
-function KNe({ data: e, receipt: t, panel: n }) {
++function IPe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(n),
- ...HW(n),
++ ...hG(n),
children: [
- e.startup ? /* @__PURE__ */ (0, C.jsx)(VPe, {
- e.startup ? /* @__PURE__ */ (0, C.jsx)(qNe, {
++ e.startup ? /* @__PURE__ */ (0, C.jsx)(LPe, {
startup: e.startup,
receipt: t
}) : null,
- e.automatic_updates ? /* @__PURE__ */ (0, C.jsx)(FPe, {
- e.automatic_updates ? /* @__PURE__ */ (0, C.jsx)(VNe, {
++ e.automatic_updates ? /* @__PURE__ */ (0, C.jsx)(jPe, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, C.jsx)(zPe, {
- e.updates ? /* @__PURE__ */ (0, C.jsx)(GNe, {
++ e.updates ? /* @__PURE__ */ (0, C.jsx)(FPe, {
initial: e.updates,
initialJob: e.update_job
}) : null
]
});
}
- function VPe({ startup: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = CA(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
-function qNe({ startup: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = SA(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++function LPe({ startup: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e.enabled), [i, a] = (0, S.useState)(e.silent), [o, s] = (0, S.useState)(e.desktop), c = TA(), l = e.available && !e.desktop_message;
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => U("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => H("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsxs)(kA, { children: [
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "只启动托盘,不打开网页",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "只启动托盘,不打开网页",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@@ -71827,11 -70236,11 +71833,11 @@@
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, C.jsxs)(jA, {
- e.message || c.error ? /* @__PURE__ */ (0, C.jsxs)(AA, {
++ e.message || c.error ? /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, C.jsx)(NA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: c.error }) : null]
- children: [e.message ? /* @__PURE__ */ (0, C.jsx)(MA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: c.error }) : null]
++ children: [e.message ? /* @__PURE__ */ (0, C.jsx)(FA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
disabled: !e.available,
...J(c.busy === "save"),
@@@ -71842,7 -70251,7 +71848,7 @@@
}
//#endregion
//#region src/react/boardui/components/base/badges/status-dot.tsx
- var vG = fA({
-var YW = dA({
++var SG = mA({
base: "inline-flex size-3 shrink-0 items-center justify-center rounded-full",
halo: {
green: "bg-status-dot-green-halo",
@@@ -71855,27 -70264,27 +71861,27 @@@
indigo: "bg-indigo-500"
}
});
- function HPe({ color: e = "green", className: t, ref: n, ...r }) {
-function JNe({ color: e = "green", className: t, ref: n, ...r }) {
++function RPe({ color: e = "green", className: t, ref: n, ...r }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
ref: n,
"aria-hidden": !0,
- className: dA(vG.base, vG.halo[e], t),
- className: uA(YW.base, YW.halo[e], t),
++ className: pA(SG.base, SG.halo[e], t),
...r,
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: dA("size-1.5 rounded-full", vG.dot[e]) })
- children: /* @__PURE__ */ (0, C.jsx)("span", { className: uA("size-1.5 rounded-full", YW.dot[e]) })
++ children: /* @__PURE__ */ (0, C.jsx)("span", { className: pA("size-1.5 rounded-full", SG.dot[e]) })
});
}
//#endregion
//#region src/react/components/connection-status.tsx
- function UPe({ online: e }) {
-function YNe({ online: e }) {
++function zPe({ online: e }) {
return /* @__PURE__ */ (0, C.jsxs)("span", {
"data-mount": e === !0 ? "online" : e === !1 ? "offline" : "unknown",
- className: dA("inline-flex items-center gap-1.5 whitespace-nowrap text-body-2-medium", e === !0 ? "text-notification-success-foreground" : e === !1 ? "text-text-error-primary" : "text-text-secondary"),
- children: [/* @__PURE__ */ (0, C.jsx)(HPe, { color: e === !0 ? "green" : e === !1 ? "yellow" : "indigo" }), e === !0 ? "在线" : e === !1 ? "离线" : "未检测"]
- className: uA("inline-flex items-center gap-1.5 whitespace-nowrap text-body-2-medium", e === !0 ? "text-notification-success-foreground" : e === !1 ? "text-text-error-primary" : "text-text-secondary"),
- children: [/* @__PURE__ */ (0, C.jsx)(JNe, { color: e === !0 ? "green" : e === !1 ? "yellow" : "indigo" }), e === !0 ? "在线" : e === !1 ? "离线" : "未检测"]
++ className: pA("inline-flex items-center gap-1.5 whitespace-nowrap text-body-2-medium", e === !0 ? "text-notification-success-foreground" : e === !1 ? "text-text-error-primary" : "text-text-secondary"),
++ children: [/* @__PURE__ */ (0, C.jsx)(RPe, { color: e === !0 ? "green" : e === !1 ? "yellow" : "indigo" }), e === !0 ? "在线" : e === !1 ? "离线" : "未检测"]
});
}
//#endregion
//#region src/react/restart-redirect.ts
- var yG = 8e3, WPe = [
-var XW = 8e3, XNe = [
++var CG = 8e3, BPe = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@@ -71894,34 -70303,34 +71900,34 @@@
read: "256 / 128 KB",
task: "2 个起步"
}
- ], GPe = [
-], ZNe = [
++], VPe = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
- function KPe() {
-function QNe() {
++function HPe() {
return /* @__PURE__ */ (0, C.jsx)("div", {
className: "@container flex flex-col gap-3",
- children: /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VA, {
summary: "CloudDrive 设置帮助",
children: [
- /* @__PURE__ */ (0, C.jsxs)(NA, { children: ["先将 CloudDrive2 或 OpenList 中的网盘挂载为本机文件夹,再在这里选择。", /* @__PURE__ */ (0, C.jsx)(IA, {
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: ["先将 CloudDrive2 或 OpenList 中的网盘挂载为本机文件夹,再在这里选择。", /* @__PURE__ */ (0, C.jsx)(FA, {
++ /* @__PURE__ */ (0, C.jsxs)(FA, { children: ["先将 CloudDrive2 或 OpenList 中的网盘挂载为本机文件夹,再在这里选择。", /* @__PURE__ */ (0, C.jsx)(RA, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
})] }),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: "文件操作需要挂载工具和网盘账号授予写入权限。光鸭云盘的上传、建文件夹、改名和移动需要 CloudDrive2 v1.1.0 或更高版本,删除和复制暂不支持。" }),
- /* @__PURE__ */ (0, C.jsx)(MA, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
- /* @__PURE__ */ (0, C.jsx)(MA, { children: "文件操作需要挂载工具和网盘账号授予写入权限。光鸭云盘的上传、建文件夹、改名和移动需要 CloudDrive2 v1.1.0 或更高版本,删除和复制暂不支持。" }),
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: "文件操作需要挂载工具和网盘账号授予写入权限。光鸭云盘的上传、建文件夹、改名和移动需要 CloudDrive2 v1.1.0 或更高版本,删除和复制暂不支持。" }),
/* @__PURE__ */ (0, C.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: WPe.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
- children: XNe.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
++ children: BPe.map((e) => /* @__PURE__ */ (0, C.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, C.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: GPe.map(([t, n]) => /* @__PURE__ */ (0, C.jsxs)("div", {
- children: ZNe.map(([t, n]) => /* @__PURE__ */ (0, C.jsxs)("div", {
++ children: VPe.map(([t, n]) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, C.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@@ -71942,7 -70351,7 +71948,7 @@@
/* @__PURE__ */ (0, C.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(IA, {
- /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(FA, {
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: /* @__PURE__ */ (0, C.jsx)(RA, {
href: "https://github.com/peach-mitao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "完整配置与调优说明"
}) })
@@@ -71952,7 -70361,7 +71958,7 @@@
}
//#endregion
//#region src/react/settings/folder-rows.tsx
- function qPe({ className: e }) {
-function $Ne({ className: e }) {
++function UPe({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@@ -71965,12 -70374,12 +71971,12 @@@
children: /* @__PURE__ */ (0, C.jsx)("use", { href: "#i-folder-search" })
});
}
- var bG = Ot, xG = (e) => uo[e] || "database", JPe = (e) => At.includes(e);
- function YPe({ index: e, cost: t, error: n, onChange: r }) {
-var ZW = kt, QW = (e) => uo[e] || "database", ePe = (e) => jt.includes(e);
-function tPe({ index: e, cost: t, error: n, onChange: r }) {
++var wG = Ot, TG = (e) => uo[e] || "database", WPe = (e) => At.includes(e);
++function GPe({ index: e, cost: t, error: n, onChange: r }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-media-read-policy": e,
className: "flex w-full flex-col gap-1.5 @lg:w-48",
- children: [/* @__PURE__ */ (0, C.jsxs)(NF, {
- children: [/* @__PURE__ */ (0, C.jsxs)(ZP, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(IF, {
"aria-label": `媒体读取策略 ${e + 1}`,
placeholder: "选择读取策略",
isRequired: !0,
@@@ -71980,20 -70389,20 +71986,20 @@@
onSelectionChange: (e) => {
(e === "free" || e === "metered") && r(e);
},
- children: [/* @__PURE__ */ (0, C.jsx)(PF, {
- children: [/* @__PURE__ */ (0, C.jsx)(QP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(LF, {
id: "free",
children: "正常读取"
- }), /* @__PURE__ */ (0, C.jsx)(PF, {
- }), /* @__PURE__ */ (0, C.jsx)(QP, {
++ }), /* @__PURE__ */ (0, C.jsx)(LF, {
id: "metered",
children: "代理流量保护"
})]
- }), n ? /* @__PURE__ */ (0, C.jsx)(PA, { children: n }) : null]
- }), n ? /* @__PURE__ */ (0, C.jsx)(NA, { children: n }) : null]
++ }), n ? /* @__PURE__ */ (0, C.jsx)(IA, { children: n }) : null]
});
}
- function XPe() {
- return /* @__PURE__ */ (0, C.jsx)(NA, { children: "按挂载工具实际配置选择;代理流量保护会限制自动媒体读取。" });
-function nPe() {
- return /* @__PURE__ */ (0, C.jsx)(MA, { children: "按挂载工具实际配置选择;代理流量保护会限制自动媒体读取。" });
++function KPe() {
++ return /* @__PURE__ */ (0, C.jsx)(FA, { children: "按挂载工具实际配置选择;代理流量保护会限制自动媒体读取。" });
}
- function ZPe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
-function rPe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
++function qPe({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {
let [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)([]), [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(null), p = (0, S.useRef)(!1), m = (0, S.useRef)([]);
(0, S.useLayoutEffect)(() => {
l !== null && (m.current[l]?.focus(), u(null));
@@@ -72036,7 -70445,7 +72042,7 @@@
}
};
}
- function QPe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
-function iPe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
++function JPe({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {
let u = (0, S.useRef)(null), d = () => {
let e = u.current;
e && e.ownerDocument.activeElement !== e && (e.scrollLeft = e.scrollWidth);
@@@ -72049,7 -70458,7 +72055,7 @@@
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
className: "min-w-0 flex-1",
"aria-label": e,
placeholder: "本机文件夹路径",
@@@ -72067,8 -70476,8 +72073,8 @@@
className: "flex h-9 shrink-0 items-center",
children: c
}) : null,
-- /* @__PURE__ */ (0, C.jsx)(dj, {
- icon: qPe,
- icon: $Ne,
++ /* @__PURE__ */ (0, C.jsx)(mj, {
++ icon: UPe,
"aria-label": "选择文件夹",
onClick: o,
...J(a)
@@@ -72076,7 -70485,7 +72082,7 @@@
s ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "danger",
iconOnly: !0,
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
"aria-label": "移除这个文件夹",
onClick: s
}) : null
@@@ -72087,23 -70496,23 +72093,23 @@@
})]
});
}
- function $Pe({ index: e, value: t, onChange: n, options: r = bG }) {
- return /* @__PURE__ */ (0, C.jsx)(NF, {
-function aPe({ index: e, value: t, onChange: n, options: r = ZW }) {
- return /* @__PURE__ */ (0, C.jsx)(ZP, {
++function YPe({ index: e, value: t, onChange: n, options: r = wG }) {
++ return /* @__PURE__ */ (0, C.jsx)(IF, {
className: "w-full @lg:w-60",
"aria-label": `媒体来源 ${e + 1}`,
selectedKey: t,
onSelectionChange: (e) => {
e !== null && n(String(e));
},
- children: r.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(PF, {
- children: r.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(QP, {
++ children: r.map(([e, t]) => /* @__PURE__ */ (0, C.jsxs)(LF, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: xG(e) }), t]
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: QW(e) }), t]
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: TG(e) }), t]
}, e))
});
}
- function eFe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, C.jsx)(bP, {
-function oPe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
- return /* @__PURE__ */ (0, C.jsx)(mP, {
++function XPe({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {
++ return /* @__PURE__ */ (0, C.jsx)(CP, {
label: n,
placeholder: r,
value: e,
@@@ -72112,7 -70521,7 +72118,7 @@@
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
- var SG = [
-var $W = [
++var EG = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@@ -72156,13 -70565,13 +72162,13 @@@
["star", "收藏"],
["tags", "主题"]
];
- function tFe(e) {
-function sPe(e) {
++function ZPe(e) {
let t = e === "local" ? "" : uo[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
- var CG = "auto";
- function nFe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(e), [l, u] = tFe(n);
-var eG = "auto";
-function cPe({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(e), [l, u] = sPe(n);
++var DG = "auto";
++function QPe({ value: e, label: t, kind: n = "local", onChange: r }) {
++ let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(!1), [s, c] = (0, S.useState)(e), [l, u] = ZPe(n);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
ref: i,
variant: "secondary",
@@@ -72176,35 -70585,35 +72182,35 @@@
children: /* @__PURE__ */ (0, C.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: e || l }), ((e) => e && SG.find(([t]) => t === e)?.[1] || u)(e)]
- children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: e || l }), ((e) => e && $W.find(([t]) => t === e)?.[1] || u)(e)]
++ children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: e || l }), ((e) => e && EG.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsxs)(TN, {
- className: FP,
- children: /* @__PURE__ */ (0, C.jsxs)(yN, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsxs)(ON, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, C.jsx)(Hj, {
- /* @__PURE__ */ (0, C.jsx)(Vj, {
++ /* @__PURE__ */ (0, C.jsx)(Gj, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, C.jsx)(MN, {
- /* @__PURE__ */ (0, C.jsx)(EN, {
++ /* @__PURE__ */ (0, C.jsx)(FN, {
"aria-label": "候选图标",
- value: s || CG,
- onChange: (e) => c(e === CG ? "" : e),
- value: s || eG,
- onChange: (e) => c(e === eG ? "" : e),
++ value: s || DG,
++ onChange: (e) => c(e === DG ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: SG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(NN, {
- value: e || CG,
- children: $W.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(DN, {
- value: e || eG,
++ children: EG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(IN, {
++ value: e || DG,
"aria-label": e ? t : u,
className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",
- children: /* @__PURE__ */ (0, C.jsx)(BA, { mark: e || l })
- }, e || CG))
- children: /* @__PURE__ */ (0, C.jsx)(zA, { mark: e || l })
- }, e || eG))
++ children: /* @__PURE__ */ (0, C.jsx)(HA, { mark: e || l })
++ }, e || DG))
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@@ -72226,9 -70635,9 +72232,9 @@@
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
- var rFe = "/api/configuration/push-discovery", iFe = "/api/configuration/push-discovery/secret";
- function aFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.prefixes), [o, s] = (0, S.useState)(""), c = CA(), l = YP(), u = n.media_roots, [d, f] = (0, S.useState)(e), p = (e, n) => {
-var lPe = "/api/configuration/push-discovery", uPe = "/api/configuration/push-discovery/secret";
-function dPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.prefixes), [o, s] = (0, S.useState)(""), c = SA(), l = UP(), u = n.media_roots, [d, f] = (0, S.useState)(e), p = (e, n) => {
++var $Pe = "/api/configuration/push-discovery", eFe = "/api/configuration/push-discovery/secret";
++function tFe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.prefixes), [o, s] = (0, S.useState)(""), c = TA(), l = QP(), u = n.media_roots, [d, f] = (0, S.useState)(e), p = (e, n) => {
r(e), f(e), a(e.prefixes), s(""), t(n);
}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {
...n,
@@@ -72241,21 -70650,21 +72247,21 @@@
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => H(rFe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(V(e)));
- c.run("save", (e) => U(lPe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(V(e)));
++ c.run("save", (e) => H($Pe, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(V(e)));
}, g = () => {
- c.run("secret", (e) => H(iFe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(V(e)));
- c.run("secret", (e) => U(uPe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(V(e)));
++ c.run("secret", (e) => H(eFe, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(V(e)));
}, _ = () => {
navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看配置」选中自己复制。"));
}, v = `已入库 ${d.queue.ingested} 个文件` + (d.queue.pending ? `,队列里还有 ${d.queue.pending} 条` : ""), y = d.local_running ? `正在监视 ${d.local_roots.join("、")}` : d.local_message || "没有运行";
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "推送发现",
onSubmit: h,
children: [
- /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsxs)(kA, { children: [
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "新文件落地就入库",
description: d.enabled ? v : void 0,
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@@ -72265,10 -70674,10 +72271,10 @@@
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "监视本机文件夹",
description: d.enabled && d.watch_local ? y : void 0,
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@@ -72278,9 -70687,9 +72284,9 @@@
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "接收 CloudDrive2 通知",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@@ -72290,7 -70699,7 +72296,7 @@@
})
})
}),
- d.enabled && d.cloud ? /* @__PURE__ */ (0, C.jsx)(EA, {
- d.enabled && d.cloud ? /* @__PURE__ */ (0, C.jsx)(TA, {
++ d.enabled && d.cloud ? /* @__PURE__ */ (0, C.jsx)(OA, {
label: "Webhook 配置",
description: d.config_toml ? "贴进 CloudDrive2「设置 → Webhooks」,需要会员;更换密钥后要重贴。" : d.origin ? "还没有共享密钥,保存配置后生成。" : "要先有 CloudDrive2 能访问的 HTTPS 地址才能生成。",
children: d.config_toml ? /* @__PURE__ */ (0, C.jsx)(K, {
@@@ -72301,11 -70710,11 +72307,11 @@@
}) : null
}) : null
] }),
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(jA, {
- d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
children: /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col gap-3",
- children: /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VA, {
summary: "查看配置",
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "relative",
@@@ -72315,16 -70724,16 +72321,16 @@@
className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",
children: d.config_toml
})
- }), /* @__PURE__ */ (0, C.jsx)(NA, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
- }), /* @__PURE__ */ (0, C.jsx)(MA, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
++ }), /* @__PURE__ */ (0, C.jsx)(FA, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]
})
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, C.jsx)(jA, {
- n.enabled && n.cloud ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ n.enabled && n.cloud ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
children: /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "云端路径前缀" }),
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "云端路径前缀" }),
/* @__PURE__ */ (0, C.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@@ -72332,7 -70741,7 +72338,7 @@@
children: i.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@@ -72341,13 -70750,13 +72347,13 @@@
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: u.map((e) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: u.map((e) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: e
}, e))
@@@ -72355,7 -70764,7 +72361,7 @@@
/* @__PURE__ */ (0, C.jsx)(K, {
variant: "danger",
iconOnly: !0,
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@@ -72374,11 -70783,11 +72380,11 @@@
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
- o || c.error ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ o || c.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: o || c.error })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: o || c.error })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsxs)(jA, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsxs)(PA, { children: [d.enabled && d.cloud && d.config_toml ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
onClick: g,
disabled: !n.available,
@@@ -72395,7 -70804,7 +72401,7 @@@
}
//#endregion
//#region src/react/settings/media-settings.tsx
- var oFe = (e) => bG.find(([t]) => t === e)?.[1] ?? e, sFe = async (e) => (await H(xPe, { initial: e })).path, wG = (e = "") => ({
-var fPe = (e) => ZW.find(([t]) => t === e)?.[1] ?? e, pPe = async (e) => (await U(DNe, { initial: e })).path, tG = (e = "") => ({
++var nFe = (e) => wG.find(([t]) => t === e)?.[1] ?? e, rFe = async (e) => (await H(_Pe, { initial: e })).path, OG = (e = "") => ({
path: e,
location: "local",
root: "",
@@@ -72403,23 -70812,23 +72409,23 @@@
library_icon: "",
cost: "free"
});
- function cFe(e) {
- let t = e.media_sources?.filter((e) => bG.some(([t]) => t === e.location));
-function mPe(e) {
- let t = e.media_sources?.filter((e) => ZW.some(([t]) => t === e.location));
++function iFe(e) {
++ let t = e.media_sources?.filter((e) => wG.some(([t]) => t === e.location));
return t?.length ? t.map((e) => ({
path: e.path,
location: e.location,
root: e.root,
library: e.library || "",
library_icon: e.library_icon || "",
- cost: e.cost ?? Nt(e.location)
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => tG(e));
+ cost: e.cost ?? Mt(e.location)
- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => wG(e));
++ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => OG(e));
}
- var lFe = (e) => !(e instanceof _n) || e.status !== 400 ? null : e.body?.errors ?? null;
- function uFe({ data: e, receipt: t, panel: n }) {
-var hPe = (e) => !(e instanceof vn) || e.status !== 400 ? null : e.body?.errors ?? null;
-function gPe({ data: e, receipt: t, panel: n }) {
++var aFe = (e) => !(e instanceof _n) || e.status !== 400 ? null : e.body?.errors ?? null;
++function oFe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(n),
- ...HW(n),
++ ...hG(n),
children: [
- e.editable ? /* @__PURE__ */ (0, C.jsx)(dFe, {
- e.editable ? /* @__PURE__ */ (0, C.jsx)(_Pe, {
++ e.editable ? /* @__PURE__ */ (0, C.jsx)(sFe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, C.jsx)(q, {
@@@ -72427,24 -70836,24 +72433,24 @@@
title: "只读",
children: e.notice
}),
- e.editable ? null : /* @__PURE__ */ (0, C.jsx)(fFe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, C.jsx)(aFe, {
- e.editable ? null : /* @__PURE__ */ (0, C.jsx)(vPe, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, C.jsx)(dPe, {
++ e.editable ? null : /* @__PURE__ */ (0, C.jsx)(cFe, { data: e }),
++ e.push_discovery ? /* @__PURE__ */ (0, C.jsx)(tFe, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
- function dFe({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = ZPe({
- initial: () => cFe(e),
- blank: () => wG(),
- pickFolder: sFe,
-function _Pe({ data: e, receipt: t }) {
- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = rPe({
- initial: () => mPe(e),
- blank: () => tG(),
- pickFolder: pPe,
++function sFe({ data: e, receipt: t }) {
++ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = qPe({
++ initial: () => iFe(e),
++ blank: () => OG(),
++ pickFolder: rFe,
describe: V
- }), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(e.revision), b = CA();
- }), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(e.revision), b = SA();
++ }), [d, f] = (0, S.useState)(!1), [p, m] = (0, S.useState)(!1), [h, g] = (0, S.useState)(""), [_, v] = (0, S.useState)(null), y = (0, S.useRef)(e.revision), b = TA();
(0, S.useEffect)(() => {
if (!_) return;
- let e = setTimeout(() => location.assign(_.url), yG);
- let e = setTimeout(() => location.assign(_.url), XW);
++ let e = setTimeout(() => location.assign(_.url), CG);
return () => clearTimeout(e);
}, [_]);
let x = (r) => {
@@@ -72454,7 -70863,7 +72460,7 @@@
m(!0);
let e = r.currentTarget;
requestAnimationFrame(() => e.querySelector(`[data-media-read-policy="${i}"] button`)?.focus());
- } else g(""), b.run("save", (t) => H(sG, {
- } else g(""), b.run("save", (t) => U(RW, {
++ } else g(""), b.run("save", (t) => H(dG, {
revision: y.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@@ -72463,18 -70872,18 +72469,18 @@@
}, "POST", t), (e) => {
y.current = e.revision, s([]), t("已保存配置"), v(e);
}, (e) => {
- let t = lFe(e);
- let t = hPe(e);
++ let t = aFe(e);
s(t?.media_dirs ?? []), (!t || t.port) && g(t?.port || V(e));
});
};
- if (_) return /* @__PURE__ */ (0, C.jsx)(kA, {
- if (_) return /* @__PURE__ */ (0, C.jsx)(OA, {
++ if (_) return /* @__PURE__ */ (0, C.jsx)(jA, {
title: "媒体文件夹",
- children: /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
- children: /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
++ children: /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, C.jsx)(OA, {
- /* @__PURE__ */ (0, C.jsx)(DA, {
++ /* @__PURE__ */ (0, C.jsx)(AA, {
href: _.url,
size: "small",
children: "进入馆藏"
@@@ -72483,20 -70892,20 +72489,20 @@@
]
}) })
});
- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => JPe(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => ePe(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => WPe(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "媒体文件夹",
onSubmit: x,
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsx)(FA, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, C.jsx)(PA, { children: "媒体文件夹" }),
++ /* @__PURE__ */ (0, C.jsx)(LA, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, C.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, i) => /* @__PURE__ */ (0, C.jsxs)(QPe, {
- children: n.map((t, i) => /* @__PURE__ */ (0, C.jsxs)(iPe, {
++ children: n.map((t, i) => /* @__PURE__ */ (0, C.jsxs)(JPe, {
label: `媒体文件夹 ${i + 1}`,
path: t.path,
onPath: (e) => r(i, { path: e }),
@@@ -72505,9 -70914,9 +72511,9 @@@
picking: c === i,
onPick: () => void l(i),
onRemove: n.length > 1 ? () => a(i) : void 0,
- status: w(t.path) ? /* @__PURE__ */ (0, C.jsx)(TG, { online: w(t.path)?.online }) : null,
- status: w(t.path) ? /* @__PURE__ */ (0, C.jsx)(nG, { online: w(t.path)?.online }) : null,
++ status: w(t.path) ? /* @__PURE__ */ (0, C.jsx)(kG, { online: w(t.path)?.online }) : null,
children: [
- /* @__PURE__ */ (0, C.jsx)($Pe, {
- /* @__PURE__ */ (0, C.jsx)(aPe, {
++ /* @__PURE__ */ (0, C.jsx)(YPe, {
index: i,
value: t.location,
onChange: (e) => r(i, {
@@@ -72515,13 -70924,13 +72521,13 @@@
cost: e === "local" ? "free" : ""
})
}),
- /* @__PURE__ */ (0, C.jsx)(YPe, {
- /* @__PURE__ */ (0, C.jsx)(tPe, {
++ /* @__PURE__ */ (0, C.jsx)(GPe, {
index: i,
cost: t.cost,
onChange: (e) => r(i, { cost: e }),
error: p && !t.cost ? "请选择媒体读取策略" : void 0
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
className: "min-w-40 flex-1",
"aria-label": `媒体库名称 ${i + 1}`,
maxLength: 80,
@@@ -72529,13 -70938,13 +72535,13 @@@
value: t.library,
onChange: (e) => r(i, { library: e })
}),
- /* @__PURE__ */ (0, C.jsx)(nFe, {
- /* @__PURE__ */ (0, C.jsx)(cPe, {
++ /* @__PURE__ */ (0, C.jsx)(QPe, {
label: `媒体库图标 ${i + 1}`,
value: t.library_icon,
kind: t.location,
onChange: (e) => r(i, { library_icon: e })
}),
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(eFe, {
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(oPe, {
++ e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(XPe, {
value: t.root,
onChange: (e) => r(i, { root: e })
}) : null
@@@ -72550,18 -70959,18 +72556,18 @@@
})
]
}),
- T ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(XPe, {}), /* @__PURE__ */ (0, C.jsx)(KPe, {})] }) : null,
- E.map((e) => /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
- T ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(nPe, {}), /* @__PURE__ */ (0, C.jsx)(QNe, {})] }) : null,
- E.map((e) => /* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ T ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(KPe, {}), /* @__PURE__ */ (0, C.jsx)(HPe, {})] }) : null,
++ E.map((e) => /* @__PURE__ */ (0, C.jsxs)(FA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, C.jsxs)(IA, {
- /* @__PURE__ */ (0, C.jsxs)(FA, {
++ /* @__PURE__ */ (0, C.jsxs)(RA, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(NA, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
- /* @__PURE__ */ (0, C.jsx)(JP, {
- e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(MA, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ e.windows === !1 ? /* @__PURE__ */ (0, C.jsx)(FA, { children: "Windows 对应路径应与馆藏中记录的路径一致。" }) : null,
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: d,
onChange: f,
children: "保存后扫描并补全资料"
@@@ -72571,7 -70980,7 +72577,7 @@@
title: "没有保存",
children: h
}) : null
- ] }), /* @__PURE__ */ (0, C.jsx)(MA, {
- ] }), /* @__PURE__ */ (0, C.jsx)(jA, {
++ ] }), /* @__PURE__ */ (0, C.jsx)(PA, {
status: "保存后 Peach 会重新启动。",
children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
@@@ -72581,25 -70990,25 +72587,25 @@@
})]
});
}
- function TG({ online: e }) {
- return /* @__PURE__ */ (0, C.jsx)(UPe, { online: e });
-function nG({ online: e }) {
- return /* @__PURE__ */ (0, C.jsx)(YNe, { online: e });
++function kG({ online: e }) {
++ return /* @__PURE__ */ (0, C.jsx)(zPe, { online: e });
}
- function fFe({ data: e }) {
- let t = e.media_sources, n = CA();
- return t ? /* @__PURE__ */ (0, C.jsxs)(kA, {
-function vPe({ data: e }) {
- let t = e.media_sources, n = SA();
- return t ? /* @__PURE__ */ (0, C.jsxs)(OA, {
++function cFe({ data: e }) {
++ let t = e.media_sources, n = TA();
++ return t ? /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, C.jsx)(LA, { children: t.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(RA, {
- term: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(BA, { mark: xG(e.location) }), oFe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, C.jsx)(TG, { online: e.online })]
- /* @__PURE__ */ (0, C.jsx)(IA, { children: t.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(LA, {
- term: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(zA, { mark: QW(e.location) }), fPe(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, C.jsx)(nG, { online: e.online })]
++ /* @__PURE__ */ (0, C.jsx)(zA, { children: t.map((e, t) => /* @__PURE__ */ (0, C.jsxs)(BA, {
++ term: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(HA, { mark: TG(e.location) }), nFe(e.location)] }),
++ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, C.jsx)(kG, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, C.jsx)(jA, {
- n.error ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ n.error ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: n.error })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: n.error })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
- onClick: () => void n.run("refresh", (e) => lG(e), (e) => U.setQueryData(cG, e)),
- onClick: () => void n.run("refresh", (e) => BW(e), (e) => W.setQueryData(zW, e)),
++ onClick: () => void n.run("refresh", (e) => pG(e), (e) => U.setQueryData(fG, e)),
...J(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@@ -72608,76 -71017,76 +72614,76 @@@
}
//#endregion
//#region src/application/initial-follow-ranges.ts
- var EG = [
-var rG = [
++var AG = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
- ], pFe = [
-], yPe = [
++], lFe = [
["off", "关闭"],
["precise", "每 10 秒一张"],
["coarse", "每 30 秒一张"]
];
- function mFe({ epoch: e = 0, disabled: t = !1 }) {
-function bPe({ epoch: e = 0, disabled: t = !1 }) {
- let n = pt({
- queryKey: Sz,
- queryFn: ({ signal: e }) => $Te(e),
++function uFe({ epoch: e = 0, disabled: t = !1 }) {
+ let n = ft({
- queryKey: Jz,
- queryFn: ({ signal: e }) => YEe(e),
++ queryKey: Zz,
++ queryFn: ({ signal: e }) => KEe(e),
refetchOnMount: "always"
- }), r = QEe(), i = r.reset;
- }), r = nEe(), i = r.reset;
++ }), r = YEe(), i = r.reset;
(0, S.useEffect)(() => {
i();
}, [e, i]);
let a = n.data, o = r.error || n.error;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "时间轴预览",
description: "按所选间隔抽帧,仅处理本机磁盘上的视频。",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "videoThumbnailSetting",
- children: /* @__PURE__ */ (0, C.jsx)(NF, {
- children: /* @__PURE__ */ (0, C.jsx)(ZP, {
++ children: /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "缩略图采集间隔",
selectedKey: a?.mode || "off",
isDisabled: t || !a || n.isFetching || r.isPending,
onSelectionChange: (e) => {
e !== null && r.mutate(String(e));
},
- children: pFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: yPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: lFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
})
})
}) }),
- r.isPending || a?.status === "running" ? /* @__PURE__ */ (0, C.jsx)(jA, {
- r.isPending || a?.status === "running" ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ r.isPending || a?.status === "running" ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(NA, {
- children: /* @__PURE__ */ (0, C.jsx)(MA, {
++ children: /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: r.isPending ? "正在保存…" : "正在采集,进度在活动页查看。"
})
}) : null,
- o ? /* @__PURE__ */ (0, C.jsx)(jA, {
- o ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ o ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: V(o) })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: V(o) })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: V(o) })
}) : null
] });
}
- function hFe({ receipt: e }) {
-function xPe({ receipt: e }) {
-- let t = xE();
++function dFe({ receipt: e }) {
++ let t = CE();
(0, S.useSyncExternalStore)(t.subscribe, t.version);
- let n = pt({
- queryKey: bz,
- queryFn: ({ signal: e }) => Cz(e),
+ let n = ft({
- queryKey: Kz,
- queryFn: ({ signal: e }) => Yz(e),
++ queryKey: Yz,
++ queryFn: ({ signal: e }) => Qz(e),
refetchOnMount: "always"
- }), r = Xz(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- }), r = wz(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ }), r = $z(), i = n.data?.followInitialDays ?? t.value.followInitialDays, a = r.error || n.error;
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "关注采集",
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(gFe, {}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- children: [/* @__PURE__ */ (0, C.jsxs)(kA, { children: [
- /* @__PURE__ */ (0, C.jsx)(SPe, {}),
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(MA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(fFe, {}),
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "首次采集范围",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "followInitialDaysSetting",
- children: /* @__PURE__ */ (0, C.jsx)(NF, {
- children: /* @__PURE__ */ (0, C.jsx)(ZP, {
++ children: /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "首次采集范围",
selectedKey: String(i),
isDisabled: n.isFetching || r.isPending,
@@@ -72686,33 -71095,33 +72692,33 @@@
typeof n.followInitialDays == "number" && (t.value.followInitialDays = n.followInitialDays), t.save(), e("已保存首次采集范围");
} });
},
- children: EG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: rG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: AG.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
})
})
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "头像刷新",
children: "每 3 个月"
}),
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "favicon 刷新",
children: "每年"
})
- ] }), a ? /* @__PURE__ */ (0, C.jsx)(jA, {
- ] }), a ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ ] }), a ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: V(a) })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: V(a) })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: V(a) })
}) : null]
});
}
- function gFe() {
-function SPe() {
- let e = pt({
- queryKey: xz,
- queryFn: ({ signal: e }) => QTe(e),
++function fFe() {
+ let e = ft({
- queryKey: qz,
- queryFn: ({ signal: e }) => JEe(e),
++ queryKey: Xz,
++ queryFn: ({ signal: e }) => GEe(e),
refetchOnMount: "always"
- }), t = ZEe(), n = e.data, r = (0, S.useRef)(oE(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, S.useState)("60"), [o, s] = (0, S.useState)(!1);
- }), t = tEe(), n = e.data, r = (0, S.useRef)(oE(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, S.useState)("60"), [o, s] = (0, S.useState)(!1);
++ }), t = JEe(), n = e.data, r = (0, S.useRef)(cE(Number(localStorage.getItem("peach.number.followScheduleSetting")), 15, 10080, 60)), [i, a] = (0, S.useState)("60"), [o, s] = (0, S.useState)(!1);
(0, S.useEffect)(() => {
n?.enabled && (r.current = n.interval_minutes, a(String(n.interval_minutes)));
}, [n]);
@@@ -72721,12 -71130,12 +72727,12 @@@
!Number.isInteger(e) || e < 15 || e > 10080 ? s(!0) : (s(!1), n?.enabled && !c && e !== n.interval_minutes && (r.current = e, localStorage.setItem("peach.number.followScheduleSetting", String(e)), t.mutate(e)));
}, u = t.error || e.error;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(OA, {
label: "自动检查更新",
children: /* @__PURE__ */ (0, C.jsxs)("div", {
id: "followScheduleSetting",
className: "flex min-w-0 flex-wrap items-center justify-end gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(mU, {
- children: [/* @__PURE__ */ (0, C.jsx)(WH, {
++ children: [/* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "自动检查更新",
isSelected: n?.enabled === !0,
isDisabled: c,
@@@ -72735,7 -71144,7 +72741,7 @@@
}
}), n?.enabled ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsx)(CP, {
type: "number",
inputMode: "numeric",
name: "follow-interval",
@@@ -72760,56 -71169,56 +72766,56 @@@
}) : null]
})
}),
- o ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(PA, { children: "请输入 15–10080 的整数(分钟)。" }) }) : null,
- t.isPending || n?.running ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(NA, {
- o ? /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(NA, { children: "请输入 15–10080 的整数(分钟)。" }) }) : null,
- t.isPending || n?.running ? /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(MA, {
++ o ? /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(IA, { children: "请输入 15–10080 的整数(分钟)。" }) }) : null,
++ t.isPending || n?.running ? /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: t.isPending ? "正在保存…" : "正在检查来源更新…"
}) }) : null,
- u ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(PA, { children: V(u) }) }) : null
- u ? /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(NA, { children: V(u) }) }) : null
++ u ? /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsx)(IA, { children: V(u) }) }) : null
] });
}
//#endregion
//#region src/react/settings/media-processing-settings.tsx
- var DG = ["media-processing"];
- function _Fe({ receipt: e }) {
-var iG = ["media-processing"];
-function CPe({ receipt: e }) {
- let t = pt({
- queryKey: iG,
- queryFn: ({ signal: e }) => H("/api/media-processing", e)
- }), n = SA(), r = n.error || (t.error ? V(t.error) : "");
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++var jG = ["media-processing"];
++function pFe({ receipt: e }) {
+ let t = ft({
- queryKey: DG,
++ queryKey: jG,
+ queryFn: ({ signal: e }) => yn("/api/media-processing", e)
- }), n = CA(), r = n.error || (t.error ? V(t.error) : "");
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
++ }), n = TA(), r = n.error || (t.error ? V(t.error) : "");
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "视频预览",
children: [
- /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "生成视频预览",
description: "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。",
- children: /* @__PURE__ */ (0, C.jsx)(mU, {
- children: /* @__PURE__ */ (0, C.jsx)(WH, {
++ children: /* @__PURE__ */ (0, C.jsx)(vU, {
"aria-label": "生成视频预览",
isSelected: !!t.data && !t.data.metadata_only,
isDisabled: !t.data || t.isFetching || !!n.busy,
- onChange: (t) => void n.run("save", (e) => U("/api/media-processing", { metadata_only: !t }, "POST", e), (t) => {
- W.setQueryData(iG, t), W.invalidateQueries({ queryKey: Sz }), W.invalidateQueries({ queryKey: SI }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");
+ onChange: (t) => void n.run("save", (e) => H("/api/media-processing", { metadata_only: !t }, "POST", e), (t) => {
- U.setQueryData(DG, t), U.invalidateQueries({ queryKey: Jz }), U.invalidateQueries({ queryKey: sF }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");
++ U.setQueryData(jG, t), U.invalidateQueries({ queryKey: Zz }), U.invalidateQueries({ queryKey: uF }), e(t.metadata_only ? "已关闭视频预览生成" : "已开启视频预览生成");
})
})
}) }),
- /* @__PURE__ */ (0, C.jsx)(mFe, { disabled: !t.data || t.data.metadata_only || !!n.busy }),
- n.busy ? /* @__PURE__ */ (0, C.jsx)(jA, {
- /* @__PURE__ */ (0, C.jsx)(bPe, { disabled: !t.data || t.data.metadata_only || !!n.busy }),
- n.busy ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ /* @__PURE__ */ (0, C.jsx)(uFe, { disabled: !t.data || t.data.metadata_only || !!n.busy }),
++ n.busy ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(NA, {
- children: /* @__PURE__ */ (0, C.jsx)(MA, {
++ children: /* @__PURE__ */ (0, C.jsx)(FA, {
role: "status",
children: "正在保存…"
})
}) : null,
- r ? /* @__PURE__ */ (0, C.jsx)(jA, {
- r ? /* @__PURE__ */ (0, C.jsx)(AA, {
++ r ? /* @__PURE__ */ (0, C.jsx)(NA, {
divided: !0,
- children: /* @__PURE__ */ (0, C.jsx)(PA, { children: r })
- children: /* @__PURE__ */ (0, C.jsx)(NA, { children: r })
++ children: /* @__PURE__ */ (0, C.jsx)(IA, { children: r })
}) : null
]
});
}
//#endregion
//#region src/react/settings/password-pair.tsx
- function vFe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(bP, {
-function wPe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++function mFe({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(CP, {
id: "access-password",
type: "password",
label: e,
@@@ -72822,7 -71231,7 +72828,7 @@@
validationBehavior: "aria",
isInvalid: !a && !!o,
hint: a ? s : o || s
- }), /* @__PURE__ */ (0, C.jsx)(bP, {
- }), /* @__PURE__ */ (0, C.jsx)(mP, {
++ }), /* @__PURE__ */ (0, C.jsx)(CP, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@@ -72839,16 -71248,16 +72845,16 @@@
}
//#endregion
//#region src/react/settings/access-settings.tsx
- var yFe = {
-var TPe = {
++var hFe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
- function bFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = CA(), g = (e) => {
-function EPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = SA(), g = (e) => {
++function gFe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(""), [c, l] = (0, S.useState)(""), [u, d] = (0, S.useState)(!1), [f, p] = (0, S.useState)({}), m = (0, S.useRef)(null), h = TA(), g = (e) => {
e.preventDefault();
let f = {};
- n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length ? requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus()) : h.run("save", (e) => U("/api/configuration/access", {
+ n.mode === "password" && !i && (f.current_password = "请输入当前访问密码"), u || ((o.length < 8 || o.length > 256) && (f.password = "访问密码需为 8–256 个字符"), o !== c && (f.confirmation = "两次输入的密码不一致")), p(f), Object.keys(f).length ? requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus()) : h.run("save", (e) => H("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@@ -72858,28 -71267,28 +72864,28 @@@
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof vn ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof _n ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(V(e));
});
- }, _ = yFe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- }, _ = TPe[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ }, _ = hFe[n.mode], v = n.mode !== "locked";
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- _ ? /* @__PURE__ */ (0, C.jsx)(NA, { children: _ }) : null,
- children: /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- _ ? /* @__PURE__ */ (0, C.jsx)(MA, { children: _ }) : null,
++ children: /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ _ ? /* @__PURE__ */ (0, C.jsx)(FA, { children: _ }) : null,
n.mode === "open" ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, C.jsx)(JP, {
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, C.jsx)(HP, {
++ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, C.jsx)(bP, {
- n.mode === "password" ? /* @__PURE__ */ (0, C.jsx)(mP, {
++ n.mode === "password" ? /* @__PURE__ */ (0, C.jsx)(CP, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@@ -72892,7 -71301,7 +72898,7 @@@
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, C.jsx)(vFe, {
- v ? /* @__PURE__ */ (0, C.jsx)(wPe, {
++ v ? /* @__PURE__ */ (0, C.jsx)(mFe, {
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
password: o,
confirmation: c,
@@@ -72908,9 -71317,9 +72914,9 @@@
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: h.error }) : null
- h.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: h.error }) : null
++ h.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- }), v ? /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ }), v ? /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
...J(h.busy === "save"),
children: "保存配置"
@@@ -72919,27 -71328,27 +72925,27 @@@
}
//#endregion
//#region src/react/settings/port-settings.tsx
- function xFe({ data: e, receipt: t }) {
- let [n, r] = (0, S.useState)(String(e.port)), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(null), c = CA();
-function DPe({ data: e, receipt: t }) {
- let [n, r] = (0, S.useState)(String(e.port)), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(null), c = SA();
++function _Fe({ data: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(String(e.port)), [i, a] = (0, S.useState)(""), [o, s] = (0, S.useState)(null), c = TA();
return (0, S.useEffect)(() => {
if (!o) return;
- let e = setTimeout(() => location.assign(o.url), yG);
- let e = setTimeout(() => location.assign(o.url), XW);
++ let e = setTimeout(() => location.assign(o.url), CG);
return () => clearTimeout(e);
- }, [o]), o ? /* @__PURE__ */ (0, C.jsx)(kA, {
- }, [o]), o ? /* @__PURE__ */ (0, C.jsx)(OA, {
++ }, [o]), o ? /* @__PURE__ */ (0, C.jsx)(jA, {
title: "本机访问端口",
- children: /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
- children: /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
++ children: /* @__PURE__ */ (0, C.jsx)(NA, { children: /* @__PURE__ */ (0, C.jsxs)(q, {
tone: "success",
title: "配置已保存",
- children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, C.jsx)(OA, {
- children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, C.jsx)(DA, {
++ children: ["Peach 正在重新启动。", /* @__PURE__ */ (0, C.jsx)(AA, {
href: o.url,
size: "small",
children: "进入馆藏"
})]
}) })
- }) : /* @__PURE__ */ (0, C.jsxs)(kA, {
- }) : /* @__PURE__ */ (0, C.jsxs)(OA, {
++ }) : /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "本机访问端口",
onSubmit: (r) => {
- r.preventDefault(), a(""), c.run("save", (t) => H(sG, {
- r.preventDefault(), a(""), c.run("save", (t) => U(RW, {
++ r.preventDefault(), a(""), c.run("save", (t) => H(dG, {
revision: e.revision,
media_dirs: e.media_dirs,
...e.media_sources ? { media_sources: e.media_sources } : {},
@@@ -72952,7 -71361,7 +72958,7 @@@
t?.port ? a(t.port) : c.setError(V(e));
});
},
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [/* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [/* @__PURE__ */ (0, C.jsx)(CP, {
id: "configPort",
label: "端口",
inputMode: "numeric",
@@@ -72965,7 -71374,7 +72971,7 @@@
tone: "error",
title: "没有保存",
children: c.error
- }) : null] }), /* @__PURE__ */ (0, C.jsx)(MA, {
- }) : null] }), /* @__PURE__ */ (0, C.jsx)(jA, {
++ }) : null] }), /* @__PURE__ */ (0, C.jsx)(PA, {
status: "保存后 Peach 会重启,并跳转到新地址。",
children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
@@@ -72977,19 -71386,19 +72983,19 @@@
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
- var SFe = 2e3, CFe = [["quick", "临时链接"], ["named", "命名隧道"]], wFe = {
-var OPe = 2e3, kPe = [["quick", "临时链接"], ["named", "命名隧道"]], APe = {
++var vFe = 2e3, yFe = [["quick", "临时链接"], ["named", "命名隧道"]], bFe = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
- function TFe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = CA(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
-function jPe({ revision: e, initial: t, receipt: n }) {
- let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = SA(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
++function xFe({ revision: e, initial: t, receipt: n }) {
++ let [r, i] = (0, S.useState)(t), [a, o] = (0, S.useState)(e), [s, c] = (0, S.useState)(t.mode), [l, u] = (0, S.useState)(t.hostname), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)({}), h = TA(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
(0, S.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- lG(e.signal).then((t) => {
- !e.signal.aborted && t.tunnel && (U.setQueryData(cG, t), i(t.tunnel), o(t.revision));
- BW(e.signal).then((t) => {
- !e.signal.aborted && t.tunnel && (W.setQueryData(zW, t), i(t.tunnel), o(t.revision));
++ pG(e.signal).then((t) => {
++ !e.signal.aborted && t.tunnel && (U.setQueryData(fG, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, SFe);
- }, OPe);
++ }, vFe);
return () => {
e.abort(), window.clearInterval(t);
};
@@@ -73008,26 -71417,26 +73014,26 @@@
n ? m(n) : h.setError(V(e));
});
};
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- r.named_available ? /* @__PURE__ */ (0, C.jsx)(zF, {
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- r.named_available ? /* @__PURE__ */ (0, C.jsx)(iF, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ r.named_available ? /* @__PURE__ */ (0, C.jsx)(HF, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: BF,
- children: CFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(NN, {
- className: aF,
- children: kPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(DN, {
++ className: UF,
++ children: yFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(IN, {
value: e,
- className: VF,
- className: oF,
++ className: WF,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, C.jsx)(NA, { children: wFe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(MA, { children: APe[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: bFe[_ ? "named" : "quick"] }),
++ _ ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(CP, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@@ -73038,7 -71447,7 +73044,7 @@@
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"
- }), /* @__PURE__ */ (0, C.jsx)(bP, {
- }), /* @__PURE__ */ (0, C.jsx)(mP, {
++ }), /* @__PURE__ */ (0, C.jsx)(CP, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@@ -73058,7 -71467,7 +73064,7 @@@
r.state === "running" && r.url ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, C.jsx)(IA, {
- children: /* @__PURE__ */ (0, C.jsx)(FA, {
++ children: /* @__PURE__ */ (0, C.jsx)(RA, {
href: r.url,
children: r.url
})
@@@ -73068,9 -71477,9 +73074,9 @@@
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(MA, {
- r.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(jA, {
++ r.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: r.error }) : null,
++ h.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: h.error }) : null
++ ] }), /* @__PURE__ */ (0, C.jsxs)(PA, {
status: r.enabled ? "Peach 重启后自动恢复。" : void 0,
children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: r.named_available ? "secondary" : "primary",
@@@ -73087,28 -71496,28 +73093,28 @@@
}
//#endregion
//#region src/react/settings/network-settings.tsx
- var EFe = [
-var MPe = [
++var SFe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
- function DFe({ data: e, receipt: t, panel: n }) {
-function NPe({ data: e, receipt: t, panel: n }) {
++function CFe({ data: e, receipt: t, panel: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(n),
- ...HW(n),
++ ...hG(n),
children: [
- e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, C.jsx)(xFe, {
- e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, C.jsx)(DPe, {
++ e.editable && e.port_editable !== !1 ? /* @__PURE__ */ (0, C.jsx)(_Fe, {
data: e,
receipt: t
}) : null,
- e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(OFe, {
- e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(PPe, {
++ e.peach_proxy ? /* @__PURE__ */ (0, C.jsx)(wFe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, C.jsx)(bFe, {
- e.access ? /* @__PURE__ */ (0, C.jsx)(EPe, {
++ e.access ? /* @__PURE__ */ (0, C.jsx)(gFe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, C.jsx)(TFe, {
- e.tunnel ? /* @__PURE__ */ (0, C.jsx)(jPe, {
++ e.tunnel ? /* @__PURE__ */ (0, C.jsx)(xFe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@@ -73116,9 -71525,9 +73122,9 @@@
]
});
}
- function OFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = CA();
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
-function PPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = SA();
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++function wFe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e), [i, a] = (0, S.useState)(e.mode), [o, s] = (0, S.useState)(""), c = TA();
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@@ -73130,24 -71539,24 +73136,24 @@@
});
},
children: [
- /* @__PURE__ */ (0, C.jsx)(AA, { children: /* @__PURE__ */ (0, C.jsx)(EA, {
- /* @__PURE__ */ (0, C.jsx)(kA, { children: /* @__PURE__ */ (0, C.jsx)(TA, {
++ /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(OA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, C.jsx)(NF, {
- children: /* @__PURE__ */ (0, C.jsx)(ZP, {
++ children: /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: EFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: MPe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: SFe.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, C.jsxs)(jA, {
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, C.jsxs)(AA, {
++ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, C.jsxs)(NA, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, C.jsx)(bP, {
- i === "proxy" ? /* @__PURE__ */ (0, C.jsx)(mP, {
++ i === "proxy" ? /* @__PURE__ */ (0, C.jsx)(CP, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@@ -73161,10 -71570,10 +73167,10 @@@
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: c.error }) : null
- c.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: c.error }) : null
++ c.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
...J(c.busy === "save"),
children: "保存配置"
@@@ -73174,28 -71583,28 +73180,28 @@@
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
- var kFe = "将清除这个来源在本机和共享副本中的登录凭据。", AFe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
- function jFe(e, t) {
-var FPe = "将清除这个来源在本机和共享副本中的登录凭据。", IPe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function LPe(e, t) {
++var TFe = "将清除这个来源在本机和共享副本中的登录凭据。", EFe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
++function DFe(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
- function MFe({ row: e }) {
- if (ei(e)) return /* @__PURE__ */ (0, C.jsx)(mA, {
-function RPe({ row: e }) {
- if (ei(e)) return /* @__PURE__ */ (0, C.jsx)(pA, {
++function OFe({ row: e }) {
++ if (ei(e)) return /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, C.jsx)(mA, {
- return /* @__PURE__ */ (0, C.jsx)(pA, {
++ return /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: t,
children: $r[e.requirement] || ""
});
}
- function NFe({ row: e, readOnly: t, toast: n }) {
-function zPe({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, S.useState)({}), [a, o] = (0, S.useState)(""), s = ei(e), c = mt({
++function kFe({ row: e, readOnly: t, toast: n }) {
+ let [r, i] = (0, S.useState)({}), [a, o] = (0, S.useState)(""), s = ei(e), c = pt({
mutationFn: (t) => Pr(e.provider, t),
onSuccess: (e, t) => {
- e.note ? o(e.note) : (o(""), i({}), W.invalidateQueries({
+ e.note ? o(e.note) : (o(""), i({}), U.invalidateQueries({
queryKey: Gn,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据"));
@@@ -73208,17 -71617,17 +73214,17 @@@
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, C.jsxs)(NA, { children: [e.why, e.where ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [" ", /* @__PURE__ */ (0, C.jsx)(IA, {
- /* @__PURE__ */ (0, C.jsxs)(MA, { children: [e.why, e.where ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [" ", /* @__PURE__ */ (0, C.jsx)(FA, {
++ /* @__PURE__ */ (0, C.jsxs)(FA, { children: [e.why, e.where ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [" ", /* @__PURE__ */ (0, C.jsx)(RA, {
href: e.where,
children: "获取凭据"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, C.jsx)(NA, { children: e.howto }) : null,
- e.howto ? /* @__PURE__ */ (0, C.jsx)(MA, { children: e.howto }) : null,
++ e.howto ? /* @__PURE__ */ (0, C.jsx)(FA, { children: e.howto }) : null,
/* @__PURE__ */ (0, C.jsx)("div", {
className: "flex w-full flex-col gap-3",
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, C.jsx)(bP, {
- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, C.jsx)(CP, {
type: "password",
label: n,
- placeholder: jFe(e, n),
- placeholder: LPe(e, n),
++ placeholder: DFe(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@@ -73246,7 -71655,7 +73252,7 @@@
...J(c.isPending),
onClick: () => void Vs({
title: "清除来源凭据",
- body: kFe,
- body: FPe,
++ body: TFe,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@@ -73254,11 -71663,11 +73260,11 @@@
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, C.jsx)(PA, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, C.jsx)(NA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, C.jsx)(zA, {
- a ? /* @__PURE__ */ (0, C.jsx)(NA, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, C.jsx)(MA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, C.jsx)(RA, {
++ a ? /* @__PURE__ */ (0, C.jsx)(IA, { children: a }) : null,
++ (e.shared_fields || []).length ? /* @__PURE__ */ (0, C.jsx)(FA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
++ e.path ? /* @__PURE__ */ (0, C.jsx)(VA, {
summary: "凭据文件",
- children: /* @__PURE__ */ (0, C.jsx)(RB, {
- children: /* @__PURE__ */ (0, C.jsx)(fB, {
++ children: /* @__PURE__ */ (0, C.jsx)(VB, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@@ -73267,20 -71676,20 +73273,20 @@@
]
});
}
- function PFe({ row: e, readOnly: t, toast: n }) {
-function BPe({ row: e, readOnly: t, toast: n }) {
++function AFe({ row: e, readOnly: t, toast: n }) {
let r = /* @__PURE__ */ (0, C.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-2",
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
className: "inline-flex size-3.5 shrink-0 items-center justify-center",
- children: /* @__PURE__ */ (0, C.jsx)(aU, { provider: e.provider })
- children: /* @__PURE__ */ (0, C.jsx)(FH, { provider: e.provider })
++ children: /* @__PURE__ */ (0, C.jsx)(lU, { provider: e.provider })
}),
/* @__PURE__ */ (0, C.jsx)("b", {
className: "min-w-0 text-body-medium wrap-anywhere text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, C.jsx)(MFe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, C.jsx)(mA, {
- /* @__PURE__ */ (0, C.jsx)(RPe, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, C.jsx)(pA, {
++ /* @__PURE__ */ (0, C.jsx)(OFe, { row: e }),
++ e.missing.length ? /* @__PURE__ */ (0, C.jsx)(gA, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@@ -73289,15 -71698,15 +73295,15 @@@
});
return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsx)(NA, { children: e.why }) : null]
- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsx)(MA, { children: e.why }) : null]
++ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, C.jsx)(FA, { children: e.why }) : null]
}) : /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",
children: [
r,
- /* @__PURE__ */ (0, C.jsx)(zA, {
- /* @__PURE__ */ (0, C.jsx)(RA, {
++ /* @__PURE__ */ (0, C.jsx)(VA, {
summary: ei(e) ? "修改凭据" : "填写凭据",
defaultOpen: e.requirement === "required" && !ei(e),
- children: /* @__PURE__ */ (0, C.jsx)(NFe, {
- children: /* @__PURE__ */ (0, C.jsx)(zPe, {
++ children: /* @__PURE__ */ (0, C.jsx)(kFe, {
row: e,
readOnly: t,
toast: n
@@@ -73306,16 -71715,16 +73312,16 @@@
e.world_readable ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "凭据文件权限过宽",
- children: AFe
- children: IPe
++ children: EFe
}) : null
]
});
}
- function FFe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
-function VPe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
++function jFe({ data: e, readOnly: t, toast: n, embedded: r = !1 }) {
let i = e.providers || [], a = i.filter((e) => e.requirement === "required" && !ei(e));
- if (!i.length) return /* @__PURE__ */ (0, C.jsx)(vA, {
- if (!i.length) return /* @__PURE__ */ (0, C.jsx)(_A, {
++ if (!i.length) return /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Ege,
- icon: mge,
++ icon: wge,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
@@@ -73342,24 -71751,24 +73348,24 @@@
className: "text-body-medium text-text-secondary",
children: e.title
}), /* @__PURE__ */ (0, C.jsx)("div", {
- className: _A({
- className: gA({
++ className: yA({
variant: "outlined",
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(PFe, {
- children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(BPe, {
++ children: e.rows.map((e) => /* @__PURE__ */ (0, C.jsx)(AFe, {
row: e,
readOnly: t,
toast: n
}, e.provider))
})]
}, e.title)) });
- return r ? /* @__PURE__ */ (0, C.jsx)(kA, {
- return r ? /* @__PURE__ */ (0, C.jsx)(OA, {
++ return r ? /* @__PURE__ */ (0, C.jsx)(jA, {
title: "来源凭据",
aside: o || void 0,
- children: /* @__PURE__ */ (0, C.jsx)(jA, { children: s })
- children: /* @__PURE__ */ (0, C.jsx)(AA, { children: s })
++ children: /* @__PURE__ */ (0, C.jsx)(NA, { children: s })
}) : /* @__PURE__ */ (0, C.jsxs)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@@ -73374,15 -71783,15 +73380,15 @@@
}
//#endregion
//#region src/configuration-copy.ts
- var IFe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", LFe = "只填域名,留空用默认地址";
-var HPe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", UPe = "只填域名,留空用默认地址";
++var MFe = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", NFe = "只填域名,留空用默认地址";
//#endregion
//#region src/react/settings/entry-links-settings.tsx
- function RFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.sites), i = CA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
-function WPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.sites), i = SA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
++function PFe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e.sites), i = TA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "作品资料站点",
onSubmit: (e) => {
e.preventDefault();
@@@ -73391,11 -71800,11 +73397,11 @@@
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, C.jsx)(NA, { children: IFe }),
- n.map((e) => /* @__PURE__ */ (0, C.jsx)(bP, {
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(MA, { children: HPe }),
- n.map((e) => /* @__PURE__ */ (0, C.jsx)(mP, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: MFe }),
++ n.map((e) => /* @__PURE__ */ (0, C.jsx)(CP, {
id: `entry-link-${e.key}`,
- label: /* @__PURE__ */ (0, C.jsx)(Eve, {
- label: /* @__PURE__ */ (0, C.jsx)(pve, {
++ label: /* @__PURE__ */ (0, C.jsx)(Cve, {
site: e.key,
label: `${e.label} 地址`
}),
@@@ -73405,10 -71814,10 +73411,10 @@@
placeholder: e.default_host,
onChange: (t) => a(e.key, t),
validationBehavior: "aria",
- hint: LFe
- hint: UPe
++ hint: NFe
}, e.key)),
- i.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsx)(MA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
- i.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsx)(jA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
++ i.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: i.error }) : null
++ ] }), /* @__PURE__ */ (0, C.jsx)(PA, { children: /* @__PURE__ */ (0, C.jsx)(K, {
type: "submit",
...J(i.busy === "save"),
children: "保存配置"
@@@ -73417,34 -71826,34 +73423,34 @@@
}
//#endregion
//#region src/react/settings/indexer-settings.tsx
- var OG = "/api/configuration/indexers";
- function zFe({ receipt: e }) {
-var aG = "/api/configuration/indexers";
-function GPe({ receipt: e }) {
- let t = pt({
++var MG = "/api/configuration/indexers";
++function FFe({ receipt: e }) {
+ let t = ft({
queryKey: ["indexers"],
- queryFn: ({ signal: e }) => yn(OG, e),
- queryFn: ({ signal: e }) => H(aG, e),
++ queryFn: ({ signal: e }) => yn(MG, e),
refetchOnMount: "always"
});
- return t.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: V(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, C.jsx)(BFe, {
- return t.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: V(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, C.jsx)(KPe, {
++ return t.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: V(t.error) }) : t.isFetching ? /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在读取资源搜索设置" }) : t.data ? /* @__PURE__ */ (0, C.jsx)(IFe, {
initial: t.data,
receipt: e
}) : null;
}
- function BFe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.indexers), i = CA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
-function KPe({ initial: e, receipt: t }) {
- let [n, r] = (0, S.useState)(e.indexers), i = SA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
++function IFe({ initial: e, receipt: t }) {
++ let [n, r] = (0, S.useState)(e.indexers), i = TA(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
...n,
...t
} : n));
- return /* @__PURE__ */ (0, C.jsxs)(kA, {
- return /* @__PURE__ */ (0, C.jsxs)(OA, {
++ return /* @__PURE__ */ (0, C.jsxs)(jA, {
title: "资源搜索",
onSubmit: (e) => {
- e.preventDefault(), i.run("save", (e) => H(OG, { indexers: n }, "POST", e), (e) => {
- e.preventDefault(), i.run("save", (e) => U(aG, { indexers: n }, "POST", e), (e) => {
++ e.preventDefault(), i.run("save", (e) => H(MG, { indexers: n }, "POST", e), (e) => {
r(e.indexers), t("已保存索引器");
});
},
- children: [/* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: [/* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ /* @__PURE__ */ (0, C.jsxs)(VA, {
summary: "索引器连接帮助",
- children: [/* @__PURE__ */ (0, C.jsx)(NA, { children: "填写 Prowlarr 或 Jackett 提供的 Torznab 地址和 API key。" }), /* @__PURE__ */ (0, C.jsx)(IA, {
- children: [/* @__PURE__ */ (0, C.jsx)(MA, { children: "填写 Prowlarr 或 Jackett 提供的 Torznab 地址和 API key。" }), /* @__PURE__ */ (0, C.jsx)(FA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(FA, { children: "填写 Prowlarr 或 Jackett 提供的 Torznab 地址和 API key。" }), /* @__PURE__ */ (0, C.jsx)(RA, {
href: "https://github.com/peach-mitao/peach/blob/master/docs/RESOURCE_SEARCH.md",
children: "详细配置说明"
})]
@@@ -73452,14 -71861,14 +73458,14 @@@
n.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: `索引器 ${t + 1} 名称`,
value: e.name,
maxLength: 80,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { name: t })
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: `索引器 ${t + 1} Torznab 地址`,
value: e.url,
type: "url",
@@@ -73468,7 -71877,7 +73474,7 @@@
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { url: t })
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: `索引器 ${t + 1} API key`,
type: "password",
autoComplete: "new-password",
@@@ -73477,13 -71886,13 +73483,13 @@@
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { api_key: t })
}),
- /* @__PURE__ */ (0, C.jsx)(JP, {
- /* @__PURE__ */ (0, C.jsx)(HP, {
++ /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: e.enabled,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { enabled: t }),
children: "启用"
}),
- e.api_key_set ? /* @__PURE__ */ (0, C.jsx)(JP, {
- e.api_key_set ? /* @__PURE__ */ (0, C.jsx)(HP, {
++ e.api_key_set ? /* @__PURE__ */ (0, C.jsx)(ZP, {
isSelected: !!e.clear_api_key,
isDisabled: !!i.busy,
onChange: (t) => a(e.key, { clear_api_key: t }),
@@@ -73498,8 -71907,8 +73504,8 @@@
}) })
]
}, e.key)),
- i.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(MA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
- i.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, C.jsxs)(jA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
++ i.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: i.error }) : null
++ ] }), /* @__PURE__ */ (0, C.jsxs)(PA, { children: [/* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
type: "button",
disabled: !!i.busy || n.length >= e.max_indexers,
@@@ -73520,22 -71929,22 +73526,22 @@@
}
//#endregion
//#region src/react/settings/source-settings.tsx
- function VFe({ data: e, receipt: t, panel: n }) {
-function qPe({ data: e, receipt: t, panel: n }) {
- let r = pt({
++function LFe({ data: e, receipt: t, panel: n }) {
+ let r = ft({
queryKey: Gn,
queryFn: ({ signal: e }) => Cr(e),
enabled: n?.active !== !1,
refetchOnMount: "always"
});
return /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(n),
- ...HW(n),
++ ...hG(n),
children: [
- /* @__PURE__ */ (0, C.jsx)("div", { children: /* @__PURE__ */ (0, C.jsx)(gA, {
- /* @__PURE__ */ (0, C.jsx)("div", { children: /* @__PURE__ */ (0, C.jsx)(hA, {
++ /* @__PURE__ */ (0, C.jsx)("div", { children: /* @__PURE__ */ (0, C.jsx)(vA, {
href: "/sources",
variant: "secondary",
children: "采集来源与登录状态"
}) }),
- r.data ? /* @__PURE__ */ (0, C.jsx)(FFe, {
- r.data ? /* @__PURE__ */ (0, C.jsx)(VPe, {
++ r.data ? /* @__PURE__ */ (0, C.jsx)(jFe, {
data: r.data,
readOnly: !!e.ledger_read_only,
toast: t,
@@@ -73544,24 -71953,24 +73550,24 @@@
tone: "error",
title: "来源凭据未取得",
children: V(r.error)
- }) : n?.active === !1 ? null : /* @__PURE__ */ (0, C.jsx)(yA, { label: "正在读取来源凭据" }),
- e.entry_links ? /* @__PURE__ */ (0, C.jsx)(RFe, {
- }) : n?.active === !1 ? null : /* @__PURE__ */ (0, C.jsx)(vA, { label: "正在读取来源凭据" }),
- e.entry_links ? /* @__PURE__ */ (0, C.jsx)(WPe, {
++ }) : n?.active === !1 ? null : /* @__PURE__ */ (0, C.jsx)(xA, { label: "正在读取来源凭据" }),
++ e.entry_links ? /* @__PURE__ */ (0, C.jsx)(PFe, {
initial: e.entry_links,
receipt: t
}) : null,
- /* @__PURE__ */ (0, C.jsx)(zFe, { receipt: t }),
- /* @__PURE__ */ (0, C.jsx)(hFe, { receipt: t })
- /* @__PURE__ */ (0, C.jsx)(GPe, { receipt: t }),
- /* @__PURE__ */ (0, C.jsx)(xPe, { receipt: t })
++ /* @__PURE__ */ (0, C.jsx)(FFe, { receipt: t }),
++ /* @__PURE__ */ (0, C.jsx)(dFe, { receipt: t })
]
});
}
//#endregion
//#region src/react/settings/configuration-page.tsx
- function HFe({ receipt: e, reopenTutorial: t, section: n = "" }) {
-function JPe({ receipt: e, reopenTutorial: t, section: n = "" }) {
- let r = pt({
- queryKey: zW,
- queryFn: ({ signal: e }) => BW(e)
++function RFe({ receipt: e, reopenTutorial: t, section: n = "" }) {
+ let r = ft({
- queryKey: cG,
- queryFn: ({ signal: e }) => lG(e)
++ queryKey: fG,
++ queryFn: ({ signal: e }) => pG(e)
}), i = r.data;
- return i ? /* @__PURE__ */ (0, C.jsx)(WFe, {
- return i ? /* @__PURE__ */ (0, C.jsx)(XPe, {
++ return i ? /* @__PURE__ */ (0, C.jsx)(BFe, {
data: i,
receipt: e,
reopenTutorial: t,
@@@ -73575,16 -71984,16 +73581,16 @@@
})
});
}
- var UFe = 0;
- function WFe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
- let [i] = (0, S.useState)(() => `board-tabs-${++UFe}`), [a, o] = (0, S.useState)(r);
-var YPe = 0;
-function XPe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
- let [i] = (0, S.useState)(() => `board-tabs-${++YPe}`), [a, o] = (0, S.useState)(r);
++var zFe = 0;
++function BFe({ data: e, receipt: t, reopenTutorial: n, section: r }) {
++ let [i] = (0, S.useState)(() => `board-tabs-${++zFe}`), [a, o] = (0, S.useState)(r);
(0, S.useEffect)(() => {
o(r);
}, [r]);
let s = (e) => {
-- o(e), Ck(GO(e), {
++ o(e), Tk(qO(e), {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
});
}, [c, l] = (0, S.useState)(() => matchMedia("(max-width:900px)").matches);
(0, S.useEffect)(() => {
@@@ -73598,20 -72007,20 +73604,20 @@@
{
title: "媒体库与入库",
body: (e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(e),
- children: [/* @__PURE__ */ (0, C.jsx)(uFe, { ...d }), /* @__PURE__ */ (0, C.jsx)(_Fe, { receipt: t })]
- ...HW(e),
- children: [/* @__PURE__ */ (0, C.jsx)(gPe, { ...d }), /* @__PURE__ */ (0, C.jsx)(CPe, { receipt: t })]
++ ...hG(e),
++ children: [/* @__PURE__ */ (0, C.jsx)(oFe, { ...d }), /* @__PURE__ */ (0, C.jsx)(pFe, { receipt: t })]
})
},
{
title: "来源与订阅",
- body: (e) => /* @__PURE__ */ (0, C.jsx)(VFe, {
- body: (e) => /* @__PURE__ */ (0, C.jsx)(qPe, {
++ body: (e) => /* @__PURE__ */ (0, C.jsx)(LFe, {
...d,
panel: e
})
},
...p ? [{
title: "下载渠道",
- body: (e) => /* @__PURE__ */ (0, C.jsx)(DPe, {
- body: (e) => /* @__PURE__ */ (0, C.jsx)(NNe, {
++ body: (e) => /* @__PURE__ */ (0, C.jsx)(CPe, {
initial: p,
receipt: t,
panel: e
@@@ -73619,7 -72028,7 +73625,7 @@@
}] : [],
...f ? [{
title: "网络与访问",
- body: (e) => /* @__PURE__ */ (0, C.jsx)(DFe, {
- body: (e) => /* @__PURE__ */ (0, C.jsx)(NPe, {
++ body: (e) => /* @__PURE__ */ (0, C.jsx)(CFe, {
...d,
panel: e
})
@@@ -73627,8 -72036,8 +73633,8 @@@
{
title: "应用与维护",
body: (e) => /* @__PURE__ */ (0, C.jsxs)("div", {
- ...dG(e),
- children: [/* @__PURE__ */ (0, C.jsx)(BPe, { ...d }), /* @__PURE__ */ (0, C.jsx)(NPe, {
- ...HW(e),
- children: [/* @__PURE__ */ (0, C.jsx)(KNe, { ...d }), /* @__PURE__ */ (0, C.jsx)(zNe, {
++ ...hG(e),
++ children: [/* @__PURE__ */ (0, C.jsx)(IPe, { ...d }), /* @__PURE__ */ (0, C.jsx)(kPe, {
...d,
reopenTutorial: n
})]
@@@ -73679,7 -72088,7 +73685,7 @@@
}
//#endregion
//#region src/react/settings-panel/glow-settings.tsx
- var GFe = [
-var ZPe = [
++var VFe = [
[
"strength",
"强度",
@@@ -73706,8 -72115,8 +73712,8 @@@
100
]
];
- function KFe({ host: e, spot: t, index: n, glow: r }) {
- let i = Ole[n], a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)("all");
-function QPe({ host: e, spot: t, index: n, glow: r }) {
- let i = hle[n], a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)("all");
++function HFe({ host: e, spot: t, index: n, glow: r }) {
++ let i = Ele[n], a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)("all");
(0, S.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@@ -73720,7 -72129,7 +73726,7 @@@
}, []);
let u = r[t].color, d = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Lle(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), $a(), o.current?.focus();
- r[t].color = wle(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), $a(), o.current?.focus();
++ r[t].color = Fle(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), $a(), o.current?.focus();
};
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-glow-stop": t,
@@@ -73745,7 -72154,7 +73751,7 @@@
children: u
})]
}),
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-down" })
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "popmenu",
@@@ -73757,7 -72166,7 +73763,7 @@@
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: Ple.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)("button", {
- children: xle.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)("button", {
++ children: Mle.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === c,
@@@ -73768,7 -72177,7 +73774,7 @@@
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: Fle.map(([e, t, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
- children: Sle.map(([e, t, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
++ children: Nle.map(([e, t, n]) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === u,
@@@ -73784,8 -72193,8 +73790,8 @@@
})]
});
}
- function qFe({ host: e }) {
-function $Pe({ host: e }) {
-- let t = e.store.value.homeGlow, n = hE(t.preset);
++function UFe({ host: e }) {
++ let t = e.store.value.homeGlow, n = _E(t.preset);
return /* @__PURE__ */ (0, C.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@@ -73800,10 -72209,10 +73806,10 @@@
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, C.jsx)("b", {
"data-glow-preset-name": "",
- children: Ale(t.preset)
- children: _le(t.preset)
++ children: Ole(t.preset)
})]
}),
- /* @__PURE__ */ (0, C.jsx)(Fue, {
- /* @__PURE__ */ (0, C.jsx)(Sue, {
++ /* @__PURE__ */ (0, C.jsx)(Nue, {
store: e.store,
label: "光晕配色"
}),
@@@ -73814,7 -72223,7 +73820,7 @@@
}),
/* @__PURE__ */ (0, C.jsx)("div", {
"data-glow-fields": "",
- children: GFe.map(([r, i, a]) => /* @__PURE__ */ (0, C.jsx)(ePe, {
- children: ZPe.map(([r, i, a]) => /* @__PURE__ */ (0, C.jsx)(oNe, {
++ children: VFe.map(([r, i, a]) => /* @__PURE__ */ (0, C.jsx)(XNe, {
field: r,
label: i,
max: a,
@@@ -73836,7 -72245,7 +73842,7 @@@
hidden: n,
children: [/* @__PURE__ */ (0, C.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, C.jsx)("div", {
"data-glow-stops": "",
- children: pE.map((n, r) => /* @__PURE__ */ (0, C.jsx)(KFe, {
- children: pE.map((n, r) => /* @__PURE__ */ (0, C.jsx)(QPe, {
++ children: hE.map((n, r) => /* @__PURE__ */ (0, C.jsx)(HFe, {
host: e,
spot: n,
index: r,
@@@ -73851,7 -72260,7 +73857,7 @@@
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Vle(null), e.store.save(), e.changed("glow");
- e.store.value.homeGlow = Ole(null), e.store.save(), e.changed("glow");
++ e.store.value.homeGlow = zle(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@@ -73861,7 -72270,7 +73867,7 @@@
}
//#endregion
//#region src/react/settings-panel/number-setting.tsx
- var JFe = {
-var eFe = {
++var WFe = {
batchSizeSetting: {
min: 1,
max: 200,
@@@ -73902,22 -72311,22 +73908,22 @@@
optional: !0,
fallback: 60
}
- }, kG = (e) => `peach.number.${e}`;
- function AG(e, t) {
-}, oG = (e) => `peach.number.${e}`;
-function sG(e, t) {
++}, NG = (e) => `peach.number.${e}`;
++function PG(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
- function jG({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = JFe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, S.useRef)(0);
- d.current ||= oE(Number(localStorage.getItem(kG(e))), o, s, n && n > 0 ? n : l);
-function cG({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = eFe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, S.useRef)(0);
- d.current ||= oE(Number(localStorage.getItem(oG(e))), o, s, n && n > 0 ? n : l);
++function FG({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
++ let a = WFe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, S.useRef)(0);
++ d.current ||= cE(Number(localStorage.getItem(NG(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, S.useState)(n ?? 0), [m, h] = (0, S.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, S.useState)(""), v = (0, S.useRef)(null), y = (0, S.useRef)(i);
y.current = i, (0, S.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(kG(e), String(d.current)), y.current(d.current)));
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(oG(e), String(d.current)), y.current(d.current)));
++ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(NG(e), String(d.current)), y.current(d.current)));
}, x = (0, S.useRef)(b);
x.current = b, (0, S.useEffect)(() => {
let e = v.current;
@@@ -73927,7 -72336,7 +73933,7 @@@
}, []);
let w = f > 0, T = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(kG(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
- t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(oG(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
++ t?.removeAttribute("aria-invalid"), _(""), w ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(NG(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, E = r || n === null;
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-number-setting": "",
@@@ -73964,7 -72373,7 +73970,7 @@@
}
}), /* @__PURE__ */ (0, C.jsxs)("span", {
"aria-hidden": "true",
- children: [c, AG(Number(m), c) ? ` · ${AG(Number(m), c)}` : ""]
- children: [c, sG(Number(m), c) ? ` · ${sG(Number(m), c)}` : ""]
++ children: [c, PG(Number(m), c) ? ` · ${PG(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, C.jsx)("small", {
id: `${e}-error`,
@@@ -73978,13 -72387,13 +73984,13 @@@
}
//#endregion
//#region src/react/sidebar/sidebar-order.ts
- function MG(e) {
- let { mutate: t } = Xz();
-function lG(e) {
- let { mutate: t } = wz();
++function IG(e) {
++ let { mutate: t } = $z();
return (0, S.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
- function NG(e, t, n, r) {
-function uG(e, t, n, r) {
++function LG(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@@ -73994,17 -72403,17 +74000,17 @@@
}
//#endregion
//#region src/react/settings-panel/sidebar-order.tsx
- var YFe = "__home__", PG = (e) => e === "" ? YFe : e;
- function XFe({ host: e }) {
- let t = MG(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, S.useState)(null), [c, l] = (0, S.useState)(!1), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = (e, r, i) => {
- let a = NG(n, e, r, i);
-var tFe = "__home__", dG = (e) => e === "" ? tFe : e;
-function nFe({ host: e }) {
- let t = lG(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, S.useState)(null), [c, l] = (0, S.useState)(!1), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = (e, r, i) => {
- let a = uG(n, e, r, i);
++var GFe = "__home__", RG = (e) => e === "" ? GFe : e;
++function KFe({ host: e }) {
++ let t = IG(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, S.useState)(null), [c, l] = (0, S.useState)(!1), [u, d] = (0, S.useState)(null), [f, p] = (0, S.useState)(null), m = (0, S.useRef)(null), h = (0, S.useRef)(null), g = (e, r, i) => {
++ let a = LG(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => PG(e) === o) ?? a[0], y = () => {
- }, v = a.find(([e]) => dG(e) === o) ?? a[0], y = () => {
++ }, v = a.find(([e]) => RG(e) === o) ?? a[0], y = () => {
h.current && no(h.current), l(!1);
}, b = () => {
let e = h.current;
@@@ -74025,7 -72434,7 +74031,7 @@@
}, T = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", PG(e));
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", dG(e));
++ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", RG(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@@ -74057,9 -72466,9 +74063,9 @@@
/* @__PURE__ */ (0, C.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
-- children: /* @__PURE__ */ (0, C.jsx)(pO, { name: "grip-vertical" })
++ children: /* @__PURE__ */ (0, C.jsx)(hO, { name: "grip-vertical" })
}),
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: a ?? "" }),
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: a ?? "" }),
/* @__PURE__ */ (0, C.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -74073,7 -72482,7 +74079,7 @@@
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
-- children: /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-up" })
++ children: /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -74083,7 -72492,7 +74089,7 @@@
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
-- children: /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-down" })
++ children: /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -74095,11 -72504,11 +74101,11 @@@
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
-- children: /* @__PURE__ */ (0, C.jsx)(pO, { name: "eye-off" })
++ children: /* @__PURE__ */ (0, C.jsx)(hO, { name: "eye-off" })
})
]
})]
- }, PG(e))), /* @__PURE__ */ (0, C.jsxs)("div", {
- }, dG(e))), /* @__PURE__ */ (0, C.jsxs)("div", {
++ }, RG(e))), /* @__PURE__ */ (0, C.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-sidebar-add-picker": "",
@@@ -74115,13 -72524,13 +74121,13 @@@
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: v[2] ?? "" }),
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-down" })
-- ] }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(pO, { name: "check" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "全部页面都已显示" })] })
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-down" })
++ ] }) : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(hO, { name: "check" }), /* @__PURE__ */ (0, C.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@@ -74132,15 -72541,15 +74138,15 @@@
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": PG(e),
- "data-sidebar-add-option": dG(e),
++ "data-sidebar-add-option": RG(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(PG(e)), y(), m.current?.focus();
- s(dG(e)), y(), m.current?.focus();
++ s(RG(e)), y(), m.current?.focus();
},
-- children: [/* @__PURE__ */ (0, C.jsx)(pO, { name: n ?? "" }), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
- }, PG(e)))
- }, dG(e)))
++ children: [/* @__PURE__ */ (0, C.jsx)(hO, { name: n ?? "" }), /* @__PURE__ */ (0, C.jsx)("span", { children: t })]
++ }, RG(e)))
}) : null]
}), /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -74157,13 -72566,13 +74163,13 @@@
}
//#endregion
//#region src/react/settings-panel/settings-panel.tsx
- var FG = [
-var fG = [
++var zG = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
- ], ZFe = [
-], rFe = [
++], qFe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@@ -74172,7 -72581,7 +74178,7 @@@
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
- ], QFe = [["desc", "降序"], ["asc", "升序"]], $Fe = [[
-], iFe = [["desc", "降序"], ["asc", "升序"]], aFe = [[
++], JFe = [["desc", "降序"], ["asc", "升序"]], YFe = [[
"cover",
"官方封面",
""
@@@ -74180,7 -72589,7 +74186,7 @@@
"thumbnail",
"预览图",
""
- ]], eIe = [
-]], oFe = [
++]], XFe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@@ -74199,88 -72608,88 +74205,88 @@@
"切片",
"隐藏切片"
]
- ], tIe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", IG = null, LG = {
-], sFe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", pG = null, mG = {
++], ZFe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", BG = null, VG = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
- }, RG = 0, zG = null, BG = /* @__PURE__ */ new Set();
- function nIe(e) {
- return BG.add(e), () => {
- BG.delete(e);
-}, hG = 0, gG = null, _G = /* @__PURE__ */ new Set();
-function cFe(e) {
- return _G.add(e), () => {
- _G.delete(e);
++}, HG = 0, UG = null, WG = /* @__PURE__ */ new Set();
++function QFe(e) {
++ return WG.add(e), () => {
++ WG.delete(e);
};
}
- function rIe() {
- for (let e of [...BG]) e();
-function lFe() {
- for (let e of [..._G]) e();
++function $Fe() {
++ for (let e of [...WG]) e();
}
- function VG(e) {
- LG = {
- ...LG,
-function vG(e) {
- mG = {
- ...mG,
++function GG(e) {
++ VG = {
++ ...VG,
...e
- }, (0, ht.flushSync)(rIe);
- }, (0, gt.flushSync)(lFe);
++ }, (0, ht.flushSync)($Fe);
}
- async function iIe(e) {
- let t = LG.epoch, n = await e.configurable();
- LG.open && LG.epoch === t && VG({ configurable: n });
-async function uFe(e) {
- let t = mG.epoch, n = await e.configurable();
- mG.open && mG.epoch === t && vG({ configurable: n });
++async function eIe(e) {
++ let t = VG.epoch, n = await e.configurable();
++ VG.open && VG.epoch === t && GG({ configurable: n });
}
- function aIe(e = "") {
- let t = IG;
-function dFe(e = "") {
- let t = pG;
++function tIe(e = "") {
++ let t = BG;
if (!t) return;
- let n = FG.findIndex(([t]) => t === e);
- if (LG.open && !LG.closing) {
- n >= 0 && n !== LG.tab && VG({ tab: n });
- let n = fG.findIndex(([t]) => t === e);
- if (mG.open && !mG.closing) {
- n >= 0 && n !== mG.tab && vG({ tab: n });
++ let n = zG.findIndex(([t]) => t === e);
++ if (VG.open && !VG.closing) {
++ n >= 0 && n !== VG.tab && GG({ tab: n });
return;
}
- $a(), RG += 1, zG ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = XEe();
- VG({
- $a(), hG += 1, gG ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = eEe();
- vG({
++ $a(), HG += 1, UG ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
++ let r = qEe();
++ GG({
open: !0,
closing: !1,
configurable: null,
- epoch: LG.epoch + 1,
- tab: n >= 0 ? n : LG.tab
- epoch: mG.epoch + 1,
- tab: n >= 0 ? n : mG.tab
++ epoch: VG.epoch + 1,
++ tab: n >= 0 ? n : VG.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), iIe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
- }), uFe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
++ }), eIe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
- function HG(e = !0) {
- if (!LG.open || LG.closing) return;
- let t = ++RG;
- e && IG?.closed?.(), VG({ closing: !0 });
-function yG(e = !0) {
- if (!mG.open || mG.closing) return;
- let t = ++hG;
- e && pG?.closed?.(), vG({ closing: !0 });
++function KG(e = !0) {
++ if (!VG.open || VG.closing) return;
++ let t = ++HG;
++ e && BG?.closed?.(), GG({ closing: !0 });
let n = () => {
- t === RG && LG.closing && (VG({
- t === hG && mG.closing && (vG({
++ t === HG && VG.closing && (GG({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), zG instanceof HTMLElement && document.contains(zG) && zG.focus(), zG = null);
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), gG instanceof HTMLElement && document.contains(gG) && gG.focus(), gG = null);
++ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), UG instanceof HTMLElement && document.contains(UG) && UG.focus(), UG = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
- var oIe = {
- open: aIe,
- close: HG,
- isOpen: () => LG.open,
-var fFe = {
- open: dFe,
- close: yG,
- isOpen: () => mG.open,
++var nIe = {
++ open: tIe,
++ close: KG,
++ isOpen: () => VG.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
- function sIe(e) {
- return IG = e, oIe;
-function pFe(e) {
- return pG = e, fFe;
++function rIe(e) {
++ return BG = e, nIe;
}
- function cIe() {
- let e = (0, S.useSyncExternalStore)(nIe, () => LG);
- return IG ? /* @__PURE__ */ (0, C.jsx)(dIe, {
- host: IG,
-function mFe() {
- let e = (0, S.useSyncExternalStore)(cFe, () => mG);
- return pG ? /* @__PURE__ */ (0, C.jsx)(_Fe, {
- host: pG,
++function iIe() {
++ let e = (0, S.useSyncExternalStore)(QFe, () => VG);
++ return BG ? /* @__PURE__ */ (0, C.jsx)(sIe, {
++ host: BG,
view: e
}) : null;
}
- function lIe(e) {
-function hFe(e) {
++function aIe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(tIe)].filter((e) => e.getClientRects().length > 0);
- let t = [...e.currentTarget.querySelectorAll(sFe)].filter((e) => e.getClientRects().length > 0);
++ let t = [...e.currentTarget.querySelectorAll(ZFe)].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 UG = (e) => `settings-tab-${e}`, WG = (e) => `settings-group-${e}`;
- function uIe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
-var bG = (e) => `settings-tab-${e}`, xG = (e) => `settings-group-${e}`;
-function gFe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
++var qG = (e) => `settings-tab-${e}`, JG = (e) => `settings-group-${e}`;
++function oIe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = (0, S.useRef)(e), l = (0, S.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@@ -74308,7 -72717,7 +74314,7 @@@
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = FG.length, r = t;
- let n = fG.length, r = t;
++ let n = zG.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@@ -74337,11 -72746,11 +74343,11 @@@
role: "presentation",
children: "设置"
}),
- FG.map(([t, n], r) => /* @__PURE__ */ (0, C.jsxs)("button", {
- fG.map(([t, n], r) => /* @__PURE__ */ (0, C.jsxs)("button", {
++ zG.map(([t, n], r) => /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
role: "tab",
- id: UG(r),
- "aria-controls": WG(r),
- id: bG(r),
- "aria-controls": xG(r),
++ id: qG(r),
++ "aria-controls": JG(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@@ -74352,7 -72761,7 +74358,7 @@@
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, C.jsx)(pO, { name: n }) : /* @__PURE__ */ (0, C.jsx)(Jpe, { name: n }), t]
- children: [n === "jav" ? /* @__PURE__ */ (0, C.jsx)(pO, { name: n }) : /* @__PURE__ */ (0, C.jsx)(Fpe, { name: n }), t]
++ children: [n === "jav" ? /* @__PURE__ */ (0, C.jsx)(hO, { name: n }) : /* @__PURE__ */ (0, C.jsx)(Kpe, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, C.jsx)("div", {
"data-settings-service": "",
@@@ -74363,26 -72772,26 +74369,26 @@@
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: "folder-cog" }),
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: "folder-cog" }),
"Peach 配置",
-- /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-right" })
++ /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-right" })
]
})
})
]
});
}
- function GG({ index: e, tab: t, children: n }) {
-function SG({ index: e, tab: t, children: n }) {
++function YG({ index: e, tab: t, children: n }) {
return /* @__PURE__ */ (0, C.jsxs)("section", {
"data-setting-group": "",
- id: WG(e),
- id: xG(e),
++ id: JG(e),
role: "tabpanel",
- "aria-labelledby": UG(e),
- "aria-labelledby": bG(e),
++ "aria-labelledby": qG(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, C.jsx)("h3", { children: FG[e][0] }), n]
- children: [/* @__PURE__ */ (0, C.jsx)("h3", { children: fG[e][0] }), n]
++ children: [/* @__PURE__ */ (0, C.jsx)("h3", { children: zG[e][0] }), n]
});
}
- function KG({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
-function CG({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
++function XG({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, C.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, C.jsxs)("span", { children: [/* @__PURE__ */ (0, C.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, C.jsx)("small", {
@@@ -74399,7 -72808,7 +74405,7 @@@
})]
});
}
- function qG({ title: e, description: t, kind: n, children: r }) {
-function wG({ title: e, description: t, kind: n, children: r }) {
++function ZG({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@@ -74407,7 -72816,7 +74413,7 @@@
children: [/* @__PURE__ */ (0, C.jsxs)("span", { children: [/* @__PURE__ */ (0, C.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, C.jsx)("small", { children: t }) : t] }), r]
});
}
- function dIe({ host: e, view: t }) {
-function _Fe({ host: e, view: t }) {
++function sIe({ host: e, view: t }) {
(0, S.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, S.useRef)(null), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = (0, S.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@@ -74428,7 -72837,7 +74434,7 @@@
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== LG.tab && (VG({ tab: t }), e.selectSection?.(FG[t][0]));
- t !== mG.tab && (vG({ tab: t }), e.selectSection?.(fG[t][0]));
++ t !== VG.tab && (GG({ tab: t }), e.selectSection?.(zG[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, C.jsx)("section", {
"data-settings-panel": "",
@@@ -74439,9 -72848,9 +74445,9 @@@
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: lIe,
- onKeyDown: hFe,
++ onKeyDown: aIe,
onClick: (e) => {
- e.target === e.currentTarget && HG();
- e.target === e.currentTarget && yG();
++ e.target === e.currentTarget && KG();
},
children: /* @__PURE__ */ (0, C.jsxs)("div", {
"data-settings-card": "",
@@@ -74452,33 -72861,33 +74458,33 @@@
ref: a,
children: [/* @__PURE__ */ (0, C.jsx)("h2", {
id: "settingsTitle",
- children: FG[t.tab][0]
- }), /* @__PURE__ */ (0, C.jsx)(TP, {
- children: fG[t.tab][0]
- }), /* @__PURE__ */ (0, C.jsx)(yP, {
++ children: zG[t.tab][0]
++ }), /* @__PURE__ */ (0, C.jsx)(OP, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => HG()
- onPress: () => yG()
++ onPress: () => KG()
})]
}),
- /* @__PURE__ */ (0, C.jsx)(uIe, {
- /* @__PURE__ */ (0, C.jsx)(gFe, {
++ /* @__PURE__ */ (0, C.jsx)(oIe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- HG(!1), e.openConfiguration();
- yG(!1), e.openConfiguration();
++ KG(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, C.jsxs)(GG, {
- /* @__PURE__ */ (0, C.jsxs)(SG, {
++ /* @__PURE__ */ (0, C.jsxs)(YG, {
index: 0,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "主题",
- children: /* @__PURE__ */ (0, C.jsx)(JW, {
- children: /* @__PURE__ */ (0, C.jsx)(TW, {
++ children: /* @__PURE__ */ (0, C.jsx)(QW, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@@ -74506,7 -72915,7 +74512,7 @@@
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, C.jsx)(KG, {
- /* @__PURE__ */ (0, C.jsx)(CG, {
++ /* @__PURE__ */ (0, C.jsx)(XG, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@@ -74514,7 -72923,7 +74520,7 @@@
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, C.jsx)(KG, {
- /* @__PURE__ */ (0, C.jsx)(CG, {
++ /* @__PURE__ */ (0, C.jsx)(XG, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@@ -74522,40 -72931,40 +74528,40 @@@
n.homeGlow.on = t, p(), e.changed("glow");
}
}),
- /* @__PURE__ */ (0, C.jsx)(qFe, { host: e }),
- /* @__PURE__ */ (0, C.jsx)($Pe, { host: e }),
++ /* @__PURE__ */ (0, C.jsx)(UFe, { host: e }),
/* @__PURE__ */ (0, C.jsxs)("section", {
"data-sidebar-setting": "",
"aria-labelledby": "sidebarOrderTitle",
children: [/* @__PURE__ */ (0, C.jsx)("span", { children: /* @__PURE__ */ (0, C.jsx)("b", {
id: "sidebarOrderTitle",
children: "导航入口与顺序"
- }) }), /* @__PURE__ */ (0, C.jsx)(XFe, { host: e })]
- }) }), /* @__PURE__ */ (0, C.jsx)(nFe, { host: e })]
++ }) }), /* @__PURE__ */ (0, C.jsx)(KFe, { host: e })]
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(pIe, {
- /* @__PURE__ */ (0, C.jsx)(yFe, {
++ /* @__PURE__ */ (0, C.jsx)(lIe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, C.jsx)(mIe, {
- /* @__PURE__ */ (0, C.jsx)(bFe, {
++ /* @__PURE__ */ (0, C.jsx)(uIe, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, C.jsxs)(GG, {
- /* @__PURE__ */ (0, C.jsxs)(SG, {
++ /* @__PURE__ */ (0, C.jsxs)(YG, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, C.jsx)(_Ie, {
- /* @__PURE__ */ (0, C.jsx)(CFe, {
++ /* @__PURE__ */ (0, C.jsx)(pIe, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, C.jsx)(jG, {
- children: /* @__PURE__ */ (0, C.jsx)(cG, {
++ children: /* @__PURE__ */ (0, C.jsx)(FG, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@@ -74565,24 -72974,24 +74571,24 @@@
}, d)
})
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "口味与记录",
children: /* @__PURE__ */ (0, C.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, C.jsx)(gA, {
- children: /* @__PURE__ */ (0, C.jsx)(hA, {
++ children: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/taste",
- onClick: () => HG(!1),
- onClick: () => yG(!1),
++ onClick: () => KG(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(GG, {
- /* @__PURE__ */ (0, C.jsx)(SG, {
++ /* @__PURE__ */ (0, C.jsx)(YG, {
index: 4,
tab: t.tab,
- children: /* @__PURE__ */ (0, C.jsx)(KG, {
- children: /* @__PURE__ */ (0, C.jsx)(CG, {
++ children: /* @__PURE__ */ (0, C.jsx)(XG, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
@@@ -74597,7 -73006,7 +74603,7 @@@
})
});
}
- function fIe(e, t) {
-function vFe(e, t) {
++function cIe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ro("arrow-up", "arrow-down", "a", {
@@@ -74607,17 -73016,17 +74613,17 @@@
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
- function pIe({ host: e, tab: t, epoch: n }) {
-function yFe({ host: e, tab: t, epoch: n }) {
++function lIe({ 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, C.jsxs)(GG, {
- return /* @__PURE__ */ (0, C.jsxs)(SG, {
++ return /* @__PURE__ */ (0, C.jsxs)(YG, {
index: 1,
tab: t,
children: [
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, C.jsx)(jG, {
- children: /* @__PURE__ */ (0, C.jsx)(cG, {
++ children: /* @__PURE__ */ (0, C.jsx)(FG, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@@ -74627,24 -73036,24 +74633,24 @@@
}, n)
})
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, C.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, C.jsx)(YW, {
- children: [/* @__PURE__ */ (0, C.jsx)(EW, {
++ children: [/* @__PURE__ */ (0, C.jsx)($W, {
id: "defaultSortSetting",
label: "默认排序",
- options: ZFe,
- options: rFe,
++ options: qFe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, C.jsx)(YW, {
- }), /* @__PURE__ */ (0, C.jsx)(EW, {
++ }), /* @__PURE__ */ (0, C.jsx)($W, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: QFe,
- options: iFe,
++ options: JFe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@@ -74652,13 -73061,13 +74658,13 @@@
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => fIe(e, o)
- decorate: (e) => vFe(e, o)
++ decorate: (e) => cIe(e, o)
})]
})
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, C.jsx)(JW, {
- children: /* @__PURE__ */ (0, C.jsx)(TW, {
++ children: /* @__PURE__ */ (0, C.jsx)(QW, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@@ -74671,16 -73080,16 +74677,16 @@@
onChoose: (t) => e.setVideoLayout(t)
})
}),
- /* @__PURE__ */ (0, C.jsx)(gIe, {
- /* @__PURE__ */ (0, C.jsx)(SFe, {
++ /* @__PURE__ */ (0, C.jsx)(fIe, {
host: e,
epoch: n
})
]
});
}
- function mIe({ host: e, tab: t, epoch: n }) {
-function bFe({ host: e, tab: t, epoch: n }) {
++function uIe({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, C.jsxs)(GG, {
- return /* @__PURE__ */ (0, C.jsxs)(SG, {
++ return /* @__PURE__ */ (0, C.jsxs)(YG, {
index: 2,
tab: t,
children: [
@@@ -74688,13 -73097,13 +74694,13 @@@
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "默认图片",
- children: /* @__PURE__ */ (0, C.jsx)(JW, {
- children: /* @__PURE__ */ (0, C.jsx)(TW, {
++ children: /* @__PURE__ */ (0, C.jsx)(QW, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: $Fe,
- options: aFe,
++ options: YFe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@@ -74722,7 -73131,7 +74728,7 @@@
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, C.jsx)(KG, {
- /* @__PURE__ */ (0, C.jsx)(CG, {
++ /* @__PURE__ */ (0, C.jsx)(XG, {
id: "feedAutoScrollSetting",
title: "新作自动滚动",
checked: r.feedAutoScroll,
@@@ -74730,7 -73139,7 +74736,7 @@@
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- eIe.map(([t, n, r, i]) => /* @__PURE__ */ (0, C.jsx)(hIe, {
- oFe.map(([t, n, r, i]) => /* @__PURE__ */ (0, C.jsx)(xFe, {
++ XFe.map(([t, n, r, i]) => /* @__PURE__ */ (0, C.jsx)(dIe, {
host: e,
id: t,
settingKey: n,
@@@ -74740,8 -73149,8 +74746,8 @@@
]
});
}
- function hIe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = Xz(), [o, s] = (0, S.useState)(null), c = (0, S.useRef)(null), l = e.store.value, u = (t) => {
-function xFe({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = wz(), [o, s] = (0, S.useState)(null), c = (0, S.useRef)(null), l = e.store.value, u = (t) => {
++function dIe({ host: e, id: t, settingKey: n, label: r, title: i }) {
++ let a = $z(), [o, s] = (0, S.useState)(null), c = (0, S.useRef)(null), l = e.store.value, u = (t) => {
s(t), Os(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
@@@ -74765,24 -73174,24 +74771,24 @@@
})]
});
}
- function gIe({ host: e, epoch: t }) {
-function SFe({ host: e, epoch: t }) {
++function fIe({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, C.jsx)(jG, {
- children: /* @__PURE__ */ (0, C.jsx)(cG, {
++ children: /* @__PURE__ */ (0, C.jsx)(FG, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: n.hoverDelaySeconds,
onApply: (t) => {
-- n.hoverDelaySeconds = oE(t, 0, 60, 5), r(), e.changed("hoverDelay");
++ n.hoverDelaySeconds = cE(t, 0, 60, 5), r(), e.changed("hoverDelay");
}
}, t)
})
}),
- /* @__PURE__ */ (0, C.jsx)(KG, {
- /* @__PURE__ */ (0, C.jsx)(CG, {
++ /* @__PURE__ */ (0, C.jsx)(XG, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@@ -74790,7 -73199,7 +74796,7 @@@
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, C.jsx)(KG, {
- /* @__PURE__ */ (0, C.jsx)(CG, {
++ /* @__PURE__ */ (0, C.jsx)(XG, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@@ -74798,11 -73207,11 +74804,11 @@@
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, C.jsx)(qG, {
- /* @__PURE__ */ (0, C.jsx)(wG, {
++ /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, C.jsx)(jG, {
- children: /* @__PURE__ */ (0, C.jsx)(cG, {
++ children: /* @__PURE__ */ (0, C.jsx)(FG, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@@ -74814,18 -73223,18 +74820,18 @@@
})
] });
}
- function _Ie({ host: e, epoch: t }) {
- let n = e.store.value, r = Xz();
- return /* @__PURE__ */ (0, C.jsx)(qG, {
-function CFe({ host: e, epoch: t }) {
- let n = e.store.value, r = wz();
- return /* @__PURE__ */ (0, C.jsx)(wG, {
++function pIe({ host: e, epoch: t }) {
++ let n = e.store.value, r = $z();
++ return /* @__PURE__ */ (0, C.jsx)(ZG, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, C.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, C.jsx)(jG, {
- children: /* @__PURE__ */ (0, C.jsx)(cG, {
++ children: /* @__PURE__ */ (0, C.jsx)(FG, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
-- n.searchHistoryLimit = oE(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
++ n.searchHistoryLimit = cE(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
@@@ -74833,68 -73242,68 +74839,68 @@@
}
//#endregion
//#region src/react/sidebar/sidebar-island.tsx
- var JG = "__home__", vIe = {
-var TG = "__home__", wFe = {
++var QG = "__home__", mIe = {
creator: 26,
tag: 30,
tech: 16
- }, YG = 180, XG = null, ZG = {
-}, EG = 180, DG = null, OG = {
++}, $G = 180, eK = null, tK = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
- }, QG = /* @__PURE__ */ new Set();
- function yIe(e) {
- return QG.add(e), () => {
- QG.delete(e);
-}, kG = /* @__PURE__ */ new Set();
-function TFe(e) {
- return kG.add(e), () => {
- kG.delete(e);
++}, nK = /* @__PURE__ */ new Set();
++function hIe(e) {
++ return nK.add(e), () => {
++ nK.delete(e);
};
}
- function $G() {
- for (let e of [...QG]) e();
-function AG() {
- for (let e of [...kG]) e();
++function rK() {
++ for (let e of [...nK]) e();
}
- var bIe = {
-var EFe = {
++var gIe = {
render(e) {
- ZG = {
- ...ZG,
- OG = {
- ...OG,
++ tK = {
++ ...tK,
props: e
- }, (0, ht.flushSync)($G);
- }, (0, gt.flushSync)(AG);
++ }, (0, ht.flushSync)(rK);
},
navChanged() {
- ZG = {
- ...ZG,
- epoch: ZG.epoch + 1
- }, (0, ht.flushSync)($G);
- OG = {
- ...OG,
- epoch: OG.epoch + 1
- }, (0, gt.flushSync)(AG);
++ tK = {
++ ...tK,
++ epoch: tK.epoch + 1
++ }, (0, ht.flushSync)(rK);
}
};
- function xIe(e) {
- return XG = e, ZG = {
- ...ZG,
-function DFe(e) {
- return DG = e, OG = {
- ...OG,
++function _Ie(e) {
++ return eK = e, tK = {
++ ...tK,
props: {
content: null,
filters: {},
latest: null
}
- }, bIe;
- }, EFe;
++ }, gIe;
}
- function SIe() {
- let e = (0, S.useSyncExternalStore)(yIe, () => ZG);
- return XG ? /* @__PURE__ */ (0, C.jsx)(CIe, {
- host: XG,
-function OFe() {
- let e = (0, S.useSyncExternalStore)(TFe, () => OG);
- return DG ? /* @__PURE__ */ (0, C.jsx)(kFe, {
- host: DG,
++function vIe() {
++ let e = (0, S.useSyncExternalStore)(hIe, () => tK);
++ return eK ? /* @__PURE__ */ (0, C.jsx)(yIe, {
++ host: eK,
props: e.props,
epoch: e.epoch
}) : null;
}
- function CIe({ host: e, props: t, epoch: n }) {
-function kFe({ host: e, props: t, epoch: n }) {
++function yIe({ host: e, props: t, epoch: n }) {
let r = (0, S.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, C.jsx)(wIe, {
- /* @__PURE__ */ (0, C.jsx)(AFe, {
++ /* @__PURE__ */ (0, C.jsx)(bIe, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, C.jsx)(EIe, {
- t.content ? /* @__PURE__ */ (0, C.jsx)(MFe, {
++ t.content ? /* @__PURE__ */ (0, C.jsx)(SIe, {
host: e,
content: t.content,
filters: t.filters,
@@@ -74902,8 -73311,8 +74908,8 @@@
}) : null
] });
}
- function wIe({ host: e, epoch: t, version: n }) {
- let r = MG(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, S.useRef)(null), l = (0, S.useRef)(null), u = bj(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || JG : "").join(",")}`, { axis: "y" }), { sync: d } = u;
-function AFe({ host: e, epoch: t, version: n }) {
- let r = lG(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, S.useRef)(null), l = (0, S.useRef)(null), u = bj(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || TG : "").join(",")}`, { axis: "y" }), { sync: d } = u;
++function bIe({ host: e, epoch: t, version: n }) {
++ let r = IG(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, S.useRef)(null), l = (0, S.useRef)(null), u = Cj(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || QG : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, S.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
return [
@@@ -74921,7 -73330,7 +74927,7 @@@
}, _ = (e) => ({
draggable: !0,
onDragStart: (t) => {
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || JG);
- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || TG);
++ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || QG);
},
onDragOver: (t) => {
if (f === null || f === e) return;
@@@ -74936,7 -73345,7 +74942,7 @@@
t.preventDefault();
let n = f, a = m?.key === e && m.after;
g();
- let o = n === null ? null : NG(i, n, e, a);
- let o = n === null ? null : uG(i, n, e, a);
++ let o = n === null ? null : LG(i, n, e, a);
o && r(o);
},
onDragEnd: g
@@@ -74959,16 -73368,16 +74965,16 @@@
"data-sidebar-home-logo": "",
src: "/peach-logo.png",
alt: ""
-- }) : /* @__PURE__ */ (0, C.jsx)(pO, { name: r }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
- }, t || JG))
- }, t || TG))
- }), v ? (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)("span", {
++ }) : /* @__PURE__ */ (0, C.jsx)(hO, { name: r }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
++ }, t || QG))
+ }), v ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)("span", {
"data-sidebar-glide": "",
"aria-hidden": "true",
ref: l
}), v) : null] });
}
- var eK = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
- function TIe(e) {
-var jG = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function jFe(e) {
++var iK = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
++function xIe(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@@ -74981,7 -73390,7 +74987,7 @@@
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
- function EIe({ host: e, content: t, filters: n, latest: r }) {
-function MFe({ host: e, content: t, filters: n, latest: r }) {
++function SIe({ 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, S.useLayoutEffect)(() => {
t.kind === "catalog" && Wo(e.scroll, "drawer");
@@@ -74990,8 -73399,8 +74996,8 @@@
i,
t.kind
]);
- let a = t.kind === "catalog" ? DIe(e, t.facets, n, r, i) : OIe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, C.jsx)(kIe, {
- let a = t.kind === "catalog" ? NFe(e, t.facets, n, r, i) : PFe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, C.jsx)(FFe, {
++ let a = t.kind === "catalog" ? CIe(e, t.facets, n, r, i) : wIe(e, t, n), o = 0;
++ return a.map((e) => e && /* @__PURE__ */ (0, C.jsx)(TIe, {
title: e.title,
kind: e.kind,
active: e.active,
@@@ -75000,11 -73409,11 +75006,11 @@@
children: e.body
}, e.title));
}
- function DIe(e, t, n, r, i) {
- let a = TIe(r), o = (t, r, i) => {
-function NFe(e, t, n, r, i) {
- let a = jFe(r), o = (t, r, i) => {
++function CIe(e, t, n, r, i) {
++ let a = xIe(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = eK(n, r);
- return /* @__PURE__ */ (0, C.jsx)(rK, {
- let o = jG(n, r);
- return /* @__PURE__ */ (0, C.jsx)(PG, {
++ let o = iK(n, r);
++ return /* @__PURE__ */ (0, C.jsx)(sK, {
rows: t,
filterKey: r,
multi: i,
@@@ -75014,7 -73423,7 +75020,7 @@@
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = eK(n, l), p = c.some((e) => f.includes(e.value));
- let f = jG(n, l), p = c.some((e) => f.includes(e.value));
++ let f = iK(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@@ -75026,12 -73435,12 +75032,12 @@@
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, C.jsx)(jIe, {
- body: /* @__PURE__ */ (0, C.jsx)(LFe, {
++ body: /* @__PURE__ */ (0, C.jsx)(DIe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: vIe[d],
- limit: wFe[d],
++ limit: mIe[d],
filterKey: l,
selected: f,
counts: a,
@@@ -75046,7 -73455,7 +75052,7 @@@
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, C.jsx)(oK, {
- body: /* @__PURE__ */ (0, C.jsx)(LG, {
++ body: /* @__PURE__ */ (0, C.jsx)(uK, {
host: e,
filters: n
})
@@@ -75060,7 -73469,7 +75066,7 @@@
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, C.jsx)(iK, {
- body: /* @__PURE__ */ (0, C.jsx)(FG, {
++ body: /* @__PURE__ */ (0, C.jsx)(cK, {
rows: t.followTags,
host: e,
selected: null,
@@@ -75069,14 -73478,14 +75075,14 @@@
} : null
];
}
- function OIe(e, t, n) {
- let r = t.providers || [], i = eK(n, "provider"), a = new Set(t.selected);
-function PFe(e, t, n) {
- let r = t.providers || [], i = jG(n, "provider"), a = new Set(t.selected);
++function wIe(e, t, n) {
++ let r = t.providers || [], i = iK(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, C.jsx)(rK, {
- body: /* @__PURE__ */ (0, C.jsx)(PG, {
++ body: /* @__PURE__ */ (0, C.jsx)(sK, {
rows: r,
filterKey: "provider",
multi: !1,
@@@ -75090,7 -73499,7 +75096,7 @@@
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, C.jsx)(oK, {
- body: /* @__PURE__ */ (0, C.jsx)(LG, {
++ body: /* @__PURE__ */ (0, C.jsx)(uK, {
host: e,
filters: n,
commit: e.setFollowDuration
@@@ -75100,7 -73509,7 +75106,7 @@@
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, C.jsx)(iK, {
- body: /* @__PURE__ */ (0, C.jsx)(FG, {
++ body: /* @__PURE__ */ (0, C.jsx)(cK, {
rows: t.tags,
host: e,
selected: a,
@@@ -75109,19 -73518,19 +75115,19 @@@
} : null
];
}
- function tK(e, t) {
-function MG(e, t) {
++function aK(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
- function kIe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)(() => tK(e, n)), u = (0, S.useRef)(!1);
-function FFe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
- let o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)(() => MG(e, n)), u = (0, S.useRef)(!1);
++function TIe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
++ let o = (0, S.useRef)(null), s = (0, S.useRef)(null), [c, l] = (0, S.useState)(() => aK(e, n)), u = (0, S.useRef)(!1);
(0, S.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? tK(e, n) : c;
- let i = u.current ? MG(e, n) : c;
++ let i = u.current ? aK(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
@@@ -75142,7 -73551,7 +75148,7 @@@
"aria-expanded": c,
"aria-controls": f,
onClick: d,
-- children: [/* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-right" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e })]
++ children: [/* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-right" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, C.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@@ -75153,7 -73562,7 +75159,7 @@@
children: /* @__PURE__ */ (0, C.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, C.jsx)(nK.Provider, {
- children: /* @__PURE__ */ (0, C.jsx)(NG.Provider, {
++ children: /* @__PURE__ */ (0, C.jsx)(oK.Provider, {
value: d,
children: a
})
@@@ -75162,15 -73571,15 +75168,15 @@@
})]
});
}
- var nK = (0, S.createContext)(() => {});
- function AIe({ dot: e }) {
-var NG = (0, S.createContext)(() => {});
-function IFe({ dot: e }) {
-- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, C.jsx)(pO, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, C.jsx)("img", {
++var oK = (0, S.createContext)(() => {});
++function EIe({ dot: e }) {
++ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, C.jsx)(hO, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, C.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, C.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
- function rK({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
-function PG({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
++function sK({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@@ -75187,7 -73596,7 +75193,7 @@@
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, C.jsx)(AIe, { dot: e.dot }),
- /* @__PURE__ */ (0, C.jsx)(IFe, { dot: e.dot }),
++ /* @__PURE__ */ (0, C.jsx)(EIe, { dot: e.dot }),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@@ -75202,8 -73611,8 +75208,8 @@@
})
});
}
- function jIe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, S.useContext)(nK), [d, f] = (0, S.useState)(null), [p, m] = (0, S.useState)(e);
-function LFe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
- let u = (0, S.useContext)(NG), [d, f] = (0, S.useState)(null), [p, m] = (0, S.useState)(e);
++function DIe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
++ let u = (0, S.useContext)(oK), [d, f] = (0, S.useState)(null), [p, m] = (0, S.useState)(e);
p !== e && (m(e), f(null));
let h = (0, S.useRef)(null), g = (0, S.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
return (0, S.useLayoutEffect)(() => {
@@@ -75218,7 -73627,7 +75224,7 @@@
e.body.classList.add("ui-fcollapse"), La(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(rK, {
- }, [d, _]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(PG, {
++ }, [d, _]), /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(sK, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@@ -75243,10 -73652,10 +75249,10 @@@
all: !_
}), _ && u());
},
-- children: /* @__PURE__ */ (0, C.jsx)(pO, { name: "chevron-down" })
++ children: /* @__PURE__ */ (0, C.jsx)(hO, { name: "chevron-down" })
}) : null] });
}
- function iK({ rows: e, host: t, selected: n, badges: r }) {
-function FG({ rows: e, host: t, selected: n, badges: r }) {
++function cK({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, C.jsxs)("button", {
@@@ -75268,10 -73677,10 +75274,10 @@@
}, e.value))
});
}
- var aK = (e, t) => e ? Math.min(YG, Number(e) / 60) : t;
- function oK({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, S.useState)(r), [o, s] = (0, S.useState)(() => [aK(t.dur_min, 0), aK(t.dur_max, YG)]), [c, l] = (0, S.useState)("max");
- i !== r && (a(r), s([aK(t.dur_min, 0), aK(t.dur_max, YG)]));
-var IG = (e, t) => e ? Math.min(EG, Number(e) / 60) : t;
-function LG({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, S.useState)(r), [o, s] = (0, S.useState)(() => [IG(t.dur_min, 0), IG(t.dur_max, EG)]), [c, l] = (0, S.useState)("max");
- i !== r && (a(r), s([IG(t.dur_min, 0), IG(t.dur_max, EG)]));
++var lK = (e, t) => e ? Math.min($G, Number(e) / 60) : t;
++function uK({ host: e, filters: t, commit: n = e.setDuration }) {
++ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, S.useState)(r), [o, s] = (0, S.useState)(() => [lK(t.dur_min, 0), lK(t.dur_max, $G)]), [c, l] = (0, S.useState)("max");
++ i !== r && (a(r), s([lK(t.dur_min, 0), lK(t.dur_max, $G)]));
let [u, d] = o, f = (0, S.useRef)(null), p = (0, S.useRef)(null), m = (0, S.useRef)(null), h = (0, S.useRef)(o);
h.current = o;
let g = (e, t) => {
@@@ -75284,11 -73693,11 +75290,11 @@@
}, [n]), (0, S.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / YG * 100}%`), e.style.setProperty("--hi", `${d / YG * 100}%`);
- e.style.setProperty("--lo", `${u / EG * 100}%`), e.style.setProperty("--hi", `${d / EG * 100}%`);
++ e.style.setProperty("--lo", `${u / $G * 100}%`), e.style.setProperty("--hi", `${d / $G * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / YG * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
- e.style.left = `${n / EG * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
++ e.style.left = `${n / $G * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@@ -75298,7 -73707,7 +75304,7 @@@
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= YG ? "不限" : `${t} 分钟`
- children: e === "max" && t >= EG ? "不限" : `${t} 分钟`
++ children: e === "max" && t >= $G ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-sidebar-duration": "",
@@@ -75313,7 -73722,7 +75319,7 @@@
id: "durMin",
type: "range",
min: "0",
- max: YG,
- max: EG,
++ max: $G,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@@ -75324,7 -73733,7 +75330,7 @@@
id: "durMax",
type: "range",
min: "0",
- max: YG,
- max: EG,
++ max: $G,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@@ -75339,23 -73748,23 +75345,23 @@@
}
//#endregion
//#region src/configuration-skeleton.ts
- var MIe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${xo({
-var RFe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${xo({
++var OIe = (e, t) => `<section aria-label="${e}" class="flex w-full flex-col gap-2"><p class="w-full px-3 text-body-2-medium text-text-secondary">${e}</p><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${xo({
label: "保存配置",
attrs: "disabled data-skeleton-action"
- })}</div></div></section>`, sK = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
- function NIe() {
-})}</div></div></section>`, RG = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
-function zFe() {
++})}</div></div></section>`, dK = (e, t = "", n = "ui-configuration-skeleton-toggle") => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div><span class="skeleton ${n}"></span></div>`;
++function kIe() {
return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${[
"媒体库与入库",
"来源与订阅",
"下载渠道",
"网络与访问",
"应用与维护"
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${MIe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${sK("媒体文件夹", "", "ui-configuration-skeleton-select")}${sK("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
- ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${RFe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${RG("媒体文件夹", "", "ui-configuration-skeleton-select")}${RG("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
++ ].map((e, t) => `<button type="button" tabindex="-1" aria-selected="${t === 0}">${e}</button>`).join("")}</div>`}<div class="flex flex-col gap-6">${OIe("媒体文件夹", `<div class="flex flex-col gap-3 py-4 pr-3">${dK("媒体文件夹", "", "ui-configuration-skeleton-select")}${dK("媒体库名称", "", "ui-configuration-skeleton-select")}</div>`)}</div></div></div>`;
}
//#endregion
//#region src/management-skeletons.ts
- var cK = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", lK = (e = "60%") => `<span class="${cK} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, uK = "disabled data-skeleton-action", dK = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
- function PIe() {
-var zG = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", BG = (e = "60%") => `<span class="${zG} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, VG = "disabled data-skeleton-action", HG = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function BFe() {
++var fK = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", pK = (e = "60%") => `<span class="${fK} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, mK = "disabled data-skeleton-action", hK = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
++function AIe() {
let e = [
"馆藏视频",
"看过",
@@@ -75363,27 -73772,27 +75369,27 @@@
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${cK} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${lK("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${lK("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${dK}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${lK("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${zG} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${BG("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${BG("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${HG}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${BG("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
++ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${fK} size-7 max-sm:size-6"></i>${e}</span>
++ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${pK("4em")}</b>
++ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${pK("6em")}</small>
++ </div>`).join(""), t = (e) => `<section class="${hK}" data-stats-chart>
++ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${pK("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${lK()}</span><b class="text-title-2-medium">${lK("3em")}</b><small class="text-caption-1-regular">${lK()}</small></div>`).join("")}</div>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${BG()}</span><b class="text-title-2-medium">${BG("3em")}</b><small class="text-caption-1-regular">${BG()}</small></div>`).join("")}</div>
++ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${pK()}</span><b class="text-title-2-medium">${pK("3em")}</b><small class="text-caption-1-regular">${pK()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${lK("12em")}</p>
- <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${BG("12em")}</p>
++ <p class="text-caption-1-regular text-text-secondary">账本当前快照 · ${pK("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${dK}"><h3 class="text-title-2-medium">${e}</h3><div class="${cK} h-64"></div></section>`).join("")}</div>
- ].map((e) => `<section class="${HG}"><h3 class="text-title-2-medium">${e}</h3><div class="${zG} h-64"></div></section>`).join("")}</div>
++ ].map((e) => `<section class="${hK}"><h3 class="text-title-2-medium">${e}</h3><div class="${fK} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@@ -75392,11 -73801,11 +75398,11 @@@
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${cK} h-7"></div>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${zG} h-7"></div>`).join("")}</div>
++ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${fK} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
- function FIe() {
-function VFe() {
++function jIe() {
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 = [
"浏览记录",
"口味维度",
@@@ -75404,20 -73813,20 +75410,20 @@@
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${cK} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${lK("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${lK("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${cK} h-6"></div>`).join(""), r = (e) => `<section class="${dK}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${cK} h-40"></div></section>`;
- <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${zG} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${BG("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${BG("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${zG} h-6"></div>`).join(""), r = (e) => `<section class="${HG}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${zG} h-40"></div></section>`;
++ <span class="flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3"><i class="${fK} size-7 max-sm:size-6"></i>${e}</span>
++ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${pK("4em")}</b>
++ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${pK("6em")}</small>
++ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${fK} h-6"></div>`).join(""), r = (e) => `<section class="${hK}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${fK} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
<div class="flex flex-wrap items-center gap-2">${Co("全部时间")}<span data-button-group data-split-button data-variant="primary">${xo({
glyph: "compass",
label: "读取浏览器历史",
- attrs: uK
- attrs: VG
++ attrs: mK
})}${xo({
glyph: "chevron-down",
- attrs: uK
- attrs: VG
++ attrs: mK
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@@ -75435,11 -73844,11 +75441,11 @@@
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${lK("8em")}</small></div>
- <small class="text-caption-1-regular">${BG("8em")}</small></div>
++ <small class="text-caption-1-regular">${pK("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${dK}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${cK} h-72 max-sm:h-48"></div></section>
- <section class="${HG}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${zG} h-72 max-sm:h-48"></div></section>
++ <section class="${hK}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${fK} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@@ -75447,20 -73856,20 +75453,20 @@@
"常访问网站",
"浏览候选"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${cK} h-7"></div>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${zG} h-7"></div>`).join("")}</div>
++ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${fK} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
- function IIe() {
-function HFe() {
++function MIe() {
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="${cK} 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">${lK("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${lK("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${lK("75%")}</span>
- <span class="${zG} 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">${BG("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${BG("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${BG("75%")}</span>
++ <span class="${fK} 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">${pK("70%")}</span>
++ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${pK("3em")}</span>`).join("")}
++ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${pK("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${lK("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${lK("8em")}</span>
- <b class="text-title-2-medium">${BG("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${BG("8em")}</span>
++ <b class="text-title-2-medium">${pK("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${pK("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
@@@ -75469,27 -73878,27 +75475,27 @@@
variant: "secondary",
size: "small",
label: e,
- attrs: uK
- attrs: VG
++ attrs: mK
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${lK("4em")}</strong></div><p class="text-body-regular text-text-secondary">${lK("12em")}</p>
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${BG("4em")}</strong></div><p class="text-body-regular text-text-secondary">${BG("12em")}</p>
++ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${pK("4em")}</strong></div><p class="text-body-regular text-text-secondary">${pK("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${uK} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${VG} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
++ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${mK} class="h-7.5 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
- function LIe() {
-function UFe() {
++function NIe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card border border-separator-border flex flex-col gap-3 p-3">
- <div class="flex min-w-0 gap-4"><span class="${cK} 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">${lK("80%")}</h3><p class="text-body-2-regular">${lK("60%")}</p></div>
- <div class="flex min-w-0 gap-4"><span class="${zG} 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">${BG("80%")}</h3><p class="text-body-2-regular">${BG("60%")}</p></div>
++ <div class="flex min-w-0 gap-4"><span class="${fK} 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">${pK("80%")}</h3><p class="text-body-2-regular">${pK("60%")}</p></div>
</div>
<footer class="flex justify-end">${xo({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: uK
- attrs: VG
++ attrs: mK
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
@@@ -75499,24 -73908,24 +75505,24 @@@
}
//#endregion
//#region src/board-skeleton.ts
- var fK = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, pK = () => `${fK("80%")}${fK("48%")}`, mK = (e, t) => e.repeat(t), hK = "disabled data-skeleton-action", gK = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, _K = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, RIe = "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", vK = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
-var UG = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, WG = () => `${UG("80%")}${UG("48%")}`, GG = (e, t) => e.repeat(t), KG = "disabled data-skeleton-action", qG = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, JG = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, WFe = "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", YG = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
++var gK = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, _K = () => `${gK("80%")}${gK("48%")}`, vK = (e, t) => e.repeat(t), yK = "disabled data-skeleton-action", bK = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, xK = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, PIe = "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", SK = () => `<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="${RIe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${gK("3em")}</b></div>`).join("")}</div>`, yK = [
-].map((e) => `<div class="${WFe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${qG("3em")}</b></div>`).join("")}</div>`, XG = [
++].map((e) => `<div class="${PIe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${bK("3em")}</b></div>`).join("")}</div>`, CK = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"]
- ], zIe = (e = "") => yK.some(([t]) => t === e) ? e : "list", bK = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${yK.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, xK = (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>`, BIe = ({ table: e, sort: t, dir: n }) => {
-], GFe = (e = "") => XG.some(([t]) => t === e) ? e : "list", ZG = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${XG.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, QG = (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>`, KFe = ({ table: e, sort: t, dir: n }) => {
++], FIe = (e = "") => CK.some(([t]) => t === e) ? e : "list", wK = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${CK.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, TK = (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>`, IIe = ({ table: e, sort: t, dir: n }) => {
let r = bn.find(([e]) => e === t)[1];
- return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${gK("132px")}</span></span>${xo({
- return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${qG("132px")}</span></span>${xo({
++ return `<div class="flex flex-wrap items-center gap-2 ui-follow-skeleton-toolbar"><span class="contents max-sm:flex max-sm:min-w-0 max-sm:flex-1 max-sm:flex-col"><h3 class="mr-auto text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${bK("132px")}</span></span>${xo({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: hK
- attrs: KG
++ attrs: yK
})}<span data-follow-toolbar-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span data-button-group role="group">${xo({
variant: "ghost",
glyph: "layout-grid",
@@@ -75533,42 -73942,42 +75539,42 @@@
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: hK
- attrs: KG
++ attrs: yK
})}</span></div>`;
- }, SK = () => `<span class="flex shrink-0 items-center gap-1">${xo({
-}, $G = () => `<span class="flex shrink-0 items-center gap-1">${xo({
++}, EK = () => `<span class="flex shrink-0 items-center gap-1">${xo({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: hK
- attrs: KG
++ attrs: yK
})}${xo({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: hK
- })}</span>`, VIe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${xK()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${gK("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${_K(14, 14)}</span>${_K(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${gK("113px")}</span>${SK()}</span></div>`, CK = (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>${_K(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${gK("92px")}</b>${xo({
- attrs: KG
-})}</span>`, qFe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${QG()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${qG("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${JG(14, 14)}</span>${JG(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${qG("113px")}</span>${$G()}</span></div>`, eK = (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>${JG(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${qG("92px")}</b>${xo({
++ attrs: yK
++})}</span>`, LIe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${TK()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${bK("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${xK(14, 14)}</span>${xK(48, 24)}<span data-follow-source-controls class="contents max-sm:flex max-sm:w-full max-sm:flex-wrap max-sm:items-center max-sm:gap-1.5"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${bK("113px")}</span>${EK()}</span></div>`, DK = (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>${xK(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${bK("92px")}</b>${xo({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: hK
- })}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${_K(14, 14)}${_K(14, 14)}</span>${xo({
- attrs: KG
-})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${JG(14, 14)}${JG(14, 14)}</span>${xo({
++ attrs: yK
++})}<span data-follow-author-controls class="contents max-sm:flex max-sm:w-full max-sm:items-center max-sm:gap-2"><span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${xK(14, 14)}${xK(14, 14)}</span>${xo({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: hK
- attrs: KG
++ attrs: yK
})}${xo({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: hK
- })}</span></div><div data-source-divider>${mK(VIe(), e)}</div></section>`, HIe = () => {
- attrs: KG
-})}</span></div><div data-source-divider>${GG(qFe(), e)}</div></section>`, JFe = () => {
++ attrs: yK
++})}</span></div><div data-source-divider>${vK(LIe(), e)}</div></section>`, RIe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
- }, UIe = [
-}, YFe = [
++}, zIe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@@ -75576,64 -73985,64 +75582,64 @@@
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
- ], WIe = {
-], XFe = {
++], BIe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
- }, GIe = "<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>", KIe = (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>${UIe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${WIe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${GIe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${mK(`<tr>${[
- xK(),
- `<span class="flex min-w-0 items-center gap-2">${_K(32, 32, !0)}${gK("5em")}</span>`,
- gK("10em"),
- `<span class="flex items-center gap-1.5">${_K(14, 14)}${gK("4em")}</span>`,
- _K(48, 24),
- gK("113px"),
- SK()
- ].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, qIe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${gK("111px")}</span>${Co(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${_K(204, 32)}</div>`, JIe = () => `<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">${gK("120px")}</h3>${[
-}, ZFe = "<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>", QFe = (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>${YFe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${XFe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${ZFe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${GG(`<tr>${[
- QG(),
- `<span class="flex min-w-0 items-center gap-2">${JG(32, 32, !0)}${qG("5em")}</span>`,
- qG("10em"),
- `<span class="flex items-center gap-1.5">${JG(14, 14)}${qG("4em")}</span>`,
- JG(48, 24),
- qG("113px"),
- $G()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, $Fe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${qG("111px")}</span>${Co(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${JG(204, 32)}</div>`, eIe = () => `<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">${qG("120px")}</h3>${[
++}, VIe = "<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>", HIe = (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>${zIe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${BIe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${VIe}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${vK(`<tr>${[
++ TK(),
++ `<span class="flex min-w-0 items-center gap-2">${xK(32, 32, !0)}${bK("5em")}</span>`,
++ bK("10em"),
++ `<span class="flex items-center gap-1.5">${xK(14, 14)}${bK("4em")}</span>`,
++ xK(48, 24),
++ bK("113px"),
++ EK()
++].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, UIe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-2-regular text-text-secondary">${bK("111px")}</span>${Co(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${xK(204, 32)}</div>`, WIe = () => `<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">${bK("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
- ].map((e) => `<span class="text-body-medium">${gK(e)}</span>`).join("")}</div>`, YIe = (e) => {
- let t = zIe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${vK()}<div class="flex flex-col gap-6">${bK(t)}<div class="flex flex-col gap-4">${JIe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = wn(e.followSort, e.followDir), i = e.followPageSize || HIe(), a = n ? KIe(i, r) : `${xK("全选本页")}<div class="flex flex-col gap-3">${CK(3)}${CK(4)}${CK(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${vK()}<div class="flex flex-col gap-6">${bK(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"}">${BIe({
-].map((e) => `<span class="text-body-medium">${qG(e)}</span>`).join("")}</div>`, tIe = (e) => {
- let t = GFe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${YG()}<div class="flex flex-col gap-6">${ZG(t)}<div class="flex flex-col gap-4">${eIe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = wn(e.followSort, e.followDir), i = e.followPageSize || JFe(), a = n ? QFe(i, r) : `${QG("全选本页")}<div class="flex flex-col gap-3">${eK(3)}${eK(4)}${eK(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${YG()}<div class="flex flex-col gap-6">${ZG(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"}">${KFe({
++].map((e) => `<span class="text-body-medium">${bK(e)}</span>`).join("")}</div>`, GIe = (e) => {
++ let t = FIe(e.followTab);
++ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${SK()}<div class="flex flex-col gap-6">${wK(t)}<div class="flex flex-col gap-4">${WIe()}</div></div></div></div>`;
++ let n = e.followLayout === "table", r = wn(e.followSort, e.followDir), i = e.followPageSize || RIe(), a = n ? HIe(i, r) : `${TK("全选本页")}<div class="flex flex-col gap-3">${DK(3)}${DK(4)}${DK(3)}</div>`;
++ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${SK()}<div class="flex flex-col gap-6">${wK(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"}">${IIe({
table: n,
...r
- })}${a}${qIe(n, i)}</div></div></div></div></div>`;
- })}${a}${$Fe(n, i)}</div></div></div></div></div>`;
++ })}${a}${UIe(n, i)}</div></div></div></div></div>`;
};
- function XIe() {
- 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">${fK("85%")}${fK("65%")}${mK(pK(), 4)}</div></aside></div>`;
-function nIe() {
- 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">${UG("85%")}${UG("65%")}${GG(WG(), 4)}</div></aside></div>`;
++function KIe() {
++ 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">${gK("85%")}${gK("65%")}${vK(_K(), 4)}</div></aside></div>`;
}
- function ZIe(e, t = {}) {
-function rIe(e, t = {}) {
++function qIe(e, t = {}) {
let n = "";
- if (e === "/stats") n = PIe();
- else if (e === "/jav") n = PMe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = FIe();
- else if (e === "/subscriptions") n = YIe(t);
- else if (e === "/settings/library") n = NIe();
- if (e === "/stats") n = BFe();
- else if (e === "/jav") n = Lje(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
- else if (e === "/taste") n = VFe();
- else if (e === "/subscriptions") n = tIe(t);
- else if (e === "/settings/library") n = zFe();
++ if (e === "/stats") n = AIe();
++ else if (e === "/jav") n = AMe(new URLSearchParams(location.search).get("tab") === "wants" ? "wants" : "discover");
++ else if (e === "/taste") n = jIe();
++ else if (e === "/subscriptions") n = GIe(t);
++ else if (e === "/settings/library") n = kIe();
else if (e === "/tasks") n = `<div class="ui-activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${fK("35%")}${pK()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = IIe();
- else if (e === "/quality-goals") n = LIe();
- else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${fK("200px")}</div></header><div class="ui-playlistcards">${mK(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${pK()}</div></div></article>`, 6)}</div></section>`;
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${UG("35%")}${WG()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") n = HFe();
- else if (e === "/quality-goals") n = UFe();
- else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${UG("200px")}</div></header><div class="ui-playlistcards">${GG(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${WG()}</div></div></article>`, 6)}</div></section>`;
++ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="ui-activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content ui-skeleton-lines">${gK("35%")}${_K()}</div></article></div></section>`).join("")}</div>`;
++ else if (e === "/duplicates") n = MIe();
++ else if (e === "/quality-goals") n = NIe();
++ else if (e === "/playlists") n = `<section class="ui-playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate ui-skeleton-lines"><span>新播放列表</span>${gK("200px")}</div></header><div class="ui-playlistcards">${vK(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy ui-skeleton-lines">${_K()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/react/follow-detail/follow-detail.ts
- var wK = (e) => ["follow-item", e], QIe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, $Ie = "/api/follow/save", eLe = "/api/follow/media/hide", TK = class extends Error {
-var tK = (e) => ["follow-item", e], iIe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, aIe = "/api/follow/save", oIe = "/api/follow/media/hide", nK = class extends Error {
++var OK = (e) => ["follow-item", e], JIe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, YIe = "/api/follow/save", XIe = "/api/follow/media/hide", kK = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
- async function EK(e, t) {
- let n = await yn(QIe(e), t);
-async function rK(e, t) {
- let n = await H(iIe(e), t);
++async function AK(e, t) {
++ let n = await yn(JIe(e), t);
for (let t of n.groups || []) {
let r = pi(t).find((t) => t.id === e);
if (r) return {
@@@ -75643,10 -74052,10 +75649,10 @@@
aliases: n.author_aliases || []
};
}
- throw new TK();
- throw new nK();
++ throw new kK();
}
- function tLe(e) {
-function sIe(e) {
- for (let [, t] of W.getQueriesData({ queryKey: ["follow-item"] })) {
++function ZIe(e) {
+ for (let [, t] of U.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = pi(t.group).find((t) => t.id === e);
if (n) return {
@@@ -75656,20 -74065,20 +75662,20 @@@
}
return null;
}
- async function DK(e, t) {
- let n = wK(e.id), r = mi(e.id), i = U.getQueryData(ci) ? null : U.fetchQuery({
-async function iK(e, t) {
- let n = tK(e.id), r = mi(e.id), i = W.getQueryData(ci) ? null : W.fetchQuery({
++async function jK(e, t) {
++ let n = OK(e.id), r = mi(e.id), i = U.getQueryData(ci) ? null : U.fetchQuery({
queryKey: ci,
queryFn: () => li(t)
}), a = r ? {
...r,
item: r.item
- } : U.getQueryData(n) ?? tLe(e.id);
- } : W.getQueryData(n) ?? sIe(e.id);
- a ? W.setQueryData(n, a) : await W.fetchQuery({
++ } : U.getQueryData(n) ?? ZIe(e.id);
+ a ? U.setQueryData(n, a) : await U.fetchQuery({
queryKey: n,
- queryFn: () => EK(e.id, t)
- queryFn: () => rK(e.id, t)
++ queryFn: () => AK(e.id, t)
}), await i;
}
- function nLe(e, t, n, r) {
-function cIe(e, t, n, r) {
++function QIe(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 && Si(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,
@@@ -75684,32 -74093,32 +75690,32 @@@
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
- var rLe = (e) => pi(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), iLe = {
-var lIe = (e) => pi(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), uIe = {
++var $Ie = (e) => pi(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), eLe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
- }, aLe = {
-}, dIe = {
++}, tLe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
- function oLe(e) {
-function fIe(e) {
++function nLe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return iLe[t] || t;
- return uIe[t] || t;
++ return eLe[t] || t;
} catch {
return "外部文件页";
}
}
- function OK(e, t) {
- return aLe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
-function aK(e, t) {
- return dIe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
++function MK(e, t) {
++ return tLe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
- function sLe(e, t, n = "") {
-function pIe(e, t, n = "") {
++function rLe(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;
@@@ -75718,54 -74127,54 +75724,54 @@@
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
- var cLe = (e) => String(e.name || "").trim(), kK = (e, t) => e.tag_types?.[t] || "unknown", lLe = /* @__PURE__ */ new Set([
-var mIe = (e) => String(e.name || "").trim(), oK = (e, t) => e.tag_types?.[t] || "unknown", hIe = /* @__PURE__ */ new Set([
++var iLe = (e) => String(e.name || "").trim(), NK = (e, t) => e.tag_types?.[t] || "unknown", aLe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
- function uLe(e, t) {
- let n = kK(e, t);
- return `r34-${lLe.has(n) ? n : "general"}`;
-function gIe(e, t) {
- let n = oK(e, t);
- return `r34-${hIe.has(n) ? n : "general"}`;
++function oLe(e, t) {
++ let n = NK(e, t);
++ return `r34-${aLe.has(n) ? n : "general"}`;
}
- var AK = [
-var sK = [
++var PK = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
- function dLe(e, t) {
-function _Ie(e, t) {
++function sLe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = AK.indexOf(kK(e, t));
- return n < 0 ? AK.length : n;
- let n = sK.indexOf(oK(e, t));
- return n < 0 ? sK.length : n;
++ let n = PK.indexOf(NK(e, t));
++ return n < 0 ? PK.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
- function jK(e, t) {
-function cK(e, t) {
++function FK(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 fLe = (e, t) => ({
-var vIe = (e, t) => ({
++var cLe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
- }), MK = (e) => e?.size ? { size: e.size } : {};
- function pLe(e, t) {
-}), lK = (e) => e?.size ? { size: e.size } : {};
-function yIe(e, t) {
++}), IK = (e) => e?.size ? { size: e.size } : {};
++function lLe(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}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: OK(t, e),
- ...MK(t)
- source: aK(t, e),
- ...lK(t)
++ source: MK(t, e),
++ ...IK(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: OK(a, e),
- ...MK(a)
- source: aK(a, e),
- ...lK(a)
++ source: MK(a, e),
++ ...IK(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@@ -75773,7 -74182,7 +75779,7 @@@
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
- var mLe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", NK = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => Jo(e, {
-var bIe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", uK = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => Jo(e, {
++var uLe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", LK = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => Jo(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@@ -75781,7 -74190,7 +75787,7 @@@
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
- }), hLe = [
-}), xIe = [
++}), dLe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@@ -75791,41 -74200,41 +75797,41 @@@
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
- ], gLe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
-], SIe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
++], fLe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${B(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${hLe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
- <div class="reviewtabs" data-section-items>${xIe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
++ <div class="reviewtabs" data-section-items>${dLe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${B(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>`, _Le = {
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, CIe = {
-- ...Object.fromEntries(Object.keys(HO).map((e) => [`/settings/${e}`, () => qo()])),
- "/data-cleanup": () => PB(),
- "/resource-sync": () => PB(),
- "/review": () => gLe(),
- "/data-cleanup": () => cB(),
- "/resource-sync": () => cB(),
- "/review": () => SIe(),
++ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, pLe = {
++ ...Object.fromEntries(Object.keys(WO).map((e) => [`/settings/${e}`, () => qo()])),
++ "/data-cleanup": () => LB(),
++ "/resource-sync": () => LB(),
++ "/review": () => fLe(),
"/diagnostics": () => qo(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${NK("正在读取采集来源", {
- ${uK("正在读取采集来源", {
++ ${LK("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
- function PK(e, { followLayout: t, followSort: n, followDir: r }) {
- return ZIe(e, {
-function dK(e, { followLayout: t, followSort: n, followDir: r }) {
- return rIe(e, {
++function RK(e, { followLayout: t, followSort: n, followDir: r }) {
++ return qIe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (_Le[e] ?? (() => NK("正在读取页面")))();
- }) || (CIe[e] ?? (() => uK("正在读取页面")))();
++ }) || (pLe[e] ?? (() => LK("正在读取页面")))();
}
- var FK = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
- function IK(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = FK(t);
-var fK = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function pK(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = fK(t);
++var zK = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
++function BK(e, t) {
++ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = zK(t);
(!r || r !== n) && (e.innerHTML = t, ns(e));
}
//#endregion
//#region src/react/components/related-section.tsx
- function LK({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, ...o }) {
-function mK({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, ...o }) {
++function VK({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, ...o }) {
let s = (0, S.useCallback)((e) => {
e && (ns(e), t(e));
}, [t]);
@@@ -75838,15 -74247,15 +75844,15 @@@
children: "接着看"
}), i ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, C.jsx)(vI, {
- children: /* @__PURE__ */ (0, C.jsx)(LF, {
++ children: /* @__PURE__ */ (0, C.jsx)(xI, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, C.jsx)(vA, {
- children: /* @__PURE__ */ (0, C.jsx)(_A, {
++ children: /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: zge,
- icon: Dge,
++ icon: Lge,
title: "暂无接着看的内容",
children: "可以回到列表挑选其他作品。"
})
@@@ -75860,7 -74269,7 +75866,7 @@@
}
//#endregion
//#region src/react/components/detail-continuation.tsx
- function RK({ queue: e, children: t, editionCards: n }) {
-function hK({ queue: e, children: t, editionCards: n }) {
++function HK({ queue: e, children: t, editionCards: n }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-detail-continuation": "",
"data-edition-cards": n == null ? void 0 : Math.min(3, n),
@@@ -75869,7 -74278,7 +75875,7 @@@
}
//#endregion
//#region src/react/components/media-carousel.tsx
- function zK({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
-function gK({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
++function UK({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, S.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, S.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
@@@ -75949,7 -74358,7 +75955,7 @@@
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, C.jsx)(vLe, {
- children: e.map((e, r) => /* @__PURE__ */ (0, C.jsx)(wIe, {
++ children: e.map((e, r) => /* @__PURE__ */ (0, C.jsx)(mLe, {
item: e,
selected: r === t,
onSelect: n,
@@@ -75968,7 -74377,7 +75974,7 @@@
]
});
}
- function vLe({ item: e, selected: t, onSelect: n, render: r }) {
-function wIe({ item: e, selected: t, onSelect: n, render: r }) {
++function mLe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, S.useRef)(null), [a, o] = (0, S.useState)(typeof IntersectionObserver > "u");
return (0, S.useEffect)(() => {
if (!i.current || a) return;
@@@ -75995,14 -74404,14 +76001,14 @@@
}
//#endregion
//#region src/react/follow-detail/follow-related.ts
- var yLe = (e, t, n) => [
-var TIe = (e, t, n) => [
++var hLe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
- function BK(e, t, n, r) {
-function _K(e, t, n, r) {
++function WK(e, t, n, r) {
let i = new Set((t.group ? pi(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
let t = pi(e);
@@@ -76017,7 -74426,7 +76023,7 @@@
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
- async function bLe(e, t, n, r) {
-async function EIe(e, t, n, r) {
++async function gLe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
...xi(i),
status: "new",
@@@ -76031,29 -74440,29 +76037,29 @@@
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return BK(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && BK(o, e, t, n).length < n && await s("", 0), {
- return _K(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && _K(o, e, t, n).length < n && await s("", 0), {
++ return WK(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && WK(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
//#endregion
//#region src/react/follow-detail/follow-detail-page.tsx
- var VK = (e) => Number(e) > 0, xLe = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var vK = (e) => Number(e) > 0, DIe = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var GK = (e) => Number(e) > 0, _Le = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z(e) }
- }), HK = z("external-link", "ui-externalmark");
- function SLe(e) {
-}), yK = z("external-link", "ui-externalmark");
-function OIe(e) {
- let { id: t, actions: n } = e, r = pt({
- queryKey: tK(t),
- queryFn: ({ signal: e }) => rK(t, e)
- }), i = pt({
++}), KK = z("external-link", "ui-externalmark");
++function vLe(e) {
+ let { id: t, actions: n } = e, r = ft({
- queryKey: wK(t),
- queryFn: ({ signal: e }) => EK(t, e)
++ queryKey: OK(t),
++ queryFn: ({ signal: e }) => AK(t, e)
+ }), i = ft({
queryKey: ci,
queryFn: ({ signal: e }) => li(e)
}), a = (0, S.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, S.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, C.jsx)(TLe, {
- return r.data ? /* @__PURE__ */ (0, C.jsx)(jIe, {
++ return r.data ? /* @__PURE__ */ (0, C.jsx)(xLe, {
...e,
data: r.data,
- context: fLe(r.data, a),
- context: vIe(r.data, a),
++ context: cLe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, C.jsx)("div", {
@@@ -76062,18 -74471,18 +76068,18 @@@
children: /* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, C.jsx)(UK, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
- children: [/* @__PURE__ */ (0, C.jsx)(bK, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
++ children: [/* @__PURE__ */ (0, C.jsx)(qK, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? CLe(r.error) ? /* @__PURE__ */ (0, C.jsx)(wLe, { onBack: n.close }) : /* @__PURE__ */ (0, C.jsx)(vI, {
- children: r.isError ? kIe(r.error) ? /* @__PURE__ */ (0, C.jsx)(AIe, { onBack: n.close }) : /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(r.error),
++ children: r.isError ? yLe(r.error) ? /* @__PURE__ */ (0, C.jsx)(bLe, { onBack: n.close }) : /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(r.error),
onRetry: () => void r.refetch()
}) : null
})]
})
});
}
- var CLe = (e) => e instanceof TK || e instanceof _n && e.status === 404;
- function wLe({ onBack: e }) {
-var kIe = (e) => e instanceof nK || e instanceof vn && e.status === 404;
-function AIe({ onBack: e }) {
++var yLe = (e) => e instanceof kK || e instanceof _n && e.status === 404;
++function bLe({ onBack: e }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@@ -76082,7 -74491,7 +76088,7 @@@
dangerouslySetInnerHTML: { __html: Mo("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
- var UK = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
-var bK = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
++var qK = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@@ -76091,8 -74500,8 +76097,8 @@@
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
- function TLe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = nLe(c, l, n, i), d = jLe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, S.useState)({
-function jIe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = cIe(c, l, n, i), d = LIe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, S.useState)({
++function xLe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
++ let { item: c, group: l } = e, u = QIe(c, l, n, i), d = DLe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, S.useState)({
key: "",
kind: ""
}), h = {
@@@ -76112,20 -74521,20 +76118,20 @@@
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? rLe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, C.jsx)(qK, {
- let g = !u.embedded.length && u.collection ? lIe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, C.jsx)(wK, {
++ let g = !u.embedded.length && u.collection ? $Ie(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, C.jsx)(ZK, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, C.jsx)(qK, {
- }) : u.collection ? g ? /* @__PURE__ */ (0, C.jsx)(wK, {
++ }) : u.collection ? g ? /* @__PURE__ */ (0, C.jsx)(ZK, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, C.jsx)(OLe, {
- }) : /* @__PURE__ */ (0, C.jsx)(PIe, {
++ }) : /* @__PURE__ */ (0, C.jsx)(wLe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@@ -76135,14 -74544,14 +76141,14 @@@
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, C.jsx)(DLe, {
- children: [/* @__PURE__ */ (0, C.jsx)(NIe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(CLe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, C.jsx)(kLe, {
- }, f), /* @__PURE__ */ (0, C.jsx)(FIe, {
++ }, f), /* @__PURE__ */ (0, C.jsx)(TLe, {
item: c,
data: e,
context: t,
@@@ -76152,9 -74561,9 +76158,9 @@@
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, C.jsx)(RK, {
- }), /* @__PURE__ */ (0, C.jsx)(hK, {
++ }), /* @__PURE__ */ (0, C.jsx)(HK, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, C.jsx)(ELe, {
- children: a > 0 ? /* @__PURE__ */ (0, C.jsx)(MIe, {
++ children: a > 0 ? /* @__PURE__ */ (0, C.jsx)(SLe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@@ -76164,23 -74573,23 +76170,23 @@@
}) : null
})] });
}
- function ELe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
-function MIe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
- let o = pt({
- queryKey: TIe(e.item.id, t, n),
- queryFn: ({ signal: r }) => EIe(e, t, n, r)
- }), [s] = (0, S.useState)(() => uK("正在读取推荐", {
++function SLe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+ let o = ft({
- queryKey: yLe(e.item.id, t, n),
- queryFn: ({ signal: r }) => bLe(e, t, n, r)
- }), [s] = (0, S.useState)(() => NK("正在读取推荐", {
++ queryKey: hLe(e.item.id, t, n),
++ queryFn: ({ signal: r }) => gLe(e, t, n, r)
++ }), [s] = (0, S.useState)(() => LK("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, S.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: () => !1
- }), [a]), l = BK(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
- }), [a]), l = _K(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
++ }), [a]), l = WK(o.data?.pages || [], e, t, n), u = o.data?.pages.at(-1)?.sources || e.sources, d = {
...r,
sources: u,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
};
- return /* @__PURE__ */ (0, C.jsx)(LK, {
- return /* @__PURE__ */ (0, C.jsx)(mK, {
++ return /* @__PURE__ */ (0, C.jsx)(VK, {
"data-follow-related": "",
wireDrag: i.wireDrag,
busy: o.isPending,
@@@ -76189,11 -74598,11 +76195,11 @@@
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, C.jsx)(aH, {
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, C.jsx)(FV, {
++ children: o.data ? l.map((e) => /* @__PURE__ */ (0, C.jsx)(lH, {
variant: "next",
group: e,
media: t,
- authorSources: jK(e.primary, u),
- authorSources: cK(e.primary, u),
++ authorSources: FK(e.primary, u),
context: d,
selected: !1,
selectMode: !1,
@@@ -76206,8 -74615,8 +76212,8 @@@
})
});
}
- function DLe({ 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, S.useRef)(null), p = pLe(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, S.useState)(g), b = (0, S.useRef)({
-function NIe({ 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, S.useRef)(null), p = yIe(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, S.useState)(g), b = (0, S.useRef)({
++function CLe({ 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, S.useRef)(null), p = lLe(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, S.useState)(g), b = (0, S.useRef)({
item: e,
selected: o
}), x = (0, S.useRef)(i.failed);
@@@ -76221,14 -74630,14 +76227,14 @@@
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, C.jsx)(UK, { onClose: n.close }),
- /* @__PURE__ */ (0, C.jsx)(bK, { onClose: n.close }),
++ /* @__PURE__ */ (0, C.jsx)(qK, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, C.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void XV(Math.max(0, l), p) : void 0,
- onClick: p.length ? () => void EV(Math.max(0, l), p) : void 0,
++ onClick: p.length ? () => void eH(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@@ -76236,10 -74645,10 +76242,10 @@@
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: qF(e.resource_provider || e.provider) }
- dangerouslySetInnerHTML: { __html: fF(e.resource_provider || e.provider) }
++ dangerouslySetInnerHTML: { __html: XF(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, C.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, C.jsx)(zK, {
- u ? /* @__PURE__ */ (0, C.jsx)(gK, {
++ u ? /* @__PURE__ */ (0, C.jsx)(UK, {
items: c,
position: l,
onSelect: r,
@@@ -76256,11 -74665,11 +76262,11 @@@
]
});
}
- var WK = ({ kind: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var xK = ({ kind: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var JK = ({ kind: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: z(e === "image" ? "image-off" : "play") }
});
- function GK({ src: e }) {
-function SK({ src: e }) {
++function YK({ src: e }) {
let [t, n] = (0, S.useState)(!1);
return t ? null : /* @__PURE__ */ (0, C.jsx)("img", {
src: e,
@@@ -76270,30 -74679,30 +76276,30 @@@
onError: () => n(!0)
});
}
- function KK(e) {
-function CK(e) {
++function XK(e) {
return (0, S.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
- function OLe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = Si(e), a = KK(n);
- return /* @__PURE__ */ (0, C.jsx)(ZI, {
-function PIe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = Si(e), a = CK(n);
- return /* @__PURE__ */ (0, C.jsx)(gI, {
++function wLe({ group: e, itemId: t, helpers: n, actions: r }) {
++ let i = Si(e), a = XK(n);
++ return /* @__PURE__ */ (0, C.jsx)(eL, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${YF(e.primary)} · ${i.length} 个视频`,
- summary: `${mF(e.primary)} · ${i.length} 个视频`,
++ summary: `${QF(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = sLe(e, n, i ? n.provider_label : ""), o = i ? qF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, C.jsxs)(QI, {
- let i = e.duplicates.includes(n), a = pIe(e, n, i ? n.provider_label : ""), o = i ? fF(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, C.jsxs)(_I, {
++ let i = e.duplicates.includes(n), a = rLe(e, n, i ? n.provider_label : ""), o = i ? XF(n.provider, n.provider_label) : "";
++ return /* @__PURE__ */ (0, C.jsxs)(tL, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(GK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(WK, { kind: "video" }), VK(n.duration) ? /* @__PURE__ */ (0, C.jsx)("i", {
- pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(SK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(xK, { kind: "video" }), vK(n.duration) ? /* @__PURE__ */ (0, C.jsx)("i", {
++ pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(YK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(JK, { kind: "video" }), GK(n.duration) ? /* @__PURE__ */ (0, C.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
- children: an(n.duration)
+ children: rn(n.duration)
}) : null] }),
children: [/* @__PURE__ */ (0, C.jsx)("b", {
"data-truncate-end": "",
@@@ -76308,15 -74717,15 +76314,15 @@@
children: a.label
}), /* @__PURE__ */ (0, C.jsx)("time", {
dateTime: n.published_at || "",
- children: iI(n)
- children: CF(n)
++ children: sI(n)
})]
})]
}, n.id);
})
});
}
- function qK({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = KK(r), c = [];
-function wK({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = CK(r), c = [];
++function ZK({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
++ let o = e.media_items || [], s = XK(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@@ -76326,26 -74735,26 +76332,26 @@@
}, 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, C.jsx)(ZI, {
- return /* @__PURE__ */ (0, C.jsx)(gI, {
++ return /* @__PURE__ */ (0, C.jsx)(eL, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${YF(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, C.jsx)(TCe, {
- summary: `${mF(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, C.jsx)(SSe, {
++ summary: `${QF(e)} · ${o.length} 个媒体`,
++ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, C.jsx)(SCe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, C.jsxs)(QI, {
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, C.jsxs)(_I, {
++ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, C.jsxs)(tL, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(GK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(WK, { kind: n.media_kind || "" }),
- pic: n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(SK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(xK, { kind: n.media_kind || "" }),
++ pic: n.thumb_url ? /* @__PURE__ */ (0, C.jsx)(YK, { src: n.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(JK, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, C.jsx)("b", {
"data-middle-truncate": "",
- children: cLe(n)
- children: mIe(n)
++ children: iLe(n)
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@@ -76353,13 -74762,13 +76359,13 @@@
}, n.index))])
});
}
- function kLe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
-function FIe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
++function TLe({ 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 = tI(d, e), p = $F(e, jK(e, t.sources), n), m = p.credited ? "" : e.author && Qt(e.author) !== Qt(p.author) ? e.author : "", h = nI(e, n), g = dLe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
- }, f = bF(d, e), p = vF(e, cK(e, t.sources), n), m = p.credited ? "" : e.author && $t(e.author) !== $t(p.author) ? e.author : "", h = xF(e, n), g = _Ie(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
++ }, f = iI(d, e), p = nI(e, FK(e, t.sources), n), m = p.credited ? "" : e.author && Qt(e.author) !== Qt(p.author) ? e.author : "", h = aI(e, n), g = sLe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@@ -76375,7 -74784,7 +76381,7 @@@
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: eI(d, e) + B(YF(e)) }
- dangerouslySetInnerHTML: { __html: yF(d, e) + B(mF(e)) }
++ dangerouslySetInnerHTML: { __html: rI(d, e) + B(QF(e)) }
}), e.url ? /* @__PURE__ */ (0, C.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@@ -76383,7 -74792,7 +76389,7 @@@
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: HK }
- dangerouslySetInnerHTML: { __html: yK }
++ dangerouslySetInnerHTML: { __html: KK }
}) : null]
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -76391,8 -74800,8 +76397,8 @@@
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, C.jsx)("span", { children: iI(e) }),
- VK(e.duration) ? /* @__PURE__ */ (0, C.jsx)("span", { children: rn(e.duration) }) : null,
- /* @__PURE__ */ (0, C.jsx)("span", { children: CF(e) }),
- vK(e.duration) ? /* @__PURE__ */ (0, C.jsx)("span", { children: an(e.duration) }) : null,
++ /* @__PURE__ */ (0, C.jsx)("span", { children: sI(e) }),
++ GK(e.duration) ? /* @__PURE__ */ (0, C.jsx)("span", { children: rn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@@ -76409,7 -74818,7 +76415,7 @@@
children: "创作者"
}), /* @__PURE__ */ (0, C.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, C.jsxs)(rH, {
- children: p.entityName ? /* @__PURE__ */ (0, C.jsxs)(NV, {
++ children: p.entityName ? /* @__PURE__ */ (0, C.jsxs)(sH, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@@ -76441,7 -74850,7 +76447,7 @@@
children: [m ? /* @__PURE__ */ (0, C.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, C.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, C.jsx)(ALe, { text: e.summary }, e.id) : null,
- e.summary ? /* @__PURE__ */ (0, C.jsx)(IIe, { text: e.summary }, e.id) : null,
++ e.summary ? /* @__PURE__ */ (0, C.jsx)(ELe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, C.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@@ -76464,9 -74873,9 +76470,9 @@@
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [oLe(e), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [fIe(e), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [nLe(e), /* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: HK }
- dangerouslySetInnerHTML: { __html: yK }
++ dangerouslySetInnerHTML: { __html: KK }
})]
}, e))
}) : null,
@@@ -76566,7 -74975,7 +76572,7 @@@
"aria-label": `恢复显示 ${e.name || ""}`,
...y(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, C.jsx)(GK, { src: e.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(xLe, { name: "image-off" }), /* @__PURE__ */ (0, C.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
- children: [e.thumb_url ? /* @__PURE__ */ (0, C.jsx)(SK, { src: e.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(DIe, { name: "image-off" }), /* @__PURE__ */ (0, C.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
++ children: [e.thumb_url ? /* @__PURE__ */ (0, C.jsx)(YK, { src: e.thumb_url }) : /* @__PURE__ */ (0, C.jsx)(_Le, { name: "image-off" }), /* @__PURE__ */ (0, C.jsx)("i", { dangerouslySetInnerHTML: { __html: z("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@@ -76580,7 -74989,7 +76586,7 @@@
"data-follow-detail-tags": "",
children: g.map((t) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
- "data-tag-cat": uLe(e, t),
- "data-tag-cat": gIe(e, t),
++ "data-tag-cat": oLe(e, t),
"data-follow-tag": t,
onClick: () => s.openTag(t),
children: o.tagLabel(t)
@@@ -76590,7 -74999,7 +76596,7 @@@
})
});
}
- function ALe({ text: e }) {
-function IIe({ text: e }) {
++function ELe({ text: e }) {
let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(!1), [i, a] = (0, S.useState)(!1);
return (0, S.useLayoutEffect)(() => {
let e = t.current;
@@@ -76613,8 -75022,8 +76619,8 @@@
children: n ? "收起" : "展开"
}) : null] });
}
- function jLe(e, t, n) {
- let r = e.id, i = wK(r), [a, o] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (e, t) => o((n) => {
-function LIe(e, t, n) {
- let r = e.id, i = tK(r), [a, o] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (e, t) => o((n) => {
++function DLe(e, t, n) {
++ let r = e.id, i = OK(r), [a, o] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), u = (e) => {
@@@ -76633,8 -75042,8 +76639,8 @@@
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && nW(), t.toast(mLe(n), { undo: i === "saved" ? void 0 : async () => {
- u(n), c(""), n === "ignored" && MU(), t.toast(bIe(n), { undo: i === "saved" ? void 0 : async () => {
- await U(Hn, {
++ u(n), c(""), n === "ignored" && oW(), t.toast(uLe(n), { undo: i === "saved" ? void 0 : async () => {
+ await H(Hn, {
item: r,
to: i
}), u(i);
@@@ -76642,16 -75051,16 +76648,16 @@@
},
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
- }), p = mt({
- mutationFn: () => U(aIe, { item: r }),
+ }), p = pt({
- mutationFn: () => H($Ie, { item: r }),
++ mutationFn: () => H(YIe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到账本");
},
onError: d,
onSettled: () => l("save", !1)
- }), m = mt({
+ }), m = pt({
mutationFn: async ({ index: e, hidden: t }) => {
- await H(eLe, {
- await U(oIe, {
++ await H(XIe, {
item: r,
media: e,
hidden: t
@@@ -76666,13 -75075,13 +76672,13 @@@
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
- }), h = pt({
- queryKey: Gje(r),
- queryFn: ({ signal: e }) => Jje(r, e)
- }).data?.want ?? null, g = mt({
- mutationFn: async (e) => (e ? await jU([e.id]) : await AU({ follow: r }), !e),
+ }), h = ft({
- queryKey: HMe(r),
- queryFn: ({ signal: e }) => GMe(r, e)
++ queryKey: RMe(r),
++ queryFn: ({ signal: e }) => VMe(r, e)
+ }).data?.want ?? null, g = pt({
- mutationFn: async (e) => (e ? await tW([e.id]) : await eW({ follow: r }), !e),
++ mutationFn: async (e) => (e ? await aW([e.id]) : await iW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), nW();
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), MU();
++ c(""), t.toast(e ? "已加入想要" : "已取消想要"), oW();
},
onError: d,
onSettled: () => l("want", !1)
@@@ -76712,10 -75121,10 +76718,10 @@@
}
//#endregion
//#region src/react/components/identity-cell.tsx
- function JK({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
-function TK({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
++function QK({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
let o = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-id-face": "",
- dangerouslySetInnerHTML: { __html: `<span>${B(dn(t.name))}</span>` + _a({
+ dangerouslySetInnerHTML: { __html: `<span>${B(un(t.name))}</span>` + _a({
kind: e,
id: t.id,
hasImage: t.has_image,
@@@ -76755,7 -75164,7 +76761,7 @@@
children: s
});
}
- function YK({ people: e, onOpen: t }) {
-function EK({ people: e, onOpen: t }) {
++function $K({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
@@@ -76789,7 -75198,7 +76795,7 @@@
}
//#endregion
//#region src/react/components/folded-title.ts
- function XK(e) {
-function DK(e) {
++function eq(e) {
let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(!1), [i, a] = (0, S.useState)(!1);
return (0, S.useLayoutEffect)(() => {
let e = t.current;
@@@ -76807,8 -75216,8 +76813,8 @@@
}
//#endregion
//#region src/react/components/source-picture.tsx
- function ZK({ item: e, image: t, thumbnail: n = !1 }) {
-function OK({ item: e, image: t, thumbnail: n = !1 }) {
- let r = t === "cover" && e.has_cover, i = !r && (t !== "cover" || e.source_image), a = pt({
++function tq({ item: e, image: t, thumbnail: n = !1 }) {
+ let r = t === "cover" && e.has_cover, i = !r && (t !== "cover" || e.source_image), a = ft({
queryKey: [
"jav-image",
e.code,
@@@ -76850,9 -75259,9 +76856,9 @@@
}
//#endregion
//#region src/react/item-detail/catalog-picture.tsx
- function QK({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
-function kK({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
++function nq({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, C.jsx)(ZK, {
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, C.jsx)(OK, {
++ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, C.jsx)(tq, {
item: {
code: e.code,
has_cover: !1,
@@@ -76885,47 -75294,47 +76891,47 @@@
}
//#endregion
//#region src/react/jav-detail/jav-detail.ts
- var $K = (e) => ["jav-detail", e], eq = (e, t, n = !1) => yn(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), MLe = (e, t, n, r = !1) => yn(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), tq = (e, t) => U.ensureQueryData({
- queryKey: $K(e.code),
- queryFn: () => eq(e.code, t),
-var AK = (e) => ["jav-detail", e], jK = (e, t, n = !1) => H(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), RIe = (e, t, n, r = !1) => H(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), MK = (e, t) => W.ensureQueryData({
- queryKey: AK(e.code),
- queryFn: () => jK(e.code, t),
++var rq = (e) => ["jav-detail", e], iq = (e, t, n = !1) => yn(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), OLe = (e, t, n, r = !1) => yn(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), aq = (e, t) => U.ensureQueryData({
++ queryKey: rq(e.code),
++ queryFn: () => iq(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
- function NLe(e, t) {
-function zIe(e, t) {
++function kLe(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;
}
//#endregion
//#region src/react/item-detail/external-playback.tsx
- var nq = "peach.external-player.v1", rq = [
-var NK = "peach.external-player.v1", PK = [
++var oq = "peach.external-player.v1", sq = [
["m3u", "M3U 播放列表"],
["vlc-ios", "VLC(iPhone / iPad)"],
["iina", "IINA(Mac)"]
];
- function PLe(e, t, n) {
-function BIe(e, t, n) {
++function ALe(e, t, n) {
return e === "vlc-ios" ? `vlc-x-callback://x-callback-url/stream?url=${encodeURIComponent(t)}` : e === "iina" ? `iina://weblink?url=${encodeURIComponent(t)}` : n;
}
- function iq({ id: e }) {
-function FK({ id: e }) {
++function cq({ id: e }) {
let [t, n] = (0, S.useState)(() => {
try {
- return rq.find(([e]) => e === localStorage.getItem(nq))?.[0] || "m3u";
- return PK.find(([e]) => e === localStorage.getItem(NK))?.[0] || "m3u";
++ return sq.find(([e]) => e === localStorage.getItem(oq))?.[0] || "m3u";
} catch {
return "m3u";
}
- }), [r, i] = (0, S.useState)(null), a = CA();
- return /* @__PURE__ */ (0, C.jsxs)("details", { children: [/* @__PURE__ */ (0, C.jsx)("summary", { children: "外部播放器 / VR" }), /* @__PURE__ */ (0, C.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, C.jsx)(YW, {
- }), [r, i] = (0, S.useState)(null), a = SA();
- return /* @__PURE__ */ (0, C.jsxs)("details", { children: [/* @__PURE__ */ (0, C.jsx)("summary", { children: "外部播放器 / VR" }), /* @__PURE__ */ (0, C.jsxs)(AA, { children: [
- /* @__PURE__ */ (0, C.jsx)(EW, {
++ }), [r, i] = (0, S.useState)(null), a = TA();
++ return /* @__PURE__ */ (0, C.jsxs)("details", { children: [/* @__PURE__ */ (0, C.jsx)("summary", { children: "外部播放器 / VR" }), /* @__PURE__ */ (0, C.jsxs)(NA, { children: [
++ /* @__PURE__ */ (0, C.jsx)($W, {
id: `external-player-${e}`,
label: "此设备的外部播放器",
- options: rq,
- options: PK,
++ options: sq,
value: t,
epoch: 0,
onPick: (e) => {
- let t = rq.find(([t]) => t === e)?.[0] || "m3u";
- let t = PK.find(([t]) => t === e)?.[0] || "m3u";
++ let t = sq.find(([t]) => t === e)?.[0] || "m3u";
n(t);
try {
- localStorage.setItem(nq, t);
- localStorage.setItem(NK, t);
++ localStorage.setItem(oq, t);
} catch {}
}
}),
@@@ -76938,43 -75347,43 +76944,43 @@@
})),
children: "生成播放链接"
}),
- a.error ? /* @__PURE__ */ (0, C.jsx)(PA, { children: a.error }) : null,
- a.error ? /* @__PURE__ */ (0, C.jsx)(NA, { children: a.error }) : null,
++ a.error ? /* @__PURE__ */ (0, C.jsx)(IA, { children: a.error }) : null,
r ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsx)("a", {
- href: PLe(t, r.url, r.playlist),
- href: BIe(t, r.url, r.playlist),
++ href: ALe(t, r.url, r.playlist),
rel: "noreferrer",
- children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${rq.find(([e]) => e === t)?.[1]}`
- children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${PK.find(([e]) => e === t)?.[1]}`
++ children: t === "m3u" ? "下载 M3U 播放列表" : `打开 ${sq.find(([e]) => e === t)?.[1]}`
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "网络播放地址",
value: r.url,
isReadOnly: !0
}),
- /* @__PURE__ */ (0, C.jsx)(NA, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
- /* @__PURE__ */ (0, C.jsx)(MA, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
++ /* @__PURE__ */ (0, C.jsx)(FA, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })
] }) : null
] })] }, e);
}
//#endregion
//#region src/react/components/overlay-host.ts
- function FLe(e) {
-function VIe(e) {
++function jLe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
- function ILe(e) {
-function HIe(e) {
++function MLe(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return FLe(n ?? t.body);
- return VIe(n ?? t.body);
++ return jLe(n ?? t.body);
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
- var LLe = "/api/cover-crop", RLe = (e, t) => H(LLe, {
-var UIe = "/api/cover-crop", WIe = (e, t) => U(UIe, {
++var NLe = "/api/cover-crop", PLe = (e, t) => H(NLe, {
code: e,
box: t
});
//#endregion
//#region src/react/cover-crop/cover-crop-page.tsx
- function aq({ className: e }) {
-function IK({ className: e }) {
++function lq({ className: e }) {
return /* @__PURE__ */ (0, C.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@@ -76987,7 -75396,7 +76993,7 @@@
children: /* @__PURE__ */ (0, C.jsx)("use", { href: "#i-crop" })
});
}
- function zLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
-function GIe({ code: e, coverUrl: t, box: n, onSaved: r }) {
++function FLe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, S.useState)(!1), o = (0, S.useRef)(null);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)("button", {
ref: o,
@@@ -76998,15 -75407,15 +77004,15 @@@
title: "裁剪封面:框出正封那一块",
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, C.jsx)(aq, { className: "size-3.75" })
- children: /* @__PURE__ */ (0, C.jsx)(IK, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, C.jsx)(kS, {
- getContainer: () => HIe(o.current),
- children: /* @__PURE__ */ (0, C.jsx)(hP, {
++ children: /* @__PURE__ */ (0, C.jsx)(lq, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, C.jsx)(PS, {
- getContainer: () => ILe(o.current),
- children: /* @__PURE__ */ (0, C.jsx)(xP, {
++ getContainer: () => MLe(o.current),
++ children: /* @__PURE__ */ (0, C.jsx)(wP, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, C.jsx)(BLe, {
- children: /* @__PURE__ */ (0, C.jsx)(KIe, {
++ children: /* @__PURE__ */ (0, C.jsx)(ILe, {
code: e,
coverUrl: t,
box: n,
@@@ -77016,9 -75425,9 +77022,9 @@@
})
})] });
}
- function BLe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(!0), d = YP(), f = pt({
- mutationFn: (t) => RLe(e, t),
-function KIe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(!0), d = UP(), f = mt({
- mutationFn: (t) => WIe(e, t),
++function ILe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
++ let [a, o] = (0, S.useState)(null), [s, c] = (0, S.useState)(null), [l, u] = (0, S.useState)(!0), d = QP(), f = pt({
++ mutationFn: (t) => PLe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@@ -77030,19 -75439,19 +77036,19 @@@
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : Jke(e, oa);
- c(hH(t, e, null));
- } : ZOe(e, oa);
- c(GV(t, e, null));
++ } : Wke(e, oa);
++ c(yH(t, e, null));
}
let m = f.isPending;
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, C.jsx)(SP, { children: /* @__PURE__ */ (0, C.jsx)(aq, { className: "size-6" }) }),
- /* @__PURE__ */ (0, C.jsx)(gP, { children: /* @__PURE__ */ (0, C.jsx)(IK, { className: "size-6" }) }),
++ /* @__PURE__ */ (0, C.jsx)(TP, { children: /* @__PURE__ */ (0, C.jsx)(lq, { className: "size-6" }) }),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(Hj, {
- /* @__PURE__ */ (0, C.jsx)(Vj, {
++ /* @__PURE__ */ (0, C.jsx)(Gj, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@@ -77057,8 -75466,8 +77063,8 @@@
}) : null
]
}),
-- /* @__PURE__ */ (0, C.jsx)(dj, {
- icon: Mk,
- icon: jk,
++ /* @__PURE__ */ (0, C.jsx)(mj, {
++ icon: Pk,
size: "small",
"aria-label": "关闭",
onClick: i
@@@ -77068,24 -75477,24 +77074,24 @@@
/* @__PURE__ */ (0, C.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, C.jsx)(bH, {
- children: /* @__PURE__ */ (0, C.jsx)(XV, {
++ children: /* @__PURE__ */ (0, C.jsx)(wH, {
src: t,
aspect: l ? oa : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- pH(e) && p(e);
- UV(e) && p(e);
++ _H(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, C.jsx)(mU, {
- children: [/* @__PURE__ */ (0, C.jsx)(WH, {
++ children: [/* @__PURE__ */ (0, C.jsx)(vU, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(hH(s, a, oa));
- u(e), e && s && a && c(GV(s, a, oa));
++ u(e), e && s && a && c(yH(s, a, oa));
},
children: /* @__PURE__ */ (0, C.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@@ -77114,21 -75523,21 +77120,21 @@@
}
//#endregion
//#region src/react/item-detail/item-detail-page.tsx
- var oq = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var LK = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var uq = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: z(e) }
- }), sq = ({ html: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-}), RK = ({ html: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++}), dq = ({ html: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
- }), cq = (e) => Number(e) > 0 ? on(Number(e)) : "大小未知";
- function VLe(e) {
-}), zK = (e) => Number(e) > 0 ? sn(Number(e)) : "大小未知";
-function qIe(e) {
- let { queue: t, actions: n } = e, r = pt({
- queryKey: t ? CD(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => OD(t, e.helpers, n),
++}), fq = (e) => Number(e) > 0 ? on(Number(e)) : "大小未知";
++function LLe(e) {
+ let { queue: t, actions: n } = e, r = ft({
- queryKey: t ? CD(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => OD(t, e.helpers, n),
++ queryKey: t ? TD(t) : ["item-queue", "none"],
++ queryFn: ({ signal: n }) => AD(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? kD(i, e.id) : t ? null : e.id, o = ft({
- }), i = t && r.data || null, a = i ? kD(i, e.id) : t ? null : e.id, o = pt({
-- queryKey: SD(a ?? 0),
-- queryFn: ({ signal: e }) => DD(a, e),
++ }), i = t && r.data || null, a = i ? jD(i, e.id) : t ? null : e.id, o = ft({
++ queryKey: wD(a ?? 0),
++ queryFn: ({ signal: e }) => kD(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@@ -77139,10 -75548,10 +77145,10 @@@
children: /* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, C.jsx)(lq, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
- children: [/* @__PURE__ */ (0, C.jsx)(BK, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
++ children: [/* @__PURE__ */ (0, C.jsx)(pq, { onClose: n.close }), /* @__PURE__ */ (0, C.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, C.jsx)(vI, {
- children: e ? /* @__PURE__ */ (0, C.jsx)(LF, {
- message: Ft(e),
++ children: e ? /* @__PURE__ */ (0, C.jsx)(xI, {
+ message: Pt(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
}
@@@ -77151,13 -75560,13 +77157,13 @@@
})
});
}
- return /* @__PURE__ */ (0, C.jsx)(HLe, {
- return /* @__PURE__ */ (0, C.jsx)(JIe, {
++ return /* @__PURE__ */ (0, C.jsx)(RLe, {
...e,
- item: yfe(o.data, i),
- item: ofe(o.data, i),
++ item: _fe(o.data, i),
queue: i
}, o.data.id);
}
- var lq = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
-var BK = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
++var pq = ({ onClose: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@@ -77166,23 -75575,23 +77172,23 @@@
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
- function HLe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = iRe(t, r, i.tagLabel), o = (0, S.useRef)(t);
-function JIe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = uLe(t, r, i.tagLabel), o = (0, S.useRef)(t);
++function RLe(e) {
++ let { item: t, queue: n, actions: r, helpers: i } = e, a = eRe(t, r, i.tagLabel), o = (0, S.useRef)(t);
(0, S.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, S.useEffect)(() => {
- n?.kind === "playlist" && H(wD, {
- n?.kind === "playlist" && U(wD, {
++ n?.kind === "playlist" && H(ED, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = zfe(t, i.sourceOffline(t.location || "")), c = bfe(n, t.id);
- let s = Efe(t, i.sourceOffline(t.location || "")), c = sfe(n, t.id);
++ let s = Lfe(t, i.sourceOffline(t.location || "")), c = vfe(n, t.id);
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, C.jsx)(ULe, {
- children: [/* @__PURE__ */ (0, C.jsx)(YIe, {
++ children: [/* @__PURE__ */ (0, C.jsx)(zLe, {
item: t,
gate: s,
helpers: i,
@@@ -77195,22 -75604,22 +77201,22 @@@
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, C.jsx)(JLe, {
- }), /* @__PURE__ */ (0, C.jsx)(eLe, {
++ }), /* @__PURE__ */ (0, C.jsx)(WLe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, C.jsx)(RK, {
- }), /* @__PURE__ */ (0, C.jsx)(hK, {
++ }), /* @__PURE__ */ (0, C.jsx)(HK, {
editionCards: n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, C.jsx)(GLe, {
- queue: n ? /* @__PURE__ */ (0, C.jsx)(ZIe, {
++ queue: n ? /* @__PURE__ */ (0, C.jsx)(VLe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, C.jsx)(rRe, {
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, C.jsx)(lLe, {
++ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, C.jsx)($Le, {
...e,
item: n ? {
...t,
@@@ -77219,12 -75628,12 +77225,12 @@@
}) : null
})] });
}
- function ULe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
-function YIe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
- let [o, s] = (0, S.useState)(t ? "" : "auto"), c = (0, S.useRef)(null), [l, u] = (0, S.useState)(-2), d = (0, S.useRef)(!1), f = pt({
- queryKey: AK(e.code || ""),
++function zLe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+ let [o, s] = (0, S.useState)(t ? "" : "auto"), c = (0, S.useRef)(null), [l, u] = (0, S.useState)(-2), d = (0, S.useRef)(!1), f = ft({
- queryKey: $K(e.code || ""),
++ queryKey: rq(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, eq(e.code, t, n);
- return d.current = !1, jK(e.code, t, n);
++ return d.current = !1, iq(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@@ -77269,26 -75678,26 +77275,26 @@@
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, C.jsx)(lq, { onClose: r.close }),
- /* @__PURE__ */ (0, C.jsx)(BK, { onClose: r.close }),
++ /* @__PURE__ */ (0, C.jsx)(pq, { onClose: r.close }),
h ? /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
/* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}),
- l === -2 ? null : /* @__PURE__ */ (0, C.jsx)(QK, {
- l === -2 ? null : /* @__PURE__ */ (0, C.jsx)(kK, {
++ l === -2 ? null : /* @__PURE__ */ (0, C.jsx)(nq, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
}, l),
- /* @__PURE__ */ (0, C.jsx)(zK, {
- /* @__PURE__ */ (0, C.jsx)(gK, {
++ /* @__PURE__ */ (0, C.jsx)(UK, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, C.jsx)(QK, {
- renderThumbnail: (t) => /* @__PURE__ */ (0, C.jsx)(kK, {
++ renderThumbnail: (t) => /* @__PURE__ */ (0, C.jsx)(nq, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@@ -77313,7 -75722,7 +77319,7 @@@
children: "重试样图"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, C.jsx)(WLe, {
- t === "offline" ? /* @__PURE__ */ (0, C.jsx)(XIe, {
++ t === "offline" ? /* @__PURE__ */ (0, C.jsx)(BLe, {
item: e,
badge: y,
helpers: n,
@@@ -77324,14 -75733,14 +77330,14 @@@
children: [
/* @__PURE__ */ (0, C.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, C.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, C.jsx)(iq, { id: e.id })
- /* @__PURE__ */ (0, C.jsx)(FK, { id: e.id })
++ /* @__PURE__ */ (0, C.jsx)(cq, { id: e.id })
]
}) : t === "online" ? /* @__PURE__ */ (0, C.jsxs)("div", {
id: "onlineGate",
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, C.jsx)(sq, { html: y }),
- /* @__PURE__ */ (0, C.jsx)(RK, { html: y }),
++ /* @__PURE__ */ (0, C.jsx)(dq, { html: y }),
/* @__PURE__ */ (0, C.jsx)("b", { children: "在线资产" }),
/* @__PURE__ */ (0, C.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -77346,12 -75755,12 +77352,12 @@@
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, C.jsx)(sq, { html: y }), /* @__PURE__ */ (0, C.jsxs)("span", { children: ["点此开始拉流 · ", cq(e.size)] })]
- children: [/* @__PURE__ */ (0, C.jsx)(RK, { html: y }), /* @__PURE__ */ (0, C.jsxs)("span", { children: ["点此开始拉流 · ", zK(e.size)] })]
++ children: [/* @__PURE__ */ (0, C.jsx)(dq, { html: y }), /* @__PURE__ */ (0, C.jsxs)("span", { children: ["点此开始拉流 · ", fq(e.size)] })]
}) : null
]
});
}
- function WLe({ item: e, badge: t, helpers: n, actions: r }) {
-function XIe({ item: e, badge: t, helpers: n, actions: r }) {
++function BLe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, S.useState)(!1), [o, s] = (0, S.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@@ -77362,7 -75771,7 +77368,7 @@@
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, C.jsx)(sq, { html: t }),
- /* @__PURE__ */ (0, C.jsx)(RK, { html: t }),
++ /* @__PURE__ */ (0, C.jsx)(dq, { html: t }),
/* @__PURE__ */ (0, C.jsx)("b", { children: "脱盘模式" }),
/* @__PURE__ */ (0, C.jsx)("span", { children: n.offlineReason(e.location || "") }),
/* @__PURE__ */ (0, C.jsx)("button", {
@@@ -77376,8 -75785,8 +77382,8 @@@
]
});
}
- function GLe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Ffe(e), a = (0, S.useRef)(null), o = qLe(e, t, r), s = (0, S.useRef)(o);
-function ZIe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Sfe(e), a = (0, S.useRef)(null), o = $Ie(e, t, r), s = (0, S.useRef)(o);
++function VLe({ queue: e, itemId: t, helpers: n, actions: r }) {
++ let i = Nfe(e), a = (0, S.useRef)(null), o = ULe(e, t, r), s = (0, S.useRef)(o);
s.current = o;
let c = (0, S.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@@ -77385,7 -75794,7 +77391,7 @@@
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = KLe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)("button", {
- }, [n, e.kind]), l = QIe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)("button", {
++ }, [n, e.kind]), l = HLe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@@ -77404,7 -75813,7 +77410,7 @@@
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, C.jsx)(ZI, {
- return /* @__PURE__ */ (0, C.jsx)(gI, {
++ return /* @__PURE__ */ (0, C.jsx)(eL, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@@ -77413,11 -75822,11 +77419,11 @@@
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, C.jsx)("i", {
- className: `javedition ${Nfe[i.edition_label] || "censored"}`,
- className: `javedition ${bfe[i.edition_label] || "censored"}`,
++ className: `javedition ${jfe[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && vfe(i);
- return /* @__PURE__ */ (0, C.jsxs)(QI, {
- }) : null, s = e.kind === "playlist" && afe(i);
- return /* @__PURE__ */ (0, C.jsxs)(_I, {
++ }) : null, s = e.kind === "playlist" && gfe(i);
++ return /* @__PURE__ */ (0, C.jsxs)(tL, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@@ -77427,25 -75836,25 +77433,25 @@@
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(sq, { html: Oa(i, n.javImage()) }), /* @__PURE__ */ (0, C.jsx)("i", {
- pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(RK, { html: Oa(i, n.javImage()) }), /* @__PURE__ */ (0, C.jsx)("i", {
++ pic: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(dq, { html: Oa(i, n.javImage()) }), /* @__PURE__ */ (0, C.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
- children: an(i.duration)
+ children: rn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, C.jsx)(sq, { html: ja(i) }),
- lead: /* @__PURE__ */ (0, C.jsx)(RK, { html: ja(i) }),
++ lead: /* @__PURE__ */ (0, C.jsx)(dq, { html: ja(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, C.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "grip-vertical" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "grip-vertical" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "x" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "x" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, C.jsxs)("span", {
@@@ -77456,14 -75865,14 +77462,14 @@@
})]
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-truncate-end": "",
-- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? MD(i.part_label) : Ma(i, n.tagLabel)
++ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? PD(i.part_label) : Ma(i, n.tagLabel)
})]
}, i.id);
})
});
}
- function KLe(e, t) {
- let n = pt({ mutationFn: (t) => H(wD, {
-function QIe(e, t) {
- let n = mt({ mutationFn: (t) => U(wD, {
++function HLe(e, t) {
++ let n = pt({ mutationFn: (t) => H(ED, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@@ -77476,14 -75885,14 +77482,14 @@@
save: (e) => n.mutateAsync(e)
});
}
- function qLe(e, t, n) {
-function $Ie(e, t, n) {
-- let r = CD({
++function ULe(e, t, n) {
++ let r = TD({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (U.setQueryData(r, _fe(e)), e), a = (t) => H(wD, {
- }), i = (e) => (W.setQueryData(r, ife(e)), e), a = (t) => U(wD, {
++ }), i = (e) => (U.setQueryData(r, hfe(e)), e), a = (t) => H(ED, {
id: e.playlistId,
...t
- }).then((e) => e.playlist), o = mt({
+ }).then((e) => e.playlist), o = pt({
mutationFn: (e) => a({
action: "reorder",
asset_ids: e
@@@ -77496,8 -75905,8 +77502,8 @@@
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = Lfe(s, t, r, c);
- if (Rfe(l, s)) return;
- let l = wfe(s, t, r, c);
- if (Tfe(l, s)) return;
++ let l = Ffe(s, t, r, c);
++ if (Ife(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@@ -77539,7 -75948,7 +77545,7 @@@
}
};
}
- function JLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
-function eLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
++function WLe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-stage-side": "",
@@@ -77547,7 -75956,7 +77553,7 @@@
children: /* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(YLe, {
- /* @__PURE__ */ (0, C.jsx)(tLe, {
++ /* @__PURE__ */ (0, C.jsx)(GLe, {
item: e,
queue: t,
helpers: r,
@@@ -77559,7 -75968,7 +77565,7 @@@
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, C.jsx)(ZLe, {
- /* @__PURE__ */ (0, C.jsx)(rLe, {
++ /* @__PURE__ */ (0, C.jsx)(qLe, {
item: e,
write: n
}),
@@@ -77570,7 -75979,7 +77576,7 @@@
children: [
e.width && e.height ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "monitor" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "monitor" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "monitor" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [
e.width,
"×",
e.height
@@@ -77578,11 -75987,11 +77584,11 @@@
}) : null,
/* @__PURE__ */ (0, C.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "hard-drive" }), /* @__PURE__ */ (0, C.jsx)("span", { children: cq(e.size) })]
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "hard-drive" }), /* @__PURE__ */ (0, C.jsx)("span", { children: zK(e.size) })]
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "hard-drive" }), /* @__PURE__ */ (0, C.jsx)("span", { children: fq(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "calendar" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.release_date })]
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "calendar" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.release_date })]
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "calendar" }), /* @__PURE__ */ (0, C.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
@@@ -77590,29 -75999,29 +77596,29 @@@
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "globe" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "globe" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "globe" }), /* @__PURE__ */ (0, C.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsx)(QLe, {
- /* @__PURE__ */ (0, C.jsx)(iLe, {
++ /* @__PURE__ */ (0, C.jsx)(JLe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, C.jsx)($Le, {
- /* @__PURE__ */ (0, C.jsx)(aLe, {
++ /* @__PURE__ */ (0, C.jsx)(YLe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, C.jsx)(aL, {
- assetIds: iL([e], r.javImage()),
- /* @__PURE__ */ (0, C.jsx)(NI, {
- assetIds: MI([e], r.javImage()),
++ /* @__PURE__ */ (0, C.jsx)(cL, {
++ assetIds: sL([e], r.javImage()),
onComplete: () => {
- U.invalidateQueries({ queryKey: SD(e.id) });
- W.invalidateQueries({ queryKey: SD(e.id) });
++ U.invalidateQueries({ queryKey: wD(e.id) });
}
}),
- /* @__PURE__ */ (0, C.jsx)(tRe, { item: e }),
- e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, C.jsx)(iq, { id: e.id }, e.id) : null,
- /* @__PURE__ */ (0, C.jsx)(sLe, { item: e }),
- e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, C.jsx)(FK, { id: e.id }, e.id) : null,
++ /* @__PURE__ */ (0, C.jsx)(ZLe, { item: e }),
++ e.medium === "video" && e.location !== "online" ? /* @__PURE__ */ (0, C.jsx)(cq, { id: e.id }, e.id) : null,
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@@ -77626,7 -76035,7 +77632,7 @@@
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "thumbs-up" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "thumbs-up" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77638,7 -76047,7 +77644,7 @@@
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "notebook-pen" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "notebook-pen" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77649,7 -76058,7 +77655,7 @@@
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "thumbs-down" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "thumbs-down" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77660,7 -76069,7 +77666,7 @@@
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "eye" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "eye" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "eye" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77671,7 -76080,7 +77677,7 @@@
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: e.watch_later ? "check" : "bookmark-plus" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: e.watch_later ? "check" : "bookmark-plus" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77680,7 -76089,7 +77686,7 @@@
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "playlist" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "playlist" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "playlist" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77691,7 -76100,7 +77697,7 @@@
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "sparkles" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "sparkles" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "sparkles" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
@@@ -77702,11 -76111,11 +77708,11 @@@
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "trash" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "trash" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(nRe, {
- /* @__PURE__ */ (0, C.jsx)(cLe, {
++ /* @__PURE__ */ (0, C.jsx)(QLe, {
item: e,
open: s,
write: n
@@@ -77717,7 -76126,7 +77723,7 @@@
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, C.jsx)(oq, { name: "sperm" }),
- /* @__PURE__ */ (0, C.jsx)(LK, { name: "sperm" }),
++ /* @__PURE__ */ (0, C.jsx)(uq, { name: "sperm" }),
/* @__PURE__ */ (0, C.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, C.jsx)("b", {
className: "mono",
@@@ -77730,8 -76139,8 +77736,8 @@@
})
});
}
- function YLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = XK(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Ife(e, t);
-function tLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = DK(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Cfe(e, t);
++function GLe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
++ let { text: a, expanded: o, foldable: s, toggle: c } = eq(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Pfe(e, t);
return /* @__PURE__ */ (0, C.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -77758,23 -76167,23 +77764,23 @@@
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: o ? "chevron-up" : "chevron-down" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: o ? "chevron-up" : "chevron-down" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: o ? "chevron-up" : "chevron-down" })
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, C.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, C.jsx)(zLe, {
- children: /* @__PURE__ */ (0, C.jsx)(GIe, {
++ children: /* @__PURE__ */ (0, C.jsx)(FLe, {
code: e.cover_key || e.code || "",
coverUrl: pa(e),
box: e.poster_box || null,
onSaved: (t) => {
- W.invalidateQueries({
- queryKey: SD(e.id),
+ U.invalidateQueries({
- queryKey: SD(e.id),
++ queryKey: wD(e.id),
exact: !0
- }), lfe((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
- }), Xde((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
++ }), sfe((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, C.jsx)(XLe, {
- e.location === "online" ? null : /* @__PURE__ */ (0, C.jsx)(nLe, {
++ e.location === "online" ? null : /* @__PURE__ */ (0, C.jsx)(KLe, {
id: e.id,
actions: r,
onStatus: i
@@@ -77784,7 -76193,7 +77790,7 @@@
})
});
}
- function XLe({ id: e, actions: t, onStatus: n }) {
-function nLe({ id: e, actions: t, onStatus: n }) {
++function KLe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, S.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@@ -77814,17 -76223,17 +77820,17 @@@
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "folder-sync" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "folder-sync" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "folder-sync" })
})] });
}
- function ZLe({ item: e, write: t }) {
-function rLe({ item: e, write: t }) {
-- let n = AD(e.rating);
++function qLe({ item: e, write: t }) {
++ let n = MD(e.rating);
return /* @__PURE__ */ (0, C.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": Cfe(e.rating),
- "data-value": ufe(e.rating),
++ "data-value": xfe(e.rating),
children: [/* @__PURE__ */ (0, C.jsx)("div", {
"data-rating-stars": "",
children: [
@@@ -77841,19 -76250,19 +77847,19 @@@
"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,
...t.busyAttrs(`rate:${e}`),
onClick: () => t.rate(e),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "star" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "star" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "star" })
}, e))
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: wfe(e.rating)
- children: dfe(e.rating)
++ children: Sfe(e.rating)
})]
});
}
- function QLe({ item: e, actions: t }) {
- let n = (0, S.useMemo)(() => Sfe(e), [e]), [r, i] = (0, S.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
-function iLe({ item: e, actions: t }) {
- let n = (0, S.useMemo)(() => lfe(e), [e]), [r, i] = (0, S.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
++function JLe({ item: e, actions: t }) {
++ let n = (0, S.useMemo)(() => bfe(e), [e]), [r, i] = (0, S.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
- return /* @__PURE__ */ (0, C.jsx)(JK, {
- return /* @__PURE__ */ (0, C.jsx)(TK, {
++ return /* @__PURE__ */ (0, C.jsx)(QK, {
kind: e,
person: n,
onOpen: t.openEntity,
@@@ -77885,7 -76294,7 +77891,7 @@@
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, C.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "user-round" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "user-round" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "user-round" })
}), /* @__PURE__ */ (0, C.jsx)("span", {
"data-id-name": "",
children: "未归属"
@@@ -77897,7 -76306,7 +77903,7 @@@
size: "small",
id: "castMore",
"data-cast-more": "",
-- trailingIcon: Ok,
++ trailingIcon: Ak,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@@ -77916,14 -76325,14 +77922,14 @@@
children: [c.length ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, C.jsx)(YK, {
- }) : null, /* @__PURE__ */ (0, C.jsx)(EK, {
++ }) : null, /* @__PURE__ */ (0, C.jsx)($K, {
people: n.series,
onOpen: t.openEntity
})]
});
}
- function $Le({ item: e, write: t, helpers: n, actions: r }) {
- let i = Efe(e, n);
-function aLe({ item: e, write: t, helpers: n, actions: r }) {
- let i = pfe(e, n);
++function YLe({ item: e, write: t, helpers: n, actions: r }) {
++ let i = wfe(e, n);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-stage-tags": "",
id: "detailTags",
@@@ -77943,16 -76352,16 +77949,16 @@@
"aria-label": `删除标签 ${n.tagLabel(e.k)}`,
...t.busyAttrs(`tag:${e.k}`),
onClick: () => t.removeTag(e),
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "x" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "x" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "x" })
})]
- }, e.k)), /* @__PURE__ */ (0, C.jsx)(eRe, {
- }, e.k)), /* @__PURE__ */ (0, C.jsx)(oLe, {
++ }, e.k)), /* @__PURE__ */ (0, C.jsx)(XLe, {
item: e,
write: t,
helpers: n
})]
});
}
- function eRe({ item: e, write: t, helpers: n }) {
-function oLe({ item: e, write: t, helpers: n }) {
++function XLe({ item: e, write: t, helpers: n }) {
let r = (0, S.useRef)(null), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(!1), [s, c] = (0, S.useState)(!1), [l, u] = (0, S.useState)(""), [d, f] = (0, S.useState)(""), [p, m] = (0, S.useState)(-1), h = (0, S.useCallback)(() => {
i.current && no(i.current), c(!1);
}, []);
@@@ -77966,7 -76375,7 +77972,7 @@@
clearTimeout(t), document.removeEventListener("pointerdown", e, !0);
};
}, [s, h]);
- let g = s ? Mfe(d, n.tagCandidates(), Afe()) : {
- let g = s ? yfe(d, n.tagCandidates(), _fe()) : {
++ let g = s ? Afe(d, n.tagCandidates(), Ofe()) : {
recent: [],
results: [],
create: ""
@@@ -77989,12 -76398,12 +77995,12 @@@
} else if (n.key === "Enter") {
n.preventDefault();
let r = p >= 0 ? _[p] : null;
-- r ? v(r, r.n !== -1 && jD(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
++ r ? v(r, r.n !== -1 && ND(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));
}
}
}, b = -1, x = (t) => {
b += 1;
-- let r = b, i = jD(e, t.k);
++ let r = b, i = ND(e, t.k);
return /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-pick": t.k,
@@@ -78002,7 -76411,7 +78008,7 @@@
"aria-pressed": i,
onClick: () => v(t, i),
children: [
- /* @__PURE__ */ (0, C.jsx)(oq, { name: i ? "check" : "tags" }),
- /* @__PURE__ */ (0, C.jsx)(LK, { name: i ? "check" : "tags" }),
++ /* @__PURE__ */ (0, C.jsx)(uq, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, C.jsx)("span", {
"data-pick-name": "",
children: n.tagLabel(t.k)
@@@ -78025,7 -76434,7 +78031,7 @@@
onClick: () => {
i.current && (to(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));
},
- children: /* @__PURE__ */ (0, C.jsx)(oq, { name: "plus" })
- children: /* @__PURE__ */ (0, C.jsx)(LK, { name: "plus" })
++ children: /* @__PURE__ */ (0, C.jsx)(uq, { name: "plus" })
}), /* @__PURE__ */ (0, C.jsxs)("div", {
ref: i,
id: "tagPicker",
@@@ -78035,7 -76444,7 +78041,7 @@@
hidden: !0,
children: [/* @__PURE__ */ (0, C.jsxs)("label", {
"data-tag-search": "",
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "search" }), /* @__PURE__ */ (0, C.jsx)("input", {
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "search" }), /* @__PURE__ */ (0, C.jsx)("input", {
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "search" }), /* @__PURE__ */ (0, C.jsx)("input", {
ref: a,
id: "tagPickSearch",
maxLength: 80,
@@@ -78076,7 -76485,7 +78082,7 @@@
onClick: () => {
h(), t.addTag(g.create);
},
- children: [/* @__PURE__ */ (0, C.jsx)(oq, { name: "plus" }), /* @__PURE__ */ (0, C.jsxs)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(LK, { name: "plus" }), /* @__PURE__ */ (0, C.jsxs)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(uq, { name: "plus" }), /* @__PURE__ */ (0, C.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@@ -78091,8 -76500,8 +78097,8 @@@
})]
})] });
}
- function tRe({ item: e }) {
- let t = Bfe(e);
-function sLe({ item: e }) {
- let t = Dfe(e);
++function ZLe({ item: e }) {
++ let t = Rfe(e);
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -78126,7 -76535,7 +78132,7 @@@
})]
});
}
- function nRe({ item: e, open: t, write: n }) {
-function cLe({ item: e, open: t, write: n }) {
++function QLe({ item: e, open: t, write: n }) {
let [r, i] = (0, S.useState)(e.like_reason || ""), a = (0, S.useRef)(null);
(0, S.useEffect)(() => {
t && a.current?.focus();
@@@ -78165,12 -76574,12 +78171,12 @@@
})]
});
}
- function rRe(e) {
-function lLe(e) {
- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = pt({
- queryKey: Zde(t.id, n),
- queryFn: async ({ signal: e }) => (await H($de(t.id, n), e)).items || []
++function $Le(e) {
+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = ft({
- queryKey: ufe(t.id, n),
- queryFn: async ({ signal: e }) => (await yn(ffe(t.id, n), e)).items || []
++ queryKey: cfe(t.id, n),
++ queryFn: async ({ signal: e }) => (await yn(ufe(t.id, n), e)).items || []
}), [o] = (0, S.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, C.jsx)(LK, {
- return /* @__PURE__ */ (0, C.jsx)(mK, {
++ return /* @__PURE__ */ (0, C.jsx)(VK, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@@ -78178,7 -76587,7 +78184,7 @@@
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, C.jsx)($R, {
- children: a.data ? /* @__PURE__ */ (0, C.jsx)(DR, {
++ children: a.data ? /* @__PURE__ */ (0, C.jsx)(nz, {
mode: "items",
variant: "next",
items: a.data,
@@@ -78191,14 -76600,14 +78197,14 @@@
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, C.jsx)(sq, { html: o })
- }) : /* @__PURE__ */ (0, C.jsx)(RK, { html: o })
++ }) : /* @__PURE__ */ (0, C.jsx)(dq, { html: o })
});
}
- function iRe(e, t, n) {
-function uLe(e, t, n) {
-- let r = e.id, i = SD(r), [a, o] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), d = (e, t) => o((n) => {
++function eRe(e, t, n) {
++ let r = e.id, i = wD(r), [a, o] = (0, S.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, S.useState)(""), [l, u] = (0, S.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
- }), f = () => W.getQueryData(i) || e, p = (e) => {
+ }), f = () => U.getQueryData(i) || e, p = (e) => {
let t = typeof e == "function" ? e(f()) : {
...f(),
...e
@@@ -78211,11 -76620,11 +78217,11 @@@
rating: t.rating,
o_count: t.o_count
};
-- return xD(r, n), t;
- }, m = (e, t) => U(e, {
++ return CD(r, n), t;
+ }, m = (e, t) => H(e, {
id: r,
...t
- }), h = mt({
+ }), h = pt({
mutationFn: ({ run: e }) => e(),
onError: (e, { action: n }) => t.failure(n, e),
onSettled: (e, t, { name: n }) => d(n, !1)
@@@ -78226,7 -76635,7 +78232,7 @@@
run: n
}));
}, _ = async (e, t) => {
- let n = await m(pfe, t === void 0 ? { kind: e } : {
- let n = await m(efe, t === void 0 ? { kind: e } : {
++ let n = await m(dfe, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@@ -78246,21 -76655,21 +78252,21 @@@
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = Tfe(n, e);
- let n = f().rating || 0, r = ffe(n, e);
-- await _("rate", r), t.toast(r ? `已评 ${AD(r)} 星` : "已取消评分", { undo: async () => {
++ let n = f().rating || 0, r = Cfe(n, e);
++ await _("rate", r), t.toast(r ? `已评 ${MD(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(Vfe(e, r), { undo: async () => {
- t.toast(Ofe(e, r), { undo: async () => {
++ t.toast(zfe(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(mfe, {});
- let e = await m(tfe, {});
++ let e = await m(ffe, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(mfe, {})).watch_later });
- p({ watch_later: (await m(tfe, {})).watch_later });
++ p({ watch_later: (await m(ffe, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@@ -78270,9 -76679,9 +78276,9 @@@
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(hfe, { wanted: !e.wanted });
- }), r = await m(nfe, { wanted: !e.wanted });
++ }), r = await m(pfe, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(hfe, e));
- n(await m(nfe, e));
++ n(await m(pfe, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@@ -78286,7 -76695,7 +78292,7 @@@
});
u("保存中…");
try {
- o(await m(gfe, {
- o(await m(rfe, {
++ o(await m(mfe, {
liked: a,
reason: i
}));
@@@ -78296,7 -76705,7 +78302,7 @@@
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(gfe, r));
- o(await m(rfe, r));
++ o(await m(mfe, r));
} });
});
},
@@@ -78305,30 -76714,30 +78311,30 @@@
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => Dfe(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- p((t) => mfe(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
-- await m(TD, {
++ p((t) => Tfe(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
++ await m(DD, {
operation: "add",
tag: e.k
- }), p((t) => Ofe(t, e));
- }), p((t) => hfe(t, e));
++ }), p((t) => Efe(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
-- let e = await m(TD, {
++ let e = await m(DD, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- jD(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => Ofe(e, {
- jD(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => hfe(e, {
++ ND(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => Efe(e, {
k: i,
cat: "general"
- })), jfe(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- })), vfe(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
-- await m(TD, {
++ })), kfe(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
++ await m(DD, {
operation: "remove",
tag: i
- }), p((e) => Dfe(e, i));
- }), p((e) => mfe(e, i));
++ }), p((e) => Tfe(e, i));
} }));
});
}
@@@ -78336,10 -76745,10 +78342,10 @@@
}
//#endregion
//#region src/react/jav-detail/review-cache.ts
- var uq = "peach.jav-reviews.v1";
- function dq() {
-var VK = "peach.jav-reviews.v1";
-function HK() {
++var mq = "peach.jav-reviews.v1";
++function hq() {
try {
- let e = localStorage.getItem(uq) || "[]";
- let e = localStorage.getItem(VK) || "[]";
++ let e = localStorage.getItem(mq) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@@ -78347,21 -76756,21 +78353,21 @@@
return [];
}
}
- function aRe(e, t) {
-function dLe(e, t) {
++function tRe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...dq().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(uq, i);
- }, ...HK().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(VK, i);
++ }, ...hq().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
++ i.length <= 2e6 && localStorage.setItem(mq, i);
} catch {}
}
- function oRe(e, t) {
- let n = dq(), r = [], i = Infinity;
-function fLe(e, t) {
- let n = HK(), r = [], i = Infinity;
++function nRe(e, t) {
++ let n = hq(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !sW(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
- if (!o || !LU(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
++ if (!o || !dW(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@@ -78369,17 -76778,17 +78375,17 @@@
saved: i
} : void 0;
}
- function sRe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && sW(Date.parse(e.checked_at || "") || t, n));
-function pLe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && LU(Date.parse(e.checked_at || "") || t, n));
++function rRe(e, t, n) {
++ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && dW(Date.parse(e.checked_at || "") || t, n));
}
//#endregion
//#region src/react/jav-detail/jav-detail-page.tsx
- function cRe(e) {
-function mLe(e) {
- let t = (0, S.useRef)(!1), n = pt({
- queryKey: AK(e.code),
++function iRe(e) {
+ let t = (0, S.useRef)(!1), n = ft({
- queryKey: $K(e.code),
++ queryKey: rq(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, eq(e.code, n, r);
- return t.current = !1, jK(e.code, n, r);
++ return t.current = !1, iq(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@@ -78389,21 -76798,21 +78395,21 @@@
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, C.jsx)(lRe, {
- children: n.data ? /* @__PURE__ */ (0, C.jsx)(hLe, {
++ children: n.data ? /* @__PURE__ */ (0, C.jsx)(aRe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, C.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, C.jsx)(fq, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, C.jsx)(vI, {
- children: [/* @__PURE__ */ (0, C.jsx)(UK, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, C.jsx)(LF, {
++ children: [/* @__PURE__ */ (0, C.jsx)(gq, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, C.jsx)(xI, {
message: V(n.error),
onRetry: r
}) : null]
})
});
}
- var fq = ({ close: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
-var UK = ({ close: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
++var gq = ({ close: e }) => /* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@@ -78412,7 -76821,7 +78418,7 @@@
onClick: e,
dangerouslySetInnerHTML: { __html: z("x") }
});
- function lRe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
-function hLe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
++function aRe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, S.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, S.useEffect)(() => {
@@@ -78432,13 -76841,13 +78438,13 @@@
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(t.want_id), p = CA(), m = () => {
- p.run("want", async (e) => d ? (await tW([d], e), null) : (await eW({ code: t.code }, e)).want.id, (t) => {
- f(t), U.setQueryData($K(e), (e) => e && {
- ], [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(t.want_id), p = SA(), m = () => {
- p.run("want", async (e) => d ? (await jU([d], e), null) : (await AU({ code: t.code }, e)).want.id, (t) => {
- f(t), W.setQueryData(AK(e), (e) => e && {
++ ], [l, u] = (0, S.useState)(null), [d, f] = (0, S.useState)(t.want_id), p = TA(), m = () => {
++ p.run("want", async (e) => d ? (await aW([d], e), null) : (await iW({ code: t.code }, e)).want.id, (t) => {
++ f(t), U.setQueryData(rq(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), nW(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
- }), n.receipt(t ? "已加入想要" : "已取消想要"), MU(), W.invalidateQueries({ queryKey: ["feed-new"] }), W.invalidateQueries({ queryKey: ["jav-discoveries"] });
++ }), n.receipt(t ? "已加入想要" : "已取消想要"), oW(), U.invalidateQueries({ queryKey: ["feed-new"] }), U.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
@@@ -78447,24 -76856,24 +78453,24 @@@
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, C.jsx)(fq, { close: n.close }),
- /* @__PURE__ */ (0, C.jsx)(UK, { close: n.close }),
++ /* @__PURE__ */ (0, C.jsx)(gq, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, C.jsx)(pq, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
- children: [/* @__PURE__ */ (0, C.jsx)(WK, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
++ children: [/* @__PURE__ */ (0, C.jsx)(_q, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, C.jsx)(fRe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, C.jsx)(ZK, {
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, C.jsx)(vLe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, C.jsx)(OK, {
++ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, C.jsx)(cRe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, C.jsx)(tq, {
item: t,
image: o === -1 ? "cover" : String(o)
}, o),
- /* @__PURE__ */ (0, C.jsx)(zK, {
- /* @__PURE__ */ (0, C.jsx)(gK, {
++ /* @__PURE__ */ (0, C.jsx)(UK, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, C.jsx)(ZK, {
- renderThumbnail: (e) => /* @__PURE__ */ (0, C.jsx)(OK, {
++ renderThumbnail: (e) => /* @__PURE__ */ (0, C.jsx)(tq, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@@ -78478,32 -76887,32 +78484,32 @@@
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, C.jsx)(uRe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(hq, { score: Number(t.score) }) : null,
- /* @__PURE__ */ (0, C.jsx)(gLe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(KK, { score: Number(t.score) }) : null,
++ /* @__PURE__ */ (0, C.jsx)(oRe, { item: t }),
++ Number(t.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(yq, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
- children: [/* @__PURE__ */ (0, C.jsx)(mq, {
- children: [/* @__PURE__ */ (0, C.jsx)(GK, {
++ children: [/* @__PURE__ */ (0, C.jsx)(vq, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, C.jsx)(mq, {
- }), /* @__PURE__ */ (0, C.jsx)(GK, {
++ }), /* @__PURE__ */ (0, C.jsx)(vq, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, C.jsx)(dRe, {
- /* @__PURE__ */ (0, C.jsx)(_Le, {
++ /* @__PURE__ */ (0, C.jsx)(sRe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, C.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, C.jsx)(mq, {
- children: [/* @__PURE__ */ (0, C.jsx)(GK, {
++ children: [/* @__PURE__ */ (0, C.jsx)(vq, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, C.jsx)(mq, {
- }), /* @__PURE__ */ (0, C.jsx)(GK, {
++ }), /* @__PURE__ */ (0, C.jsx)(vq, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@@ -78567,7 -76976,7 +78573,7 @@@
}),
t.source_url ? /* @__PURE__ */ (0, C.jsx)(K, {
variant: "secondary",
- trailingIcon: Ik,
- trailingIcon: Fk,
++ trailingIcon: Rk,
onClick: () => window.open(t.source_url, "_blank", "noopener,noreferrer"),
children: "作品来源"
}) : null
@@@ -78577,12 -76986,12 +78583,12 @@@
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, C.jsx)(pRe, {
- /* @__PURE__ */ (0, C.jsx)(yLe, {
++ /* @__PURE__ */ (0, C.jsx)(lRe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, C.jsx)(mRe, {
- /* @__PURE__ */ (0, C.jsx)(bLe, {
++ /* @__PURE__ */ (0, C.jsx)(uRe, {
item: t,
actions: n,
readOnly: r
@@@ -78590,24 -76999,24 +78596,24 @@@
]
})
}),
- /* @__PURE__ */ (0, C.jsx)(XU, {
- /* @__PURE__ */ (0, C.jsx)(EU, {
++ /* @__PURE__ */ (0, C.jsx)(eW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
- var pq = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
-var WK = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
++var _q = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: z(e) }
- }), mq = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, C.jsxs)("span", {
-}), GK = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, C.jsxs)("span", {
++}), vq = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, C.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, C.jsx)(pq, { name: e }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
- children: [/* @__PURE__ */ (0, C.jsx)(WK, { name: e }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
++ children: [/* @__PURE__ */ (0, C.jsx)(_q, { name: e }), /* @__PURE__ */ (0, C.jsx)("span", { children: n })]
}) : null;
- function uRe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = XK(e.title), a = e.title === e.code ? "" : e.title;
-function gLe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = DK(e.title), a = e.title === e.code ? "" : e.title;
++function oRe({ item: e }) {
++ let { text: t, expanded: n, foldable: r, toggle: i } = eq(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, C.jsx)("h1", {
@@@ -78633,12 -77042,12 +78639,12 @@@
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, C.jsx)(pq, { name: n ? "chevron-up" : "chevron-down" })
- children: /* @__PURE__ */ (0, C.jsx)(WK, { name: n ? "chevron-up" : "chevron-down" })
++ children: /* @__PURE__ */ (0, C.jsx)(_q, { name: n ? "chevron-up" : "chevron-down" })
})
})]
});
}
- function hq({ score: e, review: t = !1 }) {
-function KK({ score: e, review: t = !1 }) {
++function yq({ score: e, review: t = !1 }) {
let n = Math.max(0, Math.min(5, e));
return /* @__PURE__ */ (0, C.jsxs)("div", {
"data-item-rating": "",
@@@ -78662,10 -77071,10 +78668,10 @@@
"data-on": String(t === 1),
children: /* @__PURE__ */ (0, C.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, C.jsx)(pq, { name: "star" }), /* @__PURE__ */ (0, C.jsx)("span", {
- children: [/* @__PURE__ */ (0, C.jsx)(WK, { name: "star" }), /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [/* @__PURE__ */ (0, C.jsx)(_q, { name: "star" }), /* @__PURE__ */ (0, C.jsx)("span", {
"data-rating-fill": "",
style: { width: `${t * 100}%` },
- children: /* @__PURE__ */ (0, C.jsx)(pq, { name: "star" })
- children: /* @__PURE__ */ (0, C.jsx)(WK, { name: "star" })
++ children: /* @__PURE__ */ (0, C.jsx)(_q, { name: "star" })
})]
})
}, e);
@@@ -78676,8 -77085,8 +78682,8 @@@
})]
});
}
- function dRe({ item: e, navigate: t }) {
-function _Le({ item: e, navigate: t }) {
- let n = (e, n) => t(Wt(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, C.jsxs)("section", {
++function sRe({ item: e, navigate: t }) {
+ let n = (e, n) => t(Ut(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, C.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
children: [/* @__PURE__ */ (0, C.jsx)("h5", {
@@@ -78685,14 -77094,14 +78691,14 @@@
children: r
}), /* @__PURE__ */ (0, C.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, C.jsx)(JK, {
- children: i.map((r) => /* @__PURE__ */ (0, C.jsx)(TK, {
++ children: i.map((r) => /* @__PURE__ */ (0, C.jsx)(QK, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, C.jsx)(jH, {
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, C.jsx)(sH, {
++ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, C.jsx)(FH, {
code: e.code,
person: r,
detail: !0
@@@ -78709,7 -77118,7 +78715,7 @@@
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, C.jsx)(YK, {
- }), /* @__PURE__ */ (0, C.jsx)(EK, {
++ }), /* @__PURE__ */ (0, C.jsx)($K, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@@ -78718,11 -77127,11 +78724,11 @@@
})]
});
}
- function fRe({ src: e }) {
-function vLe({ src: e }) {
++function cRe({ src: e }) {
let t = (0, S.useRef)(null), [n, r] = (0, S.useState)(!1), [i, a] = (0, S.useState)(0);
return (0, S.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), Wde(i, {
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), jde(i, {
++ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Hde(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
@@@ -78742,8 -77151,8 +78748,8 @@@
}) : null
});
}
- function pRe({ code: e, count: t, released: n }) {
- let r = T(), [i, a] = (0, S.useState)(!1), o = (0, S.useMemo)(() => oRe(e, n), [e, n]), s = (0, S.useRef)(!1), c = mt({
-function yLe({ code: e, count: t, released: n }) {
- let r = T(), [i, a] = (0, S.useState)(!1), o = (0, S.useMemo)(() => fLe(e, n), [e, n]), s = (0, S.useRef)(!1), c = ht({
++function lRe({ code: e, count: t, released: n }) {
++ let r = T(), [i, a] = (0, S.useState)(!1), o = (0, S.useMemo)(() => nRe(e, n), [e, n]), s = (0, S.useRef)(!1), c = mt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@@ -78752,12 -77161,12 +78758,12 @@@
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => sRe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
- staleTime: (e) => pLe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
++ staleTime: (e) => rRe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await MLe(e, n, t, s.current);
- if (aRe(e, i), !i.ok || i.cache_stale) {
- let i = await RIe(e, n, t, s.current);
- if (dLe(e, i), !i.ok || i.cache_stale) {
++ let i = await OLe(e, n, t, s.current);
++ if (tRe(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,
@@@ -78767,7 -77176,7 +78773,7 @@@
}
return i;
},
- getNextPageParam: NLe
- getNextPageParam: zIe
++ getNextPageParam: kLe
});
(0, S.useEffect)(() => {
c.isFetching || (s.current = !1);
@@@ -78775,10 -77184,10 +78781,10 @@@
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? V(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, C.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VA, {
trailing: !0,
summary: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(lge, { "aria-hidden": !0 }),
- /* @__PURE__ */ (0, C.jsx)(Zhe, { "aria-hidden": !0 }),
++ /* @__PURE__ */ (0, C.jsx)(sge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@@ -78815,7 -77224,7 +78821,7 @@@
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, C.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(hq, {
- Number(e.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(KK, {
++ Number(e.score) > 0 ? /* @__PURE__ */ (0, C.jsx)(yq, {
score: Number(e.score),
review: !0
}) : null,
@@@ -78870,21 -77279,21 +78876,21 @@@
})
});
}
- function mRe({ item: e, actions: t, readOnly: n }) {
-function bLe({ item: e, actions: t, readOnly: n }) {
- let [r, i] = (0, S.useState)(!1), a = pt({
- queryKey: tj,
++function uRe({ item: e, actions: t, readOnly: n }) {
+ let [r, i] = (0, S.useState)(!1), a = ft({
- queryKey: tj,
++ queryKey: ij,
enabled: r,
- queryFn: ({ signal: e }) => yn(`${ej}?limit=50`, e)
- queryFn: ({ signal: e }) => H(`${ej}?limit=50`, e)
++ queryFn: ({ signal: e }) => yn(`${rj}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, S.useState)(!1);
return /* @__PURE__ */ (0, C.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, C.jsx)(zA, {
- children: /* @__PURE__ */ (0, C.jsx)(RA, {
++ children: /* @__PURE__ */ (0, C.jsx)(VA, {
trailing: !0,
- summary: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(pq, { name: "link" }), "资源"] }),
- summary: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(WK, { name: "link" }), "资源"] }),
++ summary: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [/* @__PURE__ */ (0, C.jsx)(_q, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, C.jsx)(pW, {
- children: s ? /* @__PURE__ */ (0, C.jsx)(UU, {
++ children: s ? /* @__PURE__ */ (0, C.jsx)(_W, {
want: {
id: 0,
code: e.code,
@@@ -78902,31 -77311,31 +78908,31 @@@
}
//#endregion
//#region src/react/stage/stage-player.ts
- var gq = null, _q = null, vq = null, yq = null, bq = null, xq = !1, Sq = 0, Cq = null, wq = () => !1, Tq = (e, t, n) => `${e}:${t}:${n ?? ""}`;
- function hRe(e, t) {
- gq = e, wq = () => t.isOpen(), Cq = () => t.requestClose(), zue({
-var qK = null, JK = null, YK = null, XK = null, ZK = null, QK = !1, $K = 0, eq = null, tq = () => !1, nq = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function xLe(e, t) {
- qK = e, tq = () => t.isOpen(), eq = () => t.requestClose(), Eue({
++var bq = null, xq = null, Sq = null, Cq = null, wq = null, Tq = !1, Eq = 0, Dq = null, Oq = () => !1, kq = (e, t, n) => `${e}:${t}:${n ?? ""}`;
++function dRe(e, t) {
++ bq = e, Oq = () => t.isOpen(), Dq = () => t.requestClose(), Lue({
...e.player,
stage: () => document.getElementById("stage")
- }), Bue({
- inMiniplayer: (e) => _q?.player === e,
- kind: (e) => _q?.player === e ? _q.kind : vq?.kind ?? yq?.kind ?? "item",
- expand: () => Gq(),
- toMiniplayer: () => Kq()
- }), Eq || (Eq = !0, addEventListener("pagehide", () => oD()));
- }), Due({
- inMiniplayer: (e) => JK?.player === e,
- kind: (e) => JK?.player === e ? JK.kind : YK?.kind ?? XK?.kind ?? "item",
- expand: () => Sq(),
- toMiniplayer: () => Cq()
- }), rq || (rq = !0, addEventListener("pagehide", () => oD()));
--}
- var Eq = !1;
- function Dq() {
- if (!gq) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return gq;
-var rq = !1;
-function iq() {
- if (!qK) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return qK;
--}
- function Oq(e) {
- yq = e;
-function aq(e) {
- XK = e;
--}
- var gRe = () => yq;
- function kq(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = Tq(n, r.id, i?.index ?? null);
- if (_q && _q.key === a) return vRe(e, _q);
- _q && Wq();
-var SLe = () => XK;
-function oq(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = nq(n, r.id, i?.index ?? null);
- if (JK && JK.key === a) return wLe(e, JK);
- JK && xq();
++ }), Rue({
++ inMiniplayer: (e) => xq?.player === e,
++ kind: (e) => xq?.player === e ? xq.kind : Sq?.kind ?? Cq?.kind ?? "item",
++ expand: () => Yq(),
++ toMiniplayer: () => Xq()
++ }), Aq || (Aq = !0, addEventListener("pagehide", () => cD()));
++}
++var Aq = !1;
++function jq() {
++ if (!bq) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
++ return bq;
++}
++function Mq(e) {
++ Cq = e;
++}
++var fRe = () => Cq;
++function Nq(e, t) {
++ let { kind: n, item: r, media: i = null } = t, a = kq(n, r.id, i?.index ?? null);
++ if (xq && xq.key === a) return mRe(e, xq);
++ xq && Jq();
let o = {
player: null,
kind: n,
@@@ -78934,52 -77343,52 +78940,52 @@@
mediaIndex: i?.index ?? null,
key: a
};
- vq = o;
- YK = o;
++ Sq = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
-- let c = pD(s, {
++ let c = hD(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- vq === o && (o.player = e);
- YK === o && (o.player = e);
++ Sq === o && (o.player = e);
},
- handedOff: (e) => _q?.player === e
- handedOff: (e) => JK?.player === e
++ handedOff: (e) => xq?.player === e
});
return () => {
- let e = !!o.player && _q?.player === o.player;
- vq === o && (vq = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), oD());
- let e = !!o.player && JK?.player === o.player;
- YK === o && (YK = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), oD());
++ let e = !!o.player && xq?.player === o.player;
++ Sq === o && (Sq = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), cD());
};
}
- async function _Re(e, t, n) {
-async function CLe(e, t, n) {
- let r = await It(`/api/item?id=${e.id}`, { signal: n });
++async function pRe(e, t, n) {
+ let r = await Ft(`/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("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await Dq().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.location || "")] === !1) throw Error(Dq().player.offlineReason(String(r.location || "")));
- let i = await iq().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.location || "")] === !1) throw Error(iq().player.offlineReason(String(r.location || "")));
++ let i = await jq().player.loadSourceStatus();
++ if (n.throwIfAborted(), i[String(r.location || "")] === !1) throw Error(jq().player.offlineReason(String(r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- Oq(a);
- let o = kq(t, {
- aq(a);
- let o = oq(t, {
++ Mq(a);
++ let o = Nq(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && yq === a && jq(!0), o(), yq === a && Oq(null));
- s || (s = !0, e && XK === a && cq(!0), o(), XK === a && aq(null));
++ s || (s = !0, e && Cq === a && Fq(!0), o(), Cq === a && Mq(null));
};
}
- function vRe(e, t) {
-function wLe(e, t) {
++function mRe(e, t) {
let { player: n } = t;
- Hq(t), _q = null, Uq(), n.el().classList.remove("vjs-peach-mini"), Vde(e), e.append(n.el()), WE(n);
- yq(t), JK = null, bq(), n.el().classList.remove("vjs-peach-mini"), Ode(e), e.append(n.el()), WE(n);
++ Kq(t), xq = null, qq(), n.el().classList.remove("vjs-peach-mini"), zde(e), e.append(n.el()), KE(n);
let r = {
player: n,
kind: t.kind,
@@@ -78987,23 -77396,23 +78993,23 @@@
mediaIndex: t.mediaIndex,
key: t.key
};
- vq = r;
- let i = Hde(n, e);
- YK = r;
- let i = kde(n, e);
-- return GE(n), () => {
- vq === r && (vq = null), i(), _q?.player !== n && (UE() === n && WE(null), nD(n), oD());
- YK === r && (YK = null), i(), JK?.player !== n && (UE() === n && WE(null), nD(n), oD());
++ Sq = r;
++ let i = Bde(n, e);
++ return qE(n), () => {
++ Sq === r && (Sq = null), i(), xq?.player !== n && (GE() === n && KE(null), iD(n), cD());
};
}
- var Aq = () => {
- let e = vq?.player;
-var sq = () => {
- let e = YK?.player;
++var Pq = () => {
++ let e = Sq?.player;
return e && !e.isDisposed() ? e : null;
};
- function jq(e) {
- let t = xq;
- xq = !1, _q?.pending && Wq();
- let n = vq, r = n?.player, i = yq;
- if (!n || !r || r.isDisposed() || !i || !bq) return;
- let a = Dq().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && SRe({
-function cq(e) {
- let t = QK;
- QK = !1, JK?.pending && xq();
- let n = YK, r = n?.player, i = XK;
- if (!n || !r || r.isDisposed() || !i || !ZK) return;
- let a = iq().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && OLe({
++function Fq(e) {
++ let t = Tq;
++ Tq = !1, xq?.pending && Jq();
++ let n = Sq, r = n?.player, i = Cq;
++ if (!n || !r || r.isDisposed() || !i || !wq) return;
++ let a = jq().player.settings();
++ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && vRe({
player: r,
kind: n.kind,
item: n.item,
@@@ -79011,46 -77420,46 +79017,46 @@@
key: n.key
}, i);
}
- function Mq(e, t) {
- xq = !1, _q && (_q.kind === e && _q.item.id === t ? (_q.pending = !0, Uq()) : Wq());
-function lq(e, t) {
- QK = !1, JK && (JK.kind === e && JK.item.id === t ? (JK.pending = !0, bq()) : xq());
++function Iq(e, t) {
++ Tq = !1, xq && (xq.kind === e && xq.item.id === t ? (xq.pending = !0, qq()) : Jq());
}
- function Nq(e) {
- bq = e, bq && Bq();
-function uq(e) {
- ZK = e, ZK && _q();
++function Lq(e) {
++ wq = e, wq && Wq();
}
- var Pq = () => !!_q && !_q.pending && !_q.player.isDisposed();
- function yRe() {
- return Pq() ? bq?.frame.querySelector("video") ?? null : null;
-var dq = () => !!JK && !JK.pending && !JK.player.isDisposed();
-function TLe() {
- return dq() ? ZK?.frame.querySelector("video") ?? null : null;
++var Rq = () => !!xq && !xq.pending && !xq.player.isDisposed();
++function hRe() {
++ return Rq() ? wq?.frame.querySelector("video") ?? null : null;
}
- function bRe() {
- return wq() ? document.getElementById("stage")?.querySelector("video") ?? null : Aq()?.el().querySelector("video") ?? yRe();
-function ELe() {
- return tq() ? document.getElementById("stage")?.querySelector("video") ?? null : sq()?.el().querySelector("video") ?? TLe();
++function gRe() {
++ return Oq() ? document.getElementById("stage")?.querySelector("video") ?? null : Pq()?.el().querySelector("video") ?? hRe();
}
- function Fq(e) {
- bq && (bq.title.textContent = e.title || "", bq.sub.textContent = e.sub || "", bq.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
-function fq(e) {
- ZK && (ZK.title.textContent = e.title || "", ZK.sub.textContent = e.sub || "", ZK.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
++function zq(e) {
++ wq && (wq.title.textContent = e.title || "", wq.sub.textContent = e.sub || "", wq.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
- function Iq(e = _q?.item) {
- if (!bq) return;
- let t = bq.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- bq.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
-function pq(e = JK?.item) {
- if (!ZK) return;
- let t = ZK.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- ZK.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
++function Bq(e = xq?.item) {
++ if (!wq) return;
++ let t = wq.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
++ wq.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
- function Lq() {
- let e = _q?.player;
- if (!e || e.isDisposed() || !bq) return;
-function mq() {
- let e = JK?.player;
- if (!e || e.isDisposed() || !ZK) return;
++function Vq() {
++ let e = xq?.player;
++ if (!e || e.isDisposed() || !wq) return;
let t = e.paused();
- bq.play.setAttribute("aria-label", t ? "播放" : "暂停"), bq.play.querySelector("[data-icon-swap]") || (bq.play.innerHTML = Ro("player-pause", "player-play", t ? "b" : "a")), zo(bq.play, t ? "b" : "a");
- ZK.play.setAttribute("aria-label", t ? "播放" : "暂停"), ZK.play.querySelector("[data-icon-swap]") || (ZK.play.innerHTML = Ro("player-pause", "player-play", t ? "b" : "a")), zo(ZK.play, t ? "b" : "a");
++ wq.play.setAttribute("aria-label", t ? "播放" : "暂停"), wq.play.querySelector("[data-icon-swap]") || (wq.play.innerHTML = Ro("player-pause", "player-play", t ? "b" : "a")), zo(wq.play, t ? "b" : "a");
}
- function Rq() {
- let e = _q?.player;
- if (!e || e.isDisposed() || !bq) return;
- let t = nn(_q?.item.duration) || nn(e.duration());
- bq.time.textContent = `${an(e.currentTime())} / ${t ? an(t) : "0:00"}`;
-function hq() {
- let e = JK?.player;
- if (!e || e.isDisposed() || !ZK) return;
- let t = rn(JK?.item.duration) || rn(e.duration());
- ZK.time.textContent = `${on(e.currentTime())} / ${t ? on(t) : "0:00"}`;
-}
-var gq = () => Math.max(1, Number(iq().player.settings().seekSeconds) || 10);
-function _q() {
- if (!ZK || !qK) return;
- let e = gq();
- for (let [t, n] of [[ZK.back, `后退 ${e} 秒`], [ZK.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function vq(e) {
++function Hq() {
++ let e = xq?.player;
++ if (!e || e.isDisposed() || !wq) return;
++ let t = nn(xq?.item.duration) || nn(e.duration());
++ wq.time.textContent = `${an(e.currentTime())} / ${t ? an(t) : "0:00"}`;
+}
- var zq = () => Math.max(1, Number(Dq().player.settings().seekSeconds) || 10);
- function Bq() {
- if (!bq || !gq) return;
- let e = zq();
- for (let [t, n] of [[bq.back, `后退 ${e} 秒`], [bq.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
++var Uq = () => Math.max(1, Number(jq().player.settings().seekSeconds) || 10);
++function Wq() {
++ if (!wq || !bq) return;
++ let e = Uq();
++ for (let [t, n] of [[wq.back, `后退 ${e} 秒`], [wq.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
- function Vq(e) {
++function Gq(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@@ -79062,17 -77471,17 +79068,17 @@@
"play",
"pause",
"ended"
- ], Lq), t([
- ], mq), t([
++ ], Vq), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], Rq), t("loadedmetadata", () => Iq()), Lq(), Rq(), Iq(), Bq();
- ], hq), t("loadedmetadata", () => pq()), mq(), hq(), pq(), _q();
++ ], Hq), t("loadedmetadata", () => Bq()), Vq(), Hq(), Bq(), Wq();
}
- function Hq(e) {
-function yq(e) {
++function Kq(e) {
e.off.forEach((e) => e()), e.off = [];
}
- function xRe() {
- let e = bq?.root;
-function DLe() {
- let e = ZK?.root;
++function _Re() {
++ let e = wq?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@@ -79080,8 -77489,8 +79086,8 @@@
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
- function Uq() {
- let e = bq?.root;
-function bq() {
- let e = ZK?.root;
++function qq() {
++ let e = wq?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@@ -79092,73 -77501,73 +79098,73 @@@
e.style.transform = "";
}
}
- function SRe(e, t) {
- if (!bq) return;
-function OLe(e, t) {
- if (!ZK) return;
++function vRe(e, t) {
++ if (!wq) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- _q = n, Sq++, e.player.el().classList.add("vjs-peach-mini"), bq.frame.prepend(e.player.el()), Fq(t), Vq(n), xRe(), GE(e.player);
- JK = n, $K++, e.player.el().classList.add("vjs-peach-mini"), ZK.frame.prepend(e.player.el()), fq(t), vq(n), DLe(), GE(e.player);
++ xq = n, Eq++, e.player.el().classList.add("vjs-peach-mini"), wq.frame.prepend(e.player.el()), zq(t), Gq(n), _Re(), qE(e.player);
}
- function Wq() {
- let e = _q;
- e && Hq(e), _q = null, Sq++;
-function xq() {
- let e = JK;
- e && yq(e), JK = null, $K++;
++function Jq() {
++ let e = xq;
++ e && Kq(e), xq = null, Eq++;
let t = e?.player ?? null;
- t && UE() === t && WE(null), nD(t), t && oD(), bq?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), HE(), Uq();
- t && UE() === t && WE(null), nD(t), t && oD(), ZK?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), HE(), bq();
++ t && GE() === t && KE(null), iD(t), t && cD(), wq?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), WE(), qq();
}
- function Gq() {
- if (!Pq() || !_q) return;
- let { kind: e, item: t, mediaIndex: n } = _q;
- Dq().expand(e, t.id, n);
-function Sq() {
- if (!dq() || !JK) return;
- let { kind: e, item: t, mediaIndex: n } = JK;
- iq().expand(e, t.id, n);
++function Yq() {
++ if (!Rq() || !xq) return;
++ let { kind: e, item: t, mediaIndex: n } = xq;
++ jq().expand(e, t.id, n);
}
- function Kq() {
- Pq() && !wq() ? Gq() : wq() && Aq() && Cq && (xq = !0, Cq());
-function Cq() {
- dq() && !tq() ? Sq() : tq() && sq() && eq && (QK = !0, eq());
++function Xq() {
++ Rq() && !Oq() ? Yq() : Oq() && Pq() && Dq && (Tq = !0, Dq());
}
- function CRe() {
- let e = _q?.player;
-function kLe() {
- let e = JK?.player;
++function yRe() {
++ let e = xq?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
- function qq(e) {
- let t = _q?.player;
-function wq(e) {
- let t = JK?.player;
++function Zq(e) {
++ let t = xq?.player;
if (!t || t.isDisposed()) return;
- let n = nn(t.duration()) || nn(_q?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + zq() * e);
- let n = rn(t.duration()) || rn(JK?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + gq() * e);
++ let n = nn(t.duration()) || nn(xq?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Uq() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
- function Jq(e) {
- return !(!Pq() || !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 || Dq().sourceOffline(String(e.location ?? "")));
-function Tq(e) {
- return !(!dq() || !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 || iq().sourceOffline(String(e.location ?? "")));
++function Qq(e) {
++ return !(!Rq() || !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 || jq().sourceOffline(String(e.location ?? "")));
}
- async function wRe(e) {
- if (!Pq() || !_q || !bq) return;
- let t = ++Sq, n = await Ft(`/api/item?id=${e}`).catch(() => null);
- if (t !== Sq || !Pq() || !_q || !bq || !n || n.error) return;
- if (!Jq(n)) {
- Dq().openItem(e);
-async function ALe(e) {
- if (!dq() || !JK || !ZK) return;
- let t = ++$K, n = await It(`/api/item?id=${e}`).catch(() => null);
- if (t !== $K || !dq() || !JK || !ZK || !n || n.error) return;
- if (!Tq(n)) {
- iq().openItem(e);
++async function bRe(e) {
++ if (!Rq() || !xq || !wq) return;
++ let t = ++Eq, n = await Ft(`/api/item?id=${e}`).catch(() => null);
++ if (t !== Eq || !Rq() || !xq || !wq || !n || n.error) return;
++ if (!Qq(n)) {
++ jq().openItem(e);
return;
}
- let r = _q;
- Hq(r), UE() === r.player && WE(null), nD(r.player), oD(), bq.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
- let r = JK;
- yq(r), UE() === r.player && WE(null), nD(r.player), oD(), ZK.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
++ let r = xq;
++ Kq(r), GE() === r.player && KE(null), iD(r.player), cD(), wq.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", bq.frame.prepend(i);
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", ZK.frame.prepend(i);
++ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", wq.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- Fq(a), pD(i, {
- fq(a), pD(i, {
++ zq(a), hD(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== Sq) {
- if (t !== $K) {
-- r && UE() === r && WE(null), nD(r);
++ if (t !== Eq) {
++ r && GE() === r && KE(null), iD(r);
return;
}
if (!r) {
- Wq(), Dq().openItem(e);
- xq(), iq().openItem(e);
++ Jq(), jq().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@@ -79167,26 -77576,26 +79173,26 @@@
kind: "item",
item: n,
mediaIndex: null,
- key: Tq("item", n.id, null),
- key: nq("item", n.id, null),
++ key: kq("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- _q = i, Vq(i);
- JK = i, vq(i);
++ xq = i, Gq(i);
}
- }), Iq(n);
- }), pq(n);
++ }), Bq(n);
}
//#endregion
//#region src/react/stage/miniplayer.tsx
- var Yq = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
-var Eq = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
++var $q = ({ name: e }) => /* @__PURE__ */ (0, C.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, C.jsx)("use", { href: `#i-${e}` })
- }), TRe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, Xq = (e) => (t) => {
-}), jLe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, Dq = (e) => (t) => {
++}), xRe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, eJ = (e) => (t) => {
t.stopPropagation(), e();
- }, ERe = (0, S.memo)(function() {
-}, MLe = (0, S.memo)(function() {
++}, SRe = (0, S.memo)(function() {
let e = (0, S.useRef)(null), t = (0, S.useRef)(null), n = (0, S.useRef)(null), r = (0, S.useRef)(null), i = (0, S.useRef)(null), a = (0, S.useRef)(null), o = (0, S.useRef)(null), s = (0, S.useRef)(null), c = (0, S.useRef)(null), l = (0, S.useRef)(null);
- return (0, S.useLayoutEffect)(() => (Nq({
- return (0, S.useLayoutEffect)(() => (uq({
++ return (0, S.useLayoutEffect)(() => (Lq({
root: e.current,
frame: n.current,
play: r.current,
@@@ -79196,7 -77605,7 +79202,7 @@@
title: s.current,
sub: c.current,
info: l.current
- }), () => Nq(null)), []), (0, S.useEffect)(() => ORe(e.current, t.current), []), /* @__PURE__ */ (0, C.jsx)("aside", {
- }), () => uq(null)), []), (0, S.useEffect)(() => PLe(e.current, t.current), []), /* @__PURE__ */ (0, C.jsx)("aside", {
++ }), () => Lq(null)), []), (0, S.useEffect)(() => wRe(e.current, t.current), []), /* @__PURE__ */ (0, C.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@@ -79220,24 -77629,24 +79226,24 @@@
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: Xq(Gq),
- children: /* @__PURE__ */ (0, C.jsx)(Yq, { name: "maximize-2" })
- onClick: Dq(Sq),
- children: /* @__PURE__ */ (0, C.jsx)(Eq, { name: "maximize-2" })
++ onClick: eJ(Yq),
++ children: /* @__PURE__ */ (0, C.jsx)($q, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: Xq(Wq),
- children: /* @__PURE__ */ (0, C.jsx)(Yq, { name: "x" })
- onClick: Dq(xq),
- children: /* @__PURE__ */ (0, C.jsx)(Eq, { name: "x" })
++ onClick: eJ(Jq),
++ children: /* @__PURE__ */ (0, C.jsx)($q, { name: "x" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: Xq(() => qq(-1)),
- children: /* @__PURE__ */ (0, C.jsx)(Yq, { name: "rotate-ccw" })
- onClick: Dq(() => wq(-1)),
- children: /* @__PURE__ */ (0, C.jsx)(Eq, { name: "rotate-ccw" })
++ onClick: eJ(() => Zq(-1)),
++ children: /* @__PURE__ */ (0, C.jsx)($q, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, C.jsx)("button", {
ref: r,
@@@ -79246,16 -77655,16 +79252,16 @@@
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: Xq(CRe),
- dangerouslySetInnerHTML: TRe
- onClick: Dq(kLe),
- dangerouslySetInnerHTML: jLe
++ onClick: eJ(yRe),
++ dangerouslySetInnerHTML: xRe
}),
/* @__PURE__ */ (0, C.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: Xq(() => qq(1)),
- children: /* @__PURE__ */ (0, C.jsx)(Yq, { name: "rotate-cw" })
- onClick: Dq(() => wq(1)),
- children: /* @__PURE__ */ (0, C.jsx)(Eq, { name: "rotate-cw" })
++ onClick: eJ(() => Zq(1)),
++ children: /* @__PURE__ */ (0, C.jsx)($q, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, C.jsx)("span", {
ref: i,
@@@ -79272,7 -77681,7 +79278,7 @@@
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => Gq(),
- onClick: () => Sq(),
++ onClick: () => Yq(),
children: [/* @__PURE__ */ (0, C.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@@ -79286,7 -77695,7 +79292,7 @@@
})
});
});
- function DRe(e, t, n) {
-function NLe(e, t, n) {
++function CRe(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
@@@ -79308,7 -77717,7 +79314,7 @@@
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
- function ORe(e, t) {
-function PLe(e, t) {
++function wRe(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 = {
@@@ -79334,7 -77743,7 +79340,7 @@@
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), DRe(e, i.dx, i.dy));
- }, 0), NLe(e, i.dx, i.dy));
++ }, 0), CRe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@@ -79346,49 -77755,49 +79352,49 @@@
}
//#endregion
//#region src/react/stage/stage.tsx
- var Zq = null, Qq = null, $q = /* @__PURE__ */ new Set(), eJ = 0, tJ = null, nJ = !1, rJ = !1, iJ = () => {
-var Oq = null, kq = null, Aq = /* @__PURE__ */ new Set(), jq = 0, Mq = null, Nq = !1, Pq = !1, Fq = () => {
++var tJ = null, nJ = null, rJ = /* @__PURE__ */ new Set(), iJ = 0, aJ = null, oJ = !1, sJ = !1, cJ = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
- function aJ() {
- if (!Zq) throw Error("舞台还没有接上宿主(configureStage)");
- return Zq;
-function Iq() {
- if (!Oq) throw Error("舞台还没有接上宿主(configureStage)");
- return Oq;
++function lJ() {
++ if (!tJ) throw Error("舞台还没有接上宿主(configureStage)");
++ return tJ;
}
- function kRe(e) {
- return $q.add(e), () => {
- $q.delete(e);
-function FLe(e) {
- return Aq.add(e), () => {
- Aq.delete(e);
++function TRe(e) {
++ return rJ.add(e), () => {
++ rJ.delete(e);
};
}
- function ARe() {
- for (let e of [...$q]) e();
-function ILe() {
- for (let e of [...Aq]) e();
++function ERe() {
++ for (let e of [...rJ]) e();
}
- function oJ() {
- (0, ht.flushSync)(ARe);
-function Lq() {
- (0, gt.flushSync)(ILe);
++function uJ() {
++ (0, ht.flushSync)(ERe);
}
- function jRe({ view: e }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [e ? /* @__PURE__ */ (0, C.jsx)(MRe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, C.jsx)(ERe, {})] });
-function LLe({ view: e }) {
- return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [e ? /* @__PURE__ */ (0, C.jsx)(RLe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, C.jsx)(MLe, {})] });
++function DRe({ view: e }) {
++ return /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [e ? /* @__PURE__ */ (0, C.jsx)(ORe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, C.jsx)(SRe, {})] });
}
- var sJ = () => /* @__PURE__ */ (0, C.jsx)("div", {
-var Rq = () => /* @__PURE__ */ (0, C.jsx)("div", {
++var dJ = () => /* @__PURE__ */ (0, C.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: XIe() }
- dangerouslySetInnerHTML: { __html: nIe() }
++ dangerouslySetInnerHTML: { __html: KIe() }
});
- function cJ(e) {
-function zq(e) {
++function fJ(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
- function MRe({ view: e }) {
-function RLe({ view: e }) {
++function ORe({ view: e }) {
let t = (0, S.useRef)(null);
(0, S.useLayoutEffect)(() => {
let e = t.current, n = (e) => {
- e.preventDefault(), lJ();
- e.preventDefault(), Bq();
++ e.preventDefault(), pJ();
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, C.jsx)(VLe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, C.jsx)(cRe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, C.jsx)(SLe, { ...r.props }, r.props.id);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, C.jsx)(qIe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, C.jsx)(mLe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, C.jsx)(OIe, { ...r.props }, r.props.id);
++ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, C.jsx)(LLe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, C.jsx)(iRe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, C.jsx)(vLe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, C.jsxs)("dialog", {
ref: t,
id: "stage",
@@@ -79396,20 -77805,20 +79402,20 @@@
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), lJ());
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), Bq());
++ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), pJ());
},
onPointerDown: (e) => {
- rJ = cJ(e);
- Pq = zq(e);
++ sJ = fJ(e);
},
onClick: (e) => {
- rJ && cJ(e) && lJ();
- Pq && zq(e) && Bq();
++ sJ && fJ(e) && pJ();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, C.jsx)(sJ, {}, "skeleton") : null,
- n === "skeleton" ? /* @__PURE__ */ (0, C.jsx)(Rq, {}, "skeleton") : null,
++ n === "skeleton" ? /* @__PURE__ */ (0, C.jsx)(dJ, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, C.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, C.jsx)(sJ, {})
- children: /* @__PURE__ */ (0, C.jsx)(Rq, {})
++ children: /* @__PURE__ */ (0, C.jsx)(dJ, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, C.jsx)("div", {
"data-stage-scroll": "",
@@@ -79421,14 -77830,14 +79427,14 @@@
]
});
}
- function lJ() {
- Qq && !nJ && (nJ = !0, Qq.request.actions.close());
-function Bq() {
- kq && !Nq && (Nq = !0, kq.request.actions.close());
++function pJ() {
++ nJ && !oJ && (oJ = !0, nJ.request.actions.close());
}
- function uJ(e, t) {
- let n = iJ();
-function Vq(e, t) {
- let n = Fq();
++function mJ(e, t) {
++ let n = cJ();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
- function dJ(e) {
-function Hq(e) {
++function hJ(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@@ -79436,30 -77845,30 +79442,30 @@@
readOnly: e.readOnly,
actions: {
...e.actions,
- close: lJ
- close: Bq
++ close: pJ
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => aJ().player.settings(), i = () => Qq?.request === e;
- }, r = () => Iq().player.settings(), i = () => kq?.request === e;
++ }, r = () => lJ().player.settings(), i = () => nJ?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: lJ,
- close: Bq,
++ close: pJ,
present: (e, t) => {
let n = e.performers;
- Oq({
- aq({
++ Mq({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), uJ(r().ambientMode, r().theaterMode), queueMicrotask(() => {
- }), Vq(r().ambientMode, r().theaterMode), queueMicrotask(() => {
++ }), mJ(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => kq(e, {
- mountPlayer: (e, t, r, i) => oq(e, {
++ mountPlayer: (e, t, r, i) => Nq(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@@ -79477,18 -77886,18 +79483,18 @@@
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: lJ,
- close: Bq,
++ close: pJ,
present: (e, t) => {
- Oq({
- aq({
++ Mq({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), uJ(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
- }), Vq(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
++ }), mJ(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => kq(e, {
- mountPlayer: (e, t, r, i) => oq(e, {
++ mountPlayer: (e, t, r, i) => Nq(e, {
kind: "follow",
item: t,
media: r,
@@@ -79505,50 -77914,50 +79511,50 @@@
}
};
}
- function NRe(e, t) {
-function zLe(e, t) {
++function kRe(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 = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), Qq?.generation === t && Qq.phase === "reveal" && (Qq = {
- ...Qq,
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), kq?.generation === t && kq.phase === "reveal" && (kq = {
- ...kq,
++ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), nJ?.generation === t && nJ.phase === "reveal" && (nJ = {
++ ...nJ,
phase: "content"
- }, oJ());
- }, Lq());
++ }, uJ());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
- function fJ(e) {
- let t = iJ();
- return !Qq || Qq.content.kind !== e || nJ || !t?.open || t.hasAttribute("data-closing") ? null : t;
-function Uq(e) {
- let t = Fq();
- return !kq || kq.content.kind !== e || Nq || !t?.open || t.hasAttribute("data-closing") ? null : t;
++function gJ(e) {
++ let t = cJ();
++ return !nJ || nJ.content.kind !== e || oJ || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
- async function PRe(e) {
- let t = fJ(e.kind);
-async function BLe(e) {
- let t = Uq(e.kind);
++async function ARe(e) {
++ let t = gJ(e.kind);
if (t) {
- await IRe(e, t);
- await HLe(e, t);
++ await MRe(e, t);
return;
}
- Qq && pJ({ miniplayer: !1 });
- let n = ++eJ, r = new AbortController();
- tJ = r, nJ = !1, rJ = !1, e.kind === "jav" ? Wq() : Mq(e.kind, e.id ?? NaN);
- let i = dJ(e);
- Qq = {
- kq && Wq({ miniplayer: !1 });
- let n = ++jq, r = new AbortController();
- Mq = r, Nq = !1, Pq = !1, e.kind === "jav" ? xq() : lq(e.kind, e.id ?? NaN);
- let i = Hq(e);
- kq = {
++ nJ && _J({ miniplayer: !1 });
++ let n = ++iJ, r = new AbortController();
++ aJ = r, oJ = !1, sJ = !1, e.kind === "jav" ? Jq() : Iq(e.kind, e.id ?? NaN);
++ let i = hJ(e);
++ nJ = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? xfe(i.props, r.signal) : i.kind === "jav" ? tq(i.props, r.signal) : DK(i.props, r.signal);
- if (n !== eJ || Qq?.request !== e) {
- let a = i.kind === "item" ? cfe(i.props, r.signal) : i.kind === "jav" ? MK(i.props, r.signal) : iK(i.props, r.signal);
- if (n !== jq || kq?.request !== e) {
++ let a = i.kind === "item" ? yfe(i.props, r.signal) : i.kind === "jav" ? aq(i.props, r.signal) : jK(i.props, r.signal);
++ if (n !== iJ || nJ?.request !== e) {
await a.catch(() => {});
return;
}
- let o = FRe(i);
- Qq = {
- ...Qq,
- let o = VLe(i);
- kq = {
- ...kq,
++ let o = jRe(i);
++ nJ = {
++ ...nJ,
phase: o ? "content" : "skeleton"
- }, oJ();
- let s = iJ();
- }, Lq();
- let s = Fq();
++ }, uJ();
++ let s = cJ();
if (!s) {
await a.catch(() => {});
return;
@@@ -79559,46 -77968,46 +79565,46 @@@
} catch {
if (r.signal.aborted) return;
}
- if (n !== eJ || !Qq || o) return;
- if (n !== jq || !kq || o) return;
++ if (n !== iJ || !nJ || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- Qq = {
- ...Qq,
- kq = {
- ...kq,
++ nJ = {
++ ...nJ,
phase: c ? "content" : "reveal"
- }, oJ(), c || NRe(s, n), Go(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
- }, Lq(), c || zLe(s, n), Go(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
++ }, uJ(), c || kRe(s, n), Go(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
(l === s || !s.contains(l)) && s.querySelector("#closeStage")?.focus();
}
- function FRe(e) {
- if (e.kind === "jav") return !!U.getQueryData($K(e.props.code));
- if (e.kind === "follow") return !!U.getQueryData(wK(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? U.getQueryData(CD(t)) : null;
-function VLe(e) {
- if (e.kind === "jav") return !!W.getQueryData(AK(e.props.code));
- if (e.kind === "follow") return !!W.getQueryData(tK(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? W.getQueryData(CD(t)) : null;
++function jRe(e) {
++ if (e.kind === "jav") return !!U.getQueryData(rq(e.props.code));
++ if (e.kind === "follow") return !!U.getQueryData(OK(e.props.id));
++ let { queue: t, id: n } = e.props, r = t ? U.getQueryData(TD(t)) : null;
if (t && !r) return !1;
-- let i = r ? kD(r, n) : n;
- return i != null && !!U.getQueryData(SD(i));
- return i != null && !!W.getQueryData(SD(i));
++ let i = r ? jD(r, n) : n;
++ return i != null && !!U.getQueryData(wD(i));
}
- async function IRe(e, t) {
- let n = ++eJ;
- tJ?.abort();
-async function HLe(e, t) {
- let n = ++jq;
- Mq?.abort();
++async function MRe(e, t) {
++ let n = ++iJ;
++ aJ?.abort();
let r = new AbortController();
- tJ = r, rJ = !1;
- let i = dJ(e);
- Mq = r, Pq = !1;
- let i = Hq(e);
++ aJ = r, sJ = !1;
++ let i = hJ(e);
try {
- i.kind === "item" ? await xfe(i.props, r.signal) : i.kind === "jav" ? await tq(i.props, r.signal) : await DK(i.props, r.signal);
- i.kind === "item" ? await cfe(i.props, r.signal) : i.kind === "jav" ? await MK(i.props, r.signal) : await iK(i.props, r.signal);
++ i.kind === "item" ? await yfe(i.props, r.signal) : i.kind === "jav" ? await aq(i.props, r.signal) : await jK(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== eJ || !Qq || fJ(e.kind) !== t) return;
- e.kind === "jav" ? Wq() : Mq(e.kind, e.id ?? NaN), wc(t), HE(), Qq = {
- ...Qq,
- if (n !== jq || !kq || Uq(e.kind) !== t) return;
- e.kind === "jav" ? xq() : lq(e.kind, e.id ?? NaN), wc(t), HE(), kq = {
- ...kq,
++ if (n !== iJ || !nJ || gJ(e.kind) !== t) return;
++ e.kind === "jav" ? Jq() : Iq(e.kind, e.id ?? NaN), wc(t), WE(), nJ = {
++ ...nJ,
request: e,
content: i,
phase: "content"
- }, oJ(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Go(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
- }, Lq(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Go(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
++ }, uJ(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), Go(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
(a === t || !t.contains(a)) && (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
- function LRe() {
- let e = iJ();
-function ULe() {
- let e = Fq();
++function NRe() {
++ let e = cJ();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@@ -79608,85 -78017,85 +79614,85 @@@
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
- function pJ({ miniplayer: e = !0 } = {}) {
- if (eJ++, tJ?.abort(), tJ = null, jq(e), !Qq) return;
- let t = iJ();
- t && wc(t), HE(), t?.open && t.close(), Qq = null, nJ = !1, rJ = !1, oJ(), Oq(null), document.body.removeAttribute("data-detail-open");
-function Wq({ miniplayer: e = !0 } = {}) {
- if (jq++, Mq?.abort(), Mq = null, cq(e), !kq) return;
- let t = Fq();
- t && wc(t), HE(), t?.open && t.close(), kq = null, Nq = !1, Pq = !1, Lq(), aq(null), document.body.removeAttribute("data-detail-open");
++function _J({ miniplayer: e = !0 } = {}) {
++ if (iJ++, aJ?.abort(), aJ = null, Fq(e), !nJ) return;
++ let t = cJ();
++ t && wc(t), WE(), t?.open && t.close(), nJ = null, oJ = !1, sJ = !1, uJ(), Mq(null), document.body.removeAttribute("data-detail-open");
}
- function RRe(e) {
- Qq && (Qq = {
- ...Qq,
- content: Qq.content.kind === "item" ? {
-function WLe(e) {
- kq && (kq = {
- ...kq,
- content: kq.content.kind === "item" ? {
++function PRe(e) {
++ nJ && (nJ = {
++ ...nJ,
++ content: nJ.content.kind === "item" ? {
kind: "item",
props: {
- ...Qq.content.props,
- ...kq.content.props,
++ ...nJ.content.props,
...e
}
- } : Qq.content.kind === "jav" ? Qq.content : {
- } : kq.content.kind === "jav" ? kq.content : {
++ } : nJ.content.kind === "jav" ? nJ.content : {
kind: "follow",
props: {
- ...Qq.content.props,
- ...kq.content.props,
++ ...nJ.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, oJ());
- }, Lq());
++ }, uJ());
}
- function zRe() {
- let e = gRe(), t = e?.kind === "item" ? e.item : null, n = t ? ka(t, aJ().player.settings().javImage) : "";
-function GLe() {
- let e = SLe(), t = e?.kind === "item" ? e.item : null, n = t ? ka(t, Iq().player.settings().javImage) : "";
++function FRe() {
++ let e = fRe(), t = e?.kind === "item" ? e.item : null, n = t ? ka(t, lJ().player.settings().javImage) : "";
if (!n) return;
- let r = Aq();
- let r = sq();
++ let r = Pq();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
- var BRe = {
- open: PRe,
- update: RRe,
- exit: LRe,
- dispose: pJ,
- requestClose: lJ,
- repaintPoster: zRe,
- isOpen: () => !!Qq,
- showing: () => Qq && fJ(Qq.content.kind) ? Qq.content.kind : null,
- activeVideo: () => bRe(),
- mountWallPlayer: _Re,
-var KLe = {
- open: BLe,
- update: WLe,
- exit: ULe,
- dispose: Wq,
- requestClose: Bq,
- repaintPoster: GLe,
- isOpen: () => !!kq,
- showing: () => kq && Uq(kq.content.kind) ? kq.content.kind : null,
- activeVideo: () => ELe(),
- mountWallPlayer: CLe,
++var IRe = {
++ open: ARe,
++ update: PRe,
++ exit: NRe,
++ dispose: _J,
++ requestClose: pJ,
++ repaintPoster: FRe,
++ isOpen: () => !!nJ,
++ showing: () => nJ && gJ(nJ.content.kind) ? nJ.content.kind : null,
++ activeVideo: () => gRe(),
++ mountWallPlayer: pRe,
toggleTheater: () => {
- Qq && cde(!aJ().player.settings().theaterMode);
- kq && Yue(!Iq().player.settings().theaterMode);
++ nJ && ode(!lJ().player.settings().theaterMode);
},
- toggleMiniplayer: () => Kq(),
- closeMiniplayer: () => Wq(),
- miniplayerActive: () => Pq(),
- miniplayerTakesCard: (e) => Jq(e),
- toggleMiniplayer: () => Cq(),
- closeMiniplayer: () => xq(),
- miniplayerActive: () => dq(),
- miniplayerTakesCard: (e) => Tq(e),
++ toggleMiniplayer: () => Xq(),
++ closeMiniplayer: () => Jq(),
++ miniplayerActive: () => Rq(),
++ miniplayerTakesCard: (e) => Qq(e),
miniplayerPlay: (e) => {
- wRe(e);
- ALe(e);
++ bRe(e);
}
};
- function VRe(e) {
- return Zq = e, hRe(e, {
- isOpen: () => !!Qq,
- requestClose: lJ
- }), BRe;
-function qLe(e) {
- return Oq = e, xLe(e, {
- isOpen: () => !!kq,
- requestClose: Bq
- }), KLe;
++function LRe(e) {
++ return tJ = e, dRe(e, {
++ isOpen: () => !!nJ,
++ requestClose: pJ
++ }), IRe;
}
- function HRe() {
- let e = (0, S.useSyncExternalStore)(kRe, () => Qq);
- return Zq ? /* @__PURE__ */ (0, C.jsx)(jRe, { view: e }) : null;
-function JLe() {
- let e = (0, S.useSyncExternalStore)(FLe, () => kq);
- return Oq ? /* @__PURE__ */ (0, C.jsx)(LLe, { view: e }) : null;
++function RRe() {
++ let e = (0, S.useSyncExternalStore)(TRe, () => nJ);
++ return tJ ? /* @__PURE__ */ (0, C.jsx)(DRe, { view: e }) : null;
}
//#endregion
//#region src/react/stats/stats.ts
- var URe = "/api/stats", mJ = ["stats"], hJ = (e) => yn(URe, e);
- async function WRe(e) {
-var YLe = "/api/stats", Gq = ["stats"], Kq = (e) => H(YLe, e);
-async function XLe(e) {
- await W.fetchQuery({
- queryKey: Gq,
- queryFn: () => Kq(e)
- });
-}
-var qq = (e) => e != null && Number.isFinite(e), Jq = (e) => qq(e) ? e.toLocaleString() : "未取得", ZLe = (e, t) => qq(e) && qq(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, Yq = (e, t) => {
- let n = ZLe(e, t);
- return !n && qq(e) && e > 0 && qq(t) && t > 0 ? "<1%" : `${n}%`;
-}, Xq = (e) => {
- if (!qq(e)) return "未取得";
++var zRe = "/api/stats", vJ = ["stats"], yJ = (e) => yn(zRe, e);
++async function BRe(e) {
+ await U.fetchQuery({
- queryKey: mJ,
- queryFn: () => hJ(e)
++ queryKey: vJ,
++ queryFn: () => yJ(e)
+ });
+}
- var gJ = (e) => e != null && Number.isFinite(e), _J = (e) => gJ(e) ? e.toLocaleString() : "未取得", GRe = (e, t) => gJ(e) && gJ(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, vJ = (e, t) => {
- let n = GRe(e, t);
- return !n && gJ(e) && e > 0 && gJ(t) && t > 0 ? "<1%" : `${n}%`;
- }, yJ = (e) => {
- if (!gJ(e)) return "未取得";
++var bJ = (e) => e != null && Number.isFinite(e), xJ = (e) => bJ(e) ? e.toLocaleString() : "未取得", VRe = (e, t) => bJ(e) && bJ(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, SJ = (e, t) => {
++ let n = VRe(e, t);
++ return !n && bJ(e) && e > 0 && bJ(t) && t > 0 ? "<1%" : `${n}%`;
++}, CJ = (e) => {
++ if (!bJ(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)} 分钟`;
- }, bJ = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, xJ = (e) => (e.max_reached || 0) * 100, KRe = (e) => e.kind === "online" ? "在线直接观看" : bJ(e) < xJ(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", qRe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
- function JRe(e, t = 6) {
-}, Zq = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, Qq = (e) => (e.max_reached || 0) * 100, QLe = (e) => e.kind === "online" ? "在线直接观看" : Zq(e) < Qq(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", $Le = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function eRe(e, t = 6) {
++}, wJ = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, TJ = (e) => (e.max_reached || 0) * 100, HRe = (e) => e.kind === "online" ? "在线直接观看" : wJ(e) < TJ(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", URe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
++function WRe(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);
@@@ -79696,7 -78105,7 +79702,7 @@@
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
- var YRe = (e) => Math.max(1, ...e) * 1.1, XRe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, ZRe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), QRe = {
-var tRe = (e) => Math.max(1, ...e) * 1.1, nRe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, rRe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), iRe = {
++var GRe = (e) => Math.max(1, ...e) * 1.1, KRe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, qRe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), JRe = {
video: "视频",
image: "图片",
illustration: "插画",
@@@ -79704,18 -78113,18 +79710,18 @@@
audio: "音频",
account: "账号",
other: "其它文件"
- }, $Re = (e) => e.map((e) => ({
- name: QRe[e.k] ?? e.k,
-}, aRe = (e) => e.map((e) => ({
- name: iRe[e.k] ?? e.k,
++}, YRe = (e) => e.map((e) => ({
++ name: JRe[e.k] ?? e.k,
value: e.n
- })).sort((e, t) => t.value - e.value), eze = {
-})).sort((e, t) => t.value - e.value), oRe = {
++})).sort((e, t) => t.value - e.value), XRe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
- }, SJ = (e, t = {}) => e.map((e) => ({
-}, $q = (e, t = {}) => e.map((e) => ({
++}, EJ = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
- })), tze = (e) => SJ(e, eze), nze = [
-})), sRe = (e) => $q(e, oRe), cRe = [
++})), ZRe = (e) => EJ(e, XRe), QRe = [
[
1,
1,
@@@ -79751,49 -78160,49 +79757,49 @@@
Infinity,
"≥10"
]
- ], rze = (e) => nze.map(([t, n, r]) => ({
-], lRe = (e) => cRe.map(([t, n, r]) => ({
++], $Re = (e) => QRe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
- })), ize = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
- function CJ(e) {
- return typeof e == "string" && ize.includes(e);
-})), uRe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
-function eJ(e) {
- return typeof e == "string" && uRe.includes(e);
++})), eze = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");
++function DJ(e) {
++ return typeof e == "string" && eze.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js
- var aze = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
- function wJ(e) {
- return typeof e == "string" && aze.has(e);
-var dRe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
-function tJ(e) {
- return typeof e == "string" && dRe.has(e);
++var tze = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));
++function OJ(e) {
++ return typeof e == "string" && tze.has(e);
}
- function TJ(e) {
-function nJ(e) {
++function kJ(e) {
return typeof e == "string" && e.startsWith("data-");
}
- function EJ(e) {
-function rJ(e) {
++function AJ(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wJ(n) || TJ(n)) && (t[n] = e[n]);
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (tJ(n) || nJ(n)) && (t[n] = e[n]);
++ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (OJ(n) || kJ(n)) && (t[n] = e[n]);
return t;
}
- function DJ(e) {
-function iJ(e) {
++function jJ(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, S.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return EJ(t);
- return rJ(t);
++ return AJ(t);
}
- return typeof e == "object" && !Array.isArray(e) ? EJ(e) : null;
- return typeof e == "object" && !Array.isArray(e) ? rJ(e) : null;
++ return typeof e == "object" && !Array.isArray(e) ? AJ(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
- function OJ(e) {
-function aJ(e) {
++function MJ(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (wJ(n) || TJ(n) || CJ(n)) && (t[n] = e[n]);
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (tJ(n) || nJ(n) || eJ(n)) && (t[n] = e[n]);
++ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (OJ(n) || kJ(n) || DJ(n)) && (t[n] = e[n]);
return t;
}
- function oze(e) {
- return e == null ? null : /*#__PURE__*/ (0, S.isValidElement)(e) ? OJ(e.props) : typeof e == "object" && !Array.isArray(e) ? OJ(e) : null;
-function fRe(e) {
- return e == null ? null : /*#__PURE__*/ (0, S.isValidElement)(e) ? aJ(e.props) : typeof e == "object" && !Array.isArray(e) ? aJ(e) : null;
++function nze(e) {
++ return e == null ? null : /*#__PURE__*/ (0, S.isValidElement)(e) ? MJ(e.props) : typeof e == "object" && !Array.isArray(e) ? MJ(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
- var sze = [
-var pRe = [
++var rze = [
"children",
"width",
"height",
@@@ -79803,25 -78212,25 +79809,25 @@@
"title",
"desc"
];
- function kJ() {
- return kJ = Object.assign ? Object.assign.bind() : function(e) {
-function oJ() {
- return oJ = Object.assign ? Object.assign.bind() : function(e) {
++function NJ() {
++ return NJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, kJ.apply(null, arguments);
- }, oJ.apply(null, arguments);
++ }, NJ.apply(null, arguments);
}
- function cze(e, t) {
-function mRe(e, t) {
++function ize(e, t) {
if (e == null) return {};
- var n, r, i = lze(e, t);
- var n, r, i = hRe(e, t);
++ var n, r, i = aze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
- function lze(e, t) {
-function hRe(e, t) {
++function aze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@@ -79830,14 -78239,14 +79836,14 @@@
}
return n;
}
- var AJ = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = cze(e, sze), d = a || {
-var sJ = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = mRe(e, pRe), d = a || {
++var PJ = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
++ var n = e.children, r = e.width, i = e.height, a = e.viewBox, o = e.className, s = e.style, c = e.title, l = e.desc, u = ize(e, rze), d = a || {
width: r,
height: i,
x: 0,
y: 0
- }, f = ny("recharts-surface", o);
- return /*#__PURE__*/ S.createElement("svg", oJ({}, aJ(u), {
+ }, f = ey("recharts-surface", o);
- return /*#__PURE__*/ S.createElement("svg", kJ({}, OJ(u), {
++ return /*#__PURE__*/ S.createElement("svg", NJ({}, MJ(u), {
className: f,
width: r,
height: i,
@@@ -79845,26 -78254,26 +79851,26 @@@
viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,
ref: t
}), /*#__PURE__*/ S.createElement("title", null, c), /*#__PURE__*/ S.createElement("desc", null, l), n);
- }), uze = ["children", "className"];
- function jJ() {
- return jJ = Object.assign ? Object.assign.bind() : function(e) {
-}), gRe = ["children", "className"];
-function cJ() {
- return cJ = Object.assign ? Object.assign.bind() : function(e) {
++}), oze = ["children", "className"];
++function FJ() {
++ return FJ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, jJ.apply(null, arguments);
- }, cJ.apply(null, arguments);
++ }, FJ.apply(null, arguments);
}
- function dze(e, t) {
-function _Re(e, t) {
++function sze(e, t) {
if (e == null) return {};
- var n, r, i = fze(e, t);
- var n, r, i = vRe(e, t);
++ var n, r, i = cze(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
- function fze(e, t) {
-function vRe(e, t) {
++function cze(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@@ -79873,54 -78282,54 +79879,54 @@@
}
return n;
}
- var MJ = /*#__PURE__*/ S.forwardRef((e, t) => {
- var n = e.children, r = e.className, i = dze(e, uze), a = ey("recharts-layer", r);
- return /*#__PURE__*/ S.createElement("g", jJ({ className: a }, OJ(i), { ref: t }), n);
-var lJ = /*#__PURE__*/ S.forwardRef((e, t) => {
- var n = e.children, r = e.className, i = _Re(e, gRe), a = ny("recharts-layer", r);
- return /*#__PURE__*/ S.createElement("g", cJ({ className: a }, aJ(i), { ref: t }), n);
++var IJ = /*#__PURE__*/ S.forwardRef((e, t) => {
++ var n = e.children, r = e.className, i = sze(e, oze), a = ey("recharts-layer", r);
++ return /*#__PURE__*/ S.createElement("g", FJ({ className: a }, MJ(i), { ref: t }), n);
});
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
- function NJ(e) {
-function uJ(e) {
++function LJ(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
- var pze = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
- function PJ(e) {
-var yRe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function dJ(e) {
++var lze = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
++function RJ(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : pze.test(e);
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : yRe.test(e);
++ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : lze.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
- function FJ(e) {
-function fJ(e) {
++function zJ(e) {
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
- function IJ(e) {
-function pJ(e) {
++function BJ(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
- function mze(e) {
- return e == null ? "" : LJ(e);
-function bRe(e) {
- return e == null ? "" : mJ(e);
++function uze(e) {
++ return e == null ? "" : VJ(e);
}
- function LJ(e) {
-function mJ(e) {
++function VJ(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(LJ).join(",");
- if (IJ(e)) return e.toString();
- if (Array.isArray(e)) return e.map(mJ).join(",");
- if (pJ(e)) return e.toString();
++ if (Array.isArray(e)) return e.map(VJ).join(",");
++ if (BJ(e)) return e.toString();
let t = e + "";
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs
- function RJ(e) {
- if (Array.isArray(e)) return e.map(FJ);
-function hJ(e) {
- if (Array.isArray(e)) return e.map(fJ);
++function HJ(e) {
++ if (Array.isArray(e)) return e.map(zJ);
if (typeof e == "symbol") return [e];
- e = mze(e);
- e = bRe(e);
++ e = uze(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@@ -79948,86 -78357,86 +79954,86 @@@
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
- function zJ(e, t, n) {
-function gJ(e, t, n) {
++function UJ(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (NJ(t)) return n;
- if (uJ(t)) return n;
++ if (LJ(t)) return n;
let r = e[t];
- return r === void 0 ? PJ(t) && !Object.hasOwn(e, t) ? zJ(e, RJ(t), n) : n : r;
- return r === void 0 ? dJ(t) && !Object.hasOwn(e, t) ? gJ(e, hJ(t), n) : n : r;
++ return r === void 0 ? RJ(t) && !Object.hasOwn(e, t) ? UJ(e, HJ(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = FJ(t));
- typeof t == "number" && (t = fJ(t));
++ typeof t == "number" && (t = zJ(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return hze(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), NJ(t)) return n;
- if (Array.isArray(t)) return xRe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), uJ(t)) return n;
++ if (Array.isArray(t)) return dze(e, t, n);
++ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), LJ(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
- function hze(e, t, n) {
-function xRe(e, t, n) {
++function dze(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || NJ(t[e])) return n;
- if (r == null || uJ(t[e])) return n;
++ if (r == null || LJ(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
- var gze = 4;
- function BJ(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gze), n = Math.round(e * t) / t;
-var SRe = 4;
-function _J(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : SRe), n = Math.round(e * t) / t;
++var fze = 4;
++function WJ(e) {
++ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fze), n = Math.round(e * t) / t;
return Object.is(n, -0) ? 0 : n;
}
- function VJ(e) {
-function vJ(e) {
++function GJ(e) {
var t = [...arguments].slice(1);
return e.reduce((e, n, r) => {
var i = t[r - 1];
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + BJ(i) + n;
- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + _J(i) + n;
++ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + WJ(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
- var HJ = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, UJ = (e) => typeof e == "number" && e != +e, WJ = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, GJ = (e) => (typeof e == "number" || e instanceof Number) && !UJ(e), KJ = (e) => GJ(e) || typeof e == "string", _ze = 0, qJ = (e) => {
- var t = ++_ze;
-var yJ = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, bJ = (e) => typeof e == "number" && e != +e, xJ = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, SJ = (e) => (typeof e == "number" || e instanceof Number) && !bJ(e), CJ = (e) => SJ(e) || typeof e == "string", CRe = 0, wJ = (e) => {
- var t = ++CRe;
++var KJ = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, qJ = (e) => typeof e == "number" && e != +e, JJ = (e) => typeof e == "string" && e.length > 1 && e.indexOf("%") === e.length - 1, YJ = (e) => (typeof e == "number" || e instanceof Number) && !qJ(e), XJ = (e) => YJ(e) || typeof e == "string", pze = 0, ZJ = (e) => {
++ var t = ++pze;
return `${e || ""}${t}`;
- }, JJ = function(e, t) {
-}, TJ = function(e, t) {
++}, QJ = function(e, t) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
- if (!GJ(e) && typeof e != "string") return n;
- if (!SJ(e) && typeof e != "string") return n;
++ if (!YJ(e) && typeof e != "string") return n;
var i;
- if (WJ(e)) {
- if (xJ(e)) {
++ if (JJ(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return UJ(i) && (i = n), r && t != null && i > t && (i = t), i;
- }, YJ = (e) => {
- return bJ(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, EJ = (e) => {
++ return qJ(i) && (i = n), r && t != null && i > t && (i = t), i;
++}, $J = (e) => {
if (!Array.isArray(e)) return !1;
for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;
else return !0;
return !1;
};
- function XJ(e, t, n) {
- return GJ(e) && GJ(t) ? BJ(e + n * (t - e)) : t;
-function DJ(e, t, n) {
- return SJ(e) && SJ(t) ? _J(e + n * (t - e)) : t;
++function eY(e, t, n) {
++ return YJ(e) && YJ(t) ? WJ(e + n * (t - e)) : t;
}
- function ZJ(e, t, n) {
- if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : zJ(e, t)) === n);
-function OJ(e, t, n) {
- if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : gJ(e, t)) === n);
++function tY(e, t, n) {
++ if (e && e.length) return e.find((e) => e && (typeof t == "function" ? t(e) : UJ(e, t)) === n);
}
- var QJ = (e) => e == null, $J = (e) => QJ(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
- function eY(e) {
-var kJ = (e) => e == null, AJ = (e) => kJ(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function jJ(e) {
++var nY = (e) => e == null, rY = (e) => nY(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
++function iY(e) {
return e != null;
}
- function tY() {}
-function MJ() {}
++function aY() {}
//#endregion
//#region node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js
- function nY(e) {
-function NJ(e) {
++function oY(e) {
if (e) return {
x: e.x,
y: e.y,
@@@ -80039,7 -78448,7 +80045,7 @@@
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js
- function rY(e, t) {
-function PJ(e, t) {
++function sY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@@ -80049,30 -78458,30 +80055,30 @@@
}
return n;
}
- function iY(e) {
-function FJ(e) {
++function cY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? rY(Object(n), !0).forEach(function(t) {
- vze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rY(Object(n)).forEach(function(t) {
- t % 2 ? PJ(Object(n), !0).forEach(function(t) {
- wRe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PJ(Object(n)).forEach(function(t) {
++ t % 2 ? sY(Object(n), !0).forEach(function(t) {
++ mze(e, t, n[t]);
++ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sY(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
- function vze(e, t, n) {
- return (t = yze(t)) in e ? Object.defineProperty(e, t, {
-function wRe(e, t, n) {
- return (t = TRe(t)) in e ? Object.defineProperty(e, t, {
++function mze(e, t, n) {
++ return (t = hze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
- function yze(e) {
- var t = bze(e, "string");
-function TRe(e) {
- var t = ERe(e, "string");
++function hze(e) {
++ var t = gze(e, "string");
return typeof t == "symbol" ? t : t + "";
}
- function bze(e, t) {
-function ERe(e, t) {
++function gze(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@@ -80082,8 -78491,8 +80088,8 @@@
}
return (t === "string" ? String : Number)(e);
}
- var aY = (e) => {
- var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = nY(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
-var IJ = (e) => {
- var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = NJ(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
++var lY = (e) => {
++ var t = e.viewBox, n = e.position, r = e.offset, i = r === void 0 ? 0 : r, a = e.parentViewBox, o = e.clamp, s = oY(t), c = s.x, l = s.y, u = s.height, d = s.upperWidth, f = s.lowerWidth, p = c, m = c + (d - f) / 2, h = (p + m) / 2, g = (d + f) / 2, _ = p + d / 2, v = u >= 0 ? 1 : -1, y = v * i, b = v > 0 ? "end" : "start", x = v > 0 ? "start" : "end", S = d >= 0 ? 1 : -1, C = S * i, w = S > 0 ? "end" : "start", T = S > 0 ? "start" : "end", E = a;
if (n === "top") {
var D = {
x: p + d / 2,
@@@ -80124,98 -78533,98 +80130,98 @@@
width: g,
height: u
} : {};
- return n === "insideLeft" ? iY({
- return n === "insideLeft" ? FJ({
++ return n === "insideLeft" ? cY({
x: h + C,
y: l + u / 2,
horizontalAnchor: T,
verticalAnchor: "middle"
- }, j) : n === "insideRight" ? iY({
- }, j) : n === "insideRight" ? FJ({
++ }, j) : n === "insideRight" ? cY({
x: h + g - C,
y: l + u / 2,
horizontalAnchor: w,
verticalAnchor: "middle"
- }, j) : n === "insideTop" ? iY({
- }, j) : n === "insideTop" ? FJ({
++ }, j) : n === "insideTop" ? cY({
x: p + d / 2,
y: l + y,
horizontalAnchor: "middle",
verticalAnchor: x
- }, j) : n === "insideBottom" ? iY({
- }, j) : n === "insideBottom" ? FJ({
++ }, j) : n === "insideBottom" ? cY({
x: m + f / 2,
y: l + u - y,
horizontalAnchor: "middle",
verticalAnchor: b
- }, j) : n === "insideTopLeft" ? iY({
- }, j) : n === "insideTopLeft" ? FJ({
++ }, j) : n === "insideTopLeft" ? cY({
x: p + C,
y: l + y,
horizontalAnchor: T,
verticalAnchor: x
- }, j) : n === "insideTopRight" ? iY({
- }, j) : n === "insideTopRight" ? FJ({
++ }, j) : n === "insideTopRight" ? cY({
x: p + d - C,
y: l + y,
horizontalAnchor: w,
verticalAnchor: x
- }, j) : n === "insideBottomLeft" ? iY({
- }, j) : n === "insideBottomLeft" ? FJ({
++ }, j) : n === "insideBottomLeft" ? cY({
x: m + C,
y: l + u - y,
horizontalAnchor: T,
verticalAnchor: b
- }, j) : n === "insideBottomRight" ? iY({
- }, j) : n === "insideBottomRight" ? FJ({
++ }, j) : n === "insideBottomRight" ? cY({
x: m + f - C,
y: l + u - y,
horizontalAnchor: w,
verticalAnchor: b
- }, j) : n && typeof n == "object" && (GJ(n.x) || WJ(n.x)) && (GJ(n.y) || WJ(n.y)) ? iY({
- x: c + JJ(n.x, g),
- y: l + JJ(n.y, u),
- }, j) : n && typeof n == "object" && (SJ(n.x) || xJ(n.x)) && (SJ(n.y) || xJ(n.y)) ? FJ({
- x: c + TJ(n.x, g),
- y: l + TJ(n.y, u),
++ }, j) : n && typeof n == "object" && (YJ(n.x) || JJ(n.x)) && (YJ(n.y) || JJ(n.y)) ? cY({
++ x: c + QJ(n.x, g),
++ y: l + QJ(n.y, u),
horizontalAnchor: "end",
verticalAnchor: "end"
- }, j) : iY({
- }, j) : FJ({
++ }, j) : cY({
x: _,
y: l + u / 2,
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, j);
- }, xze = [
-}, DRe = [
++}, _ze = [
"top",
"left",
"right",
"bottom"
];
- function oY(e) {
- return e == null ? !1 : typeof e == "object" || xze.includes(e);
-function LJ(e) {
- return e == null ? !1 : typeof e == "object" || DRe.includes(e);
++function uY(e) {
++ return e == null ? !1 : typeof e == "object" || _ze.includes(e);
}
//#endregion
//#region node_modules/recharts/es6/context/legendPortalContext.js
- var sY = /*#__PURE__*/ (0, S.createContext)(null), Sze = () => (0, S.useContext)(sY);
-var RJ = /*#__PURE__*/ (0, S.createContext)(null), ORe = () => (0, S.useContext)(RJ);
++var dY = /*#__PURE__*/ (0, S.createContext)(null), vze = () => (0, S.useContext)(dY);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
- function cY(e) {
-function zJ(e) {
++function fY(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
- var lY = Math.cos, uY = Math.sin, dY = Math.sqrt, fY = Math.PI;
- fY / 2;
- var pY = 2 * fY, mY = Math.PI, hY = 2 * mY, gY = 1e-6, Cze = hY - gY;
- function _Y(e) {
-var BJ = Math.cos, VJ = Math.sin, HJ = Math.sqrt, UJ = Math.PI;
-UJ / 2;
-var WJ = 2 * UJ, GJ = Math.PI, KJ = 2 * GJ, qJ = 1e-6, kRe = KJ - qJ;
-function JJ(e) {
++var pY = Math.cos, mY = Math.sin, hY = Math.sqrt, gY = Math.PI;
++gY / 2;
++var _Y = 2 * gY, vY = Math.PI, yY = 2 * vY, bY = 1e-6, yze = yY - bY;
++function xY(e) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
- function wze(e) {
-function ARe(e) {
++function bze(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return _Y;
- if (t > 15) return JJ;
++ if (t > 15) return xY;
let n = 10 ** t;
return function(e) {
this._ += e[0];
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
};
}
- var vY = class {
-var YJ = class {
++var SY = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? _Y : wze(e);
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? JJ : ARe(e);
++ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? xY : bze(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@@ -80236,18 -78645,18 +80242,18 @@@
if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
- else if (d > gY) {
- if (!(Math.abs(u * s - c * l) > gY) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
- else if (d > qJ) {
- if (!(Math.abs(u * s - c * l) > qJ) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
++ else if (d > bY) {
++ if (!(Math.abs(u * s - c * l) > bY) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
else {
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((mY - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > gY && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((GJ - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > qJ && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
++ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((vY - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
++ Math.abs(y - 1) > bY && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
}
}
}
arc(e, t, n, r, i, a) {
if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > gY || Math.abs(this._y1 - l) > gY) && this._append`L${c},${l}`, n && (d < 0 && (d = d % hY + hY), d > Cze ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > gY && this._append`A${n},${n},0,${+(d >= mY)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > qJ || Math.abs(this._y1 - l) > qJ) && this._append`L${c},${l}`, n && (d < 0 && (d = d % KJ + KJ), d > kRe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > qJ && this._append`A${n},${n},0,${+(d >= GJ)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
++ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > bY || Math.abs(this._y1 - l) > bY) && this._append`L${c},${l}`, n && (d < 0 && (d = d % yY + yY), d > yze ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > bY && this._append`A${n},${n},0,${+(d >= vY)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
}
rect(e, t, n, r) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@@ -80256,10 -78665,10 +80262,10 @@@
return this._;
}
};
- vY.prototype;
-YJ.prototype;
++SY.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
- function yY(e) {
-function XJ(e) {
++function CY(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@@ -80270,18 -78679,18 +80276,18 @@@
t = e;
}
return e;
- }, () => new vY(t);
- }, () => new YJ(t);
++ }, () => new SY(t);
}
Array.prototype.slice;
- function bY(e) {
-function ZJ(e) {
++function wY(e) {
return typeof e == "object" && "length" in e ? e : Array.from(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js
- function xY(e) {
-function QJ(e) {
++function TY(e) {
this._context = e;
}
- xY.prototype = {
-QJ.prototype = {
++TY.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80304,33 -78713,33 +80310,33 @@@
}
}
};
- function SY(e) {
- return new xY(e);
-function $J(e) {
- return new QJ(e);
++function EY(e) {
++ return new TY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
- function CY(e) {
-function eY(e) {
++function DY(e) {
return e[0];
}
- function wY(e) {
-function tY(e) {
++function OY(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
- function TY(e, t) {
- var n = cY(!0), r = null, i = SY, a = null, o = yY(s);
- e = typeof e == "function" ? e : e === void 0 ? CY : cY(e), t = typeof t == "function" ? t : t === void 0 ? wY : cY(t);
-function nY(e, t) {
- var n = zJ(!0), r = null, i = $J, a = null, o = XJ(s);
- e = typeof e == "function" ? e : e === void 0 ? eY : zJ(e), t = typeof t == "function" ? t : t === void 0 ? tY : zJ(t);
++function kY(e, t) {
++ var n = fY(!0), r = null, i = EY, a = null, o = CY(s);
++ e = typeof e == "function" ? e : e === void 0 ? DY : fY(e), t = typeof t == "function" ? t : t === void 0 ? OY : fY(t);
function s(s) {
- var c, l = (s = bY(s)).length, u, d = !1, f;
- var c, l = (s = ZJ(s)).length, u, d = !1, f;
++ var c, l = (s = wY(s)).length, u, d = !1, f;
for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
if (f) return a = null, f + "" || null;
}
return s.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : cY(+t), s) : e;
- return arguments.length ? (e = typeof t == "function" ? t : zJ(+t), s) : e;
++ return arguments.length ? (e = typeof t == "function" ? t : fY(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : cY(+e), s) : t;
- return arguments.length ? (t = typeof e == "function" ? e : zJ(+e), s) : t;
++ return arguments.length ? (t = typeof e == "function" ? e : fY(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : cY(!!e), s) : n;
- return arguments.length ? (n = typeof e == "function" ? e : zJ(!!e), s) : n;
++ return arguments.length ? (n = typeof e == "function" ? e : fY(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@@ -80339,11 -78748,11 +80345,11 @@@
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
- function EY(e, t, n) {
- var r = null, i = cY(!0), a = null, o = SY, s = null, c = yY(l);
- e = typeof e == "function" ? e : e === void 0 ? CY : cY(+e), t = typeof t == "function" ? t : cY(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? wY : cY(+n);
-function rY(e, t, n) {
- var r = null, i = zJ(!0), a = null, o = $J, s = null, c = XJ(l);
- e = typeof e == "function" ? e : e === void 0 ? eY : zJ(+e), t = typeof t == "function" ? t : zJ(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? tY : zJ(+n);
++function AY(e, t, n) {
++ var r = null, i = fY(!0), a = null, o = EY, s = null, c = CY(l);
++ e = typeof e == "function" ? e : e === void 0 ? DY : fY(+e), t = typeof t == "function" ? t : fY(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? OY : fY(+n);
function l(l) {
- var u, d, f, p = (l = bY(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
- var u, d, f, p = (l = ZJ(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
++ var u, d, f, p = (l = wY(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {
if (!(u < p && i(m = l[u], u, l)) === h) {
if (h = !h) d = u, s.areaStart(), s.lineStart();
@@@ -80357,20 -78766,20 +80363,20 @@@
if (g) return s = null, g + "" || null;
}
function u() {
- return TY().defined(i).curve(o).context(a);
- return nY().defined(i).curve(o).context(a);
++ return kY().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : cY(+t), r = null, l) : e;
- return arguments.length ? (e = typeof t == "function" ? t : zJ(+t), r = null, l) : e;
++ return arguments.length ? (e = typeof t == "function" ? t : fY(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : cY(+t), l) : e;
- return arguments.length ? (e = typeof t == "function" ? t : zJ(+t), l) : e;
++ return arguments.length ? (e = typeof t == "function" ? t : fY(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : cY(+e), l) : r;
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : zJ(+e), l) : r;
++ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : fY(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : cY(+e), n = null, l) : t;
- return arguments.length ? (t = typeof e == "function" ? e : zJ(+e), n = null, l) : t;
++ return arguments.length ? (t = typeof e == "function" ? e : fY(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : cY(+e), l) : t;
- return arguments.length ? (t = typeof e == "function" ? e : zJ(+e), l) : t;
++ return arguments.length ? (t = typeof e == "function" ? e : fY(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : cY(+e), l) : n;
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : zJ(+e), l) : n;
++ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : fY(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@@ -80378,7 -78787,7 +80384,7 @@@
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : cY(!!e), l) : i;
- return arguments.length ? (i = typeof e == "function" ? e : zJ(!!e), l) : i;
++ return arguments.length ? (i = typeof e == "function" ? e : fY(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@@ -80387,7 -78796,7 +80393,7 @@@
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
- var DY = class {
-var iY = class {
++var jY = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@@ -80414,70 -78823,70 +80420,70 @@@
this._x0 = e, this._y0 = t;
}
};
- function Tze(e) {
- return new DY(e, !0);
-function jRe(e) {
- return new iY(e, !0);
++function xze(e) {
++ return new jY(e, !0);
}
- function Eze(e) {
- return new DY(e, !1);
-function MRe(e) {
- return new iY(e, !1);
++function Sze(e) {
++ return new jY(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
- var OY = { draw(e, t) {
- let n = dY(t / fY);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, pY);
- } }, Dze = { draw(e, t) {
- let n = dY(t / 5) / 2;
-var aY = { draw(e, t) {
- let n = HJ(t / UJ);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, WJ);
-} }, NRe = { draw(e, t) {
- let n = HJ(t / 5) / 2;
++var MY = { draw(e, t) {
++ let n = hY(t / gY);
++ e.moveTo(n, 0), e.arc(0, 0, n, 0, _Y);
++} }, Cze = { draw(e, t) {
++ let n = hY(t / 5) / 2;
e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
- } }, kY = dY(1 / 3), Oze = kY * 2, kze = { draw(e, t) {
- let n = dY(t / Oze), r = n * kY;
-} }, oY = HJ(1 / 3), PRe = oY * 2, FRe = { draw(e, t) {
- let n = HJ(t / PRe), r = n * oY;
++} }, NY = hY(1 / 3), wze = NY * 2, Tze = { draw(e, t) {
++ let n = hY(t / wze), r = n * NY;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
- } }, Aze = { draw(e, t) {
- let n = dY(t), r = -n / 2;
-} }, IRe = { draw(e, t) {
- let n = HJ(t), r = -n / 2;
++} }, Eze = { draw(e, t) {
++ let n = hY(t), r = -n / 2;
e.rect(r, r, n, n);
- } }, jze = .8908130915292852, AY = uY(fY / 10) / uY(7 * fY / 10), Mze = uY(pY / 10) * AY, Nze = -lY(pY / 10) * AY, Pze = { draw(e, t) {
- let n = dY(t * jze), r = Mze * n, i = Nze * n;
-} }, LRe = .8908130915292852, sY = VJ(UJ / 10) / VJ(7 * UJ / 10), RRe = VJ(WJ / 10) * sY, zRe = -BJ(WJ / 10) * sY, BRe = { draw(e, t) {
- let n = HJ(t * LRe), r = RRe * n, i = zRe * n;
++} }, Dze = .8908130915292852, PY = mY(gY / 10) / mY(7 * gY / 10), Oze = mY(_Y / 10) * PY, kze = -pY(_Y / 10) * PY, Aze = { draw(e, t) {
++ let n = hY(t * Dze), r = Oze * n, i = kze * n;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = pY * t / 5, o = lY(a), s = uY(a);
- let a = WJ * t / 5, o = BJ(a), s = VJ(a);
++ let a = _Y * t / 5, o = pY(a), s = mY(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
- } }, jY = dY(3), Fze = { draw(e, t) {
- let n = -dY(t / (jY * 3));
- e.moveTo(0, n * 2), e.lineTo(-jY * n, -n), e.lineTo(jY * n, -n), e.closePath();
- } }, MY = -.5, NY = dY(3) / 2, PY = 1 / dY(12), Ize = (PY / 2 + 1) * 3, Lze = { draw(e, t) {
- let n = dY(t / Ize), r = n / 2, i = n * PY, a = r, o = n * PY + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(MY * r - NY * i, NY * r + MY * i), e.lineTo(MY * a - NY * o, NY * a + MY * o), e.lineTo(MY * s - NY * c, NY * s + MY * c), e.lineTo(MY * r + NY * i, MY * i - NY * r), e.lineTo(MY * a + NY * o, MY * o - NY * a), e.lineTo(MY * s + NY * c, MY * c - NY * s), e.closePath();
-} }, cY = HJ(3), VRe = { draw(e, t) {
- let n = -HJ(t / (cY * 3));
- e.moveTo(0, n * 2), e.lineTo(-cY * n, -n), e.lineTo(cY * n, -n), e.closePath();
-} }, lY = -.5, uY = HJ(3) / 2, dY = 1 / HJ(12), HRe = (dY / 2 + 1) * 3, URe = { draw(e, t) {
- let n = HJ(t / HRe), r = n / 2, i = n * dY, a = r, o = n * dY + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(lY * r - uY * i, uY * r + lY * i), e.lineTo(lY * a - uY * o, uY * a + lY * o), e.lineTo(lY * s - uY * c, uY * s + lY * c), e.lineTo(lY * r + uY * i, lY * i - uY * r), e.lineTo(lY * a + uY * o, lY * o - uY * a), e.lineTo(lY * s + uY * c, lY * c - uY * s), e.closePath();
++} }, FY = hY(3), jze = { draw(e, t) {
++ let n = -hY(t / (FY * 3));
++ e.moveTo(0, n * 2), e.lineTo(-FY * n, -n), e.lineTo(FY * n, -n), e.closePath();
++} }, IY = -.5, LY = hY(3) / 2, RY = 1 / hY(12), Mze = (RY / 2 + 1) * 3, Nze = { draw(e, t) {
++ let n = hY(t / Mze), r = n / 2, i = n * RY, a = r, o = n * RY + n, s = -a, c = o;
++ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(IY * r - LY * i, LY * r + IY * i), e.lineTo(IY * a - LY * o, LY * a + IY * o), e.lineTo(IY * s - LY * c, LY * s + IY * c), e.lineTo(IY * r + LY * i, IY * i - LY * r), e.lineTo(IY * a + LY * o, IY * o - LY * a), e.lineTo(IY * s + LY * c, IY * c - LY * s), e.closePath();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
- function Rze(e, t) {
- let n = null, r = yY(i);
- e = typeof e == "function" ? e : cY(e || OY), t = typeof t == "function" ? t : cY(t === void 0 ? 64 : +t);
-function WRe(e, t) {
- let n = null, r = XJ(i);
- e = typeof e == "function" ? e : zJ(e || aY), t = typeof t == "function" ? t : zJ(t === void 0 ? 64 : +t);
++function Pze(e, t) {
++ let n = null, r = CY(i);
++ e = typeof e == "function" ? e : fY(e || MY), t = typeof t == "function" ? t : fY(t === void 0 ? 64 : +t);
function i() {
let i;
if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
}
return i.type = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : cY(t), i) : e;
- return arguments.length ? (e = typeof t == "function" ? t : zJ(t), i) : e;
++ return arguments.length ? (e = typeof t == "function" ? t : fY(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : cY(+e), i) : t;
- return arguments.length ? (t = typeof e == "function" ? e : zJ(+e), i) : t;
++ return arguments.length ? (t = typeof e == "function" ? e : fY(+e), i) : t;
}, i.context = function(e) {
return arguments.length ? (n = e ?? null, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js
- function FY() {}
-function fY() {}
++function zY() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
- function IY(e, t, n) {
-function pY(e, t, n) {
++function BY(e, t, n) {
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
}
- function LY(e) {
-function mY(e) {
++function VY(e) {
this._context = e;
}
- LY.prototype = {
-mY.prototype = {
++VY.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80489,7 -78898,7 +80495,7 @@@
},
lineEnd: function() {
switch (this._point) {
- case 3: IY(this, this._x1, this._y1);
- case 3: pY(this, this._x1, this._y1);
++ case 3: BY(this, this._x1, this._y1);
case 2: this._context.lineTo(this._x1, this._y1);
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@@ -80503,22 -78912,22 +80509,22 @@@
this._point = 2;
break;
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
- default: IY(this, e, t);
- default: pY(this, e, t);
++ default: BY(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
- function zze(e) {
- return new LY(e);
-function GRe(e) {
- return new mY(e);
++function Fze(e) {
++ return new VY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
- function RY(e) {
-function hY(e) {
++function HY(e) {
this._context = e;
}
- RY.prototype = {
- areaStart: FY,
- areaEnd: FY,
-hY.prototype = {
- areaStart: fY,
- areaEnd: fY,
++HY.prototype = {
++ areaStart: zY,
++ areaEnd: zY,
lineStart: function() {
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
},
@@@ -80544,20 -78953,20 +80550,20 @@@
case 2:
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
break;
- default: IY(this, e, t);
- default: pY(this, e, t);
++ default: BY(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
- function Bze(e) {
- return new RY(e);
-function KRe(e) {
- return new hY(e);
++function Ize(e) {
++ return new HY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
- function zY(e) {
-function gY(e) {
++function UY(e) {
this._context = e;
}
- zY.prototype = {
-gY.prototype = {
++UY.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80584,22 -78993,22 +80590,22 @@@
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: IY(this, e, t);
- default: pY(this, e, t);
++ default: BY(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
- function Vze(e) {
- return new zY(e);
-function qRe(e) {
- return new gY(e);
++function Lze(e) {
++ return new UY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
- function BY(e) {
-function _Y(e) {
++function WY(e) {
this._context = e;
}
- BY.prototype = {
- areaStart: FY,
- areaEnd: FY,
-_Y.prototype = {
- areaStart: fY,
- areaEnd: fY,
++WY.prototype = {
++ areaStart: zY,
++ areaEnd: zY,
lineStart: function() {
this._point = 0;
},
@@@ -80610,30 -79019,30 +80616,30 @@@
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
- function Hze(e) {
- return new BY(e);
-function JRe(e) {
- return new _Y(e);
++function Rze(e) {
++ return new WY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
- function VY(e) {
-function vY(e) {
++function GY(e) {
return e < 0 ? -1 : 1;
}
- function HY(e, t, n) {
-function yY(e, t, n) {
++function KY(e, t, n) {
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
- return (VY(a) + VY(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
- return (vY(a) + vY(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
++ return (GY(a) + GY(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
- function UY(e, t) {
-function bY(e, t) {
++function qY(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
- function WY(e, t, n) {
-function xY(e, t, n) {
++function JY(e, t, n) {
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
}
- function GY(e) {
-function SY(e) {
++function YY(e) {
this._context = e;
}
- GY.prototype = {
-SY.prototype = {
++YY.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80648,7 -79057,7 +80654,7 @@@
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: WY(this, this._t0, UY(this, this._t0));
- case 3: xY(this, this._t0, bY(this, this._t0));
++ case 3: JY(this, this._t0, qY(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@@ -80663,24 -79072,24 +80669,24 @@@
this._point = 2;
break;
case 2:
- this._point = 3, WY(this, UY(this, n = HY(this, e, t)), n);
- this._point = 3, xY(this, bY(this, n = yY(this, e, t)), n);
++ this._point = 3, JY(this, qY(this, n = KY(this, e, t)), n);
break;
- default: WY(this, this._t0, n = HY(this, e, t));
- default: xY(this, this._t0, n = yY(this, e, t));
++ default: JY(this, this._t0, n = KY(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
- function KY(e) {
- this._context = new qY(e);
-function CY(e) {
- this._context = new wY(e);
++function XY(e) {
++ this._context = new ZY(e);
}
- (KY.prototype = Object.create(GY.prototype)).point = function(e, t) {
- GY.prototype.point.call(this, t, e);
-(CY.prototype = Object.create(SY.prototype)).point = function(e, t) {
- SY.prototype.point.call(this, t, e);
++(XY.prototype = Object.create(YY.prototype)).point = function(e, t) {
++ YY.prototype.point.call(this, t, e);
};
- function qY(e) {
-function wY(e) {
++function ZY(e) {
this._context = e;
}
- qY.prototype = {
-wY.prototype = {
++ZY.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@@ -80694,18 -79103,18 +80700,18 @@@
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
- function Uze(e) {
- return new GY(e);
-function YRe(e) {
- return new SY(e);
++function zze(e) {
++ return new YY(e);
}
- function Wze(e) {
- return new KY(e);
-function XRe(e) {
- return new CY(e);
++function Bze(e) {
++ return new XY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
- function JY(e) {
-function TY(e) {
++function QY(e) {
this._context = e;
}
- JY.prototype = {
-TY.prototype = {
++QY.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80719,7 -79128,7 +80725,7 @@@
var e = this._x, t = this._y, n = e.length;
if (n) {
if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
- else for (var r = YY(e), i = YY(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
- else for (var r = EY(e), i = EY(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
++ else for (var r = $Y(e), i = $Y(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@@ -80727,7 -79136,7 +80733,7 @@@
this._x.push(+e), this._y.push(+t);
}
};
- function YY(e) {
-function EY(e) {
++function $Y(e) {
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
@@@ -80735,15 -79144,15 +80741,15 @@@
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
return [i, a];
}
- function Gze(e) {
- return new JY(e);
-function ZRe(e) {
- return new TY(e);
++function Vze(e) {
++ return new QY(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
- function XY(e, t) {
-function DY(e, t) {
++function eX(e, t) {
this._context = e, this._t = t;
}
- XY.prototype = {
-DY.prototype = {
++eX.prototype = {
areaStart: function() {
this._line = 0;
},
@@@ -80771,78 -79180,78 +80777,78 @@@
this._x = e, this._y = t;
}
};
- function Kze(e) {
- return new XY(e, .5);
-function QRe(e) {
- return new DY(e, .5);
++function Hze(e) {
++ return new eX(e, .5);
}
- function qze(e) {
- return new XY(e, 0);
-function $Re(e) {
- return new DY(e, 0);
++function Uze(e) {
++ return new eX(e, 0);
}
- function Jze(e) {
- return new XY(e, 1);
-function eze(e) {
- return new DY(e, 1);
++function Wze(e) {
++ return new eX(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
- function ZY(e, t) {
-function OY(e, t) {
++function tX(e, t) {
if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js
- function QY(e) {
-function kY(e) {
++function nX(e) {
for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;
return n;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js
- function Yze(e, t) {
-function tze(e, t) {
++function Gze(e, t) {
return e[t];
}
- function Xze(e) {
-function nze(e) {
++function Kze(e) {
let t = [];
return t.key = e, t;
}
- function Zze() {
- var e = cY([]), t = QY, n = ZY, r = Yze;
-function rze() {
- var e = zJ([]), t = kY, n = OY, r = tze;
++function qze() {
++ var e = fY([]), t = nX, n = tX, r = Gze;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Xze), o, s = a.length, c = -1, l;
- var a = Array.from(e.apply(this, arguments), nze), o, s = a.length, c = -1, l;
++ var a = Array.from(e.apply(this, arguments), Kze), o, s = a.length, c = -1, l;
for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;
- for (o = 0, l = bY(t(a)); o < s; ++o) a[l[o]].index = o;
- for (o = 0, l = ZJ(t(a)); o < s; ++o) a[l[o]].index = o;
++ for (o = 0, l = wY(t(a)); o < s; ++o) a[l[o]].index = o;
return n(a, l), a;
}
return i.keys = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : cY(Array.from(t)), i) : e;
- return arguments.length ? (e = typeof t == "function" ? t : zJ(Array.from(t)), i) : e;
++ return arguments.length ? (e = typeof t == "function" ? t : fY(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : cY(+e), i) : r;
- return arguments.length ? (r = typeof e == "function" ? e : zJ(+e), i) : r;
++ return arguments.length ? (r = typeof e == "function" ? e : fY(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? QY : typeof e == "function" ? e : cY(Array.from(e)), i) : t;
- return arguments.length ? (t = e == null ? kY : typeof e == "function" ? e : zJ(Array.from(e)), i) : t;
++ return arguments.length ? (t = e == null ? nX : typeof e == "function" ? e : fY(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? ZY, i) : n;
- return arguments.length ? (n = e ?? OY, i) : n;
++ return arguments.length ? (n = e ?? tX, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
- function Qze(e, t) {
-function ize(e, t) {
++function Jze(e, t) {
if ((r = e.length) > 0) {
for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {
for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;
if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;
}
- ZY(e, t);
- OY(e, t);
++ tX(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
- function $ze(e, t) {
-function aze(e, t) {
++function Yze(e, t) {
if ((i = e.length) > 0) {
for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {
for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;
r[n][1] += r[n][0] = -s / 2;
}
- ZY(e, t);
- OY(e, t);
++ tX(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
- function eBe(e, t) {
-function oze(e, t) {
++function Xze(e, t) {
if ((o = e.length) > 0 && (a = (i = e[t[0]]).length) > 0) {
for (var n = 0, r = 1, i, a, o; r < a; ++r) {
for (var s = 0, c = 0, l = 0; s < o; ++s) {
@@@ -80854,26 -79263,26 +80860,26 @@@
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, ZY(e, t);
- i[r - 1][1] += i[r - 1][0] = n, OY(e, t);
++ i[r - 1][1] += i[r - 1][0] = n, tX(e, t);
}
}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
- var tBe = [
-var sze = [
++var Zze = [
"type",
"size",
"sizeType"
];
- function $Y() {
- return $Y = Object.assign ? Object.assign.bind() : function(e) {
-function AY() {
- return AY = Object.assign ? Object.assign.bind() : function(e) {
++function rX() {
++ return rX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, $Y.apply(null, arguments);
- }, AY.apply(null, arguments);
++ }, rX.apply(null, arguments);
}
- function eX(e, t) {
-function jY(e, t) {
++function iX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@@ -80883,30 -79292,30 +80889,30 @@@
}
return n;
}
- function tX(e) {
-function MY(e) {
++function aX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? eX(Object(n), !0).forEach(function(t) {
- nBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eX(Object(n)).forEach(function(t) {
- t % 2 ? jY(Object(n), !0).forEach(function(t) {
- cze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jY(Object(n)).forEach(function(t) {
++ t % 2 ? iX(Object(n), !0).forEach(function(t) {
++ Qze(e, t, n[t]);
++ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
- function nBe(e, t, n) {
- return (t = rBe(t)) in e ? Object.defineProperty(e, t, {
-function cze(e, t, n) {
- return (t = lze(t)) in e ? Object.defineProperty(e, t, {
++function Qze(e, t, n) {
++ return (t = $ze(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
- function rBe(e) {
- var t = iBe(e, "string");
-function lze(e) {
- var t = uze(e, "string");
++function $ze(e) {
++ var t = eBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
- function iBe(e, t) {
-function uze(e, t) {
++function eBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@@ -80916,16 -79325,16 +80922,16 @@@
}
return (t === "string" ? String : Number)(e);
}
- function aBe(e, t) {
-function dze(e, t) {
++function tBe(e, t) {
if (e == null) return {};
- var n, r, i = oBe(e, t);
- var n, r, i = fze(e, t);
++ var n, r, i = nBe(e, t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(e);
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
}
return i;
}
- function oBe(e, t) {
-function fze(e, t) {
++function nBe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@@ -80934,68 -79343,68 +80940,68 @@@
}
return n;
}
- var nX = {
- symbolCircle: OY,
- symbolCross: Dze,
- symbolDiamond: kze,
- symbolSquare: Aze,
- symbolStar: Pze,
- symbolTriangle: Fze,
- symbolWye: Lze
- }, sBe = Math.PI / 180, cBe = (e) => nX[`symbol${$J(e)}`] || OY, lBe = (e, t, n) => {
-var NY = {
- symbolCircle: aY,
- symbolCross: NRe,
- symbolDiamond: FRe,
- symbolSquare: IRe,
- symbolStar: BRe,
- symbolTriangle: VRe,
- symbolWye: URe
-}, pze = Math.PI / 180, mze = (e) => NY[`symbol${AJ(e)}`] || aY, hze = (e, t, n) => {
++var oX = {
++ symbolCircle: MY,
++ symbolCross: Cze,
++ symbolDiamond: Tze,
++ symbolSquare: Eze,
++ symbolStar: Aze,
++ symbolTriangle: jze,
++ symbolWye: Nze
++}, rBe = Math.PI / 180, iBe = (e) => oX[`symbol${rY(e)}`] || MY, aBe = (e, t, n) => {
if (t === "area") return e;
switch (n) {
case "cross": return 5 * e * e / 9;
case "diamond": return .5 * e * e / Math.sqrt(3);
case "square": return e * e;
case "star":
- var r = 18 * sBe;
- var r = 18 * pze;
++ var r = 18 * rBe;
return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);
case "triangle": return Math.sqrt(3) * e * e / 4;
case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;
default: return Math.PI * e * e / 4;
}
- }, uBe = (e, t) => {
- nX[`symbol${$J(e)}`] = t;
- }, rX = (e) => {
- var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = tX(tX({}, aBe(e, tBe)), {}, {
-}, gze = (e, t) => {
- NY[`symbol${AJ(e)}`] = t;
-}, PY = (e) => {
- var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = MY(MY({}, dze(e, sze)), {}, {
++}, oBe = (e, t) => {
++ oX[`symbol${rY(e)}`] = t;
++}, sX = (e) => {
++ var t = e.type, n = t === void 0 ? "circle" : t, r = e.size, i = r === void 0 ? 64 : r, a = e.sizeType, o = a === void 0 ? "area" : a, s = aX(aX({}, tBe(e, Zze)), {}, {
type: n,
size: i,
sizeType: o
}), c = "circle";
typeof n == "string" && (c = n);
var l = () => {
- var e = cBe(c), t = Rze().type(e).size(lBe(i, o, c))();
- var e = mze(c), t = WRe().type(e).size(hze(i, o, c))();
++ var e = iBe(c), t = Pze().type(e).size(aBe(i, o, c))();
if (t !== null) return t;
- }, u = s.className, d = s.cx, f = s.cy, p = OJ(s);
- return GJ(d) && GJ(f) && GJ(i) ? /*#__PURE__*/ S.createElement("path", $Y({}, p, {
- }, u = s.className, d = s.cx, f = s.cy, p = aJ(s);
- return SJ(d) && SJ(f) && SJ(i) ? /*#__PURE__*/ S.createElement("path", AY({}, p, {
- className: ny("recharts-symbols", u),
++ }, u = s.className, d = s.cx, f = s.cy, p = MJ(s);
++ return YJ(d) && YJ(f) && YJ(i) ? /*#__PURE__*/ S.createElement("path", rX({}, p, {
+ className: ey("recharts-symbols", u),
transform: `translate(${d}, ${f})`,
d: l()
})) : null;
};
- rX.registerSymbol = uBe;
-PY.registerSymbol = gze;
++sX.registerSymbol = oBe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
- var iX = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, aX = (e, t) => {
-var FY = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, IY = (e, t) => {
++var cX = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, lX = (e, t) => {
if (!e || typeof e == "function" || typeof e == "boolean") return null;
var n = e;
if (/*#__PURE__*/ (0, S.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;
var r = {};
return Object.keys(n).forEach((e) => {
- CJ(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
- eJ(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
++ DJ(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
- }, dBe = (e, t, n) => (r) => (e(t, n, r), null), oX = (e, t, n) => {
-}, _ze = (e, t, n) => (r) => (e(t, n, r), null), LY = (e, t, n) => {
++}, sBe = (e, t, n) => (r) => (e(t, n, r), null), uX = (e, t, n) => {
if (e === null || typeof e != "object" && typeof e != "function") return null;
var r = null;
return Object.keys(e).forEach((i) => {
var a = e[i];
- CJ(i) && typeof a == "function" && (r ||= {}, r[i] = dBe(a, t, n));
- eJ(i) && typeof a == "function" && (r ||= {}, r[i] = _ze(a, t, n));
++ DJ(i) && typeof a == "function" && (r ||= {}, r[i] = sBe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
- function sX(e, t) {
-function RY(e, t) {
++function dX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@@ -81005,30 -79414,30 +81011,30 @@@
}
return n;
}
- function fBe(e) {
-function vze(e) {
++function cBe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? sX(Object(n), !0).forEach(function(t) {
- pBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sX(Object(n)).forEach(function(t) {
- t % 2 ? RY(Object(n), !0).forEach(function(t) {
- yze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RY(Object(n)).forEach(function(t) {
++ t % 2 ? dX(Object(n), !0).forEach(function(t) {
++ lBe(e, t, n[t]);
++ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
- function pBe(e, t, n) {
- return (t = mBe(t)) in e ? Object.defineProperty(e, t, {
-function yze(e, t, n) {
- return (t = bze(t)) in e ? Object.defineProperty(e, t, {
++function lBe(e, t, n) {
++ return (t = uBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
- function mBe(e) {
- var t = hBe(e, "string");
-function bze(e) {
- var t = xze(e, "string");
++function uBe(e) {
++ var t = dBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
- function hBe(e, t) {
-function xze(e, t) {
++function dBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@@ -81038,22 -79447,22 +81044,22 @@@
}
return (t === "string" ? String : Number)(e);
}
- function cX(e, t) {
- var n = fBe({}, e), r = t;
-function zY(e, t) {
- var n = vze({}, e), r = t;
++function fX(e, t) {
++ var n = cBe({}, e), r = t;
return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);
}
//#endregion
//#region node_modules/recharts/es6/component/DefaultLegendContent.js
- function lX() {
- return lX = Object.assign ? Object.assign.bind() : function(e) {
-function BY() {
- return BY = Object.assign ? Object.assign.bind() : function(e) {
++function pX() {
++ return pX = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, lX.apply(null, arguments);
- }, BY.apply(null, arguments);
++ }, pX.apply(null, arguments);
}
- function uX(e, t) {
-function VY(e, t) {
++function mX(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@@ -81063,30 -79472,30 +81069,30 @@@
}
return n;
}
- function dX(e) {
-function HY(e) {
++function hX(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? uX(Object(n), !0).forEach(function(t) {
- gBe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uX(Object(n)).forEach(function(t) {
- t % 2 ? VY(Object(n), !0).forEach(function(t) {
- Sze(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VY(Object(n)).forEach(function(t) {
++ t % 2 ? mX(Object(n), !0).forEach(function(t) {
++ fBe(e, t, n[t]);
++ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mX(Object(n)).forEach(function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
- function gBe(e, t, n) {
- return (t = _Be(t)) in e ? Object.defineProperty(e, t, {
-function Sze(e, t, n) {
- return (t = Cze(t)) in e ? Object.defineProperty(e, t, {
++function fBe(e, t, n) {
++ return (t = pBe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
- function _Be(e) {
- var t = vBe(e, "string");
-function Cze(e) {
- var t = wze(e, "string");
++function pBe(e) {
++ var t = mBe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
- function vBe(e, t) {
-function wze(e, t) {
++function mBe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@@ -81096,7 -79505,7 +81102,7 @@@
}
return (t === "string" ? String : Number)(e);
}
- var fX = 32, yBe = {
-var UY = 32, Tze = {
++var gX = 32, hBe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@@ -81104,20 -79513,20 +81110,20 @@@
verticalAlign: "middle",
labelStyle: {}
};
- function bBe(e) {
-function Eze(e) {
++function gBe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
- function xBe(e) {
- var t = e.data, n = e.iconType, r = e.inactiveColor, i = fX / 2, a = fX / 6, o = fX / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
-function Dze(e) {
- var t = e.data, n = e.iconType, r = e.inactiveColor, i = UY / 2, a = UY / 6, o = UY / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
++function _Be(e) {
++ var t = e.data, n = e.iconType, r = e.inactiveColor, i = gX / 2, a = gX / 6, o = gX / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ S.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: bBe(t.payload),
- strokeDasharray: Eze(t.payload),
++ strokeDasharray: gBe(t.payload),
x1: 0,
y1: i,
- x2: fX,
- x2: UY,
++ x2: gX,
y2: i,
className: "recharts-legend-icon"
});
@@@ -81127,35 -79536,35 +81133,35 @@@
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${fX}M${2 * o},${i}
- H${UY}M${2 * o},${i}
++ H${gX}M${2 * o},${i}
A${a},${a},0,1,1,${o},${i}`,
className: "recharts-legend-icon"
});
if (c === "rect") return /*#__PURE__*/ S.createElement("path", {
stroke: "none",
fill: s,
- d: `M0,${fX / 8}h${fX}v${fX * 3 / 4}h${-fX}z`,
- d: `M0,${UY / 8}h${UY}v${UY * 3 / 4}h${-UY}z`,
++ d: `M0,${gX / 8}h${gX}v${gX * 3 / 4}h${-gX}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ S.isValidElement(t.legendIcon)) {
- var l = dX({}, t);
- var l = HY({}, t);
++ var l = hX({}, t);
return delete l.legendIcon, /*#__PURE__*/ S.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ S.createElement(rX, {
- return /*#__PURE__*/ S.createElement(PY, {
++ return /*#__PURE__*/ S.createElement(sX, {
fill: s,
cx: i,
cy: i,
- size: fX,
- size: UY,
++ size: gX,
sizeType: "diameter",
type: c
});
}
- function SBe(e) {
-function Oze(e) {
++function vBe(e) {
var t = e.payload, n = e.iconSize, r = e.layout, i = e.formatter, a = e.inactiveColor, o = e.iconType, s = e.labelStyle, c = {
x: 0,
y: 0,
- width: fX,
- height: fX
- width: UY,
- height: UY
++ width: gX,
++ height: gX
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10,
@@@ -81172,20 -79581,20 +81178,20 @@@
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? dX({}, s) : {};
- var p = typeof s == "object" ? HY({}, s) : {};
++ var p = typeof s == "object" ? hX({}, s) : {};
p.color = t.inactive ? a : p.color || t.color, p.whiteSpace ??= "normal", p.overflowWrap ??= "break-word";
var m = d ? d(t.value, t, r) : t.value;
- return /*#__PURE__*/ S.createElement("li", lX({
- return /*#__PURE__*/ S.createElement("li", BY({
++ return /*#__PURE__*/ S.createElement("li", pX({
className: f,
style: l,
key: `legend-item-${r}`
- }, oX(e, t, r)), /*#__PURE__*/ S.createElement(AJ, {
- }, LY(e, t, r)), /*#__PURE__*/ S.createElement(sJ, {
++ }, uX(e, t, r)), /*#__PURE__*/ S.createElement(PJ, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": t.value == null ? "legend icon" : `${t.value} legend icon`
- }, /*#__PURE__*/ S.createElement(xBe, {
- }, /*#__PURE__*/ S.createElement(Dze, {
++ }, /*#__PURE__*/ S.createElement(_Be, {
data: t,
iconType: o,
inactiveColor: a
@@@ -81195,8 -79604,8 +81201,8 @@@
}, m));
});
}
- var CBe = (e) => {
- var t = cX(e, yBe), n = t.payload, r = t.layout, i = t.align;
-var kze = (e) => {
- var t = zY(e, Tze), n = t.payload, r = t.layout, i = t.align;
++var yBe = (e) => {
++ var t = fX(e, hBe), n = t.payload, r = t.layout, i = t.align;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@@ -81206,11 -79615,11 +81212,11 @@@
return /*#__PURE__*/ S.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ S.createElement(SBe, lX({}, t, { payload: n })));
- }, /*#__PURE__*/ S.createElement(Oze, BY({}, t, { payload: n })));
++ }, /*#__PURE__*/ S.createElement(vBe, pX({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
- function wBe(e, t) {
-function Aze(e, t) {
++function bBe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@@ -81220,56 -79629,56 +81226,56 @@@
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
- function TBe(e, t) {
-function jze(e, t) {
++function xBe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
- function pX(e) {
-function WY(e) {
++function _X(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
- function EBe(e) {
-function Mze(e) {
++function SBe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
- function mX(e) {
- return e != null && typeof e != "function" && EBe(e.length);
-function GY(e) {
- return e != null && typeof e != "function" && Mze(e.length);
++function vX(e) {
++ return e != null && typeof e != "function" && SBe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
- function DBe(e) {
-function Nze(e) {
++function CBe(e) {
return function(t) {
- return zJ(t, e);
- return gJ(t, e);
++ return UJ(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
- function hX(e) {
-function KY(e) {
++function yX(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
- function OBe(e) {
-function Pze(e) {
++function wBe(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
- function gX(e) {
-function qY(e) {
++function bX(e) {
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
- function _X(e) {
-function JY(e) {
++function xX(e) {
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
- var vX = "[object RegExp]", yX = "[object String]", bX = "[object Number]", xX = "[object Boolean]", SX = "[object Arguments]", CX = "[object Symbol]", wX = "[object Date]", TX = "[object Map]", kBe = "[object Set]", ABe = "[object Array]", jBe = "[object Function]", MBe = "[object ArrayBuffer]", EX = "[object Object]", NBe = "[object Error]", PBe = "[object DataView]", FBe = "[object Uint8Array]", IBe = "[object Uint8ClampedArray]", LBe = "[object Uint16Array]", RBe = "[object Uint32Array]", zBe = "[object BigUint64Array]", BBe = "[object Int8Array]", VBe = "[object Int16Array]", HBe = "[object Int32Array]", UBe = "[object BigInt64Array]", WBe = "[object Float32Array]", GBe = "[object Float64Array]", KBe = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
-var YY = "[object RegExp]", XY = "[object String]", ZY = "[object Number]", QY = "[object Boolean]", $Y = "[object Arguments]", eX = "[object Symbol]", tX = "[object Date]", nX = "[object Map]", rX = "[object Set]", iX = "[object Array]", Fze = "[object Function]", aX = "[object ArrayBuffer]", oX = "[object Object]", Ize = "[object Error]", sX = "[object DataView]", cX = "[object Uint8Array]", lX = "[object Uint8ClampedArray]", uX = "[object Uint16Array]", dX = "[object Uint32Array]", Lze = "[object BigUint64Array]", fX = "[object Int8Array]", pX = "[object Int16Array]", mX = "[object Int32Array]", Rze = "[object BigInt64Array]", hX = "[object Float32Array]", gX = "[object Float64Array]", _X = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
++var SX = "[object RegExp]", CX = "[object String]", wX = "[object Number]", TX = "[object Boolean]", TBe = "[object Arguments]", EBe = "[object Symbol]", DBe = "[object Date]", OBe = "[object Map]", kBe = "[object Set]", ABe = "[object Array]", jBe = "[object Function]", MBe = "[object ArrayBuffer]", EX = "[object Object]", NBe = "[object Error]", PBe = "[object DataView]", FBe = "[object Uint8Array]", IBe = "[object Uint8ClampedArray]", LBe = "[object Uint16Array]", RBe = "[object Uint32Array]", zBe = "[object BigUint64Array]", BBe = "[object Int8Array]", VBe = "[object Int16Array]", HBe = "[object Int32Array]", UBe = "[object BigInt64Array]", WBe = "[object Float32Array]", GBe = "[object Float64Array]", KBe = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
return this;
})();
//#endregion
@@@ -81279,13 -79688,13 +81285,13 @@@ function DX(e)
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function zze(e, t) {
- return yX(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function qBe(e, t) {
+ return OX(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function yX(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function OX(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (hX(e)) return e;
- if (KY(e)) return e;
++ if (yX(e)) return e;
if (r.has(e)) return r.get(e);
if (Array.isArray(e)) {
let t = Array(e.length);
@@@ -81307,14 -79716,14 +81313,14 @@@
if (e instanceof Set) {
let t = /* @__PURE__ */ new Set();
r.set(e, t);
- for (let a of e) t.add(yX(a, void 0, n, r, i));
+ for (let a of e) t.add(OX(a, void 0, n, r, i));
return t;
}
- if (vX(e)) return e.subarray();
- if (Pze(e)) {
+ if (DX(e)) return e.subarray();
- if (OBe(e)) {
++ if (wBe(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = yX(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = OX(e[a], a, n, r, i);
return t;
}
if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
@@@ -81352,37 -79761,37 +81358,37 @@@
}
return e;
}
-function bX(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...qY(t)];
+function kX(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...gX(t)];
++ let a = [...Object.keys(t), ...bX(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = yX(t[s], s, n, r, i));
+ (c == null || c.writable) && (e[s] = OX(t[s], s, n, r, i));
}
}
-function Bze(e) {
- switch (JY(e)) {
- case $Y:
- case iX:
- case aX:
- case sX:
- case QY:
- case tX:
- case hX:
- case gX:
- case fX:
- case pX:
- case mX:
- case nX:
- case ZY:
- case oX:
- case YY:
- case rX:
- case XY:
- case eX:
- case cX:
- case lX:
- case uX:
- case dX: return !0;
+function JBe(e) {
- switch (_X(e)) {
- case SX:
++ switch (xX(e)) {
++ case TBe:
+ case ABe:
+ case MBe:
+ case PBe:
- case xX:
- case wX:
++ case TX:
++ case DBe:
+ case WBe:
+ case GBe:
+ case BBe:
+ case VBe:
+ case HBe:
- case TX:
- case bX:
++ case OBe:
++ case wX:
+ case EX:
- case vX:
++ case SX:
+ case kBe:
- case yX:
+ case CX:
++ case EBe:
+ case FBe:
+ case IBe:
+ case LBe:
+ case RBe: return !0;
default: return !1;
}
}
@@@ -81403,30 -79812,30 +81409,30 @@@ function XBe(e)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function CX(e, t, n) {
- return typeof n == "function" ? wX(e, t, function e(t, r, i, a, o, s) {
+function ZBe(e, t, n) {
+ return typeof n == "function" ? jX(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? wX(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : CX(e, t, () => void 0);
+ return c === void 0 ? jX(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : ZBe(e, t, () => void 0);
}
-function wX(e, t, n, r, i = !1) {
+function jX(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return Hze(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? wX(e, { ...t }, n, r, i) : xX(e, t);
- default: return SX(e) && i ? typeof t != "string" || t === "" : xX(e, t);
+ case "object": return QBe(e, t, n, r, i);
+ case "function": return Object.keys(t).length > 0 ? jX(e, { ...t }, n, r, i) : AX(e, t);
+ default: return XBe(e) && i ? typeof t != "string" || t === "" : AX(e, t);
}
}
-function Hze(e, t, n, r, i = !1) {
+function QBe(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return TX(e, t, n, r);
- if (t instanceof Map) return Uze(e, t, n, r);
- if (t instanceof Set) return Wze(e, t, n, r);
+ if (Array.isArray(t)) return eVe(e, t, n, r);
+ if (t instanceof Map) return $Be(e, t, n, r);
+ if (t instanceof Set) return tVe(e, t, n, r);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) hX(e) && (e = Object(e));
- if (i) KY(e) && (e = Object(e));
++ if (i) yX(e) && (e = Object(e));
else {
- let t = _X(e);
- let t = JY(e);
++ let t = xX(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@@ -81486,20 -79895,20 +81492,20 @@@ function iVe(e, t)
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (_X(e) === "[object Object]" && typeof e.constructor != "function") {
- if (JY(e) === "[object Object]" && typeof e.constructor != "function") {
++ if (xX(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), bX(t, e, i, a), t;
+ return a.set(e, t), kX(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case bX:
- case yX:
- case xX: {
- case ZY:
- case XY:
- case QY: {
++ case wX:
++ case CX:
++ case TX: {
let t = new e.constructor(e?.valueOf());
- return bX(t, e), t;
+ return kX(t, e), t;
}
- case SX: {
- case $Y: {
++ case TBe: {
let t = {};
- return bX(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return kX(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@@ -81523,18 -79932,18 +81529,18 @@@ function sVe(e, t = 2 ** 53 - 1)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function Yze(e) {
- return typeof e == "object" && !!e && JY(e) === "[object Arguments]";
+function cVe(e) {
- return typeof e == "object" && !!e && _X(e) === "[object Arguments]";
++ return typeof e == "object" && !!e && xX(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function Xze(e, t) {
+function lVe(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && PJ(t) && !(t in Object(e)) ? RJ(t) : [t], n.length === 0) return !1;
- if (n = Array.isArray(t) ? t : typeof t == "string" && dJ(t) && !(t in Object(e)) ? hJ(t) : [t], n.length === 0) return !1;
++ if (n = Array.isArray(t) ? t : typeof t == "string" && RJ(t) && !(t in Object(e)) ? HJ(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = FJ(n[e]);
- let t = fJ(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || Yze(r)) && DX(t) && Number(t) < r.length)) return !1;
++ let t = zJ(n[e]);
+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cVe(r)) && sVe(t) && Number(t) < r.length)) return !1;
r = r[t];
}
return !0;
@@@ -81546,21 -79955,21 +81552,21 @@@ function uVe(e, t)
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = FJ(e);
- case "number": e = fJ(e);
++ case "number": e = zJ(e);
}
- return t = qze(t), function(n) {
- let r = gJ(n, e);
- return r === void 0 ? Xze(n, e) : t === void 0 ? r === void 0 : EX(r, t);
+ return t = aVe(t), function(n) {
- let r = zJ(n, e);
++ let r = UJ(n, e);
+ return r === void 0 ? lVe(n, e) : t === void 0 ? r === void 0 : nVe(r, t);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function OX(e) {
- if (e == null) return WY;
+function MX(e) {
- if (e == null) return pX;
++ if (e == null) return _X;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? Zze(e[0], e[1]) : Gze(e);
- default: return Nze(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? uVe(e[0], e[1]) : rVe(e);
- default: return DBe(e);
++ default: return CBe(e);
}
}
//#endregion
@@@ -81570,8 -79979,8 +81576,8 @@@ function dVe(e)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
- function fVe(e, t = pX) {
- return mX(e) ? wBe(Array.from(e), TBe(MX(t), 1)).map(dVe) : [];
-function $ze(e, t = WY) {
- return GY(e) ? Aze(Array.from(e), jze(OX(t), 1)).map(Qze) : [];
++function fVe(e, t = _X) {
++ return vX(e) ? bBe(Array.from(e), xBe(MX(t), 1)).map(dVe) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
@@@ -81580,15 -79989,15 +81586,15 @@@ function pVe(e, t, n)
}
//#endregion
//#region node_modules/recharts/es6/state/RechartsReduxContext.js
-var kX = /*#__PURE__*/ (0, S.createContext)(null), tBe = (e) => e, AX = () => {
- var e = (0, S.useContext)(kX);
- return e ? e.store.dispatch : tBe;
-}, jX = () => {}, nBe = () => jX, rBe = (e, t) => e === t;
-function MX(e) {
- var t = (0, S.useContext)(kX), n = (0, S.useMemo)(() => t ? (t) => {
+var NX = /*#__PURE__*/ (0, S.createContext)(null), mVe = (e) => e, PX = () => {
+ var e = (0, S.useContext)(NX);
+ return e ? e.store.dispatch : mVe;
+}, FX = () => {}, hVe = () => FX, gVe = (e, t) => e === t;
+function IX(e) {
+ var t = (0, S.useContext)(NX), n = (0, S.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : jX, [t, e]);
- return (0, JI.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : nBe, t ? t.store.getState : jX, t ? t.store.getState : jX, n, rBe);
+ } : FX, [t, e]);
- return (0, bL.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : hVe, t ? t.store.getState : FX, t ? t.store.getState : FX, n, gVe);
++ return (0, CL.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : hVe, t ? t.store.getState : FX, t ? t.store.getState : FX, n, gVe);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
@@@ -81712,8 -80121,8 +81718,8 @@@ function kVe(e, t = 1)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function PX(e, t, n) {
- return SX(n) && (typeof t == "number" && GY(n) && DX(t) && t < n.length || typeof t == "string" && t in n) ? xX(n[t], e) : !1;
+function RX(e, t, n) {
- return XBe(n) && (typeof t == "number" && mX(n) && sVe(t) && t < n.length || typeof t == "string" && t in n) ? AX(n[t], e) : !1;
++ return XBe(n) && (typeof t == "number" && vX(n) && sVe(t) && t < n.length || typeof t == "string" && t in n) ? AX(n[t], e) : !1;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
@@@ -81730,15 -80139,15 +81736,15 @@@ var jVe = (e, t, n) =>
return n === "desc" ? i - r : r - i;
}
return 0;
-}, yBe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, bBe = /^\w*$/;
-function xBe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || pJ(e) ? !0 : typeof e == "string" && (bBe.test(e) || !yBe.test(e)) || t != null && Object.hasOwn(t, e);
+}, MVe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, NVe = /^\w*$/;
+function PVe(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || IJ(e) ? !0 : typeof e == "string" && (NVe.test(e) || !MVe.test(e)) || t != null && Object.hasOwn(t, e);
++ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || BJ(e) ? !0 : typeof e == "string" && (NVe.test(e) || !MVe.test(e)) || t != null && Object.hasOwn(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function SBe(e, t, n, r) {
+function FVe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = mX(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
- n = r ? void 0 : n, Array.isArray(e) || (e = GY(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
++ n = r ? void 0 : n, Array.isArray(e) || (e = vX(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@@ -81746,9 -80155,9 +81752,9 @@@
}, a = (e, t) => {
if (e == null) return t;
if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];
- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || xBe(e) ? e : {
+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || PVe(e) ? e : {
key: e,
- path: RJ(e)
- path: hJ(e)
++ path: HJ(e)
}));
return e.map((e) => ({
original: e,
@@@ -83060,26 -81469,26 +83066,26 @@@ function BUe(e, t)
}
return (t === "string" ? String : Number)(e);
}
-function eQ(e, t, n) {
- return kJ(e) || kJ(t) ? n : CJ(t) ? gJ(e, t, n) : typeof t == "function" ? t(e) : n;
+function iQ(e, t, n) {
- return QJ(e) || QJ(t) ? n : KJ(t) ? zJ(e, t, n) : typeof t == "function" ? t(e) : n;
++ return nY(e) || nY(t) ? n : XJ(t) ? UJ(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var OHe = (e, t, n) => {
+var VUe = (e, t, n) => {
if (t && n) {
var r = n.width, i = n.height, a = t.align, o = t.verticalAlign, s = t.layout, c = t.position, l = t.offset, u = l === void 0 ? 0 : l;
if (c != null) {
- if (oY(c)) {
- if (c === "top" && GJ(e.top)) return rQ(rQ({}, e), {}, { top: e.top + (i || 0) + u });
- if (c === "bottom" && GJ(e.bottom)) return rQ(rQ({}, e), {}, { bottom: e.bottom + (i || 0) + u });
- if (c === "left" && GJ(e.left)) return rQ(rQ({}, e), {}, { left: e.left + (r || 0) + u });
- if (c === "right" && GJ(e.right)) return rQ(rQ({}, e), {}, { right: e.right + (r || 0) + u });
- if (LJ(c)) {
- if (c === "top" && SJ(e.top)) return $Z($Z({}, e), {}, { top: e.top + (i || 0) + u });
- if (c === "bottom" && SJ(e.bottom)) return $Z($Z({}, e), {}, { bottom: e.bottom + (i || 0) + u });
- if (c === "left" && SJ(e.left)) return $Z($Z({}, e), {}, { left: e.left + (r || 0) + u });
- if (c === "right" && SJ(e.right)) return $Z($Z({}, e), {}, { right: e.right + (r || 0) + u });
++ if (uY(c)) {
++ if (c === "top" && YJ(e.top)) return rQ(rQ({}, e), {}, { top: e.top + (i || 0) + u });
++ if (c === "bottom" && YJ(e.bottom)) return rQ(rQ({}, e), {}, { bottom: e.bottom + (i || 0) + u });
++ if (c === "left" && YJ(e.left)) return rQ(rQ({}, e), {}, { left: e.left + (r || 0) + u });
++ if (c === "right" && YJ(e.right)) return rQ(rQ({}, e), {}, { right: e.right + (r || 0) + u });
}
return e;
}
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && GJ(e[a])) return rQ(rQ({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && GJ(e[o])) return rQ(rQ({}, e), {}, { [o]: e[o] + (i || 0) });
- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && SJ(e[a])) return $Z($Z({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && SJ(e[o])) return $Z($Z({}, e), {}, { [o]: e[o] + (i || 0) });
++ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && YJ(e[a])) return rQ(rQ({}, e), {}, { [a]: e[a] + (r || 0) });
++ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && YJ(e[o])) return rQ(rQ({}, e), {}, { [o]: e[o] + (i || 0) });
}
return e;
-}, tQ = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", kHe = (e, t, n, r) => {
+}, aQ = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", HUe = (e, t, n, r) => {
if (r) return e.map((e) => e.coordinate);
var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));
return i || o.push(t), a || o.push(n), o;
@@@ -83088,44 -81497,44 +83094,44 @@@
var r = e.duplicateDomain, i = e.type, a = e.range, o = e.scale, s = e.realScaleType, c = e.isCategorical, l = e.categoricalDomain, u = e.tickCount, d = e.ticks, f = e.niceTicks, p = e.axisType;
if (!o) return null;
var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;
- return h = p === "angleAxis" && a && a.length >= 2 ? HJ(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
- return h = p === "angleAxis" && a && a.length >= 2 ? yJ(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
++ return h = p === "angleAxis" && a && a.length >= 2 ? KJ(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
var n = r ? r.indexOf(e) : e, i = o.map(n);
- return ZZ(i) ? {
+ return tQ(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(eY) : c && l ? l.map((e, t) => {
- }).filter(jJ) : c && l ? l.map((e, t) => {
++ }).filter(iY) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(eY) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
- }).filter(jJ) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
++ }).filter(iY) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(eY) : o.domain().map((e, t) => {
- }).filter(jJ) : o.domain().map((e, t) => {
++ }).filter(iY) : o.domain().map((e, t) => {
var n = o.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(eY);
- }).filter(jJ);
-}, jHe = (e, t) => {
- if (!t || t.length !== 2 || !SJ(t[0]) || !SJ(t[1])) return e;
++ }).filter(iY);
+}, WUe = (e, t) => {
- if (!t || t.length !== 2 || !GJ(t[0]) || !GJ(t[1])) return e;
++ if (!t || t.length !== 2 || !YJ(t[0]) || !YJ(t[1])) return e;
var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];
- return (!GJ(e[0]) || e[0] < n) && (i[0] = n), (!GJ(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
- return (!SJ(e[0]) || e[0] < n) && (i[0] = n), (!SJ(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
-}, MHe = {
++ return (!YJ(e[0]) || e[0] < n) && (i[0] = n), (!YJ(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;
+}, GUe = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@@ -83133,16 -81542,16 +83139,16 @@@
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {
var s = e[o]?.[r];
if (s != null) {
- var c = s[1], l = s[0], u = UJ(c) ? l : c;
- var c = s[1], l = s[0], u = bJ(c) ? l : c;
++ var c = s[1], l = s[0], u = qJ(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Qze,
- none: ZY,
- silhouette: $ze,
- wiggle: eBe,
- expand: ize,
- none: OY,
- silhouette: aze,
- wiggle: oze,
++ expand: Jze,
++ none: tX,
++ silhouette: Yze,
++ wiggle: Xze,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@@ -83150,55 -81559,55 +83156,55 @@@
if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {
var o = e[a]?.[r];
if (o != null) {
- var s = UJ(o[1]) ? o[0] : o[1];
- var s = bJ(o[1]) ? o[0] : o[1];
++ var s = qJ(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, NHe = (e, t, n) => {
- var r = MHe[n] ?? OY, i = rze().keys(t).value((e, t) => Number(eQ(e, t, 0))).order(kY).offset(r)(e);
+}, KUe = (e, t, n) => {
- var r = GUe[n] ?? ZY, i = Zze().keys(t).value((e, t) => Number(iQ(e, t, 0))).order(QY).offset(r)(e);
++ var r = GUe[n] ?? tX, i = qze().keys(t).value((e, t) => Number(iQ(e, t, 0))).order(nX).offset(r)(e);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = eQ(e[i], t[r], 0);
- Array.isArray(a) && a.length === 2 && SJ(a[0]) && SJ(a[1]) && (n[0] = a[0], n[1] = a[1]);
+ var a = iQ(e[i], t[r], 0);
- Array.isArray(a) && a.length === 2 && GJ(a[0]) && GJ(a[1]) && (n[0] = a[0], n[1] = a[1]);
++ Array.isArray(a) && a.length === 2 && YJ(a[0]) && YJ(a[1]) && (n[0] = a[0], n[1] = a[1]);
});
}), i;
};
-function nQ(e) {
+function oQ(e) {
return e == null ? void 0 : String(e);
}
-function rQ(e) {
+function sQ(e) {
var t = e.axis, n = e.ticks, r = e.bandSize, i = e.entry, a = e.index, o = e.dataKey;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !QJ(i[t.dataKey])) {
- var s = ZJ(n, "value", i[t.dataKey]);
- if (!t.allowDuplicatedCategory && t.dataKey && !kJ(i[t.dataKey])) {
- var s = OJ(n, "value", i[t.dataKey]);
++ if (!t.allowDuplicatedCategory && t.dataKey && !nY(i[t.dataKey])) {
++ var s = tY(n, "value", i[t.dataKey]);
if (s) return s.coordinate + r / 2;
}
return n != null && n[a] ? n[a].coordinate + r / 2 : null;
}
- var c = iQ(i, QJ(o) ? t.dataKey : o), l = t.scale.map(c);
- return GJ(l) ? l : null;
- var c = eQ(i, kJ(o) ? t.dataKey : o), l = t.scale.map(c);
- return SJ(l) ? l : null;
++ var c = iQ(i, nY(o) ? t.dataKey : o), l = t.scale.map(c);
++ return YJ(l) ? l : null;
}
-var iQ = (e) => {
+var cQ = (e) => {
var t = e.axis, n = e.ticks, r = e.offset, i = e.bandSize, a = e.entry, o = e.index;
if (t.type === "category") return n[o] ? n[o].coordinate + r : null;
- var s = eQ(a, t.dataKey, t.scale.domain()[o]);
- if (kJ(s)) return null;
+ var s = iQ(a, t.dataKey, t.scale.domain()[o]);
- if (QJ(s)) return null;
++ if (nY(s)) return null;
var c = t.scale.map(s);
- return GJ(c) ? c - i / 2 + r : null;
- return SJ(c) ? c - i / 2 + r : null;
-}, PHe = (e) => {
++ return YJ(c) ? c - i / 2 + r : null;
+}, qUe = (e) => {
var t = e.numericAxis, n = t.scale.domain();
if (t.type === "number") {
var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;
}
return n[0];
-}, FHe = (e) => {
- var t = e.flat(2).filter(SJ);
+}, JUe = (e) => {
- var t = e.flat(2).filter(GJ);
++ var t = e.flat(2).filter(YJ);
return [Math.min(...t), Math.max(...t)];
-}, IHe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], LHe = (e, t, n) => {
- if (e != null && Object.keys(e).length !== 0) return IHe(Object.keys(e).reduce((r, i) => {
+}, YUe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], XUe = (e, t, n) => {
+ if (e != null && Object.keys(e).length !== 0) return YUe(Object.keys(e).reduce((r, i) => {
var a = e[i];
if (!a) return r;
var o = a.stackedData.reduce((e, r) => {
@@@ -83333,15 -81742,15 +83339,15 @@@ var _Q = Y(
y: 0,
width: e,
height: t
-})), tUe = /*#__PURE__*/ (0, S.createContext)(null), hQ = () => (0, S.useContext)(tUe) != null, gQ = (e) => e.brush, _Q = Y([
- gQ,
- pQ,
- lQ
+})), mWe = /*#__PURE__*/ (0, S.createContext)(null), yQ = () => (0, S.useContext)(mWe) != null, bQ = (e) => e.brush, xQ = Y([
+ bQ,
+ _Q,
+ pQ
], (e, t, n) => ({
height: e.height,
- x: GJ(e.x) ? e.x : t.left,
- y: GJ(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
- width: GJ(e.width) ? e.width : t.width
- x: SJ(e.x) ? e.x : t.left,
- y: SJ(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
- width: SJ(e.width) ? e.width : t.width
++ x: YJ(e.x) ? e.x : t.left,
++ y: YJ(e.y) ? e.y : t.top + t.height + t.brushBottom - (n?.bottom || 0),
++ width: YJ(e.width) ? e.width : t.width
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
@@@ -83411,8 -81820,8 +83417,8 @@@ var SQ = function(e, t)
width: -1,
height: -1
}
-}, aUe = (e, t, n) => {
- var r = n.width, i = r === void 0 ? yQ.width : r, a = n.height, o = a === void 0 ? yQ.height : a, s = n.aspect, c = n.maxHeight, l = xJ(i) ? e : Number(i), u = xJ(o) ? t : Number(o);
+}, vWe = (e, t, n) => {
- var r = n.width, i = r === void 0 ? CQ.width : r, a = n.height, o = a === void 0 ? CQ.height : a, s = n.aspect, c = n.maxHeight, l = WJ(i) ? e : Number(i), u = WJ(o) ? t : Number(o);
++ var r = n.width, i = r === void 0 ? CQ.width : r, a = n.height, o = a === void 0 ? CQ.height : a, s = n.aspect, c = n.maxHeight, l = JJ(i) ? e : Number(i), u = JJ(o) ? t : Number(o);
return s && s > 0 && (l ? u = l / s : u && (l = u * s), c && u != null && u > c && (u = c)), {
calculatedWidth: l,
calculatedHeight: u
@@@ -83421,19 -81830,19 +83427,19 @@@
width: 0,
height: 0,
overflow: "visible"
-}, sUe = {
+}, bWe = {
width: 0,
overflowX: "visible"
-}, cUe = {
+}, xWe = {
height: 0,
overflowY: "visible"
-}, lUe = {}, uUe = (e) => {
- var t = e.width, n = e.height, r = xJ(t), i = xJ(n);
- return r && i ? oUe : r ? sUe : i ? cUe : lUe;
+}, SWe = {}, CWe = (e) => {
- var t = e.width, n = e.height, r = WJ(t), i = WJ(n);
++ var t = e.width, n = e.height, r = JJ(t), i = JJ(n);
+ return r && i ? yWe : r ? bWe : i ? xWe : SWe;
};
-function dUe(e) {
+function wWe(e) {
var t = e.width, n = e.height, r = e.aspect, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = yQ.width, a = yQ.height) : i === void 0 ? i = r && r > 0 ? void 0 : yQ.width : a === void 0 && (a = r && r > 0 ? void 0 : yQ.height), {
+ return i === void 0 && a === void 0 ? (i = CQ.width, a = CQ.height) : i === void 0 ? i = r && r > 0 ? void 0 : CQ.width : a === void 0 && (a = r && r > 0 ? void 0 : CQ.height), {
width: i,
height: a
};
@@@ -83594,7 -82003,7 +83600,7 @@@ var TQ = () => (0, S.useContext)(zWe),
});
}, []);
(0, S.useEffect)(() => {
- if (b.current == null || typeof ResizeObserver > "u") return tY;
- if (b.current == null || typeof ResizeObserver > "u") return MJ;
++ if (b.current == null || typeof ResizeObserver > "u") return aY;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@@ -83650,10 -82059,10 +83656,10 @@@
aspect: e.aspect,
maxHeight: e.maxHeight
}), s = o.calculatedWidth, c = o.calculatedHeight;
- return GJ(s) && GJ(c) ? /*#__PURE__*/ S.createElement(VWe, {
- return SJ(s) && SJ(c) ? /*#__PURE__*/ S.createElement(OUe, {
++ return YJ(s) && YJ(c) ? /*#__PURE__*/ S.createElement(VWe, {
width: s,
height: c
- }, e.children) : /*#__PURE__*/ S.createElement(kUe, bQ({}, e, {
+ }, e.children) : /*#__PURE__*/ S.createElement(HWe, wQ({}, e, {
width: i,
height: a,
ref: t
@@@ -84032,30 -82441,30 +84038,30 @@@ function MGe(e, t)
}
return n;
}
-function bWe(e) {
+function NGe(e) {
return e.value;
}
-function xWe(e) {
- var t = e.contextPayload, n = vWe(e, sWe), r = eBe(t, e.payloadUniqBy, bWe), i = FQ(FQ({}, n), {}, { payload: r });
- return /*#__PURE__*/ S.isValidElement(e.content) ? /*#__PURE__*/ S.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ S.createElement(e.content, i) : /*#__PURE__*/ S.createElement(kze, i);
+function PGe(e) {
+ var t = e.contextPayload, n = jGe(e, bGe), r = pVe(t, e.payloadUniqBy, NGe), i = zQ(zQ({}, n), {}, { payload: r });
- return /*#__PURE__*/ S.isValidElement(e.content) ? /*#__PURE__*/ S.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ S.createElement(e.content, i) : /*#__PURE__*/ S.createElement(CBe, i);
++ return /*#__PURE__*/ S.isValidElement(e.content) ? /*#__PURE__*/ S.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ S.createElement(e.content, i) : /*#__PURE__*/ S.createElement(yBe, i);
}
-function SWe(e) {
+function FGe(e) {
return e === "left" || e === "right" || e === "insideLeft" || e === "insideRight" ? "vertical" : "horizontal";
}
-function CWe(e, t) {
- return t == null ? null : LJ(t) ? aWe(e) : eUe(e);
+function IGe(e, t) {
- return t == null ? null : oY(t) ? vGe(e) : pWe(e);
++ return t == null ? null : uY(t) ? vGe(e) : pWe(e);
}
-function wWe(e, t, n) {
+function LGe(e, t, n) {
return e === "top" ? { top: n.height + t } : e === "bottom" ? { top: -n.height - t } : e === "left" ? { left: n.width + t } : e === "right" ? { left: -n.width - t } : {};
}
-function TWe(e, t, n, r, i, a) {
+function RGe(e, t, n, r, i, a) {
var o = t.layout, s = t.align, c = t.verticalAlign, l, u;
- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), FQ(FQ({}, l), u);
+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), zQ(zQ({}, l), u);
}
-function EWe(e) {
- var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = AX();
+function zGe(e) {
+ var t = e.align, n = e.layout, r = e.verticalAlign, i = e.itemSorter, a = e.position, o = e.offset, s = PX();
return (0, S.useLayoutEffect)(() => {
- s(IUe({
+ s(YWe({
align: t,
layout: n,
verticalAlign: r,
@@@ -84104,10 -82513,10 +84110,10 @@@ var HGe =
verticalAlign: "bottom",
offset: 0
};
-function AWe(e) {
- var t = zY(e, kWe), n = e.layout && e.layout !== "auto" ? e.layout : SWe(t.position), r = EBe(), i = ORe(), a = MUe(), o = MX((e) => CWe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || LJ(t.position)), f = cWe(FBe([r]), 2), p = f[0], m = f[1], h = wQ(), g = TQ();
+function UGe(e) {
- var t = cX(e, HGe), n = e.layout && e.layout !== "auto" ? e.layout : FGe(t.position), r = zVe(), i = Sze(), a = GWe(), o = IX((e) => IGe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || oY(t.position)), f = xGe(JVe([r]), 2), p = f[0], m = f[1], h = OQ(), g = kQ();
++ var t = fX(e, HGe), n = e.layout && e.layout !== "auto" ? e.layout : FGe(t.position), r = zVe(), i = vze(), a = GWe(), o = IX((e) => IGe(e, t.position)), s = t.width, c = t.height, l = t.wrapperStyle, u = t.portal, d = u == null && (t.position == null || uY(t.position)), f = xGe(JVe([r]), 2), p = f[0], m = f[1], h = OQ(), g = kQ();
if (h == null || g == null || t.position != null && o == null) return null;
- var _ = VGe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : aY({
- var _ = OWe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : IJ({
++ var _ = VGe(n, c, s, h - (a?.left || 0) - (a?.right || 0)), v = t.position == null ? null : lY({
viewBox: o ?? {
x: 0,
y: 0,
@@@ -84245,13 -82654,13 +84251,13 @@@ function $Ge(e, t)
return s;
}
}
-function VWe(e) {
+function eKe(e) {
if (Array.isArray(e)) return e;
}
-function HWe(e) {
- return Array.isArray(e) && CJ(e[0]) && CJ(e[1]) ? e.join(" ~ ") : e;
+function tKe(e) {
- return Array.isArray(e) && KJ(e[0]) && KJ(e[1]) ? e.join(" ~ ") : e;
++ return Array.isArray(e) && XJ(e[0]) && XJ(e[1]) ? e.join(" ~ ") : e;
}
-var RQ = {
+var HQ = {
separator: " : ",
contentStyle: {
margin: 0,
@@@ -84294,7 -82703,7 +84300,7 @@@ var rKe = (e) =>
className: "recharts-tooltip-item",
key: `tooltip-item-${t}`,
style: p
- }, KJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, KJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
- }, CJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, CJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
++ }, XJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, XJ(u) ? /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-separator" }, n) : null, /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ S.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));
});
return /*#__PURE__*/ S.createElement("ul", {
className: "recharts-tooltip-item-list",
@@@ -84302,7 -82711,7 +84308,7 @@@
}, t);
}
return null;
- }, _ = VQ(VQ({}, HQ.contentStyle), r), v = VQ({ margin: 0 }, o), y = !QJ(f), b = y ? f : "", x = ey("recharts-default-tooltip", u), C = ey("recharts-tooltip-label", d);
- }, _ = LQ(LQ({}, RQ.contentStyle), r), v = LQ({ margin: 0 }, o), y = !kJ(f), b = y ? f : "", x = ny("recharts-default-tooltip", u), C = ny("recharts-tooltip-label", d);
++ }, _ = VQ(VQ({}, HQ.contentStyle), r), v = VQ({ margin: 0 }, o), y = !nY(f), b = y ? f : "", x = ey("recharts-default-tooltip", u), C = ey("recharts-tooltip-label", d);
y && p && s != null && (b = p(f, s));
var w = h ? {
role: "status",
@@@ -84315,19 -82724,19 +84321,19 @@@
className: C,
style: v
}, /*#__PURE__*/ S.isValidElement(b) ? b : `${b}`), g());
-}, zQ = "recharts-tooltip-wrapper", GWe = { visibility: "hidden" };
-function KWe(e) {
+}, UQ = "recharts-tooltip-wrapper", iKe = { visibility: "hidden" };
+function aKe(e) {
var t = e.coordinate, n = e.translateX, r = e.translateY;
- return ny(zQ, {
- [`${zQ}-right`]: SJ(n) && t && SJ(t.x) && n >= t.x,
- [`${zQ}-left`]: SJ(n) && t && SJ(t.x) && n < t.x,
- [`${zQ}-bottom`]: SJ(r) && t && SJ(t.y) && r >= t.y,
- [`${zQ}-top`]: SJ(r) && t && SJ(t.y) && r < t.y
+ return ey(UQ, {
- [`${UQ}-right`]: GJ(n) && t && GJ(t.x) && n >= t.x,
- [`${UQ}-left`]: GJ(n) && t && GJ(t.x) && n < t.x,
- [`${UQ}-bottom`]: GJ(r) && t && GJ(t.y) && r >= t.y,
- [`${UQ}-top`]: GJ(r) && t && GJ(t.y) && r < t.y
++ [`${UQ}-right`]: YJ(n) && t && YJ(t.x) && n >= t.x,
++ [`${UQ}-left`]: YJ(n) && t && YJ(t.x) && n < t.x,
++ [`${UQ}-bottom`]: YJ(r) && t && YJ(t.y) && r >= t.y,
++ [`${UQ}-top`]: YJ(r) && t && YJ(t.y) && r < t.y
});
}
-function qWe(e) {
+function oKe(e) {
var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offset, a = e.position, o = e.reverseDirection, s = e.tooltipDimension, c = e.viewBox, l = e.viewBoxDimension;
- if (a && GJ(a[r])) return a[r];
- if (a && SJ(a[r])) return a[r];
++ if (a && YJ(a[r])) return a[r];
var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;
if (t[r]) return o[r] ? u : d;
var f = c[r];
@@@ -84633,40 -83042,40 +84639,40 @@@ function PKe(e, t)
}
return (t === "string" ? String : Number)(e);
}
-var SGe = {
- curveBasisClosed: KRe,
- curveBasisOpen: qRe,
- curveBasis: GRe,
- curveBumpX: jRe,
- curveBumpY: MRe,
- curveLinearClosed: JRe,
- curveLinear: $J,
- curveMonotoneX: YRe,
- curveMonotoneY: XRe,
- curveNatural: ZRe,
- curveStep: QRe,
- curveStepAfter: eze,
- curveStepBefore: $Re
-}, UQ = (e) => ZZ(e.x) && ZZ(e.y), CGe = (e) => e.base != null && UQ(e.base) && UQ(e), WQ = (e) => e.x, GQ = (e) => e.y, wGe = (e, t) => {
+var FKe = {
- curveBasisClosed: Bze,
- curveBasisOpen: Vze,
- curveBasis: zze,
- curveBumpX: Tze,
- curveBumpY: Eze,
- curveLinearClosed: Hze,
- curveLinear: SY,
- curveMonotoneX: Uze,
- curveMonotoneY: Wze,
- curveNatural: Gze,
- curveStep: Kze,
- curveStepAfter: Jze,
- curveStepBefore: qze
++ curveBasisClosed: Ize,
++ curveBasisOpen: Lze,
++ curveBasis: Fze,
++ curveBumpX: xze,
++ curveBumpY: Sze,
++ curveLinearClosed: Rze,
++ curveLinear: EY,
++ curveMonotoneX: zze,
++ curveMonotoneY: Bze,
++ curveNatural: Vze,
++ curveStep: Hze,
++ curveStepAfter: Wze,
++ curveStepBefore: Uze
+}, qQ = (e) => tQ(e.x) && tQ(e.y), IKe = (e) => e.base != null && qQ(e.base) && qQ(e), JQ = (e) => e.x, YQ = (e) => e.y, LKe = (e, t) => {
if (typeof e == "function") return e;
- var n = `curve${$J(e)}`;
- var n = `curve${AJ(e)}`;
++ var n = `curve${rY(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = SGe[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = FKe[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return FKe[n] || SY;
- return SGe[n] || $J;
-}, TGe = {
++ return FKe[n] || EY;
+}, RKe = {
connectNulls: !1,
type: "linear"
-}, EGe = (e) => {
- var t = e.type, n = t === void 0 ? TGe.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? TGe.connectNulls : s, l = wGe(n, o), u = c ? i.filter(UQ) : i;
+}, zKe = (e) => {
+ var t = e.type, n = t === void 0 ? RKe.type : t, r = e.points, i = r === void 0 ? [] : r, a = e.baseLine, o = e.layout, s = e.connectNulls, c = s === void 0 ? RKe.connectNulls : s, l = LKe(n, o), u = c ? i.filter(qQ) : i;
if (Array.isArray(a)) {
- var d, f = i.map((e, t) => vGe(vGe({}, e), {}, { base: a[t] }));
- return d = o === "vertical" ? rY().y(GQ).x1(WQ).x0((e) => e.base.x) : rY().x(WQ).y1(GQ).y0((e) => e.base.y), d.defined(CGe).curve(l)(c ? f.filter(CGe) : f);
+ var d, f = i.map((e, t) => jKe(jKe({}, e), {}, { base: a[t] }));
- return d = o === "vertical" ? EY().y(YQ).x1(JQ).x0((e) => e.base.x) : EY().x(JQ).y1(YQ).y0((e) => e.base.y), d.defined(IKe).curve(l)(c ? f.filter(IKe) : f);
++ return d = o === "vertical" ? AY().y(YQ).x1(JQ).x0((e) => e.base.x) : AY().x(JQ).y1(YQ).y0((e) => e.base.y), d.defined(IKe).curve(l)(c ? f.filter(IKe) : f);
}
- return (o === "vertical" && GJ(a) ? EY().y(YQ).x1(JQ).x0(a) : GJ(a) ? EY().x(JQ).y1(YQ).y0(a) : TY().x(JQ).y(YQ)).defined(qQ).curve(l)(u);
- return (o === "vertical" && SJ(a) ? rY().y(GQ).x1(WQ).x0(a) : SJ(a) ? rY().x(WQ).y1(GQ).y0(a) : nY().x(WQ).y(GQ)).defined(UQ).curve(l)(u);
-}, KQ = (e) => {
- var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = DQ();
++ return (o === "vertical" && YJ(a) ? AY().y(YQ).x1(JQ).x0(a) : YJ(a) ? AY().x(JQ).y1(YQ).y0(a) : kY().x(JQ).y(YQ)).defined(qQ).curve(l)(u);
+}, XQ = (e) => {
+ var t = e.className, n = e.points, r = e.path, i = e.pathRef, a = jQ();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@@ -84674,9 -83083,9 +84680,9 @@@
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? EGe(o) : r;
- return /*#__PURE__*/ S.createElement("path", HQ({}, rJ(e), IY(e), {
- className: ny("recharts-curve", t),
+ }, s = n && n.length ? zKe(o) : r;
- return /*#__PURE__*/ S.createElement("path", KQ({}, EJ(e), aX(e), {
++ return /*#__PURE__*/ S.createElement("path", KQ({}, AJ(e), lX(e), {
+ className: ey("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
@@@ -84768,9 -83177,9 +84774,9 @@@ var JKe = (e, t, n, r, i, a) => `M${e},
width: u,
height: f
}, m);
- return !GJ(n) || !GJ(i) || !GJ(u) || !GJ(f) || !GJ(o) || !GJ(c) ? null : /*#__PURE__*/ S.createElement("path", ZQ({}, OJ(h), {
- return !SJ(n) || !SJ(i) || !SJ(u) || !SJ(f) || !SJ(o) || !SJ(c) ? null : /*#__PURE__*/ S.createElement("path", qQ({}, aJ(h), {
- className: ny("recharts-cross", p),
- d: FGe(n, i, u, f, o, c)
++ return !YJ(n) || !YJ(i) || !YJ(u) || !YJ(f) || !YJ(o) || !YJ(c) ? null : /*#__PURE__*/ S.createElement("path", ZQ({}, MJ(h), {
+ className: ey("recharts-cross", p),
+ d: JKe(n, i, u, f, o, c)
}));
};
//#endregion
@@@ -84993,9 -83402,9 +84999,9 @@@ var gqe = class
return 0;
}
getInterpolated() {
- return this.easing(XJ(this.getFrom(), this.getTo(), this.getProgress()));
- return this.easing(DJ(this.getFrom(), this.getTo(), this.getProgress()));
++ return this.easing(eY(this.getFrom(), this.getTo(), this.getProgress()));
}
-}, aKe = class {
+}, vqe = class {
setTimeout(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {
a - n >= t ? e(a) : r = requestAnimationFrame(i);
@@@ -85057,14 -83466,14 +85063,14 @@@ var Tqe =
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, pKe = 0, YQ = 1;
-function mKe(e) {
- var t = zY(e, fKe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = nGe(), f = r === "auto" ? !BQ.isSsr && !d : r, p = YGe(t.animationController), m = oKe((0, S.useState)(f ? pKe : YQ), 2), h = m[0], g = m[1];
+}, Eqe = 0, $Q = 1;
+function Dqe(e) {
- var t = cX(e, Tqe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = hKe(), f = r === "auto" ? !WQ.isSsr && !d : r, p = cqe(t.animationController), m = yqe((0, S.useState)(f ? Eqe : $Q), 2), h = m[0], g = m[1];
++ var t = fX(e, Tqe), n = t.animationId, r = t.isActive, i = t.canBegin, a = t.duration, o = t.easing, s = t.begin, c = t.onAnimationEnd, l = t.onAnimationStart, u = t.children, d = hKe(), f = r === "auto" ? !WQ.isSsr && !d : r, p = cqe(t.animationController), m = yqe((0, S.useState)(f ? Eqe : $Q), 2), h = m[0], g = m[1];
return (0, S.useEffect)(() => {
- f || g(YQ);
+ f || g($Q);
}, [f]), (0, S.useEffect)(() => {
- var e = qGe(o);
- return !f || !i || e == null ? MJ : p(new aKe(), new iKe({
+ var e = oqe(o);
- return !f || !i || e == null ? tY : p(new vqe(), new _qe({
++ return !f || !i || e == null ? aY : p(new vqe(), new _qe({
animationId: n,
easing: e,
animationDuration: a,
@@@ -85088,9 -83497,9 +85094,9 @@@
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function hKe(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, S.useRef)(wJ(t)), r = (0, S.useRef)(e);
- return r.current !== e && (n.current = wJ(t), r.current = e), n.current;
+function Oqe(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, S.useRef)(qJ(t)), r = (0, S.useRef)(e);
- return r.current !== e && (n.current = qJ(t), r.current = e), n.current;
++ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, S.useRef)(ZJ(t)), r = (0, S.useRef)(e);
++ return r.current !== e && (n.current = ZJ(t), r.current = e), n.current;
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
@@@ -85204,14 -83613,14 +85210,14 @@@ function eJe(e, t)
return s;
}
}
-function HKe(e) {
+function tJe(e) {
if (Array.isArray(e)) return e;
}
-function ZQ(e, t) {
+function t$(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var UKe = (e, t, n, r, i) => {
- var a = _J(n), o = _J(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
+var nJe = (e, t, n, r, i) => {
- var a = BJ(n), o = BJ(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
++ var a = WJ(n), o = WJ(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@@ -85222,44 -83631,44 +85228,44 @@@
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = VJ(Nqe ||= t$([
- d = vJ(bKe ||= ZQ([
++ d = GJ(Nqe ||= t$([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += VJ(Pqe ||= t$([
- ]), e, t + c * f[0]), f[0] > 0 && (d += vJ(xKe ||= ZQ([
++ ]), e, t + c * f[0]), f[0] > 0 && (d += GJ(Pqe ||= t$([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += VJ(Fqe ||= t$([
- ]), f[0], f[0], u, e + l * f[0], t)), d += vJ(SKe ||= ZQ([
++ ]), f[0], f[0], u, e + l * f[0], t)), d += GJ(Fqe ||= t$([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += VJ(Iqe ||= t$([
- ]), e + n - l * f[1], t), f[1] > 0 && (d += vJ(CKe ||= ZQ([
++ ]), e + n - l * f[1], t), f[1] > 0 && (d += GJ(Iqe ||= t$([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += VJ(Lqe ||= t$([
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += vJ(wKe ||= ZQ([
++ ]), f[1], f[1], u, e + n, t + c * f[1])), d += GJ(Lqe ||= t$([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += VJ(Rqe ||= t$([
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += vJ(TKe ||= ZQ([
++ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += GJ(Rqe ||= t$([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += VJ(zqe ||= t$([
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += vJ(EKe ||= ZQ([
++ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += GJ(zqe ||= t$([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += VJ(Bqe ||= t$([
- ]), e + l * f[3], t + r), f[3] > 0 && (d += vJ(DKe ||= ZQ([
++ ]), e + l * f[3], t + r), f[3] > 0 && (d += GJ(Bqe ||= t$([
"A ",
",",
",0,0,",
@@@ -85269,8 -83678,8 +85275,8 @@@
]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";
} else if (s > 0 && i === +i && i > 0) {
var g = Math.min(s, i);
- d = VJ(Vqe ||= t$(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = VJ(Hqe ||= t$([
- d = vJ(OKe ||= ZQ(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
- } else d = vJ(kKe ||= ZQ([
++ d = GJ(Vqe ||= t$(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);
++ } else d = GJ(Hqe ||= t$([
"M ",
",",
" h ",
@@@ -85290,8 -83699,8 +85296,8 @@@
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, QQ = (e) => {
- var t = zY(e, WKe), n = (0, S.useRef)(null), r = LKe((0, S.useState)(-1), 2), i = r[0], a = r[1];
+}, n$ = (e) => {
- var t = cX(e, rJe), n = (0, S.useRef)(null), r = Xqe((0, S.useState)(-1), 2), i = r[0], a = r[1];
++ var t = fX(e, rJe), n = (0, S.useRef)(null), r = Xqe((0, S.useState)(-1), 2), i = r[0], a = r[1];
(0, S.useEffect)(() => {
if (n.current && n.current.getTotalLength) try {
var e = n.current.getTotalLength();
@@@ -85312,23 -83721,23 +85318,23 @@@
u
]), "rectangle-");
if (o !== +o || s !== +s || c !== +c || l !== +l || c === 0 || l === 0) return null;
- var C = ny("recharts-rectangle", d);
+ var C = ey("recharts-rectangle", d);
if (!g) {
- var w = OJ(t);
- var w = aJ(t);
++ var w = MJ(t);
w.radius;
- var T = FKe(w, vKe);
- return /*#__PURE__*/ S.createElement("path", XQ({}, T, {
- x: _J(o),
- y: _J(s),
- width: _J(c),
- height: _J(l),
+ var T = Jqe(w, jqe);
+ return /*#__PURE__*/ S.createElement("path", e$({}, T, {
- x: BJ(o),
- y: BJ(s),
- width: BJ(c),
- height: BJ(l),
++ x: WJ(o),
++ y: WJ(s),
++ width: WJ(c),
++ height: WJ(l),
radius: typeof u == "number" ? u : void 0,
className: C,
- d: UKe(o, s, c, l, u)
+ d: nJe(o, s, c, l, u)
}));
}
- var E = _.current, D = v.current, O = y.current, k = b.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = _Ke(["strokeDasharray"], p, typeof f == "string" ? f : WKe.animationEasing);
- return /*#__PURE__*/ S.createElement(mKe, {
+ var E = _.current, D = v.current, O = y.current, k = b.current, A = `0px ${i === -1 ? 1 : i}px`, j = `${i}px ${i}px`, M = Aqe(["strokeDasharray"], p, typeof f == "string" ? f : rJe.animationEasing);
+ return /*#__PURE__*/ S.createElement(Dqe, {
animationId: x,
key: x,
canBegin: i > 0,
@@@ -85337,20 -83746,20 +85343,20 @@@
isActive: g,
begin: m
}, (e) => {
- var r = XJ(E, c, e), i = XJ(D, l, e), a = XJ(O, o, e), d = XJ(k, s, e);
- var r = DJ(E, c, e), i = DJ(D, l, e), a = DJ(O, o, e), d = DJ(k, s, e);
++ var r = eY(E, c, e), i = eY(D, l, e), a = eY(O, o, e), d = eY(k, s, e);
n.current && (_.current = r, v.current = i, y.current = a, b.current = d);
var f = h ? e > 0 ? {
transition: M,
strokeDasharray: j
- } : { strokeDasharray: A } : { strokeDasharray: j }, p = OJ(t);
- } : { strokeDasharray: A } : { strokeDasharray: j }, p = aJ(t);
++ } : { strokeDasharray: A } : { strokeDasharray: j }, p = MJ(t);
p.radius;
- var m = FKe(p, yKe);
- return /*#__PURE__*/ S.createElement("path", XQ({}, m, {
+ var m = Jqe(p, Mqe);
+ return /*#__PURE__*/ S.createElement("path", e$({}, m, {
radius: typeof u == "number" ? u : void 0,
className: C,
- d: UKe(a, d, r, i, u),
+ d: nJe(a, d, r, i, u),
ref: n,
- style: jKe(jKe({}, f), t.style)
+ style: Wqe(Wqe({}, f), t.style)
}));
});
};
@@@ -85487,21 -83896,21 +85493,21 @@@ function o$()
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, n$.apply(null, arguments);
+ }, o$.apply(null, arguments);
}
-function r$(e, t) {
+function s$(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
- var wJe = (e, t) => HJ(t - e) * Math.min(Math.abs(t - e), 359.999), c$ = (e) => {
-var dqe = (e, t) => yJ(t - e) * Math.min(Math.abs(t - e), 359.999), i$ = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / $Q, d = c ? i : i + a * u, f = t$(t, n, l, d), p = t$(t, n, r, d), m = c ? i - a * u : i;
++var wJe = (e, t) => KJ(t - e) * Math.min(Math.abs(t - e), 359.999), c$ = (e) => {
+ var t = e.cx, n = e.cy, r = e.radius, i = e.angle, a = e.sign, o = e.isExternal, s = e.cornerRadius, c = e.cornerIsExternal, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / r$, d = c ? i : i + a * u, f = a$(t, n, l, d), p = a$(t, n, r, d), m = c ? i - a * u : i;
return {
center: f,
circleTangency: p,
- lineTangency: t$(t, n, l * Math.cos(u * $Q), m),
+ lineTangency: a$(t, n, l * Math.cos(u * r$), m),
theta: u
};
-}, fqe = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = dqe(a, o), c = a + s, l = t$(t, n, i, a), u = t$(t, n, i, c), d = vJ(iqe ||= r$([
+}, TJe = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = wJe(a, o), c = a + s, l = a$(t, n, i, a), u = a$(t, n, i, c), d = VJ(_Je ||= s$([
++ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = wJe(a, o), c = a + s, l = a$(t, n, i, a), u = a$(t, n, i, c), d = GJ(_Je ||= s$([
"M ",
",",
"\n A ",
@@@ -85513,8 -83922,8 +85519,8 @@@
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = t$(t, n, r, a), p = t$(t, n, r, c);
- d += vJ(aqe ||= r$([
+ var f = a$(t, n, r, a), p = a$(t, n, r, c);
- d += VJ(vJe ||= s$([
++ d += GJ(vJe ||= s$([
"L ",
",",
"\n A ",
@@@ -85525,14 -83934,14 +85531,14 @@@
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += VJ(yJe ||= s$([
- } else d += vJ(oqe ||= r$([
++ } else d += GJ(yJe ||= s$([
"L ",
",",
" Z"
]), t, n);
return d;
-}, pqe = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = yJ(l - c), d = i$({
+}, EJe = (e) => {
- var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = HJ(l - c), d = c$({
++ var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.cornerRadius, o = e.forceCornerRadius, s = e.cornerIsExternal, c = e.startAngle, l = e.endAngle, u = KJ(l - c), d = c$({
cx: t,
cy: n,
radius: i,
@@@ -85549,7 -83958,7 +85555,7 @@@
cornerRadius: a,
cornerIsExternal: s
}), g = h.circleTangency, _ = h.lineTangency, v = h.theta, y = s ? Math.abs(c - l) : Math.abs(c - l) - m - v;
- if (y < 0) return o ? VJ(bJe ||= s$([
- if (y < 0) return o ? vJ(sqe ||= r$([
++ if (y < 0) return o ? GJ(bJe ||= s$([
"M ",
",",
"\n a",
@@@ -85567,7 -83976,7 +85573,7 @@@
startAngle: c,
endAngle: l
});
- var b = VJ(xJe ||= s$([
- var b = vJ(cqe ||= r$([
++ var b = GJ(xJe ||= s$([
"M ",
",",
"\n A",
@@@ -85609,7 -84018,7 +85615,7 @@@
cornerIsExternal: s
}), E = T.circleTangency, D = T.lineTangency, O = T.theta, k = s ? Math.abs(c - l) : Math.abs(c - l) - w - O;
if (k < 0 && a === 0) return `${b}L${t},${n}Z`;
- b += VJ(SJe ||= s$([
- b += vJ(lqe ||= r$([
++ b += GJ(SJe ||= s$([
"L",
",",
"\n A",
@@@ -85630,7 -84039,7 +85636,7 @@@
",",
"Z"
]), D.x, D.y, a, a, +(u < 0), E.x, E.y, r, r, +(k > 180), +(u > 0), S.x, S.y, a, a, +(u < 0), C.x, C.y);
- } else b += VJ(CJe ||= s$([
- } else b += vJ(uqe ||= r$([
++ } else b += GJ(CJe ||= s$([
"L",
",",
"Z"
@@@ -85646,10 -84055,10 +85652,10 @@@
cornerRadius: 0,
forceCornerRadius: !1,
cornerIsExternal: !1
-}, a$ = (e) => {
- var t = zY(e, mqe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
+}, l$ = (e) => {
- var t = cX(e, DJe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
++ var t = fX(e, DJe), n = t.cx, r = t.cy, i = t.innerRadius, a = t.outerRadius, o = t.cornerRadius, s = t.forceCornerRadius, c = t.cornerIsExternal, l = t.startAngle, u = t.endAngle, d = t.className;
if (a < i || l === u) return null;
- var f = ey("recharts-sector", d), p = a - i, m = JJ(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? EJe({
- var f = ny("recharts-sector", d), p = a - i, m = TJ(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? pqe({
++ var f = ey("recharts-sector", d), p = a - i, m = QJ(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? EJe({
cx: n,
cy: r,
innerRadius: i,
@@@ -85667,7 -84076,7 +85673,7 @@@
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ S.createElement("path", o$({}, OJ(t), {
- return /*#__PURE__*/ S.createElement("path", n$({}, aJ(t), {
++ return /*#__PURE__*/ S.createElement("path", o$({}, MJ(t), {
className: f,
d: h
}));
@@@ -85689,9 -84098,9 +85695,9 @@@ function OJe(e, t, n)
x: n.left + n.width,
y: t.y
}];
- if (iX(t)) {
- if (FY(t)) {
++ if (cX(t)) {
if (e === "centric") {
- var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = t$(r, i, a, s), l = t$(r, i, o, s);
+ var r = t.cx, i = t.cy, a = t.innerRadius, o = t.outerRadius, s = t.angle, c = a$(r, i, a, s), l = a$(r, i, o, s);
return [{
x: c.x,
y: c.y
@@@ -85705,8 -84114,8 +85711,8 @@@
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function gqe(e) {
- return pJ(e) ? NaN : Number(e);
+function kJe(e) {
- return IJ(e) ? NaN : Number(e);
++ return BJ(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
@@@ -85810,12 -84219,12 +85816,12 @@@ function HJe(e, t, n)
if (n || t != null) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
- if (d$(r)) return Dqe(r, t, n);
+ if (h$(r)) return BJe(r, t, n);
} catch {}
if (Array.isArray(e) && e.length === 2) {
- var i = u$(e, 2), a = i[0], o = i[1], s, c;
+ var i = m$(e, 2), a = i[0], o = i[1], s, c;
if (a === "auto") t != null && (s = Math.min(...t));
- else if (GJ(a)) s = a;
- else if (SJ(a)) s = a;
++ else if (YJ(a)) s = a;
else if (typeof a == "function") try {
t != null && (s = a(t?.[0]));
} catch {}
@@@ -85828,7 -84237,7 +85834,7 @@@
}
} else s = t?.[0];
if (o === "auto") t != null && (c = Math.max(...t));
- else if (GJ(o)) c = o;
- else if (SJ(o)) c = o;
++ else if (YJ(o)) c = o;
else if (typeof o == "function") try {
t != null && (c = o(t?.[1]));
} catch {}
@@@ -86452,71 -84861,71 +86458,71 @@@ var uYe =
allowDuplicatedCategory: !1,
dataKey: void 0,
domain: void 0,
- id: C$.angleAxisId,
+ id: D$.angleAxisId,
includeHidden: !1,
name: void 0,
- reversed: C$.reversed,
- scale: C$.scale,
- tick: C$.tick,
+ reversed: D$.reversed,
+ scale: D$.scale,
+ tick: D$.tick,
tickCount: void 0,
ticks: void 0,
- type: C$.type,
+ type: D$.type,
unit: void 0,
niceTicks: "auto"
-}, Qqe = {
- allowDataOverflow: w$.allowDataOverflow,
- allowDecimals: w$.allowDecimals,
- allowDuplicatedCategory: w$.allowDuplicatedCategory,
+}, dYe = {
+ allowDataOverflow: O$.allowDataOverflow,
+ allowDecimals: O$.allowDecimals,
+ allowDuplicatedCategory: O$.allowDuplicatedCategory,
dataKey: void 0,
domain: void 0,
- id: w$.radiusAxisId,
- includeHidden: w$.includeHidden,
+ id: O$.radiusAxisId,
+ includeHidden: O$.includeHidden,
name: void 0,
- reversed: w$.reversed,
- scale: w$.scale,
- tick: w$.tick,
- tickCount: w$.tickCount,
+ reversed: O$.reversed,
+ scale: O$.scale,
+ tick: O$.tick,
+ tickCount: O$.tickCount,
ticks: void 0,
- type: w$.type,
+ type: O$.type,
unit: void 0,
niceTicks: "auto"
-}, O$ = Y([(e, t) => {
+}, M$ = Y([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, kQ], (e, t) => {
+}, NQ], (e, t) => {
if (e != null) return e;
- var n = E$(t, "angleAxis", Zqe.type) ?? "category";
- return D$(D$({}, Zqe), {}, { type: n });
-}), k$ = Y([(e, t) => e.polarAxis.radiusAxis[t], kQ], (e, t) => {
+ var n = A$(t, "angleAxis", uYe.type) ?? "category";
+ return j$(j$({}, uYe), {}, { type: n });
+}), N$ = Y([(e, t) => e.polarAxis.radiusAxis[t], NQ], (e, t) => {
if (e != null) return e;
- var n = E$(t, "radiusAxis", Qqe.type) ?? "category";
- return D$(D$({}, Qqe), {}, { type: n });
-}), A$ = (e) => e.polarOptions, j$ = Y([
- sQ,
- cQ,
- pQ
-], ZKe), $qe = Y([A$, j$], (e, t) => {
- if (e != null) return TJ(e.innerRadius, t, 0);
-}), eJe = Y([A$, j$], (e, t) => {
- if (e != null) return TJ(e.outerRadius, t, t * .8);
-}), tJe = Y([A$], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), nJe = Y([O$, tJe], T$), rJe = Y([
- j$,
- $qe,
- eJe
+ var n = A$(t, "radiusAxis", dYe.type) ?? "category";
+ return j$(j$({}, dYe), {}, { type: n });
+}), P$ = (e) => e.polarOptions, F$ = Y([
+ dQ,
+ fQ,
+ _Q
+], uJe), fYe = Y([P$, F$], (e, t) => {
- if (e != null) return JJ(e.innerRadius, t, 0);
++ if (e != null) return QJ(e.innerRadius, t, 0);
+}), pYe = Y([P$, F$], (e, t) => {
- if (e != null) return JJ(e.outerRadius, t, t * .8);
++ if (e != null) return QJ(e.outerRadius, t, t * .8);
+}), mYe = Y([P$], (e) => e == null ? [0, 0] : [e.startAngle, e.endAngle]), hYe = Y([M$, mYe], k$), gYe = Y([
+ F$,
+ fYe,
+ pYe
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), iJe = Y([k$, rJe], T$), M$ = Y([
- EQ,
- A$,
- $qe,
- eJe,
- sQ,
- cQ
+}), _Ye = Y([N$, gYe], k$), I$ = Y([
+ AQ,
+ P$,
+ fYe,
+ pYe,
+ dQ,
+ fQ
], (e, t, n, r, i, a) => {
if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {
var o = t.cx, s = t.cy, c = t.startAngle, l = t.endAngle;
return {
- cx: JJ(o, i, i / 2),
- cy: JJ(s, a, a / 2),
- cx: TJ(o, i, i / 2),
- cy: TJ(s, a, a / 2),
++ cx: QJ(o, i, i / 2),
++ cy: QJ(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@@ -88952,16 -87361,16 +88958,16 @@@ var r$e = /* @__PURE__ */ s(
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function GZe(e) {
- var t = WZe;
+function i$e(e) {
+ var t = r$e;
if (e in t && typeof t[e] == "function") return t[e]();
- var n = `scale${$J(e)}`;
- var n = `scale${AJ(e)}`;
++ var n = `scale${rY(e)}`;
if (n in t && typeof t[n] == "function") return t[n]();
}
-function KZe(e, t, n) {
+function a$e(e, t, n) {
if (typeof e == "function") return e.copy().domain(t).range(n);
if (e != null) {
- var r = GZe(e);
+ var r = i$e(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@@ -88970,13 -87379,13 +88976,13 @@@ function B0(e, t, n, r)
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function qZe(e) {
- return `scale${AJ(e)}`;
+function o$e(e) {
- return `scale${$J(e)}`;
++ return `scale${rY(e)}`;
}
-function JZe(e) {
- return qZe(e) in WZe;
+function s$e(e) {
+ return o$e(e) in r$e;
}
-var YZe = (e, t, n) => {
+var c$e = (e, t, n) => {
if (e != null) {
var r = e.scale, i = e.type;
if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";
@@@ -89203,75 -87612,75 +89209,75 @@@ function X0(e, t)
}
};
}
-var q0 = (e) => e.graphicalItems.cartesianItems, mQe = Y([N$, P$], K0), J0 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), Y0 = Y([
- q0,
- W0,
- mQe
-], J0, { memoizeOptions: { resultEqualityCheck: z$ } }), hQe = Y([Y0], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(L$)), gQe = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), _Qe = Y([Y0], gQe), X0 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), vQe = Y([Y0], (e) => e.some((e) => !e.data)), yQe = Y([Y0], X0, { memoizeOptions: { resultEqualityCheck: z$ } }), Z0 = (e, t) => {
+var Z0 = (e) => e.graphicalItems.cartesianItems, D$e = Y([L$, R$], X0), Q0 = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), $0 = Y([
+ Z0,
+ J0,
+ D$e
+], Q0, { memoizeOptions: { resultEqualityCheck: U$ } }), O$e = Y([$0], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(V$)), k$e = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), A$e = Y([$0], k$e), e2 = (e) => e.map((e) => e.data).filter(Boolean).flat(1), j$e = Y([$0], (e) => e.some((e) => !e.data)), M$e = Y([$0], e2, { memoizeOptions: { resultEqualityCheck: U$ } }), t2 = (e, t) => {
var n = t.chartData, r = n === void 0 ? [] : n, i = t.dataStartIndex, a = t.dataEndIndex;
return e.length > 0 ? e : r.slice(i, a + 1);
-}, Q0 = Y([yQe, l$], Z0), bQe = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: eQ(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: eQ(e, t.dataKey) })), xQe = (e, t, n, r, i, a) => {
- var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = bQe(e, t, n);
- return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: eQ(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
-}, $0 = Y([
- Q0,
- W0,
- Y0,
- l$,
- vQe,
- yQe
-], xQe);
-function e2(e) {
- if (CJ(e) || e instanceof Date) {
+}, n2 = Y([M$e, p$], t2), N$e = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: iQ(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: iQ(e, t.dataKey) })), P$e = (e, t, n, r, i, a) => {
+ var o = r.chartData, s = o === void 0 ? [] : o, c = r.dataStartIndex, l = r.dataEndIndex, u = N$e(e, t, n);
+ return i && t?.dataKey != null && a.length > 0 ? [...s.slice(c, l + 1).map((e) => ({ value: iQ(e, t.dataKey) })).filter((e) => e.value != null), ...u] : u;
+}, r2 = Y([
+ n2,
+ J0,
+ $0,
+ p$,
+ j$e,
+ M$e
+], P$e);
+function i2(e) {
- if (KJ(e) || e instanceof Date) {
++ if (XJ(e) || e instanceof Date) {
var t = Number(e);
- if (ZZ(t)) return t;
+ if (tQ(t)) return t;
}
}
-function SQe(e) {
+function F$e(e) {
if (Array.isArray(e)) {
- var t = [e2(e[0]), e2(e[1])];
- return d$(t) ? t : void 0;
+ var t = [i2(e[0]), i2(e[1])];
+ return h$(t) ? t : void 0;
}
- var n = e2(e);
+ var n = i2(e);
if (n != null) return [n, n];
}
-function t2(e) {
- return e.map(e2).filter(jJ);
+function a2(e) {
- return e.map(i2).filter(eY);
++ return e.map(i2).filter(iY);
}
-function CQe(e, t) {
- var n = e2(e), r = e2(t);
+function I$e(e, t) {
+ var n = i2(e), r = i2(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var wQe = Y([$0], (e) => e?.map((e) => e.value).sort(CQe));
-function TQe(e, t) {
+var L$e = Y([r2], (e) => e?.map((e) => e.value).sort(I$e));
+function R$e(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
case "yAxis": return t.direction === "y";
default: return !1;
}
}
-function EQe(e, t, n) {
+function z$e(e, t, n) {
if (!n || !n.length) return [];
var r;
- if (typeof t == "number" && !UJ(t)) r = t;
- if (typeof t == "number" && !bJ(t)) r = t;
++ if (typeof t == "number" && !qJ(t)) r = t;
else if (Array.isArray(t)) {
- var i = t2(t);
+ var i = a2(t);
i.length > 0 && (r = Math.max(...i));
}
- return r == null ? [] : t2(n.flatMap((t) => {
- var n = eQ(e, t.dataKey), i, a;
+ return r == null ? [] : a2(n.flatMap((t) => {
+ var n = iQ(e, t.dataKey), i, a;
if (Array.isArray(n)) {
- var o = rQe(n, 2);
+ var o = g$e(n, 2);
i = o[0], a = o[1];
} else i = a = n;
- if (ZZ(i) && ZZ(a)) return [r - i, r + a];
+ if (tQ(i) && tQ(a)) return [r - i, r + a];
}));
}
-var n2 = (e) => G0(e, B$(e), V$(e)), r2 = Y([n2], (e) => e?.dataKey), DQe = Y([
- hQe,
- l$,
- n2
-], I$), i2 = (e, t, n, r) => {
+var o2 = (e) => Y0(e, W$(e), G$(e)), s2 = Y([o2], (e) => e?.dataKey), B$e = Y([
+ O$e,
+ p$,
+ o2
+], B$), c2 = (e, t, n, r) => {
var i = t.reduce((e, t) => {
if (t.stackId == null) return e;
var n = e[t.stackId];
@@@ -89328,117 -87737,117 +89334,117 @@@
u != null && (o = o == null ? u[0] : Math.min(o, u[0]), s = s == null ? u[1] : Math.max(s, u[1]));
});
}), t?.dataKey != null && n.length === 0 && e.forEach((e) => {
- var n = SQe(eQ(e, t.dataKey));
+ var n = F$e(iQ(e, t.dataKey));
n != null && (o = o == null ? n[0] : Math.min(o, n[0]), s = s == null ? n[1] : Math.max(s, n[1]));
- }), ZZ(o) && ZZ(s)) return [o, s];
-}, MQe = Y([
- Q0,
- W0,
- _Qe,
- l2,
- N$,
- yqe
-], d2, { memoizeOptions: { resultEqualityCheck: R$ } });
-function NQe(e) {
+ }), tQ(o) && tQ(s)) return [o, s];
+}, G$e = Y([
+ n2,
+ J0,
+ A$e,
+ p2,
+ L$,
+ MJe
+], h2, { memoizeOptions: { resultEqualityCheck: H$ } });
+function K$e(e) {
var t = e.value;
- if (KJ(t) || t instanceof Date) return t;
- if (CJ(t) || t instanceof Date) return t;
-}
-var PQe = (e, t, n) => {
- var r = e.map(NQe).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && EJ(r)) ? _qe(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
-}, FQe = (e) => e.referenceElements.dots, f2 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), IQe = Y([
- FQe,
- N$,
- P$
-], f2), LQe = (e) => e.referenceElements.areas, RQe = Y([
- LQe,
- N$,
- P$
-], f2), zQe = (e) => e.referenceElements.lines, BQe = Y([
- zQe,
- N$,
- P$
-], f2), VQe = (e, t) => {
++ if (XJ(t) || t instanceof Date) return t;
+}
+var q$e = (e, t, n) => {
+ var r = e.map(K$e).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && YJ(r)) ? AJe(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
++ return n && (t.dataKey == null || t.allowDuplicatedCategory && $J(r)) ? AJe(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
+}, J$e = (e) => e.referenceElements.dots, g2 = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), Y$e = Y([
+ J$e,
+ L$,
+ R$
+], g2), X$e = (e) => e.referenceElements.areas, Z$e = Y([
+ X$e,
+ L$,
+ R$
+], g2), Q$e = (e) => e.referenceElements.lines, $$e = Y([
+ Q$e,
+ L$,
+ R$
+], g2), e1e = (e, t) => {
if (e != null) {
- var n = t2(e.map((e) => t === "xAxis" ? e.x : e.y));
+ var n = a2(e.map((e) => t === "xAxis" ? e.x : e.y));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, HQe = Y(IQe, N$, VQe), UQe = (e, t) => {
+}, t1e = Y(Y$e, L$, e1e), n1e = (e, t) => {
if (e != null) {
- var n = t2(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
+ var n = a2(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, WQe = Y([RQe, N$], UQe);
-function GQe(e) {
- if (e.x != null) return t2([e.x]);
+}, r1e = Y([Z$e, L$], n1e);
+function i1e(e) {
+ if (e.x != null) return a2([e.x]);
var t = e.segment?.map((e) => e.x);
- return t == null || t.length === 0 ? [] : t2(t);
+ return t == null || t.length === 0 ? [] : a2(t);
}
-function KQe(e) {
- if (e.y != null) return t2([e.y]);
+function a1e(e) {
+ if (e.y != null) return a2([e.y]);
var t = e.segment?.map((e) => e.y);
- return t == null || t.length === 0 ? [] : t2(t);
+ return t == null || t.length === 0 ? [] : a2(t);
}
-var qQe = (e, t) => {
+var o1e = (e, t) => {
if (e != null) {
- var n = e.flatMap((e) => t === "xAxis" ? GQe(e) : KQe(e));
+ var n = e.flatMap((e) => t === "xAxis" ? i1e(e) : a1e(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, JQe = Y(HQe, Y([BQe, N$], qQe), WQe, (e, t, n) => u2(e, n, t)), p2 = (e, t, n, r, i, a, o, s, c) => {
+}, s1e = Y(t1e, Y([$$e, L$], o1e), r1e, (e, t, n) => m2(e, n, t)), _2 = (e, t, n, r, i, a, o, s, c) => {
if (n != null) return n;
- var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? u2(r, a, i) : u2(a, i), u = kqe(t, l, e.allowDataOverflow);
+ var l = o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? m2(r, a, i) : m2(a, i), u = HJe(t, l, e.allowDataOverflow);
return u == null && e.allowDataOverflow && l == null && c != null ? c : u;
-}, YQe = Y([
- W0,
- s2,
- c2,
- AQe,
- MQe,
- JQe,
- EQ,
- N$,
- Y([W0], (e) => {
+}, c1e = Y([
+ J0,
+ d2,
+ f2,
+ U$e,
+ G$e,
+ s1e,
+ AQ,
+ L$,
+ Y([J0], (e) => {
if (e != null && e.type === "number" && "ticks" in e && e.ticks != null) {
- var t = t2(e.ticks);
+ var t = a2(e.ticks);
if (t.length !== 0) return [Math.min(...t), Math.max(...t)];
}
- }, { memoizeOptions: { resultEqualityCheck: R$ } })
-], p2, { memoizeOptions: { resultEqualityCheck: R$ } }), XQe = [0, 1], m2 = (e, t, n, r, i, a, o) => {
+ }, { memoizeOptions: { resultEqualityCheck: H$ } })
+], _2, { memoizeOptions: { resultEqualityCheck: H$ } }), l1e = [0, 1], v2 = (e, t, n, r, i, a, o) => {
if (e != null && n != null && n.length !== 0 || o !== void 0) {
- var s = e.dataKey, c = e.type, l = tQ(t, a);
- return l && s == null ? _qe(0, n?.length ?? 0) : c === "category" ? PQe(r, e, l) : i === "expand" && !l ? XQe : o;
+ var s = e.dataKey, c = e.type, l = aQ(t, a);
+ return l && s == null ? AJe(0, n?.length ?? 0) : c === "category" ? q$e(r, e, l) : i === "expand" && !l ? l1e : o;
}
-}, h2 = Y([
- W0,
- EQ,
- Q0,
- $0,
- _$,
- N$,
- YQe
-], m2), g2 = Y([
- W0,
- pQe,
- y$
-], YZe), _2 = (e, t, n) => {
+}, y2 = Y([
+ J0,
+ AQ,
+ n2,
+ r2,
+ x$,
+ L$,
+ c1e
+], v2), b2 = Y([
+ J0,
+ E$e,
+ C$
+], c$e), x2 = (e, t, n) => {
var r = t.niceTicks;
if (r !== "none") {
- var i = o2(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && d$(e)) {
- if (a) return Vqe(e, t.tickCount, t.allowDecimals, r);
- if (t.type === "number") return Hqe(e, t.tickCount, t.allowDecimals, r);
+ var i = u2(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");
+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && h$(e)) {
+ if (a) return eYe(e, t.tickCount, t.allowDecimals, r);
+ if (t.type === "number") return tYe(e, t.tickCount, t.allowDecimals, r);
}
if (r === "auto" && n === "linear" && t != null && t.tickCount) {
- if (a && d$(e)) return Vqe(e, t.tickCount, t.allowDecimals, "adaptive");
- if (t.type === "number" && d$(e)) return Hqe(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (a && h$(e)) return eYe(e, t.tickCount, t.allowDecimals, "adaptive");
+ if (t.type === "number" && h$(e)) return tYe(e, t.tickCount, t.allowDecimals, "adaptive");
}
}
-}, v2 = Y([
- h2,
- G0,
- g2
-], _2), y2 = (e, t, n, r) => {
- if (r !== "angleAxis" && e?.type === "number" && d$(t) && Array.isArray(n) && n.length > 0) {
+}, S2 = Y([
+ y2,
+ Y0,
+ b2
+], x2), C2 = (e, t, n, r) => {
+ if (r !== "angleAxis" && e?.type === "number" && h$(t) && Array.isArray(n) && n.length > 0) {
var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;
return [Math.min(i, a), Math.max(o, s)];
}
@@@ -89468,7 -87877,7 +89474,7 @@@
var a = t === "vertical" ? r.height : r.width;
if (i === "gap") return e * a / 2;
if (i === "no-gap") {
- var o = JJ(n, e * a), s = e * a / 2;
- var o = TJ(n, e * a), s = e * a / 2;
++ var o = QJ(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
@@@ -89631,38 -88040,38 +89637,38 @@@ var k2 = (e, t) => t, A2 = (e, t, n) =
y: e.top
};
}
-}), v$e = Y(pQ, H0, (e, t) => ({
+}), j1e = Y(_Q, K0, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-})), y$e = (e, t, n) => {
+})), M1e = (e, t, n) => {
switch (t) {
- case "xAxis": return d$e(e, n).width;
- case "yAxis": return v$e(e, n).height;
+ case "xAxis": return w1e(e, n).width;
+ case "yAxis": return j1e(e, n).height;
default: return;
}
-}, b$e = (e, t, n, r) => {
+}, N1e = (e, t, n, r) => {
if (n != null) {
- var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = tQ(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
- if (o && s && a === "category" && i && EJ(l)) return c;
+ var i = n.allowDuplicatedCategory, a = n.type, o = n.dataKey, s = aQ(e, r), c = t.map((e) => e.value), l = c.filter((e) => e != null);
- if (o && s && a === "category" && i && YJ(l)) return c;
++ if (o && s && a === "category" && i && $J(l)) return c;
}
-}, D2 = Y([
- EQ,
- $0,
- W0,
- N$
-], b$e), x$e = Y([
- EQ,
- fQe,
- g2,
- w2,
- D2,
- C2,
+}, j2 = Y([
+ AQ,
+ r2,
+ J0,
+ L$
+], N1e), P1e = Y([
+ AQ,
+ T$e,
b2,
- v2,
- N$
+ O2,
+ j2,
+ D2,
+ w2,
+ S2,
+ L$
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = tQ(e, c);
+ var l = aQ(e, c);
return {
angle: t.angle,
interval: t.interval,
@@@ -89684,10 -88093,10 +89690,10 @@@
scale: r
};
}
-}), S$e = (e, t, n, r, i, a, o, s, c) => {
+}), F1e = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = tQ(e, c), u = t.type, d = t.ticks, f = t.tickCount, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? yJ(a[0] - a[1]) * 2 * m : m;
+ var l = aQ(e, c), u = t.type, d = t.ticks, f = t.tickCount, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;
- m = c === "angleAxis" && a != null && a.length >= 2 ? HJ(a[0] - a[1]) * 2 * m : m;
++ m = c === "angleAxis" && a != null && a.length >= 2 ? KJ(a[0] - a[1]) * 2 * m : m;
var h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
@@@ -89697,94 -88106,94 +89703,94 @@@
value: e,
offset: m
} : null;
- }).filter(eY) : l && s ? s.map((e, t) => {
- }).filter(jJ) : l && s ? s.map((e, t) => {
++ }).filter(iY) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(eY) : r.ticks ? r.ticks(f).map((e, t) => {
- }).filter(jJ) : r.ticks ? r.ticks(f).map((e, t) => {
++ }).filter(iY) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(eY) : r.domain().map((e, t) => {
- }).filter(jJ) : r.domain().map((e, t) => {
++ }).filter(iY) : r.domain().map((e, t) => {
var n = r.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(eY);
- }).filter(jJ);
++ }).filter(iY);
}
-}, C$e = Y([
- EQ,
- G0,
- g2,
- w2,
- v2,
+}, I1e = Y([
+ AQ,
+ Y0,
b2,
+ O2,
+ S2,
+ w2,
+ j2,
D2,
- C2,
- N$
-], S$e), w$e = (e, t, n, r, i, a, o) => {
+ L$
+], F1e), L1e = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = tQ(e, o), c = t.tickCount, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? yJ(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ var s = aQ(e, o), c = t.tickCount, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? HJ(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
++ return l = o === "angleAxis" && r?.length >= 2 ? KJ(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
var r = n.map(e);
- return ZZ(r) ? {
+ return tQ(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(eY) : n.ticks ? n.ticks(c).map((e, t) => {
- }).filter(jJ) : n.ticks ? n.ticks(c).map((e, t) => {
++ }).filter(iY) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return ZZ(r) ? {
+ return tQ(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(eY) : n.domain().map((e, t) => {
- }).filter(jJ) : n.domain().map((e, t) => {
++ }).filter(iY) : n.domain().map((e, t) => {
var r = n.map(e);
- return ZZ(r) ? {
+ return tQ(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(eY);
- }).filter(jJ);
++ }).filter(iY);
}
-}, O2 = Y([
- EQ,
- G0,
+}, M2 = Y([
+ AQ,
+ Y0,
+ O2,
w2,
- b2,
+ j2,
D2,
- C2,
- N$
-], w$e), k2 = Y(W0, w2, (e, t) => {
- if (e != null && t != null) return L0(L0({}, e), {}, { scale: t });
+ L$
+], L1e), N2 = Y(J0, O2, (e, t) => {
+ if (e != null && t != null) return V0(V0({}, e), {}, { scale: t });
});
-Y((e, t, n) => U0(e, n), Y([Y([
- W0,
- g2,
- h2,
- a$e
-], I0)], H$), (e, t) => {
- if (e != null && t != null) return L0(L0({}, e), {}, { scale: t });
+Y((e, t, n) => q0(e, n), Y([Y([
+ J0,
+ b2,
+ y2,
+ v1e
+], B0)], K$), (e, t) => {
+ if (e != null && t != null) return V0(V0({}, e), {}, { scale: t });
});
-var T$e = Y([
- EQ,
- uQ,
- dQ
+var R1e = Y([
+ AQ,
+ mQ,
+ hQ
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@@ -89820,10 -88229,10 +89826,10 @@@ function H1e(e)
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
-var A$e = (e, t) => {
+var U1e = (e, t) => {
var n, r = Number(t);
- if (!(UJ(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
- if (!(bJ(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, j$e = (e) => e.tooltip.settings, j2 = {
++ if (!(qJ(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
+}, W1e = (e) => e.tooltip.settings, F2 = {
active: !1,
index: null,
dataKey: void 0,
@@@ -90110,9 -88519,9 +90116,9 @@@ var D0e = (e, t, n, r, i, a, o) =>
if (t != null && a != null) {
var s = n.chartData, c = n.computedData, l = n.dataStartIndex, u = n.dataEndIndex;
return e.reduce((e, n) => {
- var d = n.dataDefinedOnItem, f = n.settings, p = p1e(d, s), m = Array.isArray(p) ? CHe(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
- return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = OJ(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
- var n = f1e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = i1e(i1e({}, f), {}, {
+ var d = n.dataDefinedOnItem, f = n.settings, p = E0e(d, s), m = Array.isArray(p) ? IUe(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _;
- return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = ZJ(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
++ return r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? (_ = tY(m, r, i), _ ??= a(m, t, c, g)) : _ = a(m, t, c, g), Array.isArray(_) ? _.forEach((t) => {
+ var n = T0e(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = _0e(_0e({}, f), {}, {
name: r,
unit: n?.unit,
color: n?.color ?? f?.color,
@@@ -90134,172 -88543,172 +90140,172 @@@
})), e;
}, []);
}
-}, R2 = Y([
- n2,
- pQe,
- y$
-], YZe), z2 = Y([
+}, H2 = Y([
+ o2,
+ E$e,
+ C$
+], c$e), U2 = Y([
Y([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),
- n2,
- Y([B$, V$], K0)
-], J0, { memoizeOptions: { resultEqualityCheck: z$ } }), h1e = Y([z2], (e) => e.filter(L$)), g1e = Y([z2], X0, { memoizeOptions: { resultEqualityCheck: z$ } }), _1e = Y([z2], (e) => e.some((e) => !e.data)), B2 = Y([g1e, s$], Z0), v1e = Y([
- h1e,
- s$,
- n2
-], I$), V2 = Y([
- B2,
- n2,
- z2,
- s$,
- _1e,
- g1e
-], xQe), y1e = Y([n2], o2), b1e = Y([y1e, Y([n2], (e) => e.allowDataOverflow)], Oqe), x1e = Y([
+ o2,
+ Y([W$, G$], X0)
+], Q0, { memoizeOptions: { resultEqualityCheck: U$ } }), O0e = Y([U2], (e) => e.filter(V$)), k0e = Y([U2], e2, { memoizeOptions: { resultEqualityCheck: U$ } }), A0e = Y([U2], (e) => e.some((e) => !e.data)), W2 = Y([k0e, d$], t2), j0e = Y([
+ O0e,
+ d$,
+ o2
+], B$), G2 = Y([
+ W2,
+ o2,
+ U2,
+ d$,
+ A0e,
+ k0e
+], P$e), M0e = Y([o2], u2), N0e = Y([M0e, Y([o2], (e) => e.allowDataOverflow)], VJe), P0e = Y([
Y([
- v1e,
- Y([z2], (e) => e.filter(L$)),
- _$,
- v$
- ], i2),
- s$,
- B$,
- b1e
-], OQe), S1e = Y([
- B2,
- n2,
- Y([z2], gQe),
- l2,
- B$,
- xqe
-], d2, { memoizeOptions: { resultEqualityCheck: R$ } }), C1e = Y([Y([
- FQe,
- B$,
- V$
-], f2), B$], VQe), w1e = Y([Y([
- LQe,
- B$,
- V$
-], f2), B$], UQe), H2 = Y([
- n2,
- EQ,
- B2,
- V2,
- _$,
- B$,
+ j0e,
+ Y([U2], (e) => e.filter(V$)),
+ x$,
+ S$
+ ], c2),
+ d$,
+ W$,
+ N0e
+], V$e), F0e = Y([
+ W2,
+ o2,
+ Y([U2], k$e),
+ p2,
+ W$,
+ PJe
+], h2, { memoizeOptions: { resultEqualityCheck: H$ } }), I0e = Y([Y([
+ J$e,
+ W$,
+ G$
+], g2), W$], e1e), L0e = Y([Y([
+ X$e,
+ W$,
+ G$
+], g2), W$], n1e), K2 = Y([
+ o2,
+ AQ,
+ W2,
+ G2,
+ x$,
+ W$,
Y([
- n2,
- y1e,
- b1e,
- x1e,
- S1e,
+ o2,
+ M0e,
+ N0e,
+ P0e,
+ F0e,
Y([
- C1e,
+ I0e,
Y([Y([
- zQe,
- B$,
- V$
- ], f2), B$], qQe),
- w1e
- ], u2),
- EQ,
- B$
- ], p2)
-], m2), T1e = Y([
- n2,
- H2,
+ Q$e,
+ W$,
+ G$
+ ], g2), W$], o1e),
+ L0e
+ ], m2),
+ AQ,
+ W$
+ ], _2)
+], v2), R0e = Y([
+ o2,
+ K2,
Y([
- H2,
- n2,
- R2
- ], _2),
- B$
-], y2), E1e = (e) => b2(e, B$(e), V$(e), !1), D1e = Y([n2, E1e], T$), O1e = Y([Y([
- n2,
- R2,
- T1e,
- D1e
-], I0)], H$), U2 = Y([
- EQ,
- n2,
- R2,
- O1e,
- E1e,
+ K2,
+ o2,
+ H2
+ ], x2),
+ W$
+], C2), z0e = (e) => w2(e, W$(e), G$(e), !1), B0e = Y([o2, z0e], k$), V0e = Y([Y([
+ o2,
+ H2,
+ R0e,
+ B0e
+], B0)], K$), q2 = Y([
+ AQ,
+ o2,
+ H2,
+ V0e,
+ z0e,
Y([
- EQ,
- V2,
- n2,
- B$
- ], b$e),
+ AQ,
+ G2,
+ o2,
+ W$
+ ], N1e),
Y([
- EQ,
- V2,
- n2,
- B$
- ], S2),
- B$
+ AQ,
+ G2,
+ o2,
+ W$
+ ], E2),
+ W$
], (e, t, n, r, i, a, o, s) => {
if (t) {
- var c = t.type, l = tQ(e, s);
+ var c = t.type, l = aQ(e, s);
if (r) {
var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? HJ(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
- return d = s === "angleAxis" && i != null && i?.length >= 2 ? yJ(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
++ return d = s === "angleAxis" && i != null && i?.length >= 2 ? KJ(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(eY) : r.domain().map((e, t) => {
- }).filter(jJ) : r.domain().map((e, t) => {
++ }).filter(iY) : r.domain().map((e, t) => {
var n = r.map(e);
- return ZZ(n) ? {
+ return tQ(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(eY);
- }).filter(jJ);
++ }).filter(iY);
}
}
-}), W2 = Y([
- E$e,
- D$e,
- j$e
-], (e, t, n) => O$e(n.shared, e, t)), k1e = (e) => e.tooltip.settings.trigger, G2 = (e) => e.tooltip.settings.defaultIndex, K2 = Y([
- L2,
+}), J2 = Y([
+ z1e,
+ B1e,
+ W1e
+], (e, t, n) => V1e(n.shared, e, t)), H0e = (e) => e.tooltip.settings.trigger, Y2 = (e) => e.tooltip.settings.defaultIndex, X2 = Y([
+ V2,
+ J2,
+ H0e,
+ Y2
+], l0e), Z2 = Y([
+ X2,
W2,
- k1e,
- G2
-], X$e), q2 = Y([
- K2,
- B2,
- r2,
- H2
-], I2), A1e = Y([U2, q2], A$e), j1e = Y([K2], (e) => {
+ s2,
+ K2
+], B2), U0e = Y([q2, Z2], U1e), W0e = Y([X2], (e) => {
if (e) return e.dataKey;
-}), M1e = Y([K2], (e) => {
+}), G0e = Y([X2], (e) => {
if (e) return e.graphicalItemId;
-}), N1e = Y([
- L2,
- W2,
- k1e,
- G2
-], t1e), P1e = Y([K2, Y([
- sQ,
- cQ,
- EQ,
- pQ,
- U2,
- G2,
- N1e
-], e1e)], (e, t) => e != null && e.coordinate ? e.coordinate : t), F1e = Y([K2], (e) => e?.active ?? !1), I1e = Y([Y([
- N1e,
+}), K0e = Y([
+ V2,
+ J2,
+ H0e,
+ Y2
+], m0e), q0e = Y([X2, Y([
+ dQ,
+ fQ,
+ AQ,
+ _Q,
q2,
- s$,
- r2,
- A1e,
- n1e,
- W2
-], m1e)], (e) => {
+ Y2,
+ K0e
+], p0e)], (e, t) => e != null && e.coordinate ? e.coordinate : t), J0e = Y([X2], (e) => e?.active ?? !1), Y0e = Y([Y([
+ K0e,
+ Z2,
+ d$,
+ s2,
+ U0e,
+ h0e,
+ J2
+], D0e)], (e) => {
if (e != null) {
var t = e.map((e) => e.payload).filter((e) => e != null);
return Array.from(new Set(t));
@@@ -90459,9 -88868,9 +90465,9 @@@ var u2e = (e, t, n, r, i) =>
].some((e) => (r ? e >= t : e > t) && e <= n), c = 0; c < a; c++) {
var l = c > 0 ? n[c - 1]?.coordinate : n[a - 1]?.coordinate, u = n[c]?.coordinate, d = c >= a - 1 ? n[0]?.coordinate : n[c + 1]?.coordinate, f = void 0;
if (l != null && u != null && d != null) {
- if (HJ(u - l) !== HJ(d - u)) {
- if (yJ(u - l) !== yJ(d - u)) {
++ if (KJ(u - l) !== KJ(d - u)) {
var p = [];
- if (HJ(d - u) === HJ(i[1] - i[0])) {
- if (yJ(d - u) === yJ(i[1] - i[0])) {
++ if (KJ(d - u) === KJ(i[1] - i[0])) {
f = d;
var m = u + i[1] - i[0];
p[0] = Math.min(m, (m + l) / 2), p[1] = Math.max(m, (m + l) / 2);
@@@ -90745,10 -89154,10 +90751,10 @@@ function U2e(e)
var t = e.coordinate, n = e.payload, r = e.index, i = e.offset, a = e.tooltipAxisBandSize, o = e.layout, s = e.cursor, c = e.tooltipEventType, l = e.chartName, u = t, d = n, f = r;
if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;
var p, m, h;
- if (l === "ScatterChart") p = u, m = IGe, h = S$.cursorLine;
- else if (l === "BarChart") p = LGe(o, u, i, a), m = QQ, h = S$.cursorRectangle;
- else if (o === "radial" && FY(u)) {
- var g = rqe(u), _ = g.cx, v = g.cy, y = g.radius;
+ if (l === "ScatterChart") p = u, m = YKe, h = E$.cursorLine;
+ else if (l === "BarChart") p = XKe(o, u, i, a), m = n$, h = E$.cursorRectangle;
- else if (o === "radial" && iX(u)) {
++ else if (o === "radial" && cX(u)) {
+ var g = gJe(u), _ = g.cx, v = g.cy, y = g.radius;
p = {
cx: _,
cy: v,
@@@ -90756,17 -89165,17 +90762,17 @@@
endAngle: g.endAngle,
innerRadius: y,
outerRadius: y
- }, m = a$, h = S$.cursorLine;
- } else p = { points: hqe(o, u, i) }, m = KQ, h = S$.cursorLine;
- var b = typeof s == "object" && "className" in s ? s.className : void 0, x = i4(i4(i4(i4({
+ }, m = l$, h = E$.cursorLine;
+ } else p = { points: OJe(o, u, i) }, m = XQ, h = E$.cursorLine;
+ var b = typeof s == "object" && "className" in s ? s.className : void 0, x = c4(c4(c4(c4({
stroke: "#ccc",
pointerEvents: "none"
- }, i), p), DJ(s)), {}, {
- }, i), p), iJ(s)), {}, {
++ }, i), p), jJ(s)), {}, {
payload: d,
payloadIndex: f,
- className: ny("recharts-tooltip-cursor", b)
+ className: ey("recharts-tooltip-cursor", b)
});
- return /*#__PURE__*/ S.createElement(n4, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ S.createElement(k0e, {
+ return /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ S.createElement(H2e, {
cursor: s,
cursorComp: m,
cursorProps: x
@@@ -90870,12 -89279,12 +90876,12 @@@ var G2e = /*#__PURE__*/ (0, S.createCon
var t;
return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;
}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);
-})))(), 1)).default, a4 = new P0e(), o4 = "recharts.syncEvent.tooltip", F0e = "recharts.syncEvent.brush", s4 = (e, t) => {
+})))(), 1)).default, l4 = new q2e(), u4 = "recharts.syncEvent.tooltip", J2e = "recharts.syncEvent.brush", d4 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!UJ(n)) return e[n];
- if (!bJ(n)) return e[n];
++ if (!qJ(n)) return e[n];
}
-}, I0e = IZ({
+}, Y2e = BZ({
name: "options",
initialState: {
chartName: "",
@@@ -90976,13 -89385,13 +90982,13 @@@ function l4e(e, t)
}
return n;
}
-function Z0e() {
- var e = MX(b$), t = MX(x$), n = AX(), r = MX(Gqe), i = MX(U2), a = DQ(), o = CQ(), s = MX((e) => e.rootProps.className);
+function u4e() {
+ var e = IX(w$), t = IX(T$), n = PX(), r = IX(iYe), i = IX(q2), a = jQ(), o = DQ(), s = IX((e) => e.rootProps.className);
(0, S.useEffect)(() => {
- if (e == null) return tY;
- if (e == null) return MJ;
++ if (e == null) return aY;
var s = (s, c, l) => {
if (t !== l && e === s) {
- if (c.payload.active === !1) n(N2({
+ if (c.payload.active === !1) n(L2({
active: !1,
coordinate: void 0,
dataKey: void 0,
@@@ -91061,15 -89470,15 +91067,15 @@@
o
]);
}
-function Q0e() {
- var e = MX(b$), t = MX(x$), n = AX();
+function d4e() {
+ var e = IX(w$), t = IX(T$), n = PX();
(0, S.useEffect)(() => {
- if (e == null) return tY;
- if (e == null) return MJ;
++ if (e == null) return aY;
var r = (r, i, a) => {
- t !== a && e === r && n(H0e(i));
+ t !== a && e === r && n(t4e(i));
};
- return a4.on(F0e, r), () => {
- a4.off(F0e, r);
+ return l4.on(J2e, r), () => {
+ l4.off(J2e, r);
};
}, [
n,
@@@ -91231,10 -89640,10 +91237,10 @@@ var D4e = [], O4e =
useTranslate3d: !1,
wrapperStyle: {}
};
-function g2e(e) {
- var t = zY(e, h2e), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, b = t.axisId, x = AX(), C = typeof v == "number" ? String(v) : v;
+function k4e(e) {
- var t = cX(e, O4e), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, b = t.axisId, x = PX(), C = typeof v == "number" ? String(v) : v;
++ var t = fX(e, O4e), n = t.active, r = t.allowEscapeViewBox, i = t.animationDuration, a = t.animationEasing, o = t.content, s = t.filterNull, c = t.isAnimationActive, l = t.offset, u = t.payloadUniqBy, d = t.position, f = t.reverseDirection, p = t.useTranslate3d, m = t.wrapperStyle, h = t.cursor, g = t.shared, _ = t.trigger, v = t.defaultIndex, y = t.portal, b = t.axisId, x = PX(), C = typeof v == "number" ? String(v) : v;
(0, S.useEffect)(() => {
- x(I$e({
+ x(Y1e({
shared: g,
trigger: _,
axisId: b,
@@@ -91520,7 -89929,7 +91526,7 @@@ var v4 = class e
return r == null ? e.NaN : new e(parseFloat(r), i ?? "");
}
constructor(e, t) {
- this.num = e, this.unit = t, this.num = e, this.unit = t, UJ(e) && (this.unit = ""), t !== "" && !n3e.test(t) && (this.num = NaN, this.unit = ""), o3e(t) && (this.num = s3e(e, t), this.unit = "px");
- this.num = e, this.unit = t, this.num = e, this.unit = t, bJ(e) && (this.unit = ""), t !== "" && !U2e.test(t) && (this.num = NaN, this.unit = ""), q2e(t) && (this.num = J2e(e, t), this.unit = "px");
++ this.num = e, this.unit = t, this.num = e, this.unit = t, qJ(e) && (this.unit = ""), t !== "" && !n3e.test(t) && (this.num = NaN, this.unit = ""), o3e(t) && (this.num = s3e(e, t), this.unit = "px");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@@ -91538,21 -89947,21 +91544,21 @@@
return `${this.num}${this.unit}`;
}
isNaN() {
- return UJ(this.num);
- return bJ(this.num);
++ return qJ(this.num);
}
};
-M2e = m4, R2e(m4, "NaN", new M2e(NaN, ""));
-function Y2e(e) {
- if (e == null || e.includes(p4)) return p4;
+G4e = v4, Z4e(v4, "NaN", new G4e(NaN, ""));
+function c3e(e) {
+ if (e == null || e.includes(_4)) return _4;
for (var t = e; t.includes("*") || t.includes("/");) {
- var n = f4(V2e.exec(t) ?? [], 4), r = n[1], i = n[2], a = n[3], o = m4.parse(r ?? ""), s = m4.parse(a ?? ""), c = i === "*" ? o.multiply(s) : o.divide(s);
- if (c.isNaN()) return p4;
- t = t.replace(V2e, c.toString());
+ var n = g4(e3e.exec(t) ?? [], 4), r = n[1], i = n[2], a = n[3], o = v4.parse(r ?? ""), s = v4.parse(a ?? ""), c = i === "*" ? o.multiply(s) : o.divide(s);
+ if (c.isNaN()) return _4;
+ t = t.replace(e3e, c.toString());
}
for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {
- var l = f4(H2e.exec(t) ?? [], 4), u = l[1], d = l[2], f = l[3], p = m4.parse(u ?? ""), m = m4.parse(f ?? ""), h = d === "+" ? p.add(m) : p.subtract(m);
- if (h.isNaN()) return p4;
- t = t.replace(H2e, h.toString());
+ var l = g4(t3e.exec(t) ?? [], 4), u = l[1], d = l[2], f = l[3], p = v4.parse(u ?? ""), m = v4.parse(f ?? ""), h = d === "+" ? p.add(m) : p.subtract(m);
+ if (h.isNaN()) return _4;
+ t = t.replace(t3e, h.toString());
}
return t;
}
@@@ -91670,24 -90079,24 +91676,24 @@@ var C3e = /[ \f\n\r\t\v\u2028\u2029]+/
var t = e.children, n = e.breakAll, r = e.style;
try {
var i = [];
- return QJ(t) || (i = n ? t.toString().split("") : t.toString().split(C3e)), {
- return kJ(t) || (i = n ? t.toString().split("") : t.toString().split(u4e)), {
++ return nY(t) || (i = n ? t.toString().split("") : t.toString().split(C3e)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
- width: d4(e, r).width
+ width: h4(e, r).width
})),
- spaceWidth: n ? 0 : d4("\xA0", r).width
+ spaceWidth: n ? 0 : h4("\xA0", r).width
};
} catch {
return null;
}
};
-function f4e(e) {
+function T3e(e) {
return e === "start" || e === "middle" || e === "end" || e === "inherit";
}
-function p4e(e) {
- return kJ(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function E3e(e) {
- return QJ(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
++ return nY(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
}
-var m4e = (e, t, n, r) => e.reduce((e, i) => {
+var D3e = (e, t, n, r) => e.reduce((e, i) => {
var a = i.word, o = i.width, s = e[e.length - 1];
if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;
else {
@@@ -91698,20 -90107,20 +91704,20 @@@
e.push(c);
}
return e;
-}, []), h4e = (e) => e.reduce((e, t) => e.width > t.width ? e : t), g4e = "…", _4e = (e, t, n, r, i, a, o, s) => {
- var c = d4e({
+}, []), O3e = (e) => e.reduce((e, t) => e.width > t.width ? e : t), k3e = "…", A3e = (e, t, n, r, i, a, o, s) => {
+ var c = w3e({
breakAll: n,
style: r,
- children: e.slice(0, t) + g4e
+ children: e.slice(0, t) + k3e
});
if (!c) return [!1, []];
- var l = m4e(c.wordsWithComputedWidth, a, o, s);
- return [l.length > i || h4e(l).width > Number(a), l];
-}, v4e = (e, t, n, r, i) => {
- var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = SJ(a), u = String(o), d = m4e(t, r, n, i);
- if (!l || i || !(d.length > a || h4e(d).width > Number(r))) return d;
+ var l = D3e(c.wordsWithComputedWidth, a, o, s);
+ return [l.length > i || O3e(l).width > Number(a), l];
+}, j3e = (e, t, n, r, i) => {
- var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = GJ(a), u = String(o), d = D3e(t, r, n, i);
++ var a = e.maxLines, o = e.children, s = e.style, c = e.breakAll, l = YJ(a), u = String(o), d = D3e(t, r, n, i);
+ if (!l || i || !(d.length > a || O3e(d).width > Number(r))) return d;
for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {
- var g = Math.floor((f + p) / 2), _ = i4e(_4e(u, g - 1, c, s, a, r, n, i), 2), v = _[0], y = _[1], b = i4e(_4e(u, g, c, s, a, r, n, i), 1)[0];
+ var g = Math.floor((f + p) / 2), _ = _3e(A3e(u, g - 1, c, s, a, r, n, i), 2), v = _[0], y = _[1], b = _3e(A3e(u, g, c, s, a, r, n, i), 1)[0];
if (!v && !b && (f = g + 1), v && b && (p = g - 1), !v && b) {
h = y;
break;
@@@ -91719,13 -90128,13 +91725,13 @@@
m++;
}
return h || d;
-}, y4e = (e) => [{
- words: kJ(e) ? [] : e.toString().split(u4e),
+}, M3e = (e) => [{
- words: QJ(e) ? [] : e.toString().split(C3e),
++ words: nY(e) ? [] : e.toString().split(C3e),
width: void 0
-}], b4e = (e) => {
+}], N3e = (e) => {
var t = e.width, n = e.scaleToFit, r = e.children, i = e.style, a = e.breakAll, o = e.maxLines;
- if ((t || n) && !BQ.isSsr) {
- var s, c, l = d4e({
+ if ((t || n) && !WQ.isSsr) {
+ var s, c, l = w3e({
breakAll: a,
children: r,
style: i
@@@ -91753,8 -90162,8 +91759,8 @@@
verticalAnchor: "end",
x: 0,
y: 0
-}, _4 = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = zY(e, S4e), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = n4e(n, e4e), f = (0, S.useMemo)(() => b4e({
+}, x4 = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = cX(e, F3e), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = h3e(n, p3e), f = (0, S.useMemo)(() => N3e({
++ var n = fX(e, F3e), r = n.x, i = n.y, a = n.lineHeight, o = n.capHeight, s = n.fill, c = n.scaleToFit, l = n.textAnchor, u = n.verticalAnchor, d = h3e(n, p3e), f = (0, S.useMemo)(() => N3e({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@@ -91768,10 -90177,10 +91774,10 @@@
c,
d.style,
d.width
- ]), p = d.dx, m = d.dy, h = d.angle, g = d.className, _ = d.breakAll, v = n4e(d, t4e);
- if (!CJ(r) || !CJ(i) || f.length === 0) return null;
- var y = Number(r) + (SJ(p) ? p : 0), b = Number(i) + (SJ(m) ? m : 0);
- if (!ZZ(y) || !ZZ(b)) return null;
+ ]), p = d.dx, m = d.dy, h = d.angle, g = d.className, _ = d.breakAll, v = h3e(d, m3e);
- if (!KJ(r) || !KJ(i) || f.length === 0) return null;
- var y = Number(r) + (GJ(p) ? p : 0), b = Number(i) + (GJ(m) ? m : 0);
++ if (!XJ(r) || !XJ(i) || f.length === 0) return null;
++ var y = Number(r) + (YJ(p) ? p : 0), b = Number(i) + (YJ(m) ? m : 0);
+ if (!tQ(y) || !tQ(b)) return null;
var x;
switch (u) {
case "start":
@@@ -91785,9 -90194,9 +91791,9 @@@
var C = [], w = f[0];
if (c && w != null) {
var T = w.width, E = d.width;
- C.push(`scale(${GJ(E) && GJ(T) ? E / T : 1})`);
- C.push(`scale(${SJ(E) && SJ(T) ? E / T : 1})`);
++ C.push(`scale(${YJ(E) && YJ(T) ? E / T : 1})`);
}
- return h && C.push(`rotate(${h}, ${y}, ${b})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ S.createElement("text", b4({}, OJ(v), {
- return h && C.push(`rotate(${h}, ${y}, ${b})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ S.createElement("text", g4({}, aJ(v), {
++ return h && C.push(`rotate(${h}, ${y}, ${b})`), C.length && (v.transform = C.join(" ")), /*#__PURE__*/ S.createElement("text", b4({}, MJ(v), {
ref: t,
x: y,
y: b,
@@@ -91893,11 -90302,11 +91899,11 @@@ var W3e = /*#__PURE__*/ (0, S.createCon
a,
o
]);
- return /*#__PURE__*/ S.createElement(j4e.Provider, { value: c }, s);
-}, N4e = () => {
- var e = (0, S.useContext)(j4e), t = CQ();
- return e || (t ? NJ(t) : void 0);
-}, P4e = /*#__PURE__*/ (0, S.createContext)(null), F4e = (e) => {
+ return /*#__PURE__*/ S.createElement(W3e.Provider, { value: c }, s);
+}, K3e = () => {
+ var e = (0, S.useContext)(W3e), t = DQ();
- return e || (t ? nY(t) : void 0);
++ return e || (t ? oY(t) : void 0);
+}, q3e = /*#__PURE__*/ (0, S.createContext)(null), J3e = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.startAngle, o = e.endAngle, s = e.clockWise, c = e.children, l = (0, S.useMemo)(() => ({
cx: t,
cy: n,
@@@ -91915,15 -90324,15 +91921,15 @@@
o,
s
]);
- return /*#__PURE__*/ S.createElement(P4e.Provider, { value: l }, c);
-}, I4e = () => {
- var e = (0, S.useContext)(P4e), t = MX(M$);
+ return /*#__PURE__*/ S.createElement(q3e.Provider, { value: l }, c);
+}, Y3e = () => {
+ var e = (0, S.useContext)(q3e), t = IX(I$);
return e || t;
-}, L4e = (e) => {
- var t = e.value, n = e.formatter, r = kJ(e.children) ? t : e.children;
+}, X3e = (e) => {
- var t = e.value, n = e.formatter, r = QJ(e.children) ? t : e.children;
++ var t = e.value, n = e.formatter, r = nY(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
- }, w4 = (e) => e != null && typeof e == "function", Z3e = (e, t) => HJ(t - e) * Math.min(Math.abs(t - e), 360), Q3e = (e, t, n, r, i) => {
-}, b4 = (e) => e != null && typeof e == "function", R4e = (e, t) => yJ(t - e) * Math.min(Math.abs(t - e), 360), z4e = (e, t, n, r, i) => {
- var a = e.offset, o = e.className, s = i.cx, c = i.cy, l = i.innerRadius, u = i.outerRadius, d = i.startAngle, f = i.endAngle, p = i.clockWise, m = (l + u) / 2, h = R4e(d, f), g = h >= 0 ? 1 : -1, _, v;
++}, w4 = (e) => e != null && typeof e == "function", Z3e = (e, t) => KJ(t - e) * Math.min(Math.abs(t - e), 360), Q3e = (e, t, n, r, i) => {
+ var a = e.offset, o = e.className, s = i.cx, c = i.cy, l = i.innerRadius, u = i.outerRadius, d = i.startAngle, f = i.endAngle, p = i.clockWise, m = (l + u) / 2, h = Z3e(d, f), g = h >= 0 ? 1 : -1, _, v;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@@ -91937,12 -90346,12 +91943,12 @@@
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = t$(s, c, m, _), b = t$(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ var y = a$(s, c, m, _), b = a$(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
A${m},${m},0,1,${+!v},
- ${b.x},${b.y}`, C = QJ(e.id) ? qJ("recharts-radial-line-") : e.id;
- ${b.x},${b.y}`, C = kJ(e.id) ? wJ("recharts-radial-line-") : e.id;
- return /*#__PURE__*/ S.createElement("text", y4({}, r, {
++ ${b.x},${b.y}`, C = nY(e.id) ? ZJ("recharts-radial-line-") : e.id;
+ return /*#__PURE__*/ S.createElement("text", C4({}, r, {
dominantBaseline: "central",
- className: ny("recharts-radial-bar-label", o)
+ className: ey("recharts-radial-bar-label", o)
}), /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("path", {
id: C,
d: x
@@@ -91983,10 -90392,10 +91989,10 @@@
textAnchor: "middle",
verticalAnchor: "middle"
};
- }, T4 = (e) => e != null && "cx" in e && GJ(e.cx), e6e = {
-}, x4 = (e) => e != null && "cx" in e && SJ(e.cx), V4e = {
++}, T4 = (e) => e != null && "cx" in e && YJ(e.cx), e6e = {
angle: 0,
offset: 5,
- zIndex: S$.label,
+ zIndex: E$.label,
position: "middle",
textBreakAll: !1
};
@@@ -92002,13 -90411,13 +92008,13 @@@ function t6e(e)
height: i
};
}
-function S4(e) {
- var t = zY(e, V4e), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = I4e(), p = N4e(), m = n == null ? i === "center" ? p : f ?? p : x4(n) ? n : NJ(n), h, g, _ = H4e(m);
- if (!m || kJ(a) && kJ(o) && !/*#__PURE__*/ (0, S.isValidElement)(s) && typeof s != "function") return null;
- var v = x4(m) && (i === "insideStart" || i === "insideEnd" || i === "end");
- if (x4(m)) v || (g = B4e(m, t.offset, t.position));
+function E4(e) {
- var t = cX(e, e6e), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = Y3e(), p = K3e(), m = n == null ? i === "center" ? p : f ?? p : T4(n) ? n : nY(n), h, g, _ = t6e(m);
- if (!m || QJ(a) && QJ(o) && !/*#__PURE__*/ (0, S.isValidElement)(s) && typeof s != "function") return null;
++ var t = fX(e, e6e), n = t.viewBox, r = t.parentViewBox, i = t.position, a = t.value, o = t.children, s = t.content, c = t.className, l = c === void 0 ? "" : c, u = t.textBreakAll, d = t.labelRef, f = Y3e(), p = K3e(), m = n == null ? i === "center" ? p : f ?? p : T4(n) ? n : oY(n), h, g, _ = t6e(m);
++ if (!m || nY(a) && nY(o) && !/*#__PURE__*/ (0, S.isValidElement)(s) && typeof s != "function") return null;
+ var v = T4(m) && (i === "insideStart" || i === "insideEnd" || i === "end");
+ if (T4(m)) v || (g = $3e(m, t.offset, t.position));
else if (_) {
- var y = aY({
- var y = IJ({
++ var y = lY({
viewBox: _,
position: i,
offset: t.offset,
@@@ -92030,15 -90439,15 +92036,15 @@@
}
if (typeof s == "function") {
b.content;
- var C = T4e(b, w4e);
+ var C = R3e(b, L3e);
if (h = /*#__PURE__*/ (0, S.createElement)(s, C), /*#__PURE__*/ (0, S.isValidElement)(h)) return h;
- } else h = L4e(t);
- var w = aJ(t);
- return v && x4(m) ? z4e(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ S.createElement(n4, { zIndex: t.zIndex }, /*#__PURE__*/ S.createElement(_4, y4({
+ } else h = X3e(t);
- var w = OJ(t);
++ var w = MJ(t);
+ return v && T4(m) ? Q3e(t, i, h, w, m) : g == null ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: t.zIndex }, /*#__PURE__*/ S.createElement(x4, C4({
ref: d,
- className: ny("recharts-label", l)
+ className: ey("recharts-label", l)
}, w, g, {
- textAnchor: f4e(w.textAnchor) ? w.textAnchor : g.textAnchor,
+ textAnchor: T3e(w.textAnchor) ? w.textAnchor : g.textAnchor,
breakAll: u
}), h));
}
@@@ -92049,24 -90458,24 +92055,24 @@@ var n6e = (e, t, n) =>
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ S.createElement(E4, C4({ key: "label-implicit" }, r)) : KJ(e) ? /*#__PURE__*/ S.createElement(E4, C4({
- return e === !0 ? /*#__PURE__*/ S.createElement(S4, y4({ key: "label-implicit" }, r)) : CJ(e) ? /*#__PURE__*/ S.createElement(S4, y4({
++ return e === !0 ? /*#__PURE__*/ S.createElement(E4, C4({ key: "label-implicit" }, r)) : XJ(e) ? /*#__PURE__*/ S.createElement(E4, C4({
key: "label-implicit",
value: e
- }, r)) : /*#__PURE__*/ (0, S.isValidElement)(e) ? e.type === S4 ? /*#__PURE__*/ (0, S.cloneElement)(e, v4({ key: "label-implicit" }, r)) : /*#__PURE__*/ S.createElement(S4, y4({
+ }, r)) : /*#__PURE__*/ (0, S.isValidElement)(e) ? e.type === E4 ? /*#__PURE__*/ (0, S.cloneElement)(e, S4({ key: "label-implicit" }, r)) : /*#__PURE__*/ S.createElement(E4, C4({
key: "label-implicit",
content: e
- }, r)) : b4(e) ? /*#__PURE__*/ S.createElement(S4, y4({
+ }, r)) : w4(e) ? /*#__PURE__*/ S.createElement(E4, C4({
key: "label-implicit",
content: e
- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ S.createElement(S4, y4({}, e, { key: "label-implicit" }, r)) : null;
+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ S.createElement(E4, C4({}, e, { key: "label-implicit" }, r)) : null;
};
-function W4e(e) {
+function r6e(e) {
var t = e.label, n = e.labelRef;
- return U4e(t, N4e(), n) || null;
+ return n6e(t, K3e(), n) || null;
}
-function G4e(e) {
+function i6e(e) {
var t = e.label;
- return U4e(t, I4e()) || null;
+ return n6e(t, Y3e()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
@@@ -92104,23 -90513,23 +92110,23 @@@ function c6e(e, t)
}
return n;
}
-var X4e = (e) => {
+var l6e = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (p4e(t)) return t;
-}, Z4e = /*#__PURE__*/ (0, S.createContext)(void 0), w4 = Z4e.Provider, Q4e = /*#__PURE__*/ (0, S.createContext)(void 0), $4e = Q4e.Provider;
-function e3e() {
- return (0, S.useContext)(Z4e);
+ if (E3e(t)) return t;
+}, u6e = /*#__PURE__*/ (0, S.createContext)(void 0), O4 = u6e.Provider, d6e = /*#__PURE__*/ (0, S.createContext)(void 0), f6e = d6e.Provider;
+function p6e() {
+ return (0, S.useContext)(u6e);
}
-function t3e() {
- return (0, S.useContext)(Q4e);
+function m6e() {
+ return (0, S.useContext)(d6e);
}
-function T4(e) {
- var t = e.valueAccessor, n = t === void 0 ? X4e : t, r = J4e(e, K4e), i = r.dataKey;
+function k4(e) {
+ var t = e.valueAccessor, n = t === void 0 ? l6e : t, r = s6e(e, a6e), i = r.dataKey;
r.clockWise;
- var a = r.id, o = r.textBreakAll, s = r.zIndex, c = J4e(r, q4e), l = e3e(), u = t3e(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ S.createElement(n4, { zIndex: s ?? S$.label }, /*#__PURE__*/ S.createElement(lJ, { className: "recharts-label-list" }, d.map((e, t) => {
- var s = kJ(i) ? n(e, t) : eQ(e.payload, i), l = kJ(a) ? {} : { id: `${a}-${t}` };
- return /*#__PURE__*/ S.createElement(S4, C4({ key: `label-${t}` }, aJ(e), c, l, {
+ var a = r.id, o = r.textBreakAll, s = r.zIndex, c = s6e(r, o6e), l = p6e(), u = m6e(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: s ?? E$.label }, /*#__PURE__*/ S.createElement(MJ, { className: "recharts-label-list" }, d.map((e, t) => {
- var s = QJ(i) ? n(e, t) : iQ(e.payload, i), l = QJ(a) ? {} : { id: `${a}-${t}` };
- return /*#__PURE__*/ S.createElement(E4, D4({ key: `label-${t}` }, OJ(e), c, l, {
++ return !d || !d.length ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: s ?? E$.label }, /*#__PURE__*/ S.createElement(IJ, { className: "recharts-label-list" }, d.map((e, t) => {
++ var s = nY(i) ? n(e, t) : iQ(e.payload, i), l = nY(a) ? {} : { id: `${a}-${t}` };
++ return /*#__PURE__*/ S.createElement(E4, D4({ key: `label-${t}` }, MJ(e), c, l, {
fill: r.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@@ -92181,16 -90590,16 +92187,16 @@@ var b6e = (e) => e != null && e.x === +
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
- s3e(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
+ b6e(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);
});
var n = e[0], r = t[t.length - 1];
- s3e(n) && r && r.push(n);
+ b6e(n) && r && r.push(n);
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
-}, O4 = (e, t) => {
- var n = c3e(e);
+}, M4 = (e, t) => {
+ var n = x6e(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => VJ(g6e ||= y6e([
- var r = n.map((e) => e.reduce((e, t, n) => vJ(r3e ||= o3e([
++ var r = n.map((e) => e.reduce((e, t, n) => GJ(g6e ||= y6e([
"",
"",
"",
@@@ -92198,29 -90607,29 +92204,29 @@@
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, l3e = (e, t, n) => {
- var r = O4(e, n);
- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${O4(Array.from(t).reverse(), n).slice(1)}`;
-}, u3e = (e) => {
- var t = e.points, n = e.className, r = e.baseLinePoints, i = e.connectNulls, a = i3e(e, n3e);
+}, S6e = (e, t, n) => {
+ var r = M4(e, n);
+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${M4(Array.from(t).reverse(), n).slice(1)}`;
+}, C6e = (e) => {
+ var t = e.points, n = e.className, r = e.baseLinePoints, i = e.connectNulls, a = _6e(e, h6e);
if (!t || !t.length) return null;
- var o = ny("recharts-polygon", n);
+ var o = ey("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = l3e(t, r, i);
- return /*#__PURE__*/ S.createElement("g", { className: o }, /*#__PURE__*/ S.createElement("path", D4({}, aJ(a), {
+ var s = a.stroke && a.stroke !== "none", c = S6e(t, r, i);
- return /*#__PURE__*/ S.createElement("g", { className: o }, /*#__PURE__*/ S.createElement("path", j4({}, OJ(a), {
++ return /*#__PURE__*/ S.createElement("g", { className: o }, /*#__PURE__*/ S.createElement("path", j4({}, MJ(a), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ S.createElement("path", j4({}, OJ(a), {
- })), s ? /*#__PURE__*/ S.createElement("path", D4({}, aJ(a), {
++ })), s ? /*#__PURE__*/ S.createElement("path", j4({}, MJ(a), {
fill: "none",
- d: O4(t, i)
- })) : null, s ? /*#__PURE__*/ S.createElement("path", D4({}, aJ(a), {
+ d: M4(t, i)
- })) : null, s ? /*#__PURE__*/ S.createElement("path", j4({}, OJ(a), {
++ })) : null, s ? /*#__PURE__*/ S.createElement("path", j4({}, MJ(a), {
fill: "none",
- d: O4(r, i)
+ d: M4(r, i)
})) : null);
}
- var l = O4(t, i);
- return /*#__PURE__*/ S.createElement("path", D4({}, aJ(a), {
+ var l = M4(t, i);
- return /*#__PURE__*/ S.createElement("path", j4({}, OJ(a), {
++ return /*#__PURE__*/ S.createElement("path", j4({}, MJ(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@@ -92235,11 -90644,11 +92241,11 @@@ function N4()
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, k4.apply(null, arguments);
+ }, N4.apply(null, arguments);
}
-var A4 = (e) => {
- var t = e.cx, n = e.cy, r = e.r, i = e.className, a = ny("recharts-dot", i);
- return SJ(t) && SJ(n) && SJ(r) ? /*#__PURE__*/ S.createElement("circle", k4({}, rJ(e), IY(e), {
+var P4 = (e) => {
+ var t = e.cx, n = e.cy, r = e.r, i = e.className, a = ey("recharts-dot", i);
- return GJ(t) && GJ(n) && GJ(r) ? /*#__PURE__*/ S.createElement("circle", N4({}, EJ(e), aX(e), {
++ return YJ(t) && YJ(n) && YJ(r) ? /*#__PURE__*/ S.createElement("circle", N4({}, AJ(e), lX(e), {
className: a,
cx: t,
cy: n,
@@@ -92436,40 -90845,40 +92442,40 @@@ function B6e(e, t)
}
return (t === "string" ? String : Number)(e);
}
-var O3e = (e, t, n, r) => {
+var V6e = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = t$(t, n, e, r);
+ var o = a$(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, k3e = (e) => {
+}, H6e = (e) => {
var t = e.cx, n = e.cy, r = e.innerRadius, i = e.outerRadius, a = e.polarAngles, o = e.radialLines;
if (!a || !a.length || !o) return null;
- var s = U4({}, EJ(e));
- var s = z4({}, rJ(e));
++ var s = U4({}, AJ(e));
return /*#__PURE__*/ S.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = t$(t, n, r, e), o = t$(t, n, i, e);
- return /*#__PURE__*/ S.createElement("line", R4({ key: `line-${e}` }, s, {
+ var a = a$(t, n, r, e), o = a$(t, n, i, e);
+ return /*#__PURE__*/ S.createElement("line", H4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
x2: o.x,
y2: o.y
}));
}));
-}, A3e = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = z4({}, rJ(e));
- return /*#__PURE__*/ S.createElement("circle", R4({}, i, {
- className: ny("recharts-polar-grid-concentric-circle", e.className),
+}, U6e = (e) => {
- var t = e.cx, n = e.cy, r = e.radius, i = U4({}, EJ(e));
++ var t = e.cx, n = e.cy, r = e.radius, i = U4({}, AJ(e));
+ return /*#__PURE__*/ S.createElement("circle", H4({}, i, {
+ className: ey("recharts-polar-grid-concentric-circle", e.className),
cx: t,
cy: n,
r
}));
-}, j3e = (e) => {
- var t = e.radius, n = z4({}, rJ(e));
- return /*#__PURE__*/ S.createElement("path", R4({}, n, {
- className: ny("recharts-polar-grid-concentric-polygon", e.className),
- d: O3e(t, e.cx, e.cy, e.polarAngles)
+}, W6e = (e) => {
- var t = e.radius, n = U4({}, EJ(e));
++ var t = e.radius, n = U4({}, AJ(e));
+ return /*#__PURE__*/ S.createElement("path", H4({}, n, {
+ className: ey("recharts-polar-grid-concentric-polygon", e.className),
+ d: V6e(t, e.cx, e.cy, e.polarAngles)
}));
-}, M3e = (e) => {
+}, G6e = (e) => {
var t = e.polarRadius, n = e.gridType;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@@ -92492,10 -90901,10 +92498,10 @@@
stroke: "#ccc",
strokeWidth: 1,
fill: "none"
-}, P3e = (e) => {
- var t = zY(e, N3e), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = S3e(t, x3e), m = MX(M$), h = MX((e) => y3e(e, i)), g = MX((e) => b3e(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+}, q6e = (e) => {
- var t = cX(e, K6e), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = F6e(t, P6e), m = IX(I$), h = IX((e) => M6e(e, i)), g = IX((e) => N6e(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
++ var t = fX(e, K6e), n = t.gridType, r = t.radialLines, i = t.angleAxisId, a = t.radiusAxisId, o = t.cx, s = t.cy, c = t.innerRadius, l = t.outerRadius, u = t.polarAngles, d = t.polarRadius, f = t.zIndex, p = F6e(t, P6e), m = IX(I$), h = IX((e) => M6e(e, i)), g = IX((e) => N6e(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
if (_ == null || v == null) return null;
- var y = z4({
+ var y = U4({
cx: m?.cx ?? o ?? 0,
cy: m?.cy ?? s ?? 0,
innerRadius: m?.innerRadius ?? c ?? 0,
@@@ -92526,11 -90935,11 +92532,11 @@@ function W4(e)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
- function J6e(e, t = pX) {
-function F3e(e, t = WY) {
++function J6e(e, t = _X) {
if (e == null) return;
- let n = B4(e);
+ let n = W4(e);
if (n.length === 0) return;
- let r = OX(t), i, a;
+ let r = MX(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);
@@@ -92539,11 -90948,11 +92545,11 @@@
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
- function Y6e(e, t = pX) {
-function I3e(e, t = WY) {
++function Y6e(e, t = _X) {
if (e == null) return;
- let n = B4(e);
+ let n = W4(e);
if (n.length === 0) return;
- let r = OX(t), i, a;
+ let r = MX(t), i, a;
for (let e = 0; e < n.length; e++) {
let t = n[e], o = r(t, e, n);
o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);
@@@ -92661,20 -91070,20 +92667,20 @@@ function l8e(e, t)
}
return n;
}
-var Z3e = "radiusAxis";
-function Q3e(e) {
- var t = AX(), n = AQ(), r = (0, S.useMemo)(() => {
- var t = e.type, r = G4(e, U3e), i = E$(n, "radiusAxis", t);
- if (i != null) return W4(W4({}, r), {}, { type: i });
+var u8e = "radiusAxis";
+function d8e(e) {
+ var t = PX(), n = PQ(), r = (0, S.useMemo)(() => {
+ var t = e.type, r = Y4(e, n8e), i = A$(n, "radiusAxis", t);
+ if (i != null) return J4(J4({}, r), {}, { type: i });
}, [e, n]);
- return (0, S.useEffect)(() => r == null ? tY : (t(Z6e(r)), () => {
- return (0, S.useEffect)(() => r == null ? MJ : (t(R3e(r)), () => {
- t(z3e(r));
++ return (0, S.useEffect)(() => r == null ? aY : (t(Z6e(r)), () => {
+ t(Q6e(r));
}), [t, r]), null;
}
-var $3e = (e, t, n, r) => {
+var f8e = (e, t, n, r) => {
var i = e.coordinate;
- return t$(n, r, i, t);
-}, e6e = (e) => {
+ return a$(n, r, i, t);
+}, p8e = (e) => {
var t;
switch (e) {
case "left":
@@@ -92697,38 -91106,38 +92703,38 @@@
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, n6e = (e, t) => {
- var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = G4(e, W3e), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = t$(n, r, s[0], i), l = t$(n, r, s[1], i), u = W4(W4(W4({}, rJ(o)), {}, { fill: "none" }, rJ(a)), {}, {
+}, h8e = (e, t) => {
- var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = Y4(e, r8e), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = a$(n, r, s[0], i), l = a$(n, r, s[1], i), u = J4(J4(J4({}, EJ(o)), {}, { fill: "none" }, EJ(a)), {}, {
++ var n = e.cx, r = e.cy, i = e.angle, a = e.axisLine, o = Y4(e, r8e), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = a$(n, r, s[0], i), l = a$(n, r, s[1], i), u = J4(J4(J4({}, AJ(o)), {}, { fill: "none" }, AJ(a)), {}, {
x1: c.x,
y1: c.y,
x2: l.x,
y2: l.y
});
- return /*#__PURE__*/ S.createElement("line", U4({ className: "recharts-polar-radius-axis-line" }, u));
-}, r6e = (e, t, n) => /*#__PURE__*/ S.isValidElement(e) ? /*#__PURE__*/ S.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ S.createElement(_4, U4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), i6e = (e, t) => {
- var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = G4(e, G3e), s = e6e(e.orientation), c = rJ(o), l = iJ(a), u = t.map((t, o) => {
- var u = $3e(t, e.angle, e.cx, e.cy), d = W4(W4(W4(W4({
+ return /*#__PURE__*/ S.createElement("line", q4({ className: "recharts-polar-radius-axis-line" }, u));
+}, g8e = (e, t, n) => /*#__PURE__*/ S.isValidElement(e) ? /*#__PURE__*/ S.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ S.createElement(x4, q4({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), _8e = (e, t) => {
- var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = Y4(e, i8e), s = p8e(e.orientation), c = EJ(o), l = DJ(a), u = t.map((t, o) => {
++ var n = e.angle, r = e.tickFormatter, i = e.stroke, a = e.tick, o = Y4(e, i8e), s = p8e(e.orientation), c = AJ(o), l = jJ(a), u = t.map((t, o) => {
+ var u = f8e(t, e.angle, e.cx, e.cy), d = J4(J4(J4(J4({
textAnchor: s,
transform: `rotate(${90 - n}, ${u.x}, ${u.y})`
}, c), {}, {
stroke: "none",
fill: i
}, l), {}, { index: o }, u), {}, { payload: t });
- return /*#__PURE__*/ S.createElement(MJ, q4({
- return /*#__PURE__*/ S.createElement(lJ, U4({
- className: ny("recharts-polar-radius-axis-tick", H4(a)),
++ return /*#__PURE__*/ S.createElement(IJ, q4({
+ className: ey("recharts-polar-radius-axis-tick", K4(a)),
key: `tick-${t.coordinate}`
- }, oX(e, t, o)), g8e(a, d, r ? r(t.value, o) : t.value));
- }, LY(e, t, o)), r6e(a, d, r ? r(t.value, o) : t.value));
++ }, uX(e, t, o)), g8e(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ S.createElement(MJ, { className: "recharts-polar-radius-axis-ticks" }, u);
- return /*#__PURE__*/ S.createElement(lJ, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, a6e = (e) => {
- var t = e.radiusAxisId, n = MX(M$), r = MX((e) => I4(e, "radiusAxis", t)), i = MX((e) => L4(e, "radiusAxis", t, !1));
++ return /*#__PURE__*/ S.createElement(IJ, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, v8e = (e) => {
+ var t = e.radiusAxisId, n = IX(I$), r = IX((e) => B4(e, "radiusAxis", t)), i = IX((e) => V4(e, "radiusAxis", t, !1));
if (n == null || !i || !i.length || r == null) return null;
- var a = W4(W4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
- return /*#__PURE__*/ S.createElement(n4, { zIndex: a.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: ny("recharts-polar-radius-axis", Z3e, a.className) }, s && n6e(a, i), o && i6e(a, i), /*#__PURE__*/ S.createElement(F4e, t6e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ S.createElement(G4e, { label: a.label }), a.children)));
+ var a = J4(J4({}, e), {}, { scale: r }, n), o = a.tick, s = a.axisLine;
- return /*#__PURE__*/ S.createElement(o4, { zIndex: a.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: ey("recharts-polar-radius-axis", u8e, a.className) }, s && h8e(a, i), o && _8e(a, i), /*#__PURE__*/ S.createElement(J3e, m8e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ S.createElement(i6e, { label: a.label }), a.children)));
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: a.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: ey("recharts-polar-radius-axis", u8e, a.className) }, s && h8e(a, i), o && _8e(a, i), /*#__PURE__*/ S.createElement(J3e, m8e(a.angle, a.cx, a.cy, i), /*#__PURE__*/ S.createElement(i6e, { label: a.label }), a.children)));
};
-function o6e(e) {
- var t = zY(e, w$);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Q3e, {
+function y8e(e) {
- var t = cX(e, O$);
++ var t = fX(e, O$);
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(d8e, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@@ -92821,50 -91230,50 +92827,50 @@@ function D8e(e, t)
}
return n;
}
-var h6e = 1e-5, g6e = Math.cos(e$(45)), _6e = "angleAxis";
-function v6e(e) {
- var t = AX(), n = AQ(), r = (0, S.useMemo)(() => {
+var O8e = 1e-5, k8e = Math.cos(i$(45)), A8e = "angleAxis";
+function j8e(e) {
+ var t = PX(), n = PQ(), r = (0, S.useMemo)(() => {
e.children;
- var t = e.type, r = p6e(e, s6e), i = E$(n, "angleAxis", t);
- if (i != null) return q4(q4({}, r), {}, { type: i });
- }, [e, n]), i = r === MX((e) => O$(e, r?.id));
- return (0, S.useEffect)(() => r == null ? MJ : (t(B3e(r)), () => {
- t(V3e(r));
+ var t = e.type, r = E8e(e, b8e), i = A$(n, "angleAxis", t);
+ if (i != null) return Z4(Z4({}, r), {}, { type: i });
+ }, [e, n]), i = r === IX((e) => M$(e, r?.id));
- return (0, S.useEffect)(() => r == null ? tY : (t($6e(r)), () => {
++ return (0, S.useEffect)(() => r == null ? aY : (t($6e(r)), () => {
+ t(e8e(r));
}), [t, r]), i ? e.children : null;
}
-var y6e = (e, t) => {
- var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = t$(n, r, i, e.coordinate), c = t$(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
+var M8e = (e, t) => {
+ var n = t.cx, r = t.cy, i = t.radius, a = t.orientation, o = t.tickSize || 8, s = a$(n, r, i, e.coordinate), c = a$(n, r, i + (a === "inner" ? -1 : 1) * o, e.coordinate);
return {
x1: s.x,
y1: s.y,
x2: c.x,
y2: c.y
};
-}, b6e = (e, t) => {
- var n = Math.cos(e$(-e.coordinate));
- return n > h6e ? t === "outer" ? "start" : "end" : n < -h6e ? t === "outer" ? "end" : "start" : "middle";
-}, x6e = (e) => {
- var t = Math.cos(e$(-e.coordinate)), n = Math.sin(e$(-e.coordinate));
- return Math.abs(t) <= g6e ? n > 0 ? "start" : "end" : "middle";
-}, S6e = (e) => {
+}, N8e = (e, t) => {
+ var n = Math.cos(i$(-e.coordinate));
+ return n > O8e ? t === "outer" ? "start" : "end" : n < -O8e ? t === "outer" ? "end" : "start" : "middle";
+}, P8e = (e) => {
+ var t = Math.cos(i$(-e.coordinate)), n = Math.sin(i$(-e.coordinate));
+ return Math.abs(t) <= k8e ? n > 0 ? "start" : "end" : "middle";
+}, F8e = (e) => {
var t = e.cx, n = e.cy, r = e.radius, i = e.axisLineType, a = e.axisLine, o = e.ticks;
if (!a) return null;
- var s = Z4(Z4({}, EJ(e)), {}, { fill: "none" }, EJ(a));
- var s = q4(q4({}, rJ(e)), {}, { fill: "none" }, rJ(a));
- if (i === "circle") return /*#__PURE__*/ S.createElement(A4, K4({ className: "recharts-polar-angle-axis-line" }, s, {
++ var s = Z4(Z4({}, AJ(e)), {}, { fill: "none" }, AJ(a));
+ if (i === "circle") return /*#__PURE__*/ S.createElement(P4, X4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => t$(t, n, r, e.coordinate));
- return /*#__PURE__*/ S.createElement(u3e, K4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
-}, C6e = (e) => {
+ var c = o.map((e) => a$(t, n, r, e.coordinate));
+ return /*#__PURE__*/ S.createElement(C6e, X4({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));
+}, I8e = (e) => {
var t = e.tick, n = e.tickProps, r = e.value;
- return t ? /*#__PURE__*/ S.isValidElement(t) ? /*#__PURE__*/ S.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ S.createElement(_4, K4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
-}, w6e = (e) => {
- var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = rJ(e);
+ return t ? /*#__PURE__*/ S.isValidElement(t) ? /*#__PURE__*/ S.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ S.createElement(x4, X4({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;
+}, L8e = (e) => {
- var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = EJ(e);
++ var t = e.tick, n = e.tickLine, r = e.tickFormatter, i = e.stroke, a = e.ticks, o = AJ(e);
o.ref;
- var s = E8e(o, x8e), c = DJ(t), l = Z4(Z4({}, s), {}, { fill: "none" }, EJ(n)), u = a.map((a, o) => {
- var s = p6e(o, c6e), c = iJ(t), l = q4(q4({}, s), {}, { fill: "none" }, rJ(n)), u = a.map((a, o) => {
- var u = y6e(a, e), d = b6e(a, e.orientation), f = x6e(a), p = q4(q4(q4({}, s), {}, {
++ var s = E8e(o, x8e), c = jJ(t), l = Z4(Z4({}, s), {}, { fill: "none" }, AJ(n)), u = a.map((a, o) => {
+ var u = M8e(a, e), d = N8e(a, e.orientation), f = P8e(a), p = Z4(Z4(Z4({}, s), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@@ -92875,28 -91284,28 +92881,28 @@@
x: u.x2,
y: u.y2
});
- return /*#__PURE__*/ S.createElement(MJ, X4({
- return /*#__PURE__*/ S.createElement(lJ, K4({
- className: ny("recharts-polar-angle-axis-tick", H4(t)),
++ return /*#__PURE__*/ S.createElement(IJ, X4({
+ className: ey("recharts-polar-angle-axis-tick", K4(t)),
key: `tick-${a.coordinate}`
- }, oX(e, a, o)), n && /*#__PURE__*/ S.createElement("line", X4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ S.createElement(I8e, {
- }, LY(e, a, o)), n && /*#__PURE__*/ S.createElement("line", K4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ S.createElement(C6e, {
++ }, uX(e, a, o)), n && /*#__PURE__*/ S.createElement("line", X4({ className: "recharts-polar-angle-axis-tick-line" }, l, u)), /*#__PURE__*/ S.createElement(I8e, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ S.createElement(MJ, { className: "recharts-polar-angle-axis-ticks" }, u);
- return /*#__PURE__*/ S.createElement(lJ, { className: "recharts-polar-angle-axis-ticks" }, u);
-}, T6e = (e) => {
- var t = e.angleAxisId, n = MX(M$), r = MX((e) => I4(e, "angleAxis", t)), i = hQ(), a = MX((e) => _3e(e, "angleAxis", t, i));
++ return /*#__PURE__*/ S.createElement(IJ, { className: "recharts-polar-angle-axis-ticks" }, u);
+}, R8e = (e) => {
+ var t = e.angleAxisId, n = IX(I$), r = IX((e) => B4(e, "angleAxis", t)), i = yQ(), a = IX((e) => A6e(e, "angleAxis", t, i));
if (n == null || !a || !a.length || r == null) return null;
- var o = q4(q4(q4({}, e), {}, { scale: r }, n), {}, {
+ var o = Z4(Z4(Z4({}, e), {}, { scale: r }, n), {}, {
radius: n.outerRadius,
ticks: a
});
- return /*#__PURE__*/ S.createElement(o4, { zIndex: o.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: ey("recharts-polar-angle-axis", A8e, o.className) }, /*#__PURE__*/ S.createElement(F8e, o), /*#__PURE__*/ S.createElement(L8e, o)));
- return /*#__PURE__*/ S.createElement(n4, { zIndex: o.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: ny("recharts-polar-angle-axis", _6e, o.className) }, /*#__PURE__*/ S.createElement(S6e, o), /*#__PURE__*/ S.createElement(w6e, o)));
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: o.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: ey("recharts-polar-angle-axis", A8e, o.className) }, /*#__PURE__*/ S.createElement(F8e, o), /*#__PURE__*/ S.createElement(L8e, o)));
};
-function J4(e) {
- var t = zY(e, C$);
- return /*#__PURE__*/ S.createElement(v6e, {
+function Q4(e) {
- var t = cX(e, D$);
++ var t = fX(e, D$);
+ return /*#__PURE__*/ S.createElement(j8e, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@@ -92947,19 -91356,19 +92953,19 @@@ var z8e = /* @__PURE__ */ o(((e) =>
e.isFragment = function(e) {
return m(e) === r;
};
-})), D6e = (/* @__PURE__ */ o(((e, t) => {
- t.exports = E6e();
-})))(), O6e = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", k6e = null, Y4 = null, A6e = (e) => {
- if (e === k6e && Array.isArray(Y4)) return Y4;
+})), B8e = (/* @__PURE__ */ o(((e, t) => {
+ t.exports = z8e();
+})))(), V8e = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", H8e = null, $4 = null, U8e = (e) => {
+ if (e === H8e && Array.isArray($4)) return $4;
var t = [];
return S.Children.forEach(e, (e) => {
- QJ(e) || ((0, B8e.isFragment)(e) ? t = t.concat(U8e(e.props.children)) : t.push(e));
- kJ(e) || ((0, D6e.isFragment)(e) ? t = t.concat(A6e(e.props.children)) : t.push(e));
- }), Y4 = t, k6e = e, t;
++ nY(e) || ((0, B8e.isFragment)(e) ? t = t.concat(U8e(e.props.children)) : t.push(e));
+ }), $4 = t, H8e = e, t;
};
-function j6e(e, t) {
+function W8e(e, t) {
var n = [], r = [];
- return r = Array.isArray(t) ? t.map((e) => O6e(e)) : [O6e(t)], A6e(e).forEach((e) => {
- var t = gJ(e, "type.displayName") || gJ(e, "type.name");
+ return r = Array.isArray(t) ? t.map((e) => V8e(e)) : [V8e(t)], U8e(e).forEach((e) => {
- var t = zJ(e, "type.displayName") || zJ(e, "type.name");
++ var t = UJ(e, "type.displayName") || UJ(e, "type.name");
t && r.indexOf(t) !== -1 && n.push(e);
}), n;
}
@@@ -93024,12 -91433,12 +93030,12 @@@ function $8e(e)
return typeof t == "number" || typeof t == "string" ? t : void 0;
}
}
-function V6e(e) {
+function e5e(e) {
return "isActive" in e && e.isActive === !0;
}
-function Z4(e) {
- var t = e.option, n = e.DefaultShape, r = e.shapeProps, i = e.activeClassName, a = i === void 0 ? "recharts-active-shape" : i, o = e.inActiveClassName, s = o === void 0 ? "recharts-shape" : o, c = B6e(r), l = /*#__PURE__*/ (0, S.isValidElement)(t) ? z6e(t, r) : t === n ? /*#__PURE__*/ S.createElement(n, r) : typeof t == "function" ? t(r, c) : typeof t == "object" ? /*#__PURE__*/ S.createElement(n, L6e(t, r)) : /*#__PURE__*/ S.createElement(n, r);
- return V6e(r) ? /*#__PURE__*/ S.createElement(lJ, { className: a }, l) : /*#__PURE__*/ S.createElement(lJ, { className: s }, l);
+function t3(e) {
+ var t = e.option, n = e.DefaultShape, r = e.shapeProps, i = e.activeClassName, a = i === void 0 ? "recharts-active-shape" : i, o = e.inActiveClassName, s = o === void 0 ? "recharts-shape" : o, c = $8e(r), l = /*#__PURE__*/ (0, S.isValidElement)(t) ? Q8e(t, r) : t === n ? /*#__PURE__*/ S.createElement(n, r) : typeof t == "function" ? t(r, c) : typeof t == "object" ? /*#__PURE__*/ S.createElement(n, X8e(t, r)) : /*#__PURE__*/ S.createElement(n, r);
- return e5e(r) ? /*#__PURE__*/ S.createElement(MJ, { className: a }, l) : /*#__PURE__*/ S.createElement(MJ, { className: s }, l);
++ return e5e(r) ? /*#__PURE__*/ S.createElement(IJ, { className: a }, l) : /*#__PURE__*/ S.createElement(IJ, { className: s }, l);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
@@@ -93334,14 -91743,14 +93340,14 @@@ function C5e(e, t)
return s;
}
}
-function d8e(e) {
+function w5e(e) {
if (Array.isArray(e)) return e;
}
- var T5e = S.useId ?? (() => y5e(S.useState(() => qJ("uid-")), 1)[0]);
-var f8e = S.useId ?? (() => o8e(S.useState(() => wJ("uid-")), 1)[0]);
++var T5e = S.useId ?? (() => y5e(S.useState(() => ZJ("uid-")), 1)[0]);
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function p8e(e, t) {
- var n = f8e();
+function E5e(e, t) {
+ var n = T5e();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
@@@ -93425,8 -91834,8 +93431,8 @@@ function L5e(e)
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function T8e(e) {
- if (GY(e) && e.length !== 0) return w8e(B4(e));
+function R5e(e) {
- if (mX(e) && e.length !== 0) return L5e(W4(e));
++ if (vX(e) && e.length !== 0) return L5e(W4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
@@@ -93505,19 -91914,19 +93511,19 @@@ function K5e(e)
var t = e.option, n = e.dotProps, r = e.className;
if (/*#__PURE__*/ (0, S.isValidElement)(t)) return /*#__PURE__*/ (0, S.cloneElement)(t, n);
if (typeof t == "function") return t(n);
- var i = ny(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
+ var i = ey(r, typeof t == "boolean" ? "" : t.className), a = n ?? {};
a.points;
- var o = j8e(a, E8e);
- return /*#__PURE__*/ S.createElement(A4, p3({}, o, { className: i }));
+ var o = W5e(a, z5e);
+ return /*#__PURE__*/ S.createElement(P4, _3({}, o, { className: i }));
}
-function P8e(e, t) {
+function q5e(e, t) {
return e == null ? !1 : t ? !0 : e.length === 1;
}
-function m3(e) {
- var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? S$.scatter : l;
- if (!P8e(t, n)) return null;
- var d = X4(n), f = fRe(n), p = t.map((e, r) => {
- var s = f3(f3(f3({ r: 3 }, o), f), {}, {
+function v3(e) {
+ var t = e.points, n = e.dot, r = e.className, i = e.dotClassName, a = e.dataKey, o = e.baseProps, s = e.needClip, c = e.clipPathId, l = e.zIndex, u = l === void 0 ? E$.scatter : l;
+ if (!q5e(t, n)) return null;
- var d = e3(n), f = oze(n), p = t.map((e, r) => {
++ var d = e3(n), f = nze(n), p = t.map((e, r) => {
+ var s = g3(g3(g3({ r: 3 }, o), f), {}, {
index: r,
cx: e.x ?? void 0,
cy: e.y ?? void 0,
@@@ -93533,7 -91942,7 +93539,7 @@@
className: i
});
}), m = {};
- return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ S.createElement(o4, { zIndex: u }, /*#__PURE__*/ S.createElement(MJ, _3({ className: r }, m), p));
- return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ S.createElement(n4, { zIndex: u }, /*#__PURE__*/ S.createElement(lJ, p3({ className: r }, m), p));
++ return s && c != null && (m.clipPath = `url(#clipPath-${d ? "" : "dots-"}${c})`), /*#__PURE__*/ S.createElement(o4, { zIndex: u }, /*#__PURE__*/ S.createElement(IJ, _3({ className: r }, m), p));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@@ -93748,17 -92157,17 +93754,17 @@@ var m7e = (e) =>
stroke: "#fff",
payload: t.payload,
value: t.value
- }), DJ(i)), aX(i)), c = /*#__PURE__*/ (0, S.isValidElement)(i) ? /*#__PURE__*/ (0, S.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ S.createElement(P4, s);
- return /*#__PURE__*/ S.createElement(MJ, {
- }), iJ(i)), IY(i)), c = /*#__PURE__*/ (0, S.isValidElement)(i) ? /*#__PURE__*/ (0, S.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ S.createElement(A4, s);
- return /*#__PURE__*/ S.createElement(lJ, {
++ }), jJ(i)), lX(i)), c = /*#__PURE__*/ (0, S.isValidElement)(i) ? /*#__PURE__*/ (0, S.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ S.createElement(P4, s);
++ return /*#__PURE__*/ S.createElement(IJ, {
className: "recharts-active-dot",
clipPath: o
}, c);
};
-function y3(e) {
- var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? S$.activeDot : o, c = MX(q2), l = X8e();
+function C3(e) {
+ var t = e.points, n = e.mainColor, r = e.activeDot, i = e.itemDataKey, a = e.clipPath, o = e.zIndex, s = o === void 0 ? E$.activeDot : o, c = IX(Z2), l = l7e();
if (t == null || l == null) return null;
var u = t.find((e) => l.includes(e.payload));
- return QJ(u) ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: s }, /*#__PURE__*/ S.createElement(m7e, {
- return kJ(u) ? null : /*#__PURE__*/ S.createElement(n4, { zIndex: s }, /*#__PURE__*/ S.createElement(t5e, {
++ return nY(u) ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: s }, /*#__PURE__*/ S.createElement(m7e, {
point: u,
childIndex: Number(c),
mainColor: n,
@@@ -93933,14 -92342,14 +93939,14 @@@ var R7e = (e) =>
inactive: e.hide,
dataKey: t,
type: a,
- color: C3(r, i),
- value: oQ(n, t),
+ color: D3(r, i),
+ value: uQ(n, t),
payload: e
}];
-}, E5e = /*#__PURE__*/ S.memo((e) => {
+}, z7e = /*#__PURE__*/ S.memo((e) => {
var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.tooltipType, c = e.id, l = {
dataDefinedOnItem: void 0,
- getPosition: tY,
- getPosition: MJ,
++ getPosition: aY,
settings: {
stroke: n,
strokeWidth: r,
@@@ -93955,13 -92364,13 +93961,13 @@@
graphicalItemId: c
}
};
- return /*#__PURE__*/ S.createElement(t3, { tooltipEntrySettings: l });
+ return /*#__PURE__*/ S.createElement(a3, { tooltipEntrySettings: l });
});
-function D5e(e) {
+function B7e(e) {
var t = e.points, n = e.props, r = n.dot, i = n.dataKey;
n.id;
- var a = EJ(I7e(n, j7e));
- var a = rJ(C5e(n, v5e));
- return /*#__PURE__*/ S.createElement(m3, {
++ var a = AJ(I7e(n, j7e));
+ return /*#__PURE__*/ S.createElement(v3, {
points: t,
dot: r,
className: "recharts-radar-dots",
@@@ -93970,11 -92379,11 +93976,11 @@@
baseProps: a
});
}
-function O5e(e) {
+function V7e(e) {
var t = e.radiusAxis, n = e.angleAxis, r = e.displayedData, i = e.dataKey, a = e.bandSize, o = n.cx, s = n.cy, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;
r.forEach((e, r) => {
- var a = iQ(e, n.dataKey, r), d = iQ(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? R5e(d) : d, m = QJ(p) ? 0 : t.scale.map(p) ?? 0;
- var a = eQ(e, n.dataKey, r), d = eQ(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? T8e(d) : d, m = kJ(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(S3(S3({}, t$(o, s, m, f)), {}, {
++ var a = iQ(e, n.dataKey, r), d = iQ(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? R5e(d) : d, m = nY(p) ? 0 : t.scale.map(p) ?? 0;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(E3(E3({}, a$(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@@ -93987,8 -92396,8 +93993,8 @@@
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = QJ(n) ? 0 : t.scale.map(n) ?? 0;
- var n = e.value[0], r = kJ(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(S3(S3({}, e), {}, { radius: r }, t$(o, s, r, e.angle)));
++ var n = e.value[0], r = nY(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(E3(E3({}, e), {}, { radius: r }, a$(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@@ -94014,12 -92423,12 +94020,12 @@@ function H7e(e)
fill: void 0
});
});
- return /*#__PURE__*/ S.createElement(w4, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ S.createElement(O4, { value: t ? i : void 0 }, r);
}
-function A5e(e) {
+function U7e(e) {
var t = e.points, n = e.baseLinePoints, r = e.props;
if (t == null) return null;
- var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ S.isValidElement(i) ? /*#__PURE__*/ S.cloneElement(i, E3(E3({}, r), {}, { points: t })) : typeof i == "function" ? i(E3(E3({}, r), {}, { points: t })) : /*#__PURE__*/ S.createElement(C6e, T3({}, OJ(r), {
- var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ S.isValidElement(i) ? /*#__PURE__*/ S.cloneElement(i, S3(S3({}, r), {}, { points: t })) : typeof i == "function" ? i(S3(S3({}, r), {}, { points: t })) : /*#__PURE__*/ S.createElement(u3e, x3({}, aJ(r), {
++ var i = r.shape, a = r.isRange, o = r.connectNulls, s = /*#__PURE__*/ S.isValidElement(i) ? /*#__PURE__*/ S.cloneElement(i, E3(E3({}, r), {}, { points: t })) : typeof i == "function" ? i(E3(E3({}, r), {}, { points: t })) : /*#__PURE__*/ S.createElement(C6e, T3({}, MJ(r), {
onMouseEnter: (e) => {
var t = r.onMouseEnter;
t && t(r, e);
@@@ -94032,24 -92441,24 +94038,24 @@@
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ S.createElement(MJ, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ S.createElement(B7e, {
- return /*#__PURE__*/ S.createElement(lJ, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ S.createElement(D5e, {
++ return /*#__PURE__*/ S.createElement(IJ, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ S.createElement(B7e, {
props: r,
points: t
}));
}
-var j5e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [S3(S3({}, e.next), {}, {
- x: DJ(e.prev.x, e.next.x, t),
- y: DJ(e.prev.y, e.next.y, t)
-})] : [S3(S3({}, e.next), {}, {
- x: DJ(e.next.cx, e.next.x, t),
- y: DJ(e.next.cy, e.next.y, t)
+var W7e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [E3(E3({}, e.next), {}, {
- x: XJ(e.prev.x, e.next.x, t),
- y: XJ(e.prev.y, e.next.y, t)
++ x: eY(e.prev.x, e.next.x, t),
++ y: eY(e.prev.y, e.next.y, t)
+})] : [E3(E3({}, e.next), {}, {
- x: XJ(e.next.cx, e.next.x, t),
- y: XJ(e.next.cy, e.next.y, t)
++ x: eY(e.next.cx, e.next.x, t),
++ y: eY(e.next.cy, e.next.y, t)
})]);
-function M5e(e) {
- var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = o3(t, r), h = m.startValue, g = a3(h ?? null, a, u), _ = s3(f, p), v = _.isAnimating, y = _.handleAnimationStart, b = _.handleAnimationEnd, x = AQ();
- return x == null ? null : /*#__PURE__*/ S.createElement(k5e, {
+function G7e(e) {
+ var t = e.props, n = e.previousPointsRef, r = e.previousBaseLinePointsRef, i = t.points, a = t.baseLinePoints, o = t.isAnimationActive, s = t.animationBegin, c = t.animationDuration, l = t.animationEasing, u = t.animationMatchBy, d = t.animationInterpolateFn, f = t.onAnimationStart, p = t.onAnimationEnd, m = u3(t, r), h = m.startValue, g = l3(h ?? null, a, u), _ = d3(f, p), v = _.isAnimating, y = _.handleAnimationStart, b = _.handleAnimationEnd, x = PQ();
+ return x == null ? null : /*#__PURE__*/ S.createElement(H7e, {
showLabels: !v,
points: i
- }, /*#__PURE__*/ S.createElement(c3, {
+ }, /*#__PURE__*/ S.createElement(f3, {
animationInput: t,
animationIdPrefix: "recharts-radar-",
items: i,
@@@ -94094,15 -92503,15 +94100,15 @@@ var q7e =
label: !1,
legendType: "rect",
radiusAxisId: 0,
- zIndex: S$.area
+ zIndex: E$.area
};
-function F5e(e) {
+function J7e(e) {
var t = e.hide, n = e.className, r = e.points;
if (t) return null;
- var i = ny("recharts-radar", n);
- return /*#__PURE__*/ S.createElement(n4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: i }, /*#__PURE__*/ S.createElement(N5e, e)), /*#__PURE__*/ S.createElement(y3, {
+ var i = ey("recharts-radar", n);
- return /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: i }, /*#__PURE__*/ S.createElement(K7e, e)), /*#__PURE__*/ S.createElement(C3, {
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: i }, /*#__PURE__*/ S.createElement(K7e, e)), /*#__PURE__*/ S.createElement(C3, {
points: r,
- mainColor: C3(e.stroke, e.fill),
+ mainColor: D3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
@@@ -94115,12 -92524,12 +94121,12 @@@ function Y7e(e)
isRange: n?.isRange
}));
}
-function w3(e) {
- var t = zY(e, P5e);
- return /*#__PURE__*/ S.createElement(l3, {
+function O3(e) {
- var t = cX(e, q7e);
++ var t = fX(e, q7e);
+ return /*#__PURE__*/ S.createElement(p3, {
id: t.id,
type: "radar"
- }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(C8e, {
+ }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(I5e, {
type: "radar",
id: e,
data: void 0,
@@@ -94214,14 -92623,14 +94220,14 @@@ function a9e(e, t)
return s;
}
}
-function q5e(e) {
+function o9e(e) {
if (Array.isArray(e)) return e;
}
-var J5e = (e, t, n) => {
+var s9e = (e, t, n) => {
var r = n ?? e;
- if (!QJ(r)) return JJ(r, t, 0);
- if (!kJ(r)) return TJ(r, t, 0);
-}, Y5e = (e, t, n) => {
- var r = {}, i = e.filter(L$), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
++ if (!nY(r)) return QJ(r, t, 0);
+}, c9e = (e, t, n) => {
+ var r = {}, i = e.filter(V$), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {
var n = e[t.stackId];
return n ??= [], n.push(t), e[t.stackId] = n, e;
}, r), s = Object.entries(o).map((e) => {
@@@ -94283,11 -92692,11 +94289,11 @@@ function f9e(e, t)
}
return (t === "string" ? String : Number)(e);
}
-function e7e(e, t, n, r, i) {
+function p9e(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = JJ(e, n, 0, !0), s, c = [];
- var o = TJ(e, n, 0, !0), s, c = [];
- if (ZZ(r[0]?.barSize)) {
++ var o = QJ(e, n, 0, !0), s, c = [];
+ if (tQ(r[0]?.barSize)) {
var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);
d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);
var f = {
@@@ -94306,7 -92715,7 +94312,7 @@@
return f = n.position, r;
}, c);
} else {
- var p = JJ(t, n, 0, !0);
- var p = TJ(t, n, 0, !0);
++ var p = QJ(t, n, 0, !0);
n - 2 * p - (a - 1) * o <= 0 && (o = 0);
var m = (n - 2 * p - (a - 1) * o) / a;
m > 1 && (m = Math.round(m));
@@@ -94323,11 -92732,11 +94329,11 @@@
return s;
}
}
-var t7e = (e, t, n, r, i, a, o) => {
- var s = kJ(o) ? t : o, c = e7e(n, r, i === a ? a : i, e, s);
- return i !== a && c != null && (c = c.map((e) => E3(E3({}, e), {}, { position: E3(E3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
-}, n7e = (e, t) => {
- var n = F$(t);
+var m9e = (e, t, n, r, i, a, o) => {
- var s = QJ(o) ? t : o, c = p9e(n, r, i === a ? a : i, e, s);
++ var s = nY(o) ? t : o, c = p9e(n, r, i === a ? a : i, e, s);
+ return i !== a && c != null && (c = c.map((e) => A3(A3({}, e), {}, { position: A3(A3({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;
+}, h9e = (e, t) => {
+ var n = z$(t);
if (e && n != null && t != null) {
var r = t.stackId;
if (r != null) {
@@@ -94389,76 -92798,76 +94395,76 @@@ function b9e(e, t)
}
return (t === "string" ? String : Number)(e);
}
-var O3 = Y([(e, t) => k$(e, t), (e, t) => I4(e, "radiusAxis", t)], (e, t) => {
- if (e != null && t != null) return D3(D3({}, e), {}, { scale: t });
-}), k3 = (e, t) => v3e(e, "radiusAxis", t, !1), A3 = Y([(e, t, n) => O$(e, n), (e, t, n) => I4(e, "angleAxis", n)], (e, t) => {
- if (e != null && t != null) return D3(D3({}, e), {}, { scale: t });
-}), j3 = (e, t, n) => L4(e, "angleAxis", n, !1), M3 = Y([j4, (e, t, n, r) => r], (e, t) => {
+var M3 = Y([(e, t) => N$(e, t), (e, t) => B4(e, "radiusAxis", t)], (e, t) => {
+ if (e != null && t != null) return j3(j3({}, e), {}, { scale: t });
+}), N3 = (e, t) => j6e(e, "radiusAxis", t, !1), P3 = Y([(e, t, n) => M$(e, n), (e, t, n) => B4(e, "angleAxis", n)], (e, t) => {
+ if (e != null && t != null) return j3(j3({}, e), {}, { scale: t });
+}), F3 = (e, t, n) => V4(e, "angleAxis", n, !1), I3 = Y([F4, (e, t, n, r) => r], (e, t) => {
if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;
-}), c7e = Y([
- EQ,
- O3,
- k3,
- A3,
- j3
-], (e, t, n, r, i) => tQ(e, "radiusAxis") ? aQ(t, n, !1) : aQ(r, i, !1)), l7e = Y([
- A3,
- O3,
- EQ
+}), x9e = Y([
+ AQ,
+ M3,
+ N3,
+ P3,
+ F3
+], (e, t, n, r, i) => aQ(e, "radiusAxis") ? lQ(t, n, !1) : lQ(r, i, !1)), S9e = Y([
+ P3,
+ M3,
+ AQ
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return PHe({ numericAxis: r });
-}), u7e = (e, t, n, r, i) => i, d7e = (e, t, n, r, i) => n, f7e = (e, t, n, r, i) => t, p7e = (e, t, n, r, i) => r.maxBarSize, m7e = (e) => e.type === "radialBar", h7e = Y([Y([
+ if (r != null && r.scale != null) return qUe({ numericAxis: r });
+}), C9e = (e, t, n, r, i) => i, w9e = (e, t, n, r, i) => n, T9e = (e, t, n, r, i) => t, E9e = (e, t, n, r, i) => r.maxBarSize, D9e = (e) => e.type === "radialBar", O9e = Y([Y([
Y([
Y([
- EQ,
- j4,
- d7e,
- f7e
- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(m7e)),
- Wqe,
+ AQ,
+ F4,
+ w9e,
+ T9e
+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(D9e)),
+ rYe,
() => void 0
- ], Y5e),
- h$,
- Uqe,
- g$,
+ ], c9e),
+ y$,
+ nYe,
+ b$,
Y([
- EQ,
- h$,
- A3,
- j3,
- O3,
- k3,
- p7e
+ AQ,
+ y$,
+ P3,
+ F3,
+ M3,
+ N3,
+ E9e
], (e, t, n, r, i, a, o) => {
- var s = QJ(o) ? t : o;
- var s = kJ(o) ? t : o;
- return e === "centric" ? aQ(n, r, !0) ?? s ?? 0 : aQ(i, a, !0) ?? s ?? 0;
++ var s = nY(o) ? t : o;
+ return e === "centric" ? lQ(n, r, !0) ?? s ?? 0 : lQ(i, a, !0) ?? s ?? 0;
}),
- c7e,
- p7e
-], t7e), M3], r7e), g7e = Y([M4], (e) => e.filter(m7e).filter(L$)), _7e = Y([
+ x9e,
+ E9e
+], m9e), I3], g9e), k9e = Y([I4], (e) => e.filter(D9e).filter(V$)), A9e = Y([
Y([
- g7e,
- c$,
- n2
- ], I$),
- g7e,
- _$,
- v$
-], i2), v7e = Y([
- A3,
- j3,
- O3,
- k3,
- s$,
+ k9e,
+ f$,
+ o2
+ ], B$),
+ k9e,
+ x$,
+ S$
+], c2), j9e = Y([
+ P3,
+ F3,
M3,
- c7e,
- EQ,
- l7e,
- M$,
- u7e,
- h7e,
- Y([(e, t, n) => EQ(e) === "centric" ? _7e(e, "radiusAxis", t) : _7e(e, "angleAxis", n), M3], n7e)
+ N3,
+ d$,
+ I3,
+ x9e,
+ AQ,
+ S9e,
+ I$,
+ C9e,
+ O9e,
+ Y([(e, t, n) => AQ(e) === "centric" ? A9e(e, "radiusAxis", t) : A9e(e, "angleAxis", n), I3], h9e)
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var p = i.chartData, m = i.dataStartIndex, h = i.dataEndIndex;
if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];
@@@ -94600,15 -93009,15 +94606,15 @@@ function U9e(e)
},
fill: e.fill
}));
- return /*#__PURE__*/ S.createElement($4e, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ S.createElement(f6e, { value: t ? i : void 0 }, r);
}
-function j7e(e) {
- var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = F3(n, x7e), f = rJ(d), p = MX(q2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = F3(n, S7e), v = Q4(m, n.dataKey, u), y = $4(g), b = e3(h, n.dataKey, u);
- return t == null ? null : /*#__PURE__*/ S.createElement(A7e, {
+function W9e(e) {
- var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = z3(n, P9e), f = EJ(d), p = IX(Z2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = z3(n, F9e), v = n3(m, n.dataKey, u), y = r3(g), b = i3(h, n.dataKey, u);
++ var t = e.sectors, n = e.allOtherRadialBarProps, r = e.showLabels, i = e.animationElapsedTime, a = e.isAnimating, o = e.isEntrance, s = n.shape, c = n.activeShape, l = n.cornerRadius, u = n.id, d = z3(n, P9e), f = AJ(d), p = IX(Z2), m = n.onMouseEnter, h = n.onClick, g = n.onMouseLeave, _ = z3(n, F9e), v = n3(m, n.dataKey, u), y = r3(g), b = i3(h, n.dataKey, u);
+ return t == null ? null : /*#__PURE__*/ S.createElement(U9e, {
showLabels: r,
sectors: t
}, t.map((e, t) => {
- var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = b(e, t), h = R3(R3(R3(R3({}, f), {}, { cornerRadius: e9e(l) }, e), oX(_, e, t)), {}, {
- var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = b(e, t), h = P3(P3(P3(P3({}, f), {}, { cornerRadius: V5e(l) }, e), LY(_, e, t)), {}, {
++ var n = !!(c && p === String(t)), r = v(e, t), u = y(e, t), m = b(e, t), h = R3(R3(R3(R3({}, f), {}, { cornerRadius: e9e(l) }, e), uX(_, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: u,
onClick: m,
@@@ -94622,19 -93031,19 +94628,19 @@@
option: n && c != null ? c : s,
index: t
});
- return n ? /*#__PURE__*/ S.createElement(n4, {
- zIndex: S$.activeBar,
+ return n ? /*#__PURE__*/ S.createElement(o4, {
+ zIndex: E$.activeBar,
key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`
- }, /*#__PURE__*/ S.createElement(T3, h)) : /*#__PURE__*/ S.createElement(T3, N3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, h));
- }), /*#__PURE__*/ S.createElement(E4, { label: n.label }), n.children);
-}
-var M7e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [P3(P3({}, e.next), {}, {
- startAngle: DJ(e.prev.startAngle, e.next.startAngle, t),
- endAngle: DJ(e.prev.endAngle, e.next.endAngle, t)
-})] : [P3(P3({}, e.next), {}, { endAngle: DJ(e.next.startAngle, e.next.endAngle, t) })]);
-function N7e(e) {
- var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = s3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = AQ();
- return m == null ? null : /*#__PURE__*/ S.createElement(c3, {
+ }, /*#__PURE__*/ S.createElement(k3, h)) : /*#__PURE__*/ S.createElement(k3, L3({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, h));
+ }), /*#__PURE__*/ S.createElement(A4, { label: n.label }), n.children);
+}
+var G9e = (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "removed" ? [] : e.status === "matched" ? [R3(R3({}, e.next), {}, {
- startAngle: XJ(e.prev.startAngle, e.next.startAngle, t),
- endAngle: XJ(e.prev.endAngle, e.next.endAngle, t)
- })] : [R3(R3({}, e.next), {}, { endAngle: XJ(e.next.startAngle, e.next.endAngle, t) })]);
++ startAngle: eY(e.prev.startAngle, e.next.startAngle, t),
++ endAngle: eY(e.prev.endAngle, e.next.endAngle, t)
++})] : [R3(R3({}, e.next), {}, { endAngle: eY(e.next.startAngle, e.next.endAngle, t) })]);
+function K9e(e) {
+ var t = e.props, n = e.previousSectorsRef, r = t.sectors, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.onAnimationStart, l = t.onAnimationEnd, u = d3(c, l), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd, m = PQ();
+ return m == null ? null : /*#__PURE__*/ S.createElement(f3, {
animationInput: t,
animationIdPrefix: "recharts-radialbar-",
items: r,
@@@ -94664,14 -93073,14 +94670,14 @@@ function q9e(e)
previousSectorsRef: t
});
}
-function F7e(e) {
- var t = MX((t) => y7e(t, e.legendType));
- return /*#__PURE__*/ S.createElement(H6e, { legendPayload: t ?? [] });
+function J9e(e) {
+ var t = IX((t) => M9e(t, e.legendType));
+ return /*#__PURE__*/ S.createElement(t5e, { legendPayload: t ?? [] });
}
-var I7e = /*#__PURE__*/ S.memo((e) => {
+var Y9e = /*#__PURE__*/ S.memo((e) => {
var t = e.dataKey, n = e.sectors, r = e.stroke, i = e.strokeWidth, a = e.name, o = e.hide, s = e.fill, c = e.tooltipType, l = e.formatter, u = {
dataDefinedOnItem: n,
- getPosition: tY,
- getPosition: MJ,
++ getPosition: aY,
settings: {
graphicalItemId: e.id,
stroke: r,
@@@ -94687,18 -93096,18 +94693,18 @@@
formatter: l
}
};
- return /*#__PURE__*/ S.createElement(t3, { tooltipEntrySettings: u });
-}), L7e = class extends S.PureComponent {
+ return /*#__PURE__*/ S.createElement(a3, { tooltipEntrySettings: u });
+}), X9e = class extends S.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var t = this.props.cornerRadius, n = DJ(this.props.background);
- var t = this.props.cornerRadius, n = iJ(this.props.background);
- return /*#__PURE__*/ S.createElement(n4, { zIndex: b7e(this.props.background, S$.barBackground) }, e.map((e, r) => {
++ var t = this.props.cornerRadius, n = jJ(this.props.background);
+ return /*#__PURE__*/ S.createElement(o4, { zIndex: N9e(this.props.background, E$.barBackground) }, e.map((e, r) => {
e.value;
- var i = e.background, a = F3(e, C7e);
+ var i = e.background, a = z3(e, I9e);
if (!i) return null;
- var o = R3(R3(R3(R3(R3({ cornerRadius: e9e(t) }, a), {}, { fill: "#eee" }, i), n), oX(this.props, e, r)), {}, {
- var o = P3(P3(P3(P3(P3({ cornerRadius: V5e(t) }, a), {}, { fill: "#eee" }, i), n), LY(this.props, e, r)), {}, {
++ var o = R3(R3(R3(R3(R3({ cornerRadius: e9e(t) }, a), {}, { fill: "#eee" }, i), n), uX(this.props, e, r)), {}, {
index: r,
- className: ny("recharts-radial-bar-background-sector", String(n?.className)),
+ className: ey("recharts-radial-bar-background-sector", String(n?.className)),
option: i,
isActive: !1
});
@@@ -94708,12 -93117,12 +94714,12 @@@
render() {
var e = this.props, t = e.hide, n = e.sectors, r = e.className, i = e.background;
if (t) return null;
- var a = ny("recharts-area", r);
- return /*#__PURE__*/ S.createElement(n4, { zIndex: this.props.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: a }, i && /*#__PURE__*/ S.createElement(lJ, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ S.createElement(lJ, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ S.createElement(P7e, this.props))));
+ var a = ey("recharts-area", r);
- return /*#__PURE__*/ S.createElement(o4, { zIndex: this.props.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: a }, i && /*#__PURE__*/ S.createElement(MJ, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ S.createElement(MJ, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ S.createElement(q9e, this.props))));
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: this.props.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: a }, i && /*#__PURE__*/ S.createElement(IJ, { className: "recharts-radial-bar-background" }, this.renderBackground(n)), /*#__PURE__*/ S.createElement(IJ, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ S.createElement(q9e, this.props))));
}
};
-function R7e(e) {
- var t = S.useMemo(() => j6e(e.children, u4), [e.children]), n = S.useMemo(() => ({
+function Z9e(e) {
+ var t = S.useMemo(() => W8e(e.children, m4), [e.children]), n = S.useMemo(() => ({
data: void 0,
hide: !1,
id: e.id,
@@@ -94784,7 -93193,7 +94790,7 @@@ function Q9e(e)
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = HJ(E || p) * (Math.abs(p) - Math.abs(E));
- var D = yJ(E || p) * (Math.abs(p) - Math.abs(E));
++ var D = KJ(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@@ -94807,7 -93216,7 +94813,7 @@@
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = HJ(O || p) * (Math.abs(p) - Math.abs(O));
- var k = yJ(O || p) * (Math.abs(p) - Math.abs(O));
++ var k = KJ(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@@ -94823,12 -93232,12 +94829,12 @@@
}, _ && _[t] && _[t].props);
});
}
-function L3(e) {
- var t = zY(e, I3);
- return /*#__PURE__*/ S.createElement(l3, {
+function V3(e) {
- var t = cX(e, B3);
++ var t = fX(e, B3);
+ return /*#__PURE__*/ S.createElement(p3, {
id: t.id,
type: "radialBar"
- }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(C8e, {
+ }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(I5e, {
type: "radialBar",
id: e,
data: void 0,
@@@ -94971,14 -93380,14 +94977,14 @@@ function get(e, t)
return s;
}
}
-function r9e(e) {
+function _et(e) {
if (Array.isArray(e)) return e;
}
-var i9e = /*#__PURE__*/ (0, S.createContext)(void 0), a9e = (e) => {
- var t = e.children, n = Q7e((0, S.useState)(`${wJ("recharts")}-clip`), 1)[0], r = _3();
+var vet = /*#__PURE__*/ (0, S.createContext)(void 0), yet = (e) => {
- var t = e.children, n = fet((0, S.useState)(`${qJ("recharts")}-clip`), 1)[0], r = x3();
++ var t = e.children, n = fet((0, S.useState)(`${ZJ("recharts")}-clip`), 1)[0], r = x3();
if (r == null) return null;
var i = r.x, a = r.y, o = r.width, s = r.height;
- return /*#__PURE__*/ S.createElement(i9e.Provider, { value: n }, /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("clipPath", { id: n }, /*#__PURE__*/ S.createElement("rect", {
+ return /*#__PURE__*/ S.createElement(vet.Provider, { value: n }, /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("clipPath", { id: n }, /*#__PURE__*/ S.createElement("rect", {
x: i,
y: a,
height: s,
@@@ -95102,9 -93511,9 +95108,9 @@@ var Oet = (e, t) =>
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, _9e = (e, t, n, r, i, a, o) => {
- var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = CJ(s);
- return CJ(c) ? m9e(c, u, r, a, t, n) : d ? h9e(s, u, r, i, e, n) : l != null && l.length === 2 ? g9e(l, u, r, new s9e({
+}, Met = (e, t, n, r, i, a, o) => {
- var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = KJ(s);
- return KJ(c) ? ket(c, u, r, a, t, n) : d ? Aet(s, u, r, i, e, n) : l != null && l.length === 2 ? jet(l, u, r, new xet({
++ var s = o.x, c = o.y, l = o.segment, u = o.ifOverflow, d = XJ(s);
++ return XJ(c) ? ket(c, u, r, a, t, n) : d ? Aet(s, u, r, i, e, n) : l != null && l.length === 2 ? jet(l, u, r, new xet({
x: e,
y: t
})) : null;
@@@ -95122,7 -93531,7 +95128,7 @@@ function Pet(e)
if (!p) return null;
var m = p[0], h = p[1];
if (m == null || h == null) return null;
- var g = m.x, _ = m.y, v = h.x, y = h.y, b = wet(wet({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, OJ(e)), {}, {
- var g = m.x, _ = m.y, v = h.x, y = h.y, b = l9e(l9e({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, aJ(e)), {}, {
++ var g = m.x, _ = m.y, v = h.x, y = h.y, b = wet(wet({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, MJ(e)), {}, {
x1: g,
y1: _,
x2: v,
@@@ -95133,12 -93542,12 +95139,12 @@@
x2: v,
y2: y
});
- return /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: ey("recharts-reference-line", i) }, Oet(r, b), /*#__PURE__*/ S.createElement(G3e, U3({}, x, {
- return /*#__PURE__*/ S.createElement(n4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: ny("recharts-reference-line", i) }, p9e(r, b), /*#__PURE__*/ S.createElement(M4e, z3({}, x, {
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: ey("recharts-reference-line", i) }, Oet(r, b), /*#__PURE__*/ S.createElement(G3e, U3({}, x, {
lowerWidth: x.width,
upperWidth: x.width
- }), /*#__PURE__*/ S.createElement(W4e, { label: e.label }), e.children)));
+ }), /*#__PURE__*/ S.createElement(r6e, { label: e.label }), e.children)));
}
-var b9e = {
+var Fet = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@@ -95148,11 -93557,11 +95154,11 @@@
fillOpacity: 1,
strokeWidth: 1,
position: "middle",
- zIndex: S$.line
+ zIndex: E$.line
};
-function x9e(e) {
- var t = zY(e, b9e);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(v9e, {
+function Iet(e) {
- var t = cX(e, Fet);
++ var t = fX(e, Fet);
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Net, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
@@@ -95188,22 -93597,22 +95194,22 @@@ function W3(e, t, n, r, i, a, o)
case "undefined": return e === t;
case "number": return e === t || Object.is(e, t);
case "function": return e === t;
- case "object": return V3(e, t, a, o);
+ case "object": return G3(e, t, a, o);
}
- return V3(e, t, a, o);
+ return G3(e, t, a, o);
}
-function V3(e, t, n, r) {
+function G3(e, t, n, r) {
if (Object.is(e, t)) return !0;
- let i = _X(e), a = _X(t);
- let i = JY(e), a = JY(t);
- if (i === "[object Arguments]" && (i = oX), a === "[object Arguments]" && (a = oX), i !== a) return !1;
++ let i = xX(e), a = xX(t);
+ if (i === "[object Arguments]" && (i = EX), a === "[object Arguments]" && (a = EX), i !== a) return !1;
switch (i) {
- case yX: return e.toString() === t.toString();
- case bX: return AX(e.valueOf(), t.valueOf());
- case xX:
- case wX:
- case CX: return Object.is(e.valueOf(), t.valueOf());
- case vX: return e.source === t.source && e.flags === t.flags;
- case XY: return e.toString() === t.toString();
- case ZY: return xX(e.valueOf(), t.valueOf());
- case QY:
- case tX:
- case eX: return Object.is(e.valueOf(), t.valueOf());
- case YY: return e.source === t.source && e.flags === t.flags;
- case Fze: return e === t;
++ case CX: return e.toString() === t.toString();
++ case wX: return AX(e.valueOf(), t.valueOf());
++ case TX:
++ case DBe:
++ case EBe: return Object.is(e.valueOf(), t.valueOf());
++ case SX: return e.source === t.source && e.flags === t.flags;
+ case jBe: return e === t;
}
n ??= /* @__PURE__ */ new Map();
let o = n.get(e), s = n.get(t);
@@@ -95211,11 -93620,11 +95217,11 @@@
n.set(e, t), n.set(t, e);
try {
switch (i) {
- case TX:
- case nX:
++ case OBe:
if (e.size !== t.size) return !1;
- for (let [i, a] of e.entries()) if (!t.has(i) || !B3(a, t.get(i), i, e, t, n, r)) return !1;
+ for (let [i, a] of e.entries()) if (!t.has(i) || !W3(a, t.get(i), i, e, t, n, r)) return !1;
return !0;
- case rX: {
+ case kBe: {
if (e.size !== t.size) return !1;
let i = Array.from(e.values()), a = Array.from(t.values());
for (let o = 0; o < i.length; o++) {
@@@ -95225,27 -93634,27 +95231,27 @@@
}
return !0;
}
- case iX:
- case cX:
- case lX:
- case uX:
- case dX:
- case Lze:
- case fX:
- case pX:
- case mX:
- case Rze:
- case hX:
- case gX:
- if (vX(e) !== vX(t) || e.length !== t.length) return !1;
- for (let i = 0; i < e.length; i++) if (!B3(e[i], t[i], i, e, t, n, r)) return !1;
+ case ABe:
+ case FBe:
+ case IBe:
+ case LBe:
+ case RBe:
+ case zBe:
+ case BBe:
+ case VBe:
+ case HBe:
+ case UBe:
+ case WBe:
+ case GBe:
+ if (DX(e) !== DX(t) || e.length !== t.length) return !1;
+ for (let i = 0; i < e.length; i++) if (!W3(e[i], t[i], i, e, t, n, r)) return !1;
return !0;
- case aX: return e.byteLength === t.byteLength && V3(new Uint8Array(e), new Uint8Array(t), n, r);
- case sX: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : V3(new Uint8Array(e), new Uint8Array(t), n, r);
- case Ize: return e.name === t.name && e.message === t.message;
- case oX: {
- if (!(V3(e.constructor, t.constructor, n, r) || C9e(e) && C9e(t))) return !1;
- let i = [...Object.keys(e), ...qY(e)], a = [...Object.keys(t), ...qY(t)];
+ case MBe: return e.byteLength === t.byteLength && G3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case PBe: return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : G3(new Uint8Array(e), new Uint8Array(t), n, r);
+ case NBe: return e.name === t.name && e.message === t.message;
+ case EX: {
+ if (!(G3(e.constructor, t.constructor, n, r) || Ret(e) && Ret(t))) return !1;
- let i = [...Object.keys(e), ...gX(e)], a = [...Object.keys(t), ...gX(t)];
++ let i = [...Object.keys(e), ...bX(e)], a = [...Object.keys(t), ...bX(t)];
if (i.length !== a.length) return !1;
for (let a = 0; a < i.length; a++) {
let o = i[a], s = e[o];
@@@ -95414,11 -93823,11 +95420,11 @@@ function Qet(e, t, n, r, i, a)
}, h = 0; h < p; h++) if (m(h)) continue;
return o;
}
-function W3(e, t, n) {
+function J3(e, t, n) {
var r = e.tick, i = e.ticks, a = e.viewBox, o = e.minTickGap, s = e.orientation, c = e.interval, l = e.tickFormatter, u = e.unit, d = e.angle;
if (!i || !i.length || !r) return [];
- if (GJ(c) || WQ.isSsr) return Wet(i, GJ(c) ? c : 0) ?? [];
- if (SJ(c) || BQ.isSsr) return k9e(i, SJ(c) ? c : 0) ?? [];
- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? d4(u, {
++ if (YJ(c) || WQ.isSsr) return Wet(i, YJ(c) ? c : 0) ?? [];
+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? h4(u, {
fontSize: t,
letterSpacing: n
}) : {
@@@ -95433,8 -93842,8 +95439,8 @@@
fontSize: t,
letterSpacing: n
})[p];
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? HJ(_.coordinate - g.coordinate) : 1, y = Uet(a, v, p);
- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? yJ(_.coordinate - g.coordinate) : 1, y = O9e(a, v, p);
- return c === "equidistantPreserveStart" ? A9e(v, y, h, i, o) : c === "equidistantPreserveEnd" ? j9e(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? L9e(v, y, h, i, o, c === "preserveStartEnd") : I9e(v, y, h, i, o), f.filter((e) => e.isShow));
++ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? KJ(_.coordinate - g.coordinate) : 1, y = Uet(a, v, p);
+ return c === "equidistantPreserveStart" ? Get(v, y, h, i, o) : c === "equidistantPreserveEnd" ? Ket(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? Qet(v, y, h, i, o, c === "preserveStartEnd") : Zet(v, y, h, i, o), f.filter((e) => e.isShow));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
@@@ -95624,15 -94033,15 +95630,15 @@@ var Z3 =
tickSize: 6,
tickMargin: 2,
interval: "preserveEnd",
- zIndex: S$.axis
+ zIndex: E$.axis
};
-function iet(e) {
+function ytt(e) {
var t = e.x, n = e.y, r = e.width, i = e.height, a = e.orientation, o = e.mirror, s = e.axisLine, c = e.otherSvgProps;
if (!s) return null;
- var l = X3(X3(X3({}, c), EJ(s)), {}, { fill: "none" });
- var l = K3(K3(K3({}, c), rJ(s)), {}, { fill: "none" });
++ var l = X3(X3(X3({}, c), AJ(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
- l = K3(K3({}, l), {}, {
+ l = X3(X3({}, l), {}, {
x1: t,
y1: n + u * i,
x2: t + r,
@@@ -95647,10 -94056,10 +95653,10 @@@
y2: n + i
});
}
- return /*#__PURE__*/ S.createElement("line", Y3({}, l, { className: ey("recharts-cartesian-axis-line", zJ(s, "className")) }));
- return /*#__PURE__*/ S.createElement("line", G3({}, l, { className: ny("recharts-cartesian-axis-line", gJ(s, "className")) }));
++ return /*#__PURE__*/ S.createElement("line", Y3({}, l, { className: ey("recharts-cartesian-axis-line", UJ(s, "className")) }));
}
-function aet(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = SJ(e.tickCoord) ? e.tickCoord : e.coordinate;
+function btt(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = GJ(e.tickCoord) ? e.tickCoord : e.coordinate;
++ var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = YJ(e.tickCoord) ? e.tickCoord : e.coordinate;
switch (a) {
case "top":
l = u = e.coordinate, f = n + +!s * i, d = f - h * g, m = d - h * c, p = _;
@@@ -95726,8 -94135,8 +95732,8 @@@ function wtt(e)
t,
r,
n
- ]), (0, S.useEffect)(() => r == null || n == null ? tY : () => {
- ]), (0, S.useEffect)(() => r == null || n == null ? MJ : () => {
- i(U9e({
++ ]), (0, S.useEffect)(() => r == null || n == null ? aY : () => {
+ i(itt({
axisId: r,
axisType: n
}));
@@@ -95737,17 -94146,17 +95743,17 @@@
n
]), null;
}
-var det = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, b = e.letterSpacing, x = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = W3(K3(K3({}, x), {}, { ticks: r }), y, b), D = rJ(x), O = iJ(i), k = f4e(D.textAnchor) ? D.textAnchor : oet(d, f), A = set(d, f), j = {};
+var Ttt = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, b = e.letterSpacing, x = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = J3(X3(X3({}, x), {}, { ticks: r }), y, b), D = EJ(x), O = DJ(i), k = T3e(D.textAnchor) ? D.textAnchor : xtt(d, f), A = Stt(d, f), j = {};
++ var n = e.ticks, r = n === void 0 ? [] : n, i = e.tick, a = e.tickLine, o = e.stroke, s = e.tickFormatter, c = e.unit, l = e.padding, u = e.tickTextProps, d = e.orientation, f = e.mirror, p = e.x, m = e.y, h = e.width, g = e.height, _ = e.tickSize, v = e.tickMargin, y = e.fontSize, b = e.letterSpacing, x = e.getTicksConfig, C = e.events, w = e.axisType, T = e.axisId, E = J3(X3(X3({}, x), {}, { ticks: r }), y, b), D = AJ(x), O = jJ(i), k = T3e(D.textAnchor) ? D.textAnchor : xtt(d, f), A = Stt(d, f), j = {};
typeof a == "object" && (j = a);
- var M = K3(K3({}, D), {}, { fill: "none" }, j), N = E.map((e) => K3({ entry: e }, aet(e, p, m, h, g, d, _, f, v))), P = N.map((e) => {
+ var M = X3(X3({}, D), {}, { fill: "none" }, j), N = E.map((e) => X3({ entry: e }, btt(e, p, m, h, g, d, _, f, v))), P = N.map((e) => {
var t = e.entry, n = e.line;
- return /*#__PURE__*/ S.createElement(MJ, {
- return /*#__PURE__*/ S.createElement(lJ, {
++ return /*#__PURE__*/ S.createElement(IJ, {
className: "recharts-cartesian-axis-tick",
key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`
- }, a && /*#__PURE__*/ S.createElement("line", Y3({}, M, n, { className: ey("recharts-cartesian-axis-tick-line", zJ(a, "className")) })));
- }, a && /*#__PURE__*/ S.createElement("line", G3({}, M, n, { className: ny("recharts-cartesian-axis-tick-line", gJ(a, "className")) })));
++ }, a && /*#__PURE__*/ S.createElement("line", Y3({}, M, n, { className: ey("recharts-cartesian-axis-tick-line", UJ(a, "className")) })));
}), F = N.map((e, t) => {
- var n = e.entry, r = e.tick, a = K3(K3({}, K3(K3(K3(K3({ verticalAnchor: A }, D), {}, {
+ var n = e.entry, r = e.tick, a = X3(X3({}, X3(X3(X3(X3({ verticalAnchor: A }, D), {}, {
textAnchor: k,
stroke: "none",
fill: o
@@@ -95758,10 -94167,10 +95764,10 @@@
tickFormatter: s,
padding: l
}, u), {}, { angle: u?.angle ?? D.angle ?? 0 })), O);
- return /*#__PURE__*/ S.createElement(MJ, Y3({
- return /*#__PURE__*/ S.createElement(lJ, G3({
++ return /*#__PURE__*/ S.createElement(IJ, Y3({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, oX(C, n, t)), i && /*#__PURE__*/ S.createElement(Ctt, {
- }, LY(C, n, t)), i && /*#__PURE__*/ S.createElement(cet, {
++ }, uX(C, n, t)), i && /*#__PURE__*/ S.createElement(Ctt, {
option: i,
tickProps: a,
value: `${typeof s == "function" ? s(n.value, t) : n.value}${c || ""}`
@@@ -95804,7 -94213,7 +95810,7 @@@
}
}
}, [f, h]);
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(MJ, { className: ey("recharts-cartesian-axis", a) }, /*#__PURE__*/ S.createElement(ytt, {
- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ S.createElement(n4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(lJ, { className: ny("recharts-cartesian-axis", a) }, /*#__PURE__*/ S.createElement(iet, {
++ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ S.createElement(o4, { zIndex: e.zIndex }, /*#__PURE__*/ S.createElement(IJ, { className: ey("recharts-cartesian-axis", a) }, /*#__PURE__*/ S.createElement(ytt, {
x: e.x,
y: e.y,
width: r,
@@@ -95812,8 -94221,8 +95818,8 @@@
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: EJ(e)
- otherSvgProps: rJ(e)
- }), /*#__PURE__*/ S.createElement(det, {
++ otherSvgProps: AJ(e)
+ }), /*#__PURE__*/ S.createElement(Ttt, {
ref: v,
axisType: c,
events: u,
@@@ -95848,14 -94257,14 +95854,14 @@@
label: e.label,
labelRef: e.labelRef
}), e.children)));
-}), J3 = /*#__PURE__*/ S.forwardRef((e, t) => {
- var n = zY(e, q3);
- return /*#__PURE__*/ S.createElement(fet, G3({}, n, { ref: t }));
+}), Q3 = /*#__PURE__*/ S.forwardRef((e, t) => {
- var n = cX(e, Z3);
++ var n = fX(e, Z3);
+ return /*#__PURE__*/ S.createElement(Ett, Y3({}, n, { ref: t }));
});
-J3.displayName = "CartesianAxis";
+Q3.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/theme/RechartsThemeContext.js
-var pet = /*#__PURE__*/ (0, S.createContext)({ grid: {
+var Dtt = /*#__PURE__*/ (0, S.createContext)({ grid: {
stroke: "#ccc",
fill: "none"
} });
@@@ -95958,10 -94367,10 +95964,10 @@@ function ztt(e)
if (/*#__PURE__*/ S.isValidElement(t)) r = /*#__PURE__*/ S.cloneElement(t, n);
else if (typeof t == "function") r = t(n);
else {
- var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = EJ(t6(n, ktt)) ?? {};
- var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = rJ(Z3(n, het)) ?? {};
++ var i = n.x1, a = n.y1, o = n.x2, s = n.y2, c = n.key, l = AJ(t6(n, ktt)) ?? {};
l.offset;
- var u = Z3(l, get), d = Array.isArray(u.strokeDasharray) ? u.strokeDasharray.join(",") : u.strokeDasharray;
- r = /*#__PURE__*/ S.createElement("line", X3({}, u, {
+ var u = t6(l, Att), d = Array.isArray(u.strokeDasharray) ? u.strokeDasharray.join(",") : u.strokeDasharray;
+ r = /*#__PURE__*/ S.createElement("line", e6({}, u, {
strokeDasharray: d,
x1: i,
y1: a,
@@@ -96093,25 -94502,25 +96099,25 @@@ var Wtt = (e, t) =>
xAxisId: 0,
yAxisId: 0,
syncWithTicks: !1,
- zIndex: S$.grid
+ zIndex: E$.grid
};
-function Pet(e) {
- var t = wQ(), n = TQ(), r = jUe(), i = Y3(Y3({}, zY(e, Net)), {}, {
- x: SJ(e.x) ? e.x : r.left,
- y: SJ(e.y) ? e.y : r.top,
- width: SJ(e.width) ? e.width : r.width,
- height: SJ(e.height) ? e.height : r.height
- }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = hQ(), h = MX((e) => x$e(e, "xAxis", a, m)), g = MX((e) => x$e(e, "yAxis", o, m)), _ = met(), v = {
+function qtt(e) {
- var t = OQ(), n = kQ(), r = WWe(), i = $3($3({}, cX(e, Ktt)), {}, {
- x: GJ(e.x) ? e.x : r.left,
- y: GJ(e.y) ? e.y : r.top,
- width: GJ(e.width) ? e.width : r.width,
- height: GJ(e.height) ? e.height : r.height
++ var t = OQ(), n = kQ(), r = WWe(), i = $3($3({}, fX(e, Ktt)), {}, {
++ x: YJ(e.x) ? e.x : r.left,
++ y: YJ(e.y) ? e.y : r.top,
++ width: YJ(e.width) ? e.width : r.width,
++ height: YJ(e.height) ? e.height : r.height
+ }), a = i.xAxisId, o = i.yAxisId, s = i.x, c = i.y, l = i.width, u = i.height, d = i.syncWithTicks, f = i.horizontalValues, p = i.verticalValues, m = yQ(), h = IX((e) => P1e(e, "xAxis", a, m)), g = IX((e) => P1e(e, "yAxis", o, m)), _ = Ott(), v = {
stroke: i.stroke ?? _.grid.stroke,
strokeWidth: i.strokeWidth ?? _.grid.strokeWidth,
strokeOpacity: i.strokeOpacity ?? _.grid.strokeOpacity,
strokeDasharray: i.strokeDasharray ?? _.grid.strokeDasharray
};
- if (!nQ(l) || !nQ(u) || !GJ(s) || !GJ(c)) return null;
- if (!QZ(l) || !QZ(u) || !SJ(s) || !SJ(c)) return null;
- var y = i.verticalCoordinatesGenerator || jet, b = i.horizontalCoordinatesGenerator || Met, x = i.horizontalPoints, C = i.verticalPoints;
++ if (!nQ(l) || !nQ(u) || !YJ(s) || !YJ(c)) return null;
+ var y = i.verticalCoordinatesGenerator || Wtt, b = i.horizontalCoordinatesGenerator || Gtt, x = i.horizontalPoints, C = i.verticalPoints;
if ((!x || !x.length) && typeof b == "function") {
var w = f && f.length, T = b({
- yAxis: g ? Y3(Y3({}, g), {}, { ticks: w ? f : g.ticks }) : void 0,
+ yAxis: g ? $3($3({}, g), {}, { ticks: w ? f : g.ticks }) : void 0,
width: t ?? l,
height: n ?? u,
offset: r
@@@ -96240,7 -94649,7 +96246,7 @@@ function int(e)
var t = (0, S.useRef)(0), n = (0, S.useRef)(0), r = (0, S.useRef)(!1), i = (0, S.useRef)(e);
return i.current !== e && (t.current = n.current, i.current = e), (0, S.useCallback)((e, i) => {
if (r.current) return null;
- var a = Math.min(BJ(t.current + e * i), i);
- var a = Math.min(_J(t.current + e * i), i);
++ var a = Math.min(WJ(t.current + e * i), i);
return e > 0 && i > 0 && (n.current = Math.max(n.current, a), a >= i) ? (r.current = !0, null) : a;
}, []);
}
@@@ -96359,8 -94768,8 +96365,8 @@@ var ynt = Y(
});
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
-function stt(e) {
- var t = iJ(e), n = 3, r = 2;
+function bnt(e) {
- var t = DJ(e), n = 3, r = 2;
++ var t = jJ(e), n = 3, r = 2;
if (t != null) {
var i = t.r, a = t.strokeWidth, o = Number(i), s = Number(a);
return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {
@@@ -96489,23 -94898,23 +96495,23 @@@ var l6 =
animationInterpolateFn: (e, t) => {
if (e == null) return [];
if (t === 1) return e.flatMap((e) => e.status === "removed" ? [] : [e.next]);
- var n = _tt(e), r = [];
- for (var i of e) if (i.status === "matched") r.push(i6(i6({}, i.next), {}, {
- x: DJ(i.prev.x, i.next.x, t),
- y: DJ(i.prev.y, i.next.y, t)
+ var n = Ant(e), r = [];
+ for (var i of e) if (i.status === "matched") r.push(c6(c6({}, i.next), {}, {
- x: XJ(i.prev.x, i.next.x, t),
- y: XJ(i.prev.y, i.next.y, t)
++ x: eY(i.prev.x, i.next.x, t),
++ y: eY(i.prev.y, i.next.y, t)
}));
else if (i.status === "added") {
if (i.next.x != null) {
var a = i.next.x - n;
- r.push(i6(i6({}, i.next), {}, {
- x: DJ(a, i.next.x, t),
+ r.push(c6(c6({}, i.next), {}, {
- x: XJ(a, i.next.x, t),
++ x: eY(a, i.next.x, t),
y: i.next.y
}));
} else r.push(i.next);
} else if (i.status === "removed" && i.prev.x != null) {
var o = i.prev.x + n;
- r.push(i6(i6({}, i.prev), {}, {
- x: DJ(i.prev.x, o, t),
+ r.push(c6(c6({}, i.prev), {}, {
- x: XJ(i.prev.x, o, t),
++ x: eY(i.prev.x, o, t),
y: i.prev.y
}));
}
@@@ -96533,13 -94942,13 +96539,13 @@@
dataKey: t,
type: i,
color: r,
- value: oQ(n, t),
+ value: uQ(n, t),
payload: e
}];
-}, ytt = /*#__PURE__*/ S.memo((e) => {
+}, Mnt = /*#__PURE__*/ S.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: tY,
- getPosition: MJ,
++ getPosition: aY,
settings: {
stroke: r,
strokeWidth: i,
@@@ -96555,13 -94964,13 +96561,13 @@@
graphicalItemId: d
}
};
- return /*#__PURE__*/ S.createElement(t3, { tooltipEntrySettings: f });
+ return /*#__PURE__*/ S.createElement(a3, { tooltipEntrySettings: f });
});
-function btt(e) {
+function Nnt(e) {
var t = e.clipPathId, n = e.points, r = e.props, i = r.dot, a = r.dataKey, o = r.needClip;
r.id;
- var s = EJ(s6(r, xnt));
- var s = rJ(r6(r, ctt));
- return /*#__PURE__*/ S.createElement(m3, {
++ var s = AJ(s6(r, xnt));
+ return /*#__PURE__*/ S.createElement(v3, {
points: n,
dot: i,
className: "recharts-line-dots",
@@@ -96590,10 -94999,10 +96596,10 @@@ function Pnt(e)
fill: void 0
});
}), [r]);
- return /*#__PURE__*/ S.createElement(w4, { value: t ? i : void 0 }, n);
+ return /*#__PURE__*/ S.createElement(O4, { value: t ? i : void 0 }, n);
}
-function Stt(e) {
- var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = i6(i6({}, aJ(r6(i, ltt))), {}, {
+function Fnt(e) {
- var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = c6(c6({}, OJ(s6(i, Snt))), {}, {
++ var t = e.clipPathId, n = e.pathRef, r = e.points, i = e.props, a = e.animationElapsedTime, o = e.isAnimating, s = e.isEntrance, c = e.visibleLength, l = i.type, u = i.layout, d = i.connectNulls, f = i.needClip, p = i.shape, m = i.strokeDasharray, h = c6(c6({}, MJ(s6(i, Snt))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: f ? `url(#clipPath-${t})` : void 0,
@@@ -96670,8 -95079,8 +96676,8 @@@ var Rnt = (e, t) => (
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.top, c = e.left, l = e.width, u = e.height, d = e.id, f = e.needClip, p = e.zIndex;
if (t) return null;
- var m = ny("recharts-line", i), h = d, g = stt(n), _ = g.r, v = g.strokeWidth, y = X4(n), b = _ * 2 + v, x = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ S.createElement(n4, { zIndex: p }, /*#__PURE__*/ S.createElement(lJ, { className: m }, f && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(t6, {
+ var m = ey("recharts-line", i), h = d, g = bnt(n), _ = g.r, v = g.strokeWidth, y = e3(n), b = _ * 2 + v, x = f ? `url(#clipPath-${y ? "" : "dots-"}${h})` : void 0;
- return /*#__PURE__*/ S.createElement(o4, { zIndex: p }, /*#__PURE__*/ S.createElement(MJ, { className: m }, f && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(a6, {
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: p }, /*#__PURE__*/ S.createElement(IJ, { className: m }, f && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(a6, {
clipPathId: h,
xAxisId: a,
yAxisId: o
@@@ -96698,11 -95107,11 +96704,11 @@@
}));
}
};
-function Dtt(e) {
- var t = zY(e, a6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = r6(t, utt), _ = e6(p, m).needClip, v = _3(), y = DQ(), b = hQ(), x = MX((e) => ott(e, p, m, b, h));
+function Bnt(e) {
- var t = cX(e, l6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = s6(t, Cnt), _ = i6(p, m).needClip, v = x3(), y = jQ(), b = yQ(), x = IX((e) => ynt(e, p, m, b, h));
++ var t = fX(e, l6), n = t.activeDot, r = t.animateNewValues, i = t.animationBegin, a = t.animationDuration, o = t.animationEasing, s = t.connectNulls, c = t.dot, l = t.hide, u = t.isAnimationActive, d = t.label, f = t.legendType, p = t.xAxisId, m = t.yAxisId, h = t.id, g = s6(t, Cnt), _ = i6(p, m).needClip, v = x3(), y = jQ(), b = yQ(), x = IX((e) => ynt(e, p, m, b, h));
if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;
var C = v.height, w = v.width, T = v.x, E = v.y;
- return /*#__PURE__*/ S.createElement(Ett, n6({}, g, {
+ return /*#__PURE__*/ S.createElement(znt, o6({}, g, {
id: h,
connectNulls: s,
dot: c,
@@@ -96738,11 -95147,11 +96744,11 @@@ function Vnt(e)
entry: e,
index: c
}),
- y: (QJ(l) ? null : r.scale.map(l)) ?? null,
- y: (kJ(l) ? null : r.scale.map(l)) ?? null,
++ y: (nY(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = QJ(l) ? null : n.scale.map(l), d = sQ({
- var u = kJ(l) ? null : n.scale.map(l), d = rQ({
++ var u = nY(l) ? null : n.scale.map(l), d = sQ({
axis: r,
ticks: a,
bandSize: s,
@@@ -96757,12 -95166,12 +96763,12 @@@
};
}).filter(Boolean);
}
-function ktt(e) {
- var t = zY(e, a6), n = hQ();
- return /*#__PURE__*/ S.createElement(l3, {
+function Hnt(e) {
- var t = cX(e, l6), n = yQ();
++ var t = fX(e, l6), n = yQ();
+ return /*#__PURE__*/ S.createElement(p3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(n3, { legendPayload: vtt(t) }), /*#__PURE__*/ S.createElement(ytt, {
+ }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(o3, { legendPayload: jnt(t) }), /*#__PURE__*/ S.createElement(Mnt, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@@ -96819,14 -95228,14 +96825,14 @@@ var Wnt = (e, t, n) => N2(e, "xAxis", u
}
}
}),
- vqe,
- Ftt,
- c6,
- Kqe,
- Y([c6, Rtt], (e, t) => {
+ jJe,
+ Jnt,
+ f6,
+ aYe,
+ Y([f6, Znt], (e, t) => {
if (e != null && e.stackId != null && t != null) {
var n = t[e.stackId];
- if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(eY);
- if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(jJ);
++ if (n != null) return n.graphicalItems.map((e) => e.dataKey).filter(iY);
}
})
], (e, t, n, r, i, a, o, s, c, l, u) => {
@@@ -96884,22 -95293,22 +96890,22 @@@ function nrt(e, t)
}
return n;
}
-function Wtt(e) {
+function rrt(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!ZZ(a) || !ZZ(o)) return null;
+ if (!tQ(a) || !tQ(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));
- return GJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), GJ(c) ? /*#__PURE__*/ S.createElement("rect", {
- return SJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), SJ(c) ? /*#__PURE__*/ S.createElement("rect", {
++ return YJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), YJ(c) ? /*#__PURE__*/ S.createElement("rect", {
x: a < o ? a : a - s,
y: 0,
width: s,
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function Gtt(e) {
+function irt(e) {
var t = e.alpha, n = e.baseLine, r = e.points, i = e.strokeWidth, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!ZZ(a) || !ZZ(o)) return null;
+ if (!tQ(a) || !tQ(o)) return null;
var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));
- return GJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), GJ(c) ? /*#__PURE__*/ S.createElement("rect", {
- return SJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), SJ(c) ? /*#__PURE__*/ S.createElement("rect", {
++ return YJ(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), YJ(c) ? /*#__PURE__*/ S.createElement("rect", {
x: 0,
y: a < o ? a : a - s,
width: c + (i ? parseInt(`${i}`, 10) : 1),
@@@ -96920,8 -95329,8 +96926,8 @@@ function art(e)
strokeWidth: a
});
}
-function qtt(e) {
- var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = Htt(e, Btt), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = f8e(), h = d.id, g = d.baseLine, _ = rJ(Htt(d, Vtt)), v = /*#__PURE__*/ S.createElement(KQ, l6({}, d, {
+function ort(e) {
- var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = trt(e, $nt), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = T5e(), h = d.id, g = d.baseLine, _ = EJ(trt(d, ert)), v = /*#__PURE__*/ S.createElement(XQ, p6({}, d, {
++ var t = e.animationElapsedTime, n = t === void 0 ? 1 : t, r = e.isAnimating, i = r !== void 0 && r, a = e.isEntrance, o = a !== void 0 && a, s = e.layout, c = e.isRange, l = e.stroke, u = e.connectNulls, d = trt(e, $nt), f = s === "vertical" ? "vertical" : "horizontal", p = u ?? !1, m = T5e(), h = d.id, g = d.baseLine, _ = AJ(trt(d, ert)), v = /*#__PURE__*/ S.createElement(XQ, p6({}, d, {
id: h,
baseLine: g,
connectNulls: p,
@@@ -96945,13 -95354,13 +96951,13 @@@
stroke: l,
points: g
}));
- return o && (i || n < 1) ? /*#__PURE__*/ S.createElement(MJ, null, /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("clipPath", { id: m }, /*#__PURE__*/ S.createElement(art, {
- return o && (i || n < 1) ? /*#__PURE__*/ S.createElement(lJ, null, /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("clipPath", { id: m }, /*#__PURE__*/ S.createElement(Ktt, {
++ return o && (i || n < 1) ? /*#__PURE__*/ S.createElement(IJ, null, /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement("clipPath", { id: m }, /*#__PURE__*/ S.createElement(art, {
alpha: n,
points: d.points ?? [],
baseLine: g,
layout: f,
strokeWidth: d.strokeWidth
- }))), /*#__PURE__*/ S.createElement(MJ, { clipPath: `url(#${m})` }, v, y, b)) : /*#__PURE__*/ S.createElement(S.Fragment, null, v, y, b);
- }))), /*#__PURE__*/ S.createElement(lJ, { clipPath: `url(#${m})` }, v, y, b)) : /*#__PURE__*/ S.createElement(S.Fragment, null, v, y, b);
++ }))), /*#__PURE__*/ S.createElement(IJ, { clipPath: `url(#${m})` }, v, y, b)) : /*#__PURE__*/ S.createElement(S.Fragment, null, v, y, b);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Area.js
@@@ -97046,10 -95455,10 +97052,10 @@@ var hrt =
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease",
- animationMatchBy: r3,
- animationInterpolateFn: (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "matched" ? [d6(d6({}, e.next), {}, {
- x: DJ(e.prev.x, e.next.x, t),
- y: DJ(e.prev.y, e.next.y, t)
+ animationMatchBy: s3,
+ animationInterpolateFn: (e, t) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => e.status === "matched" ? [h6(h6({}, e.next), {}, {
- x: XJ(e.prev.x, e.next.x, t),
- y: XJ(e.prev.y, e.next.y, t)
++ x: eY(e.prev.x, e.next.x, t),
++ y: eY(e.prev.y, e.next.y, t)
})] : e.status === "added" ? [e.next] : []),
connectNulls: !1,
dot: !1,
@@@ -97076,14 -95485,14 +97082,14 @@@ var grt = (e) =>
inactive: e.hide,
dataKey: t,
type: a,
- color: f6(r, i),
- value: oQ(n, t),
+ color: g6(r, i),
+ value: uQ(n, t),
payload: e
}];
-}, int = /*#__PURE__*/ S.memo((e) => {
+}, _rt = /*#__PURE__*/ S.memo((e) => {
var t = e.dataKey, n = e.data, r = e.stroke, i = e.strokeWidth, a = e.fill, o = e.name, s = e.hide, c = e.unit, l = e.formatter, u = e.tooltipType, d = e.id, f = {
dataDefinedOnItem: n,
- getPosition: tY,
- getPosition: MJ,
++ getPosition: aY,
settings: {
stroke: r,
strokeWidth: i,
@@@ -97099,11 -95508,11 +97105,11 @@@
graphicalItemId: d
}
};
- return /*#__PURE__*/ S.createElement(t3, { tooltipEntrySettings: f });
+ return /*#__PURE__*/ S.createElement(a3, { tooltipEntrySettings: f });
});
-function ant(e) {
- var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = rJ(r);
- return /*#__PURE__*/ S.createElement(m3, {
+function vrt(e) {
- var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = EJ(r);
++ var t = e.clipPathId, n = e.points, r = e.props, i = r.needClip, a = r.dot, o = r.dataKey, s = AJ(r);
+ return /*#__PURE__*/ S.createElement(v3, {
points: n,
dot: a,
className: "recharts-area-dots",
@@@ -97132,10 -95541,10 +97138,10 @@@ function yrt(e)
fill: void 0
});
});
- return /*#__PURE__*/ S.createElement(w4, { value: t ? r : void 0 }, n);
+ return /*#__PURE__*/ S.createElement(O4, { value: t ? r : void 0 }, n);
}
-function snt(e) {
- var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = Xtt(a, Jtt), _ = d6(d6({}, aJ(g)), {}, {
+function brt(e) {
- var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = lrt(a, srt), _ = h6(h6({}, OJ(g)), {}, {
++ var t = e.points, n = e.baseLine, r = e.needClip, i = e.clipPathId, a = e.props, o = e.animationElapsedTime, s = e.isAnimating, c = e.isEntrance, l = a.layout, u = a.type, d = a.stroke, f = a.connectNulls, p = a.isRange, m = a.shape, h = a.id, g = lrt(a, srt), _ = h6(h6({}, MJ(g)), {}, {
id: h,
points: t,
connectNulls: f,
@@@ -97148,20 -95557,20 +97154,20 @@@
isAnimating: s,
isEntrance: c
});
- return /*#__PURE__*/ S.createElement(S.Fragment, null, t?.length > 1 && /*#__PURE__*/ S.createElement(MJ, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ S.createElement(t3, {
- return /*#__PURE__*/ S.createElement(S.Fragment, null, t?.length > 1 && /*#__PURE__*/ S.createElement(lJ, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ S.createElement(Z4, {
++ return /*#__PURE__*/ S.createElement(S.Fragment, null, t?.length > 1 && /*#__PURE__*/ S.createElement(IJ, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ S.createElement(t3, {
option: m,
- DefaultShape: nnt.shape,
+ DefaultShape: hrt.shape,
shapeProps: _
- })), /*#__PURE__*/ S.createElement(ant, {
+ })), /*#__PURE__*/ S.createElement(vrt, {
points: t,
props: g,
clipPathId: i
}));
}
-function cnt(e, t, n) {
- return SJ(e) ? DJ(SJ(t) ? t : void 0, e, n) : kJ(e) || bJ(e) ? DJ(SJ(t) ? t : void 0, 0, n) : e;
+function xrt(e, t, n) {
- return GJ(e) ? XJ(GJ(t) ? t : void 0, e, n) : QJ(e) || UJ(e) ? XJ(GJ(t) ? t : void 0, 0, n) : e;
++ return YJ(e) ? eY(YJ(t) ? t : void 0, e, n) : nY(e) || qJ(e) ? eY(YJ(t) ? t : void 0, 0, n) : e;
}
-function lnt(e) {
+function Srt(e) {
var t = e.needClip, n = e.clipPathId, r = e.props, i = e.previousPointsRef, a = e.previousBaselineRef, o = r.points, s = r.baseLine, c = r.isAnimationActive, l = r.animationBegin, u = r.animationDuration, d = r.animationEasing, f = r.animationMatchBy, p = r.animationInterpolateFn, m = (0, S.useMemo)(() => ({
points: o,
baseLine: s
@@@ -97213,8 -95622,8 +97219,8 @@@ var wrt = class extends S.PureComponen
render() {
var e = this.props, t = e.hide, n = e.dot, r = e.points, i = e.className, a = e.top, o = e.left, s = e.needClip, c = e.xAxisId, l = e.yAxisId, u = e.width, d = e.height, f = e.id, p = e.baseLine, m = e.zIndex;
if (t) return null;
- var h = ny("recharts-area", i), g = f, _ = stt(n), v = _.r, y = _.strokeWidth, b = X4(n), x = v * 2 + y, C = s ? `url(#clipPath-${b ? "" : "dots-"}${g})` : void 0;
- return /*#__PURE__*/ S.createElement(n4, { zIndex: m }, /*#__PURE__*/ S.createElement(lJ, { className: h }, s && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(t6, {
+ var h = ey("recharts-area", i), g = f, _ = bnt(n), v = _.r, y = _.strokeWidth, b = e3(n), x = v * 2 + y, C = s ? `url(#clipPath-${b ? "" : "dots-"}${g})` : void 0;
- return /*#__PURE__*/ S.createElement(o4, { zIndex: m }, /*#__PURE__*/ S.createElement(MJ, { className: h }, s && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(a6, {
++ return /*#__PURE__*/ S.createElement(o4, { zIndex: m }, /*#__PURE__*/ S.createElement(IJ, { className: h }, s && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(a6, {
clipPathId: g,
xAxisId: c,
yAxisId: l
@@@ -97272,9 -95681,9 +97278,9 @@@ function Trt(e)
yAxisId: m
}));
}
-var pnt = (e, t, n, r, i) => {
+var Ert = (e, t, n, r, i) => {
var a = n ?? t;
- if (GJ(a)) return a;
- if (SJ(a)) return a;
++ if (YJ(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
if (o.type === "number") {
var c = Math.max(s[0], s[1]), l = Math.min(s[0], s[1]);
@@@ -97332,12 -95741,12 +97338,12 @@@ function Drt(e)
isRange: y
};
}
-function hnt(e) {
- var t = zY(e, nnt), n = hQ();
- return /*#__PURE__*/ S.createElement(l3, {
+function Ort(e) {
- var t = cX(e, hrt), n = yQ();
++ var t = fX(e, hrt), n = yQ();
+ return /*#__PURE__*/ S.createElement(p3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(n3, { legendPayload: rnt(t) }), /*#__PURE__*/ S.createElement(int, {
+ }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(o3, { legendPayload: grt(t) }), /*#__PURE__*/ S.createElement(_rt, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@@ -97405,76 -95814,76 +97411,76 @@@ function v6(e)
inActiveClassName: "recharts-inactive-bar"
});
}
-var Snt = function(e) {
+var Frt = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
return (n, r) => {
- if (GJ(e)) return e;
- var i = GJ(n) || QJ(n);
- if (SJ(e)) return e;
- var i = SJ(n) || kJ(n);
- return i ? e(n, r) : (!i && vnt(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
- };
-}, Cnt = (e, t, n) => n, h6 = Y([q0, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), wnt = Y([h6], (e) => e?.maxBarSize), Tnt = (e, t, n, r) => r, Ent = Y([
- EQ,
- q0,
- o6,
- s6,
- Cnt
-], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), Dnt = (e, t, n) => {
- var r = EQ(e), i = o6(e, t), a = s6(e, t);
- if (i != null && a != null) return r === "horizontal" ? a2(e, "yAxis", a, n) : a2(e, "xAxis", i, n);
-}, Ont = Y([
- Ent,
- Wqe,
++ if (YJ(e)) return e;
++ var i = YJ(n) || nY(n);
+ return i ? e(n, r) : (!i && jrt(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);
+ };
+}, Irt = (e, t, n) => n, y6 = Y([Z0, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), Lrt = Y([y6], (e) => e?.maxBarSize), Rrt = (e, t, n, r) => r, zrt = Y([
+ AQ,
+ Z0,
+ u6,
+ d6,
+ Irt
+], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), Brt = (e, t, n) => {
+ var r = AQ(e), i = u6(e, t), a = d6(e, t);
+ if (i != null && a != null) return r === "horizontal" ? l2(e, "yAxis", a, n) : l2(e, "xAxis", i, n);
+}, Vrt = Y([
+ zrt,
+ rYe,
(e, t) => {
- var n = EQ(e), r = o6(e, t), i = s6(e, t);
- if (r != null && i != null) return n === "horizontal" ? y$e(e, "xAxis", r) : y$e(e, "yAxis", i);
+ var n = AQ(e), r = u6(e, t), i = d6(e, t);
+ if (r != null && i != null) return n === "horizontal" ? M1e(e, "xAxis", r) : M1e(e, "yAxis", i);
}
-], Y5e), knt = (e, t, n) => {
- var r = h6(e, t);
+], c9e), Hrt = (e, t, n) => {
+ var r = y6(e, t);
if (r == null) return 0;
- var i = o6(e, t), a = s6(e, t);
+ var i = u6(e, t), a = d6(e, t);
if (i == null || a == null) return 0;
- var o = AQ(e), s = y$(e), c = r.maxBarSize, l = QJ(c) ? s : c, u, d;
- var o = EQ(e), s = h$(e), c = r.maxBarSize, l = kJ(c) ? s : c, u, d;
- return o === "horizontal" ? (u = k2(e, "xAxis", i, n), d = O2(e, "xAxis", i, n)) : (u = k2(e, "yAxis", a, n), d = O2(e, "yAxis", a, n)), aQ(u, d, !0) ?? l ?? 0;
-}, Ant = (e, t, n) => {
- var r = EQ(e), i = o6(e, t), a = s6(e, t);
++ var o = AQ(e), s = y$(e), c = r.maxBarSize, l = nY(c) ? s : c, u, d;
+ return o === "horizontal" ? (u = N2(e, "xAxis", i, n), d = M2(e, "xAxis", i, n)) : (u = N2(e, "yAxis", a, n), d = M2(e, "yAxis", a, n)), lQ(u, d, !0) ?? l ?? 0;
+}, Urt = (e, t, n) => {
+ var r = AQ(e), i = u6(e, t), a = d6(e, t);
if (i != null && a != null) {
var o, s;
- return r === "horizontal" ? (o = k2(e, "xAxis", i, n), s = O2(e, "xAxis", i, n)) : (o = k2(e, "yAxis", a, n), s = O2(e, "yAxis", a, n)), aQ(o, s);
+ return r === "horizontal" ? (o = N2(e, "xAxis", i, n), s = M2(e, "xAxis", i, n)) : (o = N2(e, "yAxis", a, n), s = M2(e, "yAxis", a, n)), lQ(o, s);
}
-}, jnt = Y([
- pQ,
- mQ,
+}, Wrt = Y([
+ _Q,
+ vQ,
(e, t, n) => {
- var r = o6(e, t);
- if (r != null) return k2(e, "xAxis", r, n);
+ var r = u6(e, t);
+ if (r != null) return N2(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = s6(e, t);
- if (r != null) return k2(e, "yAxis", r, n);
+ var r = d6(e, t);
+ if (r != null) return N2(e, "yAxis", r, n);
},
(e, t, n) => {
- var r = o6(e, t);
- if (r != null) return O2(e, "xAxis", r, n);
+ var r = u6(e, t);
+ if (r != null) return M2(e, "xAxis", r, n);
},
(e, t, n) => {
- var r = s6(e, t);
- if (r != null) return O2(e, "yAxis", r, n);
+ var r = d6(e, t);
+ if (r != null) return M2(e, "yAxis", r, n);
},
Y([Y([
- Ont,
- h$,
- Uqe,
- g$,
- knt,
- Ant,
- wnt
- ], t7e), h6], r7e),
- EQ,
- vqe,
- Ant,
- Y([Dnt, h6], n7e),
- h6,
- Tnt
+ Vrt,
+ y$,
+ nYe,
+ b$,
+ Hrt,
+ Urt,
+ Lrt
+ ], m9e), y6], g9e),
+ AQ,
+ jJe,
+ Urt,
+ Y([Brt, y6], h9e),
+ y6,
+ Rrt
], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
var p = c.chartData, m = c.dataStartIndex, h = c.dataEndIndex;
if (!(d == null || o == null || t == null || s !== "horizontal" && s !== "vertical" || n == null || r == null || i == null || a == null || l == null)) {
@@@ -97524,19 -95933,19 +97530,19 @@@ function qrt(e, t)
}
return n;
}
-var Fnt = /*#__PURE__*/ (0, S.createContext)(void 0), Int = (e) => {
- var t = (0, S.useContext)(Fnt);
+var Jrt = /*#__PURE__*/ (0, S.createContext)(void 0), Yrt = (e) => {
+ var t = (0, S.useContext)(Jrt);
if (t != null) return t.stackId;
- if (e != null) return nQ(e);
-}, Lnt = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, Rnt = (e) => {
- var t = (0, S.useContext)(Fnt);
+ if (e != null) return oQ(e);
+}, Xrt = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, Zrt = (e) => {
+ var t = (0, S.useContext)(Jrt);
if (t != null) {
var n = t.stackId;
- return `url(#${Lnt(n, e)})`;
+ return `url(#${Xrt(n, e)})`;
}
-}, znt = (e) => {
- var t = e.index, n = Nnt(e, Mnt), r = Rnt(t);
- return /*#__PURE__*/ S.createElement(lJ, g6({
+}, Qrt = (e) => {
+ var t = e.index, n = Krt(e, Grt), r = Zrt(t);
- return /*#__PURE__*/ S.createElement(MJ, b6({
++ return /*#__PURE__*/ S.createElement(IJ, b6({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
@@@ -97665,492 -96554,12 +97671,492 @@@ function pit(e, t)
}
return n;
}
-function Nrt(e) {
- var t = AX(), n = (0, S.useRef)(null), r = OQ(), i = e.type, a = S6(e, wrt), o = E$(r, "xAxis", i), s = (0, S.useMemo)(() => {
- if (o != null) return Ort(Ort({}, a), {}, { type: o });
+var mit = (e) => {
+ var t = e.dataKey, n = e.name, r = e.fill, i = e.legendType;
+ return [{
+ inactive: e.hide,
+ dataKey: t,
+ type: i,
+ color: r,
+ value: uQ(n, t),
+ payload: e
+ }];
+}, hit = /*#__PURE__*/ S.memo((e) => {
+ var t = e.dataKey, n = e.stroke, r = e.strokeWidth, i = e.fill, a = e.name, o = e.hide, s = e.unit, c = e.formatter, l = e.tooltipType, u = e.id, d = {
+ dataDefinedOnItem: void 0,
- getPosition: tY,
++ getPosition: aY,
+ settings: {
+ stroke: n,
+ strokeWidth: r,
+ fill: i,
+ dataKey: t,
+ nameKey: void 0,
+ name: uQ(a, t),
+ hide: o,
+ type: l,
+ color: i,
+ unit: s,
+ formatter: c,
+ graphicalItemId: u
+ }
+ };
+ return /*#__PURE__*/ S.createElement(a3, { tooltipEntrySettings: d });
+});
+function git(e) {
+ var t = IX(Z2), n = e.data, r = e.dataKey, i = e.background, a = e.allOtherBarProps, o = a.onMouseEnter, s = a.onMouseLeave, c = a.onClick, l = C6(a, $rt), u = n3(o, r, a.id), d = r3(s), f = i3(c, r, a.id);
+ if (!i || n == null) return null;
- var p = DJ(i);
++ var p = jJ(i);
+ return /*#__PURE__*/ S.createElement(o4, { zIndex: N9e(i, E$.barBackground) }, n.map((e, n) => {
+ e.value;
+ var a = e.background;
+ e.tooltipPosition;
+ var o = C6(e, eit);
+ if (!a) return null;
+ var s = u(e, e.originalDataIndex), c = d(e, e.originalDataIndex), m = f(e, e.originalDataIndex), h = S6(S6(S6(S6(S6({
+ option: i,
+ isActive: String(e.originalDataIndex) === t
- }, o), {}, { fill: "#eee" }, a), p), oX(l, e, n)), {}, {
++ }, o), {}, { fill: "#eee" }, a), p), uX(l, e, n)), {}, {
+ onMouseEnter: s,
+ onMouseLeave: c,
+ onClick: m,
+ dataKey: r,
+ index: n,
+ className: "recharts-bar-background-rectangle"
+ });
+ return /*#__PURE__*/ S.createElement(v6, x6({ key: `background-bar-${n}` }, h));
+ }));
+}
+function _it(e) {
+ var t = e.showLabels, n = e.children, r = e.rects?.map((e) => {
+ var t = {
+ x: e.x,
+ y: e.y,
+ width: e.width,
+ lowerWidth: e.width,
+ upperWidth: e.width,
+ height: e.height
+ };
+ return S6(S6({}, t), {}, {
+ value: e.value,
+ payload: e.payload,
+ parentViewBox: e.parentViewBox,
+ viewBox: t,
+ fill: e.fill
+ });
+ });
+ return /*#__PURE__*/ S.createElement(O4, { value: t ? r : void 0 }, n);
+}
+function vit(e) {
+ var t = e.shape, n = e.activeBar, r = e.baseProps, i = e.entry, a = e.index, o = e.dataKey, s = IX(Z2), c = IX(W0e), l = n && String(i.originalDataIndex) === s && (c == null || o === c), u = s != null && (String(i.originalDataIndex) !== s || c != null && o !== c), d = rit((0, S.useState)(!1), 2), f = d[0], p = d[1], m = rit((0, S.useState)(!1), 2), h = m[0], g = m[1];
+ (0, S.useEffect)(() => {
+ var e;
+ return l ? (p(!0), e = requestAnimationFrame(() => {
+ g(!0);
+ })) : (g(!1), u && p(!1)), () => {
+ cancelAnimationFrame(e);
+ };
+ }, [l, u]);
+ var _ = (0, S.useCallback)(() => {
+ l || p(!1);
+ }, [l]), v = l && h, y = l || f, b = l ? n === !0 ? t : n : t, x = /*#__PURE__*/ S.createElement(v6, x6({}, r, { name: String(r.name) }, i, {
+ isActive: v,
+ option: b,
+ index: a,
+ dataKey: o,
+ animationElapsedTime: e.animationElapsedTime,
+ isAnimating: e.isAnimating,
+ isEntrance: e.isEntrance,
+ onTransitionEnd: _
+ }));
+ return y ? /*#__PURE__*/ S.createElement(o4, { zIndex: E$.activeBar }, /*#__PURE__*/ S.createElement(Qrt, { index: i.originalDataIndex }, x)) : x;
+}
+function yit(e) {
+ var t = e.shape, n = e.baseProps, r = e.entry, i = e.index, a = e.dataKey;
+ return /*#__PURE__*/ S.createElement(v6, x6({}, n, { name: String(n.name) }, r, {
+ isActive: !1,
+ option: t,
+ index: i,
+ dataKey: a,
+ animationElapsedTime: e.animationElapsedTime,
+ isAnimating: e.isAnimating,
+ isEntrance: e.isEntrance
+ }));
+}
+function bit(e) {
- var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = EJ(n) ?? {}, s = o.id, c = C6(o, tit), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = C6(n, nit), g = n3(f, u, s), _ = r3(m), v = i3(p, u, s);
++ var t = e.data, n = e.props, r = e.animationElapsedTime, i = e.isAnimating, a = e.isEntrance, o = AJ(n) ?? {}, s = o.id, c = C6(o, tit), l = n.shape, u = n.dataKey, d = n.activeBar, f = n.onMouseEnter, p = n.onClick, m = n.onMouseLeave, h = C6(n, nit), g = n3(f, u, s), _ = r3(m), v = i3(p, u, s);
+ return t ? /*#__PURE__*/ S.createElement(S.Fragment, null, t.map((e, t) => /*#__PURE__*/ S.createElement(Qrt, x6({
+ index: e.originalDataIndex,
+ key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,
+ className: "recharts-bar-rectangle"
- }, oX(h, e, t), {
++ }, uX(h, e, t), {
+ onMouseEnter: g(e, e.originalDataIndex),
+ onMouseLeave: _(e, e.originalDataIndex),
+ onClick: v(e, e.originalDataIndex)
+ }), d ? /*#__PURE__*/ S.createElement(vit, {
+ shape: l,
+ activeBar: d,
+ baseProps: c,
+ entry: e,
+ index: t,
+ dataKey: u,
+ animationElapsedTime: r,
+ isAnimating: i,
+ isEntrance: a
+ }) : /*#__PURE__*/ S.createElement(yit, {
+ shape: l,
+ baseProps: c,
+ entry: e,
+ index: t,
+ dataKey: u,
+ animationElapsedTime: r,
+ isAnimating: i,
+ isEntrance: a
+ })))) : null;
+}
+var xit = (e, t, n) => e == null ? [] : t === 1 ? e.flatMap((e) => e.status === "removed" ? [] : [e.next]) : e.flatMap((e) => {
+ if (e.status === "removed") return n === "horizontal" ? [S6(S6({}, e.prev), {}, {
- height: XJ(e.prev.height, 0, t),
- y: XJ(e.prev.y, e.prev.y + e.prev.height, t)
- })] : [S6(S6({}, e.prev), {}, { width: XJ(e.prev.width, 0, t) })];
++ height: eY(e.prev.height, 0, t),
++ y: eY(e.prev.y, e.prev.y + e.prev.height, t)
++ })] : [S6(S6({}, e.prev), {}, { width: eY(e.prev.width, 0, t) })];
+ if (e.status === "matched") return [S6(S6({}, e.next), {}, {
- x: XJ(e.prev.x, e.next.x, t),
- y: XJ(e.prev.y, e.next.y, t),
- width: XJ(e.prev.width, e.next.width, t),
- height: XJ(e.prev.height, e.next.height, t)
++ x: eY(e.prev.x, e.next.x, t),
++ y: eY(e.prev.y, e.next.y, t),
++ width: eY(e.prev.width, e.next.width, t),
++ height: eY(e.prev.height, e.next.height, t)
+ })];
+ var r = e.next;
+ return n === "horizontal" ? [S6(S6({}, r), {}, {
- height: XJ(0, r.height, t),
- y: XJ(r.stackedBarStart, r.y, t)
++ height: eY(0, r.height, t),
++ y: eY(r.stackedBarStart, r.y, t)
+ })] : [S6(S6({}, r), {}, {
- width: XJ(0, r.width, t),
- x: XJ(r.stackedBarStart, r.x, t)
++ width: eY(0, r.width, t),
++ x: eY(r.stackedBarStart, r.x, t)
+ })];
+});
+function Sit(e) {
+ var t = e.props, n = e.previousRectanglesRef, r = t.data, i = t.isAnimationActive, a = t.animationBegin, o = t.animationDuration, s = t.animationEasing, c = t.animationInterpolateFn, l = t.layout, u = d3(t.onAnimationStart, t.onAnimationEnd), d = u.isAnimating, f = u.handleAnimationStart, p = u.handleAnimationEnd;
+ return /*#__PURE__*/ S.createElement(_it, {
+ showLabels: !d,
+ rects: r
+ }, /*#__PURE__*/ S.createElement(f3, {
+ animationInput: r,
+ animationIdPrefix: "recharts-bar-",
+ items: r,
+ previousItemsRef: n,
+ isAnimationActive: i,
+ animationBegin: a,
+ animationDuration: o,
+ animationEasing: s,
+ onAnimationStart: f,
+ onAnimationEnd: p,
+ animationInterpolateFn: c,
+ animationMatchBy: t.animationMatchBy,
+ layout: l
- }, (e, n, r) => /*#__PURE__*/ S.createElement(MJ, null, /*#__PURE__*/ S.createElement(bit, {
++ }, (e, n, r) => /*#__PURE__*/ S.createElement(IJ, null, /*#__PURE__*/ S.createElement(bit, {
+ props: t,
+ data: e,
+ animationElapsedTime: n,
+ isAnimating: d || n < 1,
+ isEntrance: r
+ }))), /*#__PURE__*/ S.createElement(A4, { label: t.label }), t.children);
+}
+function Cit(e) {
+ var t = (0, S.useRef)(null);
+ return /*#__PURE__*/ S.createElement(Sit, {
+ previousRectanglesRef: t,
+ props: e
+ });
+}
+var wit = 0, Tit = (e, t) => {
+ var n = Array.isArray(e.value) ? e.value[1] : e.value;
+ return {
+ x: e.x,
+ y: e.y,
+ value: n,
+ errorVal: iQ(e, t)
+ };
+}, Eit = class extends S.PureComponent {
+ render() {
+ var e = this.props, t = e.hide, n = e.data, r = e.dataKey, i = e.className, a = e.xAxisId, o = e.yAxisId, s = e.needClip, c = e.background, l = e.id;
+ if (t || n == null) return null;
+ var u = ey("recharts-bar", i), d = l;
- return /*#__PURE__*/ S.createElement(MJ, {
++ return /*#__PURE__*/ S.createElement(IJ, {
+ className: u,
+ id: l
+ }, s && /*#__PURE__*/ S.createElement("defs", null, /*#__PURE__*/ S.createElement(a6, {
+ clipPathId: d,
+ xAxisId: a,
+ yAxisId: o
- })), /*#__PURE__*/ S.createElement(MJ, {
++ })), /*#__PURE__*/ S.createElement(IJ, {
+ className: "recharts-bar-rectangles",
+ clipPath: s ? `url(#clipPath-${d})` : void 0
+ }, /*#__PURE__*/ S.createElement(git, {
+ data: n,
+ dataKey: r,
+ background: c,
+ allOtherBarProps: this.props
+ }), /*#__PURE__*/ S.createElement(Cit, this.props)));
+ }
+}, Dit = {
+ activeBar: !1,
+ animationBegin: 0,
+ animationDuration: 400,
+ animationEasing: "ease",
+ animationInterpolateFn: xit,
+ animationMatchBy: c5e,
+ background: !1,
+ hide: !1,
+ isAnimationActive: "auto",
+ label: !1,
+ legendType: "rect",
+ minPointSize: wit,
+ shape: _6,
+ xAxisId: 0,
+ yAxisId: 0,
+ zIndex: E$.bar
+};
+function Oit(e) {
+ var t = e.xAxisId, n = e.yAxisId, r = e.hide, i = e.legendType, a = e.minPointSize, o = e.activeBar, s = e.animationBegin, c = e.animationDuration, l = e.animationEasing, u = e.isAnimationActive, d = i6(t, n).needClip, f = jQ(), p = yQ(), m = W8e(e.children, m4), h = IX((t) => Wrt(t, e.id, p, m));
+ if (f !== "vertical" && f !== "horizontal") return null;
+ var g, _ = h?.[0];
+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ S.createElement(dnt, {
+ xAxisId: t,
+ yAxisId: n,
+ data: h,
+ dataPointFormatter: Tit,
+ errorBarOffset: g
+ }, /*#__PURE__*/ S.createElement(Eit, x6({}, e, {
+ layout: f,
+ needClip: d,
+ data: h,
+ xAxisId: t,
+ yAxisId: n,
+ hide: r,
+ legendType: i,
+ minPointSize: a,
+ activeBar: o,
+ animationBegin: s,
+ animationDuration: c,
+ animationEasing: l,
+ isAnimationActive: u
+ })));
+}
+function kit(e) {
+ var t = e.layout, n = e.barSettings, r = n.dataKey, i = n.minPointSize, a = n.hasCustomShape, o = e.pos, s = e.bandSize, c = e.xAxis, l = e.yAxis, u = e.xAxisTicks, d = e.yAxisTicks, f = e.stackedData, p = e.displayedData, m = e.offset, h = e.cells, g = e.parentViewBox, _ = e.dataStartIndex, v = t === "horizontal" ? l : c, y = f ? v.scale.domain() : null, b = qUe({ numericAxis: v }), x = v.scale.map(b);
+ return p.map((e, n) => {
+ var p, v, S, C, w, T;
+ if (f) {
+ var E = f[n + _];
+ if (E == null) return null;
+ p = WUe(E, y);
+ } else p = iQ(e, r), Array.isArray(p) || (p = [b, p]);
+ var D = Frt(i, wit)(p[1], n);
+ if (t === "horizontal") {
+ var O = l.scale.map(p[0]), k = l.scale.map(p[1]);
+ if (O == null || k == null) return null;
+ v = cQ({
+ axis: c,
+ ticks: u,
+ bandSize: s,
+ offset: o.offset,
+ entry: e,
+ index: n
+ }), S = k ?? O ?? void 0, C = o.size;
+ var A = O - k;
- if (w = UJ(A) ? 0 : A, T = {
++ if (w = qJ(A) ? 0 : A, T = {
+ x: v,
+ y: m.top,
+ width: C,
+ height: m.height
+ }, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {
- var j = HJ(w || D) * (Math.abs(D) - Math.abs(w));
++ var j = KJ(w || D) * (Math.abs(D) - Math.abs(w));
+ S -= j, w += j;
+ }
+ } else {
+ var M = c.scale.map(p[0]), N = c.scale.map(p[1]);
+ if (M == null || N == null) return null;
+ if (v = M, S = cQ({
+ axis: l,
+ ticks: d,
+ bandSize: s,
+ offset: o.offset,
+ entry: e,
+ index: n
+ }), C = N - M, w = o.size, T = {
+ x: m.left,
+ y: S,
+ width: m.width,
+ height: w
+ }, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = HJ(C || D) * (Math.abs(D) - Math.abs(C));
++ var P = KJ(C || D) * (Math.abs(D) - Math.abs(C));
+ C += P;
+ }
+ }
+ return v == null || S == null || C == null || w == null || !a && (C === 0 || w === 0) ? null : S6(S6({}, e), {}, {
+ stackedBarStart: x,
+ x: v,
+ y: S,
+ width: C,
+ height: w,
+ value: f ? p : p[1],
+ payload: e,
+ background: T,
+ tooltipPosition: {
+ x: v + C / 2,
+ y: S + w / 2
+ },
+ parentViewBox: g,
+ originalDataIndex: n
+ }, h && h[n] && h[n].props);
+ }).filter(Boolean);
+}
+function Ait(e) {
- var t = cX(e, Dit), n = Yrt(t.stackId), r = yQ();
++ var t = fX(e, Dit), n = Yrt(t.stackId), r = yQ();
+ return /*#__PURE__*/ S.createElement(p3, {
+ id: t.id,
+ type: "bar"
+ }, (e) => /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(o3, { legendPayload: mit(t) }), /*#__PURE__*/ S.createElement(hit, {
+ dataKey: t.dataKey,
+ stroke: t.stroke,
+ strokeWidth: t.strokeWidth,
+ fill: t.fill,
+ name: t.name,
+ hide: t.hide,
+ unit: t.unit,
+ formatter: t.formatter,
+ tooltipType: t.tooltipType,
+ id: e
+ }), /*#__PURE__*/ S.createElement(h3, {
+ type: "bar",
+ id: e,
+ data: void 0,
+ xAxisId: t.xAxisId,
+ yAxisId: t.yAxisId,
+ zAxisId: 0,
+ dataKey: t.dataKey,
+ stackId: n,
+ hide: t.hide,
+ barSize: t.barSize,
+ minPointSize: t.minPointSize,
+ maxBarSize: t.maxBarSize,
+ isPanorama: r,
+ hasCustomShape: t.shape != null && t.shape !== _6
+ }), /*#__PURE__*/ S.createElement(o4, { zIndex: t.zIndex }, /*#__PURE__*/ S.createElement(Oit, x6({}, t, { id: e })))));
+}
+var w6 = /*#__PURE__*/ S.memo(Ait, LQ);
+w6.displayName = "Bar";
+//#endregion
+//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
+var jit = ["domain", "range"], Mit = ["domain", "range"];
+function Nit(e, t) {
+ if (e == null) return {};
+ var n, r, i = Pit(e, t);
+ if (Object.getOwnPropertySymbols) {
+ var a = Object.getOwnPropertySymbols(e);
+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
+ }
+ return i;
+}
+function Pit(e, t) {
+ if (e == null) return {};
+ var n = {};
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
+ if (t.indexOf(r) !== -1) continue;
+ n[r] = e[r];
+ }
+ return n;
+}
+function Fit(e, t) {
+ return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;
+}
+function Iit(e, t) {
+ if (e === t) return !0;
+ var n = e.domain, r = e.range, i = Nit(e, jit), a = t.domain, o = t.range, s = Nit(t, Mit);
+ return !Fit(n, a) || !Fit(r, o) ? !1 : LQ(i, s);
+}
+//#endregion
+//#region node_modules/recharts/es6/cartesian/XAxis.js
+var Lit = ["type"], Rit = [
+ "dangerouslySetInnerHTML",
+ "ticks",
+ "scale"
+], zit = ["id", "scale"];
+function T6() {
+ return T6 = Object.assign ? Object.assign.bind() : function(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t];
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
+ }
+ return e;
+ }, T6.apply(null, arguments);
+}
+function Bit(e, t) {
+ var n = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(e);
+ t && (r = r.filter(function(t) {
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
+ })), n.push.apply(n, r);
+ }
+ return n;
+}
+function Vit(e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t] == null ? {} : arguments[t];
+ t % 2 ? Bit(Object(n), !0).forEach(function(t) {
+ Hit(e, t, n[t]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Bit(Object(n)).forEach(function(t) {
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
+ });
+ }
+ return e;
+}
+function Hit(e, t, n) {
+ return (t = Uit(t)) in e ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : e[t] = n, e;
+}
+function Uit(e) {
+ var t = Wit(e, "string");
+ return typeof t == "symbol" ? t : t + "";
+}
+function Wit(e, t) {
+ if (typeof e != "object" || !e) return e;
+ var n = e[Symbol.toPrimitive];
+ if (n !== void 0) {
+ var r = n.call(e, t || "default");
+ if (typeof r != "object") return r;
+ throw TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return (t === "string" ? String : Number)(e);
+}
+function E6(e, t) {
+ if (e == null) return {};
+ var n, r, i = Git(e, t);
+ if (Object.getOwnPropertySymbols) {
+ var a = Object.getOwnPropertySymbols(e);
+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
+ }
+ return i;
+}
+function Git(e, t) {
+ if (e == null) return {};
+ var n = {};
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
+ if (t.indexOf(r) !== -1) continue;
+ n[r] = e[r];
+ }
+ return n;
+}
+function Kit(e) {
+ var t = PX(), n = (0, S.useRef)(null), r = MQ(), i = e.type, a = E6(e, Lit), o = A$(r, "xAxis", i), s = (0, S.useMemo)(() => {
+ if (o != null) return Vit(Vit({}, a), {}, { type: o });
}, [a, o]);
return (0, S.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(B8e(s)) : n.current !== s && t(V8e({
+ s != null && (n.current === null ? t($5e(s)) : n.current !== s && t(e7e({
prev: n.current,
next: s
})), n.current = s);
@@@ -98197,33 -96606,33 +98203,33 @@@ var qit = (e) =>
axisType: u,
axisId: t
}));
-}, Frt = {
- allowDataOverflow: z0.allowDataOverflow,
- allowDecimals: z0.allowDecimals,
- allowDuplicatedCategory: z0.allowDuplicatedCategory,
- angle: z0.angle,
- axisLine: q3.axisLine,
- height: z0.height,
+}, Jit = {
+ allowDataOverflow: U0.allowDataOverflow,
+ allowDecimals: U0.allowDecimals,
+ allowDuplicatedCategory: U0.allowDuplicatedCategory,
+ angle: U0.angle,
+ axisLine: Z3.axisLine,
+ height: U0.height,
hide: !1,
- includeHidden: z0.includeHidden,
- interval: z0.interval,
+ includeHidden: U0.includeHidden,
+ interval: U0.interval,
label: !1,
- minTickGap: z0.minTickGap,
- mirror: z0.mirror,
- orientation: z0.orientation,
- padding: z0.padding,
- reversed: z0.reversed,
- scale: z0.scale,
- tick: z0.tick,
- tickCount: z0.tickCount,
- tickLine: q3.tickLine,
- tickSize: q3.tickSize,
- type: z0.type,
- niceTicks: z0.niceTicks,
+ minTickGap: U0.minTickGap,
+ mirror: U0.mirror,
+ orientation: U0.orientation,
+ padding: U0.padding,
+ reversed: U0.reversed,
+ scale: U0.scale,
+ tick: U0.tick,
+ tickCount: U0.tickCount,
+ tickLine: Z3.tickLine,
+ tickSize: Z3.tickSize,
+ type: U0.type,
+ niceTicks: U0.niceTicks,
xAxisId: 0
-}, Irt = /*#__PURE__*/ S.memo((e) => {
- var t = zY(e, Frt);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Nrt, {
+}, Yit = /*#__PURE__*/ S.memo((e) => {
- var t = cX(e, Jit);
++ var t = fX(e, Jit);
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Kit, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@@ -98383,33 -96792,33 +98389,33 @@@ function oat(e)
axisId: t
}));
}
-var Jrt = {
- allowDataOverflow: V0.allowDataOverflow,
- allowDecimals: V0.allowDecimals,
- allowDuplicatedCategory: V0.allowDuplicatedCategory,
- angle: V0.angle,
- axisLine: q3.axisLine,
+var sat = {
+ allowDataOverflow: G0.allowDataOverflow,
+ allowDecimals: G0.allowDecimals,
+ allowDuplicatedCategory: G0.allowDuplicatedCategory,
+ angle: G0.angle,
+ axisLine: Z3.axisLine,
hide: !1,
- includeHidden: V0.includeHidden,
- interval: V0.interval,
+ includeHidden: G0.includeHidden,
+ interval: G0.interval,
label: !1,
- minTickGap: V0.minTickGap,
- mirror: V0.mirror,
- orientation: V0.orientation,
- padding: V0.padding,
- reversed: V0.reversed,
- scale: V0.scale,
- tick: V0.tick,
- tickCount: V0.tickCount,
- tickLine: q3.tickLine,
- tickSize: q3.tickSize,
- type: V0.type,
- niceTicks: V0.niceTicks,
- width: V0.width,
+ minTickGap: G0.minTickGap,
+ mirror: G0.mirror,
+ orientation: G0.orientation,
+ padding: G0.padding,
+ reversed: G0.reversed,
+ scale: G0.scale,
+ tick: G0.tick,
+ tickCount: G0.tickCount,
+ tickLine: Z3.tickLine,
+ tickSize: Z3.tickSize,
+ type: G0.type,
+ niceTicks: G0.niceTicks,
+ width: G0.width,
yAxisId: 0
-}, Yrt = /*#__PURE__*/ S.memo((e) => {
- var t = zY(e, Jrt);
- return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(Krt, {
+}, cat = /*#__PURE__*/ S.memo((e) => {
- var t = cX(e, sat);
++ var t = fX(e, sat);
+ return /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(aat, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@@ -98924,25 -97333,25 +98930,25 @@@ var Gat =
width: "100%",
height: "100%",
display: "block"
-}, Nit = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = wQ(), r = TQ(), i = gGe();
- if (!QZ(n) || !QZ(r)) return null;
+}, Kat = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
+ var n = OQ(), r = kQ(), i = kKe();
+ if (!nQ(n) || !nQ(r)) return null;
var a = e.children, o = e.otherAttributes, s = e.title, c = e.desc, l, u;
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ S.createElement(AJ, q6({}, o, {
- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ S.createElement(sJ, U6({}, o, {
++ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ S.createElement(PJ, q6({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: Mit,
+ style: Gat,
ref: t
}), a);
-}), Pit = (e) => {
- var t = e.children, n = MX(_Q);
+}), qat = (e) => {
+ var t = e.children, n = IX(xQ);
if (!n) return null;
var r = n.width, i = n.height, a = n.y, o = n.x;
- return /*#__PURE__*/ S.createElement(AJ, {
- return /*#__PURE__*/ S.createElement(sJ, {
++ return /*#__PURE__*/ S.createElement(PJ, {
width: r,
height: i,
x: o,
@@@ -99261,12 -97670,12 +99267,12 @@@ var vot = /*#__PURE__*/ (0, S.forwardRe
handler: p,
reactEvent: e
}));
- }, [C, p]), de = iat(v);
- return /*#__PURE__*/ S.createElement(M0e.Provider, { value: T }, /*#__PURE__*/ S.createElement(RJ.Provider, { value: O }, /*#__PURE__*/ S.createElement(de, {
+ }, [C, p]), de = _ot(v);
- return /*#__PURE__*/ S.createElement(G2e.Provider, { value: T }, /*#__PURE__*/ S.createElement(sY.Provider, { value: O }, /*#__PURE__*/ S.createElement(de, {
++ return /*#__PURE__*/ S.createElement(G2e.Provider, { value: T }, /*#__PURE__*/ S.createElement(dY.Provider, { value: O }, /*#__PURE__*/ S.createElement(de, {
width: M ?? g?.width,
height: N ?? g?.height,
- className: ny("recharts-wrapper", r),
- style: Wit({
+ className: ey("recharts-wrapper", r),
+ style: rot({
position: "relative",
cursor: "default",
width: M,
@@@ -99317,12 -97726,12 +99323,12 @@@ function xot(e, t)
}
return n;
}
-var lat = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = rJ(sat(e, oat));
- return c ? /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(jQ, {
+var Sot = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = EJ(bot(e, yot));
++ var n = e.width, r = e.height, i = e.responsive, a = e.children, o = e.className, s = e.style, c = e.compact, l = e.title, u = e.desc, d = AJ(bot(e, yot));
+ return c ? /*#__PURE__*/ S.createElement(S.Fragment, null, /*#__PURE__*/ S.createElement(FQ, {
width: n,
height: r
- }), /*#__PURE__*/ S.createElement(Fit, {
+ }), /*#__PURE__*/ S.createElement(Jat, {
otherAttributes: d,
title: l,
desc: u
@@@ -99419,8 -97828,8 +99425,8 @@@ var Oot = wot(
reverseStackOrder: !1,
stackOffset: "none",
syncMethod: "index"
-}, H6), J6 = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- var n = zY(e.categoricalChartProps, hat), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
+}, K6), Q6 = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- var n = cX(e.categoricalChartProps, Oot), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
++ var n = fX(e.categoricalChartProps, Oot), r = e.chartName, i = e.defaultTooltipEventType, a = e.validateTooltipEventTypes, o = e.tooltipPayloadSearcher, s = e.categoricalChartProps, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@@ -99564,8 -97973,8 +99570,8 @@@ var e8 = Rot(
cy: "50%",
innerRadius: 0,
outerRadius: "80%"
-}, H6), kat = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- var n = zY(e.categoricalChartProps, X6), r = n.layout, i = Sat(n, xat), a = e.chartName, o = {
+}, K6), Hot = /*#__PURE__*/ (0, S.forwardRef)(function(e, t) {
- var n = cX(e.categoricalChartProps, e8), r = n.layout, i = Fot(n, Pot), a = e.chartName, o = {
++ var n = fX(e.categoricalChartProps, e8), r = n.layout, i = Fot(n, Pot), a = e.chartName, o = {
chartName: a,
defaultTooltipEventType: e.defaultTooltipEventType,
validateTooltipEventTypes: e.validateTooltipEventTypes,
@@@ -99651,13 -98060,13 +99657,13 @@@ var Jot = ["axis"], Yot = Wot(Wot({}, e
layout: "centric",
startAngle: 90,
endAngle: -270
-}), Lat = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = zY(e, Iat);
- return /*#__PURE__*/ S.createElement(kat, {
+}), Xot = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = cX(e, Yot);
++ var n = fX(e, Yot);
+ return /*#__PURE__*/ S.createElement(Hot, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: Fat,
- tooltipPayloadSearcher: s4,
+ validateTooltipEventTypes: Jot,
+ tooltipPayloadSearcher: d4,
categoricalChartProps: n,
ref: t
});
@@@ -99718,21 -98127,21 +99724,21 @@@ var ist = ["axis", "item"], ast = est(e
layout: "radial",
startAngle: 0,
endAngle: 360
-}), qat = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = zY(e, Kat);
- return /*#__PURE__*/ S.createElement(kat, {
+}), ost = /*#__PURE__*/ (0, S.forwardRef)((e, t) => {
- var n = cX(e, ast);
++ var n = fX(e, ast);
+ return /*#__PURE__*/ S.createElement(Hot, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: Gat,
- tooltipPayloadSearcher: s4,
+ validateTooltipEventTypes: ist,
+ tooltipPayloadSearcher: d4,
categoricalChartProps: n,
ref: t
});
});
//#endregion
//#region src/react/charts/cn.ts
-function Z6(...e) {
- return uA(ny(e));
+function t8(...e) {
- return dA(ey(e));
++ return pA(ey(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@@ -101277,13 -99686,13 +101283,13 @@@ var ect = ({ chartId: e, onShimmerExit
})
] });
};
-d8.Bar = xot, d8.XAxis = Sot, d8.YAxis = Cot, d8.Grid = wot, d8.Tooltip = Tot, d8.Legend = Eot, d8.Brush = c8;
+h8.Bar = Pst, h8.XAxis = Fst, h8.YAxis = Ist, h8.Grid = Lst, h8.Tooltip = Rst, h8.Legend = zst, h8.Brush = f8;
//#endregion
//#region src/react/charts/chart-card.tsx
- var g8 = `${_A({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-var f8 = `${gA({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
-function p8({ title: e, children: t }) {
++var g8 = `${yA({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+function _8({ title: e, children: t }) {
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: f8,
+ className: g8,
"aria-label": e,
children: [/* @__PURE__ */ (0, C.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
@@@ -101718,7 -100127,7 +101724,7 @@@ function wct({ children: e, className:
onClick: () => {
c(!0), o((e) => !e);
},
-- children: /* @__PURE__ */ (0, C.jsx)(Ok, { "aria-hidden": !0 })
++ children: /* @__PURE__ */ (0, C.jsx)(Ak, { "aria-hidden": !0 })
}) : null]
});
}
@@@ -101931,19 -100340,19 +101937,19 @@@ var Bct =
"aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5",
"aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"
];
-function kst({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
- let [i, a] = (0, S.useState)(-1), [o, s] = (0, S.useState)(-1), c = eRe(t);
- if (!c.length) return /* @__PURE__ */ (0, C.jsx)(p8, {
+function Hct({ title: e, rows: t, empty: n, unit: r = "个视频" }) {
- let [i, a] = (0, S.useState)(-1), [o, s] = (0, S.useState)(-1), c = JRe(t);
++ let [i, a] = (0, S.useState)(-1), [o, s] = (0, S.useState)(-1), c = WRe(t);
+ if (!c.length) return /* @__PURE__ */ (0, C.jsx)(_8, {
title: e,
children: n
});
- let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = YRe(c.map((e) => e.value)), m = c.map((e, t) => ({
- let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = tRe(c.map((e) => e.value)), m = c.map((e, t) => ({
- slice: b8(t),
++ let l = o >= 0 ? o : i, u = c.reduce((e, t) => e + t.value, 0), d = c[l], f = (e) => a((t) => t === e ? -1 : e), p = GRe(c.map((e) => e.value)), m = c.map((e, t) => ({
+ slice: w8(t),
value: e.value,
- arc: XRe(e.value, p)
- arc: nRe(e.value, p)
++ arc: KRe(e.value, p)
}));
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: f8,
+ className: g8,
children: [
/* @__PURE__ */ (0, C.jsxs)("header", {
className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",
@@@ -101951,7 -100360,7 +101957,7 @@@
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, C.jsxs)("h3", {
className: "flex items-center gap-1.5 text-title-2-medium wrap-anywhere text-text-primary",
- children: [d?.mark ? /* @__PURE__ */ (0, C.jsx)(BA, { mark: d.mark }) : null, d ? d.name : e]
- children: [d?.mark ? /* @__PURE__ */ (0, C.jsx)(zA, { mark: d.mark }) : null, d ? d.name : e]
++ children: [d?.mark ? /* @__PURE__ */ (0, C.jsx)(HA, { mark: d.mark }) : null, d ? d.name : e]
}), /* @__PURE__ */ (0, C.jsx)("b", {
className: "text-display-4-medium tabular-nums text-text-primary",
children: (d ? d.value : u).toLocaleString()
@@@ -101972,11 -100381,11 +101978,11 @@@
max: p,
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
- children: [/* @__PURE__ */ (0, C.jsx)(D8.RadialBar, {
+ children: [/* @__PURE__ */ (0, C.jsx)(j8.RadialBar, {
dataKey: "arc",
- barSize: ZRe(c.length),
- barSize: rRe(c.length),
++ barSize: qRe(c.length),
radialBarProps: {
- shape: (e) => /* @__PURE__ */ (0, C.jsx)(a$, {
+ shape: (e) => /* @__PURE__ */ (0, C.jsx)(l$, {
...e,
opacity: l >= 0 && l !== e.index ? .3 : 1,
className: "cursor-pointer transition-opacity duration-200"
@@@ -102007,10 -100416,10 +102013,10 @@@
className: "flex min-w-0 max-w-full items-start gap-1.5 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, C.jsx)("i", {
"aria-hidden": !0,
- className: `mt-0.5 size-3 shrink-0 rounded-sm ${Dst[t % 6]}`
+ className: `mt-0.5 size-3 shrink-0 rounded-sm ${Bct[t % 6]}`
}), /* @__PURE__ */ (0, C.jsxs)("span", {
className: "inline-flex min-w-0 items-start gap-1.5 wrap-anywhere",
- children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(BA, { mark: e.mark }) : null, e.name]
- children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(zA, { mark: e.mark }) : null, e.name]
++ children: [e.mark ? /* @__PURE__ */ (0, C.jsx)(HA, { mark: e.mark }) : null, e.name]
})]
}),
/* @__PURE__ */ (0, C.jsx)("b", {
@@@ -102029,8 -100438,8 +102035,8 @@@
}
//#endregion
//#region src/react/stats/stats-page.tsx
- var Uct = 10, M8 = S8[5], Wct = S8[4], Gct = `${_A()} flex flex-col gap-4`, N8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Kct = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", qct = "开始播放后,这里会显示最近的真实观看证据。", Jct = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Yct = "添加媒体文件夹后,这里会显示存储空间。", Xct = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", Zct = "探测时长后,这里会显示时长分布。", Qct = "探测画质后,这里会显示画质分布。", $ct = "开始播放后,这里会显示播放落在一周的哪些时段。", elt = "开始播放后,这里会显示每个作品播了几次。", P8 = (e, t) => Math.min(Math.max(e, 0), t);
-var Ast = 10, O8 = v8[5], jst = v8[4], Mst = `${gA()} flex flex-col gap-4`, k8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Nst = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Pst = "开始播放后,这里会显示最近的真实观看证据。", Fst = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Ist = "添加媒体文件夹后,这里会显示存储空间。", Lst = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", Rst = "探测时长后,这里会显示时长分布。", zst = "探测画质后,这里会显示画质分布。", Bst = "开始播放后,这里会显示播放落在一周的哪些时段。", Vst = "开始播放后,这里会显示每个作品播了几次。", A8 = (e, t) => Math.min(Math.max(e, 0), t);
-function j8({ term: e, value: t }) {
++var Uct = 10, M8 = S8[5], Wct = S8[4], Gct = `${yA()} flex flex-col gap-4`, N8 = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Kct = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", qct = "开始播放后,这里会显示最近的真实观看证据。", Jct = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Yct = "添加媒体文件夹后,这里会显示存储空间。", Xct = "把媒体文件夹归进媒体库后,这里会按库显示视频数。", Zct = "探测时长后,这里会显示时长分布。", Qct = "探测画质后,这里会显示画质分布。", $ct = "开始播放后,这里会显示播放落在一周的哪些时段。", elt = "开始播放后,这里会显示每个作品播了几次。", P8 = (e, t) => Math.min(Math.max(e, 0), t);
+function F8({ term: e, value: t }) {
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, C.jsx)("span", {
@@@ -102038,7 -100447,7 +102044,7 @@@
children: e
}), /* @__PURE__ */ (0, C.jsx)("b", {
className: "text-title-3-medium tabular-nums text-text-primary",
- children: _J(t)
- children: Jq(t)
++ children: xJ(t)
})]
});
}
@@@ -102050,14 -100459,14 +102056,14 @@@ function I8({ term: e, value: t, total
className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
children: [/* @__PURE__ */ (0, C.jsx)("span", { children: e }), /* @__PURE__ */ (0, C.jsxs)("b", {
className: "tabular-nums",
- children: [_J(t), gJ(t) ? /* @__PURE__ */ (0, C.jsx)("span", {
- children: [Jq(t), qq(t) ? /* @__PURE__ */ (0, C.jsx)("span", {
++ children: [xJ(t), bJ(t) ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: vJ(t, n)
- children: Yq(t, n)
++ children: SJ(t, n)
}) : null]
})]
- }), /* @__PURE__ */ (0, C.jsx)(SA, {
- label: `${e}:${_J(t)} / ${n.toLocaleString()}`,
- value: gJ(t) ? P8(t, r) : 0,
- }), /* @__PURE__ */ (0, C.jsx)(xA, {
- label: `${e}:${Jq(t)} / ${n.toLocaleString()}`,
- value: qq(t) ? A8(t, r) : 0,
++ }), /* @__PURE__ */ (0, C.jsx)(wA, {
++ label: `${e}:${xJ(t)} / ${n.toLocaleString()}`,
++ value: bJ(t) ? P8(t, r) : 0,
max: r
})]
});
@@@ -102121,38 -100530,38 +102127,38 @@@ function tlt({ data: e, configurable: t
title: "时长",
unit: "个视频",
series: "视频",
- color: O8,
- rows: sRe(e.by_length),
- empty: Rst
+ color: M8,
- rows: tze(e.by_length),
++ rows: ZRe(e.by_length),
+ empty: Zct
}),
- /* @__PURE__ */ (0, C.jsx)(C8, {
+ /* @__PURE__ */ (0, C.jsx)(D8, {
title: "画质",
unit: "个视频",
series: "视频",
- color: O8,
- rows: $q(e.by_quality),
- empty: zst
+ color: M8,
- rows: SJ(e.by_quality),
++ rows: EJ(e.by_quality),
+ empty: Qct
}),
- /* @__PURE__ */ (0, C.jsx)(C8, {
+ /* @__PURE__ */ (0, C.jsx)(D8, {
title: "文件类型",
unit: "个条目",
series: "条目",
- color: O8,
+ color: M8,
layout: "horizontal",
- rows: $Re(e.by_medium),
- rows: aRe(e.by_medium),
- empty: k8
++ rows: YRe(e.by_medium),
+ empty: N8
})
]
})]
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: zge,
- icon: Dge,
++ icon: Lge,
title: "还没有视频",
actions: /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [t ? /* @__PURE__ */ (0, C.jsx)(K, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
- }) : null, /* @__PURE__ */ (0, C.jsx)(gA, {
- }) : null, /* @__PURE__ */ (0, C.jsx)(hA, {
++ }) : null, /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/subscriptions?tab=add",
size: "small",
@@@ -102177,12 -100586,12 +102183,12 @@@ function nlt({ data: e })
title: "播放次数",
unit: "个作品",
series: "作品",
- color: jst,
- rows: lRe(e.replays),
- empty: Vst
+ color: Wct,
- rows: rze(e.replays),
++ rows: $Re(e.replays),
+ empty: elt
})] });
}
-function Wst({ attribution: e }) {
+function rlt({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-col",
@@@ -102230,15 -100639,15 +102236,15 @@@ function ilt({ volume: e })
children: e.online ? "容量未取得" : "离线"
}) : /* @__PURE__ */ (0, C.jsxs)("b", {
className: "whitespace-nowrap tabular-nums",
- children: [sn(n), /* @__PURE__ */ (0, C.jsx)("span", {
+ children: [on(n), /* @__PURE__ */ (0, C.jsx)("span", {
className: "ml-1.5 text-caption-1-regular text-text-secondary",
- children: vJ(n, t)
- children: Yq(n, t)
++ children: SJ(n, t)
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, C.jsx)(SA, {
- t == null ? null : /* @__PURE__ */ (0, C.jsx)(xA, {
++ t == null ? null : /* @__PURE__ */ (0, C.jsx)(wA, {
label: `${e.label}空间使用率`,
- value: A8(n, Math.max(t, 1)),
+ value: P8(n, Math.max(t, 1)),
max: Math.max(t, 1)
}),
/* @__PURE__ */ (0, C.jsxs)("p", {
@@@ -102254,13 -100663,13 +102260,13 @@@
]
});
}
-function Kst({ volumes: e, configurable: t, openMediaSettings: n }) {
+function alt({ volumes: e, configurable: t, openMediaSettings: n }) {
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col",
- children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(Gst, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
+ children: e.map((e) => /* @__PURE__ */ (0, C.jsx)(ilt, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Rk,
- icon: Lk,
++ icon: Bk,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, C.jsx)(K, {
size: "small",
@@@ -102296,11 -100705,11 +102302,11 @@@ function olt({ tags: e, tagLabel: t, on
]
})
}, `${e.k}:${r}`))
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Bk,
- icon: zk,
++ icon: Hk,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
@@@ -102313,7 -100722,7 +102319,7 @@@ function slt({ rows: e })
return e.length ? /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = bJ(e);
- let t = Zq(e);
++ let t = wJ(e);
return /* @__PURE__ */ (0, C.jsxs)("article", {
className: "flex flex-wrap items-center gap-x-6 gap-y-2",
children: [/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -102321,7 -100730,7 +102327,7 @@@
children: [/* @__PURE__ */ (0, C.jsx)("h3", {
className: "min-w-0 text-body-2-medium text-text-primary",
children: /* @__PURE__ */ (0, C.jsx)("a", {
- href: qRe(e),
- href: $Le(e),
++ href: URe(e),
"data-middle-truncate": !0,
className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
children: e.name
@@@ -102331,25 -100740,25 +102337,25 @@@
children: [e.creator ? /* @__PURE__ */ (0, C.jsx)("span", {
className: "min-w-0 wrap-anywhere",
children: e.creator
- }) : null, /* @__PURE__ */ (0, C.jsx)("span", { children: KRe(e) })]
- }) : null, /* @__PURE__ */ (0, C.jsx)("span", { children: QLe(e) })]
++ }) : null, /* @__PURE__ */ (0, C.jsx)("span", { children: HRe(e) })]
})]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, C.jsx)(SA, {
- children: [/* @__PURE__ */ (0, C.jsx)(xA, {
++ children: [/* @__PURE__ */ (0, C.jsx)(wA, {
label: `真实观看 ${t.toFixed(0)}%`,
value: t
}), /* @__PURE__ */ (0, C.jsx)("small", {
className: "mt-1.5 block text-caption-1-regular text-text-secondary",
- children: `真实 ${t.toFixed(0)}% · 到达 ${xJ(e).toFixed(0)}%`
- children: `真实 ${t.toFixed(0)}% · 到达 ${Qq(e).toFixed(0)}%`
++ children: `真实 ${t.toFixed(0)}% · 到达 ${TJ(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: zk,
- icon: Rk,
++ icon: Vk,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/",
size: "small",
@@@ -102377,9 -100786,9 +102383,9 @@@ function clt({ sources: e, videos: t }
})]
})]
}),
- /* @__PURE__ */ (0, C.jsx)(SA, {
- /* @__PURE__ */ (0, C.jsx)(xA, {
++ /* @__PURE__ */ (0, C.jsx)(wA, {
label: `${e.k} 覆盖视频`,
- value: A8(e.assets, Math.max(t, 1)),
+ value: P8(e.assets, Math.max(t, 1)),
max: Math.max(t, 1)
}),
/* @__PURE__ */ (0, C.jsxs)("small", {
@@@ -102388,27 -100797,27 +102394,27 @@@
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Bk,
- icon: zk,
++ icon: Hk,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, C.jsx)(gA, {
- actions: /* @__PURE__ */ (0, C.jsx)(hA, {
++ actions: /* @__PURE__ */ (0, C.jsx)(vA, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: Fst
+ children: Jct
});
}
-function F8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, C.jsx)(iP, {
+function z8({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, C.jsx)(uP, {
++ return /* @__PURE__ */ (0, C.jsx)(pP, {
id: e,
- className: SB({
- className: Xz({
++ className: TB({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, C.jsx)(EB, {
- children: /* @__PURE__ */ (0, C.jsx)(eB, {
++ children: /* @__PURE__ */ (0, C.jsx)(kB, {
label: t,
icon: i,
accent: a,
@@@ -102417,78 -100826,78 +102423,78 @@@
})
});
}
-function Xst(e) {
- let t = pt({
- queryKey: Gq,
- queryFn: ({ signal: e }) => Kq(e)
+function llt(e) {
+ let t = ft({
- queryKey: mJ,
- queryFn: ({ signal: e }) => hJ(e)
++ queryKey: vJ,
++ queryFn: ({ signal: e }) => yJ(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- if (!n) return /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ if (!n) return /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "馆藏统计读取失败",
children: t.error ? V(t.error) : "未取得统计数据,请刷新页面重试。"
}) });
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = gJ(n.tag_cov) ? vJ(n.tag_cov, n.attribution.videos) : "未取得", c = `${_J(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
- return /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = qq(n.tag_cov) ? Yq(n.tag_cov, n.attribution.videos) : "未取得", c = `${Jq(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
- return /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
++ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = bJ(n.tag_cov) ? SJ(n.tag_cov, n.attribution.videos) : "未取得", c = `${xJ(n.tag_cov)} / ${n.attribution.videos.toLocaleString()}`;
++ return /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
/* @__PURE__ */ (0, C.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
- children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${sn(o)}`
+ children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${on(o)}`
}),
- /* @__PURE__ */ (0, C.jsxs)(cP, {
- /* @__PURE__ */ (0, C.jsxs)(nP, {
++ /* @__PURE__ */ (0, C.jsxs)(dP, {
defaultSelectedKey: "inventory",
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, C.jsxs)(lP, {
- /* @__PURE__ */ (0, C.jsxs)(rP, {
++ /* @__PURE__ */ (0, C.jsxs)(fP, {
"aria-label": "统计视图",
- className: CB,
- className: Zz,
++ className: EB,
children: [
- /* @__PURE__ */ (0, C.jsx)(F8, {
+ /* @__PURE__ */ (0, C.jsx)(z8, {
id: "inventory",
label: "馆藏视频",
- icon: Pk,
- icon: Nk,
++ icon: Ik,
accent: 0,
figure: a.toLocaleString(),
- detail: sn(o)
+ detail: on(o)
}),
- /* @__PURE__ */ (0, C.jsx)(F8, {
+ /* @__PURE__ */ (0, C.jsx)(z8, {
id: "viewing",
label: "看过",
- icon: mge,
- icon: nge,
++ icon: fge,
accent: 1,
- figure: _J(r.played),
- detail: yJ(r.play_seconds)
- figure: Jq(r.played),
- detail: Xq(r.play_seconds)
++ figure: xJ(r.played),
++ detail: CJ(r.play_seconds)
}),
- /* @__PURE__ */ (0, C.jsx)(F8, {
+ /* @__PURE__ */ (0, C.jsx)(z8, {
id: "coverage",
label: "内容标签",
- icon: Bk,
- icon: zk,
++ icon: Hk,
accent: 2,
figure: s,
detail: c
}),
- /* @__PURE__ */ (0, C.jsx)(F8, {
+ /* @__PURE__ */ (0, C.jsx)(z8, {
id: "storage",
label: "使用空间",
- icon: Rk,
- icon: Lk,
++ icon: Bk,
accent: 3,
figure: `${i.online.toLocaleString()} 个卷`,
- detail: i.measured ? `已用 ${sn(i.used)}` : "容量未取得"
+ detail: i.measured ? `已用 ${on(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "inventory",
- children: /* @__PURE__ */ (0, C.jsx)(Hst, {
+ children: /* @__PURE__ */ (0, C.jsx)(tlt, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, C.jsxs)(dP, {
- /* @__PURE__ */ (0, C.jsxs)(aP, {
++ /* @__PURE__ */ (0, C.jsxs)(mP, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, C.jsx)(P8, {
- headline: /* @__PURE__ */ (0, C.jsx)(N8, {
+ children: [/* @__PURE__ */ (0, C.jsx)(R8, {
+ headline: /* @__PURE__ */ (0, C.jsx)(L8, {
term: "观看",
- figure: _J(r.played),
- figure: Jq(r.played),
++ figure: xJ(r.played),
unit: "个作品有播放记录"
}),
children: /* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -102528,23 -100937,23 +102534,23 @@@
})
]
})
- }), /* @__PURE__ */ (0, C.jsx)(Ust, { data: n })]
+ }), /* @__PURE__ */ (0, C.jsx)(nlt, { data: n })]
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "coverage",
- children: /* @__PURE__ */ (0, C.jsx)(P8, {
- headline: /* @__PURE__ */ (0, C.jsx)(N8, {
+ children: /* @__PURE__ */ (0, C.jsx)(R8, {
+ headline: /* @__PURE__ */ (0, C.jsx)(L8, {
term: "内容标签覆盖",
figure: s,
unit: c
}),
- children: /* @__PURE__ */ (0, C.jsx)(Wst, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, C.jsx)(rlt, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "storage",
- children: /* @__PURE__ */ (0, C.jsx)(P8, {
- headline: /* @__PURE__ */ (0, C.jsx)(N8, {
+ children: /* @__PURE__ */ (0, C.jsx)(R8, {
+ headline: /* @__PURE__ */ (0, C.jsx)(L8, {
term: "使用空间",
figure: i.measured.toLocaleString(),
unit: "个卷已取得容量"
@@@ -102557,51 -100966,51 +102563,51 @@@
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(cP, {
- /* @__PURE__ */ (0, C.jsxs)(nP, {
++ /* @__PURE__ */ (0, C.jsxs)(dP, {
defaultSelectedKey: "tags",
- className: `${_A({ padding: "none" })} flex flex-col`,
- className: `${gA({ padding: "none" })} flex flex-col`,
++ className: `${yA({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, C.jsxs)(RF, {
- children: /* @__PURE__ */ (0, C.jsxs)(rF, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VF, {
"aria-label": "统计维度",
- className: BF,
- className: aF,
++ className: UF,
children: [
- /* @__PURE__ */ (0, C.jsx)(uP, {
- /* @__PURE__ */ (0, C.jsx)(iP, {
++ /* @__PURE__ */ (0, C.jsx)(pP, {
id: "tags",
- className: VF,
- className: oF,
++ className: WF,
children: "内容标签"
}),
- /* @__PURE__ */ (0, C.jsx)(uP, {
- /* @__PURE__ */ (0, C.jsx)(iP, {
++ /* @__PURE__ */ (0, C.jsx)(pP, {
id: "recent",
- className: VF,
- className: oF,
++ className: WF,
children: "最近看过"
}),
- /* @__PURE__ */ (0, C.jsx)(uP, {
- /* @__PURE__ */ (0, C.jsx)(iP, {
++ /* @__PURE__ */ (0, C.jsx)(pP, {
id: "sources",
- className: VF,
- className: oF,
++ className: WF,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(qst, {
+ children: /* @__PURE__ */ (0, C.jsx)(olt, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(Jst, { rows: n.recent })
+ children: /* @__PURE__ */ (0, C.jsx)(slt, { rows: n.recent })
}),
- /* @__PURE__ */ (0, C.jsx)(dP, {
- /* @__PURE__ */ (0, C.jsx)(aP, {
++ /* @__PURE__ */ (0, C.jsx)(mP, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)(Yst, {
+ children: /* @__PURE__ */ (0, C.jsx)(clt, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@@ -103000,13 -101409,13 +103006,13 @@@ async function Glt(e)
}
return n;
}
-var Nct = 1e4, W8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function Pct(e) {
+var Klt = 1e4, J8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function qlt(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
- return !e.range_start && !e.range_end ? t : `${t} · ${W8(e.range_start)}—${W8(e.range_end)}`;
+ return !e.range_start && !e.range_end ? t : `${t} · ${J8(e.range_start)}—${J8(e.range_end)}`;
}
- var Jlt = yJ, Ylt = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Xlt = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-var Fct = Xq, Ict = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Lct = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function Rct(e) {
++var Jlt = CJ, Ylt = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), Xlt = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function Zlt(e) {
if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();
let t = [];
return e.web_visits && t.push(`浏览 ${Number(e.web_visits).toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
@@@ -103722,7 -102131,7 +103728,7 @@@ function Gut({ browsers: e, range: t }
}
});
return /* @__PURE__ */ (0, C.jsxs)("section", {
- className: `${_A()} flex flex-col gap-4`,
- className: `${gA()} flex flex-col gap-4`,
++ className: `${yA()} flex flex-col gap-4`,
"aria-label": "浏览器同步",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
@@@ -103756,7 -102165,7 +103762,7 @@@
});
},
children: [
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "浏览器名称",
value: i,
onChange: a,
@@@ -103764,7 -102173,7 +103770,7 @@@
isRequired: !0,
isDisabled: c.isPending
}),
- /* @__PURE__ */ (0, C.jsx)(bP, {
- /* @__PURE__ */ (0, C.jsx)(mP, {
++ /* @__PURE__ */ (0, C.jsx)(CP, {
label: "资料目录或历史文件",
value: o,
onChange: s,
@@@ -103841,11 -102250,11 +103847,11 @@@
}
//#endregion
//#region src/react/taste/taste-page.tsx
- var Kut = 10, qut = dA(HP, UP, "text-body-2-medium"), Q8 = `${_A()} flex flex-col gap-4`, $8 = "rounded-xl bg-background-primary-default p-3", Jut = "读取运行 Peach 的这台电脑上的浏览记录", Yut = "导入或读取浏览记录后,这里会列出已采集设备。", Xut = "馆藏里暂时没有对得上浏览信号的标签。", Zut = "采集浏览记录后,这里会显示聚合后的口味证据。", Qut = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", $ut = "采集浏览记录后,这里会列出浏览过的标签。", edt = "采集浏览记录后,这里会列出浏览过的创作者。", tdt = "采集浏览记录后,这里会列出常访问的网站。", ndt = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", rdt = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", idt = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", adt = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", odt = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", sdt = "需要刷新时再次读取或导入;数据源可在页面底部移除。", cdt = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", ldt = "peach-taste-guide-dismissed";
-var Nlt = 10, Plt = uA(IP, LP, "text-body-2-medium"), J8 = `${gA()} flex flex-col gap-4`, Y8 = "rounded-xl bg-background-primary-default p-3", Flt = "读取运行 Peach 的这台电脑上的浏览记录", Ilt = "导入或读取浏览记录后,这里会列出已采集设备。", Llt = "馆藏里暂时没有对得上浏览信号的标签。", Rlt = "采集浏览记录后,这里会显示聚合后的口味证据。", zlt = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Blt = "采集浏览记录后,这里会列出浏览过的标签。", Vlt = "采集浏览记录后,这里会列出浏览过的创作者。", Hlt = "采集浏览记录后,这里会列出常访问的网站。", Ult = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", Wlt = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", Glt = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", Klt = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", qlt = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Jlt = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Ylt = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", Xlt = "peach-taste-guide-dismissed";
-function X8({ icon: e, term: t, figure: n, detail: r, accent: i }) {
++var Kut = 10, qut = pA(GP, KP, "text-body-2-medium"), Q8 = `${yA()} flex flex-col gap-4`, $8 = "rounded-xl bg-background-primary-default p-3", Jut = "读取运行 Peach 的这台电脑上的浏览记录", Yut = "导入或读取浏览记录后,这里会列出已采集设备。", Xut = "馆藏里暂时没有对得上浏览信号的标签。", Zut = "采集浏览记录后,这里会显示聚合后的口味证据。", Qut = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", $ut = "采集浏览记录后,这里会列出浏览过的标签。", edt = "采集浏览记录后,这里会列出浏览过的创作者。", tdt = "采集浏览记录后,这里会列出常访问的网站。", ndt = "在 Peach 里播放或评价作品后,这里会列出对应的标签。", rdt = "在 Peach 里播放或评价作品后,这里会列出对应的创作者。", idt = "在 Peach 里播放或评价作品后,这里会列出对应的女优。", adt = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", odt = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", sdt = "需要刷新时再次读取或导入;数据源可在页面底部移除。", cdt = "删除这个来源的已导入记录,原始文件保留。若浏览器仍启用,下次读取会再次导入。", ldt = "peach-taste-guide-dismissed";
+function e5({ icon: e, term: t, figure: n, detail: r, accent: i }) {
return /* @__PURE__ */ (0, C.jsx)("div", {
- className: SB(),
- children: /* @__PURE__ */ (0, C.jsx)(EB, {
- className: Xz(),
- children: /* @__PURE__ */ (0, C.jsx)(eB, {
++ className: TB(),
++ children: /* @__PURE__ */ (0, C.jsx)(kB, {
label: t,
icon: e,
accent: i,
@@@ -103868,16 -102277,16 +103874,16 @@@ function udt({ name: e, domain: t })
})]
});
}
-function Qlt({ html: e }) {
+function ddt({ html: e }) {
return /* @__PURE__ */ (0, C.jsx)("span", {
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${hU}`,
- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${GH}`,
++ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${yU}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function $lt({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, C.jsx)(_A, {
+function fdt({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {
- if (!e.length) return /* @__PURE__ */ (0, C.jsx)(vA, {
++ if (!e.length) return /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Hk,
- icon: Vk,
++ icon: Wk,
title: "暂无足够证据",
children: r
});
@@@ -103924,10 -102333,10 +103930,10 @@@
children: e.name
}), /* @__PURE__ */ (0, C.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: Rct(e)
+ children: Zlt(e)
})]
}),
-- o ? /* @__PURE__ */ (0, C.jsx)(Ak, {
++ o ? /* @__PURE__ */ (0, C.jsx)(Mk, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@@ -103947,24 -102356,24 +103953,24 @@@
})
});
}
-function eut({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, C.jsxs)(nP, {
- className: `${gA({ padding: "none" })} flex flex-col`,
+function pdt({ label: e, panels: t, onSignal: n }) {
- return /* @__PURE__ */ (0, C.jsxs)(cP, {
- className: `${_A({ padding: "none" })} flex flex-col`,
++ return /* @__PURE__ */ (0, C.jsxs)(dP, {
++ className: `${yA({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, C.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, C.jsx)(RF, {
- children: /* @__PURE__ */ (0, C.jsx)(rF, {
++ children: /* @__PURE__ */ (0, C.jsx)(VF, {
"aria-label": e,
- className: BF,
- children: t.map((e) => /* @__PURE__ */ (0, C.jsx)(uP, {
- className: aF,
- children: t.map((e) => /* @__PURE__ */ (0, C.jsx)(iP, {
++ className: UF,
++ children: t.map((e) => /* @__PURE__ */ (0, C.jsx)(pP, {
id: e.id,
- className: VF,
- className: oF,
++ className: WF,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(dP, {
- }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(aP, {
++ }), t.map((e) => /* @__PURE__ */ (0, C.jsx)(mP, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, C.jsx)($lt, {
+ children: /* @__PURE__ */ (0, C.jsx)(fdt, {
...e.props,
onSignal: n
})
@@@ -104040,16 -102449,16 +104046,16 @@@ function mdt({ data: e, onSignal: t, na
className: "text-caption-1-regular wrap-anywhere text-text-secondary",
children: e.detail
})]
-- }), /* @__PURE__ */ (0, C.jsx)(Ak, {
++ }), /* @__PURE__ */ (0, C.jsx)(Mk, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Hk,
- icon: Vk,
++ icon: Wk,
title: "还没有可探索的入口",
- children: Llt
+ children: Xut
})
]
});
@@@ -104063,11 -102472,11 +104069,11 @@@ function hdt({ onboarding: e, done: t }
}
});
return t || n ? null : /* @__PURE__ */ (0, C.jsx)("div", {
- className: _A({
- className: gA({
++ className: yA({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, C.jsxs)(zA, {
- children: /* @__PURE__ */ (0, C.jsxs)(RA, {
++ children: /* @__PURE__ */ (0, C.jsxs)(VA, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
@@@ -104136,15 -102545,15 +104142,15 @@@ function gdt({ busy: e, onRefresh: t, o
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, C.jsx)(K, {
- leadingIcon: Nk,
- leadingIcon: Mk,
- title: Flt,
++ leadingIcon: Fk,
+ title: Jut,
onClick: t,
...J(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, C.jsx)(K, {
ref: r,
iconOnly: !0,
-- leadingIcon: Ok,
++ leadingIcon: Ak,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
@@@ -104153,29 -102562,29 +104159,29 @@@
e || a(!0);
}
})]
- }), /* @__PURE__ */ (0, C.jsx)(fN, {
- }), /* @__PURE__ */ (0, C.jsx)(oN, {
++ }), /* @__PURE__ */ (0, C.jsx)(hN, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: VP,
- children: /* @__PURE__ */ (0, C.jsxs)(vF, {
- className: FP,
- children: /* @__PURE__ */ (0, C.jsxs)(AI, {
++ className: WP,
++ children: /* @__PURE__ */ (0, C.jsxs)(xF, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: Plt,
+ className: qut,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, C.jsx)(Nk, {
- children: [/* @__PURE__ */ (0, C.jsx)(Mk, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Fk, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, C.jsxs)("button", {
type: "button",
- className: Plt,
+ className: qut,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, C.jsx)(Lge, {
- children: [/* @__PURE__ */ (0, C.jsx)(Tge, {
++ children: [/* @__PURE__ */ (0, C.jsx)(Fge, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@@ -104209,10 -102618,10 +104215,10 @@@ function _dt({ sources: e, window: t, t
children: [
/* @__PURE__ */ (0, C.jsx)("span", {
className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(Lge, {
- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(Tge, {
++ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, C.jsx)(Fge, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, C.jsx)(Pk, {
- }) : /* @__PURE__ */ (0, C.jsx)(Nk, {
++ }) : /* @__PURE__ */ (0, C.jsx)(Ik, {
"aria-hidden": !0,
className: "size-4"
})
@@@ -104233,7 -102642,7 +104239,7 @@@
"aria-label": `移除 ${e.profile}`,
className: "shrink-0",
iconOnly: !0,
- leadingIcon: Fk,
- leadingIcon: Pk,
++ leadingIcon: Lk,
...J(r.isPending),
onClick: () => {
r.isPending || Vs({
@@@ -104246,32 -102655,32 +104252,32 @@@
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Pk,
- icon: Nk,
++ icon: Ik,
title: "还没有数据源",
- children: Ilt
+ children: Yut
})
]
});
}
-function aut(e) {
- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, S.useState)("all"), [s, c] = (0, S.useState)("browser"), l = (0, S.useRef)(null), u = pt({
- queryKey: U8(a),
- queryFn: ({ signal: e }) => Dct(a, e),
+function vdt(e) {
+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, S.useState)("all"), [s, c] = (0, S.useState)("browser"), l = (0, S.useRef)(null), u = ft({
+ queryKey: q8(a),
+ queryFn: ({ signal: e }) => Blt(a, e),
placeholderData: de
- }), { job: d, running: f, outcome: p, start: m } = HB({
- }), { job: d, running: f, outcome: p, start: m } = _B({
- queryKey: wct,
- queryFn: ({ signal: e }) => Oct(e),
- start: () => Act(a),
- idlePollMs: Nct,
++ }), { job: d, running: f, outcome: p, start: m } = GB({
+ queryKey: Llt,
+ queryFn: ({ signal: e }) => Vlt(e),
+ start: () => Ult(a),
+ idlePollMs: Klt,
onFinish: (e) => {
- e.status !== "failed" && (W.invalidateQueries({ queryKey: ["taste"] }), r(e.warnings?.length ? "部分浏览记录未取得" : "已更新口味分析"));
+ e.status !== "failed" && (U.invalidateQueries({ queryKey: ["taste"] }), r(e.warnings?.length ? "部分浏览记录未取得" : "已更新口味分析"));
}
- }), h = mt({
- mutationFn: (e) => Mct(e),
+ }), h = pt({
+ mutationFn: (e) => Glt(e),
onSuccess: (e) => {
- W.setQueryData(U8("all"), e.dashboard), o("all"), r("已导入口味数据");
+ U.setQueryData(q8("all"), e.dashboard), o("all"), r("已导入口味数据");
}
}), g = (e) => {
let t = e.currentTarget.files?.[0];
@@@ -104279,42 -102688,42 +104285,42 @@@
}, _ = () => {
f || m.isPending || (m.reset(), m.mutate());
}, v = u.data;
- if (!v) return /* @__PURE__ */ (0, C.jsx)(bA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
- if (!v) return /* @__PURE__ */ (0, C.jsx)(yA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
++ if (!v) return /* @__PURE__ */ (0, C.jsx)(SA, { children: /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
title: "口味分析读取失败",
children: u.error ? V(u.error) : "读取口味分析失败"
}) });
- let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, w = v.storage || {}, T = Ict(x.browser_categories || []), E = Vct(T).length > 0, D = v.gaps || [], O = b.tagged || 0, k = b.identified || 0, A = m.error ? V(m.error) : h.error ? V(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, C.jsxs)(yA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(nP, {
+ let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, w = v.storage || {}, T = Ylt(x.browser_categories || []), E = eut(T).length > 0, D = v.gaps || [], O = b.tagged || 0, k = b.identified || 0, A = m.error ? V(m.error) : h.error ? V(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";
- return /* @__PURE__ */ (0, C.jsxs)(bA, { children: [
- /* @__PURE__ */ (0, C.jsxs)(cP, {
++ return /* @__PURE__ */ (0, C.jsxs)(SA, { children: [
++ /* @__PURE__ */ (0, C.jsxs)(dP, {
selectedKey: s,
onSelectionChange: (e) => c(String(e)),
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, C.jsxs)(RF, {
- children: [/* @__PURE__ */ (0, C.jsxs)(rF, {
++ children: [/* @__PURE__ */ (0, C.jsxs)(VF, {
"aria-label": "口味证据来源",
- className: BF,
- children: [/* @__PURE__ */ (0, C.jsx)(uP, {
- className: aF,
- children: [/* @__PURE__ */ (0, C.jsx)(iP, {
++ className: UF,
++ children: [/* @__PURE__ */ (0, C.jsx)(pP, {
id: "browser",
- className: VF,
- className: oF,
++ className: WF,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, C.jsx)(uP, {
- }), /* @__PURE__ */ (0, C.jsx)(iP, {
++ }), /* @__PURE__ */ (0, C.jsx)(pP, {
id: "peach",
- className: VF,
- className: oF,
++ className: WF,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, C.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, C.jsx)(NF, {
- /* @__PURE__ */ (0, C.jsx)(ZP, {
++ /* @__PURE__ */ (0, C.jsx)(IF, {
"aria-label": "分析范围",
selectedKey: a,
onSelectionChange: (e) => {
e !== null && o(String(e));
},
- children: Rlt.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(PF, {
- children: Tct.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(QP, {
++ children: Rlt.map(([e, t]) => /* @__PURE__ */ (0, C.jsx)(LF, {
id: e,
children: t
}, e))
@@@ -104343,12 -102752,12 +104349,12 @@@
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- f ? /* @__PURE__ */ (0, C.jsx)(zB, {
- f ? /* @__PURE__ */ (0, C.jsx)(pB, {
++ f ? /* @__PURE__ */ (0, C.jsx)(HB, {
label: d?.message || "正在读取浏览记录并更新口味分析",
value: d?.checked,
total: d?.total
}) : null,
- h.isPending ? /* @__PURE__ */ (0, C.jsx)(zB, { label: "正在导入历史文件" }) : null,
- h.isPending ? /* @__PURE__ */ (0, C.jsx)(pB, { label: "正在导入历史文件" }) : null,
++ h.isPending ? /* @__PURE__ */ (0, C.jsx)(HB, { label: "正在导入历史文件" }) : null,
A ? /* @__PURE__ */ (0, C.jsx)(q, {
tone: "error",
children: A
@@@ -104359,39 -102768,39 +104365,39 @@@
}) : null
]
}),
- /* @__PURE__ */ (0, C.jsxs)(dP, {
- /* @__PURE__ */ (0, C.jsxs)(aP, {
++ /* @__PURE__ */ (0, C.jsxs)(mP, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: CB,
- className: Zz,
++ className: EB,
children: [
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 0,
- icon: zk,
- icon: Rk,
++ icon: Vk,
term: "浏览记录",
figure: Number(y.history_visits || 0).toLocaleString(),
- detail: Pct(y)
+ detail: qlt(y)
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 1,
- icon: Bk,
- icon: zk,
++ icon: Hk,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 2,
- icon: Hk,
- icon: Vk,
++ icon: Wk,
term: "浏览候选",
figure: D.length.toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 3,
- icon: Pk,
- icon: Nk,
++ icon: Ik,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
- detail: sn(w.bytes || 0)
+ detail: on(w.bytes || 0)
})
]
}),
@@@ -104416,14 -102825,14 +104422,14 @@@
]
}), /* @__PURE__ */ (0, C.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, C.jsx)(Alt, {
+ children: T.length ? /* @__PURE__ */ (0, C.jsx)(Uut, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, C.jsx)(vA, {
- }) : /* @__PURE__ */ (0, C.jsx)(_A, {
++ }) : /* @__PURE__ */ (0, C.jsx)(bA, {
shell: "plain",
- icon: Hk,
- icon: Vk,
++ icon: Wk,
title: "暂无口味维度",
- children: Rlt
+ children: Zut
})
})]
}),
@@@ -104498,35 -102907,35 +104504,35 @@@
})
]
}),
- /* @__PURE__ */ (0, C.jsxs)(dP, {
- /* @__PURE__ */ (0, C.jsxs)(aP, {
++ /* @__PURE__ */ (0, C.jsxs)(mP, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, C.jsxs)("div", {
- className: CB,
- className: Zz,
++ className: EB,
children: [
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 0,
- icon: mge,
- icon: nge,
++ icon: fge,
term: "Peach 看过",
figure: Number(y.peach_items || 0).toLocaleString(),
- detail: Fct(y.peach_seconds || 0)
+ detail: Jlt(y.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 1,
- icon: Ige,
- icon: wge,
++ icon: Pge,
term: "喜欢",
figure: Number(y.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 2,
- icon: Fge,
- icon: Cge,
++ icon: Nge,
term: "不合口味",
figure: Number(y.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, C.jsx)(X8, {
+ /* @__PURE__ */ (0, C.jsx)(e5, {
accent: 3,
- icon: Bk,
- icon: zk,
++ icon: Hk,
term: "有标签",
figure: O.toLocaleString()
})
@@@ -104633,7 -103042,7 +104639,7 @@@ function ydt({ term: e, value: t, rest
children: `${n.toLocaleString()} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, C.jsx)(SA, {
- }), /* @__PURE__ */ (0, C.jsx)(xA, {
++ }), /* @__PURE__ */ (0, C.jsx)(wA, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@@ -104710,948 -103119,1566 +104716,951 @@@ function Ddt(e, t)
return {
kind: e,
q: n.get("q") || "",
- scope: n.get("scope") === "online" ? "online" : "local",
- view: n.get("view") === "cloud" ? "cloud" : "alphabet",
- category: n.get("category") || "all"
- };
-}
-var Q8 = (e, t, n) => Fo(e.map(([e, t, n]) => ({
- value: e,
- label: t,
- symbol: n
-})), {
- active: t,
- label: n,
- className: "indextabs"
-}), hut = (e) => `<div class="board-filter-frame" data-filter-frame>
- <div class="tagbar" data-filter-row="top" data-skeleton-tier="pill" aria-label="标签类型"></div>
- <div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
- ${js("tag-view", "标签视图", fut, e)}</div></div>`;
-function gut({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Z8[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? js("people-layout", o + "索引版式", c ? cut : sut, 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}
- ${yo()}
- <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${bo("", t, "过滤" + o)}</div>
- </div>
- ${e === "tags" ? Q8(uut, n, "词表") : e === "performers" || e === "creators" ? Q8(dut, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? Q8(lut, e, "公司类型") : ""}
- ${e === "tags" ? hut(r) : ""}
- ${e === "performers" && n !== "online" ? WDe(i) : ""}
- ${Yo({
- kind: e,
- layout: a,
- mode: r
- })}`;
-}
-var _ut = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function vut(e, t, n) {
- let r = gut(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== _ut(r) && (e.innerHTML = r, ns(e));
-}
-//#endregion
-//#region src/react/router/pages/index-entity.tsx
-var yut = () => al, but = () => Wc, $8 = () => document.getElementById("index");
-function e5(e, t, n = {}) {
- let r = (0, S.useSyncExternalStore)(gl, yut);
- IO();
- let i = JO(Sk.navigation.location.pathname), a = (0, S.useRef)({
- mounted: !0,
- epoch: -1,
- opens: -1,
- run: 0,
- opened: !1
- }), o = (0, S.useRef)({
- run: t,
- options: n
- });
- (0, S.useLayoutEffect)(() => {
- o.current = {
- run: t,
- options: n
- };
- }), (0, S.useEffect)(() => {
- let e = a.current;
- return e.mounted = !0, () => {
- e.mounted = !1;
- };
- }, []), (0, S.useEffect)(() => {
- r !== 0 && queueMicrotask(() => {
- let t = a.current;
- if (!t.mounted) return;
- let n = t.epoch !== e || t.opens !== al, r = t.opens !== al;
- if (t.epoch = e, t.opens = al, JO(Sk.navigation.location.pathname)) {
- n && o.current.options.onCovered?.();
- return;
- }
- if (!n) {
- if (t.opened || o.current.options.shown?.()) {
- t.opened = !0;
- return;
- }
- r = !0;
- }
- t.opened = !0;
- let i = ++t.run;
- o.current.run(r, () => t.mounted && t.run === i);
- });
- }, [
- e,
- r,
- i
- ]);
-}
-async function xut(e, t, n, r) {
- let i = $8();
- if (!i) return;
- let a = `/${t}`;
- e.surfaceChanged("index", a);
- let o = mut(t, n), s = put(xE().value.peopleLayout);
- vut(i, o, s), await fk(a, {
- ...o,
- layout: s,
- selectMode: Wc,
- configurable: !!e.configurable?.()
- }, {
- container: i,
- isCurrent: r
- }) && r() && e.surfaceShown?.("index", a);
-}
-function Sut(e) {
- let t = $8(), n = t ? ck(t) : null;
- return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
-}
-function Cut({ epoch: e }) {
- let t = (0, S.useContext)(YP), n = IO(), r = n.pathname.split("/").filter(Boolean)[0];
- return e5(e, (e, i) => {
- t && xut(t, r, n.search, i);
- }, { shown: () => Sut(`/${r}`) }), null;
-}
-function wut() {
- let e = JP(), t = (0, S.useSyncExternalStore)(gl, but), n = (0, S.useRef)(t);
- return (0, S.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && pk($8(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, C.jsx)(Cut, { epoch: e }, e);
-}
-function Tut(e) {
- let t;
- try {
- t = decodeURIComponent(e);
- } catch {
- return null;
- }
- let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(Ut, n) ? Ut[n] : void 0, a = r.join("/");
- return i && a ? {
- segment: n,
- kind: i,
- name: a
- } : null;
-}
-var Eut = /* @__PURE__ */ new WeakMap();
-function Dut(e) {
- let t = Eut.get(e);
- return t || (t = {
- helpers: {
- ...e.grid.helpers,
- personAvatar: e.personAvatar
- },
- actions: {
- ...e.grid.actions,
- revealSource: e.revealSource
- }
- }, Eut.set(e, t)), t;
-}
-function Out() {
- let e = $8(), t = e ? ck(e) : null;
- return !!t && t.path.endsWith("/*") && t.host.isConnected;
-}
-async function kut(e, t, n, r, i, a, o) {
- let s = $8();
- if (!s) return;
- let { segment: c, kind: l, name: u } = n;
- if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
- ml({ entityJavLayout: !1 });
- let d = document.createElement("template");
- d.innerHTML = "<div data-entity-hero><div class=\"peach-react\"></div></div>\n <div data-entity-filter><div class=\"peach-react\"></div></div>\n <section class=\"feednew\" data-feed-new aria-label=\"未入库的新作\" hidden></section>\n <div data-entity-body><div class=\"peach-react\"></div></div>";
- let f = [...d.content.childNodes], p = d.content.querySelector("[data-entity-hero]"), m = {
- filter: d.content.querySelector("[data-entity-filter]>.peach-react"),
- feed: d.content.querySelector("[data-feed-new]"),
- body: d.content.querySelector("[data-entity-body]>.peach-react")
- }, h = t.props(l, u, i), g = {
- ...h,
- hosts: m,
- card: Dut(e),
- resolvedEntity: o,
- actions: {
- ...h.actions,
- javContext: (e) => {
- ml({ entityJavLayout: !!e });
- }
- }
- };
- await fk(`/${c}/*`, g, {
- container: s,
- isCurrent: a,
- place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && Out() && (e.surfaceShown?.("entity", r), window.scrollTo({
- top: 0,
- behavior: "smooth"
- }));
-}
-function Aut({ target: e }) {
- let t = (0, S.useContext)(YP), n = JP(), r = IO();
- return e5(n, (n, i) => {
- let a = t?.entity;
- t && a && (async () => {
- let o = new URLSearchParams({ kind: e.kind });
- o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
- let s = await W.fetchQuery({
- queryKey: [
- "entity-route",
- e.kind,
- e.name
- ],
- queryFn: ({ signal: e }) => H(`/api/entity?${o}`, e),
- staleTime: 0
- }).catch(() => null);
- if (!i()) return;
- if (s?.redirect) {
- Ck(Wt(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
- replace: !0,
- state: Sk.navigation.location.state
- });
- return;
- }
- if (!s?.id || s.error) {
- a.missing(e.kind);
- return;
- }
- let c = String(s.canonical_name || e.name), l = Wt(e.kind, c, Number(s.id));
- l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && kut(t, a, {
- ...e,
- name: c
- }, r.pathname, r.search, i, s) : Ck(l + r.search + r.hash, {
- replace: !0,
- state: Sk.navigation.location.state
- });
- })();
- }, { shown: () => Out() && !$8()?.hidden }), null;
-}
-function jut() {
- let e = Tut(IO().pathname);
- return e ? /* @__PURE__ */ (0, C.jsx)(Aut, { target: e }, JSON.stringify([e.kind, e.name])) : null;
-}
-//#endregion
-//#region src/react/router/pages/catalog.tsx
-var Mut = () => al, t5 = Sk.navigation.seq, Nut = Sk.navigation.openEpoch, n5 = Sk.navigation.location.pathname, r5 = {
- seq: t5,
- claimed: !0,
- from: n5
-};
-Sk.listen((e) => {
- r5 = {
- seq: e.seq,
- claimed: e.openEpoch === Nut,
- from: n5
- }, Nut = e.openEpoch, n5 = e.location.pathname;
-});
-var i5 = !1;
-function Put(e) {
- let { seq: t, openEpoch: n, location: r } = Sk.navigation, i = JO(r.pathname), a = Tk() ?? r, o = G ?? {};
- return {
- seq: t,
- epoch: n,
- opens: al,
- covered: i,
- address: `${a.pathname}${a.search}`,
- filters: JSON.stringify(o, Object.keys(o).sort()),
- opened: e
- };
-}
-function Fut(e, t, n, r) {
- let i = { ...G };
- if (e === "/trash") return {
- ...i,
- creator: "",
- studio: "",
- tag: "",
- orient: "",
- state: "trash",
- q: ""
- };
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = xE().value;
- return {
- ...i,
- loc: a.get("loc") ?? r.defaultLoc(),
- creator: a.get("creator") || "",
- studio: a.get("studio") || "",
- owner: a.get("owner") === "none" ? "none" : "",
- tag: _n(a.get("tag")),
- tag_match: a.get("tag_match") === "any" ? "any" : "all",
- len: a.get("len") || "",
- dur_min: a.get("dur_min") || "",
- dur_max: a.get("dur_max") || "",
- orient: a.get("orient") || "",
- state: Bt[e] || a.get("state") || "",
- ...fE(a.get("sort"), a.get("dir"), o, s),
- seed: a.get("seed") || (n ? hn() : i.seed || hn()),
- q: a.get("q") || "",
- jav: a.get("jav") || "",
- performer: a.get("performer") || "",
- series: a.get("series") || "",
- browse: a.get("browse") === "folders" || a.get("folder") ? "folders" : "",
- folder: a.get("folder") || "",
- folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
- };
-}
-function Iut(e, t) {
- let n = { ...e }, r = Put(n.opened);
- Object.assign(e, r);
- let i = t.catalog;
- if (!i || r.opens === 0) return;
- if (r.covered) {
- Tk() || i.fill();
- return;
- }
- let a = !1;
- 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;
- i.load();
- return;
- }
- r.epoch !== n.epoch && (a = Sk.navigation.action === "POP" && r5.from !== "/");
- }
- let { pathname: o, search: s } = Sk.navigation.location;
- if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = lU(s);
- i5 = !0, Ck(uU(e, t), { replace: !0 });
- return;
- }
- let c = i5;
- i5 = !1, a &&= o === "/", e.opened = !0, ml({ state: Fut(o, s, a, i) }), i.open(o, {
- entering: a,
- retitle: c
- });
-}
-function Lut(e) {
- return Vt(e) || e === "/trash" || JO(e) || e === "/immerse" || !!Tut(e);
-}
-function Rut() {
- let e = (0, S.useContext)(YP), t = JP(), n = (0, S.useSyncExternalStore)(gl, Mut), r = IO(), i = (0, S.useRef)(null), a = (0, S.useRef)({
- mounted: !0,
- queued: !1
- });
- return (0, S.useEffect)(() => {
- let t = a.current;
- t.mounted = !0;
- let n = Put(!JO(Sk.navigation.location.pathname));
- return !n.covered && n.opens > 0 && (i5 || r5.seq === t5 ? n.opens = -1 : r5.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
- t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !Lut(Sk.navigation.location.pathname) && e.catalog.release();
- });
- };
- }, []), (0, S.useEffect)(() => {
- let t = a.current;
- !t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && Iut(i.current, e);
- }));
- }, [
- t,
- n,
- r,
- e
- ]), null;
-}
-function zut() {
- let { pathname: e, search: t } = IO();
- (0, S.useLayoutEffect)(() => {
- if (e !== "/wall") return;
- document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
- let t = Array.from(document.querySelectorAll("header.top,#drawer,#main,#catalogFilter,#count,#javLibraryHeader,#libraryProcessingNotice,#feedNew")), n = t.map((e) => e.inert);
- return t.forEach((e) => {
- e.inert = !0;
- }), () => {
- document.body.removeAttribute("data-wall-open"), t.forEach((e, t) => {
- e.inert = n[t] || !1;
- });
- };
- }, [e]);
- let n = (0, S.useContext)(YP), r = document.getElementById("javLibraryHeader"), i = Vt(e) && new URLSearchParams(t).get("jav") === "1";
- return (0, S.useLayoutEffect)(() => {
- if (r) return r.hidden = !i, () => {
- r.hidden = !0;
- };
- }, [r, i]), JO(e) && !Ohe(e) ? null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
- /* @__PURE__ */ (0, C.jsx)(Rut, {}, e === "/junk-files" ? "/junk-files" : "/"),
- Vt(e) ? /* @__PURE__ */ (0, C.jsx)(hxe, {}) : null,
- i && r && n ? (0, gt.createPortal)(/* @__PURE__ */ (0, C.jsx)(uMe, {
- navigate: n.navigate,
- receipt: (e) => n.receipt(e)
- }), r) : null
- ] });
-}
-//#endregion
-//#region src/react/router/pages/follow.tsx
-var a5 = () => document.getElementById("stats"), But = () => dl;
-function Vut(e) {
- let t = document.createElement("div");
- return t.className = "peach-react", Ko(e, () => {
- e.textContent = "", e.append(t);
- }), t;
-}
-async function Hut(e, t) {
- let n = a5(), r = e.follow;
- if (!n || !r || r.refresh()) return;
- let i = ul;
- e.surfaceChanged("follow", "/follow"), pK(n, r.skeleton()), await fk("/follow", r.props(), {
- container: n,
- isCurrent: t,
- place: Vut
- }), t() && window.scrollTo(i ? {
- top: i,
- behavior: "instant"
- } : {
- top: 0,
- behavior: "smooth"
- });
-}
-function Uut() {
- let e = a5(), t = e ? ck(e) : null;
- return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
-}
-function Wut() {
- let e = (0, S.useContext)(YP);
- return e5(JP(), (t, n) => {
- e && Hut(e, n);
- }, {
- shown: Uut,
- onCovered: () => {
- Sk.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
- }
- }), null;
-}
-function Gut(e) {
- let t = e ? ck(e) : null;
- return !!t && t.path === "/playlists" && t.host.isConnected;
-}
-async function Kut(e, t) {
- let n = a5();
- n && (e.surfaceChanged("playlists", "/playlists"), pK(n, dK("/playlists", {
- followLayout: "",
- followSort: "",
- followDir: ""
- })), await fk("/playlists", { revision: dl }, {
- container: n,
- isCurrent: t
- }), t() && window.scrollTo({
- top: 0,
- behavior: "smooth"
- }));
-}
-function qut() {
- let e = (0, S.useContext)(YP), t = (0, S.useSyncExternalStore)(gl, But), n = (0, S.useRef)(t);
- return (0, S.useEffect)(() => {
- if (n.current === t) return;
- n.current = t;
- let e = a5();
- Gut(e) && pk(e, { revision: t });
- }, [t]), e5(JP(), (t, n) => {
- e && Kut(e, n);
- }, { shown: () => {
- let e = a5();
- return Gut(e) && !e.hidden;
- } }), null;
-}
-//#endregion
-//#region src/react/router/pages/immerse.tsx
-function Jut() {
- let e = new URLSearchParams(Sk.navigation.location.search).get("id");
- return /^\d+$/.test(e || "") ? Number(e) : void 0;
-}
-function Yut() {
- let e = (0, S.useContext)(YP);
- return KP(() => {
- e?.openImmerse(Jut());
- }, !0), null;
-}
-function Xut() {
- return /* @__PURE__ */ (0, C.jsx)(Yut, {}, JP());
-}
-//#endregion
-//#region src/react/router/pages/managed.tsx
-var Zut = [
- "list",
- "add",
- "feeds"
-], Qut = () => al > 0, $ut = () => (0, S.useSyncExternalStore)(gl, Qut), o5 = !1, edt = () => xE().value.followLayout === "table" ? "table" : "default", s5 = () => new URLSearchParams(window.location.search);
-function tdt(e) {
- let t = s5();
- return dK(e, {
- followLayout: edt(),
- followSort: t.get("sort") || "",
- followDir: t.get("dir") || ""
- });
-}
-function c5(e) {
- return It("/healthz", { signal: e.controller.signal }).catch((e) => {
- if (Lt(e)) return null;
- throw e;
- });
-}
-function ndt(e, t) {
- return {
- readOnly: !!e?.ledger_read_only,
- readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
- writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
- };
-}
-async function rdt(e, t) {
- if (e === "/jav") {
- let e = await c5(t);
- return t.live ? {
- tab: _U(s5().get("tab")),
- readOnly: !!e?.ledger_read_only
- } : null;
- }
- if (e === "/stats") return { configurable: !!rl };
- if (e === "/taste") {
- let e = il;
- return ml({ cameFromSetup: !1 }), { onboarding: e };
- }
- if (e.startsWith("/settings/")) {
- window.location.hash === "#peachProxy" && ml({ configurationRequestedSection: "网络与访问" });
- let t = s5().get("section") || nl || whe(e);
- return t ? { section: t } : {};
- }
- if (e === "/review") {
- let e = s5().get("category") || "", n = await c5(t);
- return t.live ? {
- category: YR(e) ? e : "",
- ...ndt(n, "/review")
- } : null;
- }
- if (e === "/subscriptions") {
- let e = s5(), n = e.get("tab") || "", r = {
- tab: Zut.includes(n) ? n : "list",
- page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
- sort: e.get("sort") || "",
- dir: e.get("dir") || ""
- }, i = await c5(t);
- if (!t.live) return null;
- let a = xE().value;
- return {
- ...r,
- pageSize: Number(a.followPageSize) || 20,
- layout: edt(),
- ...ndt(i, "/subscriptions")
- };
- }
- return {};
-}
-var l5 = () => {
- window.scrollTo({
- top: 0,
- behavior: "smooth"
- });
-}, u5 = (e) => {
- document.getElementById(e)?.scrollIntoView({ block: "start" });
-}, idt = /* @__PURE__ */ new Set(["/stats", "/taste"]), adt = /* @__PURE__ */ new Set([
- "/review",
- "/quality-goals",
- "/tasks",
- "/subscriptions"
-]);
-async function odt(e, t, n) {
- if (e === "/jav" && _U(s5().get("tab")) === "library") {
- Sk.replace(Pje(window.location.search));
- return;
- }
- if (e === "/subscriptions" && s5().get("tab") === "wants") {
- Ck("/jav?tab=wants", { replace: !0 });
- return;
- }
- if (e === "/subscriptions" && s5().get("tab") === "source") {
- Ck("/settings/subscriptions", { replace: !0 });
- return;
- }
- let r = document.getElementById("stats");
- if (!r) return;
- e === "/jav" && window.scrollTo({
- top: 0,
- behavior: "instant"
- }), t.surfaceChanged("management", e), e === "/taste" && (ml({ state: {
- ...G,
- creator: "",
- studio: "",
- tag: "",
- tag_match: "all",
- len: "",
- dur_min: "",
- dur_max: "",
- orient: "",
- region: "",
- state: "",
- q: "",
- jav: ""
- } }), t.clearSearch());
- let i = e === "/data-cleanup" && o5;
- i && (o5 = !1), pK(r, tdt(e));
- let a = await rdt(e, n);
- if (!a) return;
- let o = await fk(e, a, {
- container: r,
- isCurrent: () => n.live
- });
- if (o && (n.revision = ck(r)?.revision ?? 0), e.startsWith("/settings/") && o && ml({ configurationRequestedSection: "" }), idt.has(e) && l5(), n.live) {
- let { hash: t } = window.location;
- adt.has(e) && l5(), e === "/settings/library" && (t === "#libraryProcessing" ? queueMicrotask(() => {
- n.live && Ck("/data-cleanup#libraryProcessing", {
- replace: !0,
- state: null
- });
- }) : t === "#peachProxy" ? u5("peachProxy") : l5()), e === "/data-cleanup" && t === "#libraryProcessing" && u5("libraryProcessing");
- }
- i && u5("resource-sync");
-}
-function d5({ path: e }) {
- let t = JP();
- IO();
- let n = JO(Sk.navigation.location.pathname), r = (0, S.useRef)(n ? null : t), i = (0, S.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, C.jsx)(sdt, {
- path: e,
- covered: r.current === null
- }, `${a} ${r.current ?? "covered"}`);
-}
-function sdt({ path: e, covered: t }) {
- let n = (0, S.useContext)(YP), r = $ut(), i = (0, S.useRef)(null);
- return (0, S.useEffect)(() => {
- e.startsWith("/settings/") && pk(document.getElementById("stats"), { section: whe(e) });
- }, [e]), (0, S.useEffect)(() => {
- if (t || !n || !r || i.current) return;
- let a = {
- live: !0,
- revision: 0,
- controller: new AbortController()
- };
- i.current = a, queueMicrotask(() => {
- a.live && odt(e, n, a);
- });
- }, [r]), (0, S.useEffect)(() => () => {
- let e = i.current;
- if (!e) return;
- e.live = !1, e.controller.abort();
- let t = document.getElementById("stats");
- queueMicrotask(() => {
- t && e.revision && !t.hidden && ck(t)?.revision === e.revision && mk(t);
- });
- }, []), null;
-}
-function cdt() {
- let e = $ut(), t = (0, S.useRef)(!1);
- return (0, S.useEffect)(() => {
- if (!e || t.current || JO(Sk.navigation.location.pathname)) return;
- t.current = !0;
- let n = !0;
- return queueMicrotask(() => {
- n && (o5 = !0, Ck("/data-cleanup#resource-sync", { replace: !0 }));
- }), () => {
- n = !1;
- };
- }, [e]), null;
-}
-//#endregion
-//#region src/react/router/managed-routes.tsx
-function ldt(e, t, n) {
- if (e === "duplicates") {
- n("/duplicates");
- return;
- }
- let r = t.managePath(e);
- m5(r) ? n(r) : t.openManage(e);
-}
-var f5 = (e) => ({
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: e }),
- prefetch: (e, t) => ONe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(JPe, {
- receipt: (e) => t.receipt(e),
- reopenTutorial: t.reopenTutorial,
- section: e.section ?? ""
- })
-}), p5 = {
- "/jav": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/jav" }),
- prefetch: (e, t) => lMe(e.tab, t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(mMe, {
- ...e,
- navigate: t.navigate,
- receipt: (e) => t.receipt(e)
- })
- },
- "/stats": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/stats" }),
- prefetch: (e, t) => XLe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(Xst, {
- tagLabel: kc,
- onTag: t.openTag,
- configurable: e.configurable,
- openMediaSettings: () => {
- t.requestConfigurationSection("媒体库与入库"), n("/settings/library");
- }
- })
- },
- "/taste": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/taste" }),
- prefetch: (e, t) => kct("all", t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(aut, {
- onSignal: t.openTasteSignal,
- navigate: n,
- toast: (e) => t.receipt(e),
- onboarding: e.onboarding
- })
- },
- "/review": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/review" }),
- prefetch: (e, t) => GTe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(ZMe, {
- ...e,
- route: t.routeReview,
- openItem: t.openItem,
- openEntity: t.openEntity,
- revealSource: t.revealSource,
- toast: (e) => t.receipt(e)
- })
- },
- "/data-cleanup": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/data-cleanup" }),
- prefetch: (e, t) => kEe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(PDe, {
- failure: t.failure,
- open: (e) => ldt(e, t, n),
- toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
- })
- },
- "/duplicates": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/duplicates" }),
- prefetch: (e, t) => gTe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(uAe, {
- openItem: t.openItem,
- failure: t.failure,
- toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
- })
- },
- "/quality-goals": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/quality-goals" }),
- prefetch: (e, t) => ETe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(PMe, {
- openItem: t.openItem,
- javTitleHtml: Dk,
- javDisplayName: Ek,
- toast: (e) => t.receipt(e),
- srcBadge: t.srcBadge
- })
- },
- "/sources": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/sources" }),
- prefetch: (e, t) => iNe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(vNe, { toast: (e) => t.toast(e) })
- },
- "/settings/library": f5("/settings/library"),
- "/settings/subscriptions": f5("/settings/subscriptions"),
- "/settings/downloads": f5("/settings/downloads"),
- "/settings/network": f5("/settings/network"),
- "/settings/maintenance": f5("/settings/maintenance"),
- "/diagnostics": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/diagnostics" }),
- prefetch: (e, t) => dAe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(hAe, {
- navigate: n,
- openItem: t.openItem,
- receipt: (e) => t.receipt(e),
- configure: (e) => {
- t.requestConfigurationSection(e), n(GO(e));
- }
- })
- },
- "/tasks": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/tasks" }),
- prefetch: (e, t) => nve(t),
- page: () => /* @__PURE__ */ (0, C.jsx)(Cve, {})
- },
- "/subscriptions": {
- element: /* @__PURE__ */ (0, C.jsx)(d5, { path: "/subscriptions" }),
- prefetch: (e, t) => Hr(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(ZAe, {
- ...e,
- route: t.routeFollowManage,
- savePreference: t.saveFollowPreference,
- toast: (e) => t.receipt(e),
- openFollow: t.openFollow,
- openServiceConfiguration: () => t.navigate("/settings/subscriptions")
- })
- }
-}, m5 = (e) => Object.hasOwn(p5, e), udt = { "/resource-sync": { element: /* @__PURE__ */ (0, C.jsx)(cdt, {}) } }, ddt = { "/immerse": { element: /* @__PURE__ */ (0, C.jsx)(Xut, {}) } }, h5 = {
- "/playlists": {
- element: /* @__PURE__ */ (0, C.jsx)(qut, {}),
- prefetch: (e, t) => bMe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(MMe, {
- revision: e.revision,
- openPlaylist: t.openPlaylist,
- openEntity: t.openEntity,
- canFlip: t.canFlip,
- toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
- })
- },
- "/follow": {
- element: /* @__PURE__ */ (0, C.jsx)(Wut, {}),
- prefetch: (e, t) => ui(e, t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(IOe, { ...e })
- }
-}, fdt = (e) => Object.hasOwn(h5, e), g5 = {
- element: /* @__PURE__ */ (0, C.jsx)(wut, {}),
- prefetch: (e, t) => tOe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(pje, {
- ...e,
- route: t.routeIndex,
- savePreference: t.savePeopleLayout,
- exitSelectMode: t.exitSelectMode,
- personAvatar: t.personAvatar,
- authorAvatar: t.authorAvatar,
- tagLabel: kc,
- openEntity: t.openEntity,
- showTags: t.showIndexTags,
- openFollowAuthor: t.openFollowAuthor,
- openFollowTag: t.openFollowTag
- })
-}, _5 = {
- "/performers": g5,
- "/creators": g5,
- "/studios": g5,
- "/agencies": g5,
- "/tags": g5
-}, v5 = {
- element: /* @__PURE__ */ (0, C.jsx)(jut, {}),
- prefetch: (e) => UDe(e),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(eAe, { ...e })
-}, y5 = {
- "/performers/*": v5,
- "/studios/*": v5,
- "/creators/*": v5,
- "/series/*": v5,
- "/agencies/*": v5,
- "/tags/*": v5
-}, b5 = {
- "/": {
- element: /* @__PURE__ */ (0, C.jsx)(zut, {}),
- prefetch: (e, t) => Hde(e, t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(DR, { ...e })
- },
- "/junk-files": {
- element: /* @__PURE__ */ (0, C.jsx)(zut, {}),
- prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(Oje, { ...e })
- }
-}, pdt = (e) => Object.hasOwn(b5, e), mdt = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(vMe, { ...e }) : /* @__PURE__ */ (0, C.jsx)(hB, { ...e }), hdt = {
- "catalog-filter": {
- prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(Pxe, { ...e })
- },
- "feed-new": {
- prefetch: (e) => zDe(e),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(gAe, { ...e })
- },
- "library-processing": {
- prefetch: (e, t) => wI(t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(mdt, { ...e })
- },
- search: {
- prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(CNe, { ...e })
- }
-}, gdt = (e) => Object.hasOwn(hdt, e), _dt = {
- "batch-dock": {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(cle, {})
- },
- "glow-picker": {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(wue, {})
- },
- "manage-header": {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(Bpe, {})
- },
- immerse: {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(Epe, {})
- },
- "settings-panel": {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(mFe, {})
- },
- sidebar: {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(OFe, {})
- },
- stage: {
- prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(JLe, {})
- }
-}, vdt = (e) => Object.hasOwn(_dt, e), ydt = [
- "/",
- "/wall",
- "/unseen",
- "/watch-later",
- "/flagged",
- "/trash",
- "/junk-files"
-];
-[
- ...Object.keys(p5),
- ...Object.keys(h5),
- ...Object.keys(_5),
- ...Object.keys(y5),
- ...ydt
-];
-var bdt = (e) => m5(e) || fdt(e) || Object.hasOwn(_5, e) || Object.hasOwn(y5, e) || pdt(e) || gdt(e) || vdt(e);
-function xdt(e) {
- return m5(e) ? p5[e] : fdt(e) ? h5[e] : pdt(e) ? b5[e] : gdt(e) ? hdt[e] : vdt(e) ? _dt[e] : Object.hasOwn(_5, e) ? _5[e] : y5[e];
-}
-function Sdt(e, t, n) {
- return bdt(e) ? xdt(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
-}
-function Cdt(e, t, n, r) {
- return xdt(e).page(t, n, r);
-}
-//#endregion
-//#region node_modules/sonner/dist/index.mjs
-function wdt(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 Tdt = (e) => {
- switch (e) {
- case "success": return Odt;
- case "info": return Adt;
- case "warning": return kdt;
- case "error": return jdt;
- default: return null;
- }
-}, Edt = Array(12).fill(0), Ddt = ({ visible: e, className: t }) => /*#__PURE__*/ S.createElement("div", {
- className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
- "data-visible": e
-}, /*#__PURE__*/ S.createElement("div", { className: "sonner-spinner" }, Edt.map((e, t) => /*#__PURE__*/ S.createElement("div", {
- className: "sonner-loading-bar",
- key: `spinner-bar-${t}`
-})))), Odt = /*#__PURE__*/ S.createElement("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 20 20",
- fill: "currentColor",
- height: "20",
- width: "20",
- "aria-hidden": "true"
-}, /*#__PURE__*/ S.createElement("path", {
- 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"
-})), kdt = /*#__PURE__*/ S.createElement("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24",
- fill: "currentColor",
- height: "20",
- width: "20",
- "aria-hidden": "true"
-}, /*#__PURE__*/ S.createElement("path", {
- 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"
-})), Adt = /*#__PURE__*/ S.createElement("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 20 20",
- fill: "currentColor",
- height: "20",
- width: "20",
- "aria-hidden": "true"
-}, /*#__PURE__*/ S.createElement("path", {
- 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"
-})), jdt = /*#__PURE__*/ S.createElement("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 20 20",
- fill: "currentColor",
- height: "20",
- width: "20",
- "aria-hidden": "true"
-}, /*#__PURE__*/ S.createElement("path", {
- 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"
-})), Mdt = /*#__PURE__*/ S.createElement("svg", {
- xmlns: "http://www.w3.org/2000/svg",
- width: "12",
- height: "12",
- viewBox: "0 0 24 24",
- fill: "none",
- stroke: "currentColor",
- strokeWidth: "1.5",
- strokeLinecap: "round",
- strokeLinejoin: "round",
- "aria-hidden": "true"
-}, /*#__PURE__*/ S.createElement("line", {
- x1: "18",
- y1: "6",
- x2: "6",
- y2: "18"
-}), /*#__PURE__*/ S.createElement("line", {
- x1: "6",
- y1: "6",
- x2: "18",
- y2: "18"
-})), Ndt = () => {
- let [e, t] = S.useState(document.hidden);
- return S.useEffect(() => {
- let e = () => {
- t(document.hidden);
- };
- return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
- }, []), e;
-}, Pdt = 1, Fdt = 100, Idt = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : Pdt++, x5 = new class {
- constructor() {
- this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
- let t = this.subscribers.indexOf(e);
- this.subscribers.splice(t, 1);
- }), this.publish = (e) => {
- this.subscribers.forEach((t) => t(e));
- }, this.addToast = (e) => {
- this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
- }, this.trimHistory = () => {
- let e = this.toasts.length - Fdt;
- 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 = Idt(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({
- ...n,
- ...e,
- id: r,
- title: t
- }), {
- ...n,
- ...e,
- id: r,
- dismissible: o,
- title: t
- }) : n) : this.addToast({
- title: t,
- ...n,
- dismissible: o,
- id: r
- }), r;
- }, this.dismiss = (e) => {
- if (e == null) return this.getActiveToasts().forEach((e) => {
- this.dismissedToasts.add(e.id), this.subscribers.forEach((t) => t({
- id: e.id,
- dismiss: !0
- }));
- }), e;
- this.dismissedToasts.add(e);
- let t = this.pendingDismissals.get(e);
- return t !== void 0 && cancelAnimationFrame(t), this.pendingDismissals.set(e, requestAnimationFrame(() => {
- this.pendingDismissals.delete(e), this.subscribers.forEach((t) => t({
- id: e,
- dismiss: !0
- }));
- })), e;
- }, this.message = (e, t) => this.create({
- ...t,
- message: e,
- type: void 0
- }), this.error = (e, t) => this.create({
- ...t,
- message: e,
- type: "error"
- }), this.success = (e, t) => this.create({
- ...t,
- type: "success",
- message: e
- }), this.info = (e, t) => this.create({
- ...t,
- type: "info",
- message: e
- }), this.warning = (e, t) => this.create({
- ...t,
- type: "warning",
- message: e
- }), this.loading = (e, t) => this.create({
- ...t,
- type: "loading",
- message: e
- }), this.promise = (e, t) => {
- if (!t) return;
- let n;
- t.loading !== void 0 && (n = this.create({
- ...t,
- promise: e,
- type: "loading",
- message: t.loading,
- description: typeof t.description == "function" ? void 0 : t.description
- }));
- let r = Promise.resolve(e instanceof Function ? e() : e), i = n !== void 0, a, o = r.then(async (e) => {
- if (a = ["resolve", e], S.isValidElement(e)) i = !1, this.create({
- id: n,
- type: "default",
- message: e
- });
- else if (Rdt(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" && !S.isValidElement(r) ? r : { message: r };
- this.create({
- id: n,
- type: "error",
- description: a,
- ...o
- });
- } else if (e instanceof Error) {
- i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
- this.create({
- id: n,
- type: "error",
- description: a,
- ...o
- });
- } else if (t.success !== void 0) {
- i = !1;
- let r = typeof t.success == "function" ? await t.success(e) : t.success, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
- this.create({
- id: n,
- type: "success",
- description: a,
- ...o
- });
- }
- }).catch(async (e) => {
- if (a = ["reject", e], t.error !== void 0) {
- i = !1;
- let r = typeof t.error == "function" ? await t.error(e) : t.error, a = typeof t.description == "function" ? await t.description(e) : t.description, o = typeof r == "object" && !S.isValidElement(r) ? r : { message: r };
- this.create({
- id: n,
- type: "error",
- description: a,
- ...o
- });
- }
- }).finally(() => {
- i && (this.dismiss(n), n = void 0), t.finally == null || t.finally.call(t);
- }), 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 = Idt(t);
- return this.create({
- ...t,
- jsx: e(n),
- id: n,
- type: void 0
- }), 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();
- }
-}(), Ldt = (e, t) => x5.message(e, t), Rdt = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", zdt = Object.assign(Ldt, {
- success: x5.success,
- info: x5.info,
- warning: x5.warning,
- error: x5.error,
- custom: x5.custom,
- message: x5.message,
- promise: x5.promise,
- dismiss: x5.dismiss,
- loading: x5.loading
-}, {
- getHistory: () => x5.toasts,
- getToasts: () => x5.getActiveToasts()
-});
-wdt("[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 S5(e) {
- return e.label !== void 0;
+ scope: n.get("scope") === "online" ? "online" : "local",
+ view: n.get("view") === "cloud" ? "cloud" : "alphabet",
+ category: n.get("category") || "all"
+ };
}
-var Bdt = 3, Vdt = "24px", Hdt = "16px", Udt = 4e3, Wdt = 356, Gdt = 14, Kdt = 45, qdt = 200;
-function C5(...e) {
- return e.filter(Boolean).join(" ");
+var n5 = (e, t, n) => Fo(e.map(([e, t, n]) => ({
+ value: e,
+ label: t,
+ symbol: n
+})), {
+ active: t,
+ label: n,
+ className: "indextabs"
+}), Odt = (e) => `<div class="board-filter-frame" data-filter-frame>
+ <div class="tagbar" data-filter-row="top" data-skeleton-tier="pill" aria-label="标签类型"></div>
+ <div class="count" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span>
+ ${js("tag-view", "标签视图", Tdt, e)}</div></div>`;
+function kdt({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = t5[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies", l = s ? js("people-layout", o + "索引版式", c ? xdt : bdt, 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}
+ ${yo()}
+ <div data-index-search class="ml-auto min-w-35 max-w-80 flex-1 max-board-narrow:order-1 max-board-narrow:basis-40">${bo("", t, "过滤" + o)}</div>
+ </div>
+ ${e === "tags" ? n5(Cdt, n, "词表") : e === "performers" || e === "creators" ? n5(wdt, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? n5(Sdt, e, "公司类型") : ""}
+ ${e === "tags" ? Odt(r) : ""}
- ${e === "performers" && n !== "online" ? VOe(i) : ""}
++ ${e === "performers" && n !== "online" ? LOe(i) : ""}
+ ${Yo({
+ kind: e,
+ layout: a,
+ mode: r
+ })}`;
}
-function Jdt(e) {
- let [t, n] = e.split("-"), r = [];
- return t && r.push(t), n && r.push(n), r;
+var Adt = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function jdt(e, t, n) {
+ let r = kdt(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== Adt(r) && (e.innerHTML = r, ns(e));
}
-var Ydt = (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: C, classNames: w, icons: T, closeButtonAriaLabel: E = "Close toast" } = e, [D, O] = S.useState(null), [k, A] = S.useState(null), [j, M] = S.useState(!1), [N, P] = S.useState(!1), [F, I] = S.useState(!1), [ee, L] = S.useState(!1), [te, ne] = S.useState(!1), [re, ie] = S.useState(0), [ae, oe] = S.useState(0), se = S.useRef(n.duration || y || Udt), ce = S.useRef(null), le = S.useRef(null), ue = c === 0, de = c + 1 <= o, fe = n.type, pe = fe ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = S.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = S.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = S.useMemo(() => n.duration || y || Udt, [n.duration, y]), be = S.useRef(0), xe = S.useRef(0), Se = S.useRef(0), Ce = S.useRef(null), [we, Te] = b.split("-"), Ee = S.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), De = Ndt(), Oe = S.useMemo(() => e.swipeDirections ?? Jdt(b), [e.swipeDirections, b]), ke = n.invert || t, Ae = fe === "loading";
- xe.current = S.useMemo(() => _e * x + Ee, [_e, Ee]), S.useEffect(() => {
- se.current = ye;
- }, [ye]), S.useEffect(() => {
- M(!0);
- }, []), S.useEffect(() => {
- let e = le.current;
- if (e) {
- let t = e.getBoundingClientRect().height;
- return oe(t), a((e) => [{
- toastId: n.id,
- height: t,
- position: n.position
- }, ...e]), () => a((e) => e.filter((e) => e.toastId !== n.id));
- }
- }, [a, n.id]), S.useLayoutEffect(() => {
- if (!j) return;
- let e = le.current, t = e.style.height;
- e.style.height = "auto";
- let r = e.getBoundingClientRect().height;
- e.style.height = t, oe(r), a((e) => e.find((e) => e.toastId === n.id) ? e.map((e) => e.toastId === n.id ? {
- ...e,
- height: r
- } : e) : [{
- toastId: n.id,
- height: r,
- position: n.position
- }, ...e]);
- }, [
- j,
- n.title,
- n.description,
- a,
- n.id,
- n.jsx,
- n.action,
- n.cancel
- ]);
- let je = S.useCallback(() => {
- P(!0), ie(xe.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
- d(n);
- }, qdt);
- }, [
- n,
- d,
- a,
- xe
- ]);
- S.useEffect(() => {
- if (n.promise && fe === "loading" || n.duration === Infinity || n.type === "loading") return;
- let e;
- return u || i || De ? (() => {
- if (Se.current < be.current) {
- let e = (/* @__PURE__ */ new Date()).getTime() - be.current;
- se.current -= e;
+//#endregion
+//#region src/react/router/pages/index-entity.tsx
+var Mdt = () => al, Ndt = () => Wc, r5 = () => document.getElementById("index");
+function i5(e, t, n = {}) {
+ let r = (0, S.useSyncExternalStore)(gl, Mdt);
- IO();
- let i = JO(Sk.navigation.location.pathname), a = (0, S.useRef)({
++ RO();
++ let i = XO(wk.navigation.location.pathname), a = (0, S.useRef)({
+ mounted: !0,
+ epoch: -1,
+ opens: -1,
+ run: 0,
+ opened: !1
+ }), o = (0, S.useRef)({
+ run: t,
+ options: n
+ });
+ (0, S.useLayoutEffect)(() => {
+ o.current = {
+ run: t,
+ options: n
+ };
+ }), (0, S.useEffect)(() => {
+ let e = a.current;
+ return e.mounted = !0, () => {
+ e.mounted = !1;
+ };
+ }, []), (0, S.useEffect)(() => {
+ r !== 0 && queueMicrotask(() => {
+ let t = a.current;
+ if (!t.mounted) return;
+ let n = t.epoch !== e || t.opens !== al, r = t.opens !== al;
- if (t.epoch = e, t.opens = al, JO(Sk.navigation.location.pathname)) {
++ if (t.epoch = e, t.opens = al, XO(wk.navigation.location.pathname)) {
+ n && o.current.options.onCovered?.();
+ return;
}
- Se.current = (/* @__PURE__ */ new Date()).getTime();
- })() : se.current !== Infinity && (be.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
- n.onAutoClose == null || n.onAutoClose.call(n, n), je();
- }, se.current)), () => clearTimeout(e);
- }, [
- u,
- i,
- n,
- fe,
- De,
- je
- ]), S.useEffect(() => {
- n.delete && (je(), n.onDismiss == null || n.onDismiss.call(n, n));
- }, [je, n.delete]);
- function Me() {
- return T?.loading ? /*#__PURE__*/ S.createElement("div", {
- className: C5(w?.loader, n?.classNames?.loader, "sonner-loader"),
- "data-visible": fe === "loading"
- }, T.loading) : /*#__PURE__*/ S.createElement(Ddt, {
- className: C5(w?.loader, n?.classNames?.loader),
- visible: fe === "loading"
+ if (!n) {
+ if (t.opened || o.current.options.shown?.()) {
+ t.opened = !0;
+ return;
+ }
+ r = !0;
+ }
+ t.opened = !0;
+ let i = ++t.run;
+ o.current.run(r, () => t.mounted && t.run === i);
});
+ }, [
+ e,
+ r,
+ i
+ ]);
+}
+async function Pdt(e, t, n, r) {
+ let i = r5();
+ if (!i) return;
+ let a = `/${t}`;
+ e.surfaceChanged("index", a);
- let o = Ddt(t, n), s = Edt(xE().value.peopleLayout);
- jdt(i, o, s), await fk(a, {
++ let o = Ddt(t, n), s = Edt(CE().value.peopleLayout);
++ jdt(i, o, s), await mk(a, {
+ ...o,
+ layout: s,
+ selectMode: Wc,
+ configurable: !!e.configurable?.()
+ }, {
+ container: i,
+ isCurrent: r
+ }) && r() && e.surfaceShown?.("index", a);
+}
+function Fdt(e) {
- let t = r5(), n = t ? ck(t) : null;
++ let t = r5(), n = t ? uk(t) : null;
+ return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
+}
+function Idt({ epoch: e }) {
- let t = (0, S.useContext)(jF), n = IO(), r = n.pathname.split("/").filter(Boolean)[0];
++ let t = (0, S.useContext)(PF), n = RO(), r = n.pathname.split("/").filter(Boolean)[0];
+ return i5(e, (e, i) => {
+ t && Pdt(t, r, n.search, i);
+ }, { shown: () => Fdt(`/${r}`) }), null;
+}
+function Ldt() {
- let e = AF(), t = (0, S.useSyncExternalStore)(gl, Ndt), n = (0, S.useRef)(t);
++ let e = NF(), t = (0, S.useSyncExternalStore)(gl, Ndt), n = (0, S.useRef)(t);
+ return (0, S.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && pk(r5(), { selectMode: t }));
++ n.current !== t && (n.current = t, window.location.pathname === "/tags" && hk(r5(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, C.jsx)(Idt, { epoch: e }, e);
+}
+function Rdt(e) {
+ let t;
+ try {
+ t = decodeURIComponent(e);
+ } catch {
+ return null;
}
- let Ne = n.icon || T?.[fe] || Tdt(fe);
- return /*#__PURE__*/ S.createElement("li", {
- tabIndex: 0,
- ref: le,
- className: C5(_, he, w?.toast, n?.classNames?.toast, w?.[pe], n?.classNames?.[pe]),
- "data-sonner-toast": "",
- "data-rich-colors": n.richColors ?? f,
- "data-styled": !(n.jsx || n.unstyled || r),
- "data-mounted": j,
- "data-promise": !!n.promise,
- "data-swiped": te,
- "data-removed": N,
- "data-visible": de,
- "data-y-position": we,
- "data-x-position": Te,
- "data-index": c,
- "data-front": ue,
- "data-swiping": F,
- "data-dismissible": me,
- "data-type": fe,
- "data-invert": ke,
- "data-swipe-out": ee,
- "data-swipe-direction": k,
- "data-expanded": !!(u || C && j),
- "data-testid": n.testId,
- style: {
- "--index": c,
- "--toasts-before": c,
- "--z-index": l.length - c,
- "--offset": `${N ? re : xe.current}px`,
- "--initial-height": C ? "auto" : `${ae}px`,
- ...m,
- ...n.style
- },
- onDragEnd: () => {
- I(!1), O(null), Ce.current = null;
- },
- onPointerDown: (e) => {
- e.button !== 2 && !Ae && me && (ce.current = /* @__PURE__ */ new Date(), ie(xe.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (I(!0), Ce.current = {
- x: e.clientX,
- y: e.clientY
- }));
- },
- onPointerUp: () => {
- if (ee || !me) return;
- Ce.current = null;
- let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = D === "x" ? e : t, a = Math.abs(i) / r;
- if ((D === "x" ? Oe.includes(e > 0 ? "right" : "left") : Oe.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= Kdt || a > .11)) ie(xe.current), n.onDismiss == null || n.onDismiss.call(n, n), A(D === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), je(), L(!0);
- else {
- var o, s;
- (o = le.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = le.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), ne(!1), I(!1), O(null);
- }
+ let [n = "", ...r] = t.split("/").filter(Boolean), i = Object.hasOwn(Ht, n) ? Ht[n] : void 0, a = r.join("/");
+ return i && a ? {
+ segment: n,
+ kind: i,
+ name: a
+ } : null;
+}
+var zdt = /* @__PURE__ */ new WeakMap();
+function Bdt(e) {
+ let t = zdt.get(e);
+ return t || (t = {
+ helpers: {
+ ...e.grid.helpers,
+ personAvatar: e.personAvatar
},
- onPointerMove: (e) => {
- var t, n;
- if (!Ce.current || !me || window.getSelection()?.toString().length > 0) return;
- let r = e.clientY - Ce.current.y, i = e.clientX - Ce.current.x;
- !D && (Math.abs(i) > 1 || Math.abs(r) > 1) && O(Math.abs(i) > Math.abs(r) ? "x" : "y");
- let a = {
- x: 0,
- y: 0
- }, o = (e) => 1 / (1.5 + Math.abs(e) / 20);
- if (D === "y") {
- if (Oe.includes("top") || Oe.includes("bottom")) {
- if (Oe.includes("top") && r < 0 || Oe.includes("bottom") && r > 0) a.y = r;
- else {
- let e = r * o(r);
- a.y = Math.abs(e) < Math.abs(r) ? e : r;
- }
- }
- } else if (D === "x" && (Oe.includes("left") || Oe.includes("right"))) {
- if (Oe.includes("left") && i < 0 || Oe.includes("right") && i > 0) a.x = i;
- else {
- let e = i * o(i);
- a.x = Math.abs(e) < Math.abs(i) ? e : i;
- }
+ actions: {
+ ...e.grid.actions,
+ revealSource: e.revealSource
+ }
+ }, zdt.set(e, t)), t;
+}
+function Vdt() {
- let e = r5(), t = e ? ck(e) : null;
++ let e = r5(), t = e ? uk(e) : null;
+ return !!t && t.path.endsWith("/*") && t.host.isConnected;
+}
+async function Hdt(e, t, n, r, i, a, o) {
+ let s = r5();
+ if (!s) return;
+ let { segment: c, kind: l, name: u } = n;
+ if (e.surfaceChanged("entity", r), await t.loading(l, u, a), !a()) return;
+ ml({ entityJavLayout: !1 });
+ let d = document.createElement("template");
+ d.innerHTML = "<div data-entity-hero><div class=\"peach-react\"></div></div>\n <div data-entity-filter><div class=\"peach-react\"></div></div>\n <section class=\"feednew\" data-feed-new aria-label=\"未入库的新作\" hidden></section>\n <div data-entity-body><div class=\"peach-react\"></div></div>";
+ let f = [...d.content.childNodes], p = d.content.querySelector("[data-entity-hero]"), m = {
+ filter: d.content.querySelector("[data-entity-filter]>.peach-react"),
+ feed: d.content.querySelector("[data-feed-new]"),
+ body: d.content.querySelector("[data-entity-body]>.peach-react")
+ }, h = t.props(l, u, i), g = {
+ ...h,
+ hosts: m,
+ card: Bdt(e),
+ resolvedEntity: o,
+ actions: {
+ ...h.actions,
+ javContext: (e) => {
+ ml({ entityJavLayout: !!e });
}
- (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && ne(!0), (t = le.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = le.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
}
- }, ve && !n.jsx && fe !== "loading" ? /*#__PURE__*/ S.createElement("button", {
- "aria-label": E,
- "data-disabled": Ae,
- "data-close-button": !0,
- onClick: Ae || !me ? () => {} : () => {
- je(), n.onDismiss == null || n.onDismiss.call(n, n);
- },
- className: C5(w?.closeButton, n?.classNames?.closeButton)
- }, T?.close ?? Mdt) : null, (fe || n.icon || n.promise) && n.icon !== null && (T?.[fe] !== null || n.icon) ? /*#__PURE__*/ S.createElement("div", {
- "data-icon": "",
- className: C5(w?.icon, n?.classNames?.icon)
- }, fe === "loading" ? n.icon || Me() : n.promise ? Me() : null, fe === "loading" ? null : Ne) : null, /*#__PURE__*/ S.createElement("div", {
- "data-content": "",
- className: C5(w?.content, n?.classNames?.content)
- }, /*#__PURE__*/ S.createElement("div", {
- "data-title": "",
- className: C5(w?.title, n?.classNames?.title)
- }, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ S.createElement("div", {
- "data-description": "",
- className: C5(v, ge, w?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ S.isValidElement(n.cancel) ? n.cancel : n.cancel && S5(n.cancel) ? /*#__PURE__*/ S.createElement("button", {
- "data-button": !0,
- "data-cancel": !0,
- style: n.cancelButtonStyle || h,
- onClick: (e) => {
- S5(n.cancel) && me && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), je());
- },
- className: C5(w?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ S.isValidElement(n.action) ? n.action : n.action && S5(n.action) ? /*#__PURE__*/ S.createElement("button", {
- "data-button": !0,
- "data-action": !0,
- style: n.actionButtonStyle || g,
- onClick: (e) => {
- S5(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && je());
- },
- className: C5(w?.actionButton, n?.classNames?.actionButton)
- }, n.action.label) : null);
+ };
- await fk(`/${c}/*`, g, {
++ await mk(`/${c}/*`, g, {
+ container: s,
+ isCurrent: a,
+ place: (e) => (e.replaceChildren(...f), p.firstElementChild)
+ }) && a() && Vdt() && (e.surfaceShown?.("entity", r), window.scrollTo({
+ top: 0,
+ behavior: "smooth"
+ }));
+}
+function Udt({ target: e }) {
- let t = (0, S.useContext)(jF), n = AF(), r = IO();
++ let t = (0, S.useContext)(PF), n = NF(), r = RO();
+ return i5(n, (n, i) => {
+ let a = t?.entity;
+ t && a && (async () => {
+ let o = new URLSearchParams({ kind: e.kind });
+ o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
+ let s = await U.fetchQuery({
+ queryKey: [
+ "entity-route",
+ e.kind,
+ e.name
+ ],
+ queryFn: ({ signal: e }) => yn(`/api/entity?${o}`, e),
+ staleTime: 0
+ }).catch(() => null);
+ if (!i()) return;
+ if (s?.redirect) {
- Ck(Ut(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
++ Tk(Ut(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ replace: !0,
- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
+ });
+ return;
+ }
+ if (!s?.id || s.error) {
+ a.missing(e.kind);
+ return;
+ }
+ let c = String(s.canonical_name || e.name), l = Ut(e.kind, c, Number(s.id));
+ l === r.pathname ? (n || !a.refresh(e.kind, c, r.search)) && Hdt(t, a, {
+ ...e,
+ name: c
- }, r.pathname, r.search, i, s) : Ck(l + r.search + r.hash, {
++ }, r.pathname, r.search, i, s) : Tk(l + r.search + r.hash, {
+ replace: !0,
- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
+ });
+ })();
+ }, { shown: () => Vdt() && !r5()?.hidden }), null;
+}
+function Wdt() {
- let e = Rdt(IO().pathname);
++ let e = Rdt(RO().pathname);
+ return e ? /* @__PURE__ */ (0, C.jsx)(Udt, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+}
+//#endregion
+//#region src/react/router/pages/catalog.tsx
- var Gdt = () => al, Kdt = Sk.navigation.seq, qdt = Sk.navigation.openEpoch, a5 = Sk.navigation.location.pathname, o5 = {
++var Gdt = () => al, Kdt = wk.navigation.seq, qdt = wk.navigation.openEpoch, a5 = wk.navigation.location.pathname, o5 = {
+ seq: Kdt,
+ claimed: !0,
+ from: a5
};
- Sk.listen((e) => {
-function Xdt() {
- 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;
++wk.listen((e) => {
+ o5 = {
+ seq: e.seq,
+ claimed: e.openEpoch === qdt,
+ from: a5
+ }, qdt = e.openEpoch, a5 = e.location.pathname;
+});
+var s5 = !1;
+function Jdt(e) {
- let { seq: t, openEpoch: n, location: r } = Sk.navigation, i = JO(r.pathname), a = Tk() ?? r, o = W ?? {};
++ let { seq: t, openEpoch: n, location: r } = wk.navigation, i = XO(r.pathname), a = Dk() ?? r, o = W ?? {};
+ return {
+ seq: t,
+ epoch: n,
+ opens: al,
+ covered: i,
+ address: `${a.pathname}${a.search}`,
+ filters: JSON.stringify(o, Object.keys(o).sort()),
+ opened: e
+ };
+}
+function Ydt(e, t, n, r) {
+ let i = { ...W };
+ if (e === "/trash") return {
+ ...i,
+ creator: "",
+ studio: "",
+ tag: "",
+ orient: "",
+ state: "trash",
+ q: ""
+ };
- let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = xE().value;
++ let a = new URLSearchParams(t), { defaultSort: o, defaultSortDirection: s } = CE().value;
+ return {
+ ...i,
+ loc: a.get("loc") ?? r.defaultLoc(),
+ creator: a.get("creator") || "",
+ studio: a.get("studio") || "",
+ owner: a.get("owner") === "none" ? "none" : "",
+ tag: gn(a.get("tag")),
+ tag_match: a.get("tag_match") === "any" ? "any" : "all",
+ len: a.get("len") || "",
+ dur_min: a.get("dur_min") || "",
+ dur_max: a.get("dur_max") || "",
+ orient: a.get("orient") || "",
+ state: zt[e] || a.get("state") || "",
- ...fE(a.get("sort"), a.get("dir"), o, s),
++ ...mE(a.get("sort"), a.get("dir"), o, s),
+ seed: a.get("seed") || (n ? mn() : i.seed || mn()),
+ q: a.get("q") || "",
+ jav: a.get("jav") || "",
+ performer: a.get("performer") || "",
+ series: a.get("series") || "",
+ browse: a.get("browse") === "folders" || a.get("folder") ? "folders" : "",
+ folder: a.get("folder") || "",
+ folder_recursive: a.get("folder_recursive") === "0" ? "0" : ""
+ };
+}
+function Xdt(e, t) {
+ let n = { ...e }, r = Jdt(n.opened);
+ Object.assign(e, r);
+ let i = t.catalog;
+ if (!i || r.opens === 0) return;
+ if (r.covered) {
- Tk() || i.fill();
++ Dk() || i.fill();
+ return;
+ }
+ let a = !1;
+ 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;
+ i.load();
+ return;
+ }
- r.epoch !== n.epoch && (a = Sk.navigation.action === "POP" && o5.from !== "/");
++ r.epoch !== n.epoch && (a = wk.navigation.action === "POP" && o5.from !== "/");
+ }
- let { pathname: o, search: s } = Sk.navigation.location;
++ let { pathname: o, search: s } = wk.navigation.location;
+ if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = NU(s);
- s5 = !0, Ck(PU(e, t), { replace: !0 });
++ let { kind: e, view: t } = LU(s);
++ s5 = !0, Tk(RU(e, t), { replace: !0 });
+ return;
+ }
+ let c = s5;
+ s5 = !1, a &&= o === "/", e.opened = !0, ml({ state: Ydt(o, s, a, i) }), i.open(o, {
+ entering: a,
+ retitle: c
+ });
+}
+function Zdt(e) {
- return Bt(e) || e === "/trash" || JO(e) || e === "/immerse" || !!Rdt(e);
++ return Bt(e) || e === "/trash" || XO(e) || e === "/immerse" || !!Rdt(e);
+}
+function Qdt() {
- let e = (0, S.useContext)(jF), t = AF(), n = (0, S.useSyncExternalStore)(gl, Gdt), r = IO(), i = (0, S.useRef)(null), a = (0, S.useRef)({
++ let e = (0, S.useContext)(PF), t = NF(), n = (0, S.useSyncExternalStore)(gl, Gdt), r = RO(), i = (0, S.useRef)(null), a = (0, S.useRef)({
+ mounted: !0,
+ queued: !1
+ });
+ return (0, S.useEffect)(() => {
+ let t = a.current;
+ t.mounted = !0;
- let n = Jdt(!JO(Sk.navigation.location.pathname));
++ let n = Jdt(!XO(wk.navigation.location.pathname));
+ return !n.covered && n.opens > 0 && (s5 || o5.seq === Kdt ? n.opens = -1 : o5.claimed ? n.seq = -1 : n.epoch = -1), i.current = n, () => {
+ t.mounted = !1, queueMicrotask(() => {
- e?.catalog && !Zdt(Sk.navigation.location.pathname) && e.catalog.release();
++ e?.catalog && !Zdt(wk.navigation.location.pathname) && e.catalog.release();
+ });
+ };
+ }, []), (0, S.useEffect)(() => {
+ let t = a.current;
+ !t.queued && e && (t.queued = !0, queueMicrotask(() => {
+ t.queued = !1, t.mounted && i.current && Xdt(i.current, e);
+ }));
+ }, [
+ t,
+ n,
+ r,
+ e
+ ]), null;
+}
+function $dt() {
- let { pathname: e, search: t } = IO();
++ let { pathname: e, search: t } = RO();
+ (0, S.useLayoutEffect)(() => {
+ if (e !== "/wall") return;
+ document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
+ let t = Array.from(document.querySelectorAll("header.top,#drawer,#main,#catalogFilter,#count,#javLibraryHeader,#feedNew")), n = t.map((e) => e.inert);
+ return t.forEach((e) => {
+ e.inert = !0;
+ }), () => {
+ document.body.removeAttribute("data-wall-open"), t.forEach((e, t) => {
+ e.inert = n[t] || !1;
+ });
+ };
+ }, [e]);
- let n = (0, S.useContext)(jF), r = document.getElementById("javLibraryHeader"), i = Bt(e) && new URLSearchParams(t).get("jav") === "1";
++ let n = (0, S.useContext)(PF), r = document.getElementById("javLibraryHeader"), i = Bt(e) && new URLSearchParams(t).get("jav") === "1";
+ return (0, S.useLayoutEffect)(() => {
+ if (r) return r.hidden = !i, () => {
+ r.hidden = !0;
+ };
- }, [r, i]), JO(e) && !Vhe(e) ? null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
++ }, [r, i]), XO(e) && !zhe(e) ? null : /* @__PURE__ */ (0, C.jsxs)(C.Fragment, { children: [
+ /* @__PURE__ */ (0, C.jsx)(Qdt, {}, e === "/junk-files" ? "/junk-files" : "/"),
- Bt(e) ? /* @__PURE__ */ (0, C.jsx)(ySe, {}) : null,
- i && r && n ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(sNe, {
++ Bt(e) ? /* @__PURE__ */ (0, C.jsx)(gSe, {}) : null,
++ i && r && n ? (0, ht.createPortal)(/* @__PURE__ */ (0, C.jsx)(rNe, {
+ navigate: n.navigate,
+ receipt: (e) => n.receipt(e)
+ }), r) : null
+ ] });
+}
+//#endregion
+//#region src/react/router/pages/follow.tsx
+var c5 = () => document.getElementById("stats"), eft = () => dl;
+function tft(e) {
+ let t = document.createElement("div");
+ return t.className = "peach-react", Ko(e, () => {
+ e.textContent = "", e.append(t);
+ }), t;
+}
+async function nft(e, t) {
+ let n = c5(), r = e.follow;
+ if (!n || !r || r.refresh()) return;
+ let i = ul;
- e.surfaceChanged("follow", "/follow"), IK(n, r.skeleton()), await fk("/follow", r.props(), {
++ e.surfaceChanged("follow", "/follow"), BK(n, r.skeleton()), await mk("/follow", r.props(), {
+ container: n,
+ isCurrent: t,
+ place: tft
+ }), t() && window.scrollTo(i ? {
+ top: i,
+ behavior: "instant"
+ } : {
+ top: 0,
+ behavior: "smooth"
+ });
+}
+function rft() {
- let e = c5(), t = e ? ck(e) : null;
++ let e = c5(), t = e ? uk(e) : null;
+ return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
+}
+function ift() {
- let e = (0, S.useContext)(jF);
- return i5(AF(), (t, n) => {
++ let e = (0, S.useContext)(PF);
++ return i5(NF(), (t, n) => {
+ e && nft(e, n);
+ }, {
+ shown: rft,
+ onCovered: () => {
- Sk.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
++ wk.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ }
+ }), null;
+}
+function aft(e) {
- let t = e ? ck(e) : null;
++ let t = e ? uk(e) : null;
+ return !!t && t.path === "/playlists" && t.host.isConnected;
+}
+async function oft(e, t) {
+ let n = c5();
- n && (e.surfaceChanged("playlists", "/playlists"), IK(n, PK("/playlists", {
++ n && (e.surfaceChanged("playlists", "/playlists"), BK(n, RK("/playlists", {
+ followLayout: "",
+ followSort: "",
+ followDir: ""
- })), await fk("/playlists", { revision: dl }, {
++ })), await mk("/playlists", { revision: dl }, {
+ container: n,
+ isCurrent: t
+ }), t() && window.scrollTo({
+ top: 0,
+ behavior: "smooth"
+ }));
+}
+function sft() {
- let e = (0, S.useContext)(jF), t = (0, S.useSyncExternalStore)(gl, eft), n = (0, S.useRef)(t);
++ let e = (0, S.useContext)(PF), t = (0, S.useSyncExternalStore)(gl, eft), n = (0, S.useRef)(t);
+ return (0, S.useEffect)(() => {
+ if (n.current === t) return;
+ n.current = t;
+ let e = c5();
- aft(e) && pk(e, { revision: t });
- }, [t]), i5(AF(), (t, n) => {
++ aft(e) && hk(e, { revision: t });
++ }, [t]), i5(NF(), (t, n) => {
+ e && oft(e, n);
+ }, { shown: () => {
+ let e = c5();
+ return aft(e) && !e.hidden;
+ } }), null;
+}
+//#endregion
+//#region src/react/router/pages/immerse.tsx
+function cft() {
- let e = new URLSearchParams(Sk.navigation.location.search).get("id");
++ let e = new URLSearchParams(wk.navigation.location.search).get("id");
+ return /^\d+$/.test(e || "") ? Number(e) : void 0;
+}
+function lft() {
- let e = (0, S.useContext)(jF);
- return OF(() => {
++ let e = (0, S.useContext)(PF);
++ return jF(() => {
+ e?.openImmerse(cft());
+ }, !0), null;
+}
+function uft() {
- return /* @__PURE__ */ (0, C.jsx)(lft, {}, AF());
++ return /* @__PURE__ */ (0, C.jsx)(lft, {}, NF());
+}
+//#endregion
+//#region src/react/router/pages/managed.tsx
+var dft = [
+ "list",
+ "add",
+ "feeds"
- ], fft = () => al > 0, l5 = () => (0, S.useSyncExternalStore)(gl, fft), u5 = !1, pft = () => xE().value.followLayout === "table" ? "table" : "default", d5 = () => new URLSearchParams(window.location.search);
- function mft(e) {
- let t = d5();
- return PK(e, {
- followLayout: pft(),
++], fft = () => al > 0, pft = () => (0, S.useSyncExternalStore)(gl, fft), l5 = !1, mft = () => CE().value.followLayout === "table" ? "table" : "default", u5 = () => new URLSearchParams(window.location.search);
++function hft(e) {
++ let t = u5();
++ return RK(e, {
++ followLayout: mft(),
+ followSort: t.get("sort") || "",
+ followDir: t.get("dir") || ""
+ });
+}
- function f5(e) {
++function d5(e) {
+ return Ft("/healthz", { signal: e.controller.signal }).catch((e) => {
+ if (It(e)) return null;
+ throw e;
+ });
+}
- function hft(e, t) {
++function gft(e, t) {
+ return {
+ readOnly: !!e?.ledger_read_only,
+ readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
+ writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
+ };
}
- async function gft(e, t) {
-function Zdt(e, t) {
- let n = {};
- return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Hdt : Vdt;
- function o(e) {
- [
- "top",
- "right",
- "bottom",
- "left"
- ].forEach((t) => {
- n[`${i}-${t}`] = typeof e == "number" ? `${e}px` : e;
- });
- }
- typeof e == "number" || typeof e == "string" ? o(e) : typeof e == "object" ? [
- "top",
- "right",
- "bottom",
- "left"
- ].forEach((t) => {
- e[t] === void 0 ? n[`${i}-${t}`] = a : n[`${i}-${t}`] = typeof e[t] == "number" ? `${e[t]}px` : e[t];
- }) : o(a);
- }), n;
++async function _ft(e, t) {
+ if (e === "/jav") {
- let e = await f5(t);
++ let e = await d5(t);
+ return t.live ? {
- tab: VU(d5().get("tab")),
++ tab: GU(u5().get("tab")),
+ readOnly: !!e?.ledger_read_only
+ } : null;
+ }
+ if (e === "/stats") return { configurable: !!rl };
+ if (e === "/taste") {
+ let e = il;
+ return ml({ cameFromSetup: !1 }), { onboarding: e };
+ }
+ if (e.startsWith("/settings/")) {
+ window.location.hash === "#peachProxy" && ml({ configurationRequestedSection: "网络与访问" });
- let t = d5().get("section") || nl || Lhe(e);
++ let t = u5().get("section") || nl || Fhe(e);
+ return t ? { section: t } : {};
+ }
+ if (e === "/review") {
- let e = d5().get("category") || "", n = await f5(t);
++ let e = u5().get("category") || "", n = await d5(t);
+ return t.live ? {
- category: xz(e) ? e : "",
- ...hft(n, "/review")
++ category: wz(e) ? e : "",
++ ...gft(n, "/review")
+ } : null;
+ }
+ if (e === "/subscriptions") {
- let e = d5(), n = e.get("tab") || "", r = {
++ let e = u5(), n = e.get("tab") || "", r = {
+ tab: dft.includes(n) ? n : "list",
+ page: Math.max(1, Math.floor(Number(e.get("page"))) || 1),
+ sort: e.get("sort") || "",
+ dir: e.get("dir") || ""
- }, i = await f5(t);
++ }, i = await d5(t);
+ if (!t.live) return null;
- let a = xE().value;
++ let a = CE().value;
+ return {
+ ...r,
+ pageSize: Number(a.followPageSize) || 20,
- layout: pft(),
- ...hft(i, "/subscriptions")
++ layout: mft(),
++ ...gft(i, "/subscriptions")
+ };
+ }
+ return {};
}
- var p5 = () => {
-var Qdt = /*#__PURE__*/ S.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 = Bdt, toastOptions: g, dir: _ = Xdt(), gap: v = Gdt, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [C, w] = S.useState([]), T = S.useMemo(() => n ? C.filter((e) => e.toasterId === n) : C.filter((e) => !e.toasterId), [C, n]), E = S.useMemo(() => Array.from(new Set([i].concat(T.filter((e) => e.position).map((e) => e.position)))), [T, i]), [D, O] = S.useState([]), [k, A] = S.useState(!1), [j, M] = S.useState(!1), [N, P] = S.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), F = S.useRef(null), I = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = S.useRef(null), L = S.useRef(!1), te = S.useCallback((e) => {
- w((t) => (t.find((t) => t.id === e.id)?.delete || x5.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
- }, []);
- return S.useEffect(() => x5.subscribe((e) => {
- e.dismiss ? requestAnimationFrame(() => {
- w((t) => t.map((t) => t.id === e.id ? {
- ...t,
- delete: !0
- } : t));
- }) : setTimeout(() => {
- gt.flushSync(() => {
- w((t) => {
- let n = t.findIndex((t) => t.id === e.id);
- return n === -1 ? [e, ...t] : [
- ...t.slice(0, n),
- {
- ...t[n],
- ...e
- },
- ...t.slice(n + 1)
- ];
- });
- });
- });
- }), []), S.useEffect(() => {
- if (d !== "system") {
- P(d);
- return;
- }
- if (d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? P("dark") : P("light")), typeof window > "u") return;
- let e = window.matchMedia("(prefers-color-scheme: dark)");
- try {
- e.addEventListener("change", ({ matches: e }) => {
- P(e ? "dark" : "light");
- });
- } catch {
- e.addListener(({ matches: e }) => {
- try {
- P(e ? "dark" : "light");
- } catch (e) {
- console.error(e);
- }
++var f5 = () => {
+ window.scrollTo({
+ top: 0,
+ behavior: "smooth"
+ });
- }, m5 = (e) => {
++}, p5 = (e) => {
+ document.getElementById(e)?.scrollIntoView({ block: "start" });
- }, _ft = /* @__PURE__ */ new Set(["/stats", "/taste"]), vft = /* @__PURE__ */ new Set([
++}, vft = /* @__PURE__ */ new Set(["/stats", "/taste"]), yft = /* @__PURE__ */ new Set([
+ "/review",
+ "/quality-goals",
+ "/tasks",
+ "/subscriptions"
+]);
- async function yft(e, t, n) {
- if (e === "/jav" && VU(d5().get("tab")) === "library") {
- Sk.replace(jMe(window.location.search));
++async function bft(e, t, n) {
++ if (e === "/jav" && GU(u5().get("tab")) === "library") {
++ wk.replace(DMe(window.location.search));
+ return;
+ }
- if (e === "/subscriptions" && d5().get("tab") === "wants") {
- Ck("/jav?tab=wants", { replace: !0 });
++ if (e === "/subscriptions" && u5().get("tab") === "wants") {
++ Tk("/jav?tab=wants", { replace: !0 });
+ return;
+ }
- if (e === "/subscriptions" && d5().get("tab") === "source") {
- Ck("/settings/subscriptions", { replace: !0 });
++ if (e === "/subscriptions" && u5().get("tab") === "source") {
++ Tk("/settings/subscriptions", { replace: !0 });
+ return;
+ }
+ let r = document.getElementById("stats");
+ if (!r) return;
+ e === "/jav" && window.scrollTo({
+ top: 0,
+ behavior: "instant"
+ }), t.surfaceChanged("management", e), e === "/taste" && (ml({ state: {
+ ...W,
+ creator: "",
+ studio: "",
+ tag: "",
+ tag_match: "all",
+ len: "",
+ dur_min: "",
+ dur_max: "",
+ orient: "",
+ region: "",
+ state: "",
+ q: "",
+ jav: ""
+ } }), t.clearSearch());
- let i = e === "/data-cleanup" && u5;
- i && (u5 = !1), IK(r, mft(e));
- let a = await gft(e, n);
++ let i = e === "/data-cleanup" && l5;
++ i && (l5 = !1), BK(r, hft(e));
++ let a = await _ft(e, n);
+ if (!a) return;
- let o = await fk(e, a, {
++ let o = await mk(e, a, {
+ container: r,
+ isCurrent: () => n.live
+ });
- if (o && (n.revision = ck(r)?.revision ?? 0), e.startsWith("/settings/") && o && ml({ configurationRequestedSection: "" }), _ft.has(e) && p5(), n.live) {
++ if (o && (n.revision = uk(r)?.revision ?? 0), e.startsWith("/settings/") && o && ml({ configurationRequestedSection: "" }), vft.has(e) && f5(), n.live) {
+ let { hash: t } = window.location;
- vft.has(e) && p5(), e === "/settings/library" && (t === "#libraryProcessing" ? queueMicrotask(() => {
- n.live && Ck("/data-cleanup#libraryProcessing", {
++ yft.has(e) && f5(), e === "/settings/library" && (t === "#libraryProcessing" ? queueMicrotask(() => {
++ n.live && Tk("/data-cleanup#libraryProcessing", {
+ replace: !0,
+ state: null
});
- }) : t === "#peachProxy" ? m5("peachProxy") : p5()), e === "/data-cleanup" && t === "#libraryProcessing" && m5("libraryProcessing");
- }
- }, [d]), S.useEffect(() => {
- C.length <= 1 && A(!1);
- }, [C]), S.useEffect(() => {
- let e = (e) => {
- if (a.length > 0 && a.every((t) => e[t] || e.code === t)) {
- var t;
- A(!0), (t = F.current) == null || t.focus();
- }
- e.code === "Escape" && (document.activeElement === F.current || F.current?.contains(document.activeElement)) && A(!1);
++ }) : t === "#peachProxy" ? p5("peachProxy") : f5()), e === "/data-cleanup" && t === "#libraryProcessing" && p5("libraryProcessing");
+ }
- i && m5("resource-sync");
++ i && p5("resource-sync");
+}
- function h5({ path: e }) {
- let t = AF();
- IO();
- let n = JO(Sk.navigation.location.pathname), r = (0, S.useRef)(n ? null : t), i = (0, S.useRef)(n);
++function m5({ path: e }) {
++ let t = NF();
++ RO();
++ let n = XO(wk.navigation.location.pathname), r = (0, S.useRef)(n ? null : t), i = (0, S.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, C.jsx)(bft, {
++ return /* @__PURE__ */ (0, C.jsx)(xft, {
+ path: e,
+ covered: r.current === null
+ }, `${a} ${r.current ?? "covered"}`);
+}
- function bft({ path: e, covered: t }) {
- let n = (0, S.useContext)(jF), r = l5(), i = (0, S.useRef)(null);
++function xft({ path: e, covered: t }) {
++ let n = (0, S.useContext)(PF), r = pft(), i = (0, S.useRef)(null);
+ return (0, S.useEffect)(() => {
- e.startsWith("/settings/") && pk(document.getElementById("stats"), { section: Lhe(e) });
++ e.startsWith("/settings/") && hk(document.getElementById("stats"), { section: Fhe(e) });
+ }, [e]), (0, S.useEffect)(() => {
+ if (t || !n || !r || i.current) return;
+ let a = {
+ live: !0,
+ revision: 0,
+ controller: new AbortController()
};
- return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
- }, [a]), S.useEffect(() => {
- if (F.current) return () => {
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, L.current = !1);
+ i.current = a, queueMicrotask(() => {
- a.live && yft(e, n, a);
++ a.live && bft(e, n, a);
+ });
+ }, [r]), (0, S.useEffect)(() => () => {
+ let e = i.current;
+ if (!e) return;
+ e.live = !1, e.controller.abort();
+ let t = document.getElementById("stats");
+ queueMicrotask(() => {
- t && e.revision && !t.hidden && ck(t)?.revision === e.revision && mk(t);
++ t && e.revision && !t.hidden && uk(t)?.revision === e.revision && gk(t);
+ });
+ }, []), null;
+}
- function xft() {
- let e = l5(), t = (0, S.useRef)(!1);
++function Sft() {
++ let e = pft(), t = (0, S.useRef)(!1);
+ return (0, S.useEffect)(() => {
- if (!e || t.current || JO(Sk.navigation.location.pathname)) return;
++ if (!e || t.current || XO(wk.navigation.location.pathname)) return;
+ t.current = !0;
+ let n = !0;
+ return queueMicrotask(() => {
- n && (u5 = !0, Ck("/data-cleanup#resource-sync", { replace: !0 }));
++ n && (l5 = !0, Tk("/data-cleanup#resource-sync", { replace: !0 }));
+ }), () => {
+ n = !1;
};
- }, [F.current]), /*#__PURE__*/ S.createElement("section", {
- ref: t,
- "aria-label": b ?? `${x} ${I}`,
- tabIndex: -1,
- "aria-live": "polite",
- "aria-relevant": "additions text",
- "aria-atomic": "false",
- suppressHydrationWarning: !0,
- "data-react-aria-top-layer": !0
- }, E.map((t, n) => {
- let [i, a] = t.split("-");
- return T.length ? /*#__PURE__*/ S.createElement("ol", {
- key: t,
- dir: _ === "auto" ? Xdt() : _,
- tabIndex: -1,
- ref: F,
- className: c,
- "data-sonner-toaster": !0,
- "data-sonner-theme": N,
- "data-y-position": i,
- "data-x-position": a,
- style: {
- "--front-toast-height": `${D[0]?.height || 0}px`,
- "--width": `${Wdt}px`,
- "--gap": `${v}px`,
- ...m,
- ...Zdt(l, u)
- },
- onBlur: (e) => {
- L.current && !e.currentTarget.contains(e.relatedTarget) && (L.current = !1, ee.current &&= (ee.current.focus({ preventScroll: !0 }), null));
- },
- onFocus: (e) => {
- e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || L.current || (L.current = !0, ee.current = e.relatedTarget);
- },
- onMouseEnter: () => A(!0),
- onMouseMove: () => A(!0),
- onMouseLeave: () => {
- j || A(!1);
- },
- onDragEnd: () => A(!1),
- onPointerDown: (e) => {
- e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || M(!0);
- },
- onPointerUp: () => M(!1)
- }, T.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ S.createElement(Ydt, {
- key: n.id,
- icons: y,
- index: i,
- toast: n,
- defaultRichColors: f,
- duration: g?.duration ?? p,
- className: g?.className,
- descriptionClassName: g?.descriptionClassName,
- invert: r,
- visibleToasts: h,
- closeButton: g?.closeButton ?? s,
- interacting: j,
- position: t,
- style: g?.style,
- unstyled: g?.unstyled,
- classNames: g?.classNames,
- cancelButtonStyle: g?.cancelButtonStyle,
- actionButtonStyle: g?.actionButtonStyle,
- closeButtonAriaLabel: g?.closeButtonAriaLabel,
- removeToast: te,
- toasts: T.filter((e) => e.position == n.position),
- heights: D.filter((e) => e.position == n.position),
- setHeights: O,
- expandByDefault: o,
- gap: v,
- expanded: k,
- swipeDirections: e.swipeDirections
- }))) : null;
- }));
-}), $dt = (e, t) => /* @__PURE__ */ (0, C.jsx)("span", {
+ }, [e]), null;
+}
+//#endregion
+//#region src/react/router/managed-routes.tsx
- function Sft(e, t, n) {
++function Cft(e, t, n) {
+ if (e === "duplicates") {
+ n("/duplicates");
+ return;
+ }
+ let r = t.managePath(e);
- v5(r) ? n(r) : t.openManage(e);
++ _5(r) ? n(r) : t.openManage(e);
+}
- var g5 = (e) => ({
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: e }),
- prefetch: (e, t) => SPe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(HFe, {
++var h5 = (e) => ({
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: e }),
++ prefetch: (e, t) => vPe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(RFe, {
+ receipt: (e) => t.receipt(e),
+ reopenTutorial: t.reopenTutorial,
+ section: e.section ?? ""
+ })
- }), _5 = {
++}), g5 = {
+ "/jav": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/jav" }),
- prefetch: (e, t) => oNe(e.tab, t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(dNe, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/jav" }),
++ prefetch: (e, t) => nNe(e.tab, t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(sNe, {
+ ...e,
+ navigate: t.navigate,
+ receipt: (e) => t.receipt(e)
+ })
+ },
+ "/stats": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/stats" }),
- prefetch: (e, t) => WRe(t),
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/stats" }),
++ prefetch: (e, t) => BRe(t),
+ page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(llt, {
+ tagLabel: kc,
+ onTag: t.openTag,
+ configurable: e.configurable,
+ openMediaSettings: () => {
+ t.requestConfigurationSection("媒体库与入库"), n("/settings/library");
+ }
+ })
+ },
+ "/taste": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/taste" }),
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/taste" }),
+ prefetch: (e, t) => Hlt("all", t),
+ page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(vdt, {
+ onSignal: t.openTasteSignal,
+ navigate: n,
+ toast: (e) => t.receipt(e),
+ onboarding: e.onboarding
+ })
+ },
+ "/review": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/review" }),
- prefetch: (e, t) => VEe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(GNe, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/review" }),
++ prefetch: (e, t) => REe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(VNe, {
+ ...e,
+ route: t.routeReview,
+ openItem: t.openItem,
+ openEntity: t.openEntity,
+ revealSource: t.revealSource,
+ toast: (e) => t.receipt(e)
+ })
+ },
+ "/data-cleanup": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/data-cleanup" }),
- prefetch: (e, t) => TDe(t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(jOe, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/data-cleanup" }),
++ prefetch: (e, t) => SDe(t),
++ page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(DOe, {
+ failure: t.failure,
- open: (e) => Sft(e, t, n),
++ open: (e) => Cft(e, t, n),
+ toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
+ })
+ },
+ "/duplicates": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/duplicates" }),
- prefetch: (e, t) => fEe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(sje, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/duplicates" }),
++ prefetch: (e, t) => lEe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(rje, {
+ openItem: t.openItem,
+ failure: t.failure,
+ toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
+ })
+ },
+ "/quality-goals": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/quality-goals" }),
- prefetch: (e, t) => SEe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(ONe, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/quality-goals" }),
++ prefetch: (e, t) => yEe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(wNe, {
+ openItem: t.openItem,
- javTitleHtml: Dk,
- javDisplayName: Ek,
++ javTitleHtml: kk,
++ javDisplayName: Ok,
+ toast: (e) => t.receipt(e),
+ srcBadge: t.srcBadge
+ })
+ },
+ "/sources": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/sources" }),
- prefetch: (e, t) => QNe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(fPe, { toast: (e) => t.toast(e) })
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/sources" }),
++ prefetch: (e, t) => JNe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(cPe, { toast: (e) => t.toast(e) })
+ },
- "/settings/library": g5("/settings/library"),
- "/settings/subscriptions": g5("/settings/subscriptions"),
- "/settings/downloads": g5("/settings/downloads"),
- "/settings/network": g5("/settings/network"),
- "/settings/maintenance": g5("/settings/maintenance"),
++ "/settings/library": h5("/settings/library"),
++ "/settings/subscriptions": h5("/settings/subscriptions"),
++ "/settings/downloads": h5("/settings/downloads"),
++ "/settings/network": h5("/settings/network"),
++ "/settings/maintenance": h5("/settings/maintenance"),
+ "/diagnostics": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/diagnostics" }),
- prefetch: (e, t) => cje(t),
- page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(fje, {
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/diagnostics" }),
++ prefetch: (e, t) => ije(t),
++ page: (e, t, n) => /* @__PURE__ */ (0, C.jsx)(cje, {
+ navigate: n,
+ openItem: t.openItem,
+ receipt: (e) => t.receipt(e),
+ configure: (e) => {
- t.requestConfigurationSection(e), n(GO(e));
++ t.requestConfigurationSection(e), n(qO(e));
+ }
+ })
+ },
+ "/tasks": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/tasks" }),
- prefetch: (e, t) => hve(t),
- page: () => /* @__PURE__ */ (0, C.jsx)(Ive, {})
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/tasks" }),
++ prefetch: (e, t) => fve(t),
++ page: () => /* @__PURE__ */ (0, C.jsx)(Nve, {})
+ },
+ "/subscriptions": {
- element: /* @__PURE__ */ (0, C.jsx)(h5, { path: "/subscriptions" }),
++ element: /* @__PURE__ */ (0, C.jsx)(m5, { path: "/subscriptions" }),
+ prefetch: (e, t) => Hr(t, e.tab),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(Jje, {
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(Wje, {
+ ...e,
+ route: t.routeFollowManage,
+ savePreference: t.saveFollowPreference,
+ toast: (e) => t.receipt(e),
+ openFollow: t.openFollow,
+ openServiceConfiguration: () => t.navigate("/settings/subscriptions")
+ })
+ }
- }, v5 = (e) => Object.hasOwn(_5, e), Cft = { "/resource-sync": { element: /* @__PURE__ */ (0, C.jsx)(xft, {}) } }, wft = { "/immerse": { element: /* @__PURE__ */ (0, C.jsx)(uft, {}) } }, y5 = {
++}, _5 = (e) => Object.hasOwn(g5, e), wft = { "/resource-sync": { element: /* @__PURE__ */ (0, C.jsx)(Sft, {}) } }, Tft = { "/immerse": { element: /* @__PURE__ */ (0, C.jsx)(uft, {}) } }, v5 = {
+ "/playlists": {
+ element: /* @__PURE__ */ (0, C.jsx)(sft, {}),
- prefetch: (e, t) => mNe(t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(ENe, {
++ prefetch: (e, t) => uNe(t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(SNe, {
+ revision: e.revision,
+ openPlaylist: t.openPlaylist,
+ openEntity: t.openEntity,
+ canFlip: t.canFlip,
+ toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})
+ })
+ },
+ "/follow": {
+ element: /* @__PURE__ */ (0, C.jsx)(ift, {}),
+ prefetch: (e, t) => ui(e, t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(Nke, { ...e })
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(kke, { ...e })
+ }
- }, Tft = (e) => Object.hasOwn(y5, e), b5 = {
++}, Eft = (e) => Object.hasOwn(v5, e), y5 = {
+ element: /* @__PURE__ */ (0, C.jsx)(Ldt, {}),
- prefetch: (e, t) => QOe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, C.jsx)(uMe, {
++ prefetch: (e, t) => JOe(e, t),
++ page: (e, t) => /* @__PURE__ */ (0, C.jsx)(oMe, {
+ ...e,
+ route: t.routeIndex,
+ savePreference: t.savePeopleLayout,
+ exitSelectMode: t.exitSelectMode,
+ personAvatar: t.personAvatar,
+ authorAvatar: t.authorAvatar,
+ tagLabel: kc,
+ openEntity: t.openEntity,
+ showTags: t.showIndexTags,
+ openFollowAuthor: t.openFollowAuthor,
+ openFollowTag: t.openFollowTag
+ })
++}, b5 = {
++ "/performers": y5,
++ "/creators": y5,
++ "/studios": y5,
++ "/agencies": y5,
++ "/tags": y5
+}, x5 = {
- "/performers": b5,
- "/creators": b5,
- "/studios": b5,
- "/agencies": b5,
- "/tags": b5
- }, S5 = {
+ element: /* @__PURE__ */ (0, C.jsx)(Wdt, {}),
- prefetch: (e) => BOe(e),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(ZAe, { ...e })
++ prefetch: (e) => IOe(e),
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(qAe, { ...e })
++}, S5 = {
++ "/performers/*": x5,
++ "/studios/*": x5,
++ "/creators/*": x5,
++ "/series/*": x5,
++ "/agencies/*": x5,
++ "/tags/*": x5
+}, C5 = {
- "/performers/*": S5,
- "/studios/*": S5,
- "/creators/*": S5,
- "/series/*": S5,
- "/agencies/*": S5,
- "/tags/*": S5
- }, w5 = {
+ "/": {
+ element: /* @__PURE__ */ (0, C.jsx)($dt, {}),
- prefetch: (e, t) => tfe(e, t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)($R, { ...e })
++ prefetch: (e, t) => $de(e, t),
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(nz, { ...e })
+ },
+ "/junk-files": {
+ element: /* @__PURE__ */ (0, C.jsx)($dt, {}),
+ prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(TMe, { ...e })
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(xMe, { ...e })
+ }
- }, Eft = (e) => Object.hasOwn(w5, e), Dft = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(Yxe, { ...e }) : /* @__PURE__ */ (0, C.jsx)(BB, { ...e }), Oft = {
++}, Dft = (e) => Object.hasOwn(C5, e), Oft = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, C.jsx)(Kxe, { ...e }) : /* @__PURE__ */ (0, C.jsx)(UB, { ...e }), kft = {
+ "catalog-filter": {
+ prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(LSe, { ...e })
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(PSe, { ...e })
+ },
+ "feed-new": {
- prefetch: (e) => IOe(e),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(pje, { ...e })
++ prefetch: (e) => MOe(e),
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(lje, { ...e })
+ },
+ "library-processing": {
- prefetch: (e, t) => dF(t),
- page: (e) => /* @__PURE__ */ (0, C.jsx)(Dft, { ...e })
++ prefetch: (e, t) => mF(t),
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(Oft, { ...e })
+ },
+ search: {
+ prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, C.jsx)(_Pe, { ...e })
++ page: (e) => /* @__PURE__ */ (0, C.jsx)(pPe, { ...e })
+ }
- }, kft = (e) => Object.hasOwn(Oft, e), Aft = {
++}, Aft = (e) => Object.hasOwn(kft, e), jft = {
+ "batch-dock": {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(xle, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(yle, {})
+ },
+ "glow-picker": {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(Lue, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(Fue, {})
+ },
+ "manage-header": {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)($pe, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(Zpe, {})
+ },
+ immerse: {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(zpe, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(Lpe, {})
+ },
+ "settings-panel": {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(cIe, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(iIe, {})
+ },
+ sidebar: {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(SIe, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(vIe, {})
+ },
+ stage: {
+ prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, C.jsx)(HRe, {})
++ page: () => /* @__PURE__ */ (0, C.jsx)(RRe, {})
+ }
- }, jft = (e) => Object.hasOwn(Aft, e), Mft = [
++}, Mft = (e) => Object.hasOwn(jft, e), Nft = [
+ "/",
+ "/wall",
+ "/unseen",
+ "/watch-later",
+ "/flagged",
+ "/trash",
+ "/junk-files"
+];
+[
- ...Object.keys(_5),
- ...Object.keys(y5),
- ...Object.keys(x5),
- ...Object.keys(C5),
- ...Mft
++ ...Object.keys(g5),
++ ...Object.keys(v5),
++ ...Object.keys(b5),
++ ...Object.keys(S5),
++ ...Nft
+];
- var Nft = (e) => v5(e) || Tft(e) || Object.hasOwn(x5, e) || Object.hasOwn(C5, e) || Eft(e) || kft(e) || jft(e);
- function Pft(e) {
- return v5(e) ? _5[e] : Tft(e) ? y5[e] : Eft(e) ? w5[e] : kft(e) ? Oft[e] : jft(e) ? Aft[e] : Object.hasOwn(x5, e) ? x5[e] : C5[e];
++var Pft = (e) => _5(e) || Eft(e) || Object.hasOwn(b5, e) || Object.hasOwn(S5, e) || Dft(e) || Aft(e) || Mft(e);
++function Fft(e) {
++ return _5(e) ? g5[e] : Eft(e) ? v5[e] : Dft(e) ? C5[e] : Aft(e) ? kft[e] : Mft(e) ? jft[e] : Object.hasOwn(b5, e) ? b5[e] : S5[e];
+}
- function Fft(e, t, n) {
- return Nft(e) ? Pft(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
++function Ift(e, t, n) {
++ return Pft(e) ? Fft(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+}
- function Ift(e, t, n, r) {
- return Pft(e).page(t, n, r);
++function Lft(e, t, n, r) {
++ return Fft(e).page(t, n, r);
+}
+//#endregion
+//#region src/react/toaster.tsx
- var Lft = (e, t) => /* @__PURE__ */ (0, C.jsx)("span", {
++var Rft = (e, t) => /* @__PURE__ */ (0, C.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
- }), T5 = null;
- function Rft() {
- let e = T5;
- T5 = null, e?.root.unmount();
- }
- var zft = (e, t) => {
- if (T5?.host === e) return;
- Rft();
-}), w5 = null;
-function eft() {
++}), w5 = null, zft = { "--floating-radius": "var(--radius-2xl)" };
++function Bft() {
+ let e = w5;
+ w5 = null, e?.root.unmount();
+ }
-var tft = (e, t) => {
++var Vft = (e, t) => {
+ if (w5?.host === e) return;
- eft();
- let n = (0, _t.createRoot)(e);
++ Bft();
+ let n = (0, gt.createRoot)(e);
- T5 = {
+ w5 = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, C.jsxs)(ZP, { children: [/* @__PURE__ */ (0, C.jsx)(aF, {
- }, n.render(/* @__PURE__ */ (0, C.jsx)(Qdt, {
++ }, n.render(/* @__PURE__ */ (0, C.jsxs)(eF, { children: [/* @__PURE__ */ (0, C.jsx)(cF, {
+ id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
-- style: { "--width": "min(560px, calc(100vw - 48px))" },
++ style: {
++ ...zft,
++ "--width": "min(560px, calc(100vw - 48px))"
++ },
offset: {
right: 24,
- bottom: "var(--toast-bottom, 24px)"
+ bottom: "calc(var(--toast-bottom, 24px) + var(--processing-toast-space, 0px))"
},
mobileOffset: {
right: 16,
@@@ -105661,33 -104688,16 +105670,36 @@@
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: Lft(t.success, !0),
- error: Lft(t.error, !1)
- success: $dt(t.success, !0),
- error: $dt(t.error, !1)
++ success: Rft(t.success, !0),
++ error: Rft(t.error, !1)
}
- }), /* @__PURE__ */ (0, C.jsx)(aF, {
- }));
-}, nft = 6e3, rft = (e, t) => {
++ }), /* @__PURE__ */ (0, C.jsx)(cF, {
+ id: "processing",
+ position: "bottom-right",
+ gap: 8,
- style: { "--width": "min(400px, calc(100vw - 32px))" },
++ style: {
++ ...zft,
++ "--width": "min(400px, calc(100vw - 32px))"
++ },
+ offset: {
+ right: 24,
+ bottom: "var(--toast-bottom, 24px)"
+ },
+ mobileOffset: {
+ right: 16,
+ left: 16,
+ bottom: "var(--toast-bottom, 16px)"
+ },
+ toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
+ containerAriaLabel: "后台任务"
+ })] }));
- }, Bft = 6e3, Vft = (e, t) => {
++}, Hft = 6e3, Uft = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? eF.error : eF.success, r = t.action;
- let n = t.alert ? zdt.error : zdt.success, r = t.action;
++ let n = t.alert ? rF.error : rF.success, r = t.action;
n(/* @__PURE__ */ (0, C.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
- duration: t.timeout > 0 ? t.timeout : nft,
+ toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Bft,
++ duration: t.timeout > 0 ? t.timeout : Hft,
action: r ? {
label: r.label,
onClick: (e) => {
@@@ -105695,83 -104705,83 +105707,83 @@@
}
} : void 0
});
- }, E5 = null, D5 = null, O5 = 0, k5 = /* @__PURE__ */ new Set();
- function Hft(e) {
- return E5 = e, D5 && e(D5), () => {
- E5 === e && (E5 = null);
+ }, T5 = null, E5 = null, D5 = 0, O5 = /* @__PURE__ */ new Set();
-function ift(e) {
++function Wft(e) {
+ return T5 = e, E5 && e(E5), () => {
+ T5 === e && (T5 = null);
};
}
- function Uft(e) {
- return E5 && (D5 = e, E5(e), qhe(Promise.resolve(Fft))), Promise.resolve();
-function aft(e) {
- return T5 && (E5 = e, T5(e), Phe(Promise.resolve(Sdt))), Promise.resolve();
++function Gft(e) {
++ return T5 && (E5 = e, T5(e), Ghe(Promise.resolve(Ift))), Promise.resolve();
}
- async function A5(e, t, n = (e) => e) {
- let r = O5;
- if (t.isConnected || k5.add(t), !await fk(e, {}, {
+ async function k5(e, t, n = (e) => e) {
+ let r = D5;
- if (t.isConnected || O5.add(t), !await fk(e, {}, {
++ if (t.isConnected || O5.add(t), !await mk(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!E5 && r === O5,
+ isCurrent: () => !!T5 && r === D5,
place: () => n(t)
- }) || r !== O5 || !E5) throw new DOMException("应用已卸载", "AbortError");
- }
- function Wft() {
- O5 += 1, E5 = null, D5 = null, j5 = null, M5 = null, F5 = null, I5 = null, R5 = null, z5 = null, B5 = null, V5 = null, U5 = null, W5 = null, G5 = null, K5 = null, q5 = null;
- for (let e of k5) e.remove();
- k5.clear(), Rft();
- }
- var j5 = null, M5 = null;
- function N5(e) {
- return j5 ??= (async () => {
- let t = VRe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await A5("stage", n, (e) => (document.body.append(e), e)), M5 = t, t;
- })(), j5;
- }
- var P5 = () => M5, F5 = null, I5 = null;
- function Gft(e) {
- return F5 ??= (async () => {
- let t = Rpe(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await A5("immerse", n, (e) => (document.body.append(e), e)), I5 = t, t;
- })(), F5;
- }
- var L5 = () => I5, R5 = null, z5 = null;
- function Kft(e) {
- return R5 ??= (async () => {
- let t = sIe(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await A5("settings-panel", n, (e) => (document.body.append(e), e)), z5 = t, t;
- })(), R5;
- }
- var qft = () => z5, B5 = null, V5 = null;
+ }) || r !== D5 || !T5) throw new DOMException("应用已卸载", "AbortError");
+ }
-function oft() {
++function Kft() {
+ D5 += 1, T5 = null, E5 = null, A5 = null, j5 = null, P5 = null, F5 = null, L5 = null, R5 = null, z5 = null, B5 = null, H5 = null, U5 = null, W5 = null, G5 = null, K5 = null;
+ for (let e of O5) e.remove();
- O5.clear(), eft();
++ O5.clear(), Bft();
+ }
+ var A5 = null, j5 = null;
+ function M5(e) {
+ return A5 ??= (async () => {
- let t = qLe(e), n = document.createElement("div");
++ let t = LRe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await k5("stage", n, (e) => (document.body.append(e), e)), j5 = t, t;
+ })(), A5;
+ }
+ var N5 = () => j5, P5 = null, F5 = null;
-function sft(e) {
++function qft(e) {
+ return P5 ??= (async () => {
- let t = Tpe(e), n = document.createElement("div");
++ let t = Ipe(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await k5("immerse", n, (e) => (document.body.append(e), e)), F5 = t, t;
+ })(), P5;
+ }
+ var I5 = () => F5, L5 = null, R5 = null;
-function cft(e) {
+function Jft(e) {
- return B5 ??= (async () => {
- let t = xIe(e);
- return await A5("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), V5 = t, t;
- })(), B5;
- }
- var H5 = () => V5, U5 = null, W5 = null;
- function Yft(e) {
- return U5 ??= (async () => {
- let t = Qpe(e);
- return await A5("manage-header", e.root, (e) => (e.replaceChildren(), e)), W5 = t, t;
- })(), U5;
- }
- var Xft = () => W5, G5 = null, K5 = null;
+ return L5 ??= (async () => {
- let t = pFe(e), n = document.createElement("div");
++ let t = rIe(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await k5("settings-panel", n, (e) => (document.body.append(e), e)), R5 = t, t;
+ })(), L5;
+ }
-var lft = () => R5, z5 = null, B5 = null;
-function uft(e) {
++var Yft = () => R5, z5 = null, B5 = null;
++function Xft(e) {
+ return z5 ??= (async () => {
- let t = DFe(e);
++ let t = _Ie(e);
+ return await k5("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), B5 = t, t;
+ })(), z5;
+ }
+ var V5 = () => B5, H5 = null, U5 = null;
-function dft(e) {
+function Zft(e) {
- return G5 ??= (async () => {
- let t = ble(e);
- return await A5("batch-dock", e.root), K5 = t, t;
- })(), G5;
+ return H5 ??= (async () => {
- let t = zpe(e);
++ let t = Xpe(e);
+ return await k5("manage-header", e.root, (e) => (e.replaceChildren(), e)), U5 = t, t;
+ })(), H5;
}
- var Qft = () => K5, q5 = null;
-var fft = () => U5, W5 = null, G5 = null;
-function pft(e) {
++var Qft = () => U5, W5 = null, G5 = null;
+function $ft(e) {
- return q5 ??= (async () => {
- Iue(e), await A5("glow-picker", e.root);
- })(), q5;
+ return W5 ??= (async () => {
- let t = sle(e);
++ let t = vle(e);
+ return await k5("batch-dock", e.root), G5 = t, t;
+ })(), W5;
+ }
-var mft = () => G5, K5 = null;
-function hft(e) {
++var ept = () => G5, K5 = null;
++function tpt(e) {
+ return K5 ??= (async () => {
- Cue(e), await k5("glow-picker", e.root);
++ Pue(e), await k5("glow-picker", e.root);
+ })(), K5;
}
- function ept(e, t, n, r) {
- zft(e, t), Vft(n, r);
-function gft(e, t, n, r) {
- tft(e, t), rft(n, r);
++function npt(e, t, n, r) {
++ Vft(e, t), Uft(n, r);
}
//#endregion
//#region src/application/effects.ts
- var tpt = class {
-var _ft = class {
++var rpt = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@@ -105852,9 -104862,9 +105864,9 @@@
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
- }, J5 = new tpt();
- function npt() {
- return J5.dispose(), J5 = new tpt(), J5;
-}, q5 = new _ft();
-function vft() {
- return q5.dispose(), q5 = new _ft(), q5;
++}, q5 = new rpt();
++function ipt() {
++ return q5.dispose(), q5 = new rpt(), q5;
}
//#endregion
//#region src/application/receipts.js
@@@ -105868,13 -104878,10 +105880,13 @@@ var J5 =
rollSeed: void 0,
seededSample: void 0
};
- function rpt() {
- zft(R("#toasts"), {
-function yft() {
- J5.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), J5.toastSeq = 0, J5.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
++function apt() {
++ Vft(R("#toasts"), {
+ success: z("check"),
+ error: z("circle-alert")
- }), Y5.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), Y5.toastSeq = 0, Y5.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++Y5.toastSeq}`, o = (e, t, n, r) => {
- Ga(i || (t ? "error" : "success")), ept(R("#toasts"), {
++ }), J5.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : B(e && typeof e == "object" ? e.text ?? "" : e ?? ""), J5.toastSeq = 0, J5.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++J5.toastSeq}`, o = (e, t, n, r) => {
- Ga(i || (t ? "error" : "success")), gft(R("#toasts"), {
++ Ga(i || (t ? "error" : "success")), npt(R("#toasts"), {
success: z("check"),
error: z("circle-alert")
}, a, {
@@@ -105908,15 -104915,15 +105920,15 @@@
}
} : null
}), r;
- }, Y5.actionFailure = (e, t) => Y5.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), Y5.rollSeed = () => mn(), Y5.seededSample = (e, t, n, r = (e) => e.k) => {
- }, J5.actionFailure = (e, t) => J5.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), J5.rollSeed = () => hn(), J5.seededSample = (e, t, n, r = (e) => e.k) => {
++ }, J5.actionFailure = (e, t) => J5.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), J5.rollSeed = () => mn(), J5.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
- let i = new Set([...e].sort((e, t) => mn(n, r(e)) - mn(n, r(t))).slice(0, t).map(r));
+ let i = new Set([...e].sort((e, t) => pn(n, r(e)) - pn(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
//#endregion
//#region src/react/catalog-grid/catalog-state.ts
- var ipt = [
-var bft = [
++var opt = [
"loc",
"creator",
"studio",
@@@ -105936,11 -104943,11 +105948,11 @@@
"folder",
"folder_recursive"
];
- function apt(e, t, n, r = n.defaultSort) {
-function xft(e, t, n, r = n.defaultSort) {
-- return fE(e, t, n.defaultSort, n.defaultSortDirection, r);
++function spt(e, t, n, r = n.defaultSort) {
++ return mE(e, t, n.defaultSort, n.defaultSortDirection, r);
}
- function opt(e, t, n) {
-function Sft(e, t, n) {
- let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = Vt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
++function cpt(e, t, n) {
+ let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = Bt(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
creator: o("creator") || "",
@@@ -105953,8 -104960,8 +105965,8 @@@
dur_max: o("dur_max") || "",
orient: o("orient") || "",
region: o("region") || "",
- state: Bt[r] || o("state") || "",
- ...xft(o("sort"), o("dir"), t),
+ state: zt[r] || o("state") || "",
- ...apt(o("sort"), o("dir"), t),
++ ...spt(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@@ -105964,18 -104971,18 +105976,18 @@@
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
- function spt(e, t) {
-function Cft(e, t) {
++function lpt(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
- function cpt(e) {
-function wft(e) {
- let t = zt[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of bft) {
++function upt(e) {
+ let t = Rt[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of ipt) {
++ for (let t of opt) {
let r = e[t];
-- r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== lE(e.sort ?? "")) && n.set(t, r);
++ r && (t !== "tag_match" || r !== "all") && (t !== "dir" || r !== dE(e.sort ?? "")) && n.set(t, r);
}
- return !zt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
+ return !Rt[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
- function lpt(e, t, n) {
-function Tft(e, t, n) {
++function dpt(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@@ -105990,7 -104997,7 +106002,7 @@@
region: "",
state: "",
sort: t.defaultSort,
-- dir: dE(t.defaultSort, t.defaultSort, t.defaultSortDirection),
++ dir: pE(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@@ -106000,7 -105007,7 +106012,7 @@@
folder_recursive: ""
};
}
- function upt(e) {
-function Eft(e) {
++function fpt(e) {
return {
state: e,
barsContext: {
@@@ -106012,7 -105019,7 +106024,7 @@@
}
//#endregion
//#region src/react/catalog-grid/catalog-controller.ts
- var dpt = class {
-var Dft = class {
++var ppt = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@@ -106057,56 -105064,56 +106069,56 @@@
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
- }, X5 = 3e4, Z5 = 0, fpt = (e, t = Z5) => [
-}, Y5 = 3e4, X5 = 0, Oft = (e, t = X5) => [
++}, Y5 = 3e4, X5 = 0, mpt = (e, t = X5) => [
"facets",
e,
t
- ], ppt = (e, t, n = Z5) => [
-], kft = (e, t, n = X5) => [
++], hpt = (e, t, n = X5) => [
"tops",
e,
t,
n
- ], mpt = (e, t = Z5) => [
-], Aft = (e, t = X5) => [
++], gpt = (e, t = X5) => [
"tops",
e,
t
];
- async function hpt(e) {
-async function jft(e) {
- let t = String(e), n = await It(`/api/tops?${t}`), r = new URLSearchParams(t);
- return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await It(`/api/tops?${r}`));
-}
-function Mft(e, t) {
- return Promise.all([W.fetchQuery({
- queryKey: Oft(e),
- queryFn: () => It(`/api/facets${e ? `?${e}` : ""}`),
++async function _pt(e) {
+ let t = String(e), n = await Ft(`/api/tops?${t}`), r = new URLSearchParams(t);
+ return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Ft(`/api/tops?${r}`));
+}
- function gpt(e, t) {
++function vpt(e, t) {
+ return Promise.all([U.fetchQuery({
- queryKey: fpt(e),
++ queryKey: mpt(e),
+ queryFn: () => Ft(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: X5
+ staleTime: Y5
- }), W.fetchQuery({
- queryKey: kft(t, e),
- queryFn: () => jft(t),
+ }), U.fetchQuery({
- queryKey: ppt(t, e),
- queryFn: () => hpt(t),
- staleTime: X5
++ queryKey: hpt(t, e),
++ queryFn: () => _pt(t),
+ staleTime: Y5
})]);
}
- function _pt(e) {
-function Nft(e) {
- return W.fetchQuery({
- queryKey: Aft(e),
- queryFn: () => jft(e),
++function ypt(e) {
+ return U.fetchQuery({
- queryKey: mpt(e),
- queryFn: () => hpt(e),
- staleTime: X5
++ queryKey: gpt(e),
++ queryFn: () => _pt(e),
+ staleTime: Y5
});
}
- function Q5() {
- Z5 += 1;
+ function Z5() {
+ X5 += 1;
let e = (e) => e.state.fetchStatus === "idle";
- W.removeQueries({
+ U.removeQueries({
queryKey: ["facets"],
predicate: e
- }), W.removeQueries({
+ }), U.removeQueries({
queryKey: ["tops"],
predicate: e
});
}
//#endregion
//#region src/application/navigation-items.ts
- var vpt = [
-var Pft = [
++var bpt = [
[
"",
"首页",
@@@ -106203,18 -105210,18 +106215,18 @@@
"Peach 配置",
"folder-cog"
]
- ], ypt = [
-], Fft = [
++], xpt = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
- ], bpt = (e) => $5.filter(([t]) => ypt.includes(t) && (t !== "configuration" || e)), xpt = $5.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
-], Ift = (e) => Q5.filter(([t]) => Fft.includes(t) && (t !== "configuration" || e)), Lft = Q5.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
++], Spt = (e) => Q5.filter(([t]) => xpt.includes(t) && (t !== "configuration" || e)), Cpt = Q5.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
- ]]), Spt = [...vpt, ...xpt], Cpt = {
-]]), Rft = [...Pft, ...Lft], zft = {
++]]), wpt = [...bpt, ...Cpt], Tpt = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@@ -106225,11 -105232,11 +106237,11 @@@
};
//#endregion
//#region src/react/index/index-controller.ts
- function wpt({ kind: e, q: t, scope: n, view: r, category: i }) {
-function Bft({ kind: e, q: t, scope: n, view: r, category: i }) {
++function Ept({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
- function Tpt(e, t, n) {
-function Vft(e, t, n) {
++function Dpt(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
html: va(e.k, r ? {
@@@ -106242,20 -105249,20 +106254,20 @@@
face: ba(e.avatar_focus)
};
}
- function Ept(e) {
-function Hft(e) {
++function Opt(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${B(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Gi({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${B(n)}</span>${r}`;
}
- function Dpt(e) {
-function Uft(e) {
++function kpt(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(Ni(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(wpt(t), n);
- e.route(Bft(t), n);
++ e.route(Ept(t), n);
},
- personAvatar: Tpt,
- authorAvatar: Ept,
- personAvatar: Vft,
- authorAvatar: Hft,
++ personAvatar: Dpt,
++ authorAvatar: Opt,
openFollowAuthor(n) {
t(Pi(e.followView(), n));
},
@@@ -106266,27 -105273,27 +106278,27 @@@
}
//#endregion
//#region src/react/follow-manage/manage-route.ts
- var Opt = [
-var Wft = [
++var Apt = [
"list",
"add",
"feeds"
];
- function kpt(e) {
-function Gft(e) {
++function jpt(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: Opt.find((e) => e === n) || "list",
- tab: Wft.find((e) => e === n) || "list",
++ tab: Apt.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 Apt(e) {
-function Kft(e) {
++function Mpt(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 jpt(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" : Apt({
- tab: t || kpt(e).tab,
-function qft(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" : Kft({
- tab: t || Gft(e).tab,
++function Npt(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" : Mpt({
++ tab: t || jpt(e).tab,
page: 1,
sort: "",
dir: ""
@@@ -106294,7 -105301,7 +106306,7 @@@
}
//#endregion
//#region src/application/source-action.ts
- function Mpt(e) {
-function Jft(e) {
++function Ppt(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@@ -106310,61 -105317,61 +106322,61 @@@
}
//#endregion
//#region src/react/entity-page/entity-route.ts
- var e7 = () => Object.fromEntries(uV.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
- function Npt(e, t) {
- let n = new URLSearchParams(e), r = e7();
- for (let e of uV) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
-var $5 = () => Object.fromEntries(BB.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function Yft(e, t) {
++var $5 = () => Object.fromEntries(mV.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
++function Fpt(e, t) {
+ let n = new URLSearchParams(e), r = $5();
- for (let e of BB) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
++ for (let e of mV) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
-- ...fE(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
++ ...mE(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
- function Ppt(e) {
-function Xft(e) {
++function Ipt(e) {
let t = new URLSearchParams();
- for (let n of uV) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== lE(e.sort || "")) && t.set(n, e[n]);
- for (let n of BB) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== lE(e.sort || "")) && t.set(n, e[n]);
++ for (let n of mV) e[n] && (n !== "sort" || e[n] !== "new") && (n !== "dir" || e[n] !== dE(e.sort || "")) && t.set(n, e[n]);
return t.toString();
}
- function Fpt(e) {
-function Zft(e) {
++function Lpt(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
- function Ipt(e, t) {
- let n = new URLSearchParams(Ppt(e));
-function Qft(e, t) {
- let n = new URLSearchParams(Xft(e));
++function Rpt(e, t) {
++ let n = new URLSearchParams(Ipt(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 Lpt(e, t, n, r) {
- let i = Ipt(n, r);
-function $ft(e, t, n, r) {
- let i = Qft(n, r);
- return Wt(e, t) + (i ? `?${i}` : "");
++function zpt(e, t, n, r) {
++ let i = Rpt(n, r);
+ return Ut(e, t) + (i ? `?${i}` : "");
}
- function Rpt() {
-function ept() {
++function Bpt() {
let e = "";
return {
fresh(t, n) {
- return e = Wt(t, n), e;
+ return e = Ut(t, n), e;
},
read(t, n, r, i) {
- let a = e === Wt(t, n) && !r;
+ let a = e === Ut(t, n) && !r;
e = "";
- let o = a ? e7() : { ...Npt(r, i) };
- let o = a ? $5() : { ...Yft(r, i) };
++ let o = a ? $5() : { ...Fpt(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : Fpt(r)
- } : Zft(r)
++ } : Lpt(r)
};
}
};
}
//#endregion
//#region src/react/entity-page/photo-surface.ts
- function zpt(e, t) {
-function tpt(e, t) {
++function Vpt(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
- function Bpt(e) {
-function npt(e) {
++function Hpt(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);
@@@ -106387,12 -105394,12 +106399,12 @@@
}
//#endregion
//#region src/react/entity-page/entity-controller.ts
- function Vpt(e, t, n) {
-function rpt(e, t, n) {
++function Upt(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(Lpt(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
- if (a && e.route($ft(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
++ if (a && e.route(zpt(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@@ -106419,7 -105426,7 +106431,7 @@@
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
-- let n = c(), i = uE(e, n.sort || "new", n.dir || "");
++ let n = c(), i = fE(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@@ -106471,7 -105478,7 +106483,7 @@@
}
//#endregion
//#region src/react/entity-page/entity-loading.ts
- function Hpt(e) {
-function ipt(e) {
++function Wpt(e) {
return async (t, n, r) => {
!e.shapesReady(t, n) && (await e.waitShapes(), !r()) || (e.paintSkeleton(t, n), e.resetView(), e.loadShapes().then(() => {
r() && e.syncParts(t, n);
@@@ -106480,7 -105487,7 +106492,7 @@@
}
//#endregion
//#region src/react/entity-page/entity-portrait.ts
- function Upt(e, t) {
-function apt(e, t) {
++function Gpt(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? _a({
kind: e,
id: t.id,
@@@ -106502,11 -105509,11 +106514,11 @@@
}
//#endregion
//#region src/react/entity-page/entity-application.ts
- function Wpt(e) {
- let t = Rpt(), n = {
-function opt(e) {
- let t = ept(), n = {
++function Kpt(e) {
++ let t = Bpt(), n = {
...e.helpers,
- portraitImg: Upt
- }, r = Vpt(e.controller, n, e.actions);
- portraitImg: apt
- }, r = rpt(e.controller, n, e.actions);
++ portraitImg: Gpt
++ }, r = Upt(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@@ -106515,16 -105522,16 +106527,16 @@@
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: Hpt(e.loading),
- photos: Bpt(e.photos)
- loading: ipt(e.loading),
- photos: npt(e.photos)
++ loading: Wpt(e.loading),
++ photos: Hpt(e.photos)
};
}
//#endregion
//#region src/card-art/feed-identity.ts
- function Gpt(e) {
-function spt(e) {
++function qpt(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="${B(e.code)}" data-actor="${B(t.source_actor_id)}" data-name="${B(t.name)}"` : "", i = n ? "" : va(t.name, t, null);
- return "id" in t && t.id ? `<a class="mav"${r} href="${B(Wt("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;
+ return "id" in t && t.id ? `<a class="mav"${r} href="${B(Ut("performer", t.name, t.id))}" aria-label="打开女优页:${B(t.name)}">${i}</a>` : `<span class="mav"${r} title="${B(t.name)}">${i}</span>`;
}).join("");
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
@@@ -106546,41 -105553,41 +106558,41 @@@ var e7 =
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
- function Kpt(e) {
-function cpt(e) {
++function Jpt(e) {
return e.has_cover ? Ca(e, "big") : e.cover_url ? Ca(e, "big").replace(/ src="[^"]*"/, ` src="${B(e.cover_url)}" referrerpolicy="no-referrer" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"无封面\" data-drop-class=\"nopic\"") : e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Po("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>";
}
- function qpt(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = Kpt(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? Dk({
-function lpt(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = cpt(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? Dk({
++function Ypt(e) {
++ let t = [e.performers && `<span class="feednewperformers" title="${B(e.performers)}">${B(e.performers)}</span>`, e.release_date && `<span>${B(e.release_date)}</span>`].filter(Boolean).join(""), n = Jpt(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? kk({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : B(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${B(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
-- ${a}<div class="pic" style="--card-ratio:${TE}">${n}
++ ${a}<div class="pic" style="--card-ratio:${DE}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${B(r)}">${z("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${B(r)}">${z("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${B(r)}">${z("check")}</button></div></div>
- <div class="meta">${Gpt(e)}<div class="mtext"><span class="t">${i}</span>
- <div class="meta">${spt(e)}<div class="mtext"><span class="t">${i}</span>
++ <div class="meta">${qpt(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
- function Jpt() {
-function upt() {
++function Xpt() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- t7.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Qt(e)}`, t.parts]));
- e7.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${$t(e)}`, t.parts]));
++ e7.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Qt(e)}`, t.parts]));
} catch {}
}
- async function n7() {
- let e = J5, t = await Ft("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (t7.entityShapesComplete = !0, t7.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Qt(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), r7(location.pathname) && Ypt(R("#feedNew"))), t7.entityShapes;
+ async function t7() {
- let e = q5, t = await It("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (e7.entityShapesComplete = !0, e7.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${$t(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), n7(location.pathname) && dpt(R("#feedNew"))), e7.entityShapes;
++ let e = q5, t = await Ft("/api/entity/shapes", { signal: e.signal }).catch(() => null);
++ return e.isActive && t && !t.error && (e7.entityShapesComplete = !0, e7.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Qt(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && (X.homeHasFeed = t.home.feed), n7(location.pathname) && Zpt(R("#feedNew"))), e7.entityShapes;
}
- function Ypt(e) {
- !e || lk(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = t7.feedNewSkeletonHtml())));
-function dpt(e) {
- !e || lk(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = e7.feedNewSkeletonHtml())));
++function Zpt(e) {
++ !e || dk(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = e7.feedNewSkeletonHtml())));
}
- function Xpt(e, t) {
-function fpt(e, t) {
++function Qpt(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Mo(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@@ -106588,54 -105595,57 +106600,54 @@@
actionHref: "/sources"
});
}
- function Zpt(e) {
-function ppt(e) {
++function $pt(e) {
let t = e && !e.error && e.items || [];
- return Xpt(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(qpt).join("")}</div>`;
- return fpt(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(lpt).join("")}</div>`;
++ return Qpt(e?.cover_network, t) + `<div class="feednewrow srow">${t.map(Ypt).join("")}</div>`;
}
- function Qpt(e) {
- e && (_9(e), Z.appSettings.feedAutoScroll && bs(e));
-function mpt(e) {
++function emt(e) {
+ e && (g9(e), Z.appSettings.feedAutoScroll && bs(e));
}
- function r7(e) {
+ function n7(e) {
- return Vt(e) && e !== "/junk-files";
+ return Bt(e) && e !== "/junk-files";
}
- function $pt() {
-function hpt(e) {
- return Vt(e) && e !== "/junk-files";
-}
-function gpt() {
++function tmt() {
let e = R("#feedNew");
- lk(e) ? pk(e, { revision: ++t7.feedRevision }) : (Ypt(e), fk("feed-new", {
- lk(e) ? pk(e, { revision: ++e7.feedRevision }) : (dpt(e), fk("feed-new", {
++ dk(e) ? hk(e, { revision: ++e7.feedRevision }) : (Zpt(e), mk("feed-new", {
host: e,
- revision: t7.feedRevision,
- helpers: t7.feedNewHelpers,
- actions: t7.feedNewActions
+ revision: e7.feedRevision,
+ helpers: e7.feedNewHelpers,
+ actions: e7.feedNewActions
}, {
container: e,
- isCurrent: () => r7(location.pathname)
+ isCurrent: () => n7(location.pathname)
}));
}
- function i7() {
+ function r7() {
let e = R("#feedNew");
-- e.querySelectorAll(".feednewrow").forEach(xs), mk(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
++ e.querySelectorAll(".feednewrow").forEach(xs), gk(e), e.hidden = !0, e.innerHTML = "", e.removeAttribute("aria-busy");
}
- function emt() {
- t7.feedRevision += 1, pk(R("#feedNew"), { revision: t7.feedRevision }), s7({ feedRevision: t7.feedRevision });
-function _pt() {
- e7.feedRevision += 1, pk(R("#feedNew"), { revision: e7.feedRevision }), o7({ feedRevision: e7.feedRevision });
++function nmt() {
++ e7.feedRevision += 1, hk(R("#feedNew"), { revision: e7.feedRevision }), o7({ feedRevision: e7.feedRevision });
}
- function tmt() {
-function vpt() {
++function rmt() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? bs(e) : xs(e));
}
- function nmt([e]) {
- R("#index").toggleAttribute("data-hero-wide", e.contentRect.width >= t7.HERO_WIDE_PX);
-function ypt([e]) {
++function imt([e]) {
+ R("#index").toggleAttribute("data-hero-wide", e.contentRect.width >= e7.HERO_WIDE_PX);
}
- function rmt() {
- t7.FEED_SKELETON_CARDS = 8, t7.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${TE}"></div>
-function bpt() {
- e7.FEED_SKELETON_CARDS = 8, e7.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${TE}"></div>
++function amt() {
++ e7.FEED_SKELETON_CARDS = 8, e7.feedNewSkeletonHtml = () => `<div class="feednewrow srow" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${DE}"></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(t7.FEED_SKELETON_CARDS)}</div>`, t7.entityShapes = null, t7.entityShapesComplete = !1, t7.hasEntityShape = (e, t) => t7.entityShapesComplete || !!t7.entityShapes?.has(`${e}/${Qt(t)}`), t7.hasEntityPart = (e, t, n) => !!t && !!t7.entityShapes?.get(`${e}/${Qt(t)}`)?.includes(n), t7.feedNewSkeletonSection = () => `<section class="feednew">${t7.feedNewSkeletonHtml()}</section>`, t7.COSTAR_SKELETON_PEOPLE = 12, t7.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(t7.COSTAR_SKELETON_PEOPLE)}</div></div>`, t7.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, t7.feedRevision = 0, t7.feedNewHelpers = {
- feedRowHtml: Zpt,
- wireFeedRow: (e) => Qpt(e)
- }, t7.feedNewActions = { settled: (e) => {
- <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(e7.FEED_SKELETON_CARDS)}</div>`, e7.entityShapes = null, e7.entityShapesComplete = !1, e7.hasEntityShape = (e, t) => e7.entityShapesComplete || !!e7.entityShapes?.has(`${e}/${$t(t)}`), e7.hasEntityPart = (e, t, n) => !!t && !!e7.entityShapes?.get(`${e}/${$t(t)}`)?.includes(n), e7.feedNewSkeletonSection = () => `<section class="feednew">${e7.feedNewSkeletonHtml()}</section>`, e7.COSTAR_SKELETON_PEOPLE = 12, e7.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(e7.COSTAR_SKELETON_PEOPLE)}</div></div>`, e7.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, e7.feedRevision = 0, e7.feedNewHelpers = {
- feedRowHtml: ppt,
- wireFeedRow: (e) => mpt(e)
++ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(e7.FEED_SKELETON_CARDS)}</div>`, e7.entityShapes = null, e7.entityShapesComplete = !1, e7.hasEntityShape = (e, t) => e7.entityShapesComplete || !!e7.entityShapes?.has(`${e}/${Qt(t)}`), e7.hasEntityPart = (e, t, n) => !!t && !!e7.entityShapes?.get(`${e}/${Qt(t)}`)?.includes(n), e7.feedNewSkeletonSection = () => `<section class="feednew">${e7.feedNewSkeletonHtml()}</section>`, e7.COSTAR_SKELETON_PEOPLE = 12, e7.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(e7.COSTAR_SKELETON_PEOPLE)}</div></div>`, e7.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, e7.feedRevision = 0, e7.feedNewHelpers = {
++ feedRowHtml: $pt,
++ wireFeedRow: (e) => emt(e)
+ }, e7.feedNewActions = { settled: (e) => {
X.homeHasFeed = e;
- } }, t7.HERO_WIDE_PX = 900, J5.resize(nmt).observe(R("#index"));
- } }, e7.HERO_WIDE_PX = 900, q5.resize(ypt).observe(R("#index"));
++ } }, e7.HERO_WIDE_PX = 900, q5.resize(imt).observe(R("#index"));
}
//#endregion
//#region src/entity-skeleton.ts
- function imt(e, t, n, r = "") {
-function xpt(e, t, n, r = "") {
++function omt(e, t, n, r = "") {
let i = e === "studio" || e === "agency";
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true"><div class="peach-react contents">
@@@ -106650,8 -105660,8 +106662,8 @@@
}
//#endregion
//#region src/filter-controls-skeleton.ts
- function amt(e, t) {
- let n = "disabled data-skeleton-action", r = t ? `<span data-entity-layout="" class="${HF}" role="radiogroup" aria-label="${B(t.label)}">${t.options.map(([e, r, i]) => `<button type="button" class="${UF}" role="radio" aria-label="${B(r)}" aria-checked="${e === t.value}" data-glass-segment=""${e === t.value ? " data-selected=\"\"" : ""} ${n}>${z(i)}</button>`).join("")}</span>` : "";
-function Spt(e, t) {
- let n = "disabled data-skeleton-action", r = t ? `<span data-entity-layout="" class="${sF}" role="radiogroup" aria-label="${B(t.label)}">${t.options.map(([e, r, i]) => `<button type="button" class="${cF}" role="radio" aria-label="${B(r)}" aria-checked="${e === t.value}" data-glass-segment=""${e === t.value ? " data-selected=\"\"" : ""} ${n}>${z(i)}</button>`).join("")}</span>` : "";
++function smt(e, t) {
++ let n = "disabled data-skeleton-action", r = t ? `<span data-entity-layout="" class="${GF}" role="radiogroup" aria-label="${B(t.label)}">${t.options.map(([e, r, i]) => `<button type="button" class="${KF}" role="radio" aria-label="${B(r)}" aria-checked="${e === t.value}" data-glass-segment=""${e === t.value ? " data-selected=\"\"" : ""} ${n}>${z(i)}</button>`).join("")}</span>` : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" aria-label="换一批" ${n}>${z("shuffle")}</button>${r}${e.map((e) => `<button type="button" data-entity-sort="${B(e.key)}" aria-pressed="${e.pressed}" ${n}>${B(e.label)}${e.dir ? z(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
//#endregion
@@@ -106681,16 -105691,16 +106693,16 @@@ var i7 =
sourceToolButtons: void 0,
application: void 0
};
- function o7() {
- let e = ck(R("#index"));
+ function a7() {
- let e = ck(R("#index"));
++ let e = uk(R("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
- function s7(e) {
- a7.entityPageCurrent() && pk(R("#index"), e);
+ function o7(e) {
- i7.entityPageCurrent() && pk(R("#index"), e);
++ i7.entityPageCurrent() && hk(R("#index"), e);
}
- function c7() {
+ function s7() {
if (Bc.type === "item") return Bc;
- let e = o7();
+ let e = a7();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@@ -106702,76 -105712,76 +106714,76 @@@
}
return Bc;
}
- function l7(e, t, n = V7()) {
- return mht(n).map(([n, r]) => {
- let i = e === n, a = uE(n, e, t);
+ function c7(e, t, n = B7()) {
- return jmt(n).map(([n, r]) => {
- let i = e === n, a = uE(n, e, t);
++ return ght(n).map(([n, r]) => {
++ let i = e === n, a = fE(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Dle(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Dle(a.sort, a.dir) : ""}排序` : ""
- dir: i && mle(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? mle(a.sort, a.dir) : ""}排序` : ""
++ dir: i && Tle(n, t) ? t === "asc" ? "asc" : "desc" : "",
++ ariaLabel: a ? `按${r}${a.dir ? Tle(a.sort, a.dir) : ""}排序` : ""
};
});
}
- function u7(e, t, n, r = a7.EMPTY_ENTITY_MEDIA, i = {}) {
- return a7.application.route(e, t, n, r, i);
+ function l7(e, t, n, r = i7.EMPTY_ENTITY_MEDIA, i = {}) {
+ return i7.application.route(e, t, n, r, i);
}
- function d7() {
- return zpt({
- entityWall: a7.entityPageWall,
- entityCurrent: a7.entityPageCurrent(),
+ function u7() {
- return tpt({
++ return Vpt({
+ entityWall: i7.entityPageWall,
+ entityCurrent: i7.entityPageCurrent(),
indexVisible: !R("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
statsVisible: !R("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
- function f7() {
- a7.photos.sync();
+ function d7() {
+ i7.photos.sync();
}
- function omt() {
- d7() ? wue(OE()) : NE();
-function Cpt() {
- u7() ? due(OE()) : NE();
++function cmt() {
++ u7() ? Sue(AE()) : FE();
}
- function smt(e) {
- a7.photos.setSize(e);
-function wpt(e) {
++function lmt(e) {
+ i7.photos.setSize(e);
}
- var cmt = Mpt({
-var Tpt = Jft({
- request: (e) => It("/api/reveal", {
++var umt = Ppt({
+ request: (e) => Ft("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => Y5.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => a7.sourceHint(e instanceof Error ? e.message : String(e))
+ success: () => J5.toast({ text: "已在资源管理器中显示" }),
+ failureText: (e) => i7.sourceHint(e instanceof Error ? e.message : String(e))
});
- async function lmt(e) {
-async function Ept(e) {
++async function dmt(e) {
let t = { textContent: "" };
- return await cmt(e, t), t.textContent;
- return await Tpt(e, t), t.textContent;
++ return await umt(e, t), t.textContent;
}
- async function umt(e) {
-async function Dpt(e) {
++async function fmt(e) {
let t = { textContent: "" }, n = [];
- return await dmt(e, t, (e) => {
- return await Opt(e, t, (e) => {
++ return await pmt(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
- async function dmt(e, t, n) {
-async function Opt(e, t, n) {
++async function pmt(e, t, n) {
t.textContent = "正在核对目录…";
try {
- let r = await It("/api/purge-missing", {
+ let r = await Ft("/api/purge-missing", {
method: "POST",
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = a7.sourceHint(r.error);
+ t.textContent = i7.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${a7.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${i7.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), Y5.actionReceipt(a7.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), J5.actionReceipt(i7.syncedText(r), { undo: e.length ? async () => {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: e,
@@@ -106782,22 -105792,22 +106794,22 @@@
restored: e.length
});
} : null });
- } else Y5.actionReceipt("目录核对完成,无需改动");
+ } else J5.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = a7.sourceHint(e.message), Y5.actionFailure("核对目录", e);
+ t.textContent = i7.sourceHint(e.message), J5.actionFailure("核对目录", e);
}
}
- function fmt(e) {
- return `<div class="srctools">${a7.sourceToolButtons(e)}
-function kpt(e) {
++function mmt(e) {
+ return `<div class="srctools">${i7.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
- function pmt(e, t) {
-function Apt(e, t) {
++function hmt(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && J5.handler(r, "onclick", () => cmt(Number(r.dataset.reveal), n, { button: r })), i && J5.handler(i, "onclick", () => dmt(Number(i.dataset.sync), n, t));
- r && q5.handler(r, "onclick", () => Tpt(Number(r.dataset.reveal), n, { button: r })), i && q5.handler(i, "onclick", () => Opt(Number(i.dataset.sync), n, t));
++ r && q5.handler(r, "onclick", () => umt(Number(r.dataset.reveal), n, { button: r })), i && q5.handler(i, "onclick", () => pmt(Number(i.dataset.sync), n, t));
}
- async function mmt(e, t) {
-async function jpt(e, t) {
++async function gmt(e, t) {
let n = zs({
title: "添加别名",
description: "图库按名字存图,多记一个写法就多一批候选;这里添的名字也能提为统称。",
@@@ -106833,21 -105843,21 +106845,21 @@@
alias: a.alias,
remove: !0
});
- } }) : Y5.actionReceipt(`${a?.alias} 已经是这条实体的名字`));
+ } }) : J5.actionReceipt(`${a?.alias} 已经是这条实体的名字`));
}
- function hmt(e, t) {
- let n = ["performer", "studio"].includes(e) && t7.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>${yo()}${e === "agency" ? "" : amt(l7(W.sort, W.dir, n), n ? {
-function Mpt(e, t) {
- let n = ["performer", "studio"].includes(e) && e7.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>${yo()}${e === "agency" ? "" : Spt(c7(G.sort, G.dir, n), n ? {
++function _mt(e, t) {
++ let n = ["performer", "studio"].includes(e) && e7.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>${yo()}${e === "agency" ? "" : smt(c7(W.sort, W.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
-- value: DE(),
-- options: wE
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" disabled data-skeleton-action>${z("play")}</button><button type="button" data-media-view="photos" aria-label="照片" disabled data-skeleton-action>${z("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="${B(e.k)}" aria-pressed="${W.state === e.k}" disabled data-skeleton-action>${B(e.label)}</button>`).join("")}</div>`, a = imt(e, r, e === "agency" ? Yo({
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" disabled data-skeleton-action>${z("play")}</button><button type="button" data-media-view="photos" aria-label="照片" disabled data-skeleton-action>${z("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="${B(e.k)}" aria-pressed="${G.state === e.k}" disabled data-skeleton-action>${B(e.label)}</button>`).join("")}</div>`, a = xpt(e, r, e === "agency" ? Yo({
++ value: kE(),
++ options: EE
++ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" disabled data-skeleton-action>${z("play")}</button><button type="button" data-media-view="photos" aria-label="照片" disabled data-skeleton-action>${z("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="${B(e.k)}" aria-pressed="${W.state === e.k}" disabled data-skeleton-action>${B(e.label)}</button>`).join("")}</div>`, a = omt(e, r, e === "agency" ? Yo({
kind: "performers",
- layout: S7.peopleIndexLayout()
- }) : NK("正在读取作品", {
+ layout: x7.peopleIndexLayout()
- }) : uK("正在读取作品", {
++ }) : LK("正在读取作品", {
cards: !0,
className: "catalog-skeleton postercard-skeleton",
-- cardRatio: ME(jE({
++ cardRatio: PE(NE({
active: n,
home: !1,
portrait: !1
@@@ -106861,17 -105871,17 +106873,17 @@@ function f7(e, t)
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && t7.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", t7.costarSkeletonFoot())), r(n.querySelector(".feednew"), t7.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", t7.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && t7.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", t7.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && e7.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", e7.costarSkeletonFoot())), r(n.querySelector(".feednew"), e7.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", e7.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && e7.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", e7.factsSkeleton()));
}
- function gmt(e) {
-function Npt(e) {
- let t = Ht[e] || e, n = Z8[t] || "条目", r = Z8[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
++function vmt(e) {
+ let t = Vt[e] || e, n = t5[t] || "条目", r = t5[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
R("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
- function m7(e, t) {
- j9(a7.application.fresh(e, t));
+ function p7(e, t) {
+ A9(i7.application.fresh(e, t));
}
- function _mt() {
- a7.ENTITY_FILTER_KEYS = [
-function Ppt() {
++function ymt() {
+ i7.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@@ -106881,41 -105891,41 +106893,41 @@@
"orient",
"sort",
"dir"
- ], a7.emptyEntityFilters = e7, a7.parseEntityFilters = (e) => Npt(e, {
- ], i7.emptyEntityFilters = $5, i7.parseEntityFilters = (e) => Yft(e, {
++ ], i7.emptyEntityFilters = $5, i7.parseEntityFilters = (e) => Fpt(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), a7.entityFilterSearch = Ppt, a7.cloneBarsContext = (e) => e && e.type === "entity" ? {
- }), i7.entityFilterSearch = Xft, i7.cloneBarsContext = (e) => e && e.type === "entity" ? {
++ }), i7.entityFilterSearch = Ipt, i7.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, a7.activeFilterState = () => {
- let e = c7();
+ } : e, i7.activeFilterState = () => {
+ let e = s7();
- return e.type === "home" ? G : e.filters;
- }, R("#q").value = G.q, X.rememberSearchValue();
+ return e.type === "home" ? W : e.filters;
+ }, R("#q").value = W.q, X.rememberSearchValue();
}
- function vmt() {
- a7.entityPageView = "", a7.entityPageWall = !1, a7.entityPageRevision = 0, a7.entityPageCurrent = () => !!o7(), a7.entityPageLive = (e, t) => {
- let n = o7();
-function Fpt() {
++function bmt() {
+ i7.entityPageView = "", i7.entityPageWall = !1, i7.entityPageRevision = 0, i7.entityPageCurrent = () => !!a7(), i7.entityPageLive = (e, t) => {
+ let n = a7();
return !!n && !R("#index").hidden && n.props.kind === e && n.props.name === t;
- }, a7.EMPTY_ENTITY_MEDIA = {
+ }, i7.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, a7.parseMediaView = Fpt, a7.entityViewSearch = Ipt, a7.entityBodyCanLoadMore = () => !R("#index").hidden && R("#stats").hidden, a7.entityBodySkeleton = () => f9(), a7.entityPageHelpers = {
- }, i7.parseMediaView = Zft, i7.entityViewSearch = Qft, i7.entityBodyCanLoadMore = () => !R("#index").hidden && R("#stats").hidden, i7.entityBodySkeleton = () => d9(), i7.entityPageHelpers = {
++ }, i7.parseMediaView = Lpt, i7.entityViewSearch = Rpt, i7.entityBodyCanLoadMore = () => !R("#index").hidden && R("#stats").hidden, i7.entityBodySkeleton = () => d9(), i7.entityPageHelpers = {
wireDrag: (e) => {
- e && _9(e);
+ e && g9(e);
},
wireScroller: (e) => {
e && ps(e);
},
- wireFeedRow: (e) => Qpt(e),
- feedRowHtml: Zpt,
- receipt: (e, t) => Y5.actionReceipt(e, t),
- failure: (e, t) => Y5.actionFailure(e, t),
- aliasForm: (e, t) => mmt(e, t),
- sourceToolsHtml: (e) => fmt(e),
- wireSourceTools: (e, t) => pmt(e, t),
- comboItems: (e) => Xht(e),
- sortKeys: (e, t, n) => l7(e, t, n)
- }, a7.entityFollowActions = {
- wireFeedRow: (e) => mpt(e),
- feedRowHtml: ppt,
++ wireFeedRow: (e) => emt(e),
++ feedRowHtml: $pt,
+ receipt: (e, t) => J5.actionReceipt(e, t),
+ failure: (e, t) => J5.actionFailure(e, t),
- aliasForm: (e, t) => jpt(e, t),
- sourceToolsHtml: (e) => kpt(e),
- wireSourceTools: (e, t) => Apt(e, t),
- comboItems: (e) => pht(e),
++ aliasForm: (e, t) => gmt(e, t),
++ sourceToolsHtml: (e) => mmt(e),
++ wireSourceTools: (e, t) => hmt(e, t),
++ comboItems: (e) => Qht(e),
+ sortKeys: (e, t, n) => c7(e, t, n)
+ }, i7.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
@@@ -106937,97 -105947,97 +106949,97 @@@
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${z("folder-sync")}</button>`;
}
- function ymt() {
- a7.application = Wpt({
-function Ipt() {
- i7.application = opt({
++function xmt() {
++ i7.application = Kpt({
controller: {
context: () => {
- let e = c7();
+ let e = s7();
return e.type === "entity" ? e : null;
},
- live: (e, t) => a7.entityPageLive(e, t),
- current: () => a7.entityPageCurrent(),
+ live: (e, t) => i7.entityPageLive(e, t),
+ current: () => i7.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
restoreHomeContext: () => ml({ barsContext: {
type: "home",
- filters: G
+ filters: W
} }),
releaseBodyPreviews: () => wc(R("#index [data-entity-body]")),
- push: s7,
+ push: o7,
state: () => ({
- seed: String(G.seed || ""),
- jav: G.jav === "1"
+ seed: String(W.seed || ""),
+ jav: W.jav === "1"
}),
preferences: () => ({
- revision: a7.entityPageRevision,
- feedRevision: t7.feedRevision,
- photoSize: OE(),
- photoLayout: kE(),
- photoLayouts: cue,
+ revision: i7.entityPageRevision,
+ feedRevision: e7.feedRevision,
- photoSize: OE(),
- photoLayout: kE(),
- photoLayouts: Yle,
++ photoSize: AE(),
++ photoLayout: jE(),
++ photoLayouts: oue,
followImagesOnly: !!Z.appSettings.followImagesOnly,
-- javLayout: DE(),
-- javLayouts: wE,
++ javLayout: kE(),
++ javLayouts: EE,
states: X.VIEW_PILLS,
- peopleLayout: S7.peopleIndexLayout(),
- layout: d9(),
+ peopleLayout: x7.peopleIndexLayout(),
+ layout: u9(),
selectMode: Wc,
selected: new Set(Hc),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: _9,
- skeletonHtml: a7.entityBodySkeleton,
- canLoadMore: a7.entityBodyCanLoadMore,
+ wireDrag: g9,
+ skeletonHtml: i7.entityBodySkeleton,
+ canLoadMore: i7.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: a7.entityFollowActions
+ actions: i7.entityFollowActions
}
}),
- changeFilter: e9,
- rollSeed: () => Y5.rollSeed(),
+ changeFilter: $7,
+ rollSeed: () => J5.rollSeed(),
writeSeed: (e) => {
- G.seed = e, hl();
+ W.seed = e, hl();
},
- setJavLayout: ght,
- setJavLayout: Nmt,
-- javLayout: DE,
- setPhotoLayout: _ue,
- syncPhotoWalls: f7,
- openEntity: m7,
- photoViewActive: d7,
- setPhotoLayout: iue,
++ setJavLayout: vht,
++ javLayout: kE,
++ setPhotoLayout: hue,
+ syncPhotoWalls: d7,
+ openEntity: p7,
+ photoViewActive: u7,
recordPainted: (e, t) => {
- a7.entityPageView = e, a7.entityPageWall = t;
+ i7.entityPageView = e, i7.entityPageWall = t;
},
- syncDensity: omt,
- scheduleSticky: J7,
- releasePage: () => mk(R("#index")),
- showMissing: gmt,
- dropBars: Q5
- syncDensity: Cpt,
++ syncDensity: cmt,
+ scheduleSticky: q7,
- releasePage: () => mk(R("#index")),
- showMissing: Npt,
++ releasePage: () => gk(R("#index")),
++ showMissing: vmt,
+ dropBars: Z5
},
loading: {
- shapesReady: (e, t) => t7.hasEntityShape(e, t),
- waitShapes: Qmt,
- paintSkeleton: hmt,
+ shapesReady: (e, t) => e7.hasEntityShape(e, t),
- waitShapes: hmt,
- paintSkeleton: Mpt,
++ waitShapes: eht,
++ paintSkeleton: _mt,
resetView: () => {
- ml({ detailReturnBarsContext: null }), a7.entityPageView = "", a7.entityPageWall = !1;
+ ml({ detailReturnBarsContext: null }), i7.entityPageView = "", i7.entityPageWall = !1;
},
- loadShapes: n7,
- syncParts: p7
+ loadShapes: t7,
+ syncParts: f7
},
photos: {
preferences: () => ({
-- size: OE(),
-- layout: kE(),
++ size: AE(),
++ layout: jE(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: s7,
- pushFollow: I9,
- syncDensity: omt,
- storeSize: gue
+ pushEntity: o7,
+ pushFollow: F9,
- syncDensity: Cpt,
- storeSize: rue
++ syncDensity: cmt,
++ storeSize: mue
},
- helpers: a7.entityPageHelpers,
+ helpers: i7.entityPageHelpers,
actions: {
- toggleTag: i9,
- openFollowAuthor: Jmt,
+ toggleTag: r9,
- openFollowAuthor: dmt,
++ openFollowAuthor: Xmt,
javContext: (e) => ml({ entityJavLayout: !!e })
},
sortPreference: () => ({
@@@ -107038,10 -106048,10 +107050,10 @@@
}
//#endregion
//#region src/application/playlists.js
- var h7 = { playlistWrite: void 0 };
- function bmt(e, t) {
+ var m7 = { playlistWrite: void 0 };
-function Lpt(e, t) {
++function Smt(e, t) {
e === "tag" ? (ml({ state: {
- ...G,
+ ...W,
tag: t,
tag_match: "all",
creator: "",
@@@ -107049,17 -106059,17 +107061,17 @@@
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(X7()), M7(), r9()) : m7(e, t);
+ } }), X.clearSearchField(), Q.route(Y7()), j7(), n9()) : p7(e, t);
}
- function xmt(e = "") {
-function Rpt(e = "") {
++function Cmt(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${B(e)}"></label>`;
}
- async function Smt({ title: e, count: t, save: n }) {
-async function zpt({ title: e, count: t, save: n }) {
++async function wmt({ title: e, count: t, save: n }) {
let r = zs({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: xmt(e),
- body: Rpt(e),
++ body: Cmt(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@@ -107069,19 -106079,19 +107081,19 @@@
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await Tgt(a.id, a.current_asset_id, !0), Y5.actionReceipt("已保存为播放列表", { undo: async () => {
- await h7.playlistWrite({
- i && (await Hht(a.id, a.current_asset_id, !0), J5.actionReceipt("已保存为播放列表", { undo: async () => {
++ i && (await Dgt(a.id, a.current_asset_id, !0), J5.actionReceipt("已保存为播放列表", { undo: async () => {
+ await m7.playlistWrite({
action: "delete",
id: a.id
- }), j9("/playlists");
+ }), A9("/playlists");
} }));
}
- async function Cmt(e) {
-async function Bpt(e) {
- let t = ((await It("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Lo(`data-pick-playlist="${e.id}"`)}
++async function Tmt(e) {
+ let t = ((await Ft("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Lo(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${B(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = zs({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: xmt() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Mo("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
- body: Rpt() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Mo("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
++ body: Cmt() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Mo("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
@@@ -107120,29 -106130,29 +107132,29 @@@
});
} });
}
- function wmt() {
- wc(), y9(!1), j7();
- let e = ck(R("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? ml({ pageOpens: al + 1 }) : (A7({ manage: !1 }), ml({ playlistsRevision: dl + 1 }));
-function Vpt() {
++function Emt() {
+ wc(), v9(!1), A7();
- let e = ck(R("#stats"));
++ let e = uk(R("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? ml({ pageOpens: al + 1 }) : (k7({ manage: !1 }), ml({ playlistsRevision: dl + 1 }));
}
- function Tmt(e) {
-function Hpt(e) {
++function Dmt(e) {
Q.route("/review" + (e.category ? "?category=" + encodeURIComponent(e.category) : ""));
}
- function Emt(e) {
-function Upt(e) {
-- ml({ configurationRequestedSection: e }), Q.navigatePath(GO(e));
++function Omt(e) {
++ ml({ configurationRequestedSection: e }), Q.navigatePath(qO(e));
}
- function Dmt() {
- h7.playlistWrite = (e) => Ft("/api/playlist", {
-function Wpt() {
- m7.playlistWrite = (e) => It("/api/playlist", {
++function kmt() {
++ m7.playlistWrite = (e) => Ft("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
//#endregion
//#region src/react/catalog-grid/selection-controller.ts
- function g7(e) {
+ function h7(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
- function Omt(e, t, n, r, i = !1) {
-function Gpt(e, t, n, r, i = !1) {
++function Amt(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@@ -107150,19 -106160,19 +107162,19 @@@
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
- function kmt(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = vz(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
-function Kpt(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = KR(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
++function jmt(e, t, n, r, i, a = !1) {
++ let o = n === "follow", s = xz(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...Omt(e, t, n, !0),
- ...Gpt(e, t, n, !0),
++ ...Amt(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
- function Amt(e, t, n, r) {
- let i = g7(t);
-function qpt(e, t, n, r) {
++function Mmt(e, t, n, r) {
+ let i = h7(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: NU(n).view === "dismissed"
- junkDismissed: lU(n).view === "dismissed"
++ junkDismissed: LU(n).view === "dismissed"
};
}
//#endregion
@@@ -107175,43 -106185,43 +107187,43 @@@ var g7 =
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
- function v7() {
- u9({
+ function _7() {
+ l9({
selected: new Set(Hc),
selectMode: Wc
- }), s7({
+ }), o7({
selected: new Set(Hc),
selectMode: Wc
- }), I9({
+ }), F9({
selected: new Set(Uc),
selectMode: Wc
- }), _7.batchDockProps = Bmt(), Qft() && (Qft().render(_7.batchDockProps), Z.syncGlassOptics());
- }), g7.batchDockProps = rmt(), mft() && (mft().render(g7.batchDockProps), Z.syncGlassOptics());
++ }), g7.batchDockProps = Hmt(), ept() && (ept().render(g7.batchDockProps), Z.syncGlassOptics());
}
- function y7(e, t = !1) {
- ml(Omt({
+ function v7(e, t = !1) {
- ml(Gpt({
++ ml(Amt({
selected: Hc,
followSelected: Uc
- }, x7(), g7(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Wc), Wc && wc(), R("#selectMode").setAttribute("aria-pressed", String(Wc)), v7();
+ }, b7(), h7(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Wc), Wc && wc(), R("#selectMode").setAttribute("aria-pressed", String(Wc)), _7();
}
- function jmt() {
- return [...T7.gridCards()].map((e) => +e.dataset.id);
-function Jpt() {
++function Nmt() {
+ return [...w7.gridCards()].map((e) => +e.dataset.id);
}
- function b7(e, t = !1) {
- ml(kmt({
+ function y7(e, t = !1) {
- ml(Kpt({
++ ml(jmt({
selected: Hc,
followSelected: Uc
- }, x7(), g7(location.pathname), jmt(), e, t)), y7(!0);
- }, b7(), h7(location.pathname), Jpt(), e, t)), v7(!0);
++ }, b7(), h7(location.pathname), Nmt(), e, t)), v7(!0);
}
- function Mmt() {
-function Ypt() {
++function Pmt() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
- function Nmt(e, t = !1) {
- ml(kmt({
-function Xpt(e, t = !1) {
- ml(Kpt({
++function Fmt(e, t = !1) {
++ ml(jmt({
selected: Hc,
followSelected: Uc
- }, x7(), "follow", Mmt(), e, t)), y7(!0);
- }, b7(), "follow", Ypt(), e, t)), v7(!0);
++ }, b7(), "follow", Pmt(), e, t)), v7(!0);
}
- async function Pmt(e, t) {
-async function Zpt(e, t) {
++async function Imt(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@@ -107280,7 -106290,7 +107292,7 @@@
}
});
}
- async function Fmt() {
-async function Qpt() {
++async function Lmt() {
let e = [...Hc];
if (!e.length) return;
let t = zs({
@@@ -107310,9 -106320,9 +107322,9 @@@
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (y7(!1, !0), await G7(), Y5.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (v7(!1, !0), await W7(), J5.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
- async function Imt(e, t) {
-async function $pt(e, t) {
++async function Rmt(e, t) {
let n = [...Uc];
if (!n.length) return;
let r = {
@@@ -107347,7 -106357,7 +107359,7 @@@
}
});
}
- async function Lmt(e, t) {
-async function emt(e, t) {
++async function zmt(e, t) {
let n = [...Hc];
if (!n.length) return;
let r = {
@@@ -107374,10 -106384,10 +107386,10 @@@
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), y7(!1, !0), await o9();
+ }), v7(!1, !0), await a9();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- Y5.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ J5.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
@@@ -107393,18 -106403,18 +107405,18 @@@
}
});
}
- function Rmt() {
- Zft({
-function tmt() {
- pft({
++function Bmt() {
++ $ft({
root: R("[data-batch-dock]"),
run: (e, t, n) => {
- _7.BATCH_RUNNERS[e]?.(t, n);
+ g7.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(_7.batchDockProps), Z.syncGlassOptics();
+ e.render(g7.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
- function zmt() {
- _7.batchDockProps = {
-function nmt() {
++function Vmt() {
+ g7.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
@@@ -107415,22 -106425,22 +107427,22 @@@
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], _7.BATCH_RUNNERS = {
- batch: Pmt,
- region: Fmt,
- follow: Imt,
- junk: Lmt,
- clear: () => y7(!1, !0)
- }, J5.handler(R("#density"), "onclick", () => {
- d7() ? smt(OE() === "big" ? "small" : "big") : Cue();
- }), NE(), Sc({
+ ], g7.BATCH_RUNNERS = {
- batch: Zpt,
- region: Qpt,
- follow: $pt,
- junk: emt,
++ batch: Imt,
++ region: Lmt,
++ follow: Rmt,
++ junk: zmt,
+ clear: () => v7(!1, !0)
+ }, q5.handler(R("#density"), "onclick", () => {
- u7() ? wpt(OE() === "big" ? "small" : "big") : uue();
- }), NE(), Sc({
++ u7() ? lmt(AE() === "big" ? "small" : "big") : xue();
++ }), FE(), Sc({
selecting: () => Wc,
- censored: () => g9(),
+ censored: () => h9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), J5.listen(window, "pagehide", () => wc()), J5.listen(document, "visibilitychange", () => {
+ }), q5.listen(window, "pagehide", () => wc()), q5.listen(document, "visibilitychange", () => {
document.hidden && wc();
- }), dee(), _7.coverRecheck = 0, J5.listen(window, "resize", () => {
- _c(R("#index")), clearTimeout(_7.coverRecheck), _7.coverRecheck = J5.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {
- }), uee(), g7.coverRecheck = 0, q5.listen(window, "resize", () => {
++ }), dee(), g7.coverRecheck = 0, q5.listen(window, "resize", () => {
+ _c(R("#index")), clearTimeout(g7.coverRecheck), g7.coverRecheck = q5.delay(() => R("#index").querySelectorAll("img.cover").forEach((e) => {
e.complete && lc(e);
}), 200);
}, { passive: !0 });
@@@ -107443,11 -106453,11 +107455,11 @@@ function b7()
followLastSelectedId: Kc
};
}
- function Bmt() {
- return Amt({
-function rmt() {
- return qpt({
++function Hmt() {
++ return Mmt({
selected: Hc,
followSelected: Uc
- }, location.pathname, location.search, G.state);
+ }, location.pathname, location.search, W.state);
}
//#endregion
//#region src/application/index.js
@@@ -107455,58 -106465,58 +107467,58 @@@ var x7 =
peopleIndexLayout: void 0,
personAvatar: void 0
};
- function Vmt() {
-function imt() {
++function Umt() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
- function Hmt() {
- return kpt(location.search);
-function amt() {
- return Gft(location.search);
++function Wmt() {
++ return jpt(location.search);
}
- function Umt(e) {
- return Apt(e);
-function omt(e) {
- return Kft(e);
++function Gmt(e) {
++ return Mpt(e);
}
- function Wmt(e) {
- Q.route(Umt(e));
-function smt(e) {
- Q.route(omt(e));
++function Kmt(e) {
++ Q.route(Gmt(e));
}
- function C7(e = "") {
- return jpt(location.search, e);
+ function S7(e = "") {
- return qft(location.search, e);
++ return Npt(location.search, e);
}
- function Gmt(e) {
- return Ept(e);
-function cmt(e) {
- return Hft(e);
++function qmt(e) {
++ return Opt(e);
}
- function Kmt(e) {
- return wpt(e);
-function lmt(e) {
- return Bft(e);
++function Jmt(e) {
++ return Ept(e);
}
- function w7() {
- R("#stats").hidden = !0, R("#index").hidden = !1, s9(), X.hideCatalogCombo(), R("#count").textContent = "", R("#loadSentinel").hidden = !0;
+ function C7() {
+ R("#stats").hidden = !0, R("#index").hidden = !1, o9(), X.hideCatalogCombo(), R("#count").textContent = "", R("#loadSentinel").hidden = !0;
}
- function qmt(e, t) {
-function umt(e, t) {
++function Ymt(e, t) {
ml({ state: {
- ...G,
+ ...W,
state: "",
tag: e.join(","),
tag_match: t
- } }), y7(!1, !1), Q.route(X7()), M7(), D9(), r9();
+ } }), v7(!1, !1), Q.route(Y7()), j7(), E9(), n9();
}
- function Jmt(e) {
- S7.controller.openFollowAuthor(e);
-function dmt(e) {
++function Xmt(e) {
+ x7.controller.openFollowAuthor(e);
}
- function Ymt(e) {
- S7.controller.openFollowTag(e);
-function fmt(e) {
++function Zmt(e) {
+ x7.controller.openFollowTag(e);
}
- function Xmt() {
-function pmt() {
++function Qmt() {
$.FOLLOW_MANAGE_TABS = [
"list",
"add",
"feeds"
- ], J5.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") ? Emt("媒体库与入库") : !e.target.closest?.("a[href=\"/subscriptions?tab=add\"]") || e.defaultPrevented || e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), Q.navigatePath(C7("add")));
- }), S7.peopleIndexLayout = () => Edt(Z.appSettings.peopleLayout), S7.personAvatar = Tpt;
+ ], q5.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") ? Upt("媒体库与入库") : !e.target.closest?.("a[href=\"/subscriptions?tab=add\"]") || e.defaultPrevented || e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), Q.navigatePath(S7("add")));
- }), x7.peopleIndexLayout = () => put(Z.appSettings.peopleLayout), x7.personAvatar = Vft;
++ e.target.closest?.("[data-empty-settings]") ? Omt("媒体库与入库") : !e.target.closest?.("a[href=\"/subscriptions?tab=add\"]") || e.defaultPrevented || e.button || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), Q.navigatePath(S7("add")));
++ }), x7.peopleIndexLayout = () => Edt(Z.appSettings.peopleLayout), x7.personAvatar = Dpt;
}
- function Zmt() {
- S7.controller = Dpt({
-function mmt() {
- x7.controller = Uft({
++function $mt() {
++ x7.controller = kpt({
route: Q.route,
- followView: N9,
- adoptFollowView: P9,
+ followView: M9,
+ adoptFollowView: N9,
hideIndex: () => {
R("#index").hidden = !0;
},
@@@ -107530,52 -106540,52 +107542,52 @@@ function T7(e = "正在读取作品")
return;
}
let t = R("#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 = xMe(NU(location.search)), ns(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && n9({
- 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 = wje(lU(location.search)), ns(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", G && t9({
++ 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 = _Me(LU(location.search)), ns(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", W && t9({
count: null,
- ...Uht()
- })), R("#loadSentinel").hidden = !0, l9()) return;
- let r = R("#grid"), i = f9(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== FK(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== tgt()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : T7.setGridCards(i), ns(R("#grid")));
- ...oht()
++ ...Ght()
+ })), R("#loadSentinel").hidden = !0, c9()) return;
+ let r = R("#grid"), i = d9(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== fK(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== vht()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : w7.setGridCards(i), ns(R("#grid")));
++ (a?.dataset.skeleton !== zK(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== rgt()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : w7.setGridCards(i), ns(R("#grid")));
}
- function D7() {
- R("#catalogFilter").style.display = "none", t9();
+ function E7() {
+ R("#catalogFilter").style.display = "none", e9();
}
- function Qmt() {
-function hmt() {
++function eht() {
let e = new Promise((e) => {
- let t = T7.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = w7.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? J5.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? q5.delay(r, Math.min(t, 50)) : e();
};
- J5.delay(r, 50);
+ q5.delay(r, 50);
});
- return Promise.race([T7.entityShapesReady ||= n7(), e]);
+ return Promise.race([w7.entityShapesReady ||= t7(), e]);
}
- function $mt() {
-function gmt() {
++function tht() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), D7();
- else if (/^\/assets\/\d+$/.test(e)) D7();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) D7();
- else if (e === "/junk-files") E7("正在读取垃圾文件");
- else if (e === "/jav" && VU(new URLSearchParams(location.search).get("tab")) === "library") E7("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), E7();
+ else if (/^\/assets\/\d+$/.test(e)) E7();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) E7();
+ else if (e === "/junk-files") T7("正在读取垃圾文件");
- else if (e === "/jav" && _U(new URLSearchParams(location.search).get("tab")) === "library") T7("正在读取馆藏");
++ else if (e === "/jav" && GU(new URLSearchParams(location.search).get("tab")) === "library") T7("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- D7();
+ E7();
let t = R("#stats");
- t.hidden = !1, s9(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : T7.managementPlaceholder(e), ns(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) D7(), w7(), jdt(R("#index"), Ddt(e.slice(1), location.search), S7.peopleIndexLayout());
+ t.hidden = !1, o9(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : w7.managementPlaceholder(e), ns(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) E7(), C7(), vut(R("#index"), mut(e.slice(1), location.search), x7.peopleIndexLayout());
++ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) E7(), C7(), jdt(R("#index"), Ddt(e.slice(1), location.search), x7.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- D7(), R("#index").hidden = !1, s9();
+ E7(), R("#index").hidden = !1, o9();
- let t = Ut[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (e7.hasEntityShape(t, n) ? Promise.resolve() : hmt()).then(() => {
- R("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (Mpt(t, n), ns(R("#index")));
+ let t = Ht[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (t7.hasEntityShape(t, n) ? Promise.resolve() : Qmt()).then(() => {
- R("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (hmt(t, n), ns(R("#index")));
++ (e7.hasEntityShape(t, n) ? Promise.resolve() : eht()).then(() => {
++ R("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (_mt(t, n), ns(R("#index")));
});
- } else Q.routeMeta(e) ? E7() : (s9(), R("#count").textContent = "", R("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? T7() : (o9(), R("#count").textContent = "", R("#loadSentinel").hidden = !0);
}
- function eht() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => NK(t, {
-function _mt() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => uK(t, {
++function nht() {
++ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => LK(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
-- gridSize: OE()
++ gridSize: AE()
}), $.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>
@@@ -107583,18 -106593,18 +107595,18 @@@
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, R("#loadSentinel").innerHTML = Po("继续载入中…"), T7.setGridCards = (e) => Ko(R("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, R("#loadSentinel").innerHTML = Po("继续载入中…"), w7.setGridCards = (e) => Ko(R("#grid"), () => {
R("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), T7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), T7.managementPlaceholder = (e) => PK(e, {
- followLayout: Vmt(),
- }), w7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), w7.managementPlaceholder = (e) => dK(e, {
- followLayout: imt(),
++ }), w7.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), w7.managementPlaceholder = (e) => RK(e, {
++ followLayout: Umt(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(Hmt())
- }), T7.wantsDiscoveryBars = () => R("#catalogFilter").style.display !== "none", T7.entityShapesReady = null, T7.ENTITY_SHAPES_WAIT = 400, T7.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = ik(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, Mgt();
- }))(amt())
++ }))(Wmt())
+ }), w7.wantsDiscoveryBars = () => R("#catalogFilter").style.display !== "none", w7.entityShapesReady = null, w7.ENTITY_SHAPES_WAIT = 400, w7.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = ik(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, Yht();
++ let t = new URL(e, location.origin), n = ok(decodeURIComponent(t.pathname))?.title;
++ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, Pgt();
};
}
//#endregion
@@@ -107606,16 -106616,16 +107618,16 @@@ var D7 = (e) => e.replace(/[&<>"']/g, (
"\"": "&quot;",
"'": "&#39;"
})[e]);
- function tht(e, t, n) {
-function vmt(e, t, n) {
++function rht(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${O7(r)}"/></svg>`;
- return `<button type="button" data-nav="${O7(e)}" aria-pressed="${n(e)}" aria-label="${O7(t)}">${i}<span>${O7(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo.png\" alt=\"\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${D7(r)}"/></svg>`;
+ return `<button type="button" data-nav="${D7(e)}" aria-pressed="${n(e)}" aria-label="${D7(t)}">${i}<span>${D7(t)}</span></button>`;
}).join("")}</div>`;
}
//#endregion
//#region src/application/filter-scroll.js
- function nht(e, t, n, r = !1) {
-function ymt(e, t, n, r = !1) {
++function iht(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@@ -107656,20 -106666,20 +107668,20 @@@ var O7 =
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
- function A7({ manage: e = !0, placeholder: t = "" } = {}) {
- R("#stats").hidden = !1, R("#index").hidden = !0, s9(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? L7() : (R7(""), D9()), t && IK(R("#stats"), t);
+ function k7({ manage: e = !0, placeholder: t = "" } = {}) {
- R("#stats").hidden = !1, R("#index").hidden = !0, o9(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? I7() : (L7(""), E9()), t && pK(R("#stats"), t);
++ R("#stats").hidden = !1, R("#index").hidden = !0, o9(), R("#count").textContent = "", R("#loadSentinel").hidden = !0, e ? I7() : (L7(""), E9()), t && BK(R("#stats"), t);
}
- function j7() {
- X.hideCatalogCombo(), D7(), document.body.classList.remove("entity-open", "index-open");
+ function A7() {
+ X.hideCatalogCombo(), E7(), document.body.classList.remove("entity-open", "index-open");
}
- function M7() {
- document.body.classList.remove("entity-open", "index-open"), mk(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, r7(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", t9(), L7(), z7();
+ function j7() {
- document.body.classList.remove("entity-open", "index-open"), mk(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, n7(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", e9(), I7(), R7();
++ document.body.classList.remove("entity-open", "index-open"), gk(R("#index")), R("#stats").hidden = !0, R("#index").hidden = !0, n7(location.pathname) || (R("#feedNew").hidden = !0), R("#catalogFilter").style.display = "", e9(), I7(), R7();
}
- function rht() {
- Q.route("/"), M7();
-function bmt() {
++function aht() {
+ Q.route("/"), j7();
}
- function iht({ tags: e = [], providers: t = [], duration: n = !1 }) {
- E9({
-function xmt({ tags: e = [], providers: t = [], duration: n = !1 }) {
++function oht({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ T9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
@@@ -107692,53 -106702,53 +107704,53 @@@
filters: $.followSidebarFilters()
});
}
- function aht(e) {
- Hgt({
- ...N9(),
-function Smt(e) {
- agt({
++function sht(e) {
++ Wgt({
+ ...M9(),
...e
- }), E9({ filters: $.followSidebarFilters() });
+ }), T9({ filters: $.followSidebarFilters() });
}
- function N7() {
+ function M7() {
return matchMedia("(max-width:760px)").matches;
}
- function P7(e) {
+ function N7(e) {
let t = R("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && N7(), t.classList.toggle("open", e), R("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), R("#filterBtn").setAttribute("aria-expanded", String(!!e)), R("#filterBtn").setAttribute("aria-controls", "drawer"), R("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && R("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && M7(), t.classList.toggle("open", e), R("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), R("#filterBtn").setAttribute("aria-expanded", String(!!e)), R("#filterBtn").setAttribute("aria-controls", "drawer"), R("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && R("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
- function oht() {
- N7() && P7(!1);
-function Cmt() {
++function cht() {
+ M7() && N7(!1);
}
- function sht() {
-function wmt() {
- rl === null && (ml({ runtimeConfigurable: !1 }), It("/healthz").then((e) => {
++function lht() {
+ rl === null && (ml({ runtimeConfigurable: !1 }), Ft("/healthz").then((e) => {
- ml({ runtimeConfigurable: !!e.configurable }), rl && I7() && L7();
+ ml({ runtimeConfigurable: !!e.configurable }), rl && F7() && I7();
}).catch(() => {}));
}
- function F7(e = "", t = !1) {
- if (!t && !WO(location.pathname)) {
- let t = Sk.navigation;
- Sk.push(GO(e), { settingsBackground: {
+ function P7(e = "", t = !1) {
- if (!t && !WO(location.pathname)) {
- let t = Sk.navigation;
- Sk.push(GO(e), { settingsBackground: {
++ if (!t && !KO(location.pathname)) {
++ let t = wk.navigation;
++ wk.push(qO(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
-- } else !t && e && Ck(GO(e), {
++ } else !t && e && Tk(qO(e), {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
});
- return e ||= Rhe(location.pathname), Kft(k7.settingsHost()).then((t) => (t.open(e), t));
- return e ||= The(location.pathname), cft(O7.settingsHost()).then((t) => (t.open(e), t));
++ return e ||= Ihe(location.pathname), Jft(O7.settingsHost()).then((t) => (t.open(e), t));
}
- function cht() {
-function Tmt() {
-- WO(location.pathname) && (KO(Sk.navigation.location.state) ? Sk.go(-1) : Q.navigatePath("/", !0));
++function uht() {
++ KO(location.pathname) && (JO(wk.navigation.location.state) ? wk.go(-1) : Q.navigatePath("/", !0));
}
- function lht() {
-function Emt() {
++function dht() {
return {
scroll: R("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: k7.NAV_CATALOG,
- navOn: K7,
- navTo: yht,
- toggleChip: (e, t, n) => e9((r) => {
+ navCatalog: O7.NAV_CATALOG,
+ navOn: G7,
- navTo: Imt,
++ navTo: xht,
+ toggleChip: (e, t, n) => $7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
@@@ -107748,13 -106758,13 +107760,13 @@@
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), P7(!1), j9(M9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), N7(!1), A9(j9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), P7(!1), j9(M9());
+ $.followTags = /* @__PURE__ */ new Set([e]), N7(!1), A9(j9());
},
- selectFollowProvider: (e) => aht({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => aht({
- selectFollowProvider: (e) => Smt({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => Smt({
++ selectFollowProvider: (e) => sht({ provider: $.followProviders.has(e) ? "" : e }),
++ setFollowDuration: (e, t) => sht({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@@ -107763,133 -106773,133 +107775,133 @@@
}
};
}
- function uht() {
-function Dmt() {
++function fht() {
let e = R("#drawerScroll");
- e.innerHTML = tht(Z.appSettings.sidebarOrder, k7.NAV_CATALOG, K7), J5.listen(e, "click", (e) => {
- if (H5()) return;
- e.innerHTML = vmt(Z.appSettings.sidebarOrder, O7.NAV_CATALOG, G7), q5.listen(e, "click", (e) => {
++ e.innerHTML = rht(Z.appSettings.sidebarOrder, O7.NAV_CATALOG, G7), q5.listen(e, "click", (e) => {
+ if (V5()) return;
let t = e.target.closest?.("[data-nav]");
- t && yht(t.dataset.nav);
- }), Jft(lht()).then((e) => e.render(k7.sidebarProps)).catch(() => {});
- t && Imt(t.dataset.nav);
- }), uft(Emt()).then((e) => e.render(O7.sidebarProps)).catch(() => {});
++ t && xht(t.dataset.nav);
++ }), Xft(dht()).then((e) => e.render(O7.sidebarProps)).catch(() => {});
}
- async function dht() {
- let e = J5, t = null;
-async function Omt() {
++async function pht() {
+ let e = q5, t = null;
try {
- t = await It("/api/settings", { signal: e.signal });
+ t = await Ft("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && $le(t, (e) => Z.settingsEffects[e]?.());
- e.isActive && Ble(t, (e) => Z.settingsEffects[e]?.());
++ e.isActive && Zle(t, (e) => Z.settingsEffects[e]?.());
}
- function I7() {
+ function F7() {
- return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (G.state === "ads" ? "cleanup" : "");
+ return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (W.state === "ads" ? "cleanup" : "");
}
- function L7() {
- let e = I7();
- sht(), e && D7(), R("#count").classList.toggle("no-tagbar", !!e), D9(), e !== "trash" && (_7.trashCount = null), R7(e);
+ function I7() {
+ let e = F7();
- wmt(), e && E7(), R("#count").classList.toggle("no-tagbar", !!e), E9(), e !== "trash" && (g7.trashCount = null), L7(e);
++ lht(), e && E7(), R("#count").classList.toggle("no-tagbar", !!e), E9(), e !== "trash" && (g7.trashCount = null), L7(e);
}
- function fht(e) {
-function kmt(e) {
++function mht(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: k7.MANAGE_SECTIONS,
- menu: e ? k7.manageMenuSections() : [],
- trash: _7.trashCount
+ sections: O7.MANAGE_SECTIONS,
+ menu: e ? O7.manageMenuSections() : [],
+ trash: g7.trashCount
};
}
- function R7(e = I7()) {
- z7();
- let t = fht(e), n = Xft();
+ function L7(e = F7()) {
+ R7();
- let t = kmt(e), n = fft();
++ let t = mht(e), n = Qft();
if (n) n.render(t);
else {
- let e = Kpe(t);
- e !== k7.manageHeaderSkeleton && (k7.manageHeaderSkeleton = e, k7.manageHeaderRoot().innerHTML = e);
- let e = Npe(t);
++ let e = Wpe(t);
+ e !== O7.manageHeaderSkeleton && (O7.manageHeaderSkeleton = e, O7.manageHeaderRoot().innerHTML = e);
}
-- let r = dO(t)?.title || "";
- r !== k7.lastManagePageLabel && (k7.lastManagePageLabel = r, r && Go(k7.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
++ let r = pO(t)?.title || "";
+ r !== O7.lastManagePageLabel && (O7.lastManagePageLabel = r, r && Go(O7.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
- function pht() {
- let e = k7.manageHeaderRoot();
- J5.listen(e, "click", (e) => {
- if (Xft()) return;
-function Amt() {
++function hht() {
+ let e = O7.manageHeaderRoot();
+ q5.listen(e, "click", (e) => {
- if (fft()) return;
++ if (Qft()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) B7(t.dataset.manage);
+ if (t) z7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
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]") && Yht();
- }), Yft({
- } else e.target.closest?.("[data-empty-trash]") && fht();
- }), dft({
++ } else e.target.closest?.("[data-empty-trash]") && Zht();
++ }), Zft({
root: e,
- openManage: B7,
+ openManage: z7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: Yht
- }).then(() => R7()).catch(() => {});
- emptyTrash: fht
++ emptyTrash: Zht
+ }).then(() => L7()).catch(() => {});
}
- function z7() {
+ function R7() {
let e = R("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !I7() && Bt(t) && iee[W.state] || "";
- e.hidden = !n, n && (e.textContent = n), R("#catalogPageHeading").hidden = !!I7() || !Bt(t) || !!n || W.jav === "1";
- let t = decodeURIComponent(location.pathname), n = !F7() && Vt(t) && ree[G.state] || "";
- e.hidden = !n, n && (e.textContent = n), R("#catalogPageHeading").hidden = !!F7() || !Vt(t) || !!n || G.jav === "1";
++ let t = decodeURIComponent(location.pathname), n = !F7() && Bt(t) && iee[W.state] || "";
++ e.hidden = !n, n && (e.textContent = n), R("#catalogPageHeading").hidden = !!F7() || !Bt(t) || !!n || W.jav === "1";
}
- function B7(e = "stats") {
+ function z7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", hl(), Q.route(PU()), M7(), D9(), r9());
- t ? Q.openRoutePath(t) : (G.orient = "", G.state = "ads", hl(), Q.route(uU()), j7(), E9(), n9());
++ t ? Q.openRoutePath(t) : (W.orient = "", W.state = "ads", hl(), Q.route(RU()), j7(), E9(), n9());
}
- function V7() {
+ function B7() {
let e = decodeURIComponent(location.pathname);
- return e === "/" ? G.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? G.jav === "1" || sl : !1;
+ return e === "/" ? W.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? W.jav === "1" || sl : !1;
}
- function mht(e = V7()) {
- let t = wle.filter(([e]) => e !== "seed");
-function jmt(e = B7()) {
- let t = dle.filter(([e]) => e !== "seed");
-- return e ? [sE, ...t] : t;
++function ght(e = B7()) {
++ let t = Sle.filter(([e]) => e !== "seed");
++ return e ? [lE, ...t] : t;
}
- function H7() {
+ function V7() {
- return decodeURIComponent(location.pathname) === "/" && G.jav !== "1";
+ return decodeURIComponent(location.pathname) === "/" && W.jav !== "1";
}
- function U7() {
- return uue(H7());
+ function H7() {
- return Zle(V7());
++ return cue(V7());
}
- function hht(e) {
- pue(e), W7(), R("#grid").hidden || p9();
-function Mmt(e) {
- eue(e), U7(), R("#grid").hidden || f9();
++function _ht(e) {
++ due(e), U7(), R("#grid").hidden || f9();
}
- function ght(e) {
- mue(e), W7(), p9();
-function Nmt(e) {
- tue(e), U7(), f9();
++function vht(e) {
++ fue(e), U7(), f9();
}
- function W7() {
+ function U7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === U7();
- }), X.catalogFilterProps && n9({ layout: Hht() });
+ e.checked = e.value === H7();
- }), X.catalogFilterProps && t9({ layout: aht() });
++ }), X.catalogFilterProps && t9({ layout: Wht() });
}
- function _ht(e) {
- hue(e), W7(), p9();
-function Pmt(e) {
- nue(e), U7(), f9();
++function yht(e) {
++ pue(e), U7(), f9();
}
- async function G7() {
- Q5(), X.mixRelatedCache.clear(), await Promise.all([vht(), r9()]);
+ async function W7() {
- Z5(), X.mixRelatedCache.clear(), await Promise.all([Fmt(), n9()]);
++ Z5(), X.mixRelatedCache.clear(), await Promise.all([bht(), n9()]);
}
- async function vht() {
- if (a7.entityPageCurrent() && !R("#index").hidden) {
- s7({ revision: ++a7.entityPageRevision });
-async function Fmt() {
++async function bht() {
+ if (i7.entityPageCurrent() && !R("#index").hidden) {
+ o7({ revision: ++i7.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
-- if (ik(e)?.reload === "reopen" || e === "/follow") {
++ if (ok(e)?.reload === "reopen" || e === "/follow") {
ml({ pageOpens: al + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await o9();
+ t?.route.reload ? await t.route.reload() : await a9();
}
- function K7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = k7.DIRECT_MANAGE_NAV[e];
- if (r) return I7() === r;
+ function G7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = O7.DIRECT_MANAGE_NAV[e];
+ if (r) return F7() === r;
if (e === "manage") {
- let e = I7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => k7.DIRECT_MANAGE_NAV[t] === e);
+ let e = F7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => O7.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || V7() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !I7() && !W.state && !V7() && W.orient !== "竖屏" : Rt[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";
- return e === "jav" ? t === "/jav" || B7() : e === "shorts" ? G.orient === "竖屏" : e === "" ? t === "/" && !F7() && !G.state && !B7() && G.orient !== "竖屏" : zt[e] ? n === e && G.orient !== "竖屏" : n ? n === e : t === "/" && G.state === e && G.orient !== "竖屏";
++ return e === "jav" ? t === "/jav" || B7() : e === "shorts" ? W.orient === "竖屏" : e === "" ? t === "/" && !F7() && !W.state && !B7() && W.orient !== "竖屏" : Rt[e] ? n === e && W.orient !== "竖屏" : n ? n === e : t === "/" && W.state === e && W.orient !== "竖屏";
}
- function yht(e) {
- if (oht(), k7.DIRECT_MANAGE_NAV[e]) {
- B7(k7.DIRECT_MANAGE_NAV[e]);
-function Imt(e) {
- if (Cmt(), O7.DIRECT_MANAGE_NAV[e]) {
++function xht(e) {
++ if (cht(), O7.DIRECT_MANAGE_NAV[e]) {
+ z7(O7.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
@@@ -107901,25 -106911,25 +107913,25 @@@
return;
}
if (e === "") {
- Z7();
+ X7();
return;
}
- let t = zt[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (G.orient = "竖屏", G.state = "") : (G.orient = "", G.state = e), hl(), Q.route(Y7()), j7(), E9(), n9());
+ let t = Rt[e] ? null : Q.routePathOf("nav", e);
- t ? Q.openRoutePath(t) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), hl(), Q.route(X7()), M7(), D9(), r9());
++ t ? Q.openRoutePath(t) : (e === "shorts" ? (W.orient = "竖屏", W.state = "") : (W.orient = "", W.state = e), hl(), Q.route(Y7()), j7(), E9(), n9());
}
- function q7() {
+ function K7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Wc && qc !== _7.currentSelectSurface() && y7(!1, !0);
+ Wc && qc !== g7.currentSelectSurface() && v7(!1, !0);
- let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Ut, t[0]), r = Vt(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
+ let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Ht, t[0]), r = Bt(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- R("#selectMode").hidden = !i, R("#density").hidden = !a, f7(), !i && Wc && y7(!1, !0);
+ R("#selectMode").hidden = !i, R("#density").hidden = !a, d7(), !i && Wc && v7(!1, !0);
}
- function bht() {
-function Lmt() {
++function Sht() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== k7.mobileFilterHost || location.pathname !== k7.mobileFilterPath) && (k7.mobileFilterScroll = null), k7.mobileFilterHost = t, k7.mobileFilterPath = location.pathname;
+ (t !== O7.mobileFilterHost || location.pathname !== O7.mobileFilterPath) && (O7.mobileFilterScroll = null), O7.mobileFilterHost = t, O7.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\"]");
- k7.mobileFilterScroll = nht(k7.mobileFilterScroll, n, innerWidth <= 760, r);
- O7.mobileFilterScroll = ymt(O7.mobileFilterScroll, n, innerWidth <= 760, r);
++ O7.mobileFilterScroll = iht(O7.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && k7.mobileFilterScroll.free;
+ let e = n === t && O7.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@@ -107931,68 -106941,68 +107943,68 @@@
});
}
}
- function xht() {
- bht(), [".board-filter-frame", "#count"].forEach((e) => {
-function Rmt() {
- Lmt(), [".board-filter-frame", "#count"].forEach((e) => {
++function Cht() {
++ Sht(), [".board-filter-frame", "#count"].forEach((e) => {
let t = R(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 J7() {
- k7.stickyFrame ||= J5.frame(() => {
- k7.stickyFrame = 0, xht();
+ function q7() {
+ O7.stickyFrame ||= q5.frame(() => {
- O7.stickyFrame = 0, Rmt();
++ O7.stickyFrame = 0, Cht();
});
}
- function Sht() {
-function zmt() {
++function wht() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), J5.handler(R("#filterBtn"), "onclick", () => P7(!R("#drawer").classList.contains("open"))), k7.SIDEBAR_ITEMS = vpt, k7.MANAGE_SECTIONS = $5, k7.MANAGE_MENU_SECTIONS = ypt, k7.manageMenuSections = () => bpt(rl === !0), k7.OPTIONAL_SIDEBAR_ITEMS = xpt, k7.NAV_CATALOG = Spt, k7.DIRECT_MANAGE_NAV = Cpt, k7.settingsHost = () => ({
- }), q5.handler(R("#filterBtn"), "onclick", () => N7(!R("#drawer").classList.contains("open"))), O7.SIDEBAR_ITEMS = Pft, O7.MANAGE_SECTIONS = Q5, O7.MANAGE_MENU_SECTIONS = Fft, O7.manageMenuSections = () => Ift(rl === !0), O7.OPTIONAL_SIDEBAR_ITEMS = Lft, O7.NAV_CATALOG = Rft, O7.DIRECT_MANAGE_NAV = zft, O7.settingsHost = () => ({
-- selectSection: (e) => Ck(GO(e), {
++ }), q5.handler(R("#filterBtn"), "onclick", () => N7(!R("#drawer").classList.contains("open"))), O7.SIDEBAR_ITEMS = bpt, O7.MANAGE_SECTIONS = Q5, O7.MANAGE_MENU_SECTIONS = xpt, O7.manageMenuSections = () => Spt(rl === !0), O7.OPTIONAL_SIDEBAR_ITEMS = Cpt, O7.NAV_CATALOG = wpt, O7.DIRECT_MANAGE_NAV = Tpt, O7.settingsHost = () => ({
++ selectSection: (e) => Tk(qO(e), {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
}),
- closed: cht,
- closed: Tmt,
++ closed: uht,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Ga(e),
- navCatalog: k7.NAV_CATALOG,
- themeOptions: tue,
- videoLayouts: wE,
- followInitialRanges: EG,
- videoLayout: () => U7(),
- setVideoLayout: _ht,
- censored: g9,
- setCensored: pgt,
+ navCatalog: O7.NAV_CATALOG,
- themeOptions: Hle,
- videoLayouts: wE,
- followInitialRanges: rG,
++ themeOptions: $le,
++ videoLayouts: EE,
++ followInitialRanges: AG,
+ videoLayout: () => H7(),
- setVideoLayout: Pmt,
++ setVideoLayout: yht,
+ censored: h9,
- setCensored: Aht,
++ setCensored: hgt,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: mgt,
- receipt: (e) => Y5.actionReceipt(e),
- failure: Y5.actionFailure,
- syncRemote: (e) => $le(e, (e) => Z.settingsEffects[e]?.()),
- setHighContrast: jht,
++ setHighContrast: ggt,
+ receipt: (e) => J5.actionReceipt(e),
+ failure: J5.actionFailure,
- syncRemote: (e) => Ble(e, (e) => Z.settingsEffects[e]?.()),
++ syncRemote: (e) => Zle(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
- configurable: () => It("/healthz").then((e) => (ml({ runtimeConfigurable: !!e.configurable }), rl)).catch(() => null)
+ configurable: () => Ft("/healthz").then((e) => (ml({ runtimeConfigurable: !!e.configurable }), rl)).catch(() => null)
- }), J5.handler(R("#settingsBtn"), "onclick", () => void F7()), k7.lastManagePageLabel = "", k7.manageHeaderSkeleton = "", k7.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, k7.scrollT = null, k7.stickyFrame = 0, k7.mobileFilterScroll = null, k7.mobileFilterHost = null, k7.mobileFilterPath = "", J5.listen(document, "focusin", J7), J5.listen(document, "focusout", J7), J5.listen(window, "scroll", () => {
- J7(), location.pathname === "/follow" && F9() && ml({ followScrollY: scrollY }), window.__scrolling = !0, wc(), clearTimeout(k7.scrollT), k7.scrollT = J5.delay(() => {
+ }), q5.handler(R("#settingsBtn"), "onclick", () => void P7()), O7.lastManagePageLabel = "", O7.manageHeaderSkeleton = "", O7.manageHeaderRoot = () => R("[data-manage-header]"), window.__scrolling = !1, O7.scrollT = null, O7.stickyFrame = 0, O7.mobileFilterScroll = null, O7.mobileFilterHost = null, O7.mobileFilterPath = "", q5.listen(document, "focusin", q7), q5.listen(document, "focusout", q7), q5.listen(window, "scroll", () => {
+ q7(), location.pathname === "/follow" && P9() && ml({ followScrollY: scrollY }), window.__scrolling = !0, wc(), clearTimeout(O7.scrollT), O7.scrollT = q5.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), J5.listen(window, "resize", J7, { passive: !0 }), J5.handler(R("#scrim"), "onclick", () => P7(!1));
+ }, { passive: !0 }), q5.listen(window, "resize", q7, { passive: !0 }), q5.handler(R("#scrim"), "onclick", () => N7(!1));
}
//#endregion
//#region src/catalog-filter-skeleton.ts
- var Cht = 64, Y7 = (e) => e.replace(/[&<>"]/g, (e) => ({
-var Bmt = 64, J7 = (e) => e.replace(/[&<>"]/g, (e) => ({
++var Tht = 64, J7 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
- })[e]), wht = (e) => e.repeat(Cht);
- function Tht(e, t, n) {
- let r = e.map((e) => `<a href="${Y7(e.href)}" data-catalog-view="${Y7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${Y7(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + wht("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + wht("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${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(Cht) + `</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>${yo()}</span>` + (n ? amt(n.sorts, n.layout) : "") + "</div></div></div></div>";
-})[e]), Vmt = (e) => e.repeat(Bmt);
-function Hmt(e, t, n) {
++})[e]), Eht = (e) => e.repeat(Tht);
++function Dht(e, t, n) {
+ let r = e.map((e) => `<a href="${J7(e.href)}" data-catalog-view="${J7(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${J7(e.label)}</a>`).join("");
- return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + Vmt("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + Vmt("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${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(Bmt) + `</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>${yo()}</span>` + (n ? Spt(n.sorts, n.layout) : "") + "</div></div></div></div>";
++ return "<div class=\"peach-react\"><div class=\"contents\" data-catalog-root=\"\" data-loading=\"\"><div data-catalog-tiers=\"\" aria-busy=\"true\"><div data-catalog-tier=\"performers\" data-skeleton=\"tiers\">" + Eht("<span data-catalog-placeholder=\"performer\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + "</div><div data-catalog-tier=\"studios\">" + Eht("<span data-catalog-placeholder=\"studio\" aria-hidden=\"true\"><span></span><span>&nbsp;</span></span>") + `</div></div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${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(Tht) + `</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>${yo()}</span>` + (n ? smt(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
//#endregion
//#region src/catalog-onboarding.ts
- var Eht = [
-var Umt = [
++var Oht = [
"loc",
"creator",
"performer",
@@@ -108010,9 -107020,9 +108022,9 @@@
"jav",
"thumb"
];
- async function Dht(e, t) {
-async function Wmt(e, t) {
++async function kht(e, t) {
let n = new URLSearchParams();
- for (let t of Eht) e[t] && n.set(t, e[t]);
- for (let t of Umt) e[t] && n.set(t, e[t]);
++ for (let t of Oht) 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 || [],
@@@ -108023,7 -107033,7 +108035,7 @@@
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
- function Oht({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
-function Gmt({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
++function Aht({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
if (t || n) return Io("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@@ -108079,84 -107089,84 +108091,84 @@@ var X =
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
- function kht() {
- X.initialParams.has("loc") || (W.loc = Aht(W.loc), hl());
-function Kmt() {
- X.initialParams.has("loc") || (G.loc = qmt(G.loc), hl());
++function jht() {
++ X.initialParams.has("loc") || (W.loc = Mht(W.loc), hl());
}
- function Aht(e) {
- return spt(e, Z.sourceOnline);
-function qmt(e) {
- return Cft(e, Z.sourceOnline);
++function Mht(e) {
++ return lpt(e, Z.sourceOnline);
}
- function X7(e = W) {
- return cpt(e);
-function Y7(e = G) {
- return wft(e);
++function Y7(e = W) {
++ return upt(e);
}
- function jht() {
- ml(upt(lpt(W, Z.appSettings, Y5.rollSeed))), Q5();
-function Jmt() {
- ml(Eft(Tft(G, Z.appSettings, J5.rollSeed))), Z5();
++function Nht() {
++ ml(fpt(dpt(W, Z.appSettings, J5.rollSeed))), Z5();
}
- function Z7(e = null, t = !1) {
- jht(), e && (Object.assign(W, e), hl()), Q.route(e ? X7() : "/"), X.clearSearchField(), y9(!1), M7(), D9(), r9(), t && window.scrollTo({
+ function X7(e = null, t = !1) {
- Jmt(), e && (Object.assign(G, e), hl()), Q.route(e ? Y7() : "/"), X.clearSearchField(), v9(!1), j7(), E9(), n9(), t && window.scrollTo({
++ Nht(), e && (Object.assign(W, e), hl()), Q.route(e ? Y7() : "/"), X.clearSearchField(), v9(!1), j7(), E9(), n9(), t && window.scrollTo({
top: 0,
behavior: "smooth"
});
}
- function Mht(e, t = null) {
-function Ymt(e, t = null) {
++function Pht(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? x9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : b7(n);
+ !e.medium || e.medium === "video" ? b9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : y7(n);
}
- function Nht(e) {
-function Xmt(e) {
- return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, It("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
++function Fht(e) {
+ return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Ft("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
- function Pht(e, t) {
- P5()?.miniplayerTakesCard(e) ? P5().miniplayerPlay(e.id) : Fht(e, t);
-function Zmt(e, t) {
- N5()?.miniplayerTakesCard(e) ? N5().miniplayerPlay(e.id) : Qmt(e, t);
++function Iht(e, t) {
++ N5()?.miniplayerTakesCard(e) ? N5().miniplayerPlay(e.id) : Lht(e, t);
}
- function Fht(e, t) {
- e.edition_group ? Cgt(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? wgt(e.part_group.seed_id, e.id, !0, t) : x9(e.id, !0, null, t);
-function Qmt(e, t) {
- e.edition_group ? Bht(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Vht(e.part_group.seed_id, e.id, !0, t) : b9(e.id, !0, null, t);
++function Lht(e, t) {
++ e.edition_group ? Tgt(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Egt(e.part_group.seed_id, e.id, !0, t) : b9(e.id, !0, null, t);
}
- async function Iht(e, t) {
-async function $mt(e, t) {
++async function Rht(e, t) {
try {
- let n = await It("/api/watch-later", {
+ let n = await Ft("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), Y5.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), J5.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- let n = await It("/api/watch-later", {
+ let n = await Ft("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- Y5.actionFailure("更新稍后看", e);
+ J5.actionFailure("更新稍后看", e);
}
}
- async function Lht(e, t) {
-async function eht(e, t) {
++async function zht(e, t) {
try {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: [e.id],
operation: t
})
- }), await o9();
+ }), await a9();
let n = t === "restore" ? "dispose" : "restore";
- Y5.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ J5.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: [e.id],
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await o9();
+ }), await a9();
} });
} catch (e) {
- throw Y5.actionFailure("操作", e), e;
+ throw J5.actionFailure("操作", e), e;
}
}
- async function Rht(e) {
-async function tht(e) {
++async function Bht(e) {
let t = new URLSearchParams();
- if (V7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && W.state && t.set("state", W.state), e.type !== "item") {
- let e = a7.activeFilterState();
- if (B7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && G.state && t.set("state", G.state), e.type !== "item") {
++ if (B7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && W.state && t.set("state", W.state), e.type !== "item") {
+ let e = i7.activeFilterState();
[
"loc",
"creator",
@@@ -108176,9 -107186,9 +108188,9 @@@
e[n] && t.set(n, e[n]);
});
}
- return gpt(t.toString(), X.topsQueryParams(e).toString());
- return Mft(t.toString(), X.topsQueryParams(e).toString());
++ return vpt(t.toString(), X.topsQueryParams(e).toString());
}
- function zht() {
-function nht() {
++function Vht() {
if (scrollY <= 0) return;
let e = document.documentElement;
e.classList.add("refiltering");
@@@ -108190,32 -107200,32 +108202,32 @@@
behavior: matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth"
});
}
- function Q7(e) {
- c7().type !== "entity" && n9({ tags: Wht(e) }), E9({ filters: { ...e } }), a9();
+ function Z7(e) {
- s7().type !== "entity" && t9({ tags: sht(e) }), T9({ filters: { ...e } }), i9();
++ s7().type !== "entity" && t9({ tags: Kht(e) }), T9({ filters: { ...e } }), i9();
}
- async function $7(e) {
- let t = ++X.facetCountsSeq, [n] = await Rht(e);
- t === X.facetCountsSeq && (e.type === "home" && (v9.facets = n), E9({ latest: ugt(n, e) }));
+ async function Q7(e) {
- let t = ++X.facetCountsSeq, [n] = await tht(e);
- t === X.facetCountsSeq && (e.type === "home" && (_9.facets = n), T9({ latest: Dht(n, e) }));
++ let t = ++X.facetCountsSeq, [n] = await Bht(e);
++ t === X.facetCountsSeq && (e.type === "home" && (_9.facets = n), T9({ latest: fgt(n, e) }));
}
- function e9(e) {
- zht();
- let t = c7();
+ function $7(e) {
- nht();
++ Vht();
+ let t = s7();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), u7(t.kind, t.name, n), Q7(n), $7(c7());
+ e(n), l7(t.kind, t.name, n), Z7(n), Q7(s7());
} else if (t.type === "item") {
- let t = a7.cloneBarsContext(Vc);
- if (y9(!1), ml({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), u7(t.kind, t.name, t.filters) ? r9() : ml({ pageOpens: al + 1 });
+ let t = i7.cloneBarsContext(Vc);
+ if (v9(!1), ml({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), l7(t.kind, t.name, t.filters) ? n9() : ml({ pageOpens: al + 1 });
return;
}
- e(G), ml({ barsContext: {
+ e(W), ml({ barsContext: {
type: "home",
- filters: G
+ filters: W
- } }), Q.route(X7()), M7(), r9();
- } else e(W), hl(), Q.route(X7()), Q7(W), $7(Bc);
+ } }), Q.route(Y7()), j7(), n9();
- } else e(G), hl(), Q.route(Y7()), Z7(G), Q7(Bc);
++ } else e(W), hl(), Q.route(Y7()), Z7(W), Q7(Bc);
}
- function Bht() {
-function rht() {
++function Hht() {
return {
tiers: null,
empty: !1,
@@@ -108232,9 -107242,9 +108244,9 @@@
combo: [],
comboHidden: !0,
comboHost: R("#combo"),
- actions: Vht(),
- actions: iht(),
++ actions: Uht(),
helpers: {
- wireDrag: _9,
+ wireDrag: g9,
wireScroller: (e) => {
e && ps(e);
}
@@@ -108250,79 -107260,79 +108262,79 @@@ function t9(e)
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || Bht(),
- ...X.catalogFilterProps || rht(),
++ ...X.catalogFilterProps || Hht(),
...e
- }, !X.catalogFilterMounting && (lk(t) ? pk(t, e) : (!t.firstChild && !n && (t.innerHTML = Tht(X.catalogViews(), X.catalogFilterProps.state, Uht()), ns(t)), X.catalogFilterMounting = fk("catalog-filter", X.catalogFilterProps, {
- }, !X.catalogFilterMounting && (lk(t) ? pk(t, e) : (!t.firstChild && !n && (t.innerHTML = Hmt(X.catalogViews(), X.catalogFilterProps.state, oht()), ns(t)), X.catalogFilterMounting = fk("catalog-filter", X.catalogFilterProps, {
++ }, !X.catalogFilterMounting && (dk(t) ? hk(t, e) : (!t.firstChild && !n && (t.innerHTML = Dht(X.catalogViews(), X.catalogFilterProps.state, Ght()), ns(t)), X.catalogFilterMounting = mk("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
-- }).then(() => pk(t, X.catalogFilterProps)).finally(() => {
++ }).then(() => hk(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
- function Vht() {
-function iht() {
++function Uht() {
return {
currentHref: () => {
- let e = new URL(X7(), location.origin);
+ let e = new URL(Y7(), location.origin);
- return e.searchParams.set("loc", G.loc || ""), e.searchParams.set("thumb", G.thumb || "0"), e.searchParams.set("sort", G.sort || ""), e.searchParams.set("dir", G.dir || ""), e.pathname + e.search;
+ return e.searchParams.set("loc", W.loc || ""), e.searchParams.set("thumb", W.thumb || "0"), e.searchParams.set("sort", W.sort || ""), e.searchParams.set("dir", W.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => m7(e, t),
+ openEntity: (e, t) => p7(e, t),
setView: (e) => {
- W.state = e, hl(), n9({ state: e }), Q.route(X7()), r9();
- G.state = e, hl(), t9({ state: e }), Q.route(Y7()), n9();
++ W.state = e, hl(), t9({ state: e }), Q.route(Y7()), n9();
},
- toggleTag: (e) => i9(e),
- clearFilter: (e) => e9((t) => {
+ toggleTag: (e) => r9(e),
+ clearFilter: (e) => $7((t) => {
t[e] = "";
}),
- clearAll: () => e9((e) => {
+ clearAll: () => $7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = uE(e, W.sort, W.dir);
- t && (W.sort = t.sort, W.dir = t.dir, hl(), h9());
- let t = uE(e, G.sort, G.dir);
- t && (G.sort = t.sort, G.dir = t.dir, hl(), m9());
++ let t = fE(e, W.sort, W.dir);
++ t && (W.sort = t.sort, W.dir = t.dir, hl(), m9());
},
- reshuffle: () => dgt(),
- reshuffle: () => Oht(),
++ reshuffle: () => pgt(),
setLayout: (e) => {
- V7() ? ght(e) : hht(e);
- B7() ? Nmt(e) : Mmt(e);
++ B7() ? vht(e) : _ht(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await _pt(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(Ght) : n.map(Kht);
- let n = (await Nft(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(cht) : n.map(lht);
++ let n = (await ypt(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
++ return e === "performers" ? n.map(qht) : n.map(Jht);
}
};
}
- function Hht() {
- return V7() ? {
-function aht() {
++function Wht() {
+ return B7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
-- value: DE(),
-- options: wE
- } : H7() ? {
++ value: kE(),
++ options: EE
+ } : V7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: U7(),
- options: wE
+ value: H7(),
- options: wE
++ options: EE
} : null;
}
- function Uht() {
-function oht() {
++function Ght() {
return {
- sorts: l7(W.sort, W.dir),
- layout: Hht(),
- sorts: c7(G.sort, G.dir),
- layout: aht(),
- state: G.state || "",
- trash: G.state === "trash"
++ sorts: c7(W.sort, W.dir),
++ layout: Wht(),
+ state: W.state || "",
+ trash: W.state === "trash"
};
}
- function Wht(e) {
-function sht(e) {
++function Kht(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
- function Ght(e) {
-function cht(e) {
++function qht(e) {
return {
name: e.k,
- ringHtml: `<span data-tier-initial>${B(dn(e.k))}</span>${_a({
+ ringHtml: `<span data-tier-initial>${B(un(e.k))}</span>${_a({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
@@@ -108333,31 -107343,31 +108345,31 @@@
})}`
};
}
- function Kht(e) {
-function lht(e) {
++function Jht(e) {
return {
name: e.k,
- fallback: un(e.k, 2),
+ fallback: ln(e.k, 2),
logo: e.has_logo ? ma(e.k, "icon", e.logo_version) : ""
};
}
- function qht(e) {
- X.catalogFilterProps?.tiers || (X.barsRendered = "", n9({
-function uht(e) {
++function Yht(e) {
+ X.catalogFilterProps?.tiers || (X.barsRendered = "", t9({
tiers: null,
state: e.state || ""
}));
}
- async function r9() {
+ async function n9() {
let e = ++X.barsRequestSeq;
- if (E9(), !Lc(location.pathname) || Bc.type === "item") return;
- let t = c7(), n = a7.activeFilterState(), r = JSON.stringify([
+ if (T9(), !Lc(location.pathname) || Bc.type === "item") return;
+ let t = s7(), n = i7.activeFilterState(), r = JSON.stringify([
t,
n,
- G.state || "",
- G.seed || "",
+ W.state || "",
+ W.seed || "",
- V7()
+ B7()
]);
- qht(n);
- let [i, a] = await Rht(t);
- uht(n);
- let [i, a] = await tht(t);
++ Yht(n);
++ let [i, a] = await Bht(t);
if (e !== X.barsRequestSeq) return;
let o = r + "\n" + JSON.stringify([i, a]);
if (o === X.barsRendered) {
@@@ -108367,51 -107377,51 +108379,51 @@@
});
return;
}
- X.barsRendered = o, t.type === "home" && (v9.facets = i);
+ X.barsRendered = o, t.type === "home" && (_9.facets = i);
let s = i.tags || [];
ea(a.performers), ea(a.studios);
- let c = t.type === "home" && !V7() && !W.state && !W.q && !i.locations.some((e) => e.n > 0);
- let c = t.type === "home" && !B7() && !G.state && !G.q && !i.locations.some((e) => e.n > 0);
++ let c = t.type === "home" && !B7() && !W.state && !W.q && !i.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = Y5.seededSample(f, X.TAGS_FIRST, `tags:${W.seed || ""}`), m = new Set(p.map((e) => e.k));
- let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = J5.seededSample(f, X.TAGS_FIRST, `tags:${G.seed || ""}`), m = new Set(p.map((e) => e.k));
++ let l = X.tagList(n.tag), u = new Map(s.map((e) => [e.k, e])), d = l.map((e) => u.get(e) || { k: e }), f = s.filter((e) => !l.includes(e.k)), p = J5.seededSample(f, X.TAGS_FIRST, `tags:${W.seed || ""}`), m = new Set(p.map((e) => e.k));
X.catalogTagRows = d.concat(p, f.filter((e) => !m.has(e.k))).map((e) => ({
k: e.k,
label: kc(e.k),
n: e.n ?? null
- })), n9({
+ })), t9({
tiers: {
key: String(X.barsRequestSeq),
- performers: a.performers.map(Ght),
- studios: a.studios.map(Kht)
- performers: a.performers.map(cht),
- studios: a.studios.map(lht)
++ performers: a.performers.map(qht),
++ studios: a.studios.map(Jht)
},
empty: c,
- tags: Wht(n),
- tags: sht(n),
++ tags: Kht(n),
tagFirst: d.length + p.length,
views: X.catalogViews(),
state: n.state || ""
- }), a9(), k7.sidebarCatalog = {
+ }), i9(), O7.sidebarCatalog = {
kind: "catalog",
- key: String(++k7.sidebarContentSeq),
- facets: ugt(i, t)
- }, E9({
- content: k7.sidebarCatalog,
+ key: String(++O7.sidebarContentSeq),
- facets: Dht(i, t)
++ facets: fgt(i, t)
+ }, T9({
+ content: O7.sidebarCatalog,
filters: { ...n },
latest: null
});
}
- function Jht(e, t) {
- v9.total = e, W.state === "trash" && (_7.trashCount = {
- total: v9.total,
-function dht(e, t) {
- _9.total = e, G.state === "trash" && (g7.trashCount = {
++function Xht(e, t) {
++ _9.total = e, W.state === "trash" && (g7.trashCount = {
+ total: _9.total,
shown: t
- }), L7(), n9({ count: {
- total: v9.total,
+ }), I7(), t9({ count: {
+ total: _9.total,
shown: t
} });
}
- function Yht() {
-function fht() {
++function Zht() {
return Vs({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
@@@ -108419,11 -107429,11 +108431,11 @@@
danger: !0,
onConfirm: async () => {
try {
- let e = await It("/api/trash/empty", { method: "POST" });
+ let e = await Ft("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- Y5.actionReceipt(`已永久删除 ${e.purged} 项`);
+ J5.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await o9();
+ await a9();
}
}
});
@@@ -108433,7 -107443,7 +108445,7 @@@ function r9(e)
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
- function Xht(e) {
-function pht(e) {
++function Qht(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@@ -108453,93 -107463,99 +108465,93 @@@
label: kc(e)
})), t;
}
- function a9() {
- n9({
- combo: Xht(W),
+ function i9() {
+ t9({
- combo: pht(G),
++ combo: Qht(W),
comboHidden: !X.catalogOnScreen()
});
}
- async function o9() {
+ async function a9() {
let e = Q.claimSurface(Q.surfacePath());
- if (hpt(location.pathname) && !lk(R("#libraryProcessingNotice")) && fk("library-processing", {
- toast: J5.toast,
- mode: "notice"
- }, {
- container: R("#libraryProcessingNotice"),
- isCurrent: () => Q.surfaceCurrent(e)
- }), ml({
+ if (ml({
barsContext: {
type: "home",
- filters: G
+ filters: W
},
detailReturnBarsContext: null
- }), y9(!1), W.state === "ads") return rgt(e);
- if (X.controller.page === "/junk-files" && s9(), E7(), M7(), r7(location.pathname) && W.browse !== "folders") {
- if (await T7.entityShapesReady, !Q.surfaceCurrent(e)) return;
- $pt();
- } else i7();
- return a9(), R("#count").classList.remove("manage-static", "junkcount"), Qht(e);
- }
- function Zht(e) {
- }), v9(!1), G.state === "ads") return bht(e);
- if (X.controller.page === "/junk-files" && o9(), T7(), j7(), n7(location.pathname) && G.browse !== "folders") {
++ }), v9(!1), W.state === "ads") return agt(e);
++ if (X.controller.page === "/junk-files" && o9(), T7(), j7(), n7(location.pathname) && W.browse !== "folders") {
+ if (await w7.entityShapesReady, !Q.surfaceCurrent(e)) return;
- gpt();
++ tmt();
+ } else r7();
- return i9(), R("#count").classList.remove("manage-static", "junkcount"), hht(e);
++ return i9(), R("#count").classList.remove("manage-static", "junkcount"), egt(e);
+ }
-function mht(e) {
++function $ht(e) {
X.controller.settle(e);
}
- function s9() {
+ function o9() {
let e = R("#grid");
-- wc(e), mk(e), X.controller.clear(), e.innerHTML = "";
++ wc(e), gk(e), X.controller.clear(), e.innerHTML = "";
}
- function Qht(e) {
- return egt("/", ngt, e, { place: Wgt });
-function hht(e) {
- return _ht("/", yht, e, { place: sgt });
++function egt(e) {
++ return ngt("/", igt, e, { place: Kgt });
}
- function $ht(e) {
- return egt("/junk-files", agt, e);
-function ght(e) {
- return _ht("/junk-files", Sht, e);
++function tgt(e) {
++ return ngt("/junk-files", sgt, e);
}
- function c9() {
- return !!ck(R("#grid"));
+ function s9() {
- return !!ck(R("#grid"));
++ return !!uk(R("#grid"));
}
- function l9() {
- return X.controller.taken(c9());
+ function c9() {
+ return X.controller.taken(s9());
}
- function u9(e) {
- pk(R("#grid"), e);
+ function l9(e) {
- pk(R("#grid"), e);
++ hk(R("#grid"), e);
}
- function egt(e, t, n, r = {}) {
-function _ht(e, t, n, r = {}) {
++function ngt(e, t, n, r = {}) {
let i = R("#grid");
- X.controller.page && X.controller.page !== e && s9();
- let a = X.controller.begin(e, c9()), o = t();
- if (!a.mount) return u9(o), a.settled;
+ X.controller.page && X.controller.page !== e && o9();
+ let a = X.controller.begin(e, s9()), o = t();
+ if (!a.mount) return l9(o), a.settled;
wc(i);
-- let s = () => mk(i);
-- return a.signal.addEventListener("abort", s, { once: !0 }), fk(e, o, {
++ let s = () => gk(i);
++ return a.signal.addEventListener("abort", s, { once: !0 }), mk(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(c9());
+ a.signal.removeEventListener("abort", s), a.finish(s9());
}), a.settled;
}
- function d9() {
- let e = H7();
- return jE({
- active: V7() || e,
+ function u9() {
+ let e = V7();
- return jE({
++ return NE({
+ active: B7() || e,
home: e,
- portrait: G.orient === "竖屏"
+ portrait: W.orient === "竖屏"
});
}
- function f9(e = "正在读取作品") {
- return NK(e, {
+ function d9(e = "正在读取作品") {
- return uK(e, {
++ return LK(e, {
cards: !0,
className: "catalog-skeleton postercard-skeleton",
- cardRatio: tgt()
- cardRatio: vht()
++ cardRatio: rgt()
});
}
- function tgt() {
- return W ? ME(d9()) : 16 / 9;
-function vht() {
- return G ? ME(u9()) : 16 / 9;
++function rgt() {
++ return W ? PE(u9()) : 16 / 9;
}
- function p9() {
- l9() && (wc(R("#grid")), u9({
- layout: d9(),
+ function f9() {
+ c9() && (wc(R("#grid")), l9({
+ layout: u9(),
seekSeconds: Z.appSettings.seekSeconds
- })), a7.entityPageCurrent() && (wc(R("#index [data-entity-hero]")), s7({
- layout: d9(),
+ })), i7.entityPageCurrent() && (wc(R("#index [data-entity-hero]")), o7({
+ layout: u9(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
- function ngt() {
-function yht() {
- let e = decodeURIComponent(location.pathname), t = Vt(e), n = G.state === "trash";
++function igt() {
+ let e = decodeURIComponent(location.pathname), t = Bt(e), n = W.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
@@@ -108550,58 -107566,58 +108562,58 @@@
selected: new Set(Hc),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: _9,
- settled: Zht,
- skeletonHtml: () => f9(),
+ wireDrag: g9,
- settled: mht,
++ settled: $ht,
+ skeletonHtml: () => d9(),
- filters: { ...G },
+ filters: { ...W },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
- excludeVertical: t && e !== "/wall" && !G.q && !G.orient && G.browse !== "folders" || G.jav === "1",
- mix: t && e !== "/wall" && !n && G.browse !== "folders",
- shorts: t && e !== "/wall" && !B7() && G.orient !== "竖屏" && !n && G.browse !== "folders",
+ excludeVertical: t && e !== "/wall" && !W.q && !W.orient && W.browse !== "folders" || W.jav === "1",
+ mix: t && e !== "/wall" && !n && W.browse !== "folders",
- shorts: t && e !== "/wall" && !V7() && W.orient !== "竖屏" && !n && W.browse !== "folders",
++ shorts: t && e !== "/wall" && !B7() && W.orient !== "竖屏" && !n && W.browse !== "folders",
countRow: R("#count"),
- onCount: Jht,
- onCountFailed: () => n9({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : Oht({
- jav: V7() && !t,
- onCount: dht,
++ onCount: Xht,
+ onCountFailed: () => t9({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : Gmt({
++ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : Aht({
+ jav: B7() && !t,
configurable: rl,
filtered: !t
}),
canLoadMore: () => R("#stats").hidden && R("#index").hidden
};
}
- function rgt(e) {
-function bht(e) {
++function agt(e) {
let t = R("#count");
- return X.controller.page === "/junk-files" && c9() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (s9(), E7("正在读取垃圾文件")), M7(), a9(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), $ht(e);
- return X.controller.page === "/junk-files" && s9() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (o9(), T7("正在读取垃圾文件")), j7(), i9(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), ght(e);
++ return X.controller.page === "/junk-files" && s9() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (o9(), T7("正在读取垃圾文件")), j7(), i9(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), tgt(e);
}
- async function igt(e, t) {
-async function xht(e, t) {
++async function ogt(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await o9();
+ }), await a9();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- Y5.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ J5.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
- await It("/api/batch", {
+ await Ft("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await o9();
+ }), await a9();
} });
} catch (e) {
- throw Y5.actionFailure("操作", e), e;
+ throw J5.actionFailure("操作", e), e;
}
}
- function agt() {
-function Sht() {
++function sgt() {
return {
- ...NU(location.search),
- ...lU(location.search),
++ ...LU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@@ -108609,16 -107625,16 +108621,16 @@@
selectMode: Wc,
selected: new Set(Hc),
countRow: R("#count"),
- settled: Zht,
- skeletonHtml: () => NK("正在读取垃圾文件", {
- settled: mht,
- skeletonHtml: () => uK("正在读取垃圾文件", {
++ settled: $ht,
++ skeletonHtml: () => LK("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => R("#stats").hidden && R("#index").hidden
};
}
- function ogt() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => apt(e, t, Z.appSettings, n), ml(upt(opt(location, Z.appSettings, Y5.rollSeed))), X.searchValueSnapshot = {
-function Cht() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => xft(e, t, Z.appSettings, n), ml(Eft(Sft(location, Z.appSettings, J5.rollSeed))), X.searchValueSnapshot = {
++function cgt() {
++ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => spt(e, t, Z.appSettings, n), ml(fpt(cpt(location, Z.appSettings, J5.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = R("#q")) => {
@@@ -108639,54 -107655,54 +108651,54 @@@
};
};
}
- function sgt() {
- J5.handler(R("#wallBtn"), "onclick", () => {
- y7(!1, !0);
- let e = c7(), t = {
- ...a7.activeFilterState(),
- jav: V7() ? "1" : ""
-function wht() {
++function lgt() {
+ q5.handler(R("#wallBtn"), "onclick", () => {
+ v7(!1, !0);
+ let e = s7(), t = {
+ ...i7.activeFilterState(),
+ jav: B7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(DCe(void 0, t));
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(wSe(void 0, t));
- }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = G.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
++ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(wCe(void 0, t));
+ }), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = W.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) => Dk(e, t),
-- displayName: (e, t) => Ek(e, t),
++ titleHtml: (e, t) => kk(e, t),
++ displayName: (e, t) => Ok(e, t),
tagLabel: (e) => kc(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await N5(v9.stageHost);
+ let r = await M5(_9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: Fht,
- open: (e, t) => Pht(e, t),
- openResource: (e, t) => P5()?.miniplayerTakesCard(e) ? P5().miniplayerPlay(e.id) : Mht(e, t),
- openShort: (e) => P5()?.miniplayerTakesCard(e) ? P5().miniplayerPlay(e.id) : C9(e.id),
- openShorts: () => C9(),
- openMix: (e, t) => Sgt(e, e, !0, t),
- openEntity: (e, t) => m7(e, t),
- openUnowned: () => Z7({ owner: "none" }, !0),
- wallDetails: Qmt,
- open: (e, t) => Zmt(e, t),
- openResource: (e, t) => N5()?.miniplayerTakesCard(e) ? N5().miniplayerPlay(e.id) : Ymt(e, t),
++ wallDetails: Lht,
++ open: (e, t) => Iht(e, t),
++ openResource: (e, t) => N5()?.miniplayerTakesCard(e) ? N5().miniplayerPlay(e.id) : Pht(e, t),
+ openShort: (e) => N5()?.miniplayerTakesCard(e) ? N5().miniplayerPlay(e.id) : S9(e.id),
+ openShorts: () => S9(),
- openMix: (e, t) => zht(e, e, !0, t),
++ openMix: (e, t) => wgt(e, e, !0, t),
+ openEntity: (e, t) => p7(e, t),
+ openUnowned: () => X7({ owner: "none" }, !0),
toggleTag: (e) => {
- e9((t) => {
+ $7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
}), window.scrollTo({
top: 0,
behavior: "smooth"
});
},
- toggleSelection: (e, t) => b7(e, t),
- watchLater: (e, t) => Iht(e, t),
- resourceOperation: (e, t) => Lht(e, t),
- mixRelated: (e) => Nht(e),
- canFlip: () => !Wc && !g9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => y7(e, t),
- watchLater: (e, t) => $mt(e, t),
- resourceOperation: (e, t) => eht(e, t),
- mixRelated: (e) => Xmt(e),
++ watchLater: (e, t) => Rht(e, t),
++ resourceOperation: (e, t) => zht(e, t),
++ mixRelated: (e) => Fht(e),
+ canFlip: () => !Wc && !h9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
- seed: G.seed || ""
+ seed: W.seed || ""
});
- return t && n.set("page", String(t)), V7() && n.set("jav", "1"), e.type === "home" && W.state && n.set("state", W.state), e.type === "home" && W.folder && (n.set("folder", W.folder), W.folder_recursive && n.set("folder_recursive", W.folder_recursive)), n;
- return t && n.set("page", String(t)), B7() && n.set("jav", "1"), e.type === "home" && G.state && n.set("state", G.state), e.type === "home" && G.folder && (n.set("folder", G.folder), G.folder_recursive && n.set("folder_recursive", G.folder_recursive)), n;
++ return t && n.set("page", String(t)), B7() && n.set("jav", "1"), e.type === "home" && W.state && n.set("state", W.state), e.type === "home" && W.folder && (n.set("folder", W.folder), W.folder_recursive && n.set("folder_recursive", W.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@@ -108706,39 -107722,39 +108718,39 @@@
}
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
- href: e.k ? zt[e.k] : "/"
+ href: e.k ? Rt[e.k] : "/"
- })), X.TAGS_FIRST = 26, J5.listen(R("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, q5.listen(R("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), Vht().setView(t.dataset.catalogView));
- t && !e.defaultPrevented && (e.preventDefault(), iht().setView(t.dataset.catalogView));
++ t && !e.defaultPrevented && (e.preventDefault(), Uht().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => R("#index").hidden && R("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && n9({ comboHidden: !0 });
+ X.catalogFilterProps && t9({ comboHidden: !0 });
};
}
- function cgt() {
-function Tht() {
++function ugt() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Wc && y7(!1, !0), Q.route(e);
+ Wc && v7(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => b7(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : x9(e.id, !0, null, t),
+ toggleSelection: (e, t) => y7(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : b9(e.id, !0, null, t),
reveal: async (e) => {
try {
- return await It("/api/reveal", {
+ return await Ft("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), Y5.toast({ text: "已在资源管理器中显示" }), "";
+ }), J5.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return a7.sourceHint(e.message);
+ return i7.sourceHint(e.message);
}
},
- operate: (e, t) => igt(e, t)
- operate: (e, t) => xht(e, t)
++ operate: (e, t) => ogt(e, t)
};
}
- X.controller = new dpt();
-X.controller = new Dft();
++X.controller = new ppt();
//#endregion
//#region src/application/preferences.js
var Z = {
@@@ -108772,18 -107788,18 +108784,18 @@@ async function p9()
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), kht(), Z.sourceOnline;
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), Kmt(), Z.sourceOnline;
++ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), jht(), Z.sourceOnline;
}
- function h9() {
+ function m9() {
let e = Q.surfacePath();
- if (!Bt(e) || e === "/junk-files") return o9();
- if (!Vt(e) || e === "/junk-files") return a9();
++ if (!Bt(e) || e === "/junk-files") return a9();
let t = Z.nextCatalogLoad();
- return Ck(X7(), {
- return Ck(Y7(), {
++ return Tk(Y7(), {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
}), t;
}
- function lgt(e) {
-function Eht(e) {
++function dgt(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@@ -108804,7 -107820,7 +108816,7 @@@
cost: "free"
};
}
- function ugt(e, t) {
-function Dht(e, t) {
++function fgt(e, t) {
let n = (e, t = (e) => e.label || kc(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
@@@ -108813,9 -107829,9 +108825,9 @@@
return {
locations: (e.locations || []).map((e) => ({
value: e.k,
- label: pn[e.k] || e.k,
+ label: fn[e.k] || e.k,
n: e.n ?? null,
- dot: lgt(e.k),
- dot: Eht(e.k),
++ dot: dgt(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@@ -108827,24 -107843,24 +108839,24 @@@
duration: !!e.stats?.duration
};
}
- async function dgt(e = !1) {
- if (e && (document.hidden || !Bt(decodeURIComponent(location.pathname)) || v9.stageOpen() || v9.immerseOpen() || Wc || Hc.size || document.activeElement === R("#q"))) return !1;
-async function Oht(e = !1) {
- if (e && (document.hidden || !Vt(decodeURIComponent(location.pathname)) || _9.stageOpen() || _9.immerseOpen() || Wc || Hc.size || document.activeElement === R("#q"))) return !1;
++async function pgt(e = !1) {
++ if (e && (document.hidden || !Bt(decodeURIComponent(location.pathname)) || _9.stageOpen() || _9.immerseOpen() || Wc || Hc.size || document.activeElement === R("#q"))) return !1;
if (!R("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- wmt();
- Vpt();
++ Emt();
return;
}
let n = t === "reopen" ? e : "/stats";
-- n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Sk.navigation.location.state) : Q.navigatePath(n);
++ n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, wk.navigation.location.state) : Q.navigatePath(n);
} else if (R("#index").hidden) {
- W.sort = "seed", W.dir = "", W.seed = Y5.rollSeed(), hl(), Q5(), n9({ refreshing: !0 });
- G.sort = "seed", G.dir = "", G.seed = J5.rollSeed(), hl(), Z5(), t9({ refreshing: !0 });
++ W.sort = "seed", W.dir = "", W.seed = J5.rollSeed(), hl(), Z5(), t9({ refreshing: !0 });
try {
- let e = h9();
- await null, await Promise.all([e, r9()]);
+ let e = m9();
+ await null, await Promise.all([e, n9()]);
} finally {
- n9({ refreshing: !1 });
+ t9({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@@ -108852,67 -107868,67 +108864,67 @@@
}), !0;
}
}
- function g9() {
+ function h9() {
return document.body.classList.contains("censor");
}
- function fgt(e) {
-function kht(e) {
++function mgt(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
- function pgt(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), fgt(e), e && wc();
-function Aht(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), kht(e), e && wc();
++function hgt(e) {
++ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), mgt(e), e && wc();
}
- function mgt(e) {
-function jht(e) {
++function ggt(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
- function _9(e) {
+ function g9(e) {
return ps(e, { drag: !0 });
}
- function hgt() {
- ["#nrow", "#count"].forEach((e) => _9(R(e))), document.querySelectorAll(".tier,.srow").forEach(_9);
-function Mht() {
++function _gt() {
+ ["#nrow", "#count"].forEach((e) => g9(R(e))), document.querySelectorAll(".tier,.srow").forEach(g9);
}
- function ggt() {
-function Nht() {
++function vgt() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
- function _gt() {
-function Pht() {
++function ygt() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "脱盘模式:这个来源当前没有挂载", Z.OFFLINE_REASON = {
local: "本地硬盘没有挂载,接上后点重新检测即可播放。",
115: "115 网盘没有挂载,检查 CloudDrive 是否在运行。",
pikpak: "PikPak 没有挂载,检查 CloudDrive 是否在运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "这个来源当前没有挂载。", Z.settingsStore = xE(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Wa(Z.appSettings.uiSounds), Xa(), CE(), oue(), Tue(), FE(), IE(), 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 = xE(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Wa(Z.appSettings.uiSounds), Xa(), CE(), qle(), fue(), FE(), IE(), 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 = {
-- theme: () => CE(),
++ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "这个来源当前没有挂载。", Z.settingsStore = CE(), Z.appSettings = Z.settingsStore.value, Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Wa(Z.appSettings.uiSounds), Xa(), TE(), iue(), Cue(), LE(), RE(), 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 = {
++ theme: () => TE(),
uiSounds: () => {
Wa(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Ga("toggle-on");
},
-- glowFrame: () => PE(),
++ glowFrame: () => IE(),
glow: () => {
-- PE(), FE();
++ IE(), LE();
},
batchSize: () => {
- location.pathname === "/" && o9();
+ location.pathname === "/" && a9();
},
defaultSort: () => {
- W.sort = Z.appSettings.defaultSort, W.dir = dE(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && h9();
- G.sort = Z.appSettings.defaultSort, G.dir = dE(G.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && m9();
++ W.sort = Z.appSettings.defaultSort, W.dir = pE(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && m9();
},
sortDirection: () => {
- W.dir = dE(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && h9();
- G.dir = dE(G.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && m9();
++ W.dir = pE(W.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), hl(), location.pathname === "/" && m9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
Ec(e, "previewing", !1), Ec(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => p9(),
- groupCollapse: () => vht(),
- feedAutoScroll: () => tmt(),
- feedCompilations: () => emt(),
+ seekSeconds: () => f9(),
- groupCollapse: () => Fmt(),
- feedAutoScroll: () => vpt(),
- feedCompilations: () => _pt(),
++ groupCollapse: () => bht(),
++ feedAutoScroll: () => rmt(),
++ feedCompilations: () => nmt(),
miniplayer: () => {
- Z.appSettings.miniplayer || P5()?.closeMiniplayer();
+ Z.appSettings.miniplayer || N5()?.closeMiniplayer();
},
javImage: () => {
- la(document, Z.appSettings.javImage), p9(), document.querySelectorAll("img[data-jav-image].cover").forEach(oc), xgt();
- la(document, Z.appSettings.javImage), f9(), document.querySelectorAll("img[data-jav-image].cover").forEach(oc), Rht();
++ la(document, Z.appSettings.javImage), f9(), document.querySelectorAll("img[data-jav-image].cover").forEach(oc), Cgt();
},
-- searchHistoryLimit: () => pk(R("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
++ searchHistoryLimit: () => hk(R("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
...Object.fromEntries(Object.entries(uo).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : z(t)])),
online: z("rss")
@@@ -108921,8 -107937,8 +108933,8 @@@
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${B(r)}" aria-label="${B(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Io;
}
- function vgt() {
- Z.CENSOR_KEY = "peach-censor", fgt(localStorage.getItem(Z.CENSOR_KEY) === "1");
-function Fht() {
- Z.CENSOR_KEY = "peach-censor", kht(localStorage.getItem(Z.CENSOR_KEY) === "1");
++function bgt() {
++ Z.CENSOR_KEY = "peach-censor", mgt(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
//#endregion
//#region src/application/media.js
@@@ -108937,18 -107953,18 +108949,18 @@@ var _9 =
immerseOpen: void 0,
requestedImmerseId: void 0
};
- function ygt() {
-function Iht() {
++function xgt() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
- function bgt() {
- return P5()?.exit() || Promise.resolve();
-function Lht() {
++function Sgt() {
+ return N5()?.exit() || Promise.resolve();
}
- function y9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && O9(), P5()?.dispose({ miniplayer: n }), ml({
+ function v9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && D9(), N5()?.dispose({ miniplayer: n }), ml({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@@ -108956,15 -107972,15 +108968,15 @@@
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), J7(), e && Q.route(Jc || "/");
+ }), q7(), e && Q.route(Jc || "/");
}
- function xgt() {
- P5()?.repaintPoster();
-function Rht() {
++function Cgt() {
+ N5()?.repaintPoster();
}
- function b9(e, t, n, r, i = null, a = {}) {
+ function y9(e, t, n, r, i = null, a = {}) {
t = +t;
let o = Qc?.kind === e && (e === "playlist" ? Qc.playlistId : Qc.seedId) === t;
-- r && !o && ml({ detailReturnPath: location.pathname + location.search }), r && QO();
++ r && !o && ml({ detailReturnPath: location.pathname + location.search }), r && ek();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@@ -108975,38 -107991,38 +108987,38 @@@
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- O9();
+ D9();
let e = Q.queueOpenRequest = {
-- seq: Sk.navigation.seq,
++ seq: wk.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => x9(n == null ? null : +n, !1, s, i, !0, e), ml({ queueOpens: ol + 1 });
- } else return x9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => b9(n == null ? null : +n, !1, s, i, !0, e), ml({ queueOpens: ol + 1 });
+ } else return b9(n == null ? null : +n, !1, s, i, r);
}
- function Sgt(e, t = e, n = !0, r = null) {
- return b9("mix", e, t, n, r);
-function zht(e, t = e, n = !0, r = null) {
++function wgt(e, t = e, n = !0, r = null) {
+ return y9("mix", e, t, n, r);
}
- function Cgt(e, t = e, n = !0, r = null) {
- return b9("editions", e, t, n, r);
-function Bht(e, t = e, n = !0, r = null) {
++function Tgt(e, t = e, n = !0, r = null) {
+ return y9("editions", e, t, n, r);
}
- function wgt(e, t = e, n = !0, r = null) {
- return b9("parts", e, t, n, r);
-function Vht(e, t = e, n = !0, r = null) {
++function Egt(e, t = e, n = !0, r = null) {
+ return y9("parts", e, t, n, r);
}
- function Tgt(e, t = null, n = !0) {
- return b9("playlist", e, t, n);
-function Hht(e, t = null, n = !0) {
++function Dgt(e, t = null, n = !0) {
+ return y9("playlist", e, t, n);
}
- function Egt() {
-function Uht() {
++function Ogt() {
return !!R("#grid").querySelector("[data-id],[data-mix-seed]") || !R("#index").hidden || !R("#stats").hidden;
}
- async function x9(e, t = !0, n = null, r = null, i = !1, a = null) {
+ async function b9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || O9(), t && !n) {
- ml({ detailReturnPath: location.pathname + location.search }), k9("/assets/" + +e, "item", () => x9(e, !1, null, r));
+ if (a || D9(), t && !n) {
+ ml({ detailReturnPath: location.pathname + location.search }), O9("/assets/" + +e, "item", () => b9(e, !1, null, r));
return;
}
wc(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : Yc?.isConnected ? Yc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Xc, c = Egt(), l = Zc || !t && !c, u = Bc.type === "item" ? Vc : a7.cloneBarsContext(c7());
- t ? ml({ detailReturnPath: location.pathname + location.search }) : i || ml({ detailReturnPath: ek() || Jc }), t && QO(), P5()?.showing() !== "item" && y9(!1, !0, {
- let o = r?.isConnected ? r : Yc?.isConnected ? Yc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Xc, c = Uht(), l = Zc || !t && !c, u = Bc.type === "item" ? Vc : i7.cloneBarsContext(s7());
- t ? ml({ detailReturnPath: location.pathname + location.search }) : i || ml({ detailReturnPath: ek() || Jc }), t && QO(), N5()?.showing() !== "item" && v9(!1, !0, {
++ let o = r?.isConnected ? r : Yc?.isConnected ? Yc : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : Xc, c = Ogt(), l = Zc || !t && !c, u = Bc.type === "item" ? Vc : i7.cloneBarsContext(s7());
++ t ? ml({ detailReturnPath: location.pathname + location.search }) : i || ml({ detailReturnPath: nk() || Jc }), t && ek(), N5()?.showing() !== "item" && v9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), ml({
@@@ -109017,18 -108033,18 +109029,18 @@@
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
-- } }), ml({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, tk("item"));
- let d = await N5(v9.stageHost);
++ } }), ml({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, rk("item"));
+ let d = await M5(_9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...v9.itemDetailActions,
+ ..._9.itemDetailActions,
present: (e, t) => {
- a.cancelled || v9.itemDetailActions.present(e, t);
+ a.cancelled || _9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || v9.itemDetailActions.redirect(e);
+ a.cancelled || _9.itemDetailActions.redirect(e);
}
- } : v9.itemDetailActions;
+ } : _9.itemDetailActions;
await d.open({
kind: "item",
id: e,
@@@ -109044,39 -108060,39 +109056,39 @@@
selectMode: Wc,
selected: new Set(Hc),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : ygt()
- }), J7();
- resume: t || e == null ? null : Iht()
++ resume: t || e == null ? null : xgt()
+ }), q7();
}
- async function Dgt() {
- let e = a7.cloneBarsContext(Vc), t = Jc || "/", n = Zc;
- await bgt(), y9(!1, !1, { miniplayer: !1 }), ml({ detailReturnBarsContext: null }), $O(), ml({ barsContext: e || {
-async function Wht() {
++async function kgt() {
+ let e = i7.cloneBarsContext(Vc), t = Jc || "/", n = Zc;
- await Lht(), v9(!1, !1, { miniplayer: !1 }), ml({ detailReturnBarsContext: null }), $O(), ml({ barsContext: e || {
++ await Sgt(), v9(!1, !1, { miniplayer: !1 }), ml({ detailReturnBarsContext: null }), tk(), ml({ barsContext: e || {
type: "home",
- filters: G
+ filters: W
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? ml({ pageOpens: al + 1 }) : (r9(), location.pathname === "/playlists" && ml({ pageOpens: al + 1 })));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? ml({ pageOpens: al + 1 }) : (n9(), location.pathname === "/playlists" && ml({ pageOpens: al + 1 })));
}
- async function S9(e, t = !0) {
+ async function x9(e, t = !0) {
if (t) {
- ml({ detailReturnPath: location.pathname + location.search }), k9("/works/" + encodeURIComponent(e), "jav", () => S9(e, !1));
+ ml({ detailReturnPath: location.pathname + location.search }), O9("/works/" + encodeURIComponent(e), "jav", () => x9(e, !1));
return;
}
- let n = Sk.navigation.seq, r = a7.cloneBarsContext(c7()), i = !Egt(), a = ek() || (i ? "/jav?tab=discover" : Jc) || "/jav?tab=discover";
- P5()?.showing() !== "jav" && y9(!1, !0, { miniplayer: !1 }), ml({
- let n = Sk.navigation.seq, r = i7.cloneBarsContext(s7()), i = !Uht(), a = ek() || (i ? "/jav?tab=discover" : Jc) || "/jav?tab=discover";
++ let n = wk.navigation.seq, r = i7.cloneBarsContext(s7()), i = !Ogt(), a = nk() || (i ? "/jav?tab=discover" : Jc) || "/jav?tab=discover";
+ N5()?.showing() !== "jav" && v9(!1, !0, { miniplayer: !1 }), ml({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
}), wc();
- let [o, s] = await Promise.all([N5(v9.stageHost), yn("/healthz")]);
- let [o, s] = await Promise.all([M5(_9.stageHost), H("/healthz")]);
-- Sk.navigation.seq === n && (await o.open({
++ let [o, s] = await Promise.all([M5(_9.stageHost), yn("/healthz")]);
++ wk.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void Dgt(),
- close: () => void Wht(),
++ close: () => void kgt(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
-- Sk.navigation.seq === n && t && t !== e && Ck("/works/" + encodeURIComponent(t) + location.search + location.hash, {
++ wk.navigation.seq === n && t && t !== e && Tk("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
});
},
openTag: (e) => {
@@@ -109087,15 -108103,15 +109099,15 @@@
behavior: "smooth"
});
},
- receipt: (e) => Y5.toast({ text: e })
+ receipt: (e) => J5.toast({ text: e })
}
- }), J7());
+ }), q7());
}
- async function C9(e = null, t = !0) {
- t ? (v9.requestedImmerseId = e, Q.route("/immerse")) : (P5()?.closeMiniplayer(), await (await Gft(v9.immerseHost)).open(e));
+ async function S9(e = null, t = !0) {
- t ? (_9.requestedImmerseId = e, Q.route("/immerse")) : (N5()?.closeMiniplayer(), await (await sft(_9.immerseHost)).open(e));
++ t ? (_9.requestedImmerseId = e, Q.route("/immerse")) : (N5()?.closeMiniplayer(), await (await qft(_9.immerseHost)).open(e));
}
- function Ogt() {
- v9.total = 0, v9.facets = null, v9.stageHost = {
-function Ght() {
++function Agt() {
+ _9.total = 0, _9.facets = null, _9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
@@@ -109105,48 -108121,48 +109117,48 @@@
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? R9(t, !0, n) : x9(t, !0);
+ e === "follow" ? L9(t, !0, n) : b9(t, !0);
},
- openItem: (e) => void x9(e)
- }, v9.stageOpen = () => !!P5()?.isOpen();
+ openItem: (e) => void b9(e)
+ }, _9.stageOpen = () => !!N5()?.isOpen();
}
- function kgt() {
- v9.itemDetailHelpers = {
-function Kht() {
++function jgt() {
+ _9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
-- titleHtml: (e) => Dk(e),
-- displayName: (e) => Ek(e),
++ titleHtml: (e) => kk(e),
++ displayName: (e) => Ok(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => kc(e),
- isDurationTag: (e) => gn.has(e),
+ isDurationTag: (e) => hn.has(e),
- tagCandidates: () => v9.facets && v9.facets.tags || [],
+ tagCandidates: () => _9.facets && _9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => NK("正在读取推荐", {
- relatedSkeletonHtml: () => uK("正在读取推荐", {
++ relatedSkeletonHtml: () => LK("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => Nht(e),
- wireDrag: (e) => _9(e),
- mixRelated: (e) => Xmt(e),
++ mixRelated: (e) => Fht(e),
+ wireDrag: (e) => g9(e),
wireDragReorder: (e, t) => Ls(e, t)
- }, v9.itemDetailActions = {
- close: () => Dgt(),
+ }, _9.itemDetailActions = {
- close: () => Wht(),
++ close: () => kgt(),
present: (e) => {
ml({ presentedItem: e });
let t = Vc;
ml({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : a7.emptyEntityFilters()
- } }), $c && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${$c}`, !1, tk("item")), ml({ pendingQueueRoute: null })), r9();
+ filters: t?.type === "entity" ? { ...t.filters } : i7.emptyEntityFilters()
- } }), $c && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${$c}`, !1, tk("item")), ml({ pendingQueueRoute: null })), n9();
++ } }), $c && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${$c}`, !1, rk("item")), ml({ pendingQueueRoute: null })), n9();
},
redirect: (e) => {
let t = !!$c;
e.kind === "follow" ? (Q.queueOpenRequest = null, ml({
pendingQueueRoute: null,
followDetailReturnPath: Jc || "/"
- }), Q.route(`/posts/${e.id}`, !t, tk("follow")), R9(e.id, !1, null, !0)) : e.kind === "item" ? x9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? j9("/playlists") : wmt() : y9(!1);
- }), Q.route(`/posts/${e.id}`, !t, tk("follow")), L9(e.id, !1, null, !0)) : e.kind === "item" ? b9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? A9("/playlists") : Vpt() : v9(!1);
++ }), Q.route(`/posts/${e.id}`, !t, rk("follow")), L9(e.id, !1, null, !0)) : e.kind === "item" ? b9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? A9("/playlists") : Emt() : v9(!1);
},
- openQueueItem: (e, t, n = !0) => void b9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void y9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
let e = el;
if (!e) return;
@@@ -109168,31 -108184,31 +109180,31 @@@
behavior: "smooth"
});
},
- addToPlaylist: (e) => Cmt(e),
- saveMix: (e) => Smt(e),
- editPlaylist: () => j9("/playlists"),
- openPlaylists: () => j9("/playlists"),
- reveal: (e) => lmt(e),
- sync: (e) => umt(e),
- addToPlaylist: (e) => Bpt(e),
- saveMix: (e) => zpt(e),
++ addToPlaylist: (e) => Tmt(e),
++ saveMix: (e) => wmt(e),
+ editPlaylist: () => A9("/playlists"),
+ openPlaylists: () => A9("/playlists"),
- reveal: (e) => Ept(e),
- sync: (e) => Dpt(e),
++ reveal: (e) => dmt(e),
++ sync: (e) => fmt(e),
trashChanged: async (e, t) => {
- W.state === "ads" && (t || e === "trash") && (t || ($O(), y9(!0, !1, { miniplayer: !1 })), await o9());
- G.state === "ads" && (t || e === "trash") && (t || ($O(), v9(!0, !1, { miniplayer: !1 })), await a9());
++ W.state === "ads" && (t || e === "trash") && (t || (tk(), v9(!0, !1, { miniplayer: !1 })), await a9());
},
- toast: (e, { undo: t } = {}) => Y5.actionReceipt(e, { undo: t }),
- failure: (e, t) => Y5.actionFailure(e, t)
- }, v9.immerseHost = {
+ toast: (e, { undo: t } = {}) => J5.actionReceipt(e, { undo: t }),
+ failure: (e, t) => J5.actionFailure(e, t)
+ }, _9.immerseHost = {
- filters: () => G,
+ filters: () => W,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
-- displayName: (e) => Ek(e),
++ displayName: (e) => Ok(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => Z7(),
- openItem: (e) => void x9(e),
- openEntity: (e, t) => m7(e, t),
- openUnowned: () => Z7({ owner: "none" }, !0),
- toast: (e, { undo: t } = {}) => Y5.actionReceipt(e, { undo: t }),
- warn: (e) => Y5.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => Y5.actionFailure(e, t)
- }, v9.immerseOpen = () => !!L5()?.isOpen(), J5.handler(R("#immerseBtn"), "onclick", () => C9());
+ closed: () => X7(),
+ openItem: (e) => void b9(e),
+ openEntity: (e, t) => p7(e, t),
+ openUnowned: () => X7({ owner: "none" }, !0),
+ toast: (e, { undo: t } = {}) => J5.actionReceipt(e, { undo: t }),
+ warn: (e) => J5.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => J5.actionFailure(e, t)
+ }, _9.immerseOpen = () => !!I5()?.isOpen(), q5.handler(R("#immerseBtn"), "onclick", () => S9());
}
//#endregion
//#region src/application/tutorial.js
@@@ -109205,10 -108221,10 +109217,10 @@@ var C9 =
readPostSetupTutorialDone: void 0,
openTutorialTarget: void 0
};
- async function Agt() {
- rc(), await w9.writePostSetupTutorialDone(!1), await T9();
-async function qht() {
++async function Mgt() {
+ rc(), await C9.writePostSetupTutorialDone(!1), await w9();
}
- async function T9() {
+ async function w9() {
let e = R("#postSetupTutorial");
if (!e) return;
let t = () => {
@@@ -109257,29 -108273,29 +109269,29 @@@
e.innerHTML = `<article class="post-setup-notification post-setup-error">${z("alert")}
<div><h2>暂时无法检查安装进度</h2><p>切换页面或重新打开后会再检查一次。</p>
<div class="post-setup-error-actions"><button class="geist-button" type="button" data-tutorial-retry>重试</button>
- <button class="geist-button" type="button" data-tutorial-dismiss>关闭</button></div></div></article>`, e.removeAttribute("aria-busy"), J5.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
- delete e.dataset.tutorialSignature, e.innerHTML = "", T9();
- }), J5.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
+ <button class="geist-button" type="button" data-tutorial-dismiss>关闭</button></div></div></article>`, e.removeAttribute("aria-busy"), q5.handler(e.querySelector("[data-tutorial-retry]"), "onclick", () => {
+ delete e.dataset.tutorialSignature, e.innerHTML = "", w9();
+ }), q5.handler(e.querySelector("[data-tutorial-dismiss]"), "onclick", t);
}
}
- function jgt() {
- if (ml({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), w9.postSetupTutorialDone = null, w9.postSetupTutorialNeedsReopen = !1, il) {
- Js("pending"), w9.postSetupTutorialDone = !1, w9.postSetupTutorialNeedsReopen = !0;
-function Jht() {
++function Ngt() {
+ if (ml({ cameFromSetup: new URLSearchParams(location.search).get("onboarding") === "1" }), C9.postSetupTutorialDone = null, C9.postSetupTutorialNeedsReopen = !1, il) {
+ Js("pending"), C9.postSetupTutorialDone = !1, C9.postSetupTutorialNeedsReopen = !0;
let e = new URL(location.href);
-- e.searchParams.delete("onboarding"), Ck(e, {
++ e.searchParams.delete("onboarding"), Tk(e, {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
});
}
{
let e = new URL(location.href), t = e.searchParams.get("agentation");
-- t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), Ck(e, {
++ t === "on" && localStorage.setItem("peach.agentation", "on"), t === "off" && localStorage.removeItem("peach.agentation"), t !== null && (e.searchParams.delete("agentation"), Tk(e, {
replace: !0,
-- state: Sk.navigation.location.state
++ state: wk.navigation.location.state
})), localStorage.getItem("peach.agentation") === "on" && import("/dev/agentation.js").catch(() => {});
}
- w9.postSetupTutorialTasks = async () => {
+ C9.postSetupTutorialTasks = async () => {
- let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await It("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
+ let { library: e, scraping: t, taste: n, follow: r, credentials: i, review: a } = await Ft("/api/post-setup-tutorial"), o = (t.sources || []).filter((e) => e.accepts_cookie).filter((e) => e.cookie_saved), s = (r.sources || []).filter((e) => e.enabled !== !1), c = new Map((i.providers || []).map((e) => [e.provider, e])), l = [...new Set(s.map((e) => e.provider))].map((e) => c.get(e)).filter((e) => e?.requirement === "required"), u = Number(e.total || 0) > 0, d = s.length > 0, f = d && l.every((e) => e.present && !e.missing?.length), p = Object.values(a.counts || {}).reduce((e, t) => e + (Number(t) || 0), 0);
return [
{
key: "library",
@@@ -109350,19 -108366,19 +109362,19 @@@
<ol class="post-setup-task-list" id="postSetupTaskList">${s}</ol>
<footer><button class="geist-button" type="button" data-tutorial-action="next">继续:${i.label}</button></footer>
</article>`;
- }, w9.writePostSetupTutorialDone = async (e) => {
- w9.postSetupTutorialDone = e, await Ft("/api/settings", {
+ }, C9.writePostSetupTutorialDone = async (e) => {
- C9.postSetupTutorialDone = e, await It("/api/settings", {
++ C9.postSetupTutorialDone = e, await Ft("/api/settings", {
method: "POST",
body: JSON.stringify({ postSetupTutorialDone: e })
});
- }, w9.readPostSetupTutorialDone = async () => {
- if (w9.postSetupTutorialDone === null) try {
- w9.postSetupTutorialDone = (await Ft("/api/settings")).postSetupTutorialDone === !0;
+ }, C9.readPostSetupTutorialDone = async () => {
+ if (C9.postSetupTutorialDone === null) try {
- C9.postSetupTutorialDone = (await It("/api/settings")).postSetupTutorialDone === !0;
++ C9.postSetupTutorialDone = (await Ft("/api/settings")).postSetupTutorialDone === !0;
} catch {
- w9.postSetupTutorialDone = !1;
+ C9.postSetupTutorialDone = !1;
}
- return w9.postSetupTutorialDone;
- }, w9.openTutorialTarget = (e) => {
+ return C9.postSetupTutorialDone;
+ }, C9.openTutorialTarget = (e) => {
e.setupEntry && ml({ cameFromSetup: !0 }), Q.navigatePath(e.href);
};
}
@@@ -109387,48 -108403,48 +109399,48 @@@ var Q =
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
- function Mgt() {
- let e = H5();
- e ? e.navChanged() : R("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(K7(e.dataset.nav))));
-function Yht() {
++function Pgt() {
+ let e = V5();
+ e ? e.navChanged() : R("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(G7(e.dataset.nav))));
}
- function E9(e = {}) {
+ function T9(e = {}) {
let t = Q.surfacePath();
- t !== k7.sidebarSurface && (k7.sidebarSurface = t, k7.sidebarProps = {
- ...k7.sidebarProps,
+ t !== O7.sidebarSurface && (O7.sidebarSurface = t, O7.sidebarProps = {
+ ...O7.sidebarProps,
content: null,
latest: null
- }), k7.sidebarProps = {
- ...k7.sidebarProps,
+ }), O7.sidebarProps = {
+ ...O7.sidebarProps,
...e
- }, H5()?.render(k7.sidebarProps);
+ }, V5()?.render(O7.sidebarProps);
}
- function D9() {
- E9(), Mgt(), q7();
+ function E9() {
- T9(), Yht(), K7();
++ T9(), Pgt(), K7();
}
- function O9() {
+ function D9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, ml({ pendingQueueRoute: null });
}
- function k9(e, t, n) {
- O9(), QO(), Q.requestedOverlay = {
+ function O9(e, t, n) {
- D9(), QO(), Q.requestedOverlay = {
++ D9(), ek(), Q.requestedOverlay = {
path: e,
open: n
-- }, Q.route(e, !1, tk(t));
++ }, Q.route(e, !1, rk(t));
}
- function A9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, T7.syncPageTitle(location.href), E9(), $O(), T9();
+ function k9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, w7.syncPageTitle(location.href), T9(), $O(), w9();
++ Q.surfaceEpoch++, X.barsRequestSeq++, w7.syncPageTitle(location.href), T9(), tk(), w9();
}
- function j9(e) {
+ function A9(e) {
Q.route(e), ml({ pageOpens: al + 1 });
}
- function Ngt() {
-function Xht() {
++function Fgt() {
Q.routeMeta = (e) => {
-- let t = ik(e);
++ let t = ok(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(rk).find((n) => rk[n][e] === t), Q.catalogPage = (e) => Bt(e) || e === "/trash", Q.managedPagePath = (e) => {
- }, Q.routePathOf = (e, t) => Object.keys(rk).find((n) => rk[n][e] === t), Q.catalogPage = (e) => Vt(e) || e === "/trash", Q.managedPagePath = (e) => {
-- let t = ik(e);
-- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !JO(e) && e !== "/immerse";
++ }, Q.routePathOf = (e, t) => Object.keys(ak).find((n) => ak[n][e] === t), Q.catalogPage = (e) => Bt(e) || e === "/trash", Q.managedPagePath = (e) => {
++ let t = ok(e);
++ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !XO(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? C9(ggt()) : e === "/follow" ? L9() : e === "/playlists" || Q.catalogPage(e) ? j9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? C7() : e) : (y7(!1, !0), j9(Kmt({
- e === "/immerse" ? S9(Nht()) : e === "/follow" ? I9() : e === "/playlists" || Q.catalogPage(e) ? A9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? S7() : e) : (v7(!1, !0), A9(lmt({
++ e === "/immerse" ? S9(vgt()) : e === "/follow" ? I9() : e === "/playlists" || Q.catalogPage(e) ? A9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? S7() : e) : (v7(!1, !0), A9(Jmt({
kind: e.slice(1),
q: "",
scope: "local",
@@@ -109437,35 -108453,35 +109449,35 @@@
})));
};
}
- function Pgt() {
-function Zht() {
++function Igt() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (r7(e) || i7(), mk(R("#stats"), R("#index")), !Bt(e) && e !== "/trash" && s9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (hpt(e) || mk(R("#libraryProcessingNotice")), n7(e) || r7(), mk(R("#stats"), R("#index")), !Vt(e) && e !== "/trash" && o9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
-- Q.surfaceEpoch++, X.barsRequestSeq++, Ck(e, {
++ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (n7(e) || r7(), gk(R("#stats"), R("#index")), !Bt(e) && e !== "/trash" && o9(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
++ Q.surfaceEpoch++, X.barsRequestSeq++, Tk(e, {
replace: t,
state: n
- }), T7.syncPageTitle(e), queueMicrotask(() => {
- q7(), z7(), E9(), T9();
+ }), w7.syncPageTitle(e), queueMicrotask(() => {
+ K7(), R7(), T9(), w9();
});
}, Q.navigatePath = (e, t = !1, n) => {
-- t ? Sk.replace(e, n) : Sk.push(e, n), queueMicrotask(() => {
- q7(), z7();
++ t ? wk.replace(e, n) : wk.push(e, n), queueMicrotask(() => {
+ K7(), R7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
//#endregion
//#region src/jobs.ts
- function Fgt(e, t, n) {
-function Qht(e, t, n) {
++function Lgt(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="${B(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>${B(e)}<small>${Math.round(i)}%</small></span></div>`;
}
- function Igt(e, t = 0, n = 0) {
- return n > 0 ? Fgt(e, t, n) : Po(e);
-function $ht(e, t = 0, n = 0) {
- return n > 0 ? Qht(e, t, n) : Po(e);
++function Rgt(e, t = 0, n = 0) {
++ return n > 0 ? Lgt(e, t, n) : Po(e);
}
- async function Lgt(e) {
-async function egt(e) {
++async function zgt(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@@ -109480,14 -108496,14 +109492,14 @@@
await t(2e3);
}
}
- function Rgt(e) {
-function tgt(e) {
++function Bgt(e) {
let t = e.note || ((e) => Mo(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Po, r = e.progress || ((e, t, n) => Igt(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 || Po, r = e.progress || ((e, t, n) => $ht(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 || Po, r = e.progress || ((e, t, n) => Rgt(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;
- Lgt({
- egt({
++ zgt({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@@ -109537,9 -108553,9 +109549,9 @@@ var $ =
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
- function zgt(e) {
-function ngt(e) {
++function Vgt(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- Y5.toast({ text: Kr(e) }, {
+ J5.toast({ text: Kr(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
@@@ -109549,13 -108565,13 +109561,13 @@@
}
});
}
- function M9() {
- return Ni(N9());
+ function j9() {
+ return Ni(M9());
}
- function Bgt() {
-function rgt() {
++function Hgt() {
return $.controller.read();
}
- function N9() {
+ function M9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@@ -109570,33 -108586,33 +109582,33 @@@
seed: $.followSeed
};
}
- function P9(e) {
+ function N9(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 Vgt() {
-function igt() {
-- let e = ck(R("#stats"));
++function Ugt() {
++ let e = uk(R("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
- function F9() {
- return !!Vgt();
+ function P9() {
- return !!igt();
++ return !!Ugt();
}
- function I9(e) {
- F9() && pk(R("#stats"), e);
+ function F9(e) {
- P9() && pk(R("#stats"), e);
++ P9() && hk(R("#stats"), e);
}
- function Hgt(e, t = {}) {
-function agt(e, t = {}) {
++function Wgt(e, t = {}) {
return $.controller.route(e, t);
}
- function L9(e = !1) {
+ function I9(e = !1) {
$.controller.enter(e);
}
- async function R9(e, t = !0, n = null, r = !1) {
+ async function L9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && ml({ followDetailReturnPath: location.pathname + location.search }), k9(`/posts/${+e}`, "follow", () => R9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && ml({ followDetailReturnPath: location.pathname + location.search }), O9(`/posts/${+e}`, "follow", () => L9(e, !1, n, r));
return;
}
wc(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && ml({ followDetailReturnPath: location.pathname + location.search }), !t && !r && ml({ followDetailReturnPath: ek() || "/follow" }), t && QO(), P5()?.showing() !== "follow" && y9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, tk("follow")), await (await N5(v9.stageHost)).open({
- t && i && !r && ml({ followDetailReturnPath: location.pathname + location.search }), !t && !r && ml({ followDetailReturnPath: ek() || "/follow" }), t && QO(), N5()?.showing() !== "follow" && v9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, tk("follow")), await (await M5(_9.stageHost)).open({
++ t && i && !r && ml({ followDetailReturnPath: location.pathname + location.search }), !t && !r && ml({ followDetailReturnPath: nk() || "/follow" }), t && ek(), N5()?.showing() !== "follow" && v9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, rk("follow")), await (await M5(_9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@@ -109604,67 -108620,67 +109616,67 @@@
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : ygt()
- }), J7();
- resume: t ? null : Iht()
++ resume: t ? null : xgt()
+ }), q7();
}
- async function Ugt() {
- await bgt(), y9(!1, !1, { miniplayer: !1 }), $O(), Q.route(tl || "/follow"), !(a7.entityPageView && a7.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && F9() ? (Bgt(), I9({ view: N9() })) : ml({ pageOpens: al + 1 }));
-async function ogt() {
- await Lht(), v9(!1, !1, { miniplayer: !1 }), $O(), Q.route(tl || "/follow"), !(i7.entityPageView && i7.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && P9() ? (rgt(), F9({ view: M9() })) : ml({ pageOpens: al + 1 }));
++async function Ggt() {
++ await Sgt(), v9(!1, !1, { miniplayer: !1 }), tk(), Q.route(tl || "/follow"), !(i7.entityPageView && i7.entityPageCurrent() && !R("#index").hidden) && (location.pathname === "/follow" && P9() ? (Hgt(), F9({ view: M9() })) : ml({ pageOpens: al + 1 }));
}
- function Wgt(e) {
-function sgt(e) {
++function Kgt(e) {
let t = document.createElement("div");
return t.className = "peach-react", Ko(e, () => {
e.textContent = "", e.append(t);
}), t;
}
- function Ggt() {
-function cgt() {
++function qgt() {
$.followFeedHelpers = jc({
wireDrag: (e) => {
- e && _9(e);
+ e && g9(e);
},
wireScroller: (e) => {
e && ps(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Rgt
- jobProgress: tgt
++ jobProgress: Bgt
}), $.followFeedActions = {
- loaded: (e) => iht(e),
- openDetail: (e) => R9(e),
- loaded: (e) => xmt(e),
++ loaded: (e) => oht(e),
+ openDetail: (e) => L9(e),
- openAuthor: (e) => Q.navigatePath(Wt("creator", e)),
+ openAuthor: (e) => Q.navigatePath(Ut("creator", e)),
- openManage: () => Q.navigatePath(C7()),
- toggleSelection: (e, t) => Nmt(e, t),
+ openManage: () => Q.navigatePath(S7()),
- toggleSelection: (e, t) => Xpt(e, t),
++ toggleSelection: (e, t) => Fmt(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), f7();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), d7();
},
setPhotoLayout: (e) => {
- _ue(e), f7();
- iue(e), d7();
++ hue(e), d7();
},
- canFlip: () => !Wc && !g9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => Y5.actionReceipt(e, { undo: t }),
- failure: (e, t) => Y5.actionFailure(e, t),
- checkReport: (e) => zgt(e)
+ canFlip: () => !Wc && !h9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => J5.actionReceipt(e, { undo: t }),
+ failure: (e, t) => J5.actionFailure(e, t),
- checkReport: (e) => ngt(e)
++ checkReport: (e) => Vgt(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- P5()?.showing() !== "follow" && (wc(), y9(!1), j7(), !F9() && (Q.claimSurface(Q.surfacePath()), A7({ manage: !1 }), R("#stats").querySelector(".peach-react") && mk(R("#stats")), R("#stats").replaceChildren()));
- N5()?.showing() !== "follow" && (wc(), v9(!1), A7(), !P9() && (Q.claimSurface(Q.surfacePath()), k7({ manage: !1 }), R("#stats").querySelector(".peach-react") && mk(R("#stats")), R("#stats").replaceChildren()));
++ N5()?.showing() !== "follow" && (wc(), v9(!1), A7(), !P9() && (Q.claimSurface(Q.surfacePath()), k7({ manage: !1 }), R("#stats").querySelector(".peach-react") && gk(R("#stats")), R("#stats").replaceChildren()));
}
}, $.followDetailActions = zc({
- view: N9,
- adoptView: P9,
+ view: M9,
+ adoptView: N9,
rememberReturn: (e) => ml({ followDetailReturnPath: e }),
- close: () => void Ugt(),
- open: (e, t, n) => void R9(e, !0, t, n),
- drawer: iht,
- close: () => void ogt(),
++ close: () => void Ggt(),
+ open: (e, t, n) => void L9(e, !0, t, n),
- drawer: xmt,
- openAuthor: (e) => Q.navigatePath(Wt("creator", e))
++ drawer: oht,
+ openAuthor: (e) => Q.navigatePath(Ut("creator", e))
}, {
- toast: (e, { undo: t } = {}) => Y5.actionReceipt(e, { undo: t }),
- failure: Y5.actionFailure
+ toast: (e, { undo: t } = {}) => J5.actionReceipt(e, { undo: t }),
+ failure: J5.actionFailure
});
}
- function Kgt() {
-function lgt() {
++function Jgt() {
$.controller = Ii({
location: () => location,
- view: N9,
- adoptView: P9,
+ view: M9,
+ adoptView: N9,
session: () => ({
discoverySeed: cl,
revision: ll,
@@@ -109678,20 -108694,20 +109690,20 @@@
preferences: () => ({
selectMode: Wc,
selected: Uc,
-- photoSize: OE(),
-- photoLayout: kE(),
++ photoSize: AE(),
++ photoLayout: jE(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: F9,
- push: I9,
+ live: P9,
+ push: F9,
route: Q.route,
- openPage: j9,
- rollSeed: () => Number(Y5.rollSeed()),
+ openPage: A9,
+ rollSeed: () => Number(J5.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- wc(), j7(), A7({ manage: !1 });
+ wc(), A7(), k7({ manage: !1 });
},
- syncPhotoWalls: f7,
+ syncPhotoWalls: d7,
scrollTop: () => window.scrollTo({
top: 0,
behavior: "smooth"
@@@ -109700,11 -108716,11 +109712,11 @@@
}
//#endregion
//#region src/application/lifecycle.js
- var z9 = { overlayScan: void 0 };
- function qgt() {
- cke(), As(document), Na(document.documentElement, { variant: "page" }), Na(R("#drawerScroll")), z9.overlayScan = 0, J5.mutation(() => {
- z9.overlayScan ||= J5.delay(() => {
- z9.overlayScan = 0, Ds();
+ var R9 = { overlayScan: void 0 };
-function ugt() {
- dOe(), As(document), Na(document.documentElement, { variant: "page" }), Na(R("#drawerScroll")), R9.overlayScan = 0, q5.mutation(() => {
++function Ygt() {
++ ike(), As(document), Na(document.documentElement, { variant: "page" }), Na(R("#drawerScroll")), R9.overlayScan = 0, q5.mutation(() => {
+ R9.overlayScan ||= q5.delay(() => {
+ R9.overlayScan = 0, Ds();
});
}).observe(document.body, {
childList: !0,
@@@ -109721,7 -108737,7 +109733,7 @@@
}
//#endregion
//#region src/react/search/recommendations.ts
- async function Jgt(e) {
-async function dgt(e) {
++async function Xgt(e) {
let t = (await Promise.allSettled([
e("/api/items?sort=rand&limit=5"),
e("/api/jav/discoveries?scope=library&limit=5"),
@@@ -109745,9 -108761,9 +109757,9 @@@
let t = yi(e);
for (let n of ["videos", "images"]) {
if (n === "images" ? !t.has("image") : t.size && !t.has("video")) continue;
- let r = bi(e, n), i = l.sources.find((e) => e.id === r.source_id), a = $F(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
- let r = bi(e, n), i = l.sources.find((e) => e.id === r.source_id), a = vF(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
++ let r = bi(e, n), i = l.sources.find((e) => e.id === r.source_id), a = nI(r, i?.author_key ? l.sources.filter((e) => e.author_key === i.author_key) : i ? [i] : [], l), o = n === "images" ? r.media_items?.find((e) => e.media_kind === "image") : void 0;
(n === "images" ? c : s).push({
- value: YF(r),
- value: mF(r),
++ value: QF(r),
id: r.id,
who: a.author,
href: `/posts/${r.id}`,
@@@ -109763,7 -108779,7 +109775,7 @@@
let u = (t[4]?.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: QF(l.sources.filter((t) => t.author_key === e.key), e.k),
- avatarHtml: _F(l.sources.filter((t) => t.author_key === e.key), e.k),
++ avatarHtml: tI(l.sources.filter((t) => t.author_key === e.key), e.k),
subtitle: "关注中的作者"
})), d = /* @__PURE__ */ new Map();
for (let e of r) for (let t of e.performer_refs || []) t.id && !d.has(t.name) && d.set(t.name, {
@@@ -109834,7 -108850,7 +109846,7 @@@
}
//#endregion
//#region src/application/search-morph.js
- function Ygt(e, t, n, r, i, a, o) {
-function fgt(e, t, n, r, i, a, o) {
++function Zgt(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);
@@@ -109857,10 -108873,10 +109869,10 @@@ var z9 =
searchMorph: void 0,
searchMorphViewport: void 0
};
- function V9() {
- B9.searchControl?.close();
+ function B9() {
+ z9.searchControl?.close();
}
- function Xgt(e) {
-function pgt(e) {
++function Qgt(e) {
let t = e ? aa({
...e,
is_jav: !!e.code
@@@ -109879,36 -108895,36 +109891,36 @@@ function H9(e)
if (t.classList.toggle("open", e), R("#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 = Cs();
t.classList.add("search-morphing");
- let h = t.animate(Ygt(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
- let h = t.animate(fgt(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
++ let h = t.animate(Zgt(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- B9.searchMorph = h, J5.handler(h, "onfinish", () => {
- B9.searchMorph === h && H9();
+ z9.searchMorph = h, q5.handler(h, "onfinish", () => {
+ z9.searchMorph === h && V9();
});
}
- function Zgt() {
- return v9.immerseOpen() ? L5().activeVideo() : P5()?.activeVideo() || null;
-function mgt() {
++function $gt() {
+ return _9.immerseOpen() ? I5().activeVideo() : N5()?.activeVideo() || null;
}
- function Qgt(e) {
-function hgt(e) {
++function e_t(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
- function $gt() {
- B9.searchControl = null, B9.searchActions = {
-function ggt() {
++function t_t() {
+ z9.searchControl = null, z9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), y9(!1), W.q = e, hl(), Q.route(W.jav === "1" ? X7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
- X.rememberSearchValue(), v9(!1), G.q = e, hl(), Q.route(G.jav === "1" ? Y7() : G.q ? "/?q=" + encodeURIComponent(G.q) : "/", !0);
++ X.rememberSearchValue(), v9(!1), W.q = e, hl(), Q.route(W.jav === "1" ? Y7() : W.q ? "/?q=" + encodeURIComponent(W.q) : "/", !0);
},
- openItem: (e) => x9(e),
- openEntity: (e, t) => m7(e, t),
+ openItem: (e) => b9(e),
+ openEntity: (e, t) => p7(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, R9(e, !0, n);
+ $.followMediaView = t, L9(e, !0, n);
}
- }, B9.searchHelpers = {
- pool: () => Dht(W, Ft),
- recommendations: () => Jgt(Ft),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Kpt(e) : Xgt(e)}</span>`,
+ }, z9.searchHelpers = {
- pool: () => Wmt(G, It),
- recommendations: () => dgt(It),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? cpt(e) : pgt(e)}</span>`,
++ pool: () => kht(W, Ft),
++ recommendations: () => Xgt(Ft),
++ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${B(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Jpt(e) : Qgt(e)}</span>`,
present: (e) => to(e),
dismiss: (e) => no(e),
wireScroller: (e) => ps(e),
@@@ -109923,13 -108939,13 +109935,13 @@@
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
-- }, fk("search", {
++ }, mk("search", {
input: R("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: B9.searchActions,
- helpers: B9.searchHelpers,
+ actions: z9.searchActions,
+ helpers: z9.searchHelpers,
expose: (e) => {
- B9.searchControl = e;
+ z9.searchControl = e;
}
}, {
container: R("#searchMenu"),
@@@ -109942,22 -108958,22 +109954,22 @@@
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
- function e_t() {
- B9.searchMorph = null, B9.searchMorphViewport = innerWidth, J5.listen.bind(J5, window)("resize", () => {
- innerWidth !== B9.searchMorphViewport && (B9.searchMorphViewport = innerWidth, H9());
- }, { passive: !0 }), J5.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", H9), J5.handler(R("#searchBtn"), "onclick", () => {
- U9(!0), R("#q").focus({ preventScroll: !0 });
- }), J5.handler(R("#searchBack"), "onclick", () => {
- U9(!1), V9(), R("#q").blur(), R("#searchBtn").focus({ preventScroll: !0 });
- }), J5.listen(R("#q"), "blur", () => J5.delay(() => {
- document.activeElement !== R("#q") && (R("#searchMenu").contains(document.activeElement) || (!R("#q").value && !R("#searchMenu").matches(":hover") && U9(!1), V9()));
- }, 140)), J5.listen(document, "pointerdown", (e) => {
- e.target.closest(".search") || V9();
- }, !0), J5.handler(R("#brandHome"), "onclick", (e) => {
- e.preventDefault(), Z7(null, !0);
- }), J5.listen(document, "keydown", (e) => {
-function _gt() {
++function n_t() {
+ z9.searchMorph = null, z9.searchMorphViewport = innerWidth, q5.listen.bind(q5, window)("resize", () => {
+ innerWidth !== z9.searchMorphViewport && (z9.searchMorphViewport = innerWidth, V9());
+ }, { passive: !0 }), q5.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", V9), q5.handler(R("#searchBtn"), "onclick", () => {
+ H9(!0), R("#q").focus({ preventScroll: !0 });
+ }), q5.handler(R("#searchBack"), "onclick", () => {
+ H9(!1), B9(), R("#q").blur(), R("#searchBtn").focus({ preventScroll: !0 });
+ }), q5.listen(R("#q"), "blur", () => q5.delay(() => {
+ document.activeElement !== R("#q") && (R("#searchMenu").contains(document.activeElement) || (!R("#q").value && !R("#searchMenu").matches(":hover") && H9(!1), B9()));
+ }, 140)), q5.listen(document, "pointerdown", (e) => {
+ e.target.closest(".search") || B9();
+ }, !0), q5.handler(R("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), X7(null, !0);
+ }), q5.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = qft();
- let t = lft();
++ let t = Yft();
if (t?.isOpen()) {
t.close();
return;
@@@ -109984,7 -109000,7 +109996,7 @@@
}
return;
}
- if (Qgt(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
- if (hgt(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
++ if (e_t(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
let t = document.querySelector(`#stage[open] [data-media-carousel]:not([data-carousel-video-active]) [data-follow-image-step="${e.key === "ArrowRight" ? 1 : -1}"]`);
if (t) {
@@@ -109992,26 -109008,26 +110004,26 @@@
return;
}
}
- let t = Zgt();
- let t = mgt();
++ let t = $gt();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), P5()?.toggleTheater();
+ e.preventDefault(), N5()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), Ude(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
- e.preventDefault(), Ade(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
++ e.preventDefault(), Vde(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
-- e.preventDefault(), mD(t);
++ e.preventDefault(), gD(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), ide(t, ".vjs-mute-control");
- e.preventDefault(), Gue(t, ".vjs-mute-control");
++ e.preventDefault(), nde(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), ide(t, ".vjs-fullscreen-control");
- e.preventDefault(), Gue(t, ".vjs-fullscreen-control");
++ e.preventDefault(), nde(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@@ -110027,55 -109043,55 +110039,55 @@@ var U9 =
shellActions: void 0,
routing: void 0
};
- function t_t() {
- let e = J5;
- Jpt(), T7.entityShapesReady = n7(), $mt(), uht(), W9.shellActions = {
- openSettings: (e) => F7(e, !0),
- closeSettings: () => qft()?.close(!1),
- openItem: (e) => void x9(e),
- openEntity: (e, t) => void m7(e, t),
-function vgt() {
++function r_t() {
+ let e = q5;
- upt(), w7.entityShapesReady = t7(), gmt(), Dmt(), U9.shellActions = {
++ Xpt(), w7.entityShapesReady = t7(), tht(), fht(), U9.shellActions = {
+ openSettings: (e) => P7(e, !0),
- closeSettings: () => lft()?.close(!1),
++ closeSettings: () => Yft()?.close(!1),
+ openItem: (e) => void b9(e),
+ openEntity: (e, t) => void p7(e, t),
openTag: (e) => {
- rht(), i9(e);
- bmt(), r9(e);
++ aht(), r9(e);
},
- openTasteSignal: bmt,
- openTasteSignal: Lpt,
++ openTasteSignal: Smt,
navigate: (e) => {
let t = /^\/works\/([A-Za-z0-9_-]{2,64})$/.exec(e), n = /^\/assets\/(\d+)$/.exec(e);
- t ? S9(t[1]) : n ? x9(+n[1]) : Q.navigatePath(e);
+ t ? x9(t[1]) : n ? b9(+n[1]) : Q.navigatePath(e);
},
- openManage: B7,
+ openManage: z7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => L9(),
- receipt: (e, t) => Y5.actionReceipt(e, t),
- toast: (e, t) => Y5.toast(e, t),
- failure: Y5.actionFailure,
- revealSource: lmt,
- reopenTutorial: Agt,
+ openFollow: () => I9(),
+ receipt: (e, t) => J5.actionReceipt(e, t),
+ toast: (e, t) => J5.toast(e, t),
+ failure: J5.actionFailure,
- revealSource: Ept,
- reopenTutorial: qht,
++ revealSource: dmt,
++ reopenTutorial: Mgt,
requestConfigurationSection: (e) => {
ml({ configurationRequestedSection: e });
},
- routeReview: Tmt,
- routeFollowManage: Wmt,
- routeReview: Hpt,
- routeFollowManage: smt,
++ routeReview: Dmt,
++ routeFollowManage: Kmt,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(Kmt(e), t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(lmt(e), t),
++ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(Jmt(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => y7(!1, !1),
- personAvatar: (e, t, n) => S7.personAvatar(e, t, n),
- authorAvatar: (e) => Gmt(e),
- showIndexTags: qmt,
- openFollowAuthor: Jmt,
- openFollowTag: Ymt,
- openPlaylist: (e, t) => void Tgt(e, t, !0),
- canFlip: () => !Wc && !g9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => v7(!1, !1),
+ personAvatar: (e, t, n) => x7.personAvatar(e, t, n),
- authorAvatar: (e) => cmt(e),
- showIndexTags: umt,
- openFollowAuthor: dmt,
- openFollowTag: fmt,
- openPlaylist: (e, t) => void Hht(e, t, !0),
++ authorAvatar: (e) => qmt(e),
++ showIndexTags: Ymt,
++ openFollowAuthor: Xmt,
++ openFollowTag: Zmt,
++ openPlaylist: (e, t) => void Dgt(e, t, !0),
+ canFlip: () => !Wc && !h9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
e === "entity" ? (wc(), ml({ barsContext: {
type: "home",
- filters: G
+ filters: W
- } }), M7(), document.body.classList.add("entity-open"), t9(), w7()) : e === "index" ? (wc(), document.body.classList.remove("entity-open"), Q.claimSurface(t), M7(), document.body.classList.add("index-open"), t9(), w7()) : (wc(), Q.claimSurface(t), e === "catalog" ? M7() : (j7(), A7({ manage: e === "management" })));
+ } }), j7(), document.body.classList.add("entity-open"), e9(), C7()) : e === "index" ? (wc(), document.body.classList.remove("entity-open"), Q.claimSurface(t), j7(), document.body.classList.add("index-open"), e9(), C7()) : (wc(), Q.claimSurface(t), e === "catalog" ? j7() : (A7(), k7({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
@@@ -110088,10 -109104,10 +110100,10 @@@
},
openOverlay: (e) => {
let t = Q.requestedOverlay;
- Q.requestedOverlay = null, Sk.navigation.claimed && (!wk() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (wk() && (Q.initialOverlayOpened = !0), e.kind === "item" ? x9(e.id, !1) : e.kind === "jav" ? S9(e.code, !1) : e.kind === "follow" ? R9(e.id, !1) : b9(e.queue, e.key, e.item, !1));
- Q.requestedOverlay = null, Sk.navigation.claimed && (!wk() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (wk() && (Q.initialOverlayOpened = !0), e.kind === "item" ? b9(e.id, !1) : e.kind === "jav" ? x9(e.code, !1) : e.kind === "follow" ? L9(e.id, !1) : y9(e.queue, e.key, e.item, !1));
++ Q.requestedOverlay = null, wk.navigation.claimed && (!Ek() || Q.initialOverlayOpened) ? t?.path === location.pathname && t.open() : (Ek() && (Q.initialOverlayOpened = !0), e.kind === "item" ? b9(e.id, !1) : e.kind === "jav" ? x9(e.code, !1) : e.kind === "follow" ? L9(e.id, !1) : y9(e.queue, e.key, e.item, !1));
},
closeStage: () => {
- v9.stageOpen() && y9(!1);
+ _9.stageOpen() && v9(!1);
},
grid: {
helpers: X.gridHelpers,
@@@ -110103,52 -109119,52 +110115,52 @@@
},
entity: {
missing: (e) => {
- W9.shellActions.surfaceChanged("entity", location.pathname), gmt(e);
- U9.shellActions.surfaceChanged("entity", location.pathname), Npt(e);
++ U9.shellActions.surfaceChanged("entity", location.pathname), vmt(e);
},
- loading: (e, t, n) => a7.application.loading(e, t, n),
- props: (e, t, n) => a7.application.addressProps(e, t, n),
+ loading: (e, t, n) => i7.application.loading(e, t, n),
+ props: (e, t, n) => i7.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = a7.parseEntityFilters(n);
+ let r = i7.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = c7();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !u7(e, t, r, a7.parseMediaView(n), { push: !1 }) ? !1 : (Q7(r), $7(c7()), !0);
+ let i = s7();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !l7(e, t, r, i7.parseMediaView(n), { push: !1 }) ? !1 : (Z7(r), Q7(s7()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => Aht("local,115"),
- defaultLoc: () => qmt("local,115"),
++ defaultLoc: () => Mht("local,115"),
open: (e, { entering: t = !1, retitle: n = !1 } = {}) => {
- n && (A9(), q7(), z7()), t && Q5(), e === "/trash" ? (X.clearSearchField(), M7()) : (R("#q").value = W.q, X.rememberSearchValue()), D9(), r9(), Z.handOff(o9());
- n && (k9(), K7(), R7()), t && Z5(), e === "/trash" ? (X.clearSearchField(), j7()) : (R("#q").value = G.q, X.rememberSearchValue()), E9(), n9(), Z.handOff(a9());
++ n && (k9(), K7(), R7()), t && Z5(), e === "/trash" ? (X.clearSearchField(), j7()) : (R("#q").value = W.q, X.rememberSearchValue()), E9(), n9(), Z.handOff(a9());
},
load: () => {
- Z.handOff(o9());
+ Z.handOff(a9());
},
fill: () => {
- if (l9() || !wk() && !R("#grid").querySelector(".catalog-skeleton")) return;
- if (c9() || !wk() && !R("#grid").querySelector(".catalog-skeleton")) return;
++ if (c9() || !Ek() && !R("#grid").querySelector(".catalog-skeleton")) return;
let e = R("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), Qht(Q.surfaceToken(Q.surfacePath()));
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), hht(Q.surfaceToken(Q.surfacePath()));
++ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), egt(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- s9(), i7();
- o9(), r7(), mk(R("#libraryProcessingNotice"));
++ o9(), r7();
}
}
- }, W9.routing = !1, J5.own(Sk.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !JO(e.location.pathname) && y9(!1), W9.routing && !e.claimed && A9();
- })), Uft(W9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), pht(), Rmt(), L7(), Promise.all([
- m9(),
- dht(),
- T7.entityShapesReady
- ]).then(() => e.isActive && T7.wantsDiscoveryBars() ? r9() : null).then(() => {
- e.isActive && (D9(), hgt(), W9.routing = !0, ml({ pageOpens: 1 }), A9(), J7());
- }, U9.routing = !1, q5.own(Sk.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !JO(e.location.pathname) && v9(!1), U9.routing && !e.claimed && k9();
- })), aft(U9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), Amt(), tmt(), I7(), Promise.all([
++ }, U9.routing = !1, q5.own(wk.listen((e) => {
++ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !XO(e.location.pathname) && v9(!1), U9.routing && !e.claimed && k9();
++ })), Gft(U9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), hht(), Bmt(), I7(), Promise.all([
+ p9(),
- Omt(),
++ pht(),
+ w7.entityShapesReady
+ ]).then(() => e.isActive && w7.wantsDiscoveryBars() ? n9() : null).then(() => {
- e.isActive && (E9(), Mht(), U9.routing = !0, ml({ pageOpens: 1 }), k9(), q7());
++ e.isActive && (E9(), _gt(), U9.routing = !0, ml({ pageOpens: 1 }), k9(), q7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
//#endregion
//#region src/theme-transition.ts
- var G9 = !1;
- async function n_t(e, t) {
- if (G9) return;
+ var W9 = !1;
-async function ygt(e, t) {
++async function i_t(e, t) {
+ if (W9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
@@@ -110170,9 -109186,9 +110182,9 @@@
}
//#endregion
//#region src/application/chrome.js
- function r_t() {
-function bgt() {
++function a_t() {
(() => {
- let e = J5, t = [
+ let e = q5, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@@ -110245,7 -109261,7 +110257,7 @@@
o.className = "mark", o.setAttribute("aria-hidden", "true"), o.innerHTML = a(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(o), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${B(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${a(n)}</span><span>${B(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- d.setOpen(!1), P7(!1), Emt("媒体库与入库");
- d.setOpen(!1), N7(!1), Upt("媒体库与入库");
++ d.setOpen(!1), N7(!1), Omt("媒体库与入库");
});
let s = l.querySelector(".board-library-rows");
e.listen(s, "pointerover", (e) => {
@@@ -110262,14 -109278,14 +110274,14 @@@
h.before(g), e.own(() => g.remove());
let _ = document.createElement("div");
_.className = "board-sidebar-foot", e.own(() => _.remove()), _.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="浅色主题">${z("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${z("moon")}</button></div>`, _.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>"), _.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(_), _.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && n_t(t, () => {
- t.getAttribute("aria-pressed") !== "true" && ygt(t, () => {
-- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), CE();
++ t.getAttribute("aria-pressed") !== "true" && i_t(t, () => {
++ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), TE();
});
-- })), CE();
++ })), TE();
let v = document.createElement("div");
v.className = "popmenu board-glow-menu", v.id = "boardGlowMenu", v.hidden = !0, v.setAttribute("popover", "manual"), v.setAttribute("role", "dialog"), v.setAttribute("aria-label", "配色"), document.body.append(v), e.own(() => v.remove());
let y = _.querySelector("#boardGlowBtn"), b = ao(_, y, v);
- e.own(b.dispose), e.own(Pue(y)), $ft({
- e.own(b.dispose), e.own(xue(y)), hft({
++ e.own(b.dispose), e.own(Mue(y)), tpt({
root: v,
store: Z.settingsStore,
openDetails: () => {
@@@ -110378,31 -109394,31 +110390,31 @@@
}
//#endregion
//#region src/application/initialize.js
- function i_t() {
- qgt(), Ngt(), eht(), Pgt(), _gt(), rpt(), ogt(), jgt(), _mt(), Ogt(), zmt(), sgt(), rmt(), Dmt(), Ggt(), Xmt(), vmt(), Kgt(), Zmt(), ymt(), Sht(), cgt(), $gt(), kgt(), e_t(), vgt(), t_t(), r_t(), J5.own(s9), J5.own(O9);
-function xgt() {
- ugt(), Xht(), _mt(), Zht(), Pht(), yft(), Cht(), Jht(), Ppt(), Ght(), nmt(), wht(), bpt(), Wpt(), cgt(), pmt(), Fpt(), lgt(), mmt(), Ipt(), zmt(), Tht(), ggt(), Kht(), _gt(), Fht(), vgt(), bgt(), q5.own(o9), q5.own(D9);
++function o_t() {
++ Ygt(), Fgt(), nht(), Igt(), ygt(), apt(), cgt(), Ngt(), ymt(), Agt(), Vmt(), lgt(), amt(), kmt(), qgt(), Qmt(), bmt(), Jgt(), $mt(), xmt(), wht(), ugt(), t_t(), jgt(), n_t(), bgt(), r_t(), a_t(), q5.own(o9), q5.own(D9);
}
//#endregion
//#region src/ui-kit/middle-truncate.ts
- var a_t = "…", o_t = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, K9 = /* @__PURE__ */ new WeakMap(), q9 = /* @__PURE__ */ new WeakSet(), J9 = null, Y9 = null, X9 = /* @__PURE__ */ new Set(), s_t = (e) => o_t ? [...o_t.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
- function c_t(e, t) {
- let n = s_t(e);
-var Sgt = "…", Cgt = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, G9 = /* @__PURE__ */ new WeakMap(), K9 = /* @__PURE__ */ new WeakSet(), q9 = null, J9 = null, Y9 = /* @__PURE__ */ new Set(), wgt = (e) => Cgt ? [...Cgt.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
-function Tgt(e, t) {
- let n = wgt(e);
++var s_t = "…", c_t = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, G9 = /* @__PURE__ */ new WeakMap(), K9 = /* @__PURE__ */ new WeakSet(), q9 = null, J9 = null, Y9 = /* @__PURE__ */ new Set(), l_t = (e) => c_t ? [...c_t.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? ""));
++function u_t(e, t) {
++ let n = l_t(e);
if (!n.length || t(e)) return String(e ?? "");
- let r = 0, i = Math.max(0, n.length - 1), a = a_t;
- let r = 0, i = Math.max(0, n.length - 1), a = Sgt;
++ let r = 0, i = Math.max(0, n.length - 1), a = s_t;
for (; r <= i;) {
- let e = r + i >> 1, o = Math.ceil(e / 2), s = Math.floor(e / 2), c = n.slice(0, o).join("") + a_t + (s ? n.slice(-s).join("") : "");
- let e = r + i >> 1, o = Math.ceil(e / 2), s = Math.floor(e / 2), c = n.slice(0, o).join("") + Sgt + (s ? n.slice(-s).join("") : "");
++ let e = r + i >> 1, o = Math.ceil(e / 2), s = Math.floor(e / 2), c = n.slice(0, o).join("") + s_t + (s ? n.slice(-s).join("") : "");
t(c) ? (a = c, r = e + 1) : i = e - 1;
}
return a;
}
- var l_t = Object.assign((e, t) => {
- let n = getComputedStyle(e), r = (l_t.canvas ||= document.createElement("canvas")).getContext("2d");
-var Egt = Object.assign((e, t) => {
- let n = getComputedStyle(e), r = (Egt.canvas ||= document.createElement("canvas")).getContext("2d");
++var d_t = Object.assign((e, t) => {
++ let n = getComputedStyle(e), r = (d_t.canvas ||= document.createElement("canvas")).getContext("2d");
if (!r) return Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = r.measureText(t).width, a = parseFloat(n.letterSpacing);
- Number.isFinite(a) && (i += Math.max(0, s_t(t).length - 1) * a);
- Number.isFinite(a) && (i += Math.max(0, wgt(t).length - 1) * a);
++ Number.isFinite(a) && (i += Math.max(0, l_t(t).length - 1) * a);
let o = parseFloat(n.wordSpacing);
return Number.isFinite(o) && (i += (t.match(/\s/g) || []).length * o), i;
- }, { canvas: null }), u_t = (e) => {
-}, { canvas: null }), Dgt = (e) => {
++}, { canvas: null }), f_t = (e) => {
if (e.dataset.middleTruncateWithin === void 0) return e.clientWidth;
let t = e.parentElement;
if (!t) return e.clientWidth;
@@@ -110412,44 -109428,44 +110424,44 @@@
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);
- }, d_t = (e) => {
- let t = K9.get(e);
-}, Ogt = (e) => {
++}, p_t = (e) => {
+ let t = G9.get(e);
if (!t || !e.isConnected) return;
- let n = u_t(e), r = n > 0 ? c_t(t.full, (t) => l_t(e, t) <= n) : t.full;
- let n = Dgt(e), r = n > 0 ? Tgt(t.full, (t) => Egt(e, t) <= n) : t.full;
++ let n = f_t(e), r = n > 0 ? u_t(t.full, (t) => d_t(e, t) <= n) : t.full;
t.rendered = r, e.textContent !== r && (e.textContent = r);
let i = r !== t.full;
e.classList.toggle("middle-truncated", i), e.setAttribute("aria-label", t.full), (!e.hasAttribute("title") || e.dataset.middleTitle === "true") && (e.title = t.full, e.dataset.middleTitle = "true");
- }, Z9 = (e) => {
- let t = K9.get(e);
+ }, X9 = (e) => {
+ let t = G9.get(e);
t && !t.raf && (t.raf = requestAnimationFrame(() => {
- t.raf = 0, d_t(e);
- t.raf = 0, Ogt(e);
++ t.raf = 0, p_t(e);
}));
- }, f_t = (e) => {
- e instanceof HTMLElement && (K9.has(e) || K9.set(e, {
-}, kgt = (e) => {
++}, m_t = (e) => {
+ e instanceof HTMLElement && (G9.has(e) || G9.set(e, {
full: e.textContent || "",
rendered: e.textContent || "",
raf: 0
- }), q9.has(e) || (q9.add(e), X9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? J9?.observe(e.parentElement) : J9?.observe(e)), Z9(e));
- }, p_t = (e) => {
+ }), K9.has(e) || (K9.add(e), Y9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? q9?.observe(e.parentElement) : q9?.observe(e)), X9(e));
-}, Agt = (e) => {
++}, h_t = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && f_t(t), t.querySelectorAll("[data-middle-truncate]").forEach(f_t);
- t.matches("[data-middle-truncate]") && kgt(t), t.querySelectorAll("[data-middle-truncate]").forEach(kgt);
++ t.matches("[data-middle-truncate]") && m_t(t), t.querySelectorAll("[data-middle-truncate]").forEach(m_t);
};
- function m_t(e = document) {
- Y9?.(), q9 = /* @__PURE__ */ new WeakSet(), X9 = /* @__PURE__ */ new Set();
- let t = X9, n = !0;
- J9 = new ResizeObserver((e) => e.forEach((e) => {
- n && (Z9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Z9));
-function jgt(e = document) {
++function g_t(e = document) {
+ J9?.(), K9 = /* @__PURE__ */ new WeakSet(), Y9 = /* @__PURE__ */ new Set();
+ let t = Y9, n = !0;
+ q9 = new ResizeObserver((e) => e.forEach((e) => {
+ n && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
}));
- let r = J9;
- p_t(e.documentElement || e);
+ let r = q9;
- Agt(e.documentElement || e);
++ h_t(e.documentElement || e);
let i = new MutationObserver((e) => e.forEach((e) => {
if (!n) return;
- e.addedNodes.forEach(p_t);
- e.addedNodes.forEach(Agt);
++ e.addedNodes.forEach(h_t);
let t = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!t) return;
- let r = K9.get(t);
- r && t.textContent !== r.rendered && (r.full = t.textContent || "", t.dataset.middleTitle === "true" && t.removeAttribute("title"), Z9(t));
+ let r = G9.get(t);
+ r && t.textContent !== r.rendered && (r.full = t.textContent || "", t.dataset.middleTitle === "true" && t.removeAttribute("title"), X9(t));
}));
i.observe(e.body || e, {
childList: !0,
@@@ -110469,65 -109485,141 +110481,142 @@@
if (n) {
n = !1, r.disconnect(), i.disconnect(), e.removeEventListener("copy", a);
for (let e of t) {
- let t = K9.get(e);
+ let t = G9.get(e);
t?.raf && (cancelAnimationFrame(t.raf), t.raf = 0);
}
- t.clear(), Y9 === o && (Y9 = null, J9 = null);
+ t.clear(), J9 === o && (J9 = null, q9 = null);
}
};
- return Y9 = o, o;
+ return J9 = o, o;
+ }
+ //#endregion
+ //#region src/react/result-updates.tsx
-var Mgt = [
++var __t = [
+ "catalog-grid",
+ "catalog-folders",
+ "item",
+ "item-related",
+ "item-queue",
+ "entity",
+ "entity-items",
+ "entity-photos",
+ "entity-route",
+ "index",
+ "stats",
+ "quality-goals",
+ "duplicates",
+ "orphan-records",
+ "trash-summary",
+ "junk-summary",
+ "immerse-list"
+ ], Z9 = [
+ "follow-feed",
+ "follow-item",
+ "follow-manage",
+ "follow",
+ "entity",
+ "index"
-], Ngt = [
++], v_t = [
+ "feed-new",
+ "jav-discoveries",
+ "jav-detail",
+ "wants",
+ "index"
-], Pgt = {
++], y_t = {
+ catalog: [
- ...Mgt,
++ ...__t,
+ ...Z9,
+ "review",
+ "taste"
+ ],
+ follow: Z9,
- discoveries: Ngt,
++ discoveries: v_t,
+ review: ["review"],
+ artwork: [
- ...Mgt,
++ ...__t,
+ ...Z9,
- ...Ngt,
++ ...v_t,
+ "avatar-choices"
+ ]
+ };
-function Fgt() {
++function b_t() {
+ 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 Pgt[t] || []) e.add(n);
++ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of y_t[t] || []) e.add(n);
+ return !t && e.size && (t = (async () => {
+ for (; e.size;) {
+ let t = new Set(e);
+ e.clear();
- let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = W.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");
- if (await W.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);
++ let n = { predicate: (e) => t.has(String(e.queryKey[0])) && (e.queryKey[0] !== "follow-manage" || e.queryKey.length === 1 || e.queryKey[1] === "feeds") }, r = U.getQueryCache().findAll(n).some((e) => e.isActive() && e.state.fetchStatus === "fetching");
++ if (await U.invalidateQueries(n, { cancelRefetch: !1 }), r) for (let n of t) e.add(n);
+ }
+ })().finally(() => {
+ t = null;
+ })), t || Promise.resolve();
+ };
+ }
-function Igt() {
- let e = pt({
- queryKey: VA,
- queryFn: ({ signal: e }) => WA(e),
- refetchInterval: (e) => UA(e.state.data)
- }), t = (0, S.useRef)(void 0), [n] = (0, S.useState)(Fgt), r = e.data?.result_versions;
++function x_t() {
++ let e = ft({
++ queryKey: WA,
++ queryFn: ({ signal: e }) => qA(e),
++ refetchInterval: (e) => KA(e.state.data)
++ }), t = (0, S.useRef)(void 0), [n] = (0, S.useState)(b_t), r = e.data?.result_versions;
+ return (0, S.useEffect)(() => {
+ r && (t.current && n(t.current, r), t.current = r);
+ }, [r, n]), null;
}
//#endregion
//#region src/react/application.tsx
var Q9 = null;
- function h_t(e) {
-function Lgt(e) {
++function S_t(e) {
Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
}
- function g_t() {
-function Rgt() {
++function C_t() {
if (!Q9) {
- let e = npt();
- let e = vft();
++ let e = ipt();
Q9 = {
effects: e,
owners: 0
- }, e.own(m_t(document)), e.own(() => {
- }, e.own(jgt(document)), e.own(() => {
- wc(), W.cancelQueries();
- }), e.own(oft), e.own(Lhe), e.own($a);
++ }, e.own(g_t(document)), e.own(() => {
+ wc(), U.cancelQueries();
- }), e.own(Wft), e.own(Xhe), e.own($a);
++ }), e.own(Kft), e.own(Jhe), e.own($a);
}
return Q9.owners += 1, Q9.effects.resume(), Q9;
}
- function __t() {
-function zgt() {
++function w_t() {
let [e, t] = (0, S.useState)(null);
return (0, S.useLayoutEffect)(() => {
- let e = Q9 === null, n = g_t(), r = Hft(t);
- let e = Q9 === null, n = Rgt(), r = ift(t);
++ let e = Q9 === null, n = C_t(), r = Wft(t);
if (e) try {
- i_t();
- xgt();
++ o_t();
} catch (e) {
throw r(), n.effects.dispose(), Q9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => h_t(n)));
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Lgt(n)));
++ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => S_t(n)));
};
- }, []), /* @__PURE__ */ (0, C.jsx)(dSe, {
- }, []), /* @__PURE__ */ (0, C.jsx)(sxe, {
++ }, []), /* @__PURE__ */ (0, C.jsx)(cSe, {
actions: e,
- processing: !0
- background: e ? /* @__PURE__ */ (0, C.jsx)(Igt, {}) : null
++ processing: !0,
++ background: e ? /* @__PURE__ */ (0, C.jsx)(x_t, {}) : null
});
}
var $9 = /* @__PURE__ */ new WeakMap();
- function v_t(e) {
-function Bgt(e) {
++function T_t(e) {
let t = $9.get(e);
if (t) return t;
- let n = (0, gt.createRoot)(e, fSe);
- let n = (0, _t.createRoot)(e, cxe);
++ let n = (0, gt.createRoot)(e, lSe);
$9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- $9.get(e) === n && ($9.delete(e), r(), Q9 && h_t(Q9));
- }, (0, ht.flushSync)(() => n.render(/* @__PURE__ */ (0, C.jsx)(__t, {}))), n;
- $9.get(e) === n && ($9.delete(e), r(), Q9 && Lgt(Q9));
- }, (0, gt.flushSync)(() => n.render(/* @__PURE__ */ (0, C.jsx)(zgt, {}))), n;
++ $9.get(e) === n && ($9.delete(e), r(), Q9 && S_t(Q9));
++ }, (0, ht.flushSync)(() => n.render(/* @__PURE__ */ (0, C.jsx)(w_t, {}))), n;
}
//#endregion
//#region src/react/bootstrap.tsx
d();
- var y_t = document.getElementById("appRoot");
- if (!y_t) throw Error("主界面宿主缺失");
- v_t(y_t);
-var Vgt = document.getElementById("appRoot");
-if (!Vgt) throw Error("主界面宿主缺失");
-Bgt(Vgt);
++var E_t = document.getElementById("appRoot");
++if (!E_t) throw Error("主界面宿主缺失");
++T_t(E_t);
//#endregion
- export { CE as applyTheme, Sk as peachHistory, Vo as popCount, ept as showToast };
-export { CE as applyTheme, Sk as peachHistory, Vo as popCount, gft as showToast };
++export { TE as applyTheme, wk as peachHistory, Vo as popCount, npt as showToast };