Peach: Local-first video metadata scraper and media manager.
fix(catalog): 整理艺人卖家与在线名册
longmeidaoc8a572a12cd3
diff --git a/README.en.md b/README.en.mdindex 4263df059..08f104d83 100644--- a/README.en.md+++ b/README.en.md@@ -62,7 +62,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)## What it does- **Search**: type a few characters and performers, codes and videos show up together.-- **身份分类**:艺人按身份与发行范围分为女优、素人、西方;素人须有明确的非职业出演证据,职业女优不归为素人。FC2 与作品题材仅用于作品筛选。真人账号归入艺人的网黄博主分类,卖家与动画作者另列。筛选条只显示有内容的分类,资料页在视频数量左侧显示分类与图标。+- **身份分类**:艺人按身份与发行范围分为女优、素人、西方、网黄博主和动画作者;素人须有明确的非职业出演证据,职业女优不归为素人。FC2 与作品题材仅用于作品筛选。名册使用「艺人、卖家、在线」三个并列入口,卖家按来源账号与作品对应。筛选条只显示有内容的分类,资料页在视频数量左侧显示分类与图标。- **作品计数**:明确分段的同一 FC2 合集计为一个视频,分段文件和出演归属完整保留。已确认合并的身份共用资料与作品,旧资料页地址通往规范身份。- **西方图片来源**:出演者与网黄博主可选 Babepedia 主图库人像;Tushy 等 Vixen 网络作品以出演者和发行日匹配官方封面,卡片、详情和头像框选共用原图,无法唯一匹配时留待核验。- **Performer pages**: aliases, birthday and measurements, social accounts and JavDB and MISSAV links on one page, above every video of hers in your library and her photos. You can pick an avatar by drawing a box on any cover.diff --git a/README.md b/README.mdindex a39384d7d..31258ae40 100644--- a/README.md+++ b/README.md@@ -62,7 +62,7 @@ https://github.com/user-attachments/assets/a5610874-e611-41bb-be22-7d99f0d64b62## 能做什么- **搜索**:输入几个字,女优、番号和影片一起出来。-- **身份分类**:艺人按身份与发行范围分为女优、素人、西方;素人须有明确的非职业出演证据,职业女优不归为素人。FC2 与作品题材仅用于作品筛选。真人账号归入艺人的网黄博主分类,卖家与动画作者另列。筛选条只显示有内容的分类,资料页在视频数量左侧显示分类与图标。+- **身份分类**:艺人按身份与发行范围分为女优、素人、西方、网黄博主和动画作者;素人须有明确的非职业出演证据,职业女优不归为素人。FC2 与作品题材仅用于作品筛选。名册使用「艺人、卖家、在线」三个并列入口,卖家按来源账号与作品对应。筛选条只显示有内容的分类,资料页在视频数量左侧显示分类与图标。- **作品计数**:明确分段的同一 FC2 合集计为一个视频,分段文件和出演归属完整保留。已确认合并的身份共用资料与作品,旧资料页地址通往规范身份。- **西方图片来源**:出演者与网黄博主可选 Babepedia 主图库人像;Tushy 等 Vixen 网络作品以出演者和发行日匹配官方封面,卡片、详情和头像框选共用原图,无法唯一匹配时留待核验。- **女优页**:别名、生日身材、社媒和 JavDB、MISSAV 链接汇在一页,下面是她在你馆藏里的全部作品和照片;头像可以直接在作品封面上框一块。diff --git a/docs/REUSE.md b/docs/REUSE.mdindex 9d9e54653..d463e00f6 100644--- a/docs/REUSE.md+++ b/docs/REUSE.md@@ -20,6 +20,8 @@ Babepedia 资料采集复用 `babepedia_page` 的主名与别名交叉核对、`身份分类复用 `entity`、来源关系、`field_owners`、SQLite 迁移与版本触发器。职业与账号角色使用独立多值断言,跨角色身份使用可撤回关系;[Schema.org Person](https://schema.org/Person) 的 `hasOccupation`、`sameAs` 与 [Role](https://schema.org/Role) 提供语义参照,2026-10-06 已核对官方文档。实现不复制外部解析器或新增依赖。目录推断和搜索命中只存候选,公开来源事实与用户复核分别保留状态。+FC2 卖家名册复用 `sources/fc2.py` 的 `label`、`seller_url` 来源契约、`normalise_code_key`、`upsert_asset_entity`、职业断言和 SQLite 备份。`import_fc2_sellers.py` 读取已有作品快照,不发起采集;账号地址、来源作品号和馆藏作品号必须一致。同名不同账号、作品来源冲突保留在复核产物,既有身份和资料不覆盖。写入归属为 `script:fc2-seller@<批次>`,统一撤回入口 `revert_auto_landing.py` 同时处理账号链接、别名、外部编号、卖家断言及来源关系;有后续资料或引用的实体保留。导航复用 `BoardTabs`,动画作者保留 `creator` 身份与资料路由,通过艺人分类浏览。不新增依赖或外部解析器。+`entity_identity_research` 与 `apply_entity_identity_research.py` 复用规范实体写入、字段归属保护、只读预览、SQLite 备份及冻结计划。逐行撤回回执核对后续修改,新增实体有额外引用时拒绝删除;观看历史和人工判断不被回滚覆盖。## 播放器清晰度diff --git a/docs/STATUS.md b/docs/STATUS.mdindex 525381ed7..6815551bc 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -6,8 +6,8 @@## 运行态-- 分类:素人须有非职业出演证据;职业女优不归素人,FC2 与题材只筛作品;账号分网黄博主、卖家、动画作者。-- 公司资料按公开来源填空,缺项隐藏;回执见 `peach-data/review/`。+- 名册:艺人(含动画作者)|卖家|在线;素人须有非职业出演证据,FC2 仅筛作品。+- 公司资料按公开来源填空;FC2 卖家按作品来源快照补入。回执见 `peach-data/review/`。- 目录归属修复 652 条;StraplessDildo 归厂牌,4 项来源未取得。- 身份合并 18 组,旧址跳转;FC2 分段按作品计数,文件保留。- JAV 头像 816 张,38 张水印待复核;17 位档案、253 张头像候选、2 张官方封面。diff --git a/frontend/e2e/harness.ts b/frontend/e2e/harness.tsindex 65b97e943..9372f7b7a 100644--- a/frontend/e2e/harness.ts+++ b/frontend/e2e/harness.ts@@ -46,8 +46,8 @@ export async function launch(): Promise<Browser> {return chromium.launch({headless: true,executablePath: requiredEnv('PEACH_E2E_CHROME'),- // 串行页面共用一个渲染进程,音频服务留在浏览器进程内。- args: ['--renderer-process-limit=1', '--disable-features=AudioServiceOutOfProcess', '--disable-audio-output'],+ // 串行页面共用一个渲染进程,GPU 与音频服务留在浏览器进程内。+ args: ['--renderer-process-limit=1', '--in-process-gpu', '--disable-features=AudioServiceOutOfProcess', '--disable-audio-output'],timeout: 30_000,});}diff --git a/frontend/e2e/index-people.test.ts b/frontend/e2e/index-people.test.tsindex 000967413..60530b537 100644--- a/frontend/e2e/index-people.test.ts+++ b/frontend/e2e/index-people.test.ts@@ -32,7 +32,7 @@ describe('本地与在线艺人共用名册布局', () => {};}));for (const label of ['紧凑 · 圆形头像', '大图 · 竖幅头像']) {- await page.getByRole('tab', { name: '本地', exact: true }).click();+ await page.getByRole('tab', { name: '艺人', exact: true }).click();await page.getByRole('radio', { name: label, exact: true }).press('Space');const layout = label.startsWith('紧凑') ? 'compact' : 'big';await page.locator(`#index [data-index-grid][data-layout="${layout}"]`).waitFor();@@ -45,6 +45,14 @@ describe('本地与在线艺人共用名册布局', () => {assert.deepEqual(online, local, '在线卡片与本地卡片的布局不同');assert.ok(online.every(item => item.width >= 150 && item.contained && item.whiteSpace === 'normal'));assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth), true);+ assert.equal(await page.locator('#index [role="tablist"]').count(), 1);+ assert.deepEqual(await page.locator('#index [role="tab"]').allTextContents(), ['艺人', '卖家', '在线']);+ await page.getByRole('tab', { name: '卖家', exact: true }).click();+ await page.locator('#index [data-index-cell]').first().waitFor();+ await settle(page);+ assert.equal(await page.locator('#index [role="tablist"]').count(), 1);+ assert.equal(await page.locator('#index [aria-label="身份分类"]').count(), 0);+ assert.equal(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth), true);}assert.deepEqual(opened.problems, []);} finally { await opened.close() }diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.tsindex 64f2b3dc4..b883ac9f2 100644--- a/frontend/e2e/smoke.test.ts+++ b/frontend/e2e/smoke.test.ts@@ -43,8 +43,9 @@ const statsInventoryTab = (page: Page): Locator =>const ROUTES: readonly Route[] = [{ path: '/', body: (page) => [page.locator('#grid [data-media-card]').first()] },{ path: '/performers', body: (page) => [heading(page, '#index', '艺人'), indexEntries(page)] },- { path: '/creators', body: (page) => [heading(page, '#index', '卖家与动画作者'), indexEntries(page)] },- { path: '/creators/', body: (page) => [heading(page, '#index', '卖家与动画作者'), indexEntries(page)] },+ { path: '/creators', body: (page) => [heading(page, '#index', '卖家'), indexEntries(page)] },+ { path: '/creators/', body: (page) => [heading(page, '#index', '卖家'), indexEntries(page)] },+ { path: '/performers?category=animation', body: (page) => [heading(page, '#index', '艺人'), indexEntries(page)] },{ path: '/studios', body: (page) => [heading(page, '#index', '厂牌'), indexEntries(page)] },{ path: '/agencies', body: (page) => [heading(page, '#index', '事务所'), indexEntries(page)] },{ path: '/tags', body: (page) => [heading(page, '#index', '标签'), indexEntries(page)] },diff --git a/frontend/src/catalog-onboarding.ts b/frontend/src/catalog-onboarding.tsindex c12e84fa6..576836815 100644--- a/frontend/src/catalog-onboarding.ts+++ b/frontend/src/catalog-onboarding.ts@@ -30,7 +30,7 @@ export function catalogEmptyHtml({ kind = 'catalog', filtered = false, jav = faljav ? '已扫描但尚未补充发行资料的视频可在全部内容中查看。' : '清除筛选或搜索条件后查看全部内容。',{ actions: '<a class="geist-button primary" href="/?loc=&thumb=0">查看全部内容</a>' });if (kind !== 'catalog') {- const labels: Record<string, string> = { tags: '标签', performers: '艺人', creators: '卖家与动画作者', studios: '厂牌', agencies: '事务所', series: '系列' };+ const labels: Record<string, string> = { tags: '标签', performers: '艺人', creators: '卖家', studios: '厂牌', agencies: '事务所', series: '系列' };// 在线那一档数的是来源上的东西,名字也跟着来源的说法:艺人页在线摆的是关注来源里的创作者。const onlineLabels: Record<string, string> = { tags: '标签', performers: '创作者' };const label = (online ? onlineLabels[kind] : '') || labels[kind] || '资料';diff --git a/frontend/src/react/index/index-data.ts b/frontend/src/react/index/index-data.tsindex 47458246f..bf2bcc267 100644--- a/frontend/src/react/index/index-data.ts+++ b/frontend/src/react/index/index-data.ts@@ -24,7 +24,7 @@ export const INDEX_URL = '/api/index';/** 页头标题与名册口径。 */export const INDEX_TITLES: Record<IndexKind, string> = {- performers: '艺人', creators: '卖家与动画作者', studios: '厂牌', agencies: '事务所', tags: '标签',+ performers: '艺人', creators: '卖家', studios: '厂牌', agencies: '事务所', tags: '标签',};/** 索引格对应的实体类型,资料页与取图链都按它分。 */@@ -45,8 +45,8 @@ export const ONLINE_TAG_CATEGORIES: readonly (readonly [string, string])[] = [['copyright', '作品'], ['metadata', '元数据'],];export const IDENTITY_CATEGORIES: Record<'performers' | 'creators', readonly (readonly [string, string])[]> = {- performers: [['all', '全部'], ['japanese_av', '女优'], ['amateur', '素人'], ['western', '西方'], ['blogger', '网黄博主']],- creators: [['all', '全部'], ['seller', '卖家'], ['animation', '动画作者']],+ performers: [['all', '全部'], ['japanese_av', '女优'], ['amateur', '素人'], ['western', '西方'], ['blogger', '网黄博主'], ['animation', '动画作者']],+ creators: [['all', '全部']],};/** 每页条数:一屏头像 120 格,标签 180 枚。 */@@ -135,6 +135,9 @@ export interface IndexProps extends IndexRoute {/** 地址栏上的类型可能是手敲或拼错的:认不出的回到「全部」,不拿它去问后端。* 只有艺人和标签两页分本地与在线。 */export function indexRoute(route: IndexRoute): IndexRoute {+ if (route.kind === 'creators' && route.category === 'animation') {+ return indexRoute({ ...route, kind: 'performers', scope: 'local' });+ }const scope = route.kind === 'tags' || route.kind === 'performers' ? route.scope : 'local';const categories = route.kind === 'tags' ? (scope === 'online' ? ONLINE_TAG_CATEGORIES : TAG_CATEGORIES): route.kind === 'performers' || route.kind === 'creators' ? IDENTITY_CATEGORIES[route.kind] : [];diff --git a/frontend/src/react/index/index-page.tsx b/frontend/src/react/index/index-page.tsxindex 24fb5cfa5..acdea331f 100644--- a/frontend/src/react/index/index-page.tsx+++ b/frontend/src/react/index/index-page.tsx@@ -42,9 +42,10 @@ const SCOPE_TABS: BoardTab<IndexScope>[] = [{ value: 'local', label: '本地', symbol: 'hard-drive' },{ value: 'online', label: '在线', symbol: 'rss' },];-const PEOPLE_TABS: BoardTab<'performers' | 'creators'>[] = [+const PEOPLE_TABS: BoardTab<'performers' | 'creators' | 'online'>[] = [{ value: 'performers', label: '艺人', symbol: 'user-round' },- { value: 'creators', label: '卖家与动画作者', symbol: 'user-round' },+ { value: 'creators', label: '卖家', symbol: 'user-round' },+ { value: 'online', label: '在线', symbol: 'rss' },];/* 公司那一格摆的是标识而不是脸,沿用艺人那套词就是提示说着「竖幅头像」、屏幕上摆着方标识。@@ -163,13 +164,7 @@ export function IndexPage(props: IndexProps) {// 在线标签全是英文,字母表才是它的形态;切过去时顺手换上,不必再点一次。go({ scope: next, category: 'all', view: next === 'online' ? 'alphabet' : view });}} />- : kind === 'performers'- ? <BoardTabs tabs={SCOPE_TABS} value={scope} label="名册" onChange={(next) => {- // 在线那一档摆的是还没进账本的人,选择模式拼的是目录批量操作,对它一条都不成立。- if (next === 'online') props.exitSelectMode();- go({ scope: next, category: 'all' });- }} />- : isCompany(kind)+ : isCompany(kind)? <BoardTabs tabs={MAKER_TABS} value={kind as 'studios' | 'agencies'} label="公司类型"onChange={(next) => go({ kind: next })} />: null;@@ -224,11 +219,15 @@ export function IndexPage(props: IndexProps) {<IndexSearch label={`过滤${title}`} value={q} onQuery={(next) => { if (next !== q) go({ q: next }, !!next) }} /></div>{kind === 'performers' || kind === 'creators' ? (- <BoardTabs tabs={PEOPLE_TABS} value={kind} label="人物名册"- onChange={(next) => go({ kind: next, scope: 'local', category: 'all' })} />+ <BoardTabs tabs={PEOPLE_TABS} value={onlineAuthors ? 'online' : kind} label="人物名册"+ onChange={(next) => {+ if (next === 'online') props.exitSelectMode();+ go({ kind: next === 'online' ? 'performers' : next,+ scope: next === 'online' ? 'online' : 'local', category: 'all' });+ }} />) : null}{tabs}- {(kind === 'creators' || kind === 'performers') && scope === 'local' ? (+ {kind === 'performers' && scope === 'local' ? (<div aria-label="身份分类" className="mb-4 flex flex-wrap gap-2">{IDENTITY_CATEGORIES[kind].filter(([key]) => key === 'all' || key === category|| Number(result.data?.pages[0]?.categories?.[key] || 0) > 0).map(([key, label]) => (@@ -267,7 +266,7 @@ export function IndexPage(props: IndexProps) {}const LABELS: Record<IndexKind, string> = {- tags: '标签', performers: '艺人', creators: '卖家与动画作者', studios: '厂牌', agencies: '事务所',+ tags: '标签', performers: '艺人', creators: '卖家', studios: '厂牌', agencies: '事务所',};/** 空馆藏、筛选无结果与在线来源还没有内容分别给出可执行的去处。文案同目录页的空态diff --git a/frontend/test/catalog-onboarding.test.ts b/frontend/test/catalog-onboarding.test.tsindex 6030e39e3..e3a0a3f24 100644--- a/frontend/test/catalog-onboarding.test.ts+++ b/frontend/test/catalog-onboarding.test.ts@@ -36,6 +36,6 @@ describe('馆藏与资料空状态', () => {expect(catalogEmptyHtml({ kind })).toContain('data-geist-empty-state');}expect(catalogEmptyHtml({ kind: 'tags', online: true })).toContain('关注来源');- expect(catalogEmptyHtml({ kind: 'creators' })).toContain('还没有卖家与动画作者');+ expect(catalogEmptyHtml({ kind: 'creators' })).toContain('还没有卖家');});});diff --git a/frontend/test/react/index-page.test.tsx b/frontend/test/react/index-page.test.tsxindex 752651bca..2659f0a05 100644--- a/frontend/test/react/index-page.test.tsx+++ b/frontend/test/react/index-page.test.tsx@@ -85,26 +85,47 @@ describe('地址栏上的类型', () => {describe('名册', () => {it('浏览分类写回地址并隔离分页缓存,筛选只显示有内容的分类', async () => {- seed(indexKey('creators', ''), [person('动画作者', { identity_labels: ['动画作者'] })], false, { animation:1, seller:1 });- const fetcher = serve(() => ({ items: [person('卖家账号', { identity_labels: ['卖家'] })], categories:{ animation:1, seller:1 }, has_more: false }));- const given = props({ kind: 'creators' });+ seed(indexKey('performers', ''), [person('动画作者', { entity_kind:'creator', identity_labels: ['动画作者'] })], false, { animation:1 });+ const fetcher = serve(() => ({ items: [person('动画作者', { entity_kind:'creator', identity_labels: ['动画作者'] })], categories:{ animation:1 }, has_more: false }));+ const given = props();const host = await open(given);- expect(host.querySelector('[data-index-title]')?.textContent).toBe('卖家与动画作者');+ expect(host.querySelector('[data-index-title]')?.textContent).toBe('艺人');expect(cells(host)[0]?.textContent).toContain('动画作者');- expect(host.querySelector('[aria-label="身份分类"]')?.textContent).toBe('全部卖家动画作者');- await click(buttonNamed('卖家', host));+ expect(host.querySelector('[aria-label="身份分类"]')?.textContent).toBe('全部动画作者');+ await click(buttonNamed('动画作者', host));await settle();- expect(given.route).toHaveBeenLastCalledWith(expect.objectContaining({ category: 'seller' }), { replace: false });- expect(urls(fetcher)[0]).toContain('category=seller');- expect(cells(host)[0]?.textContent).toContain('卖家');+ expect(given.route).toHaveBeenLastCalledWith(expect.objectContaining({ category: 'animation' }), { replace: false });+ expect(urls(fetcher)[0]).toContain('category=animation');+ expect(cells(host)[0]?.textContent).toContain('动画作者');expect(indexRoute({ kind: 'performers', q: '', scope: 'online', view: 'alphabet', category: 'artist' }).category).toBe('all');});- it('艺人分类显示有内容的分类,卖家与动画作者地址不接受女优筛选', async () => {+ it('艺人分类显示有内容的分类,卖家地址不接受女优筛选', async () => {seed(indexKey('performers', ''), [person('女优', { identity_labels:['女优','西方'] })], false, { japanese_av:1, western:1 });const host = await open(props());expect(host.querySelector('[aria-label="身份分类"]')?.textContent).toBe('全部女优西方');expect(indexRoute({ kind:'creators', q:'', scope:'local', view:'alphabet', category:'japanese_av' }).category).toBe('all');});+ it('艺人、卖家、在线共用一排导航,卖家没有重复身份筛选', async () => {+ seed(indexKey('performers',''),[person('真人账号')]);+ seed(indexKey('creators',''),[person('卖家账号')]);+ seed(onlineAuthorsKey(''),[]);+ serve(() => ({items:[],has_more:false}));+ const given = props();+ const host = await open(given);+ expect([...host.querySelectorAll('[role="tab"]')].map(item => item.textContent?.trim())).toEqual(['艺人','卖家','在线']);+ expect(host.querySelectorAll('[role="tablist"]')).toHaveLength(1);+ await click(tab(host,'creators'));+ await settle();+ expect(host.querySelector('[data-index-title]')?.textContent).toBe('卖家');+ expect(host.querySelector('[aria-label="身份分类"]')).toBeNull();+ await click(tab(host,'online'));+ await settle();+ expect(given.route).toHaveBeenLastCalledWith(expect.objectContaining({kind:'performers',scope:'online',category:'all'}),{replace:false});+ await click(tab(host,'performers'));+ await settle();+ expect(given.route).toHaveBeenLastCalledWith(expect.objectContaining({kind:'performers',scope:'local',category:'all'}),{replace:false});+ expect(indexRoute({kind:'creators',q:'',scope:'local',view:'alphabet',category:'animation'})).toMatchObject({kind:'performers',category:'animation'});+ });it('艺人名册的真人账号保留账号头像及资料页入口', async () => {seed(indexKey('performers',''),[person('真人账号',{entity_kind:'creator',identity_labels:['网黄博主']})],false,{blogger:1});const given = props();diff --git a/scripts/import_fc2_sellers.py b/scripts/import_fc2_sellers.pynew file mode 100644index 000000000..3f09916a2--- /dev/null+++ b/scripts/import_fc2_sellers.py@@ -0,0 +1,46 @@+"""从已有 FC2 来源缓存补齐卖家名册;默认预览,写入须备份。"""+from __future__ import annotations++import argparse+import json+import sys+from contextlib import closing+from pathlib import Path++sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'src'))++from peach import fc2_sellers+from peach.config import DATABASE_PATH+from peach.scripting import add_ledger_write_args, counts_of, open_for_write, verify_after_write+++def main() -> int:+ parser = argparse.ArgumentParser(description=__doc__)+ add_ledger_write_args(parser)+ parser.add_argument('--cache', type=Path, default=DATABASE_PATH.parent.parent / 'sources' / 'library-metadata')+ parser.add_argument('--output', type=Path, required=True)+ parser.add_argument('--batch', default='')+ args = parser.parse_args()+ if args.apply and not args.batch.startswith(fc2_sellers.SOURCE + '@'):+ parser.error('--apply 需要 script:fc2-seller@ 开头的 --batch')+ with closing(open_for_write(args)) as connection, connection:+ before = counts_of(connection, {'asset_tag': 'SELECT count(*) FROM asset_tag'})+ fk_before = [tuple(row) for row in connection.execute('PRAGMA foreign_key_check')]+ frozen = fc2_sellers.collect(connection, args.cache)+ receipt = {'plan': frozen, 'before': before, 'apply': args.apply, 'batch': args.batch}+ if args.apply:+ receipt['installed'] = fc2_sellers.install(connection, frozen, batch=args.batch)+ integrity, _ = verify_after_write(connection)+ fk_after = [tuple(row) for row in connection.execute('PRAGMA foreign_key_check')]+ if integrity != 'ok' or fk_before != fk_after:+ raise ValueError('卖家写入完整性核查失败')+ receipt['integrity'] = integrity+ receipt['foreign_keys'] = len(fk_after)+ receipt['after'] = counts_of(connection, {'asset_tag': 'SELECT count(*) FROM asset_tag'})+ args.output.write_text(json.dumps(receipt, ensure_ascii=False, indent=2), encoding='utf-8')+ print(json.dumps({'accounts': len(frozen['accounts']), 'skipped': len(frozen['skipped']), 'apply': args.apply}, ensure_ascii=False))+ return 0+++if __name__ == '__main__':+ raise SystemExit(main())diff --git a/scripts/revert_auto_landing.py b/scripts/revert_auto_landing.pyindex 6dab0f41b..335cbd018 100644--- a/scripts/revert_auto_landing.py+++ b/scripts/revert_auto_landing.py@@ -50,7 +50,7 @@ from pathlib import Pathsys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))-from peach import company_profiles, record_rehome, sample_images, wants # noqa: E402+from peach import company_profiles, fc2_sellers, record_rehome, sample_images, wants # noqa: E402from peach.config import GENERATED_DIR # noqa: E402from peach.metadata_auto_apply import UNION_TAGS_SOURCE # noqa: E402from peach.scripting import add_ledger_write_args, open_for_write, verify_after_write # noqa: E402@@ -266,6 +266,7 @@ def main(argv: list[str] | None = None) -> int:aliases = planned_aliases(connection, args.source, args.batch)profiles = planned_profiles(connection, args.source, args.batch)companies = company_profiles.planned_revert(connection, args.source, args.batch)+ sellers = fc2_sellers.planned_revert(connection, args.source, args.batch)refs = planned_refs(connection, args.source, args.batch)memberships = planned_memberships(connection, args.source, args.batch)makers = planned_makers(connection, args.source, args.batch)@@ -298,7 +299,7 @@ def main(argv: list[str] | None = None) -> int:for rehome in rehomes:print(f" - 接回 {rehome['old_asset_id']:<8} → {rehome['new_asset_id']:<8} "f"{rehome['name'][:40]} {rehome['batch']}")- print({"链接": len(links), "别名": len(aliases), "资料": len(profiles), "公司资料": len(companies), "编号": len(refs),+ print({"链接": len(links), "别名": len(aliases), "资料": len(profiles), "公司资料": len(companies), "卖家": len(sellers), "编号": len(refs),"归属": len(memberships), "片商": len(makers), "标识文件": len(files),"样张": sum(sample["count"] for sample in samples), "否决": len(rejections),"标签": len(tags), "接回": len(rehomes), "想要入库": len(acquired)})@@ -339,6 +340,7 @@ def main(argv: list[str] | None = None) -> int:reopened = reopen_extended_decisions(connection, {tag["item_key"] for tag in tags})restored = record_rehome.revert(connection, args.source, args.batch)reopened_wants = wants.revert(connection, args.source, args.batch)+ removed_seller_relations = fc2_sellers.revert(connection, sellers)integrity, orphans = verify_after_write(connection)finally:connection.close()@@ -352,7 +354,7 @@ def main(argv: list[str] | None = None) -> int:"删除编号": len(refs), "删除归属": len(memberships), "删除片商": len(makers),"删除样张": removed_samples, "删除否决": len(rejections),"删除标签": len(tags), "删除扁平标签": removed_tag_rows, "重开决定": reopened,- "撤回接回": restored, "想要回到待找": reopened_wants, "删除文件": removed,+ "撤回接回": restored, "想要回到待找": reopened_wants, "卖家关系": removed_seller_relations, "删除文件": removed,"integrity_check": integrity, "foreign_key_check": orphans})return 0diff --git a/scripts/test_runner.py b/scripts/test_runner.pyindex 628fdec20..cf26843cf 100644--- a/scripts/test_runner.py+++ b/scripts/test_runner.py@@ -36,7 +36,7 @@ SCOPES: dict[str, tuple[str, ...]] = {"catalog": ("test_ad_judgement.py", "test_composite_name_split.py", "test_media_libraries.py","test_content_region.py","test_duplicate_identity_merge.py",- "test_entity_classification.py", "test_company_profiles.py",+ "test_entity_classification.py", "test_company_profiles.py", "test_fc2_sellers.py","test_entity_merge.py", "test_entity_redirect.py", "test_fastapi_api.py", "test_field_owners.py","test_migrations.py","test_review_mirror.py", "test_rm_web.py",@@ -198,6 +198,8 @@ AUTO_SCOPE_FILES: dict[str, tuple[str, ...]] = {"src/peach/studio_icons.py": ("catalog", "metadata", "web"),"src/peach/studio_sites.py": ("catalog", "metadata"),"src/peach/company_profiles.py": ("catalog", "metadata", "web"),+ "src/peach/fc2_sellers.py": ("catalog", "metadata", "web"),+ "scripts/import_fc2_sellers.py": ("catalog", "metadata", "tooling"),"scripts/harvest_company_profiles.py": ("catalog", "metadata", "web", "tooling"),# 失效标记由资料页、网页链接体检、维护脚本与种子导出共用。"src/peach/link_status.py": ("catalog", "metadata", "tooling", "web"),diff --git a/src/peach/entity_classification.py b/src/peach/entity_classification.pyindex 64c23cdb6..06d8eefb9 100644--- a/src/peach/entity_classification.py+++ b/src/peach/entity_classification.py@@ -95,8 +95,8 @@ def category_predicates(column='e.id', kind_column='e.kind', connection=None):'japanese_av': f"{kind_column} IN ('performer','creator') AND ({jav})",'amateur': f"{kind_column}='performer' AND ({amateur})",'western': f"{kind_column}='performer' AND ({western})",- 'blogger': f"{kind_column}='creator' AND ({creator_video}) AND NOT ({seller}) AND NOT ({animation}) AND NOT ({claim('account_role','studio')})",- 'seller': f"{kind_column}='creator' AND ({seller})",+ 'blogger': f"{kind_column}='creator' AND ({creator_video}) AND (NOT ({seller}) OR {claim('identity','person')}) AND NOT ({animation}) AND NOT ({claim('account_role','studio')})",+ 'seller': f"{kind_column} IN ('performer','creator') AND ({seller})",'animation': f"{kind_column}='creator' AND ({animation})",}@@ -118,12 +118,12 @@ def summaries(connection, entity_ids):def index_scope(connection, kind: str) -> str:- """艺人名册包含真人账号;卖家与动画作者使用独立名册。"""+ """艺人名册包含真人账号和动画作者;卖家使用独立名册。"""predicates = category_predicates(connection=connection)if kind == 'performer':- return "(e.kind='performer' OR (" + predicates['blogger'] + '))'+ return "(e.kind='performer' OR (" + predicates['blogger'] + ') OR (' + predicates['animation'] + '))'if kind == 'creator':- return '(' + predicates['seller'] + ' OR ' + predicates['animation'] + ')'+ return '(' + predicates['seller'] + ')'return "e.kind='" + kind + "'"diff --git a/src/peach/fc2_sellers.py b/src/peach/fc2_sellers.pynew file mode 100644index 000000000..089ddf868--- /dev/null+++ b/src/peach/fc2_sellers.py@@ -0,0 +1,231 @@+"""FC2 来源缓存中的卖家账号与作品关系;按来源批次可撤回。"""+from __future__ import annotations++import json+import re+from datetime import datetime, timezone+from hashlib import sha256+from collections import defaultdict+from pathlib import Path+from urllib.parse import urlsplit++from .catalog_rules import normalise_code_key+from .entities import canonicalize_entity_name, normalize_entity_name, upsert_asset_entity+from .entity_classification import write_claim++SOURCE = 'script:fc2-seller'+PROVIDERS = {'fc2ppvdb': 'fc2ppv-db.com', 'fc2cmadb': 'fc2cmadb.com',+ 'javten': 'javten.com', 'fc2': 'adult.contents.fc2.com'}+++def seller_record(payload: dict, provider: str) -> dict | None:+ """只接受对应作品页上的明确卖家名称和 FC2 账号地址。"""+ if not isinstance(payload, dict):+ return None+ code = normalise_code_key(str(payload.get('id') or payload.get('code') or ''))+ name = ' '.join(str(payload.get('label') or '').split())+ url = urlsplit(str(payload.get('seller_url') or ''))+ page = str(payload.get('source_url') or '')+ parsed = urlsplit(page)+ account = re.fullmatch(r'/users/([A-Za-z0-9_-]+)/?', url.path)+ valid_page = (parsed.scheme == 'https' and parsed.netloc == PROVIDERS.get(provider)+ and re.search(r'(?<!\d)' + re.escape(code.removeprefix('FC2-PPV-')) + r'(?!\d)', parsed.path))+ if not (re.fullmatch(r'FC2-PPV-\d{5,}', code) and valid_page and account+ and url.scheme == 'https' and url.netloc == 'adult.contents.fc2.com'+ and not url.query and not url.fragment and name and len(name) <= 200):+ return None+ if normalize_entity_name(name) in {'fc2', 'fc2ppv', 'fc2-ppv'}:+ return None+ return {'code': code, 'name': name, 'account': account[1],+ 'account_url': f'https://adult.contents.fc2.com/users/{account[1]}/',+ 'source_url': page, 'provider': provider}+++def cached_records(root: Path):+ """读取有限的 FC2 来源快照;失败快照不作为账号证据。"""+ for provider in PROVIDERS:+ paths = sorted(root.glob(f'FC2-PPV-*-{provider}.json'))+ if len(paths) > 10000:+ raise ValueError('FC2 来源快照超过单次处理上限')+ for path in paths:+ try:+ row = seller_record(json.loads(path.read_text(encoding='utf-8')), provider)+ except (ValueError, TypeError):+ continue+ if row and normalise_code_key(path.name.removesuffix(f'-{provider}.json')) == row['code']:+ yield {**row, 'cache_file': str(path)}+++def existing_account(connection, rows: list[dict]) -> tuple[int | None, str]:+ """外部账号优先;同名而不同账号保留为冲突。"""+ account = rows[0]['account']+ held = connection.execute("SELECT entity_id FROM entity_external_ref WHERE provider='fc2' "+ "AND external_kind='creator' AND external_id=?", (account,)).fetchone()+ if held:+ return int(held[0]), ''+ names = {normalize_entity_name(row['name']) for row in rows}+ found = set()+ for name in names:+ matches = connection.execute("SELECT e.id FROM entity e WHERE e.kind='creator' AND "+ "(e.normalized_name=? OR EXISTS (SELECT 1 FROM entity_alias al WHERE al.entity_id=e.id AND al.normalized_alias=?))",+ (name, name)).fetchall()+ found.update(int(item[0]) for item in matches)+ if len(found) > 1:+ return None, '同名命中多个账号'+ entity_id = next(iter(found), None)+ if entity_id and connection.execute("SELECT 1 FROM entity_external_ref WHERE entity_id=? AND provider='fc2' "+ "AND external_kind='creator' AND external_id<>?", (entity_id, account)).fetchone():+ return None, '同名对应不同 FC2 账号'+ return entity_id, ''+++def _account_groups(connection, groups, skipped):+ names = defaultdict(set)+ for account, rows in groups.items():+ for row in rows:+ names[normalize_entity_name(row['name'])].add(account)+ accounts = []+ for account, rows in sorted(groups.items()):+ entity_id, conflict = existing_account(connection, rows)+ if not entity_id and any(len(names[normalize_entity_name(row['name'])]) > 1 for row in rows):+ conflict = '不同 FC2 账号使用相同卖家名称'+ if conflict:+ skipped.append({'account': account, 'reason': conflict})+ else:+ accounts.append({'account': account, 'entity_id': entity_id, 'records': rows})+ return accounts+++def collect(connection, root: Path) -> dict:+ """来源账号按作品号与馆藏关联;来源冲突和非馆藏作品不落库。"""+ assets = defaultdict(list)+ for row in connection.execute("SELECT id,code FROM asset WHERE medium='video' AND COALESCE(disposal,'')<>'vanished' AND code IS NOT NULL"):+ code = normalise_code_key(row[1])+ if code.startswith('FC2-PPV-'):+ assets[code].append(int(row[0]))+ by_code = defaultdict(list)+ for row in cached_records(root):+ if row['code'] in assets:+ by_code[row['code']].append({**row, 'asset_ids': assets[row['code']]})+ groups = defaultdict(list)+ skipped = []+ for code, rows in sorted(by_code.items()):+ if len({row['account'] for row in rows}) != 1:+ skipped.append({'code': code, 'reason': '作品来源给出不同卖家账号'})+ else:+ groups[rows[0]['account']].extend(rows)+ accounts = _account_groups(connection, groups, skipped)+ return {'accounts': accounts, 'skipped': skipped}+++def _link(connection, entity_id, record, batch):+ if connection.execute('SELECT 1 FROM entity_link WHERE entity_id=? AND url=?',+ (entity_id, record['account_url'])).fetchone():+ return+ metadata = json.dumps({'source': SOURCE, 'batch': batch, 'source_url': record['source_url']}, ensure_ascii=False)+ stamp = datetime.now(timezone.utc).isoformat()+ connection.execute("INSERT INTO entity_link(entity_id,link_kind,label,url,hostname,is_sensitive,metadata_json,created_at,updated_at) "+ "VALUES(?,'official','FC2',?,'adult.contents.fc2.com',0,?,?,?)",+ (entity_id, record['account_url'], metadata, stamp, stamp))+++def _claim(connection, entity_id, record, owner):+ if connection.execute("SELECT 1 FROM entity_classification WHERE entity_id=? AND facet='account_role' "+ "AND value='seller' AND status IN ('observed','approved')", (entity_id,)).fetchone():+ return+ write_claim(connection, entity_id=entity_id, facet='account_role', value='seller', source=owner,+ source_url=record['source_url'], evidence=f"作品 {record['code']} 的販売者:{record['name']};账号 {record['account_url']}",+ status='observed', confidence=1)+++def _digest(metadata):+ payload = {key: value for key, value in metadata.items() if key != 'created_payload_digest'}+ return sha256(json.dumps(payload, sort_keys=True, ensure_ascii=False).encode()).hexdigest()+++def _associate(connection, entity_id, name, record, metadata, batch):+ payload = {**metadata, **record}+ payload['created_payload_digest'] = _digest(payload)+ for asset_id in record['asset_ids']:+ asset = connection.execute("SELECT code FROM asset WHERE id=? AND medium='video' AND COALESCE(disposal,'')<>'vanished'", (asset_id,)).fetchone()+ if not asset or normalise_code_key(asset[0]) != record['code']:+ raise ValueError('卖家作品计划已过期')+ if entity_id and connection.execute("SELECT 1 FROM asset_entity WHERE asset_id=? AND entity_id=? AND role='creator'",+ (asset_id, entity_id)).fetchone():+ continue+ entity_id = upsert_asset_entity(connection, kind='creator', name=name, asset_id=asset_id, role='creator',+ source=batch, metadata=payload, update_entity_metadata=False)+ actual = connection.execute('SELECT kind FROM entity WHERE id=?', (entity_id,)).fetchone()+ if not actual or actual[0] != 'creator':+ raise ValueError('卖家账号与已合并出演身份冲突')+ return entity_id+++def _install_account(connection, group, batch):+ first = group['records'][0]+ entity_id = group['entity_id']+ if existing_account(connection, group['records']) != (entity_id, ''):+ raise ValueError('卖家身份计划已过期')+ name = first['name']+ if entity_id:+ held = connection.execute('SELECT kind,canonical_name FROM entity WHERE id=?', (entity_id,)).fetchone()+ if not held or held[0] != 'creator':+ raise ValueError('账号身份已变化')+ name = held[1]+ metadata = {'source': SOURCE, 'batch': batch, 'account_url': first['account_url']}+ for record in group['records']:+ entity_id = _associate(connection, entity_id, name, record, metadata, batch)+ _claim(connection, entity_id, record, batch)+ alias = normalize_entity_name(record['name'])+ if alias != normalize_entity_name(name):+ connection.execute('INSERT OR IGNORE INTO entity_alias(entity_id,alias,normalized_alias,source) VALUES(?,?,?,?)',+ (entity_id, record['name'], alias, batch))+ if not connection.execute("SELECT 1 FROM entity_external_ref WHERE entity_id=? AND provider='fc2' AND external_kind='creator'", (entity_id,)).fetchone():+ connection.execute("INSERT INTO entity_external_ref(entity_id,provider,external_kind,external_id,metadata_json) VALUES(?,'fc2','creator',?,?)",+ (entity_id, first['account'], json.dumps(metadata)))+ _link(connection, entity_id, first, batch)+ return entity_id+++def install(connection, frozen: dict, *, batch: str) -> dict:+ """追加卖家关系,保留出演者、扁平字段和既有账号资料。"""+ if not batch.startswith(SOURCE + '@'):+ raise ValueError('卖家批次需要明确来源前缀')+ before = connection.total_changes+ ids = [_install_account(connection, group, batch) for group in frozen['accounts']]+ return {'entity_ids': sorted(set(ids)), 'changes': connection.total_changes - before}+++def planned_revert(connection, source: str, batch: str) -> list[dict]:+ if source != SOURCE:+ return []+ rows = connection.execute("SELECT DISTINCT e.id,e.canonical_name,b.source FROM entity e JOIN ("+ "SELECT entity_id,source FROM asset_entity WHERE role='creator' AND source LIKE ? UNION "+ "SELECT entity_id,source FROM entity_classification WHERE facet='account_role' AND value='seller' AND source LIKE ?) b ON b.entity_id=e.id",+ (SOURCE + '@%', SOURCE + '@%'))+ return [{'entity_id': row[0], 'name': row[1], 'batch': row[2]} for row in rows if not batch or row[2] == batch]+++def _referenced(connection, entity_id):+ for (table,) in connection.execute("SELECT name FROM sqlite_schema WHERE type='table'"):+ for fk in connection.execute(f'PRAGMA foreign_key_list("{table}")'):+ if fk[2] == 'entity' and connection.execute(f'SELECT 1 FROM "{table}" WHERE "{fk[3]}"=? LIMIT 1', (entity_id,)).fetchone():+ return True+ return False+++def revert(connection, rows: list[dict]) -> int:+ """撤回本批卖家断言与关系;有其他引用的实体继续保留。"""+ removed = 0+ for row in rows:+ entity_id, batch = row['entity_id'], row['batch']+ removed += connection.execute("DELETE FROM asset_entity WHERE entity_id=? AND role='creator' AND source=?", (entity_id, batch)).rowcount+ connection.execute('DELETE FROM entity_classification WHERE entity_id=? AND source=?', (entity_id, batch))+ entity = connection.execute('SELECT metadata_json,canonical_name,normalized_name FROM entity WHERE id=?', (entity_id,)).fetchone()+ metadata = json.loads(entity[0] or '{}') if entity else {}+ original_name = canonicalize_entity_name('creator', metadata.get('name', ''))+ if (metadata.get('source') == SOURCE and metadata.get('batch') == batch+ and entity[1] == original_name and entity[2] == normalize_entity_name(original_name)+ and metadata.get('created_payload_digest') == _digest(metadata) and not _referenced(connection, entity_id)):+ connection.execute('DELETE FROM entity WHERE id=?', (entity_id,))+ return removeddiff --git a/tests/test_entity_classification.py b/tests/test_entity_classification.pyindex 0aae47224..8332c1927 100644--- a/tests/test_entity_classification.py+++ b/tests/test_entity_classification.py@@ -151,15 +151,16 @@ class EntityClassificationTests(unittest.TestCase):self.connection.commit()self.assertEqual(q_index(contract,'performers',category='amateur')['items'],[])- def test_animation_author_is_separate_from_real_accounts_and_artists(self):+ def test_animation_author_appears_in_artist_directory_with_its_own_category(self):_, animator = self.entity('Animator')self.claim(animator,'occupation','animator')_, artist = self.entity('Artist')self.claim(artist,'occupation','artist')self.connection.commit()- page = q_index(WebContract(self.db),'creators',category='animation')+ page = q_index(WebContract(self.db),'performers',category='animation')self.assertEqual([row['entity_id'] for row in page['items']],[animator])- self.assertEqual(page['categories'],{'animation':1})+ self.assertEqual(page['categories'],{'animation':1,'blogger':1})+ self.assertEqual(q_index(WebContract(self.db),'creators')['items'],[])def test_real_accounts_share_artist_directory_and_keep_avatars_and_profile_routes(self):_, actor = self.entity('Actor', kind='performer')@@ -170,10 +171,20 @@ class EntityClassificationTests(unittest.TestCase):self.claim(animator,'occupation','animator')self.connection.commit()artists = q_index(WebContract(self.db),'performers')- self.assertCountEqual([row['entity_id'] for row in artists['items']],[actor,blogger])- self.assertEqual({row['entity_id']:row['entity_kind'] for row in artists['items']},{actor:'performer',blogger:'creator'})+ self.assertCountEqual([row['entity_id'] for row in artists['items']],[actor,blogger,animator])+ self.assertEqual({row['entity_id']:row['entity_kind'] for row in artists['items']},{actor:'performer',blogger:'creator',animator:'creator'})separate = q_index(WebContract(self.db),'creators')- self.assertCountEqual([row['entity_id'] for row in separate['items']],[seller,animator])+ self.assertCountEqual([row['entity_id'] for row in separate['items']],[seller])++ def test_person_account_can_belong_to_blogger_and_seller_directories(self):+ _, person = self.entity('Person Account')+ self.claim(person,'identity','person')+ self.claim(person,'account_role','seller')+ self.connection.commit()+ contract = WebContract(self.db)+ self.assertEqual(q_index(contract,'performers')['items'][0]['entity_id'],person)+ self.assertEqual(q_index(contract,'creators')['items'][0]['entity_id'],person)+ self.assertEqual(q_entity(contract,{'kind':'creator','name':'Person Account'})['identity_labels'],['网黄博主','卖家'])def test_western_cast_occupation_does_not_assert_a_japanese_av_career(self):_, entity_id = self.entity('Western Performer',kind='performer')diff --git a/tests/test_fc2_sellers.py b/tests/test_fc2_sellers.pynew file mode 100644index 000000000..bc154114c--- /dev/null+++ b/tests/test_fc2_sellers.py@@ -0,0 +1,158 @@+"""卖家证据、账号冲突、馆藏匹配及按批撤回的行为验证。"""+import json+import sqlite3+import tempfile+import unittest+from pathlib import Path++from peach import fc2_sellers+from peach.entities import upsert_asset_entity+from peach.entity_classification import write_claim+from peach.web_entity import q_entity, q_index+from peach.web_state import WebContract+from scripts import revert_auto_landing+from tests.support.ledger import fresh_ledger+++class Fc2SellerTests(unittest.TestCase):+ def setUp(self):+ self.directory = tempfile.TemporaryDirectory()+ self.addCleanup(self.directory.cleanup)+ self.root = Path(self.directory.name).resolve()+ self.db = fresh_ledger(self.root)+ self.connection = sqlite3.connect(self.db)+ self.connection.row_factory = sqlite3.Row+ self.addCleanup(self.connection.close)+ self.cache = self.root / 'cache'+ self.cache.mkdir()+ self.batch = fc2_sellers.SOURCE + '@test'++ def asset(self, code):+ row = self.connection.execute("INSERT INTO asset(location,path,name,medium,code,play_count,rating,creator) "+ "VALUES('local',?,?,'video',?,8,4,'User Account')", (f'B:\\FC2\\{code}.mp4',f'{code}.mp4',code))+ self.connection.commit()+ return row.lastrowid++ def snapshot(self, code='FC2-PPV-1234567', name='Seller', account='seller', provider='fc2ppvdb', **changes):+ number = code.rsplit('-',1)[1]+ page = f'https://fc2ppv-db.com/ja/videos/{number}' if provider == 'fc2ppvdb' else f'https://fc2cmadb.com/articles/{number}'+ row = {'id':code, 'label':name, 'seller_url':f'https://adult.contents.fc2.com/users/{account}/', 'source_url':page, **changes}+ (self.cache / f'{code}-{provider}.json').write_text(json.dumps(row),encoding='utf-8')+ return row++ def install(self):+ with self.connection:+ return fc2_sellers.install(self.connection,fc2_sellers.collect(self.connection,self.cache),batch=self.batch)++ def undo(self):+ with self.connection:+ aliases = revert_auto_landing.planned_aliases(self.connection,fc2_sellers.SOURCE,self.batch)+ refs = revert_auto_landing.planned_refs(self.connection,fc2_sellers.SOURCE,self.batch)+ links = revert_auto_landing.planned_links(self.connection,fc2_sellers.SOURCE,self.batch)+ sellers = fc2_sellers.planned_revert(self.connection,fc2_sellers.SOURCE,self.batch)+ for row in aliases:+ self.connection.execute('DELETE FROM entity_alias WHERE entity_id=? AND source=?',(row['entity_id'],row['source']))+ for row in refs:+ self.connection.execute('DELETE FROM entity_external_ref WHERE provider=? AND external_kind=? AND external_id=?',(row['provider'],row['kind'],row['id']))+ for row in links:+ self.connection.execute('DELETE FROM entity_link WHERE id=?',(row['id'],))+ fc2_sellers.revert(self.connection,sellers)++ def test_seller_account_and_split_files_share_work_without_changing_cast_or_history(self):+ asset_id = self.asset('FC2-PPV-1234567-1')+ self.asset('FC2-PPV-1234567-2')+ performer = upsert_asset_entity(self.connection,kind='performer',name='Cast',asset_id=asset_id,role='performer',source='user:manual')+ self.connection.commit()+ before = [tuple(row) for row in self.connection.execute('SELECT * FROM asset ORDER BY id')]+ cast = tuple(self.connection.execute('SELECT * FROM asset_entity WHERE entity_id=?',(performer,)).fetchone())+ self.snapshot()+ result = self.install()+ self.assertEqual(len(result['entity_ids']),1)+ contract = WebContract(self.db)+ page = q_index(contract,'creators')+ self.assertEqual(page['items'][0]['identity_labels'],['卖家'])+ self.assertEqual(page['items'][0]['n'],1)+ self.assertEqual(len(q_entity(contract,{'kind':'creator','name':'Seller'})['links']),1)+ self.assertEqual([tuple(row) for row in self.connection.execute('SELECT * FROM asset ORDER BY id')],before)+ self.assertEqual(tuple(self.connection.execute('SELECT * FROM asset_entity WHERE entity_id=?',(performer,)).fetchone()),cast)+ self.assertEqual(self.connection.execute('PRAGMA foreign_key_check').fetchall(),[])+ self.assertEqual(self.install()['changes'],0)+ self.undo()+ self.assertEqual(self.connection.execute("SELECT count(*) FROM entity WHERE kind='creator'").fetchone()[0],0)+ self.assertEqual([tuple(row) for row in self.connection.execute('SELECT * FROM asset ORDER BY id')],before)++ def test_conflicting_source_accounts_are_skipped_and_nonlibrary_records_are_ignored(self):+ self.asset('FC2-PPV-1234567')+ self.snapshot()+ self.snapshot(provider='fc2cmadb',account='other')+ self.snapshot(code='FC2-PPV-7654321')+ plan = fc2_sellers.collect(self.connection,self.cache)+ self.assertEqual(plan['accounts'],[])+ self.assertEqual(plan['skipped'][0]['reason'],'作品来源给出不同卖家账号')++ def test_reuse_by_account_preserves_user_name_metadata_reference_and_seller_claim(self):+ one = self.asset('FC2-PPV-1234567')+ two = self.asset('FC2-PPV-7654321')+ entity_id = upsert_asset_entity(self.connection,kind='creator',name='User Name',asset_id=one,role='creator',+ source='user:manual',external_provider='fc2',external_id='seller',metadata={'user':'kept'})+ write_claim(self.connection,entity_id=entity_id,facet='account_role',value='seller',source='user:manual',status='approved',evidence='用户确认')+ self.connection.commit()+ entity = tuple(self.connection.execute('SELECT * FROM entity WHERE id=?',(entity_id,)).fetchone())+ ref = tuple(self.connection.execute('SELECT * FROM entity_external_ref WHERE entity_id=?',(entity_id,)).fetchone())+ self.snapshot(code='FC2-PPV-7654321',name='Public Name')+ self.install()+ self.assertEqual(tuple(self.connection.execute('SELECT * FROM entity WHERE id=?',(entity_id,)).fetchone()),entity)+ self.assertEqual(tuple(self.connection.execute('SELECT * FROM entity_external_ref WHERE entity_id=?',(entity_id,)).fetchone()),ref)+ self.assertEqual(self.connection.execute('SELECT alias FROM entity_alias WHERE entity_id=?',(entity_id,)).fetchone()[0],'Public Name')+ self.undo()+ self.assertEqual(self.connection.execute('SELECT count(*) FROM asset_entity WHERE entity_id=? AND asset_id=?',(entity_id,two)).fetchone()[0],0)+ self.assertEqual(tuple(self.connection.execute('SELECT * FROM entity WHERE id=?',(entity_id,)).fetchone()),entity)+ self.assertEqual(self.connection.execute('SELECT count(*) FROM entity_classification WHERE entity_id=?',(entity_id,)).fetchone()[0],1)++ def test_same_name_different_account_and_invalid_public_evidence_do_not_land(self):+ one = self.asset('FC2-PPV-1234567')+ upsert_asset_entity(self.connection,kind='creator',name='Seller',asset_id=one,role='creator',source='user:manual',external_provider='fc2',external_id='other')+ self.connection.commit()+ row = self.snapshot()+ self.assertEqual(fc2_sellers.collect(self.connection,self.cache)['accounts'],[])+ for changes in ({'source_url':'https://fc2ppv-db.com/ja/videos/7654321'},+ {'seller_url':'https://adult.contents.fc2.com.evil.test/users/seller/'},+ {'seller_url':'https://adult.contents.fc2.com/users/seller/?token=private'},+ {'label':'FC2-PPV'}):+ self.assertIsNone(fc2_sellers.seller_record({**row,**changes},'fc2ppvdb'))++ def test_new_accounts_with_shared_names_are_conflicts(self):+ self.asset('FC2-PPV-1234567')+ self.asset('FC2-PPV-7654321')+ self.snapshot()+ self.snapshot(code='FC2-PPV-7654321',account='other')+ plan = fc2_sellers.collect(self.connection,self.cache)+ self.assertEqual(plan['accounts'],[])+ self.assertEqual(len(plan['skipped']),2)+ self.assertTrue(all(row['reason']=='不同 FC2 账号使用相同卖家名称' for row in plan['skipped']))++ def test_revert_preserves_later_user_account_name(self):+ self.asset('FC2-PPV-1234567')+ self.snapshot()+ entity_id = self.install()['entity_ids'][0]+ self.connection.execute("UPDATE entity SET canonical_name='User Seller',normalized_name='userseller' WHERE id=?",(entity_id,))+ self.connection.commit()+ self.undo()+ self.assertEqual(self.connection.execute('SELECT canonical_name FROM entity WHERE id=?',(entity_id,)).fetchone()[0],'User Seller')++ def test_stale_work_plan_rolls_back_and_revert_keeps_later_user_metadata(self):+ asset_id = self.asset('FC2-PPV-1234567')+ self.snapshot()+ plan = fc2_sellers.collect(self.connection,self.cache)+ self.connection.execute("UPDATE asset SET code='ABW-001' WHERE id=?",(asset_id,))+ self.connection.commit()+ with self.assertRaisesRegex(ValueError,'已过期'):+ with self.connection:+ fc2_sellers.install(self.connection,plan,batch=self.batch)+ self.connection.execute("UPDATE asset SET code='FC2-PPV-1234567' WHERE id=?",(asset_id,))+ self.connection.commit()+ entity_id = self.install()['entity_ids'][0]+ self.connection.execute("UPDATE entity SET metadata_json=json_set(metadata_json,'$.user','kept') WHERE id=?",(entity_id,))+ self.connection.commit()+ self.undo()+ self.assertEqual(json.loads(self.connection.execute('SELECT metadata_json FROM entity WHERE id=?',(entity_id,)).fetchone()[0])['user'],'kept')diff --git a/tests/test_web_e2e.py b/tests/test_web_e2e.pyindex e59286c96..548782b1a 100644--- a/tests/test_web_e2e.py+++ b/tests/test_web_e2e.py@@ -224,15 +224,32 @@ class WebE2ESmokeTests(unittest.TestCase):@classmethoddef _warm_stream(cls):- """在 Chrome 启动多进程前用真实端点完成短片的兼容转码。"""- session = f"e2e-prewarm-{os.getpid()}"- query = urllib.parse.urlencode({"id": cls.item, "session": session})+ """在 Chrome 启动前预热演示短片的实际播放链。"""+ with closing(sqlite3.connect(cls.db)) as connection:+ items = connection.execute("SELECT id FROM asset WHERE medium='video' ORDER BY id LIMIT 33").fetchall()+ if len(items) > 32:+ raise AssertionError("演示短片超过预热上限")opener = urllib.request.build_opener(urllib.request.ProxyHandler({}))+ for (item,) in items:+ cls._warm_clip(opener, item)++ @classmethod+ def _warm_clip(cls, opener, item):+ session = f"e2e-prewarm-{os.getpid()}-{item}"+ query = urllib.parse.urlencode({"id": item, "session": session})try:- with opener.open(f"{cls.origin}/stream?{query}", timeout=60) as response:- if response.status != 200:- raise AssertionError(f"演示短片预热失败:HTTP {response.status}")- response.read()+ with opener.open(f"{cls.origin}/api/stream-plan?{query}", timeout=60) as response:+ plan = json.load(response)+ source = cls.origin + plan['src']+ with opener.open(source, timeout=60) as response:+ payload = response.read()+ if plan['protocol'] == 'hls':+ segments = [line for line in payload.decode().splitlines() if line and not line.startswith('#')]+ if not segments or len(segments) > 8:+ raise AssertionError("演示短片分片数量不符合预热预算")+ for segment in segments:+ with opener.open(urllib.parse.urljoin(source, segment), timeout=60) as response:+ response.read()except (urllib.error.URLError, OSError) as error:raise AssertionError(f"演示短片预热失败:{error}\n{cls._server_log()}") from errorfinally:@@ -375,6 +392,42 @@ class SetupE2ETests(unittest.TestCase):class MissingPrerequisiteTests(unittest.TestCase):"""CI 里浏览器用例只能执行或失败,不能静默跳过;工作流那一半由 `test_frontend_build.py` 守。"""+ def test_demo_prewarm_fetches_each_clips_hls_segments_and_cancels_sessions(self):+ from io import BytesIO+ fetched, cancelled = [], []+ opener = mock.Mock()++ def open_response(request, **kwargs):+ if isinstance(request, urllib.request.Request):+ cancelled.append(urllib.parse.parse_qs(urllib.parse.urlsplit(request.full_url).query)['session'][0])+ payload = b''+ else:+ parsed = urllib.parse.urlsplit(request)+ query = urllib.parse.parse_qs(parsed.query)+ if parsed.path == '/api/stream-plan':+ item, session = query['id'][0], query['session'][0]+ payload = json.dumps({'protocol':'hls','src':f'/stream/hls/{item}/index.m3u8?session={session}'}).encode()+ elif parsed.path.endswith('index.m3u8'):+ payload = f"#EXTM3U\n0.ts?session={query['session'][0]}\n".encode()+ else:+ fetched.append(parsed.path)+ payload = b'segment'+ response = BytesIO(payload)+ response.status = 200+ return response++ opener.open.side_effect = open_response+ with tempfile.TemporaryDirectory() as folder:+ db = Path(folder).resolve() / 'demo.db'+ with closing(sqlite3.connect(db)) as connection, connection:+ connection.execute('CREATE TABLE asset(id INTEGER,medium TEXT)')+ connection.executemany('INSERT INTO asset VALUES(?,?)',[(1,'video'),(2,'photo'),(3,'video')])+ with mock.patch.multiple(WebE2ESmokeTests,db=db,origin='http://demo.test',create=True), mock.patch('urllib.request.build_opener',return_value=opener):+ WebE2ESmokeTests._warm_stream()+ self.assertEqual(fetched,['/stream/hls/1/0.ts','/stream/hls/3/0.ts'])+ self.assertEqual(len(cancelled),2)+ self.assertEqual(len(set(cancelled)),2)+def test_browser_batches_cover_every_file_once_and_include_nested_suites(self):with tempfile.TemporaryDirectory() as folder:frontend = Path(folder).resolve()@@ -398,7 +451,7 @@ class MissingPrerequisiteTests(unittest.TestCase):def test_headless_browser_stays_within_the_resource_guard_process_budget(self):harness = (FRONTEND / "e2e" / "harness.ts").read_text(encoding="utf-8")- self.assertIn("args: ['--renderer-process-limit=1', '--disable-features=AudioServiceOutOfProcess', '--disable-audio-output']", harness)+ self.assertIn("args: ['--renderer-process-limit=1', '--in-process-gpu', '--disable-features=AudioServiceOutOfProcess', '--disable-audio-output']", harness)self.assertIn("timeout: 30_000", harness)def test_missing_prerequisites_skip_locally_and_fail_on_ci(self):diff --git a/web/app.js b/web/app.jsindex fbd26ca3d..362ee7cc9 100644--- a/web/app.js+++ b/web/app.js@@ -149,7 +149,7 @@ const ROUTES=[{match:'/performers',nav:'performers',title:'艺人',open:(params,push)=>openIndex('performers',push),reload:()=>openIndex('performers',false)},- {match:'/creators',title:'卖家与动画作者',+ {match:'/creators',title:'卖家',open:(params,push)=>openIndex('creators',push),reload:()=>openIndex('creators',false)},/* 厂牌出片、事务所出人,是两种实体,所以是两条路径;页内那个@@ -2401,7 +2401,7 @@ document.addEventListener('click',event=>{整页在 React(`frontend/src/react/index/`)。壳做三件事:从地址栏读出这一页的状态、铺骨架、把遗留层唯一那一份取图链与去处当 props 递进去。换档(厂牌↔事务所、本地↔在线、类型、视图、过滤词)由页面经 `route` 写回地址栏,不经过这里重挂。 */-const INDEX_TITLES={performers:'艺人',creators:'卖家与动画作者',studios:'厂牌',+const INDEX_TITLES={performers:'艺人',creators:'卖家',studios:'厂牌',agencies:'事务所',tags:'标签'};/* 艺人索引版式,思路同 JAV 大图:列宽不变、只把图从圆框拉成竖幅,一屏里的人数不变而每张脸更大;紧凑就是圆头像那一屏。资料页的名册读的是同一个设置值。 */diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex b17e75e17..706947581 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -21118,7 +21118,7 @@ function ene(e) {}//#endregion//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs-function ux(e) {+function tne(e) {let t = jg(e, { labelable: !0 }), n;return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {...t,@@ -21128,7 +21128,7 @@ function ux(e) {}//#endregion//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs-function tne(e, t, n) {+function ux(e, t, n) {let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);return {labelProps: r,@@ -23847,14 +23847,14 @@ function _C() {function vC() {return gC ||= fC(), gC;}-var mre = (e) => pC(e, vC()), hre = (e) => mC(e, vC());-function yC() {+var yC = (e) => pC(e, vC()), mre = (e) => mC(e, vC());+function bC() {let e = gC;e && (gC = "", hC(e));}//#endregion//#region src/player/telemetry.ts-function bC(e, t, n = {}) {+function xC(e, t, n = {}) {if (!t) return;let r = 0, i = 0, a = 0, o = null;t.addEventListener("seeking", () => {@@ -23902,7 +23902,7 @@ function bC(e, t, n = {}) {u(), l(!1);}, { once: !0 }), c();}-function gre(e, t) {+function hre(e, t) {let n = 0, r = 0, i = !1, a = null, o = (n) => {let i = we(e.duration) || we(t.duration);!r && !n || (pe("/api/follow/activity", {@@ -23938,7 +23938,7 @@ function gre(e, t) {}//#endregion//#region src/player/videojs.ts-var xC = "/vendor/videojs/8.24.1/", SC = (e) => new Promise((t, n) => {+var SC = "/vendor/videojs/8.24.1/", CC = (e) => new Promise((t, n) => {let r = document.head.querySelector(`script[src="${e}"]`);if (r?.dataset.loaded) {t();@@ -23950,20 +23950,20 @@ var xC = "/vendor/videojs/8.24.1/", SC = (e) => new Promise((t, n) => {}, { once: !0 }), i.addEventListener("error", () => {i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));}, { once: !0 }), r || (i.src = e, document.head.appendChild(i));-}), CC = () => globalThis.videojs, wC = null;-function TC() {- let e = CC();- return e ? Promise.resolve(e) : (wC ??= SC(`${xC}video.min.js`).then(() => SC(`${xC}lang/zh-CN.js`)).then(() => {- let e = CC();+}), wC = () => globalThis.videojs, TC = null;+function EC() {+ let e = wC();+ return e ? Promise.resolve(e) : (TC ??= CC(`${SC}video.min.js`).then(() => CC(`${SC}lang/zh-CN.js`)).then(() => {+ let e = wC();if (!e) throw Error("videojs unavailable");return e;}).catch((e) => {- throw wC = null, e;- }), wC);+ throw TC = null, e;+ }), TC);}//#endregion//#region src/player/immerse-player.ts-var _re = {+var gre = {controls: !1,preload: "auto",posterImage: !1,@@ -23975,37 +23975,37 @@ var _re = {errorDisplay: !1,textTrackSettings: !1};-function vre(e, t) {+function _re(e, t) {let { item: n, session: r } = t, i = null, a = !1;- return Promise.all([mC(n, r), TC().catch(() => null)]).then(([o, s]) => {+ return Promise.all([mC(n, r), EC().catch(() => null)]).then(([o, s]) => {if (a) return;let c = pC(n, r), l = String(o.type || "").includes("mpegurl");if (!s) e.src = (l ? c : o).src;else {- let t = s(e, _re);+ let t = s(e, gre);i = t, l && t.one("error", () => {a || t.src(c);}), t.src(o);}- bC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();+ xC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();}), () => {a || (a = !0, hC(r), i ? dC(i) : (e.pause(), e.removeAttribute("src"), e.load()));};}//#endregion//#region src/player/detail-player.ts-var EC = /* @__PURE__ */ new WeakMap(), DC = null, OC = null, kC = null;-function AC() {- DC &&= (clearInterval(DC), null), OC &&= (clearInterval(OC), null), kC &&= (clearTimeout(kC), null);+var DC = /* @__PURE__ */ new WeakMap(), OC = null, kC = null, AC = null;+function jC() {+ OC &&= (clearInterval(OC), null), kC &&= (clearInterval(kC), null), AC &&= (clearTimeout(AC), null);}-async function yre(e, t, n, r = {}) {+async function vre(e, t, n, r = {}) {let i = qS();if (i && !i.isDisposed()) return i;let a = VS(), o = r.resume ?? null;o?.autoplay && (n = !0);- let s = () => r.source ? Promise.resolve(r.source) : hre(e), c;+ let s = () => r.source ? Promise.resolve(r.source) : mre(e), c;try {- c = await TC();+ c = await EC();} catch {return t.controls = !0, s().then((e) => {t.src = e.src, n && t.play().catch(() => {});@@ -24048,7 +24048,7 @@ async function yre(e, t, n, r = {}) {ready: !1,updateStats: () => {}};- EC.set(l, y), y.updateStats = () => {+ DC.set(l, y), y.updateStats = () => {let n = y.chrome?.statsPanel;if (!n || n.hidden || !g()) return;let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = _C(), h = s ? rC(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;@@ -24104,11 +24104,11 @@ async function yre(e, t, n, r = {}) {n.innerHTML = `${L("gauge")}<span class="sr-only">加载速度</span><span>${ge(a)}</span>`;}, C = () => {let e = y.chrome?.netBadge;- !e || !e.isConnected || (e.hidden = !1, S(), OC && clearInterval(OC), OC = setInterval(S, 500));+ !e || !e.isConnected || (e.hidden = !1, S(), kC && clearInterval(kC), kC = setInterval(S, 500));}, w = () => {let e = y.chrome?.netBadge;- e && (kC && clearTimeout(kC), kC = setTimeout(() => {- e.hidden = !0, OC &&= (clearInterval(OC), null);+ e && (AC && clearTimeout(AC), AC = setTimeout(() => {+ e.hidden = !0, kC &&= (clearInterval(kC), null);}, 1400));};return l.on([@@ -24120,7 +24120,7 @@ async function yre(e, t, n, r = {}) {S(), w();}), l.on("error", () => {if (b && !x && !l.isDisposed()) {- x = !0, b = !1, l.src(mre(e)), n && l.play()?.catch(() => {});+ x = !0, b = !1, l.src(yC(e)), n && l.play()?.catch(() => {});return;}r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {@@ -24144,14 +24144,14 @@ async function yre(e, t, n, r = {}) {}), n && l.play()?.catch(() => {}));}).catch(() => {}), l;}-var bre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";-function jC(e, t = null) {- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", bre), e.querySelector(":scope > #playerStatsBtn")) return;+var yre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";+function MC(e, t = null) {+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", yre), e.querySelector(":scope > #playerStatsBtn")) return;let n = document.createElement("template");n.innerHTML = nre(), e.insertBefore(n.content, t);}-function MC(e, t) {- let n = EC.get(e);+function NC(e, t) {+ let n = DC.get(e);if (!n || e.isDisposed()) return () => {};let r = (e) => t.querySelector(`:scope > #${e}`), i = {statsButton: r("playerStatsBtn"),@@ -24163,14 +24163,14 @@ function MC(e, t) {if (a && o) {a.hidden = !n.ready;let e = () => {- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), DC &&= (clearInterval(DC), null));+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), OC &&= (clearInterval(OC), null));};a.onclick = () => {if (!o.hidden) {e();return;}- document.dispatchEvent(new CustomEvent(tC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), DC && clearInterval(DC), DC = setInterval(n.updateStats, 1e3);+ document.dispatchEvent(new CustomEvent(tC, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), OC && clearInterval(OC), OC = setInterval(n.updateStats, 1e3);};let t = (t) => {t.detail !== "stats" && e();@@ -24178,14 +24178,14 @@ function MC(e, t) {document.addEventListener(tC, t), s = () => document.removeEventListener(tC, t);}let c = e.el().querySelector("video"), l = c ? are(c) : () => {}, u = !0, d = () => {- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, AC()));+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, jC()));};return e.one("dispose", d), d;}-function NC(e, t) {- if (t.kind === "immerse") return vre(e, t);+function PC(e, t) {+ if (t.kind === "immerse") return _re(e, t);let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = VS(), c = t.chrome === !1 ? null : e.parentElement;- c && jC(c, e);+ c && MC(c, e);let l = { resume: t.resume ?? null };if (n === "follow") l = {...l,@@ -24205,16 +24205,16 @@ function NC(e, t) {method: "POST",body: JSON.stringify({ id: r.id })}).catch(() => {});- }, { once: !0 }), bC(r, e, {+ }, { once: !0 }), xC(r, e, {watched: "#watched",mark: "#mark",ratio: "#ratioTxt"});}let u = null, d = !1, f = () => {}, p = () => {- f(), !(!u || a?.(u)) && (qS() === u && (JS(null), AC()), dC(u));+ f(), !(!u || a?.(u)) && (qS() === u && (JS(null), jC()), dC(u));};- return yre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {+ return vre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {if (u = t, d) {p();return;@@ -24223,45 +24223,45 @@ function NC(e, t) {o?.(null);return;}- c && (f = MC(t, c)), n === "follow" && gre(r, e), o?.(t);+ c && (f = NC(t, c)), n === "follow" && hre(r, e), o?.(t);}), () => {d = !0, p();};}//#endregion//#region src/player/playback.ts-function PC(e) {+function FC(e) {e && (e.paused ? e.play()?.catch(() => {}) : e.pause());}-function xre(e, t) {+function bre(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/jav-artwork.ts-function FC(e) {+function IC(e) {return e === "thumbnail" ? "thumbnail" : "cover";}-function Sre(e, t) {- return e.is_jav && e.code && e.has_cover && (FC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+function xre(e, t) {+ return e.is_jav && e.code && e.has_cover && (IC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";}-var IC = .704;-function LC(e, t) {+var LC = .704;+function RC(e, t) {let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));return t && n.set("exclude_vertical", "1"), n.toString();}-var Cre = (e, t) => [+var Sre = (e, t) => ["catalog-grid","catalog",e,t-], wre = (e, t) => [+], Cre = (e, t) => ["catalog-grid","entity",e,t];-async function Tre(e, t, n, r, i) {+async function wre(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 W(`/api/items?${a}`, i), s = {@@ -24271,22 +24271,22 @@ async function Tre(e, t, n, r, i) {};return !t && !s.items.length && !r && (s.libraryEmpty = (await W("/api/items?limit=1&thumb=0", i)).total === 0), s;}-var Ere = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Dre = (e, t) => {+var Tre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ere = (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 RC(e) {- let t = LC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";+function zC(e) {+ let t = RC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";return {- queryKey: Cre(t, e.revision || 0),- queryFn: ({ pageParam: e, signal: i }) => Tre(t, e, n, r, i),+ queryKey: Sre(t, e.revision || 0),+ queryFn: ({ pageParam: e, signal: i }) => wre(t, e, n, r, i),initialPageParam: 0,- getNextPageParam: Ere(n)+ getNextPageParam: Tre(n)};}-function Ore(e) {+function Dre(e) {return {- queryKey: wre(e.entityKey || "", e.revision || 0),+ queryKey: Cre(e.entityKey || "", e.revision || 0),queryFn: async ({ pageParam: t, signal: n }) => {if (!e.fetchPage) return {items: [],@@ -24301,12 +24301,12 @@ function Ore(e) {};},initialPageParam: 0,- getNextPageParam: Dre+ getNextPageParam: Ere};}-async function kre(e, t) {+async function Ore(e, t) {if (e.mode !== "catalog") return;- let n = RC(e);+ let n = zC(e);await p.fetchInfiniteQuery({...n,queryFn: ({ pageParam: e }) => n.queryFn({@@ -24315,7 +24315,7 @@ async function kre(e, t) {})});}-function Are(e, t, n) {+function kre(e, t, n) {return n ? e.filter((e) => {let n = e.part_group?.key;if (n) {@@ -24330,24 +24330,24 @@ function Are(e, t, n) {return !0;}) : [...e];}-var zC = (e, t) => !!e && !!Sre(e, t);-function jre(e, t) {- let n = (e) => zC(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) => zC(e, t)) || e[e.length - 1];+var BC = (e, t) => !!e && !!xre(e, t);+function Are(e, t) {+ let n = (e) => BC(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) => BC(e, t)) || e[e.length - 1];}-function Mre(e, { collapse: t, mix: n, javImage: r }) {+function jre(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 = Are(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({+ let e = kre(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 = jre(e, r);+ let t = Are(e, r);t && l.splice(7, 0, {kind: "mix",seed: t@@ -24360,16 +24360,16 @@ function Mre(e, { collapse: t, mix: n, javImage: r }) {pageStarts: s};}-function Nre(e, t, n) {+function Mre(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 Pre(e, t) {+function Nre(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 Fre(e, t) {+function Pre(e, t) {let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;for (let t of n) r.push({start: i,@@ -24382,10 +24382,10 @@ function Fre(e, t) {strip: null}), r;}-function BC(e, t) {- VC((t) => t.id === e, t);-}function VC(e, t) {+ HC((t) => t.id === e, t);+}+function HC(e, t) {p.setQueriesData({queryKey: ["catalog-grid"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -24402,31 +24402,31 @@ function VC(e, t) {}//#endregion//#region src/react/item-detail/item-detail.ts-var HC = (e) => ["item", e], UC = (e) => [+var UC = (e) => ["item", e], WC = (e) => ["item-queue",e.kind,e.kind === "playlist" ? e.playlistId : e.seedId-], Ire = (e, t) => [+], Fre = (e, t) => ["item-related",e,t-], Lre = (e) => `/api/item?id=${e}`, Rre = (e, t) => `/api/related?id=${e}&limit=${t}`, WC = "/api/playlist", GC = "/api/feedback", KC = "/api/item-tag", qC = "/api/watch-later", JC = "/api/quality-goal", YC = "/api/preference", XC = class extends Error {};-async function ZC(e, t) {- let n = await W(Lre(e), t);- if (n.error) throw new XC(n.error);+], Ire = (e) => `/api/item?id=${e}`, Lre = (e, t) => `/api/related?id=${e}&limit=${t}`, GC = "/api/playlist", KC = "/api/feedback", qC = "/api/item-tag", JC = "/api/watch-later", YC = "/api/quality-goal", XC = "/api/preference", ZC = class extends Error {};+async function QC(e, t) {+ let n = await W(Ire(e), t);+ if (n.error) throw new ZC(n.error);return n;}-async function QC(e, t, n) {+async function $C(e, t, n) {if (e.kind === "mix") {- let r = e.seedId, [i, a] = await Promise.all([ZC(r, n), t.mixRelated(r)]);- return p.setQueryData(HC(i.id), i), {+ let r = e.seedId, [i, a] = await Promise.all([QC(r, n), t.mixRelated(r)]);+ return p.setQueryData(UC(i.id), i), {kind: "mix",seedId: r,title: `Mix · ${re(i, t.tagLabel)}`,items: [i, ...a.filter((e) => e.id !== i.id)]};}- if (e.kind === "playlist") return $C(await W(`${WC}?id=${e.playlistId}`, n));+ if (e.kind === "playlist") return ew(await W(`${GC}?id=${e.playlistId}`, n));let r = await W(`/api/${e.kind}?id=${e.seedId}`, n);if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");return {@@ -24436,19 +24436,19 @@ async function QC(e, t, n) {items: r.items};}-var $C = (e) => ({+var ew = (e) => ({kind: "playlist",playlistId: e.id,title: e.name,items: e.items || [],currentAssetId: e.current_asset_id-}), ew = (e) => e.disposal === "vanished";-function tw(e, t) {+}), tw = (e) => e.disposal === "vanished";+function nw(e, t) {if (e.kind === "mix") return t;- let n = e.kind === "playlist" ? e.items.filter((e) => !ew(e)) : e.items;+ let n = e.kind === "playlist" ? e.items.filter((e) => !tw(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 zre(e, t) {+function Rre(e, t) {if (t?.kind !== "parts") return e;let n = t.items.find((t) => t.id === e.id)?.part_label || "";return e.part_label === n ? e : {@@ -24456,15 +24456,15 @@ function zre(e, t) {part_label: n};}-async function Bre(e, t) {+async function zre(e, t) {let { queue: n, actions: r } = e, i = null, a = !1;if (n) {- let o = UC(n);+ let o = WC(n);try {let r = n.fresh ? void 0 : p.getQueryData(o);a = !r && n.kind === "mix", i = r || await p.fetchQuery({queryKey: o,- queryFn: () => QC(n, e.helpers, t),+ queryFn: () => $C(n, e.helpers, t),staleTime: 0});} catch (n) {@@ -24476,20 +24476,20 @@ async function Bre(e, t) {return;}}- let o = i ? tw(i, e.id) : e.id;+ let o = i ? nw(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 ? p.getQueryData(HC(o)) : void 0;+ let s, c = a && o === i?.seedId ? p.getQueryData(UC(o)) : void 0;try {s = c || await p.fetchQuery({- queryKey: HC(o),- queryFn: () => ZC(o, t),+ queryKey: UC(o),+ queryFn: () => QC(o, t),staleTime: 0});} catch (e) {- if (e instanceof XC) {+ if (e instanceof ZC) {r.redirect({ kind: "gone" });return;}@@ -24500,7 +24500,7 @@ async function Bre(e, t) {id: Number(s.follow_item_id)});}-function Vre(e) {+function Bre(e) {let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {let t = be(e.name);return !e.name || n.has(t) ? !1 : (n.add(t), !0);@@ -24522,42 +24522,42 @@ function Vre(e) {unowned: !i.length && !c.length && !String(e.creator || "").trim()};}-var nw = (e) => Math.min(Math.max(e || 0, 0), 100), rw = (e) => Math.round(nw(e) / 20), Hre = (e) => {- let t = rw(e);+var rw = (e) => Math.min(Math.max(e || 0, 0), 100), iw = (e) => Math.round(rw(e) / 20), Vre = (e) => {+ let t = iw(e);return t ? `${t} 星` : "未评分";-}, Ure = (e, t) => {+}, Hre = (e, t) => {let n = t * 20;return n === (e || 0) ? 0 : n;};-function Wre(e, t) {+function Ure(e, t) {let n = /* @__PURE__ */ new Map();return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {let r = be(t.tagLabel(e.k)), i = n.get(r);(!i || be(e.k) === r && be(i.k) !== r) && n.set(r, e);}), [...n.values()].slice(0, 40);}-var iw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), aw = (e, t) => ({+var aw = (e, t) => (e.tags || []).some((e) => be(e.k) === be(t)), ow = (e, t) => ({...e,tags: (e.tags || []).filter((e) => be(e.k) !== be(t))-}), ow = (e, t) => iw(e, t.k) ? e : {+}), sw = (e, t) => aw(e, t.k) ? e : {...e,tags: [...e.tags || [], t]-}, sw = "peach.recentTags";-function cw() {+}, cw = "peach.recentTags";+function lw() {try {- let e = JSON.parse(localStorage.getItem(sw) || "[]");+ let e = JSON.parse(localStorage.getItem(cw) || "[]");return Array.isArray(e) ? e.map(String) : [];} catch {return [];}}-function Gre(e) {+function Wre(e) {try {- let t = cw().filter((t) => be(t) !== be(e));- localStorage.setItem(sw, JSON.stringify([e, ...t].slice(0, 12)));+ let t = lw().filter((t) => be(t) !== be(e));+ localStorage.setItem(cw, JSON.stringify([e, ...t].slice(0, 12)));} catch {}}-function Kre(e, t, n) {+function Gre(e, t, n) {let r = be(e), i = new Map(t.map((e) => [be(e.k), e])), a = t.filter((e) => !r || be(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(be(e)) || {k: e,n: 0@@ -24568,73 +24568,73 @@ function Kre(e, t, n) {create: r && !s ? e.trim() : ""};}-var qre = {+var Kre = {中字: "subtitle",无码: "uncensored",无码破解: "cracked",有码: "censored"-}, Jre = {+}, qre = {mix: "Mix",parts: "分卷",editions: "版本",playlist: "播放列表"};-function Yre(e) {+function Jre(e) {let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;return {- title: Jre[e.kind],+ title: qre[e.kind],summary: e.kind === "editions" ? n : `${e.title} · ${n}`};}-var lw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Xre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(lw(e.part_label))}</small>` : "";-function Zre(e, t, n, r) {+var uw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Yre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${ge(uw(e.part_label))}</small>` : "";+function Xre(e, t, n, r) {let i = e.filter((e) => e !== t), a = i.indexOf(n);return i.splice(a + +!!r, 0, t), i;}-var Qre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);-function $re(e, t) {+var Zre = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);+function Qre(e, t) {return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";}-function eie(e) {+function $re(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 uw(e, t) {+function dw(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 tie = (e, t, n) => [+var eie = (e, t, n) => ["immerse-list",e,t,n];-function nie(e) {+function tie(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 rie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));-function iie(e, t = Math.random) {+var nie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));+function rie(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 aie(e, t) {- return iie(((await W(`/api/items?${e}`)).items || []).filter((e) => rie(e, t)));+async function iie(e, t) {+ return rie(((await W(`/api/items?${e}`)).items || []).filter((e) => nie(e, t)));}-var dw = (e) => p.ensureQueryData({- queryKey: HC(e),- queryFn: ({ signal: t }) => ZC(e, t)+var fw = (e) => p.ensureQueryData({+ queryKey: UC(e),+ queryFn: ({ signal: t }) => QC(e, t)});-function oie(e, t) {+function aie(e, t) {let n = new Set(e.map((e) => e.id));return e.concat(t.filter((e) => !n.has(e.id)));}-function sie(e) {+function oie(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,@@ -24643,59 +24643,59 @@ function sie(e) {ref: r && e.entity_refs?.[r]?.[0] || null};}-function cie(e, t, n) {+function sie(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 lie(e, t) {+function cie(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 uie = 15e3, fw = {+var lie = 15e3, pw = {open: !1,idle: !1,wide: !1,loading: null,shown: null-}, pw = null, mw = null, hw = null, gw = null, _w = fw, vw = 0, yw = 0, bw = 0, xw = "", Sw = [], Cw = 0, ww = !1, Tw = !1, Ew = null, Dw = /* @__PURE__ */ new Set(), Ow = "", kw = null, Aw = 0, jw = null, Mw = !1;-function Nw() {- if (!pw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");- return pw;-}-function die() {- return (!mw || !hw?.isConnected) && (mw?.unmount(), hw = document.createElement("div"), hw.dataset.immerseHost = "", document.body.append(hw), mw = (0, ip.createRoot)(hw)), mw;-}+}, mw = null, hw = null, gw = null, _w = null, vw = pw, yw = 0, bw = 0, xw = 0, Sw = "", Cw = [], ww = 0, Tw = !1, Ew = !1, Dw = null, Ow = /* @__PURE__ */ new Set(), kw = "", Aw = null, jw = 0, Mw = null, Nw = !1;function Pw() {- let e = die();- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(kie, { view: _w }) })));+ if (!mw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");+ return mw;+}+function uie() {+ return (!hw || !gw?.isConnected) && (hw?.unmount(), gw = document.createElement("div"), gw.dataset.immerseHost = "", document.body.append(gw), hw = (0, ip.createRoot)(gw)), hw;}function Fw() {- let e = kw ? iC(kw.id) : 0;- return e ? `${Ow} · ${oC(e)}` : Ow;+ let e = uie();+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Oie, { view: vw }) })));+}+function Iw() {+ let e = Aw ? iC(Aw.id) : 0;+ return e ? `${kw} · ${oC(e)}` : kw;}-function Iw(e, t = null) {- if (clearInterval(Aw), Aw = 0, e === null) {- _w = {- ..._w,+function Lw(e, t = null) {+ if (clearInterval(jw), jw = 0, e === null) {+ vw = {+ ...vw,loading: null- }, Pw();+ }, Fw();return;}- Ow = e, kw = t, _w = {- ..._w,- loading: Fw()- }, Pw(), Aw = window.setInterval(() => {- kw = Sw[Cw] ?? null, _w = {- ..._w,- loading: Fw()- }, Pw();+ kw = e, Aw = t, vw = {+ ...vw,+ loading: Iw()+ }, Fw(), jw = window.setInterval(() => {+ Aw = Cw[ww] ?? null, vw = {+ ...vw,+ loading: Iw()+ }, Fw();}, 500);}-function fie(e) {+function die(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), gw.track.append(t);+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), _w.track.append(t);let r = fC(), i = () => {}, a = {el: t,video: n,@@ -24707,250 +24707,250 @@ function fie(e) {}),leave: i};- return Dw.add(a), a;+ return Ow.add(a), a;}-function pie(e, t) {+function fie(e, t) {return new Promise((n) => {- e.release = NC(e.video, {+ e.release = PC(e.video, {kind: "immerse",item: t,session: e.session,onLoaded: n,onEnded: () => {- _w.open && Uw(1);+ vw.open && Ww(1);}}), e.gone.then(n);});}-function Lw(e) {- !e || e.disposed || (e.disposed = !0, Dw.delete(e), e.leave(), e.release(), e.el.remove(), Ew === e && (Ew = null));+function Rw(e) {+ !e || e.disposed || (e.disposed = !0, Ow.delete(e), e.leave(), e.release(), e.el.remove(), Dw === e && (Dw = null));}-var Rw = [+var zw = ["loadeddata","canplay","error"];-function mie(e) {+function pie(e) {let { video: t } = e;return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {let r = !1, i = () => {- r || (r = !0, clearTimeout(a), Rw.forEach((e) => t.removeEventListener(e, i)), n());+ r || (r = !0, clearTimeout(a), zw.forEach((e) => t.removeEventListener(e, i)), n());};- Rw.forEach((e) => t.addEventListener(e, i, { once: !0 }));- let a = setTimeout(i, uie);+ zw.forEach((e) => t.addEventListener(e, i, { once: !0 }));+ let a = setTimeout(i, lie);e.gone.then(i);});}-function zw(e) {- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = cie(e.videoWidth, e.videoHeight, n);+function Bw(e) {+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = sie(e.videoWidth, e.videoHeight, n);r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;}-var Bw = () => gw?.track.querySelectorAll("video").forEach(zw);-function hie(e) {- delete e.dataset.fit, e.readyState >= 1 ? zw(e) : e.addEventListener("loadedmetadata", () => zw(e), { once: !0 });+var Vw = () => _w?.track.querySelectorAll("video").forEach(Bw);+function mie(e) {+ delete e.dataset.fit, e.readyState >= 1 ? Bw(e) : e.addEventListener("loadedmetadata", () => Bw(e), { once: !0 });}-function gie(e) {- _w = {- ..._w,+function hie(e) {+ vw = {+ ...vw,wide: e- }, Pw(), Bw();+ }, Fw(), Vw();}-var Vw = () => {- let e = xw;+var Hw = () => {+ let e = Sw;return p.fetchQuery({- queryKey: tie(e, yw, bw),- queryFn: () => aie(e, Nw().sourceOffline),+ queryKey: eie(e, bw, xw),+ queryFn: () => iie(e, Pw().sourceOffline),staleTime: Infinity});};-function _ie(e, t) {+function gie(e, t) {let n = () => we(e.duration) || we(t.duration);e.addEventListener("timeupdate", () => {let t = n();- t && gw && (gw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);- }), jw = {+ t && _w && (_w.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);+ }), Mw = {video: e,duration: n};}-async function Hw(e = 0) {- let t = Sw[Cw];- if (!t || ww) return;- let n = vw;- Nw().route(t.id), ww = !0, Iw(e ? "切换中…" : "加载中…", t);+async function Uw(e = 0) {+ let t = Cw[ww];+ if (!t || Tw) return;+ let n = yw;+ Pw().route(t.id), Tw = !0, Lw(e ? "切换中…" : "加载中…", t);let r = null;try {- if (await dw(t.id).catch((e) => {- if (!(e instanceof XC)) throw e;- }), n !== vw) return;- let i = Ew, a = !!(e && i);- a || Lw(i);- let o = fie(a ? e > 0 ? 100 : -100 : 0);- if (r = o, hie(o.video), await pie(o, t), await mie(o), o.disposed || (gie(lie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {+ if (await fw(t.id).catch((e) => {+ if (!(e instanceof ZC)) throw e;+ }), n !== yw) return;+ let i = Dw, a = !!(e && i);+ a || Rw(i);+ let o = die(a ? e > 0 ? 100 : -100 : 0);+ if (r = o, mie(o.video), await fie(o, t), await pie(o), o.disposed || (hie(cie(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)), Lw(i), o.el.style.transform = ""), o.disposed)) return;- Ew = o, r = null, o.video.play()?.catch(() => {}), _w = {- ..._w,+ })), await new Promise((e) => setTimeout(e, 210)), Rw(i), o.el.style.transform = ""), o.disposed)) return;+ Dw = o, r = null, o.video.play()?.catch(() => {}), vw = {+ ...vw,idle: !1,shown: {item: t,- index: Cw,- length: Sw.length+ index: ww,+ length: Cw.length}- }, _ie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Iw(null);+ }, gie(o.video, t), G("/api/play", { id: t.id }).catch(() => {}), Lw(null);} catch {- Lw(r), n === vw && Iw(null);+ Rw(r), n === yw && Lw(null);} finally {- n === vw && (ww = !1);+ n === yw && (Tw = !1);}}-async function Uw(e) {- if (ww || !_w.open) return;- let t = vw;- if (Cw += e, Iw("切换中…", Sw[Cw] ?? null), Cw >= Sw.length - 3 && !Tw) {- Tw = !0;+async function Ww(e) {+ if (Tw || !vw.open) return;+ let t = yw;+ if (ww += e, Lw("切换中…", Cw[ww] ?? null), ww >= Cw.length - 3 && !Ew) {+ Ew = !0;try {- bw += 1;- let e = await Vw();- t === vw && (Sw = oie(Sw, e));+ xw += 1;+ let e = await Hw();+ t === yw && (Cw = aie(Cw, e));} catch {} finally {- Tw = !1;+ Ew = !1;}}- t === vw && (Cw >= Sw.length && (Cw = 0), Cw < 0 && (Cw = Sw.length - 1), await Hw(e));+ t === yw && (ww >= Cw.length && (ww = 0), ww < 0 && (ww = Cw.length - 1), await Uw(e));}-async function vie(e) {- let t = ++vw;- Ww(), yw += 1, bw = 0, xw = nie(Nw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), _w = {- ..._w,+async function _ie(e) {+ let t = ++yw;+ Gw(), bw += 1, xw = 0, Sw = tie(Pw().filters()), p.removeQueries({ queryKey: ["immerse-list"] }), vw = {+ ...vw,open: !0,idle: !0,shown: null- }, document.body.setAttribute("data-immerse-open", ""), Iw("加载内容…");+ }, document.body.setAttribute("data-immerse-open", ""), Lw("加载内容…");try {- let n = await Vw();+ let n = await Hw();if (e && !n.some((t) => t.id === e)) {- let t = await dw(e).catch((e) => {- if (e instanceof XC) return null;+ let t = await fw(e).catch((e) => {+ if (e instanceof ZC) return null;throw e;});t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);}- if (t !== vw) return;- if (Sw = n, !Sw.length) {- Gw(), Nw().warn("当前筛选下没有可直接播放的内容");+ if (t !== yw) return;+ if (Cw = n, !Cw.length) {+ Kw(), Pw().warn("当前筛选下没有可直接播放的内容");return;}- Cw = Math.max(0, Sw.findIndex((t) => t.id === e)), await Hw();+ ww = Math.max(0, Cw.findIndex((t) => t.id === e)), await Uw();} catch {- if (t !== vw) return;- Iw(null), Gw();+ if (t !== yw) return;+ Lw(null), Kw();}}-function Ww() {- clearInterval(Aw), Aw = 0, Zw(), Yw = null, jw = null, Mw = !1, [...Dw].forEach(Lw), ww = !1;-}function Gw() {- _w.open && (vw++, Ww(), _w = fw, document.body.removeAttribute("data-immerse-open"), Pw(), Nw().closed());+ clearInterval(jw), jw = 0, Qw(), Xw = null, Mw = null, Nw = !1, [...Ow].forEach(Rw), Tw = !1;+}+function Kw() {+ vw.open && (yw++, Gw(), vw = pw, document.body.removeAttribute("data-immerse-open"), Fw(), Pw().closed());}-var Kw = 0, qw = null, Jw = 0, Yw = null, Xw = 0;-function Zw() {- clearTimeout(Kw), Kw = 0, qw = null;+var qw = 0, Jw = null, Yw = 0, Xw = null, Zw = 0;+function Qw() {+ clearTimeout(qw), qw = 0, Jw = null;}-function yie(e) {- let t = Ew?.video;+function vie(e) {+ let t = Dw?.video;if (!t) return;let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();- if (qw && qw.side === n && r - qw.at <= 280) {- Zw(), xre(t, Nw().seekSeconds() * n);+ if (Jw && Jw.side === n && r - Jw.at <= 280) {+ Qw(), bre(t, Pw().seekSeconds() * n);return;}- Kw && (clearTimeout(Kw), Kw = 0, PC(t)), qw = {+ qw && (clearTimeout(qw), qw = 0, FC(t)), Jw = {side: n,at: r- }, Kw = window.setTimeout(() => {- Kw = 0, qw = null, _w.open && PC(Ew?.video);+ }, qw = window.setTimeout(() => {+ qw = 0, Jw = null, vw.open && FC(Dw?.video);}, 280);}-function bie() {- Date.now() < Jw || PC(Ew?.video);-}-var Qw = (e) => gw?.bar.toggleAttribute("data-scrubbing", e);-function $w(e) {- gw && (gw.progress.style.width = `${(e * 100).toFixed(2)}%`);+function yie() {+ Date.now() < Yw || FC(Dw?.video);}+var $w = (e) => _w?.bar.toggleAttribute("data-scrubbing", e);function eT(e) {+ _w && (_w.progress.style.width = `${(e * 100).toFixed(2)}%`);+}+function tT(e) {let t = e.target;if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {- Yw = null;+ Xw = null;return;}- let n = Ew?.video;- Yw = {+ let n = Dw?.video;+ Xw = {x: e.touches[0].clientX,y: e.touches[0].clientY,axis: "",from: n && n.currentTime || 0};}-function tT(e) {- if (!Yw || e.touches.length !== 1) return;- let t = e.touches[0].clientX - Yw.x, n = e.touches[0].clientY - Yw.y;- if (!Yw.axis) {+function nT(e) {+ if (!Xw || e.touches.length !== 1) return;+ let t = e.touches[0].clientX - Xw.x, n = e.touches[0].clientY - Xw.y;+ if (!Xw.axis) {if (Math.abs(t) < 12 && Math.abs(n) < 12) return;- Yw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Yw.axis === "x" && Qw(!0);+ Xw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Xw.axis === "x" && $w(!0);}- if (Yw.axis !== "x") return;- let r = Ew?.video, i = r && r.duration || 0;- i && (e.preventDefault(), Yw.to = Math.min(i, Math.max(0, Yw.from + t / window.innerWidth * i)), $w(Yw.to / i));+ if (Xw.axis !== "x") return;+ let r = Dw?.video, i = r && r.duration || 0;+ i && (e.preventDefault(), Xw.to = Math.min(i, Math.max(0, Xw.from + t / window.innerWidth * i)), eT(Xw.to / i));}-function nT(e) {- if (!Yw) return;- let t = Yw;- if (Yw = null, Jw = Date.now() + 700, Qw(!1), t.axis === "x") {- let e = Ew?.video;+function rT(e) {+ if (!Xw) return;+ let t = Xw;+ if (Xw = null, Yw = Date.now() + 700, $w(!1), t.axis === "x") {+ let e = Dw?.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;if (Math.abs(i) > 60) {- Zw(), Uw(i > 0 ? 1 : -1);+ Qw(), Ww(i > 0 ? 1 : -1);return;}- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), yie(n.clientX));+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), vie(n.clientX));}-function rT() {- Yw = null, Qw(!1);+function iT() {+ Xw = null, $w(!1);}-function iT(e) {+function aT(e) {let t = Date.now();- t - Xw < 260 || (Xw = t, Uw(e.deltaY > 0 ? 1 : -1));+ t - Zw < 260 || (Zw = t, Ww(e.deltaY > 0 ? 1 : -1));}-function aT(e) {- let t = gw.bar.getBoundingClientRect();+function oT(e) {+ let t = _w.bar.getBoundingClientRect();return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));}+function bie(e) {+ Mw?.duration() && (Nw = !0, $w(!0), e.currentTarget.setPointerCapture(e.pointerId), eT(oT(e)), e.preventDefault());+}function xie(e) {- jw?.duration() && (Mw = !0, Qw(!0), e.currentTarget.setPointerCapture(e.pointerId), $w(aT(e)), e.preventDefault());+ Nw && eT(oT(e));}function Sie(e) {- Mw && $w(aT(e));+ if (!Nw) return;+ Nw = !1, $w(!1);+ let t = Mw?.duration();+ Mw && t && (Mw.video.currentTime = t * oT(e));}-function Cie(e) {- if (!Mw) return;- Mw = !1, Qw(!1);- let t = jw?.duration();- jw && t && (jw.video.currentTime = t * aT(e));+function Cie() {+ Nw = !1, $w(!1);}-function wie() {- Mw = !1, Qw(!1);-}-async function oT(e, t) {- let n = await G(GC, {+async function sT(e, t) {+ let n = await G(KC, {id: e,kind: t- }), r = p.getQueryData(HC(e));- if (!r) return BC(e, {+ }), r = p.getQueryData(UC(e));+ if (!r) return VC(e, {feedback: n.feedback ?? void 0,o_count: n.o_count}), n;@@ -24959,7 +24959,7 @@ async function oT(e, t) {feedback: n.feedback ?? void 0,o_count: n.o_count};- return p.setQueryData(HC(e), i), BC(e, {+ return p.setQueryData(UC(e), i), VC(e, {feedback: i.feedback,disposal: i.disposal,watch_later: i.watch_later,@@ -24967,7 +24967,7 @@ async function oT(e, t) {o_count: i.o_count}), n;}-var Tie = [+var wie = [{kind: "dislike",glyph: "thumbs-down",@@ -24984,31 +24984,31 @@ var Tie = [label: "记一次高潮"}];-function sT(e) {+function cT(e) {return wS({- queryKey: HC(e ?? 0),- queryFn: ({ signal: t }) => ZC(e, t),+ queryKey: UC(e ?? 0),+ queryFn: ({ signal: t }) => QC(e, t),enabled: e != null,staleTime: Infinity}).data;}-function Eie({ kind: e, glyph: t, label: n, id: r }) {- let i = sT(r), a = DS({+function Tie({ kind: e, glyph: t, label: n, id: r }) {+ let i = cT(r), a = DS({mutationFn: async (t) => {- let n = p.getQueryData(HC(t))?.feedback || null;+ let n = p.getQueryData(UC(t))?.feedback || null;return {- result: await oT(t, e),+ result: await sT(t, e),before: n};},onSuccess: ({ result: t, before: n }, r) => {- Nw().toast(uw(e, t), { undo: async () => {- e === "o" ? await oT(r, "o-undo") : (t.feedback && await oT(r, t.feedback), n && await oT(r, n));+ Pw().toast(dw(e, t), { undo: async () => {+ e === "o" ? await sT(r, "o-undo") : (t.feedback && await sT(r, t.feedback), n && await sT(r, n));} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {- Uw(1);+ Ww(1);}, 260);},- onError: (e) => Nw().failure("更新反馈", e)+ onError: (e) => Pw().failure("更新反馈", e)}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;return /* @__PURE__ */ (0, B.jsxs)("div", {"data-immerse-action": "",@@ -25039,11 +25039,11 @@ function Eie({ kind: e, glyph: t, label: n, id: r }) {})]});}-function Die({ shown: e }) {- let t = e?.item ?? null, n = sT(t?.id ?? null), r = n ? sie(n) : null, i = Nw(), a = (e) => {- e.preventDefault(), n && (Gw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());+function Eie({ shown: e }) {+ let t = e?.item ?? null, n = cT(t?.id ?? null), r = n ? oie(n) : null, i = Pw(), a = (e) => {+ e.preventDefault(), n && (Kw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());}, o = () => {- t && (Gw(), i.openItem(t.id));+ t && (Kw(), i.openItem(t.id));}, s = r ? k(r.name, r.ref, de(r.name), r.kind || "performer") : "";return /* @__PURE__ */ (0, B.jsxs)("div", {"data-immerse-ui": "",@@ -25072,18 +25072,18 @@ function Die({ shown: e }) {})]});}-var Oie = { __html: Qe("媒体加载中") };-function kie({ view: e }) {+var Die = { __html: Qe("媒体加载中") };+function Oie({ view: e }) {let t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null);(0, R.useLayoutEffect)(() => {let e = t.current;- return gw = {+ return _w = {root: e,track: n.current,bar: r.current,progress: i.current- }, e.addEventListener("touchstart", eT, { passive: !0 }), e.addEventListener("touchmove", tT, { passive: !1 }), e.addEventListener("touchend", nT, { passive: !1 }), e.addEventListener("touchcancel", rT, { passive: !0 }), e.addEventListener("wheel", iT, { passive: !0 }), () => {- e.removeEventListener("touchstart", eT), e.removeEventListener("touchmove", tT), e.removeEventListener("touchend", nT), e.removeEventListener("touchcancel", rT), e.removeEventListener("wheel", iT), gw = null;+ }, e.addEventListener("touchstart", tT, { passive: !0 }), e.addEventListener("touchmove", nT, { passive: !1 }), e.addEventListener("touchend", rT, { passive: !1 }), e.addEventListener("touchcancel", iT, { passive: !0 }), e.addEventListener("wheel", aT, { passive: !0 }), () => {+ e.removeEventListener("touchstart", tT), e.removeEventListener("touchmove", nT), e.removeEventListener("touchend", rT), e.removeEventListener("touchcancel", iT), e.removeEventListener("wheel", aT), _w = null;};}, []);let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;@@ -25100,10 +25100,10 @@ function kie({ view: e }) {children: [/* @__PURE__ */ (0, B.jsx)("div", {ref: n,"data-immerse-track": "",- onClick: bie+ onClick: yie}), /* @__PURE__ */ (0, B.jsx)("div", {"data-immerse-actions": "",- children: Tie.map((e) => /* @__PURE__ */ (0, B.jsx)(Eie, {+ children: wie.map((e) => /* @__PURE__ */ (0, B.jsx)(Tie, {...e,id: a}, e.kind))@@ -25116,7 +25116,7 @@ function kie({ view: e }) {hidden: e.loading === null,children: [/* @__PURE__ */ (0, B.jsx)("span", {"data-immerse-spinner": "",- dangerouslySetInnerHTML: Oie+ dangerouslySetInnerHTML: Die}), /* @__PURE__ */ (0, B.jsx)("span", { children: e.loading ?? "" })]}),/* @__PURE__ */ (0, B.jsx)("button", {@@ -25124,7 +25124,7 @@ function kie({ view: e }) {"data-immerse-close": "",title: "关闭","aria-label": "关闭",- onClick: Gw,+ onClick: Kw,children: /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 24 24",children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-x" })@@ -25133,71 +25133,71 @@ function kie({ view: e }) {/* @__PURE__ */ (0, B.jsx)("div", {ref: r,"data-immerse-bar": "",- onPointerDown: xie,- onPointerMove: Sie,- onPointerUp: Cie,- onPointerCancel: wie,+ onPointerDown: bie,+ onPointerMove: xie,+ onPointerUp: Sie,+ onPointerCancel: Cie,children: /* @__PURE__ */ (0, B.jsx)("i", { ref: i })}),- /* @__PURE__ */ (0, B.jsx)(Die, { shown: e.shown })+ /* @__PURE__ */ (0, B.jsx)(Eie, { shown: e.shown })]});}-var Aie = {- open: vie,- close: Gw,- isOpen: () => _w.open,- activeVideo: () => _w.open ? Ew?.video ?? null : null+var kie = {+ open: _ie,+ close: Kw,+ isOpen: () => vw.open,+ activeVideo: () => vw.open ? Dw?.video ?? null : null};-function jie(e) {- if (!_w.open) return;+function Aie(e) {+ if (!vw.open) return;let t = e.target;- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Uw(1), e.key === "ArrowUp" && Uw(-1));+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Ww(1), e.key === "ArrowUp" && Ww(-1));}-function Mie(e) {- let t = !pw;- return pw = e, Pw(), t && (document.addEventListener("keydown", jie), addEventListener("resize", () => {- _w.open && Bw();+function jie(e) {+ let t = !mw;+ return mw = e, Fw(), t && (document.addEventListener("keydown", Aie), addEventListener("resize", () => {+ vw.open && Vw();}), addEventListener("pagehide", () => {- Dw.forEach((e) => hC(e.session));- })), Aie;+ Ow.forEach((e) => hC(e.session));+ })), kie;}//#endregion//#region src/manage-header.ts-var Nie = {+var Mie = {"/junk-files": "垃圾文件","/duplicates": "重复文件","/review": "人工复核","/trash": "回收站","/quality-goals": "高清版","/scraping": "来源和凭证"-}, Pie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Fie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;-function Iie(e) {+}, Nie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Pie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;+function Fie(e) {let t = e.sections.find(([t]) => t === e.section);if (!t) return null;- let n = Nie[e.path] ?? "";+ let n = Mie[e.path] ?? "";return {title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],crumb: n,- compact: Pie.has(e.path) || e.section === "configuration",+ compact: Nie.has(e.path) || e.section === "configuration",lede: e.section === "trash" ? e.trash ? {kind: "count",- text: Fie(e.trash),+ text: Pie(e.trash),total: e.trash.total} : { kind: "skeleton" } : { kind: "none" }};}-var Lie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";+var Iie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";//#endregion//#region src/react/settings-panel/icon.tsx-function cT({ name: e }) {+function lT({ name: e }) {return /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })});}-function Rie({ name: e }) {+function Lie({ name: e }) {return /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",@@ -25206,29 +25206,29 @@ function Rie({ name: e }) {}//#endregion//#region src/react/manage-header/manage-header-island.tsx-var lT = null, uT = null, dT = null;-function zie() {- let e = lT, t = dT;- !e || !uT || !t || (0, rp.flushSync)(() => uT.render(/* @__PURE__ */ (0, B.jsx)(Hie, {+var uT = null, dT = null, fT = null;+function Rie() {+ let e = uT, t = fT;+ !e || !dT || !t || (0, rp.flushSync)(() => dT.render(/* @__PURE__ */ (0, B.jsx)(Vie, {host: e,props: t})));}-var Bie = { render(e) {- dT = e, zie();+var zie = { render(e) {+ fT = e, Rie();} };-function Vie(e) {- return lT = e, dT = null, e.root.replaceChildren(), uT = (0, ip.createRoot)(e.root), Bie;+function Bie(e) {+ return uT = e, fT = null, e.root.replaceChildren(), dT = (0, ip.createRoot)(e.root), zie;}-function Hie({ host: e, props: t }) {- let n = Iie(t);+function Vie({ host: e, props: t }) {+ let n = Fie(t);return n ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(Uie, {+ /* @__PURE__ */ (0, B.jsx)(Hie, {host: e,section: t.section,menu: t.menu}),- n.crumb ? /* @__PURE__ */ (0, B.jsx)(Wie, {+ n.crumb ? /* @__PURE__ */ (0, B.jsx)(Uie, {host: e,label: n.crumb}) : null,@@ -25237,29 +25237,29 @@ function Hie({ host: e, props: t }) {"data-compact": n.compact ? "" : void 0,children: n.title}),- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Gie, {+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, B.jsx)(Wie, {host: e,lede: n.lede})] }) : null;}-var fT = null;-function pT(e, t, n) {+var pT = null;+function mT(e, t, n) {e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);}-function Uie({ host: e, section: t, menu: n }) {+function Hie({ host: e, section: t, menu: n }) {let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = () => {let e = r.current, t = i.current;if (!e || !t) return;let n = e.querySelector("button[aria-pressed=\"true\"]");- n && !n.offsetWidth || (pT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (fT = {+ n && !n.offsetWidth || (mT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (pT = {x: n.offsetLeft,width: n.offsetWidth}));};return (0, R.useLayoutEffect)(() => {let e = r.current, t = i.current;- fT ? pT(t, fT.x, fT.width) : a();+ pT ? mT(t, pT.x, pT.width) : a();let n = 0, o = requestAnimationFrame(() => {t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);}), s = new ResizeObserver(a);@@ -25282,7 +25282,7 @@ function Uie({ host: e, section: t, menu: n }) {"aria-pressed": a,"aria-current": a ? "page" : void 0,onClick: () => e.openManage(n),- children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: i }), /* @__PURE__ */ (0, B.jsx)("span", { children: r })]}, n);}), /* @__PURE__ */ (0, B.jsx)("span", {ref: i,@@ -25292,7 +25292,7 @@ function Uie({ host: e, section: t, menu: n }) {})});}-function Wie({ host: e, label: t }) {+function Uie({ host: e, label: t }) {return /* @__PURE__ */ (0, B.jsx)("nav", {"data-manage-crumb": "","aria-label": "Breadcrumb",@@ -25302,20 +25302,20 @@ function Wie({ host: e, label: t }) {t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());},children: "数据管理"- }), /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {+ }), /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, B.jsx)("li", {"aria-current": "true",children: /* @__PURE__ */ (0, B.jsx)("span", { children: t })})] })});}-function Gie({ host: e, lede: t }) {+function Wie({ host: e, lede: t }) {return /* @__PURE__ */ (0, B.jsx)("p", {className: "mono","data-manage-lede": "",children: t.kind === "skeleton" ? /* @__PURE__ */ (0, B.jsx)("span", {"data-trash-lede-skeletons": "",- dangerouslySetInnerHTML: { __html: Lie }- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {+ dangerouslySetInnerHTML: { __html: Iie }+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gie, { text: t.text }), t.total ? /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-empty-trash": "","data-danger": "",@@ -25325,7 +25325,7 @@ function Gie({ host: e, lede: t }) {}) : null] })});}-function Kie({ text: e }) {+function Gie({ text: e }) {let t = (0, R.useRef)(null);return (0, R.useLayoutEffect)(() => {$e(t.current, e);@@ -25336,7 +25336,7 @@ function Kie({ text: e }) {}//#endregion//#region node_modules/@remixicon/react/index.mjs-var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+var Kie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25344,7 +25344,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25352,7 +25352,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25360,7 +25360,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25368,7 +25368,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25376,7 +25376,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), Jie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25384,7 +25384,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25392,7 +25392,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), Yie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25400,7 +25400,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25408,7 +25408,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), Xie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25416,7 +25416,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25424,7 +25424,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25432,7 +25432,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25440,7 +25440,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25448,7 +25448,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25456,7 +25456,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), Zie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25464,7 +25464,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25472,7 +25472,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25480,7 +25480,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25488,7 +25488,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25496,7 +25496,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25504,7 +25504,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25512,7 +25512,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25520,7 +25520,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25528,7 +25528,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25536,7 +25536,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25544,7 +25544,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25552,7 +25552,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25560,7 +25560,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25568,7 +25568,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25576,7 +25576,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25584,7 +25584,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25592,7 +25592,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25600,7 +25600,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25608,7 +25608,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25616,7 +25616,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25624,7 +25624,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), MT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25632,7 +25632,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25640,7 +25640,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25648,7 +25648,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25656,7 +25656,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25664,7 +25664,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), NT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), PT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25672,7 +25672,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), PT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), FT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25680,7 +25680,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25688,7 +25688,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25696,7 +25696,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {+}, R.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R.createElement("svg", {viewBox: "0 0 24 24",xmlns: "http://www.w3.org/2000/svg",width: t,@@ -25704,100 +25704,100 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfill: e,...r,className: "remixicon " + (n || "")-}, R.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" })), vae = (e, t) => {+}, R.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" })), _ae = (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;-}, yae = (e, t) => ({+}, vae = (e, t) => ({classGroupId: e,validator: t-}), FT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({+}), IT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({nextPart: e,validators: t,classGroupId: n-}), IT = "-", LT = [], bae = "arbitrary..", xae = (e) => {- let t = Cae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;+}), LT = "-", RT = [], yae = "arbitrary..", bae = (e) => {+ let t = Sae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;return {getClassGroupId: (e) => {- if (e.startsWith("[") && e.endsWith("]")) return Sae(e);- let n = e.split(IT);- return RT(n, +(n[0] === "" && n.length > 1), t);+ if (e.startsWith("[") && e.endsWith("]")) return xae(e);+ let n = e.split(LT);+ return zT(n, +(n[0] === "" && n.length > 1), t);},getConflictingClassGroupIds: (e, t) => {if (t) {let t = r[e], i = n[e];- return t ? i ? vae(i, t) : t : i || LT;+ return t ? i ? _ae(i, t) : t : i || RT;}- return n[e] || LT;+ return n[e] || RT;}};-}, RT = (e, t, n) => {+}, zT = (e, t, n) => {if (e.length - t === 0) return n.classGroupId;let r = e[t], i = n.nextPart.get(r);if (i) {- let n = RT(e, t + 1, i);+ let n = zT(e, t + 1, i);if (n) return n;}let a = n.validators;if (a === null) return;- let o = t === 0 ? e.join(IT) : e.slice(t).join(IT), s = a.length;+ let o = t === 0 ? e.join(LT) : e.slice(t).join(LT), s = a.length;for (let e = 0; e < s; e++) {let t = a[e];if (t.validator(o)) return t.classGroupId;}-}, Sae = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {+}, xae = (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 ? bae + r : void 0;-})(), Cae = (e) => {+ return r ? yae + r : void 0;+})(), Sae = (e) => {let { theme: t, classGroups: n } = e;- return wae(n, t);-}, wae = (e, t) => {- let n = FT();+ return Cae(n, t);+}, Cae = (e, t) => {+ let n = IT();for (let r in e) {let i = e[r];- zT(i, n, r, t);+ BT(i, n, r, t);}return n;-}, zT = (e, t, n, r) => {+}, BT = (e, t, n, r) => {let i = e.length;for (let a = 0; a < i; a++) {let i = e[a];- Tae(i, t, n, r);+ wae(i, t, n, r);}-}, Tae = (e, t, n, r) => {+}, wae = (e, t, n, r) => {if (typeof e == "string") {- Eae(e, t, n);+ Tae(e, t, n);return;}if (typeof e == "function") {- Dae(e, t, n, r);+ Eae(e, t, n, r);return;}- Oae(e, t, n, r);-}, Eae = (e, t, n) => {- let r = e === "" ? t : BT(t, e);+ Dae(e, t, n, r);+}, Tae = (e, t, n) => {+ let r = e === "" ? t : VT(t, e);r.classGroupId = n;-}, Dae = (e, t, n, r) => {- if (kae(e)) {- zT(e(r), t, n, r);+}, Eae = (e, t, n, r) => {+ if (Oae(e)) {+ BT(e(r), t, n, r);return;}- t.validators === null && (t.validators = []), t.validators.push(yae(n, e));-}, Oae = (e, t, n, r) => {+ t.validators === null && (t.validators = []), t.validators.push(vae(n, e));+}, Dae = (e, t, n, r) => {let i = Object.entries(e), a = i.length;for (let e = 0; e < a; e++) {let [a, o] = i[e];- zT(o, BT(t, a), n, r);+ BT(o, VT(t, a), n, r);}-}, BT = (e, t) => {- let n = e, r = t.split(IT), i = r.length;+}, VT = (e, t) => {+ let n = e, r = t.split(LT), i = r.length;for (let e = 0; e < i; e++) {let t = r[e], i = n.nextPart.get(t);- i || (i = FT(), n.nextPart.set(t, i)), n = i;+ i || (i = IT(), n.nextPart.set(t, i)), n = i;}return n;-}, kae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Aae = (e) => {+}, Oae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, kae = (e) => {if (e < 1) return {get: () => void 0,set: () => {}@@ -25815,19 +25815,19 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Re in n ? n[e] = t : i(e, t);}};-}, VT = "!", HT = ":", jae = [], UT = (e, t, n, r, i) => ({+}, HT = "!", UT = ":", Aae = [], WT = (e, t, n, r, i) => ({modifiers: e,hasImportantModifier: t,baseClassName: n,maybePostfixModifierPosition: r,isExternal: i-}), Mae = (e) => {+}), jae = (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 === HT) {+ if (o === UT) {t.push(e.slice(i, s)), i = s + 1;continue;}@@ -25839,13 +25839,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Ro === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;}let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;- s.endsWith(VT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(VT) && (c = s.slice(1), l = !0);+ s.endsWith(HT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(HT) && (c = s.slice(1), l = !0);let u = a && a > i ? a - i : void 0;- return UT(t, l, c, u);+ return WT(t, l, c, u);};if (t) {- let e = t + HT, n = r;- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : UT(jae, !1, t, void 0, !0);+ let e = t + UT, n = r;+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : WT(Aae, !1, t, void 0, !0);}if (n) {let e = r;@@ -25855,7 +25855,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R});}return r;-}, Nae = (e) => {+}, Mae = (e) => {let t = /* @__PURE__ */ new Map();return e.orderSensitiveModifiers.forEach((e, n) => {t.set(e, 1e6 + n);@@ -25867,18 +25867,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R}return r.length > 0 && (r.sort(), n.push(...r)), n;};-}, Pae = (e) => ({- cache: Aae(e.cacheSize),- parseClassName: Mae(e),- sortModifiers: Nae(e),- postfixLookupClassGroupIds: Fae(e),- ...xae(e)-}), Fae = (e) => {+}, Nae = (e) => ({+ cache: kae(e.cacheSize),+ parseClassName: jae(e),+ sortModifiers: Mae(e),+ postfixLookupClassGroupIds: Pae(e),+ ...bae(e)+}), Pae = (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;-}, Iae = /\s+/, Lae = (e, t) => {- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Iae), l = "";+}, Fae = /\s+/, Iae = (e, t) => {+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Fae), 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) {@@ -25902,7 +25902,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R}h = !1;}- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + VT : _, y = v + g;+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + HT : _, y = v + g;if (s.indexOf(y) > -1) continue;s.push(y);let b = i(g, h);@@ -25913,34 +25913,34 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rl = t + (l.length > 0 ? " " + l : l);}return l;-}, Rae = (...e) => {+}, Lae = (...e) => {let t = 0, n, r, i = "";- for (; t < e.length;) (n = e[t++]) && (r = WT(n)) && (i && (i += " "), i += r);+ for (; t < e.length;) (n = e[t++]) && (r = GT(n)) && (i && (i += " "), i += r);return i;-}, WT = (e) => {+}, GT = (e) => {if (typeof e == "string") return e;let t, n = "";- for (let r = 0; r < e.length; r++) e[r] && (t = WT(e[r])) && (n && (n += " "), n += t);+ for (let r = 0; r < e.length; r++) e[r] && (t = GT(e[r])) && (n && (n += " "), n += t);return n;-}, GT = (e, ...t) => {- let n, r, i, a, o = (o) => (n = Pae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {+}, KT = (e, ...t) => {+ let n, r, i, a, o = (o) => (n = Nae(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 = Lae(e, n);+ let a = Iae(e, n);return i(e, a), a;};- return a = o, (...e) => a(Rae(...e));-}, zae = [], KT = (e) => {- let t = (t) => t[e] || zae;+ return a = o, (...e) => a(Lae(...e));+}, Rae = [], qT = (e) => {+ let t = (t) => t[e] || Rae;return t.isThemeGetter = !0, t.themeKey = e, t;-}, qT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, JT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Bae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Vae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hae = /\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$/, Uae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Wae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, YT = (e) => Bae.test(e), XT = (e) => !!e && !Number.isNaN(Number(e)), ZT = (e) => !!e && Number.isInteger(Number(e)), QT = (e) => e.endsWith("%") && XT(e.slice(0, -1)), $T = (e) => Vae.test(e), eE = () => !0, Kae = (e) => Hae.test(e) && !Uae.test(e), tE = () => !1, qae = (e) => Wae.test(e), Jae = (e) => Gae.test(e), Yae = (e) => !K(e) && !q(e), Xae = (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)), Zae = (e) => lE(e, pE, tE), K = (e) => qT.test(e), nE = (e) => lE(e, mE, Kae), rE = (e) => lE(e, aoe, XT), Qae = (e) => lE(e, gE, eE), $ae = (e) => lE(e, hE, tE), iE = (e) => lE(e, dE, tE), eoe = (e) => lE(e, fE, Jae), aE = (e) => lE(e, _E, qae), q = (e) => JT.test(e), oE = (e) => uE(e, mE), toe = (e) => uE(e, hE), sE = (e) => uE(e, dE), noe = (e) => uE(e, pE), roe = (e) => uE(e, fE), cE = (e) => uE(e, _E, !0), ioe = (e) => uE(e, gE, !0), lE = (e, t, n) => {- let r = qT.exec(e);- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;-}, uE = (e, t, n = !1) => {+}, JT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, YT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, zae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Bae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vae = /\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$/, Hae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Uae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, XT = (e) => zae.test(e), ZT = (e) => !!e && !Number.isNaN(Number(e)), QT = (e) => !!e && Number.isInteger(Number(e)), $T = (e) => e.endsWith("%") && ZT(e.slice(0, -1)), eE = (e) => Bae.test(e), tE = () => !0, Gae = (e) => Vae.test(e) && !Hae.test(e), nE = () => !1, Kae = (e) => Uae.test(e), qae = (e) => Wae.test(e), Jae = (e) => !K(e) && !q(e), Yae = (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)), Xae = (e) => uE(e, mE, nE), K = (e) => JT.test(e), rE = (e) => uE(e, hE, Gae), iE = (e) => uE(e, ioe, ZT), Zae = (e) => uE(e, _E, tE), Qae = (e) => uE(e, gE, nE), aE = (e) => uE(e, fE, nE), $ae = (e) => uE(e, pE, qae), oE = (e) => uE(e, vE, Kae), q = (e) => YT.test(e), sE = (e) => dE(e, hE), eoe = (e) => dE(e, gE), cE = (e) => dE(e, fE), toe = (e) => dE(e, mE), noe = (e) => dE(e, pE), lE = (e) => dE(e, vE, !0), roe = (e) => dE(e, _E, !0), uE = (e, t, n) => {let r = JT.exec(e);+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;+}, dE = (e, t, n = !1) => {+ let r = YT.exec(e);return r ? r[1] ? t(r[1]) : n : !1;-}, dE = (e) => e === "position" || e === "percentage", fE = (e) => e === "image" || e === "url", pE = (e) => e === "length" || e === "size" || e === "bg-size", mE = (e) => e === "length", aoe = (e) => e === "number", hE = (e) => e === "family-name", gE = (e) => e === "number" || e === "weight", _E = (e) => e === "shadow", vE = () => {- let e = KT("color"), t = KT("font"), n = KT("text"), r = KT("font-weight"), i = KT("tracking"), a = KT("leading"), o = KT("breakpoint"), s = KT("container"), c = KT("spacing"), l = KT("radius"), u = KT("shadow"), d = KT("inset-shadow"), f = KT("text-shadow"), p = KT("drop-shadow"), m = KT("blur"), h = KT("perspective"), g = KT("aspect"), _ = KT("ease"), v = KT("animate"), y = () => [+}, fE = (e) => e === "position" || e === "percentage", pE = (e) => e === "image" || e === "url", mE = (e) => e === "length" || e === "size" || e === "bg-size", hE = (e) => e === "length", ioe = (e) => e === "number", gE = (e) => e === "family-name", _E = (e) => e === "number" || e === "weight", vE = (e) => e === "shadow", yE = () => {+ let e = qT("color"), t = qT("font"), n = qT("text"), r = qT("font-weight"), i = qT("tracking"), a = qT("leading"), o = qT("breakpoint"), s = qT("container"), c = qT("spacing"), l = qT("radius"), u = qT("shadow"), d = qT("inset-shadow"), f = qT("text-shadow"), p = qT("drop-shadow"), m = qT("blur"), h = qT("perspective"), g = qT("aspect"), _ = qT("ease"), v = qT("animate"), y = () => ["auto","avoid","all",@@ -25982,12 +25982,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK,c], T = () => [- YT,+ XT,"full","auto",...w()], E = () => [- ZT,+ QT,"none","subgrid",q,@@ -25996,15 +25996,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"auto",{ span: ["full",- ZT,+ QT,q,K] },- ZT,+ QT,q,K], O = () => [- ZT,+ QT,"auto",q,K@@ -26034,7 +26034,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"center-safe","end-safe"], M = () => ["auto", ...w()], N = () => [- YT,+ XT,"auto","full","dvw",@@ -26049,7 +26049,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R...w()], ee = () => [s,- YT,+ XT,"screen","full","dvw",@@ -26060,7 +26060,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"fit",...w()], te = () => [- YT,+ XT,"screen","full","lh",@@ -26077,8 +26077,8 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK], F = () => [...b(),- sE,- iE,+ cE,+ aE,{ position: [q, K] }], ne = () => ["no-repeat", { repeat: ["",@@ -26090,13 +26090,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"auto","cover","contain",- noe,- Zae,+ toe,+ Xae,{ size: [q, K] }], ie = () => [- QT,- oE,- nE+ $T,+ sE,+ rE], ae = () => ["","none",@@ -26106,9 +26106,9 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK], oe = () => ["",- XT,- oE,- nE+ ZT,+ sE,+ rE], se = () => ["solid","dashed",@@ -26132,10 +26132,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"color","luminosity"], le = () => [- XT,- QT,- sE,- iE+ ZT,+ $T,+ cE,+ aE], ue = () => ["","none",@@ -26144,20 +26144,20 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK], de = () => ["none",- XT,+ ZT,q,K], fe = () => ["none",- XT,+ ZT,q,K], I = () => [- XT,+ ZT,q,K], pe = () => [- YT,+ XT,"full",...w()];@@ -26171,17 +26171,17 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"bounce"],aspect: ["video"],- blur: [$T],- breakpoint: [$T],- color: [eE],- container: [$T],- "drop-shadow": [$T],+ blur: [eE],+ breakpoint: [eE],+ color: [tE],+ container: [eE],+ "drop-shadow": [eE],ease: ["in","out","in-out"],- font: [Yae],+ font: [Jae],"font-weight": ["thin","extralight",@@ -26193,7 +26193,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"extrabold","black"],- "inset-shadow": [$T],+ "inset-shadow": [eE],leading: ["none","tight",@@ -26210,11 +26210,11 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"distant","none"],- radius: [$T],- shadow: [$T],- spacing: ["px", XT],- text: [$T],- "text-shadow": [$T],+ radius: [eE],+ shadow: [eE],+ spacing: ["px", ZT],+ text: [eE],+ "text-shadow": [eE],tracking: ["tighter","tight",@@ -26228,7 +26228,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Raspect: [{ aspect: ["auto","square",- YT,+ XT,K,q,g@@ -26241,9 +26241,9 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rq,K] }],- "container-named": [Xae],+ "container-named": [Yae],columns: [{ columns: [- XT,+ ZT,"auto",K,q,@@ -26343,13 +26343,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"collapse"],z: [{ z: [- ZT,+ QT,"auto",q,K] }],basis: [{ basis: [- YT,+ XT,"full","auto",s,@@ -26367,8 +26367,8 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"wrap-reverse"] }],flex: [{ flex: [+ ZT,XT,- YT,"auto","initial","none",@@ -26376,18 +26376,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],grow: [{ grow: ["",- XT,+ ZT,q,K] }],shrink: [{ shrink: ["",- XT,+ ZT,q,K] }],order: [{ order: [- ZT,+ QT,"first","last","none",@@ -26499,15 +26499,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"font-size": [{ text: ["base",n,- oE,- nE+ sE,+ rE] }],"font-smoothing": ["antialiased", "subpixel-antialiased"],"font-style": ["italic", "not-italic"],"font-weight": [{ font: [r,- ioe,- Qae+ roe,+ Zae] }],"font-stretch": [{ "font-stretch": ["ultra-condensed",@@ -26519,12 +26519,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"expanded","extra-expanded","ultra-expanded",- QT,+ $T,K] }],"font-family": [{ font: [- toe,- $ae,+ eoe,+ Qae,t] }],"font-features": [{ "font-features": [K] }],@@ -26540,10 +26540,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK] }],"line-clamp": [{ "line-clamp": [- XT,+ ZT,"none",q,- rE+ iE] }],leading: [{ leading: ["none",@@ -26581,15 +26581,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R],"text-decoration-style": [{ decoration: [...se(), "wavy"] }],"text-decoration-thickness": [{ decoration: [- XT,+ ZT,"from-font","auto",q,- nE+ rE] }],"text-decoration-color": [{ decoration: P() }],"underline-offset": [{ "underline-offset": [- XT,+ ZT,"auto",q,K@@ -26613,7 +26613,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],indent: [{ indent: w() }],"tab-size": [{ tab: [- ZT,+ QT,q,K] }],@@ -26691,7 +26691,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"l","tl"] },- ZT,+ QT,q,K],@@ -26702,13 +26702,13 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R],conic: ["",- ZT,+ QT,q,K]},- roe,- eoe+ noe,+ $ae] }],"bg-color": [{ bg: P() }],"gradient-from-pos": [{ from: ie() }],@@ -26775,15 +26775,15 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"hidden"] }],"outline-offset": [{ "outline-offset": [- XT,+ ZT,q,K] }],"outline-w": [{ outline: ["",- XT,- oE,- nE+ ZT,+ sE,+ rE] }],"outline-color": [{ outline: P() }],shadow: [{ shadow: [@@ -26791,33 +26791,33 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"inner","none",u,- cE,- aE+ lE,+ oE] }],"shadow-color": [{ shadow: P() }],"inset-shadow": [{ "inset-shadow": ["none",d,- cE,- aE+ lE,+ oE] }],"inset-shadow-color": [{ "inset-shadow": P() }],"ring-w": [{ ring: oe() }],"ring-w-inset": ["ring-inset"],"ring-color": [{ ring: P() }],- "ring-offset-w": [{ "ring-offset": [XT, nE] }],+ "ring-offset-w": [{ "ring-offset": [ZT, rE] }],"ring-offset-color": [{ "ring-offset": P() }],"inset-ring-w": [{ "inset-ring": oe() }],"inset-ring-color": [{ "inset-ring": P() }],"text-shadow": [{ "text-shadow": ["none",f,- cE,- aE+ lE,+ oE] }],"text-shadow-color": [{ "text-shadow": P() }],opacity: [{ opacity: [- XT,+ ZT,q,K] }],@@ -26841,7 +26841,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"intersect","exclude"] }],- "mask-image-linear-pos": [{ "mask-linear": [XT] }],+ "mask-image-linear-pos": [{ "mask-linear": [ZT] }],"mask-image-linear-from-pos": [{ "mask-linear-from": le() }],"mask-image-linear-to-pos": [{ "mask-linear-to": le() }],"mask-image-linear-from-color": [{ "mask-linear-from": P() }],@@ -26881,7 +26881,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Rfarthest: ["side", "corner"]}] }],"mask-image-radial-pos": [{ "mask-radial-at": b() }],- "mask-image-conic-pos": [{ "mask-conic": [XT] }],+ "mask-image-conic-pos": [{ "mask-conic": [ZT] }],"mask-image-conic-from-pos": [{ "mask-conic-from": le() }],"mask-image-conic-to-pos": [{ "mask-conic-to": le() }],"mask-image-conic-from-color": [{ "mask-conic-from": P() }],@@ -26916,12 +26916,12 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],blur: [{ blur: ue() }],brightness: [{ brightness: [- XT,+ ZT,q,K] }],contrast: [{ contrast: [- XT,+ ZT,q,K] }],@@ -26929,35 +26929,35 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"","none",p,- cE,- aE+ lE,+ oE] }],"drop-shadow-color": [{ "drop-shadow": P() }],grayscale: [{ grayscale: ["",- XT,+ ZT,q,K] }],"hue-rotate": [{ "hue-rotate": [- XT,+ ZT,q,K] }],invert: [{ invert: ["",- XT,+ ZT,q,K] }],saturate: [{ saturate: [- XT,+ ZT,q,K] }],sepia: [{ sepia: ["",- XT,+ ZT,q,K] }],@@ -26969,45 +26969,45 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],"backdrop-blur": [{ "backdrop-blur": ue() }],"backdrop-brightness": [{ "backdrop-brightness": [- XT,+ ZT,q,K] }],"backdrop-contrast": [{ "backdrop-contrast": [- XT,+ ZT,q,K] }],"backdrop-grayscale": [{ "backdrop-grayscale": ["",- XT,+ ZT,q,K] }],"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [- XT,+ ZT,q,K] }],"backdrop-invert": [{ "backdrop-invert": ["",- XT,+ ZT,q,K] }],"backdrop-opacity": [{ "backdrop-opacity": [- XT,+ ZT,q,K] }],"backdrop-saturate": [{ "backdrop-saturate": [- XT,+ ZT,q,K] }],"backdrop-sepia": [{ "backdrop-sepia": ["",- XT,+ ZT,q,K] }],@@ -27030,7 +27030,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],"transition-behavior": [{ transition: ["normal", "discrete"] }],duration: [{ duration: [- XT,+ ZT,"initial",q,K@@ -27043,7 +27043,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => RK] }],delay: [{ delay: [- XT,+ ZT,q,K] }],@@ -27088,7 +27088,7 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"translate-z": [{ "translate-z": pe() }],"translate-none": ["translate-none"],zoom: [{ zoom: [- ZT,+ QT,q,K] }],@@ -27232,10 +27232,10 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R] }],fill: [{ fill: ["none", ...P()] }],"stroke-w": [{ stroke: [- XT,- oE,- nE,- rE+ ZT,+ sE,+ rE,+ iE] }],stroke: [{ stroke: ["none", ...P()] }],"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]@@ -27493,16 +27493,16 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"selection"]};-}, ooe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (yE(e, "cacheSize", t), yE(e, "prefix", n), yE(e, "experimentalParseClassName", r), bE(e.theme, a.theme), bE(e.classGroups, a.classGroups), bE(e.conflictingClassGroups, a.conflictingClassGroups), bE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), yE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), yE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), xE(e.theme, i.theme), xE(e.classGroups, i.classGroups), xE(e.conflictingClassGroups, i.conflictingClassGroups), xE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), SE(e, i, "postfixLookupClassGroups"), SE(e, i, "orderSensitiveModifiers"), e), yE = (e, t, n) => {+}, aoe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (bE(e, "cacheSize", t), bE(e, "prefix", n), bE(e, "experimentalParseClassName", r), xE(e.theme, a.theme), xE(e.classGroups, a.classGroups), xE(e.conflictingClassGroups, a.conflictingClassGroups), xE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), bE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), bE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), SE(e.theme, i.theme), SE(e.classGroups, i.classGroups), SE(e.conflictingClassGroups, i.conflictingClassGroups), SE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), CE(e, i, "postfixLookupClassGroups"), CE(e, i, "orderSensitiveModifiers"), e), bE = (e, t, n) => {n !== void 0 && (e[t] = n);-}, bE = (e, t) => {- if (t) for (let n in t) yE(e, n, t[n]);}, xE = (e, t) => {- if (t) for (let n in t) SE(e, t, n);-}, SE = (e, t, n) => {+ if (t) for (let n in t) bE(e, n, t[n]);+}, SE = (e, t) => {+ if (t) for (let n in t) CE(e, t, n);+}, CE = (e, t, n) => {let r = t[n];r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);-}, soe = (e, ...t) => typeof e == "function" ? GT(vE, e, ...t) : GT(() => ooe(vE(), e), ...t), coe = [+}, ooe = (e, ...t) => typeof e == "function" ? KT(yE, e, ...t) : KT(() => aoe(yE(), e), ...t), soe = ["large-title","display-1","display-2",@@ -27516,18 +27516,18 @@ var qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => R"body-2","caption-1","caption-2"-], loe = [+], coe = ["regular","medium","semibold","bold"-], CE = soe({ extend: { classGroups: { "font-size": [{ text: coe.flatMap((e) => loe.map((t) => `${e}-${t}`)) }] } } });-function wE(e) {+], wE = ooe({ extend: { classGroups: { "font-size": [{ text: soe.flatMap((e) => coe.map((t) => `${e}-${t}`)) }] } } });+function TE(e) {return e;}//#endregion//#region src/react/boardui/components/base/badges/chip.tsx-var TE = wE({+var EE = TE({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",@@ -27546,16 +27546,16 @@ var TE = wE({soft: "bg-background-secondary-default text-text-secondary"}});-function EE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {+function DE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {return /* @__PURE__ */ (0, B.jsx)("span", {ref: r,- className: CE(TE.base, TE.variant[e], TE.color[t], n),+ className: wE(EE.base, EE.variant[e], EE.color[t], n),...i});}//#endregion//#region src/react/boardui/components/base/buttons/button.tsx-var DE = wE({+var OE = TE({base: ["inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden","font-sans select-none cursor-pointer",@@ -27614,40 +27614,40 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadireturn /* @__PURE__ */ (0, B.jsxs)("button", {ref: c,type: s,- className: CE(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),+ className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),...l,children: [r ? /* @__PURE__ */ (0, B.jsx)(r, {- className: DE.icon[t],+ className: OE.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {- className: DE.label[t],+ className: OE.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {- className: DE.icon[t],+ className: OE.icon[t],"aria-hidden": !0}) : null]});}-function OE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {+function kE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {return /* @__PURE__ */ (0, B.jsxs)("a", {ref: s,- className: CE(DE.base, DE.size[t], DE.variant[e], n && DE.iconOnlySize[t], o),+ className: wE(OE.base, OE.size[t], OE.variant[e], n && OE.iconOnlySize[t], o),...c,children: [r ? /* @__PURE__ */ (0, B.jsx)(r, {- className: DE.icon[t],+ className: OE.icon[t],"aria-hidden": !0}) : null,!n && a != null && /* @__PURE__ */ (0, B.jsx)("span", {- className: DE.label[t],+ className: OE.label[t],children: a}),!n && i ? /* @__PURE__ */ (0, B.jsx)(i, {- className: DE.icon[t],+ className: OE.icon[t],"aria-hidden": !0}) : null]@@ -27655,47 +27655,47 @@ function OE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead}//#endregion//#region src/react/components/card.tsx-var uoe = "min-w-0", doe = {+var loe = "min-w-0", uoe = {filled: "bg-background-secondary-default",outlined: "border border-separator-border bg-background-primary-default",raised: "bg-background-primary-default"-}, foe = {+}, doe = {default: "rounded-2xl shadow-card",chart: "rounded-2-5xl",surface: "rounded-surface",plain: "rounded-2xl"-}, poe = {+}, foe = {line: "border border-border-button-default",soft: "border border-separator-border"-}, moe = {+}, poe = {none: "",default: "p-5"-}, hoe = "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", goe = "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 kE(e = {}) {+}, moe = "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", hoe = "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 AE(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 [- uoe,- doe[t],- foe[s],- moe[n],- a ? poe[a] : "",- r ? hoe : "",- i ? goe : "",+ loe,+ uoe[t],+ doe[s],+ poe[n],+ a ? foe[a] : "",+ r ? moe : "",+ i ? hoe : "",o ?? ""].filter(Boolean).join(" ");}//#endregion//#region src/react/components/empty-state.tsx-var _oe = {+var goe = {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 AE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {+function jE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {let a = i === "page";return /* @__PURE__ */ (0, B.jsxs)("div", {"data-empty-state": "",- className: `flex flex-col items-center gap-2 text-center ${_oe[i]}`,+ className: `flex flex-col items-center gap-2 text-center ${goe[i]}`,children: [a ? /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,@@ -27725,7 +27725,7 @@ function AE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {}//#endregion//#region src/react/components/loading-dots.tsx-function jE({ label: e, inline: t = !1 }) {+function ME({ label: e, inline: t = !1 }) {let n = /* @__PURE__ */ (0, B.jsxs)("span", {"aria-hidden": !0,className: "inline-flex items-center gap-1",@@ -27791,7 +27791,7 @@ function Y({ tone: e, title: t, action: n, extra: r, children: i }) {}//#endregion//#region src/react/components/page.tsx-function ME({ children: e }) {+function NE({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("div", {className: "mx-auto flex w-full max-w-board flex-col gap-8",children: e@@ -27799,21 +27799,21 @@ function ME({ children: e }) {}//#endregion//#region src/react/components/progress.tsx-var NE = 100, voe = .4;-function PE({ label: e, value: t, max: n = 100, stops: r = [] }) {- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * NE;+var PE = 100, _oe = .4;+function FE({ label: e, value: t, max: n = 100, stops: r = [] }) {+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * PE;return /* @__PURE__ */ (0, B.jsxs)("svg", {role: "progressbar","aria-label": e,"aria-valuemin": 0,"aria-valuemax": n,"aria-valuenow": t,- viewBox: `0 0 ${NE} 1`,+ viewBox: `0 0 ${PE} 1`,preserveAspectRatio: "none",className: "h-1.5 w-full overflow-hidden rounded-full",children: [/* @__PURE__ */ (0, B.jsx)("rect", {- width: NE,+ width: PE,height: 1,className: "fill-background-tertiary-default"}),@@ -27824,7 +27824,7 @@ function PE({ label: e, value: t, max: n = 100, stops: r = [] }) {}),r.map((e) => /* @__PURE__ */ (0, B.jsx)("rect", {x: a(e),- width: voe,+ width: _oe,height: 1,className: "fill-background-secondary-default"}, e))@@ -27841,7 +27841,7 @@ function X(e) {}//#endregion//#region src/react/settings/use-action.ts-function FE(e = "") {+function IE(e = "") {let t = (0, R.useRef)(null), [n, r] = (0, R.useState)(""), [i, a] = (0, R.useState)(e);(0, R.useEffect)(() => () => t.current?.abort(), []);async function o(e, n, i, o) {@@ -27867,12 +27867,12 @@ function FE(e = "") {}//#endregion//#region node_modules/react-aria-components/dist/private/utils.mjs-var IE = Symbol("default");-function LE({ values: e, children: t }) {+var LE = Symbol("default");+function RE({ values: e, children: t }) {for (let [n, r] of e) t = /*#__PURE__*/ R.createElement(n.Provider, { value: r }, t);return t;}-function RE(e) {+function zE(e) {let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;return (0, R.useMemo)(() => {let e, l, u;@@ -27906,11 +27906,11 @@ function RE(e) {c]);}-function zE(e, t) {+function BE(e, t) {let n = (0, R.useContext)(e);if (t === null) return null;if (n && typeof n == "object" && "slots" in n && n.slots) {- let e = t || IE;+ let e = t || LE;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}.`);@@ -27919,8 +27919,8 @@ function zE(e, t) {}return n;}-function BE(e, t, n) {- let { ref: r, ...i } = zE(n, e.slot) || {}, a = Rh((0, R.useMemo)(() => yh(t, r), [t, r])), o = H(i, e);+function VE(e, t, n) {+ let { ref: r, ...i } = BE(n, e.slot) || {}, a = Rh((0, R.useMemo)(() => yh(t, r), [t, r])), o = H(i, e);return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {let n = typeof i.style == "function" ? i.style(t) : i.style, r = {...t.defaultStyle,@@ -27938,7 +27938,7 @@ function BE(e, t, n) {...e.style}), [o, a];}-function VE(e = !0) {+function HE(e = !0) {let [t, n] = (0, R.useState)(e), r = (0, R.useRef)(!1), i = (0, R.useCallback)((e) => {r.current = !0, n(!!e);}, []);@@ -27946,12 +27946,12 @@ function VE(e = !0) {r.current || n(!1);}, []), [i, t];}-function HE(e) {+function UE(e) {let t = /^(data-.*)$/, n = {};for (let r in e) t.test(r) || (n[r] = e[r]);return n;}-function yoe(e, t, n) {+function voe(e, t, n) {let { render: r, ...i } = t, a = (0, R.useRef)(null), o = (0, R.useMemo)(() => yh(n, a), [n, a]);qp(() => {}, [e, r]);let s = {@@ -27960,19 +27960,19 @@ function yoe(e, t, n) {};return r ? r(s, void 0) : /*#__PURE__*/ R.createElement(e, s);}-var UE = {}, WE = new Proxy({}, { get(e, t) {+var WE = {}, GE = new Proxy({}, { get(e, t) {if (typeof t != "string") return;- let n = UE[t];- return n || (n = /*#__PURE__*/ (0, R.forwardRef)(yoe.bind(null, t)), UE[t] = n), n;-} }), GE = /*#__PURE__*/ (0, R.createContext)(null), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = /*#__PURE__*/ (0, R.createContext)(null), JE = {+ let n = WE[t];+ return n || (n = /*#__PURE__*/ (0, R.forwardRef)(voe.bind(null, t)), WE[t] = n), n;+} }), KE = /*#__PURE__*/ (0, R.createContext)(null), qE = /*#__PURE__*/ (0, R.createContext)(null), JE = /*#__PURE__*/ (0, R.createContext)(null), YE = {CollectionRoot({ collection: e, renderDropIndicator: t }) {- return YE(e, null, t);+ return XE(e, null, t);},CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {- return YE(e, t, n);+ return XE(e, t, n);}};-function YE(e, t, n) {+function XE(e, t, n) {return gp({items: t ? e.getChildren(t.key) : e,dependencies: [n],@@ -27983,11 +27983,11 @@ function YE(e, t, n) {type: "item",key: t.key,dropPosition: "before"- }), r, boe(e, t, n));+ }), r, yoe(e, t, n));}});}-function boe(e, t, n) {+function yoe(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);@@ -28006,24 +28006,24 @@ function boe(e, t, n) {}return s;}-var XE = /*#__PURE__*/ (0, R.createContext)(JE);-function ZE(e) {+var ZE = /*#__PURE__*/ (0, R.createContext)(YE);+function QE(e) {return (0, R.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);}//#endregion//#region node_modules/react-aria-components/dist/private/Label.mjs-var QE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, QE);- let { elementType: n = "label", ...r } = e, i = WE[n];+var $E = /*#__PURE__*/ (0, R.createContext)({}), boe = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, $E);+ let { elementType: n = "label", ...r } = e, i = GE[n];return /*#__PURE__*/ R.createElement(i, {className: "react-aria-Label",...r,ref: t});-}), Soe = /*#__PURE__*/ (0, R.createContext)(null), $E = /*#__PURE__*/ (0, R.createContext)({}), eD = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, $E);+}), xoe = /*#__PURE__*/ (0, R.createContext)(null), eD = /*#__PURE__*/ (0, R.createContext)({}), tD = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, eD);let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = jee(e, t);- i = woe(i, r);+ i = Coe(i, r);let { focusProps: o, isFocused: s, isFocusVisible: c } = cy(e), { hoverProps: l, isHovered: u } = fy({...e,isDisabled: e.isDisabled || r@@ -28034,7 +28034,7 @@ var QE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Gh(functionisFocusVisible: c,isDisabled: e.isDisabled || !1,isPending: r ?? !1- }, f = RE({+ }, f = zE({...e,values: d,defaultClassName: "react-aria-Button"@@ -28051,7 +28051,7 @@ var QE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Gh(functionp]);let _ = jg(e, { global: !0 });- return delete _.onClick, /*#__PURE__*/ R.createElement(WE.button, {+ return delete _.onClick, /*#__PURE__*/ R.createElement(GE.button, {...H(_, f, i, o, l),type: i.type === "submit" && r ? "button" : i.type,id: p,@@ -28065,62 +28065,62 @@ var QE = /*#__PURE__*/ (0, R.createContext)({}), xoe = /*#__PURE__*/ Gh(function"data-focused": s || void 0,"data-pending": r || void 0,"data-focus-visible": c || void 0- }, /*#__PURE__*/ R.createElement(Soe.Provider, { value: { id: m } }, f.children));-}), Coe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;-function woe(e, t) {+ }, /*#__PURE__*/ R.createElement(xoe.Provider, { value: { id: m } }, f.children));+}), Soe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;+function Coe(e, t) {if (t) {- for (let t in e) t.startsWith("on") && !Coe.test(t) && (e[t] = void 0);+ for (let t in e) t.startsWith("on") && !Soe.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 tD = /*#__PURE__*/ (0, R.createContext)({}), nD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, tD);- let { children: n, level: r = 3, className: i, ...a } = e, o = WE[`h${r}`];+var nD = /*#__PURE__*/ (0, R.createContext)({}), rD = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, nD);+ let { children: n, level: r = 3, className: i, ...a } = e, o = GE[`h${r}`];return /*#__PURE__*/ R.createElement(o, {...a,ref: t,className: i ?? "react-aria-Heading"}, n);-}), rD = /*#__PURE__*/ (0, R.createContext)({}), Toe = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, rD);- let { elementType: n = "span", ...r } = e, i = WE[n];+}), iD = /*#__PURE__*/ (0, R.createContext)({}), woe = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, iD);+ let { elementType: n = "span", ...r } = e, i = GE[n];return /*#__PURE__*/ R.createElement(i, {className: "react-aria-Text",...r,ref: t});-}), iD = /*#__PURE__*/ (0, R.createContext)(null), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null), Eoe = /*#__PURE__*/ (0, R.createContext)(null), cD = /*#__PURE__*/ (0, R.createContext)(null);-function Doe(e, t) {- let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Eoe), a = Rh((0, R.useMemo)(() => yh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {- ...HE(e),+}), aD = /*#__PURE__*/ (0, R.createContext)(null), oD = /*#__PURE__*/ (0, R.createContext)(null), sD = /*#__PURE__*/ (0, R.createContext)(null), cD = /*#__PURE__*/ (0, R.createContext)(null), Toe = /*#__PURE__*/ (0, R.createContext)(null), lD = /*#__PURE__*/ (0, R.createContext)(null);+function Eoe(e, t) {+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useContext)(Toe), a = Rh((0, R.useMemo)(() => yh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {+ ...UE(e),children: typeof e.children == "function" || e.children,value: e.value,validationBehavior: r};return [i ? ete(o, i, a) : R_(o, U_(e), a), a];}-var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+var Doe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = BE(r, t, oD);- let [i, a] = Doe(e, n);- return /*#__PURE__*/ R.createElement(cD.Provider, { value: {+ [e, t] = VE(r, t, sD);+ let [i, a] = Eoe(e, n);+ return /*#__PURE__*/ R.createElement(lD.Provider, { value: {...i,inputRef: a,defaultClassName: "react-aria-Checkbox",isIndeterminate: e.isIndeterminate,isRequired: e.isRequired- } }, /*#__PURE__*/ R.createElement(koe, {+ } }, /*#__PURE__*/ R.createElement(Ooe, {...e,ref: t}));-}), koe = /*#__PURE__*/ (0, R.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, R.useContext)(cD), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = fy({+}), Ooe = /*#__PURE__*/ (0, R.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, R.useContext)(lD), { isFocused: p, isFocusVisible: m, focusProps: h } = cy(), g = a || o, { hoverProps: _, isHovered: v } = fy({...e,isDisabled: g- }), y = RE({+ }), y = zE({...e,defaultClassName: u,values: {@@ -28136,7 +28136,7 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {isRequired: f || !1}}), b = jg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(WE.label, {+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {...H(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -28154,8 +28154,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {...H(r, h),ref: l})), y.children);-}), lD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, lD);+}), uD = /*#__PURE__*/ (0, R.createContext)({}), koe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, uD);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 } = fy({@@ -28163,7 +28163,7 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {onHoverChange: o,onHoverEnd: s,isDisabled: n- }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = RE({+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = zE({...e,values: {isHovered: u,@@ -28174,7 +28174,7 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Group"});- return /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(GE.div, {...H(c, p, l),...m,ref: t,@@ -28187,18 +28187,18 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {"data-invalid": r || void 0,"data-readonly": i || void 0}, m.children);-}), uD = /*#__PURE__*/ (0, R.createContext)({}), joe = (e) => {+}), dD = /*#__PURE__*/ (0, R.createContext)({}), Aoe = (e) => {let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;return i;-}, Moe = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, uD);+}, joe = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, dD);let { hoverProps: n, isHovered: r } = fy({...e,isDisabled: e.disabled}), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({isTextInput: !0,autoFocus: e.autoFocus- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = RE({+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = zE({...e,values: {isHovered: r,@@ -28209,8 +28209,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {},defaultClassName: "react-aria-Input"});- return /*#__PURE__*/ R.createElement(WE.input, {- ...H(joe(e), o, n),+ return /*#__PURE__*/ R.createElement(GE.input, {+ ...H(Aoe(e), o, n),...c,ref: t,"data-focused": i || void 0,@@ -28219,8 +28219,8 @@ var Ooe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {"data-focus-visible": a || void 0,"data-invalid": s || void 0});-}), dD = {};-dD = {+}), fD = {};+fD = {colorSwatchPicker: "تغييرات الألوان",dropzoneLabel: "DropZone",selectPlaceholder: "حدد عنصرًا",@@ -28228,8 +28228,8 @@ dD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs-var fD = {};-fD = {+var pD = {};+pD = {colorSwatchPicker: "Цветови мостри",dropzoneLabel: "DropZone",selectPlaceholder: "Изберете предмет",@@ -28237,8 +28237,8 @@ fD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs-var pD = {};-pD = {+var mD = {};+mD = {colorSwatchPicker: "Vzorky barev",dropzoneLabel: "Místo pro přetažení",selectPlaceholder: "Vyberte položku",@@ -28246,8 +28246,8 @@ pD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs-var mD = {};-mD = {+var hD = {};+hD = {colorSwatchPicker: "Farveprøver",dropzoneLabel: "DropZone",selectPlaceholder: "Vælg et element",@@ -28255,8 +28255,8 @@ mD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs-var hD = {};-hD = {+var gD = {};+gD = {colorSwatchPicker: "Farbfelder",dropzoneLabel: "Ablegebereich",selectPlaceholder: "Element wählen",@@ -28264,8 +28264,8 @@ hD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs-var gD = {};-gD = {+var _D = {};+_D = {colorSwatchPicker: "Χρωματικά δείγματα",dropzoneLabel: "DropZone",selectPlaceholder: "Επιλέξτε ένα αντικείμενο",@@ -28273,8 +28273,8 @@ gD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs-var _D = {};-_D = {+var vD = {};+vD = {selectPlaceholder: "Select an item",tableResizer: "Resizer",dropzoneLabel: "DropZone",@@ -28282,8 +28282,8 @@ _D = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs-var vD = {};-vD = {+var yD = {};+yD = {colorSwatchPicker: "Muestras de colores",dropzoneLabel: "DropZone",selectPlaceholder: "Seleccionar un artículo",@@ -28291,8 +28291,8 @@ vD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs-var yD = {};-yD = {+var bD = {};+bD = {colorSwatchPicker: "Värvinäidised",dropzoneLabel: "DropZone",selectPlaceholder: "Valige üksus",@@ -28300,8 +28300,8 @@ yD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs-var bD = {};-bD = {+var xD = {};+xD = {colorSwatchPicker: "Värimallit",dropzoneLabel: "DropZone",selectPlaceholder: "Valitse kohde",@@ -28309,8 +28309,8 @@ bD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs-var xD = {};-xD = {+var SD = {};+SD = {colorSwatchPicker: "Échantillons de couleurs",dropzoneLabel: "DropZone",selectPlaceholder: "Sélectionner un élément",@@ -28318,8 +28318,8 @@ xD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs-var SD = {};-SD = {+var CD = {};+CD = {colorSwatchPicker: "דוגמיות צבע",dropzoneLabel: "DropZone",selectPlaceholder: "בחר פריט",@@ -28327,8 +28327,8 @@ SD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs-var CD = {};-CD = {+var wD = {};+wD = {colorSwatchPicker: "Uzorci boja",dropzoneLabel: "Zona spuštanja",selectPlaceholder: "Odaberite stavku",@@ -28336,8 +28336,8 @@ CD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs-var wD = {};-wD = {+var TD = {};+TD = {colorSwatchPicker: "Színtárak",dropzoneLabel: "DropZone",selectPlaceholder: "Válasszon ki egy elemet",@@ -28345,8 +28345,8 @@ wD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs-var TD = {};-TD = {+var ED = {};+ED = {colorSwatchPicker: "Campioni di colore",dropzoneLabel: "Zona di rilascio",selectPlaceholder: "Seleziona un elemento",@@ -28354,8 +28354,8 @@ TD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs-var ED = {};-ED = {+var DD = {};+DD = {colorSwatchPicker: "カラースウォッチ",dropzoneLabel: "ドロップゾーン",selectPlaceholder: "項目を選択",@@ -28363,8 +28363,8 @@ ED = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs-var DD = {};-DD = {+var OD = {};+OD = {colorSwatchPicker: "색상 견본",dropzoneLabel: "드롭 영역",selectPlaceholder: "항목 선택",@@ -28372,8 +28372,8 @@ DD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs-var OD = {};-OD = {+var kD = {};+kD = {colorSwatchPicker: "Spalvų pavyzdžiai",dropzoneLabel: "„DropZone“",selectPlaceholder: "Pasirinkite elementą",@@ -28381,8 +28381,8 @@ OD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs-var kD = {};-kD = {+var AD = {};+AD = {colorSwatchPicker: "Krāsu paraugi",dropzoneLabel: "DropZone",selectPlaceholder: "Izvēlēties vienumu",@@ -28390,8 +28390,8 @@ kD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs-var AD = {};-AD = {+var jD = {};+jD = {colorSwatchPicker: "Fargekart",dropzoneLabel: "Droppsone",selectPlaceholder: "Velg et element",@@ -28399,8 +28399,8 @@ AD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs-var jD = {};-jD = {+var MD = {};+MD = {colorSwatchPicker: "kleurstalen",dropzoneLabel: "DropZone",selectPlaceholder: "Selecteer een item",@@ -28408,8 +28408,8 @@ jD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs-var MD = {};-MD = {+var ND = {};+ND = {colorSwatchPicker: "Próbki kolorów",dropzoneLabel: "Strefa upuszczania",selectPlaceholder: "Wybierz element",@@ -28417,8 +28417,8 @@ MD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs-var ND = {};-ND = {+var PD = {};+PD = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -28426,8 +28426,8 @@ ND = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs-var PD = {};-PD = {+var FD = {};+FD = {colorSwatchPicker: "Amostras de cores",dropzoneLabel: "DropZone",selectPlaceholder: "Selecione um item",@@ -28435,8 +28435,8 @@ PD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs-var FD = {};-FD = {+var ID = {};+ID = {colorSwatchPicker: "Specimene de culoare",dropzoneLabel: "Zonă de plasare",selectPlaceholder: "Selectați un element",@@ -28444,8 +28444,8 @@ FD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs-var ID = {};-ID = {+var LD = {};+LD = {colorSwatchPicker: "Цветовые образцы",dropzoneLabel: "DropZone",selectPlaceholder: "Выберите элемент",@@ -28453,8 +28453,8 @@ ID = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs-var LD = {};-LD = {+var RD = {};+RD = {colorSwatchPicker: "Vzorkovníky farieb",dropzoneLabel: "DropZone",selectPlaceholder: "Vyberte položku",@@ -28462,8 +28462,8 @@ LD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs-var RD = {};-RD = {+var zD = {};+zD = {colorSwatchPicker: "Barvne palete",dropzoneLabel: "DropZone",selectPlaceholder: "Izberite element",@@ -28471,8 +28471,8 @@ RD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs-var zD = {};-zD = {+var BD = {};+BD = {colorSwatchPicker: "Uzorci boje",dropzoneLabel: "DropZone",selectPlaceholder: "Izaberite stavku",@@ -28480,8 +28480,8 @@ zD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs-var BD = {};-BD = {+var VD = {};+VD = {colorSwatchPicker: "Färgrutor",dropzoneLabel: "DropZone",selectPlaceholder: "Välj en artikel",@@ -28489,8 +28489,8 @@ BD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs-var VD = {};-VD = {+var HD = {};+HD = {colorSwatchPicker: "Renk örnekleri",dropzoneLabel: "Bırakma Bölgesi",selectPlaceholder: "Bir öğe seçin",@@ -28498,8 +28498,8 @@ VD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs-var HD = {};-HD = {+var UD = {};+UD = {colorSwatchPicker: "Зразки кольорів",dropzoneLabel: "DropZone",selectPlaceholder: "Виберіть елемент",@@ -28507,8 +28507,8 @@ HD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs-var UD = {};-UD = {+var WD = {};+WD = {colorSwatchPicker: "颜色色板",dropzoneLabel: "放置区域",selectPlaceholder: "选择一个项目",@@ -28516,8 +28516,8 @@ UD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs-var WD = {};-WD = {+var GD = {};+GD = {colorSwatchPicker: "色票",dropzoneLabel: "放置區",selectPlaceholder: "選取項目",@@ -28525,52 +28525,52 @@ WD = {};//#endregion//#region node_modules/react-aria-components/dist/private/intlStrings.mjs-var GD = {};-GD = {- "ar-AE": dD,- "bg-BG": fD,- "cs-CZ": pD,- "da-DK": mD,- "de-DE": hD,- "el-GR": gD,- "en-US": _D,- "es-ES": vD,- "et-EE": yD,- "fi-FI": bD,- "fr-FR": xD,- "he-IL": SD,- "hr-HR": CD,- "hu-HU": wD,- "it-IT": TD,- "ja-JP": ED,- "ko-KR": DD,- "lt-LT": OD,- "lv-LV": kD,- "nb-NO": AD,- "nl-NL": jD,- "pl-PL": MD,- "pt-BR": ND,- "pt-PT": PD,- "ro-RO": FD,- "ru-RU": ID,- "sk-SK": LD,- "sl-SI": RD,- "sr-SP": zD,- "sv-SE": BD,- "tr-TR": VD,- "uk-UA": HD,- "zh-CN": UD,- "zh-TW": WD+var KD = {};+KD = {+ "ar-AE": fD,+ "bg-BG": pD,+ "cs-CZ": mD,+ "da-DK": hD,+ "de-DE": gD,+ "el-GR": _D,+ "en-US": vD,+ "es-ES": yD,+ "et-EE": bD,+ "fi-FI": xD,+ "fr-FR": SD,+ "he-IL": CD,+ "hr-HR": wD,+ "hu-HU": TD,+ "it-IT": ED,+ "ja-JP": DD,+ "ko-KR": OD,+ "lt-LT": kD,+ "lv-LV": AD,+ "nb-NO": jD,+ "nl-NL": MD,+ "pl-PL": ND,+ "pt-BR": PD,+ "pt-PT": FD,+ "ro-RO": ID,+ "ru-RU": LD,+ "sk-SK": RD,+ "sl-SI": zD,+ "sr-SP": BD,+ "sv-SE": VD,+ "tr-TR": HD,+ "uk-UA": UD,+ "zh-CN": WD,+ "zh-TW": GD};//#endregion//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs-var KD = /*#__PURE__*/ (0, R.createContext)({}), qD = /*#__PURE__*/ (0, R.createContext)(null), Noe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { render: n } = (0, R.useContext)(qD);+var qD = /*#__PURE__*/ (0, R.createContext)({}), JD = /*#__PURE__*/ (0, R.createContext)(null), Moe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { render: n } = (0, R.useContext)(JD);return /*#__PURE__*/ R.createElement(R.Fragment, null, n(e, t));});-function JD(e, t) {+function YD(e, t) {let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, R.useCallback)((e) => {- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Noe, { target: e });+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ R.createElement(Moe, { target: e });}, [t?.target,r,@@ -28578,7 +28578,7 @@ function JD(e, t) {]);return e?.useDropIndicator ? i : void 0;}-function YD(e, t, n) {+function XD(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;@@ -28601,14 +28601,14 @@ function YD(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Header.mjs-var XD = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ (0, R.createContext)(null);-function ZD(e) {+var ZD = /*#__PURE__*/ (0, R.createContext)({}), Noe = /*#__PURE__*/ (0, R.createContext)(null);+function QD(e) {let t = (0, R.useRef)({});- return /*#__PURE__*/ R.createElement(Poe.Provider, { value: t }, e.children);+ return /*#__PURE__*/ R.createElement(Noe.Provider, { value: t }, e.children);}//#endregion//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs-var QD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), $D = /*#__PURE__*/ (0, R.createContext)({}), Foe = /*#__PURE__*/ og(class extends op {+var $D = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), eO = /*#__PURE__*/ (0, R.createContext)({}), Poe = /*#__PURE__*/ og(class extends op {static {this.type = "separator";}@@ -28621,10 +28621,10 @@ var QD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), $D = /*#__PURE_return null;}}, function(e, t) {- [e, t] = BE(e, t, $D);+ [e, t] = VE(e, t, eO);let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";c === "hr" && r === "vertical" && (c = "div");- let l = WE[c], { separatorProps: u } = ux({+ let l = GE[c], { separatorProps: u } = tne({...s,elementType: n,orientation: r@@ -28640,13 +28640,13 @@ var QD = /*#__PURE__*/ (0, R.createContext)({ isSelected: !1 }), $D = /*#__PURE_});//#endregion//#region node_modules/react-aria/dist/private/utils/inertValue.mjs-function eO(e) {+function tO(e) {let t = R.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 tO = class {+var nO = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;let t = (e) => {@@ -28690,20 +28690,20 @@ var tO = class {getChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, nO = class e extends Set {+}, rO = 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 Ioe(e, t) {+function Foe(e, t) {if (e.size !== t.size) return !1;for (let n of e) if (!t.has(n)) return !1;return !0;}-function rO(e) {- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = H_((0, R.useMemo)(() => iO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => iO(e.defaultSelectedKeys, new nO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);+function iO(e) {+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, R.useRef)(!1), [, s] = (0, R.useState)(!1), c = (0, R.useRef)(null), l = (0, R.useRef)(null), [, u] = (0, R.useState)(null), [d, f] = H_((0, R.useMemo)(() => aO(e.selectedKeys), [e.selectedKeys]), (0, R.useMemo)(() => aO(e.defaultSelectedKeys, new rO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, R.useState)(i);i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");let g = (0, R.useRef)(i);return (0, R.useEffect)(() => {@@ -28730,18 +28730,18 @@ function rO(e) {},selectedKeys: d,setSelectedKeys(e) {- (r || !Ioe(e, d)) && f(e);+ (r || !Foe(e, d)) && f(e);},disabledKeys: p,disabledBehavior: a};}-function iO(e, t) {- return e ? e === "all" ? "all" : new nO(e) : t;+function aO(e, t) {+ return e ? e === "all" ? "all" : new rO(e) : t;}//#endregion//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs-var aO = class e {+var oO = 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;}@@ -28824,10 +28824,10 @@ var aO = class e {let t = this.getKey(e);if (t == null) return;let n;- if (this.state.selectedKeys === "all") n = new nO([t], t, t);+ if (this.state.selectedKeys === "all") n = new rO([t], t, t);else {let e = this.state.selectedKeys, r = e.anchorKey ?? t;- n = new nO(e, r, t);+ n = new rO(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);}@@ -28861,19 +28861,19 @@ var aO = class e {}let t = this.getKey(e);if (t == null) return;- let n = new nO(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);+ let n = new rO(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 nO([t], t, t) : new nO();+ let n = this.canSelectItem(t) ? new rO([t], t, t) : new rO();this.state.setSelectedKeys(n);}setSelectedKeys(e) {if (this.selectionMode === "none") return;- let t = new nO();+ let t = new rO();for (let n of e) {let e = this.getKey(n);if (e != null && (t.add(e), this.selectionMode === "single")) break;@@ -28896,7 +28896,7 @@ var aO = class e {!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");}clearSelection() {- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new nO());+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new rO());}toggleSelectAll() {this.isSelectAll ? this.clearSelection() : this.selectAll();@@ -28937,9 +28937,9 @@ var aO = class e {fullCollection: this.fullCollection ?? this.collection});}-}, Loe = class {+}, Ioe = class {build(e, t) {- return this.context = t, oO(() => this.iterateCollection(e));+ return this.context = t, sO(() => this.iterateCollection(e));}*iterateCollection(e) {let { children: t, items: n } = e;@@ -29021,10 +29021,10 @@ var aO = class e {...a,key: l,index: s,- wrapper: Roe(e.wrapper, a.wrapper)+ wrapper: Loe(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 <${sO(t.type)}> in <${sO(r?.type ?? "unknown parent type")}>. Only <${sO(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 <${cO(t.type)}> in <${cO(r?.type ?? "unknown parent type")}>. Only <${cO(e.type)}> is supported.`);s++, yield t;}c = o.next(u);@@ -29046,7 +29046,7 @@ var aO = class e {wrapper: e.wrapper,shouldInvalidate: e.shouldInvalidate,hasChildNodes: e.hasChildNodes || !1,- childNodes: oO(function* () {+ childNodes: sO(function* () {if (!e.hasChildNodes || !e.childNodes) return;let n = 0;for (let r of e.childNodes()) {@@ -29065,7 +29065,7 @@ var aO = class e {this.cache = /* @__PURE__ */ new WeakMap();}};-function oO(e) {+function sO(e) {let t = [], n = null;return { *[Symbol.iterator]() {for (let e of t) yield e;@@ -29073,18 +29073,18 @@ function oO(e) {for (let e of n) t.push(e), yield e;} };}-function Roe(e, t) {+function Loe(e, t) {if (e && t) return (n) => e(t(n));if (e) return e;if (t) return t;}-function sO(e) {+function cO(e) {return e[0].toUpperCase() + e.slice(1);}//#endregion//#region node_modules/react-stately/dist/private/collections/useCollection.mjs-function cO(e, t, n) {- let r = (0, R.useMemo)(() => new Loe(), []), { children: i, items: a, collection: o } = e;+function lO(e, t, n) {+ let r = (0, R.useMemo)(() => new Ioe(), []), { children: i, items: a, collection: o } = e;return (0, R.useMemo)(() => o || t(r.build({children: i,items: a@@ -29099,27 +29099,27 @@ function cO(e, t, n) {}//#endregion//#region node_modules/react-stately/dist/private/list/useListState.mjs-function lO(e) {- let { filter: t, layoutDelegate: n } = e, r = rO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = cO(e, (0, R.useCallback)((e) => t ? new tO(t(e)) : new tO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new aO(a, r, { layoutDelegate: n }), [+function uO(e) {+ let { filter: t, layoutDelegate: n } = e, r = iO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = lO(e, (0, R.useCallback)((e) => t ? new nO(t(e)) : new nO(e), [t]), (0, R.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, R.useMemo)(() => new oO(a, r, { layoutDelegate: n }), [a,r,n]);- return uO(a, o), {+ return dO(a, o), {collection: a,disabledKeys: i,selectionManager: o};}-function zoe(e, t) {+function Roe(e, t) {let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);- return uO(n, r), {+ return dO(n, r), {collection: n,selectionManager: r,disabledKeys: e.disabledKeys};}-function uO(e, t) {+function dO(e, t) {let n = (0, R.useRef)(null);(0, R.useEffect)(() => {if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {@@ -29147,7 +29147,7 @@ function uO(e, t) {}//#endregion//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs-function dO(e, t) {+function fO(e, t) {let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, R.useRef)(null), s = hg((e) => {for (let t of e) t.isIntersecting && r && r();});@@ -29171,42 +29171,42 @@ function dO(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/ListBox.mjs-var fO = /*#__PURE__*/ (0, R.createContext)(null), pO = /*#__PURE__*/ (0, R.createContext)(null), Boe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, fO);- let n = (0, R.useContext)(pO);- return n ? /*#__PURE__*/ R.createElement(mO, {+var pO = /*#__PURE__*/ (0, R.createContext)(null), mO = /*#__PURE__*/ (0, R.createContext)(null), zoe = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, pO);+ let n = (0, R.useContext)(mO);+ return n ? /*#__PURE__*/ R.createElement(hO, {state: n,props: e,listBoxRef: t- }) : /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(Voe, {+ }) : /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(Boe, {props: e,listBoxRef: t,collection: n}));});-function Voe({ props: e, listBoxRef: t, collection: n }) {+function Boe({ props: e, listBoxRef: t, collection: n }) {e = {...e,collection: n,children: null,items: null};- let { layoutDelegate: r } = (0, R.useContext)(XE), i = lO({+ let { layoutDelegate: r } = (0, R.useContext)(ZE), i = uO({...e,layoutDelegate: r});- return /*#__PURE__*/ R.createElement(mO, {+ return /*#__PURE__*/ R.createElement(hO, {state: i,props: e,listBoxRef: t});}-function mO({ state: e, props: t, listBoxRef: n }) {- [t, n] = BE(t, n, GE);- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = zoe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Cg(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({+function hO({ state: e, props: t, listBoxRef: n }) {+ [t, n] = VE(t, n, KE);+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Roe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Cg(), { disabledBehavior: p, disabledKeys: m } = l, h = ty({usage: "search",sensitivity: "base"- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(XE), b = (0, R.useMemo)(() => t.keyboardDelegate || new rv({+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, R.useContext)(ZE), b = (0, R.useMemo)(() => t.keyboardDelegate || new rv({collection: c,collator: h,ref: n,@@ -29267,7 +29267,7 @@ function mO({ state: e, props: t, listBoxRef: n }) {layout: t.layout || "stack",orientation: a,state: s- }, N = RE({+ }, N = zE({...t,children: void 0,defaultClassName: "react-aria-ListBox",@@ -29278,7 +29278,7 @@ function mO({ state: e, props: t, listBoxRef: n }) {style: { display: "contents" }}, t.renderEmptyState(M)));let te = jg(t, { global: !0 });- return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {...H(te, N, x, O, w?.collectionProps),ref: n,slot: t.slot || void 0,@@ -29289,52 +29289,52 @@ function mO({ state: e, props: t, listBoxRef: n }) {"data-focus-visible": A || void 0,"data-layout": t.layout || "stack","data-orientation": a- }, /*#__PURE__*/ R.createElement(LE, { values: [- [fO, t],- [pO, s],- [KD, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [pO, t],+ [mO, s],+ [qD, {dragAndDropHooks: r,dragState: S,dropState: C}],- [$D, { elementType: "div" }],- [qD, { render: Woe }],- [qE, {+ [eO, { elementType: "div" }],+ [JD, { render: Uoe }],+ [JE, {name: "ListBoxSection",- render: Hoe+ render: Voe}]- ] }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(y, {+ ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(y, {collection: c,scrollRef: n,- persistedKeys: YD(l, r, C),- renderDropIndicator: JD(r, C)+ persistedKeys: XD(l, r, C),+ renderDropIndicator: YD(r, C)}))), ee, E));}-function Hoe(e, t, n, r = "react-aria-ListBoxSection") {- let i = (0, R.useContext)(pO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(KD), { CollectionBranch: s } = (0, R.useContext)(XE), [c, l] = VE(), { headingProps: u, groupProps: d } = Ote({+function Voe(e, t, n, r = "react-aria-ListBoxSection") {+ let i = (0, R.useContext)(mO), { dragAndDropHooks: a, dropState: o } = (0, R.useContext)(qD), { CollectionBranch: s } = (0, R.useContext)(ZE), [c, l] = HE(), { headingProps: u, groupProps: d } = Ote({heading: l,"aria-label": e["aria-label"] ?? void 0- }), f = RE({+ }), f = zE({...e,id: void 0,children: void 0,defaultClassName: r,values: void 0}), p = jg(e, { global: !0 });- return delete p.id, /*#__PURE__*/ R.createElement(WE.section, {+ return delete p.id, /*#__PURE__*/ R.createElement(GE.section, {...H(p, f, d),ref: t- }, /*#__PURE__*/ R.createElement(XD.Provider, { value: {+ }, /*#__PURE__*/ R.createElement(ZD.Provider, { value: {...u,ref: c} }, /*#__PURE__*/ R.createElement(s, {collection: i.collection,parent: n,- renderDropIndicator: JD(a, o)+ renderDropIndicator: YD(a, o)})));}-var Uoe = /*#__PURE__*/ og(lp, function(e, t, n) {- let r = Rh(t), i = (0, R.useContext)(pO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(KD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({+var Hoe = /*#__PURE__*/ og(lp, function(e, t, n) {+ let r = Rh(t), i = (0, R.useContext)(mO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = kte({key: n.key,"aria-label": e?.["aria-label"]}, i, r), { hoverProps: p, isHovered: m } = fy({@@ -29353,7 +29353,7 @@ var Uoe = /*#__PURE__*/ og(lp, function(e, t, n) {key: n.key,dropPosition: "on"} }, s, r));- let y = o && o.isDragging(n.key), b = RE({+ let y = o && o.isDragging(n.key), b = zE({...e,id: void 0,children: e.children,@@ -29371,7 +29371,7 @@ var Uoe = /*#__PURE__*/ og(lp, function(e, t, n) {(0, R.useEffect)(() => {n.textValue;}, [n.textValue]);- let x = e.href ? WE.a : WE.div, S = jg(e, { global: !0 });+ let x = e.href ? GE.a : GE.div, S = jg(e, { global: !0 });return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ R.createElement(x, {...H(S, b, l, p, h, g, _?.dragProps, v?.dropProps),ref: r,@@ -29385,29 +29385,29 @@ var Uoe = /*#__PURE__*/ og(lp, function(e, t, n) {"data-dragging": y || void 0,"data-drop-target": v?.isDropTarget || void 0,"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode- }, /*#__PURE__*/ R.createElement(LE, { values: [[rD, { slots: {- [IE]: u,+ }, /*#__PURE__*/ R.createElement(RE, { values: [[iD, { slots: {+ [LE]: u,label: u,description: d- } }], [QD, { isSelected: f.isSelected }]] }, b.children));+ } }], [$D, { isSelected: f.isSelected }]] }, b.children));});-function Woe(e, t) {+function Uoe(e, t) {t = Rh(t);- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(KD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);- return a ? null : /*#__PURE__*/ R.createElement(Koe, {+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);+ return a ? null : /*#__PURE__*/ R.createElement(Goe, {...e,dropIndicatorProps: i,isDropTarget: o,ref: t});}-function Goe(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = RE({+function Woe(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = zE({...i,defaultClassName: "react-aria-DropIndicator",values: { isDropTarget: r }});- return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {...n,...a,role: "option",@@ -29415,10 +29415,10 @@ function Goe(e, t) {"data-drop-target": r || void 0}));}-var Koe = /*#__PURE__*/ (0, R.forwardRef)(Goe);+var Goe = /*#__PURE__*/ (0, R.forwardRef)(Woe);og(cp, function(e, t, n) {- let r = (0, R.useContext)(pO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);- dO((0, R.useMemo)(() => ({+ let r = (0, R.useContext)(mO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);+ fO((0, R.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -29428,7 +29428,7 @@ og(cp, function(e, t, n) {o,r?.collection]), c);- let l = RE({+ let l = zE({...s,id: void 0,children: n.rendered,@@ -29441,7 +29441,7 @@ og(cp, function(e, t, n) {width: 0,height: 0},- inert: eO(!0)+ inert: tO(!0)}, /*#__PURE__*/ R.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -29450,7 +29450,7 @@ og(cp, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {...H(jg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "option",@@ -29459,10 +29459,10 @@ og(cp, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs-var qoe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });+var Koe = /*#__PURE__*/ (0, R.createContext)({ placement: "bottom" });//#endregion//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs-function hO(e) {+function gO(e) {let [t, n] = H_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, R.useState)(null);return {isOpen: t,@@ -29482,13 +29482,13 @@ function hO(e) {}//#endregion//#region node_modules/react-aria/dist/private/utils/animation.mjs-function gO(e, t = !0) {+function _O(e, t = !0) {let [n, r] = (0, R.useState)(!0), i = n && t;return qp(() => {if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();- }, [e, i]), vO(e, i, (0, R.useCallback)(() => r(!1), [])), i;+ }, [e, i]), yO(e, i, (0, R.useCallback)(() => r(!1), [])), i;}-function _O(e, t) {+function vO(e, t) {let [n, r] = (0, R.useState)(t ? "open" : "closed");switch (n) {case "open":@@ -29498,11 +29498,11 @@ function _O(e, t) {case "exiting": t && r("open");}let i = n === "exiting";- return vO(e, i, (0, R.useCallback)(() => {+ return yO(e, i, (0, R.useCallback)(() => {r((e) => e === "exiting" ? "closed" : e);}, [])), i;}-function vO(e, t, n) {+function yO(e, t, n) {qp(() => {if (t && e.current) {if (!("getAnimations" in e.current)) {@@ -29531,9 +29531,9 @@ function vO(e, t, n) {}//#endregion//#region node_modules/react-aria-components/dist/private/Popover.mjs-var yO = /*#__PURE__*/ (0, R.createContext)(null), bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, yO);- let n = (0, R.useContext)(jO), r = hO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = _O(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kh(), { direction: c } = Cg();+var bO = /*#__PURE__*/ (0, R.createContext)(null), xO = /*#__PURE__*/ (0, R.createContext)(null), SO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, bO);+ let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = vO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Kh(), { direction: c } = Cg();if (s) {let t = e.children;return typeof t == "function" && (t = t({@@ -29544,7 +29544,7 @@ var yO = /*#__PURE__*/ (0, R.createContext)(null), bO = /*#__PURE__*/ (0, R.creadefaultChildren: null})), /*#__PURE__*/ R.createElement(R.Fragment, null, t);}- return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(Joe, {+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ R.createElement(qoe, {...e,triggerRef: e.triggerRef,state: i,@@ -29553,13 +29553,13 @@ var yO = /*#__PURE__*/ (0, R.createContext)(null), bO = /*#__PURE__*/ (0, R.creadir: c});});-function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {- let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(bO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Yte({+function qoe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {+ let a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useContext)(xO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Yte({...i,offset: i.offset ?? 8,arrowRef: a,groupRef: c ? s : o- }, e), m = i.popoverRef, h = gO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = RE({+ }, e), m = i.popoverRef, h = _O(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = zE({...i,defaultClassName: "react-aria-Popover",values: {@@ -29594,7 +29594,7 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,..._.style,"--trigger-width": _.style?.["--trigger-width"] || S- }, E = /*#__PURE__*/ R.createElement(WE.div, {+ }, E = /*#__PURE__*/ R.createElement(GE.div, {...H(jg(i, { global: !0 }), l),..._,id: y ? i.id : void 0,@@ -29610,7 +29610,7 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext"data-placement": f,"data-entering": g || void 0,"data-exiting": t || void 0- }, !i.isNonModal && /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(qoe.Provider, { value: {+ }, !i.isNonModal && /*#__PURE__*/ R.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ R.createElement(Koe.Provider, { value: {...d,placement: f,ref: a@@ -29635,15 +29635,15 @@ function Joe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext}), /*#__PURE__*/ R.createElement("div", {ref: o,style: { display: "contents" }- }, /*#__PURE__*/ R.createElement(bO.Provider, { value: o }, E)));+ }, /*#__PURE__*/ R.createElement(xO.Provider, { value: o }, E)));}//#endregion//#region node_modules/react-aria-components/dist/private/Keyboard.mjs-var Yoe = /*#__PURE__*/ (0, R.createContext)({});+var Joe = /*#__PURE__*/ (0, R.createContext)({});//#endregion//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs-function SO(e) {- let t = hO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {+function CO(e) {+ let t = gO(e), [n, r] = (0, R.useState)(null), [i, a] = (0, R.useState)([]), o = () => {a([]), t.close();}, s = (e, t) => {a((n) => t > n.length ? n : [...n.slice(0, t), e]);@@ -29669,7 +29669,7 @@ function SO(e) {}//#endregion//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs-var Xoe = class {+var Yoe = 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) => {@@ -29713,8 +29713,8 @@ var Xoe = class {};//#endregion//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs-function Zoe(e) {- let { onExpandedChange: t } = e, [n, r] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = rO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = cO(e, (0, R.useCallback)((e) => new Xoe(e, { expandedKeys: n }), [n]), null);+function Xoe(e) {+ let { onExpandedChange: t } = e, [n, r] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = iO(e), a = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = lO(e, (0, R.useCallback)((e) => new Yoe(e, { expandedKeys: n }), [n]), null);return (0, R.useEffect)(() => {i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);}, [o, i.focusedKey]), {@@ -29722,32 +29722,32 @@ function Zoe(e) {expandedKeys: n,disabledKeys: a,toggleKey: (e) => {- r(Qoe(n, e));+ r(Zoe(n, e));},setExpandedKeys: r,- selectionManager: new aO(o, i)+ selectionManager: new oO(o, i)};}-function Qoe(e, t) {+function Zoe(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 CO = /*#__PURE__*/ (0, R.createContext)(null), wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null), EO = /*#__PURE__*/ (0, R.createContext)(null);-function $oe(e) {- let t = SO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({+var wO = /*#__PURE__*/ (0, R.createContext)(null), TO = /*#__PURE__*/ (0, R.createContext)(null), EO = /*#__PURE__*/ (0, R.createContext)(null), DO = /*#__PURE__*/ (0, R.createContext)(null);+function Qoe(e) {+ let t = CO(e), n = (0, R.useRef)(null), { menuTriggerProps: r, menuProps: i } = Vv({...e,type: "menu"}, t, n), a = (0, R.useRef)(null);- return Kh() ? null : /*#__PURE__*/ R.createElement(LE, { values: [- [CO, {+ return Kh() ? null : /*#__PURE__*/ R.createElement(RE, { values: [+ [wO, {...i,ref: a}],- [jO, t],- [TO, t],- [yO, {+ [MO, t],+ [EO, t],+ [bO, {trigger: "MenuTrigger",triggerRef: n,scrollRef: a,@@ -29761,7 +29761,7 @@ function $oe(e) {isPressed: t.isOpen}, e.children));}-var ese = /*#__PURE__*/ (0, R.createContext)(null);+var $oe = /*#__PURE__*/ (0, R.createContext)(null);(class extends op {static {this.type = "submenutrigger";@@ -29775,24 +29775,24 @@ var ese = /*#__PURE__*/ (0, R.createContext)(null);return null;}});-var tse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- return [e, t] = BE(e, t, CO), /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(nse, {+var ese = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ return [e, t] = VE(e, t, wO), /*#__PURE__*/ R.createElement(Qh, { content: /*#__PURE__*/ R.createElement(ug, e) }, (n) => /*#__PURE__*/ R.createElement(tse, {props: e,collection: n,menuRef: t}));});-function nse({ props: e, collection: t, menuRef: n }) {- [e, n] = BE(e, n, GE);- let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Zoe({+function tse({ props: e, collection: t, menuRef: n }) {+ [e, n] = VE(e, n, KE);+ let { filter: r, ...i } = e, a = (0, R.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Xoe({...e,collection: a,children: void 0- }), s = (0, R.useContext)(TO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(XE), { menuProps: u } = Ate({+ }), s = (0, R.useContext)(EO), { isVirtualized: c, CollectionRoot: l } = (0, R.useContext)(ZE), { menuProps: u } = Ate({...e,isVirtualized: c,onClose: e.onClose || s?.close- }, o, n), d = RE({+ }, o, n), d = zE({...e,children: void 0,defaultClassName: "react-aria-Menu",@@ -29803,35 +29803,35 @@ function nse({ props: e, collection: t, menuRef: n }) {style: { display: "contents" }}, e.renderEmptyState()));let p = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(GE.div, {...H(p, d, u),ref: n,slot: e.slot || void 0,"data-empty": o.collection.size === 0 || void 0,onScroll: e.onScroll- }, /*#__PURE__*/ R.createElement(LE, { values: [- [wO, o],- [$D, { elementType: "div" }],- [qE, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [TO, o],+ [eO, { elementType: "div" }],+ [JE, {name: "MenuSection",- render: DO+ render: OO}],- [ese, {+ [$oe, {parentMenuRef: n,shouldUseVirtualFocus: i?.shouldUseVirtualFocus}],- [kO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],- [GE, null],+ [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],[KE, null],- [EO, o.selectionManager],- [TO, s ?? SO({})]- ] }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(l, {+ [qE, null],+ [DO, o.selectionManager],+ [EO, s ?? CO({})]+ ] }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(l, {collection: o.collection,- persistedKeys: ZE(o.selectionManager.focusedKey),+ persistedKeys: QE(o.selectionManager.focusedKey),scrollRef: n}))), f));}-var rse = class extends aO {+var nse = class extends oO {constructor(e, t) {super(e.collection, t), this.parent = e;}@@ -29851,11 +29851,11 @@ var rse = class extends aO {return this.parent.childFocusStrategy;}};-function DO(e, t, n, r = "react-aria-MenuSection") {- let i = (0, R.useContext)(wO), { CollectionBranch: a } = (0, R.useContext)(XE), [o, s] = VE(), { headingProps: c, groupProps: l } = Mte({+function OO(e, t, n, r = "react-aria-MenuSection") {+ let i = (0, R.useContext)(TO), { CollectionBranch: a } = (0, R.useContext)(ZE), [o, s] = HE(), { headingProps: c, groupProps: l } = Mte({heading: s,"aria-label": n.props["aria-label"] ?? void 0- }), u = RE({+ }), u = zE({...e,id: void 0,children: void 0,@@ -29863,31 +29863,31 @@ function DO(e, t, n, r = "react-aria-MenuSection") {className: n.props?.className,style: n.props?.style,values: void 0- }), d = (0, R.useContext)(EO), f = rO(e), p = e.selectionMode == null ? d : new rse(d, f), m = zE(kO)?.shouldCloseOnSelect, h = jg(e, { global: !0 });- return delete h.id, /*#__PURE__*/ R.createElement(WE.section, {+ }), d = (0, R.useContext)(DO), f = iO(e), p = e.selectionMode == null ? d : new nse(d, f), m = BE(AO)?.shouldCloseOnSelect, h = jg(e, { global: !0 });+ return delete h.id, /*#__PURE__*/ R.createElement(GE.section, {...H(h, u, l),ref: t- }, /*#__PURE__*/ R.createElement(LE, { values: [- [XD, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [ZD, {...c,ref: o}],- [EO, p],- [kO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]+ [DO, p],+ [AO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]] }, /*#__PURE__*/ R.createElement(a, {collection: i.collection,parent: n})));}-var OO = /*#__PURE__*/ sg(up, DO), kO = /*#__PURE__*/ (0, R.createContext)(null), AO = /*#__PURE__*/ og(lp, function(e, t, n) {- [e, t] = BE(e, t, kO);- let r = zE(kO)?.id, i = (0, R.useContext)(wO), a = Rh(t), o = (0, R.useContext)(EO), { isVirtualized: s } = (0, R.useContext)(XE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({+var kO = /*#__PURE__*/ sg(up, OO), AO = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ og(lp, function(e, t, n) {+ [e, t] = VE(e, t, AO);+ let r = BE(AO)?.id, i = (0, R.useContext)(TO), a = Rh(t), o = (0, R.useContext)(DO), { isVirtualized: s } = (0, R.useContext)(ZE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = jte({...e,id: r,key: n.key,selectionManager: o,isVirtualized: s- }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = RE({+ }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = zE({...e,id: void 0,children: n.rendered,@@ -29901,7 +29901,7 @@ var OO = /*#__PURE__*/ sg(up, DO), kO = /*#__PURE__*/ (0, R.createContext)(null)hasSubmenu: !!e["aria-haspopup"],isOpen: e["aria-expanded"] === "true"}- }), g = e.href ? WE.a : WE.div, _ = jg(e, { global: !0 });+ }), g = e.href ? GE.a : GE.div, _ = jg(e, { global: !0 });return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(g, {...H(_, h, c, p),ref: a,@@ -29914,19 +29914,19 @@ var OO = /*#__PURE__*/ sg(up, DO), kO = /*#__PURE__*/ (0, R.createContext)(null)"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,"data-has-submenu": !!e["aria-haspopup"] || void 0,"data-open": e["aria-expanded"] === "true" || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [- [rD, { slots: {- [IE]: l,+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [iD, { slots: {+ [LE]: l,label: l,description: u} }],- [Yoe, d],- [QD, { isSelected: f.isSelected }]+ [Joe, d],+ [$D, { isSelected: f.isSelected }]] }, h.children));});og(cp, function(e, t, n) {- let r = (0, R.useContext)(wO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);- dO((0, R.useMemo)(() => ({+ let r = (0, R.useContext)(TO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, R.useRef)(null);+ fO((0, R.useMemo)(() => ({onLoadMore: a,collection: r?.collection,sentinelRef: c,@@ -29936,7 +29936,7 @@ og(cp, function(e, t, n) {o,r?.collection]), c);- let l = RE({+ let l = zE({...s,id: void 0,children: n.rendered,@@ -29949,7 +29949,7 @@ og(cp, function(e, t, n) {width: 0,height: 0},- inert: eO(!0)+ inert: tO(!0)}, /*#__PURE__*/ R.createElement("div", {"data-testid": "loadMoreSentinel",ref: c,@@ -29958,7 +29958,7 @@ og(cp, function(e, t, n) {height: 1,width: 1}- })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(WE.div, {+ })), i && l.children && /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(GE.div, {...H(jg(e, { global: !0 }), { tabIndex: -1 }),...l,role: "menuitem",@@ -29967,56 +29967,56 @@ og(cp, function(e, t, n) {});//#endregion//#region node_modules/react-aria-components/dist/private/Dialog.mjs-var ise = /*#__PURE__*/ (0, R.createContext)(null), jO = /*#__PURE__*/ (0, R.createContext)(null), MO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+var rse = /*#__PURE__*/ (0, R.createContext)(null), MO = /*#__PURE__*/ (0, R.createContext)(null), NO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {let n = e["aria-labelledby"];- [e, t] = BE(e, t, ise);+ [e, t] = VE(e, t, rse);let { dialogProps: r, titleProps: i, contentProps: a } = gte({...e,"aria-labelledby": n- }, t), o = (0, R.useContext)(jO);+ }, t), o = (0, R.useContext)(MO);!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);- let s = RE({+ let s = zE({defaultClassName: "react-aria-Dialog",className: e.className,style: e.style,children: e.children,values: { close: o?.close || (() => {}) }}), c = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(WE.section, {+ return /*#__PURE__*/ R.createElement(GE.section, {...H(c, s, r),render: e.render,ref: t,slot: e.slot || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [- [tD, { slots: {- [IE]: {},+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [nD, { slots: {+ [LE]: {},title: {...i,level: 2}} }],- [rD, { slots: {- [IE]: {},+ [iD, { slots: {+ [LE]: {},description: a} }],- [$E, { slots: {- [IE]: {},+ [eD, { slots: {+ [LE]: {},close: { onPress: () => o?.close() }} }]] }, s.children));-}), NO = typeof document < "u" && window.visualViewport;-function ase() {+}), PO = typeof document < "u" && window.visualViewport;+function ise() {let e = Nm(), [t, n] = (0, R.useState)(() => e ? {width: 0,height: 0- } : PO());+ } : FO());return (0, R.useEffect)(() => {let e = (e) => {n((t) => e.width === t.width && e.height === t.height ? t : e);}, t = () => {- NO && NO.scale > 1 || e(PO());+ PO && PO.scale > 1 || e(FO());}, r, i = (t) => {- NO && NO.scale > 1 || mg(V(t)) && (r = requestAnimationFrame(() => {+ PO && PO.scale > 1 || mg(V(t)) && (r = requestAnimationFrame(() => {let t = Pp();(!t || !mg(t)) && e({width: document.documentElement.clientWidth,@@ -30024,26 +30024,26 @@ function ase() {});}));};- return e(PO()), am() && sm() && window.addEventListener("blur", i, !0), NO ? NO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {- cancelAnimationFrame(r), am() && sm() && window.removeEventListener("blur", i, !0), NO ? NO.removeEventListener("resize", t) : window.removeEventListener("resize", t);+ return e(FO()), am() && sm() && window.addEventListener("blur", i, !0), PO ? PO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {+ cancelAnimationFrame(r), am() && sm() && window.removeEventListener("blur", i, !0), PO ? PO.removeEventListener("resize", t) : window.removeEventListener("resize", t);};}, []), t;}-function PO() {+function FO() {return {- width: NO ? Math.min(NO.width * NO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,- height: NO ? NO.height * NO.scale : document.documentElement.clientHeight+ width: PO ? Math.min(PO.width * PO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,+ height: PO ? PO.height * PO.scale : document.documentElement.clientHeight};}//#endregion//#region node_modules/react-aria-components/dist/private/Modal.mjs-var ose = /*#__PURE__*/ (0, R.createContext)(null), FO = /*#__PURE__*/ (0, R.createContext)(null), sse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- if ((0, R.useContext)(FO)) return /*#__PURE__*/ R.createElement(LO, {+var ase = /*#__PURE__*/ (0, R.createContext)(null), IO = /*#__PURE__*/ (0, R.createContext)(null), ose = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ if ((0, R.useContext)(IO)) return /*#__PURE__*/ R.createElement(RO, {...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__*/ R.createElement(IO, {+ return /*#__PURE__*/ R.createElement(LO, {isDismissable: n,isKeyboardDismissDisabled: r,isOpen: i,@@ -30053,15 +30053,15 @@ var ose = /*#__PURE__*/ (0, R.createContext)(null), FO = /*#__PURE__*/ (0, R.creisExiting: l,UNSTABLE_portalContainer: u,shouldCloseOnInteractOutside: d- }, /*#__PURE__*/ R.createElement(LO, {+ }, /*#__PURE__*/ R.createElement(RO, {...f,modalRef: t}, s));});-function cse(e, t) {- [e, t] = BE(e, t, ose);- let n = (0, R.useContext)(jO), r = hO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rh(t), o = (0, R.useRef)(null), s = _O(a, i.isOpen), c = _O(o, i.isOpen), l = s || c || e.isExiting || !1, u = Nm();- return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(lse, {+function sse(e, t) {+ [e, t] = VE(e, t, ase);+ let n = (0, R.useContext)(MO), r = gO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Rh(t), o = (0, R.useRef)(null), s = vO(a, i.isOpen), c = vO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Nm();+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ R.createElement(cse, {...e,state: i,isExiting: l,@@ -30069,9 +30069,9 @@ function cse(e, t) {modalRef: o});}-var IO = /*#__PURE__*/ (0, R.forwardRef)(cse);-function lse({ UNSTABLE_portalContainer: e, ...t }) {- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = gO(t.overlayRef) || t.isEntering || !1, s = RE({+var LO = /*#__PURE__*/ (0, R.forwardRef)(sse);+function cse({ UNSTABLE_portalContainer: e, ...t }) {+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Lte(t, r, n), o = _O(t.overlayRef) || t.isEntering || !1, s = zE({...t,defaultClassName: "react-aria-ModalOverlay",values: {@@ -30079,7 +30079,7 @@ function lse({ UNSTABLE_portalContainer: e, ...t }) {isExiting: t.isExiting,state: r}- }), c = ase(), l, u;+ }), c = ise(), l, u;if (typeof document < "u") {let e = y_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;l = e.scrollWidth - t, u = e.scrollHeight - n;@@ -30094,22 +30094,22 @@ function lse({ UNSTABLE_portalContainer: e, ...t }) {return /*#__PURE__*/ R.createElement(oy, {isExiting: t.isExiting,portalContainer: e- }, /*#__PURE__*/ R.createElement(WE.div, {+ }, /*#__PURE__*/ R.createElement(GE.div, {...H(jg(t, { global: !0 }), a),...s,style: d,ref: t.overlayRef,"data-entering": o || void 0,"data-exiting": t.isExiting || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [[FO, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [[IO, {modalProps: i,modalRef: n,isExiting: t.isExiting,isDismissable: t.isDismissable- }], [jO, r]] }, s.children)));+ }], [MO, r]] }, s.children)));}-function LO(e) {- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(FO), a = (0, R.useContext)(jO), o = Rh((0, R.useMemo)(() => yh(e.modalRef, n), [e.modalRef, n])), s = gO(o), c = RE({+function RO(e) {+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, R.useContext)(IO), a = (0, R.useContext)(MO), o = Rh((0, R.useMemo)(() => yh(e.modalRef, n), [e.modalRef, n])), s = _O(o), c = zE({...e,defaultClassName: "react-aria-Modal",values: {@@ -30118,7 +30118,7 @@ function LO(e) {state: a}});- return /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(GE.div, {...H(jg(e, { global: !0 }), t),...c,ref: o,@@ -30128,9 +30128,9 @@ function LO(e) {}//#endregion//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs-var use = Math.round(Math.random() * 1e10), dse = 0;-function fse(e) {- let t = (0, R.useMemo)(() => e.name || `radio-group-${use}-${++dse}`, [e.name]), [n, r] = H_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = N_({+var lse = Math.round(Math.random() * 1e10), use = 0;+function dse(e) {+ let t = (0, R.useMemo)(() => e.name || `radio-group-${lse}-${++use}`, [e.name]), [n, r] = H_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, R.useState)(n), [a, o] = (0, R.useState)(null), s = N_({...e,value: n}), c = (t) => {@@ -30153,16 +30153,16 @@ function fse(e) {}//#endregion//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs-var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.createContext)(null), RO = /*#__PURE__*/ (0, R.createContext)(null), zO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, pse);- let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = fse({+var fse = /*#__PURE__*/ (0, R.createContext)(null), pse = /*#__PURE__*/ (0, R.createContext)(null), zO = /*#__PURE__*/ (0, R.createContext)(null), BO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, fse);+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = dse({...e,validationBehavior: r- }), [a, o] = VE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zte({+ }), [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zte({...e,label: o,validationBehavior: r- }, i), f = RE({+ }, i), f = zE({...e,values: {orientation: e.orientation || "vertical",@@ -30174,7 +30174,7 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr},defaultClassName: "react-aria-RadioGroup"}), p = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(GE.div, {...H(p, f, s),ref: t,slot: e.slot || void 0,@@ -30183,39 +30183,39 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr"data-disabled": i.isDisabled || void 0,"data-readonly": i.isReadOnly || void 0,"data-required": i.isRequired || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [- [RO, i],- [QE, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [zO, i],+ [$E, {...c,ref: a,elementType: "span"}],- [rD, { slots: {+ [iD, { slots: {description: l,errorMessage: u} }],- [iD, d]- ] }, /*#__PURE__*/ R.createElement(ZD, null, f.children)));-}), BO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [aD, d]+ ] }, /*#__PURE__*/ R.createElement(QD, null, f.children)));+}), VO = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = BE(r, t, mse);- let i = R.useContext(RO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xte({- ...HE(e),+ [e, t] = VE(r, t, pse);+ let i = R.useContext(zO), a = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xte({+ ...UE(e),children: typeof e.children == "function" || e.children}, i, a);- return /*#__PURE__*/ R.createElement(VO.Provider, { value: {+ return /*#__PURE__*/ R.createElement(HO.Provider, { value: {...o,inputRef: a,defaultClassName: "react-aria-Radio"- } }, /*#__PURE__*/ R.createElement(hse, {+ } }, /*#__PURE__*/ R.createElement(mse, {...e,ref: t}));-}), VO = /*#__PURE__*/ (0, R.createContext)(null), hse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(VO), l = R.useContext(RO), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({+}), HO = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, R.useContext)(HO), l = R.useContext(zO), { isFocused: u, isFocusVisible: d, focusProps: f } = cy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = fy({...e,isDisabled: p- }), g = RE({+ }), g = zE({...e,defaultClassName: s,values: {@@ -30230,7 +30230,7 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.crisRequired: l.isRequired}}), _ = jg(e, { global: !0 });- return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(WE.label, {+ return delete _.id, delete _.onClick, /*#__PURE__*/ R.createElement(GE.label, {...H(_, n, m, g),ref: t,"data-selected": i || void 0,@@ -30249,8 +30249,8 @@ var pse = /*#__PURE__*/ (0, R.createContext)(null), mse = /*#__PURE__*/ (0, R.cr});//#endregion//#region node_modules/react-stately/dist/private/select/useSelectState.mjs-function gse(e) {- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = hO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [+function hse(e) {+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = gO(e), [i, a] = (0, R.useState)(null), o = (0, R.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [e.defaultValue,e.defaultSelectedKey,t@@ -30266,12 +30266,12 @@ function gse(e) {let e = [];Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);}- }, d = lO({+ }, d = uO({...e,selectionMode: t,disallowEmptySelection: t === "single",allowDuplicateSelectionEvents: !0,- selectedKeys: (0, R.useMemo)(() => _se(l), [l]),+ selectedKeys: (0, R.useMemo)(() => gse(l), [l]),onSelectionChange: (e) => {if (e !== "all") {if (t === "single") {@@ -30308,16 +30308,16 @@ function gse(e) {setFocused: g};}-function _se(e) {+function gse(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 vse(e) {+function _se(e) {return e && e.__esModule ? e.default : e;}-var HO = /*#__PURE__*/ (0, R.createContext)(null), UO = /*#__PURE__*/ (0, R.createContext)(null), yse = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, HO);+var UO = /*#__PURE__*/ (0, R.createContext)(null), WO = /*#__PURE__*/ (0, R.createContext)(null), vse = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, UO);let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, R.useMemo)(() => typeof n == "function" ? n({isOpen: !1,isDisabled: r,@@ -30332,24 +30332,24 @@ var HO = /*#__PURE__*/ (0, R.createContext)(null), UO = /*#__PURE__*/ (0, R.creai,a]);- return /*#__PURE__*/ R.createElement(Qh, { content: o }, (n) => /*#__PURE__*/ R.createElement(xse, {+ return /*#__PURE__*/ R.createElement(Qh, { content: o }, (n) => /*#__PURE__*/ R.createElement(bse, {props: e,collection: n,selectRef: t}));-}), bse = [- QE,+}), yse = [$E,- rD+ eD,+ iD];-function xse({ props: e, selectRef: t, collection: n }) {- let { validationBehavior: r } = zE(aD) || {}, i = e.validationBehavior ?? r ?? "native", a = gse({+function bse({ props: e, selectRef: t, collection: n }) {+ let { validationBehavior: r } = BE(oD) || {}, i = e.validationBehavior ?? r ?? "native", a = hse({...e,collection: n,children: void 0,validationBehavior: i- }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = VE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Qte({- ...HE(e),+ }), { isFocusVisible: o, focusProps: s } = cy({ within: !0 }), c = (0, R.useRef)(null), [l, u] = HE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Qte({+ ...UE(e),label: u,validationBehavior: i}, a, c), y = (0, R.useMemo)(() => ({@@ -30366,48 +30366,48 @@ function xse({ props: e, selectRef: t, collection: n }) {e.isDisabled,v.isInvalid,e.isRequired- ]), b = RE({+ ]), b = zE({...e,values: y,defaultClassName: "react-aria-Select"}), x = jg(e, { global: !0 });delete x.id;let S = (0, R.useRef)(null);- return /*#__PURE__*/ R.createElement(LE, { values: [- [HO, e],- [UO, a],- [WO, p],- [QE, {+ return /*#__PURE__*/ R.createElement(RE, { values: [+ [UO, e],+ [WO, a],+ [GO, p],+ [$E, {...d,ref: l,elementType: "span"}],- [$E, {+ [eD, {...f,ref: c,isPressed: a.isOpen,autoFocus: e.autoFocus}],- [jO, a],- [yO, {+ [MO, a],+ [bO, {trigger: "Select",triggerRef: c,scrollRef: S,placement: "bottom start","aria-labelledby": m["aria-labelledby"],- clearContexts: bse+ clearContexts: yse}],- [fO, {+ [pO, {...m,ref: S}],- [pO, a],- [rD, { slots: {+ [mO, a],+ [iD, { slots: {description: h,errorMessage: g} }],- [iD, v]- ] }, /*#__PURE__*/ R.createElement(WE.div, {+ [aD, v]+ ] }, /*#__PURE__*/ R.createElement(GE.div, {...H(x, b, s),ref: t,slot: e.slot || void 0,@@ -30422,9 +30422,9 @@ function xse({ props: e, selectRef: t, collection: n }) {autoComplete: e.autoComplete})));}-for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, WO);- let n = (0, R.useContext)(UO), { placeholder: r } = zE(HO), i = n.selectedItems.map((e) => {+for (var GO = /*#__PURE__*/ (0, R.createContext)(null), xse = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, GO);+ let n = (0, R.useContext)(WO), { placeholder: r } = BE(UO), i = n.selectedItems.map((e) => {let t = e.props?.children;return typeof t == "function" && (t = t({isHovered: !1,@@ -30451,7 +30451,7 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(fa,o,i- ]), u = kg(vse(GD), "react-aria-components"), d = RE({+ ]), u = kg(_se(KD), "react-aria-components"), d = zE({...e,defaultChildren: l ?? r ?? u.format("selectPlaceholder"),defaultClassName: "react-aria-SelectValue",@@ -30463,32 +30463,32 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(fstate: n}}), f = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(WE.span, {+ return /*#__PURE__*/ R.createElement(GE.span, {ref: t,...f,...d,"data-placeholder": n.selectedItems.length === 0 || void 0- }, /*#__PURE__*/ R.createElement(rD.Provider, { value: void 0 }, d.children));-}), Cse = /*#__PURE__*/ (0, R.createContext)(null), GO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ }, /*#__PURE__*/ R.createElement(iD.Provider, { value: void 0 }, d.children));+}), Sse = /*#__PURE__*/ (0, R.createContext)(null), KO = /*#__PURE__*/ (0, R.createContext)(null), Cse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {let { inputRef: n = null, ...r } = e;- [e, t] = BE(r, t, Cse);- let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = tne({- ...HE(e),+ [e, t] = VE(r, t, Sse);+ let i = Rh((0, R.useMemo)(() => yh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = U_(e), o = ux({+ ...UE(e),children: typeof e.children == "function" || e.children}, a, i);- return /*#__PURE__*/ R.createElement(LE, { values: [[GO, a], [KO, {+ return /*#__PURE__*/ R.createElement(RE, { values: [[KO, a], [qO, {...o,inputRef: i,defaultClassName: "react-aria-Switch"- }]] }, /*#__PURE__*/ R.createElement(Tse, {+ }]] }, /*#__PURE__*/ R.createElement(wse, {...e,ref: t}));-}), KO = /*#__PURE__*/ (0, R.createContext)(null), Tse = /*#__PURE__*/ (0, R.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, R.useContext)(KO), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, R.useContext)(GO), { hoverProps: _, isHovered: v } = fy({+}), qO = /*#__PURE__*/ (0, R.createContext)(null), wse = /*#__PURE__*/ (0, R.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, R.useContext)(qO), { isFocused: f, isFocusVisible: p, focusProps: m } = cy(), h = a || o, g = (0, R.useContext)(KO), { hoverProps: _, isHovered: v } = fy({...e,isDisabled: h- }), y = RE({+ }), y = zE({...e,defaultClassName: u,values: {@@ -30504,7 +30504,7 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(fstate: g}}), b = jg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(WE.label, {+ return delete b.id, delete b.onClick, /*#__PURE__*/ R.createElement(GE.label, {...H(b, n, _, y),ref: t,slot: e.slot || void 0,@@ -30521,7 +30521,7 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(f...H(r, m),ref: l})), y.children);-}), qO = 10, JO = 5, Ese = class {+}), JO = 10, YO = 5, Tse = class {setup(e, t, n) {this.delegate = e, this.state = t, this.direction = n;}@@ -30531,7 +30531,7 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(f}resolveDropTarget(e, t, n, r) {let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;- if (Math.abs(a) > JO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > qO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {+ if (Math.abs(a) > YO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > JO && (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);@@ -30610,11 +30610,11 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(flastSwitchX: n});let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);- if (Math.abs(r - c.lastSwitchY) > JO && i) {+ if (Math.abs(r - c.lastSwitchY) > YO && 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 > qO && a) {+ if (l > JO && 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;}@@ -30629,7 +30629,7 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(fboundaryContext: null};}-}, Dse = class {+}, Ese = class {constructor(e) {this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];let t = (r) => {@@ -30699,8 +30699,8 @@ for (var WO = /*#__PURE__*/ (0, R.createContext)(null), Sse = /*#__PURE__*/ Gh(fgetChildren(e) {return this.keyMap.get(e)?.childNodes || [];}-}, YO = "row-header-column-" + Math.random().toString(36).slice(2), XO = "row-header-column-" + Math.random().toString(36).slice(2); YO === XO;) XO = "row-header-column-" + Math.random().toString(36).slice(2);-function ZO(e, t) {+}, XO = "row-header-column-" + Math.random().toString(36).slice(2), ZO = "row-header-column-" + Math.random().toString(36).slice(2); XO === ZO;) ZO = "row-header-column-" + Math.random().toString(36).slice(2);+function QO(e, t) {if (t.length === 0) return [];let n = [], r = /* @__PURE__ */ new Map();for (let i of t) {@@ -30784,13 +30784,13 @@ function ZO(e, t) {textValue: ""}));}-var Ose = class extends Dse {+var Dse = class extends Ese {constructor(e, t, n) {let r = /* @__PURE__ */ new Set(), i = null, a = [];if (n?.showSelectionCheckboxes) {let e = {type: "column",- key: YO,+ key: XO,value: null,textValue: "",level: 0,@@ -30805,7 +30805,7 @@ var Ose = class extends Dse {if (n?.showDragButtons) {let e = {type: "column",- key: XO,+ key: ZO,value: null,textValue: "",level: 0,@@ -30832,7 +30832,7 @@ var Ose = class extends Dse {for (let t of e.childNodes) c(t);};for (let t of e) c(t);- let l = ZO(s, a);+ let l = QO(s, a);if (l.forEach((e, t) => o.splice(t, 0, e)), super({columnCount: a.length,items: o,@@ -30893,8 +30893,8 @@ var Ose = class extends Dse {};//#endregion//#region node_modules/react-stately/dist/private/grid/useGridState.mjs-function kse(e) {- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || rO(e), i = (0, R.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;+function Ose(e) {+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || iO(e), i = (0, R.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);@@ -30905,7 +30905,7 @@ function kse(e) {}a(e, r);};- let o = (0, R.useMemo)(() => new aO(t, r), [t, r]), s = (0, R.useRef)(null);+ let o = (0, R.useMemo)(() => new oO(t, r), [t, r]), s = (0, R.useRef)(null);return (0, R.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;@@ -30944,11 +30944,11 @@ function kse(e) {}//#endregion//#region node_modules/react-stately/dist/private/table/useTableState.mjs-var Ase = {+var kse = {ascending: "descending",descending: "ascending"};-function jse(e) {+function Ase(e) {let [t, n] = (0, R.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, R.useMemo)(() => ({showSelectionCheckboxes: i && r !== "none",showDragButtons: a,@@ -30959,7 +30959,7 @@ function jse(e) {i,r,a- ]), c = cO(e, (0, R.useCallback)((e) => new Ose(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = kse({+ ]), c = lO(e, (0, R.useCallback)((e) => new Dse(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ose({...e,collection: c,disabledBehavior: e.disabledBehavior || "selection"@@ -30975,7 +30975,7 @@ function jse(e) {sort(t, n) {e.onSortChange?.({column: t,- direction: n ?? (e.sortDescriptor?.column === t ? Ase[e.sortDescriptor.direction] : "ascending")+ direction: n ?? (e.sortDescriptor?.column === t ? kse[e.sortDescriptor.direction] : "ascending")});},expandedKeys: d,@@ -30988,7 +30988,7 @@ function jse(e) {treeColumn: o};}-function Mse(e, t) {+function jse(e, t) {let n = (0, R.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);return {...e,@@ -30998,7 +30998,7 @@ function Mse(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Table.mjs-var Nse = class extends dp {+var Mse = class extends dp {withExpandedKeys(e) {let t = this.clone();return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;@@ -31013,7 +31013,7 @@ var Nse = class extends dp {}get body() {for (let e of this) if (e.type === "tablebody") return e;- return new ik(-2);+ return new ak(-2);}commit(e, t, n = !1) {this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];@@ -31039,7 +31039,7 @@ var Nse = class extends dp {for (let t of this.getChildren(e.key)) n(t);};for (let e of this.getChildren(this.head.key)) n(e);- if (this.headerRows = ZO(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 = QO(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;@@ -31120,11 +31120,11 @@ var Nse = class extends dp {return r.join(" ");}constructor(...e) {- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new tk(-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 nk(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();}-}, Pse = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.createContext)(null), QO = /*#__PURE__*/ (0, R.createContext)(null), $O = /*#__PURE__*/ (0, R.createContext)(null), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, Fse);- let n = rO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({+}, Nse = /*#__PURE__*/ (0, R.createContext)(null), Pse = /*#__PURE__*/ (0, R.createContext)(null), $O = /*#__PURE__*/ (0, R.createContext)(null), ek = /*#__PURE__*/ (0, R.createContext)(null), Fse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, Pse);+ let n = iO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, R.useMemo)(() => ({selectionBehavior: i === "none" ? null : r,selectionMode: i,disallowEmptySelection: a,@@ -31134,26 +31134,26 @@ var Nse = class extends dp {i,a,o- ]), c = /*#__PURE__*/ R.createElement(zse.Provider, { value: s }, /*#__PURE__*/ R.createElement(ug, e));+ ]), c = /*#__PURE__*/ R.createElement(Rse.Provider, { value: s }, /*#__PURE__*/ R.createElement(ug, e));return /*#__PURE__*/ R.createElement(Qh, {content: c,- createCollection: () => new Nse()- }, (r) => /*#__PURE__*/ R.createElement(Rse, {+ createCollection: () => new Mse()+ }, (r) => /*#__PURE__*/ R.createElement(Lse, {props: e,forwardedRef: t,selectionState: n,collection: r}));-}), Lse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}), Ise = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.table, {+ }) : /*#__PURE__*/ R.createElement(GE.table, {...e,ref: t});-}), ek = {+}), tk = {expand: {ltr: "ArrowRight",rtl: "ArrowLeft"@@ -31163,26 +31163,26 @@ var Nse = class extends dp {rtl: "ArrowRight"}};-function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {- [e, t] = BE(e, t, GE);- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Pse);+function Lse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {+ [e, t] = VE(e, t, KE);+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, R.useContext)(Nse);t = Rh((0, R.useMemo)(() => yh(t, c?.tableRef), [t, c?.tableRef]));let [l, u] = H_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);r = (0, R.useMemo)(() => r.withExpandedKeys(l), [r, l]);- let d = jse({+ let d = Ase({...s,collection: r,children: void 0,UNSAFE_selectionState: n,expandedKeys: l,onExpandedChange: u- }), f = Mse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(XE), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({+ }), f = jse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, R.useContext)(ZE), { dragAndDropHooks: _ } = e, { gridProps: v } = sne({...s,layoutDelegate: m,isVirtualized: p}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;(0, R.useRef)(b), (0, R.useRef)(x), (0, R.useEffect)(() => {}, [b, x]);- let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Cg(), [k] = (0, R.useState)(() => new Ese());+ let S, C, w, T = !1, E = null, D = (0, R.useRef)(null), { direction: O } = Cg(), [k] = (0, R.useState)(() => new Tse());if (b && _) {S = _.useDraggableCollectionState({collection: f.collection,@@ -31217,12 +31217,12 @@ function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {let t = C?.target;if (t && t.type === "item" && t.dropPosition === "on") {let n = d.collection.getItem(t.key);- (e.key === ek.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === ek.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);+ (e.key === tk.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === tk.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);}}}, C, t), T = C.isDropTarget({ type: "root" });}- let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = RE({+ let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = zE({...e,children: void 0,defaultClassName: "react-aria-Table",@@ -31239,18 +31239,18 @@ function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {width: "min-content"}));let F = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(LE, { values: [- [QO, f],- [$O, P],- [KD, {+ return /*#__PURE__*/ R.createElement(RE, { values: [+ [$O, f],+ [ek, P],+ [qD, {dragAndDropHooks: _,dragState: S,dropState: C}],- [qD, { render: Yse }],- [GE, null],- [KE, null]- ] }, /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(Lse, {+ [JD, { render: Jse }],+ [KE, null],+ [qE, null]+ ] }, /*#__PURE__*/ R.createElement(e_, null, /*#__PURE__*/ R.createElement(Ise, {...H(F, N, v, A, w?.collectionProps),style: te,ref: t,@@ -31260,31 +31260,31 @@ function Rse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {"data-drop-target": T || void 0,"data-focused": j || void 0,"data-focus-visible": M || void 0- }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(g, {+ }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(g, {collection: f.collection,scrollRef: c?.scrollRef ?? t,- persistedKeys: YD(y, _, C)+ persistedKeys: XD(y, _, C)})))), E);}-var zse = /*#__PURE__*/ (0, R.createContext)(null), tk = class extends op {+var Rse = /*#__PURE__*/ (0, R.createContext)(null), nk = class extends op {static {this.type = "tableheader";}-}, Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}, zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.thead, {+ }) : /*#__PURE__*/ R.createElement(GE.thead, {...e,ref: t});-}), nk = /*#__PURE__*/ sg(tk, (e, t) => {- let n = (0, R.useContext)(QO).collection, r = gp({+}), rk = /*#__PURE__*/ sg(nk, (e, t) => {+ let n = (0, R.useContext)($O).collection, r = gp({items: n.headerRows,children: (0, R.useCallback)((e) => {switch (e.type) {- case "headerrow": return /*#__PURE__*/ R.createElement(Hse, { item: e });+ case "headerrow": return /*#__PURE__*/ R.createElement(Vse, { item: e });default: throw Error("Unsupported node type in TableHeader: " + e.type);}}, [])@@ -31292,13 +31292,13 @@ var zse = /*#__PURE__*/ (0, R.createContext)(null), tk = class extends op {onHoverStart: e.onHoverStart,onHoverChange: e.onHoverChange,onHoverEnd: e.onHoverEnd- }), s = RE({+ }), s = zE({...e,children: void 0,defaultClassName: "react-aria-TableHeader",values: { isHovered: o }});- return /*#__PURE__*/ R.createElement(Bse, {+ return /*#__PURE__*/ R.createElement(zse, {...H(jg(e, { global: !0 }), i, a),...s,ref: t,@@ -31307,8 +31307,8 @@ var zse = /*#__PURE__*/ (0, R.createContext)(null), tk = class extends op {}, (e) => /*#__PURE__*/ R.createElement(ug, {dependencies: e.dependencies,items: e.columns-}, e.children)), Vse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);+}, e.children)), Bse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);return n ? /*#__PURE__*/ R.createElement("div", {...e,ref: t@@ -31317,41 +31317,41 @@ var zse = /*#__PURE__*/ (0, R.createContext)(null), tk = class extends op {ref: t});});-function Hse({ item: e }) {- let t = (0, R.useRef)(null), n = (0, R.useContext)(QO), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(XE), { rowProps: a } = dne({+function Vse({ item: e }) {+ let t = (0, R.useRef)(null), n = (0, R.useContext)($O), { isVirtualized: r, CollectionBranch: i } = (0, R.useContext)(ZE), { rowProps: a } = dne({node: e,isVirtualized: r}, n, t), { checkboxProps: o } = vne(n);- return /*#__PURE__*/ R.createElement(Vse, {+ return /*#__PURE__*/ R.createElement(Bse, {...a,ref: t- }, /*#__PURE__*/ R.createElement(LE, { values: [[oD, { slots: { selection: o } }], [sD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [[sD, { slots: { selection: o } }], [cD, { slots: { selection: o } }]] }, /*#__PURE__*/ R.createElement(i, {collection: n.collection,parent: e})));}-var Use = class extends op {+var Hse = class extends op {static {this.type = "column";}-}, Wse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}, Use = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.th, {+ }) : /*#__PURE__*/ R.createElement(GE.th, {...e,ref: t});-}), rk = /*#__PURE__*/ og(Use, (e, t, n) => {- let r = Rh(t), i = (0, R.useContext)(QO), { isVirtualized: a } = (0, R.useContext)(XE), { columnHeaderProps: o, isPressed: s } = une({+}), ik = /*#__PURE__*/ og(Hse, (e, t, n) => {+ let r = Rh(t), i = (0, R.useContext)($O), { isVirtualized: a } = (0, R.useContext)(ZE), { columnHeaderProps: o, isPressed: s } = une({node: n,isVirtualized: a,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, R.useContext)($O), f = !1;+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, R.useContext)(ek), f = !1;d && (f = d.resizingColumn === n.key);- let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = RE({+ let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = zE({...e,id: void 0,children: n.rendered,@@ -31378,7 +31378,7 @@ var Use = class extends op {width: d.getColumnWidth(n.key)});let _ = jg(e, { global: !0 });- return delete _.id, /*#__PURE__*/ R.createElement(Wse, {+ return delete _.id, /*#__PURE__*/ R.createElement(Use, {...H(_, o, u, p),...h,style: g,@@ -31390,28 +31390,28 @@ var Use = class extends op {"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__*/ R.createElement(LE, { values: [[Gse, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [[Wse, {column: n,triggerRef: r- }], [XE, JE]] }, h.children));-}), Gse = /*#__PURE__*/ (0, R.createContext)(null), ik = class extends sp {+ }], [ZE, YE]] }, h.children));+}), Wse = /*#__PURE__*/ (0, R.createContext)(null), ak = class extends sp {static {this.type = "tablebody";}-}, Kse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}, Gse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.tbody, {+ }) : /*#__PURE__*/ R.createElement(GE.tbody, {...e,ref: t});-}), ak = /*#__PURE__*/ sg(ik, (e, t, n) => {- let r = (0, R.useContext)(QO), { isVirtualized: i } = (0, R.useContext)(XE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(XE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(KD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {+}), ok = /*#__PURE__*/ sg(ak, (e, t, n) => {+ let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), a = r.collection, { CollectionBranch: o } = (0, R.useContext)(ZE), { dragAndDropHooks: s, dropState: c } = (0, R.useContext)(qD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {isDropTarget: u,isEmpty: d- }, p = RE({+ }, p = zE({...e,id: void 0,children: void 0,@@ -31420,25 +31420,25 @@ var Use = class extends op {}), 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__*/ R.createElement(sk, {+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ R.createElement(ck, {role: "row",...t,style: r- }, /*#__PURE__*/ R.createElement(lk, {+ }, /*#__PURE__*/ R.createElement(uk, {role: "rowheader",...n,style: r}, e.renderEmptyState(f)));}let { rowGroupProps: g } = nS(), _ = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(Kse, {+ return /*#__PURE__*/ R.createElement(Gse, {...H(_, p, g),ref: t,"data-empty": d || void 0- }, l && /*#__PURE__*/ R.createElement(ece, null), /*#__PURE__*/ R.createElement(o, {+ }, l && /*#__PURE__*/ R.createElement($se, null), /*#__PURE__*/ R.createElement(o, {collection: a,parent: n,- renderDropIndicator: JD(s, c)+ renderDropIndicator: YD(s, c)}), m);});(class extends sp {@@ -31446,7 +31446,7 @@ var Use = class extends op {this.type = "tablefooter";}});-var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qse = class extends op {+var sk = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), Kse = class extends op {static {this.type = "item";}@@ -31458,17 +31458,17 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs}return null;}-}, sk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}, ck = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.tr, {+ }) : /*#__PURE__*/ R.createElement(GE.tr, {...e,ref: t});-}), ck = /*#__PURE__*/ sg(qse, (e, t, n) => {- let r = Rh(t), i = (0, R.useContext)(QO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(KD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(XE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({+}), lk = /*#__PURE__*/ sg(Kse, (e, t, n) => {+ let r = Rh(t), i = (0, R.useContext)($O), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, R.useContext)(qD), { isVirtualized: c, CollectionBranch: l } = (0, R.useContext)(ZE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = mne({node: n,shouldSelectOnPressUp: !!o,isVirtualized: c@@ -31492,7 +31492,7 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs(0, R.useEffect)(() => {o && E.current;}, []);- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = RE({+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = zE({...k,id: void 0,defaultClassName: "react-aria-Row",@@ -31514,10 +31514,10 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qslevel: n.level + 1}}), N = jg(e, { global: !0 });- return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(sk, {+ return delete N.id, delete N.onClick, /*#__PURE__*/ R.createElement(R.Fragment, null, C && !C.isHidden && /*#__PURE__*/ R.createElement(ck, {role: "row",style: { height: 0 }- }, /*#__PURE__*/ R.createElement(lk, {+ }, /*#__PURE__*/ R.createElement(uk, {role: "gridcell",colSpan: i.collection.columnCount,style: { padding: 0 }@@ -31526,7 +31526,7 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs...T,...C.dropIndicatorProps,ref: w- }))), /*#__PURE__*/ R.createElement(sk, {+ }))), /*#__PURE__*/ R.createElement(ck, {...H(N, M, d, g, y, S?.dragProps, v),ref: r,"data-disabled": p.isDisabled || void 0,@@ -31542,17 +31542,17 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs"data-expanded": j || void 0,"data-has-child-items": A || void 0,"data-level": n.level + 1- }, /*#__PURE__*/ R.createElement(LE, { values: [- [oD, { slots: {- [IE]: {},+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [sD, { slots: {+ [LE]: {},selection: x} }],- [sD, { slots: {- [IE]: {},+ [cD, { slots: {+ [LE]: {},selection: x} }],- [$E, { slots: {- [IE]: {},+ [eD, { slots: {+ [LE]: {},chevron: f,drag: {...S?.dragButtonProps,@@ -31560,8 +31560,8 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qsstyle: { pointerEvents: "none" }}} }],- [QD, { isSelected: p.isSelected }],- [ok, { isFocusVisibleWithinRow: _ }]+ [$D, { isSelected: p.isSelected }],+ [sk, { isFocusVisibleWithinRow: _ }]] }, /*#__PURE__*/ R.createElement(l, {collection: i.collection,parent: n@@ -31574,21 +31574,21 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qsitems: e.columns,idScope: e.id}, e.children);-}), Jse = class extends op {+}), qse = class extends op {static {this.type = "cell";}-}, lk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}, uk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.td, {+ }) : /*#__PURE__*/ R.createElement(GE.td, {...e,ref: t});-}), uk = /*#__PURE__*/ og(Jse, (e, t, n) => {- let r = Rh(t), i = (0, R.useContext)(QO), { dragState: a } = (0, R.useContext)(KD), { isVirtualized: o } = (0, R.useContext)(XE);+}), dk = /*#__PURE__*/ og(qse, (e, t, n) => {+ let r = Rh(t), i = (0, R.useContext)($O), { dragState: a } = (0, R.useContext)(qD), { isVirtualized: o } = (0, R.useContext)(ZE);n.column = i.collection.columns[n.index];let { gridCellProps: s, isPressed: c } = cne({node: n,@@ -31596,7 +31596,7 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qsisVirtualized: o,focusMode: e.focusMode,allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(ok), 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 = RE({+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = cy(), { hoverProps: f, isHovered: p } = fy({}), { isFocusVisibleWithinRow: m } = (0, R.useContext)(sk), 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 = zE({...e,id: void 0,defaultClassName: "react-aria-Cell",@@ -31616,7 +31616,7 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qsisTreeColumn: n.column.key === i.treeColumn}}), S = jg(e, { global: !0 });- return delete S.id, /*#__PURE__*/ R.createElement(lk, {+ return delete S.id, /*#__PURE__*/ R.createElement(uk, {...H(S, x, s, d, f),ref: r,"data-focused": l || void 0,@@ -31630,14 +31630,14 @@ var ok = /*#__PURE__*/ (0, R.createContext)({ isFocusVisibleWithinRow: !1 }), qs"data-level": _.level + 1,"data-tree-column": n.column.key === i.treeColumn || void 0,"data-disabled": b || void 0- }, /*#__PURE__*/ R.createElement(XE.Provider, { value: JE }, x.children));+ }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, x.children));});-function Yse(e, t) {+function Jse(e, t) {t = Rh(t);- let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(KD), i = (0, R.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);+ let { dragAndDropHooks: n, dropState: r } = (0, R.useContext)(qD), i = (0, R.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__*/ R.createElement($se, {+ return /*#__PURE__*/ R.createElement(Qse, {...e,dropIndicatorProps: a,isDropTarget: s,@@ -31646,40 +31646,40 @@ function Yse(e, t) {ref: t});}-var Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+var Yse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.tr, {+ }) : /*#__PURE__*/ R.createElement(GE.tr, {...e,ref: t});-}), Zse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, R.useContext)(XE);- return n ? /*#__PURE__*/ R.createElement(WE.div, {+}), Xse = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, R.useContext)(ZE);+ return n ? /*#__PURE__*/ R.createElement(GE.div, {...e,ref: t- }) : /*#__PURE__*/ R.createElement(WE.td, {+ }) : /*#__PURE__*/ R.createElement(GE.td, {...e,ref: t});});-function Qse(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)(QO), { visuallyHiddenProps: c } = K_(), l = RE({+function Zse(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, R.useContext)($O), { visuallyHiddenProps: c } = K_(), l = zE({...o,defaultClassName: "react-aria-DropIndicator",defaultStyle: { "--table-row-level": a + 1 },values: { isDropTarget: r }});- return /*#__PURE__*/ R.createElement(Xse, {+ return /*#__PURE__*/ R.createElement(Yse, {...jg(e, { global: !0 }),...l,role: "row",ref: t,"data-drop-target": r || void 0,"aria-level": a- }, /*#__PURE__*/ R.createElement(Zse, {+ }, /*#__PURE__*/ R.createElement(Xse, {role: "gridcell",colSpan: s.collection.columnCount,style: { padding: 0 }@@ -31690,14 +31690,14 @@ function Qse(e, t) {ref: i}), l.children));}-var $se = /*#__PURE__*/ (0, R.forwardRef)(Qse);-function ece() {- let e = (0, R.useContext)(QO), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(KD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = K_();- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(sk, {+var Qse = /*#__PURE__*/ (0, R.forwardRef)(Zse);+function $se() {+ let e = (0, R.useContext)($O), { dragAndDropHooks: t, dropState: n } = (0, R.useContext)(qD), r = (0, R.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = K_();+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ R.createElement(ck, {role: "row","aria-hidden": i["aria-hidden"],style: { height: 0 }- }, /*#__PURE__*/ R.createElement(lk, {+ }, /*#__PURE__*/ R.createElement(uk, {role: "gridcell",colSpan: e.collection.columnCount,style: { padding: 0 }@@ -31709,8 +31709,8 @@ function ece() {})));}og(cp, function(e, t, n) {- let r = (0, R.useContext)(QO), { isVirtualized: i } = (0, R.useContext)(XE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);- dO((0, R.useMemo)(() => ({+ let r = (0, R.useContext)($O), { isVirtualized: i } = (0, R.useContext)(ZE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, R.useRef)(null);+ fO((0, R.useMemo)(() => ({onLoadMore: o,collection: r?.collection,sentinelRef: u,@@ -31720,7 +31720,7 @@ og(cp, function(e, t, n) {s,r?.collection]), u);- let d = RE({+ let d = zE({...c,id: void 0,children: n.rendered,@@ -31728,10 +31728,10 @@ og(cp, function(e, t, n) {defaultStyle: { "--table-row-level": n.level + 1 },values: void 0}), f = {}, p = {}, m = {};- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(sk, {+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ R.createElement(R.Fragment, null, /*#__PURE__*/ R.createElement(ck, {style: { height: 0 },- inert: eO(!0)- }, /*#__PURE__*/ R.createElement(lk, { style: {+ inert: tO(!0)+ }, /*#__PURE__*/ R.createElement(uk, { style: {padding: 0,border: 0} }, /*#__PURE__*/ R.createElement("div", {@@ -31742,14 +31742,14 @@ og(cp, function(e, t, n) {height: 1,width: 1}- }))), a && d.children && /*#__PURE__*/ R.createElement(sk, {+ }))), a && d.children && /*#__PURE__*/ R.createElement(ck, {...H(jg(e, { global: !0 }), f),...d,role: "row",ref: t,"aria-level": n.level + 1,"data-level": n.level + 1- }, /*#__PURE__*/ R.createElement(lk, {+ }, /*#__PURE__*/ R.createElement(uk, {role: "rowheader",...p,style: m@@ -31757,8 +31757,8 @@ og(cp, function(e, t, n) {});//#endregion//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs-function tce(e) {- let [t, n] = H_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = lO({+function ece(e) {+ let [t, n] = H_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, R.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = uO({...e,selectionMode: "single",disallowEmptySelection: !0,@@ -31781,24 +31781,24 @@ function tce(e) {}//#endregion//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs-function nce(e) {- let t = tce({+function tce(e) {+ let t = ece({...e,onSelectionChange: e.onSelectionChange ? (t) => {t != null && e.onSelectionChange?.(t);} : void 0,suppressTextValueWarning: !0,- defaultSelectedKey: e.defaultSelectedKey ?? dk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0+ defaultSelectedKey: e.defaultSelectedKey ?? fk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, R.useRef)(i);return (0, R.useEffect)(() => {let o = i;- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = dk(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 = fk(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 dk(e, t) {+function fk(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);@@ -31808,20 +31808,20 @@ function dk(e, t) {}//#endregion//#region node_modules/react-aria-components/dist/private/Tabs.mjs-var fk = /*#__PURE__*/ (0, R.createContext)(null), pk = /*#__PURE__*/ (0, R.createContext)(null), mk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- [e, t] = BE(e, t, fk);+var pk = /*#__PURE__*/ (0, R.createContext)(null), mk = /*#__PURE__*/ (0, R.createContext)(null), hk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ [e, t] = VE(e, t, pk);let { children: n, orientation: r = "horizontal" } = e;return n = (0, R.useMemo)(() => typeof n == "function" ? n({orientation: r,defaultChildren: null- }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qh, { content: n }, (n) => /*#__PURE__*/ R.createElement(rce, {+ }) : n, [n, r]), /*#__PURE__*/ R.createElement(Qh, { content: n }, (n) => /*#__PURE__*/ R.createElement(nce, {props: e,collection: n,tabsRef: t}));});-function rce({ props: e, tabsRef: t, collection: n }) {- let { orientation: r = "horizontal" } = e, i = nce({+function nce({ props: e, tabsRef: t, collection: n }) {+ let { orientation: r = "horizontal" } = e, i = tce({...e,collection: n,children: void 0@@ -31833,12 +31833,12 @@ function rce({ props: e, tabsRef: t, collection: n }) {r,o,s- ]), l = RE({+ ]), l = zE({...e,defaultClassName: "react-aria-Tabs",values: c}), u = jg(e, { global: !0 });- return /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(GE.div, {...H(u, l, a),ref: t,slot: e.slot || void 0,@@ -31846,20 +31846,20 @@ function rce({ props: e, tabsRef: t, collection: n }) {"data-orientation": r,"data-focus-visible": s || void 0,"data-disabled": i.isDisabled || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [[fk, e], [pk, i]] }, l.children));+ }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, e], [mk, i]] }, l.children));}-var hk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {- return (0, R.useContext)(pk) ? /*#__PURE__*/ R.createElement(ice, {+var gk = /*#__PURE__*/ (0, R.forwardRef)(function(e, t) {+ return (0, R.useContext)(mk) ? /*#__PURE__*/ R.createElement(rce, {props: e,forwardedRef: t}) : /*#__PURE__*/ R.createElement(ug, e);});-function ice({ props: e, forwardedRef: t }) {- let n = (0, R.useContext)(pk), { CollectionRoot: r } = (0, R.useContext)(XE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = zE(fk), o = Rh(t), { tabListProps: s } = xne({+function rce({ props: e, forwardedRef: t }) {+ let n = (0, R.useContext)(mk), { CollectionRoot: r } = (0, R.useContext)(ZE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = BE(pk), o = Rh(t), { tabListProps: s } = xne({...e,orientation: i,keyboardActivation: a- }, n, o), c = RE({+ }, n, o), c = zE({...e,children: null,defaultClassName: "react-aria-TabList",@@ -31868,21 +31868,21 @@ function ice({ props: e, forwardedRef: t }) {state: n}}), l = jg(e, { global: !0 });- return delete l.id, /*#__PURE__*/ R.createElement(WE.div, {+ return delete l.id, /*#__PURE__*/ R.createElement(GE.div, {...H(l, c, s),ref: o,"data-orientation": i || void 0- }, /*#__PURE__*/ R.createElement(ZD, null, /*#__PURE__*/ R.createElement(r, {+ }, /*#__PURE__*/ R.createElement(QD, null, /*#__PURE__*/ R.createElement(r, {collection: n.collection,- persistedKeys: ZE(n.selectionManager.focusedKey)+ persistedKeys: QE(n.selectionManager.focusedKey)})));}-var gk = /*#__PURE__*/ og(class extends op {+var _k = /*#__PURE__*/ og(class extends op {static {this.type = "item";}}, (e, t, n) => {- let r = (0, R.useContext)(pk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({+ let r = (0, R.useContext)(mk), i = Rh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = yne({key: n.key,...e}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({@@ -31890,7 +31890,7 @@ var gk = /*#__PURE__*/ og(class extends op {onHoverStart: e.onHoverStart,onHoverEnd: e.onHoverEnd,onHoverChange: e.onHoverChange- }), m = RE({+ }), m = zE({...e,id: void 0,children: n.rendered,@@ -31903,7 +31903,7 @@ var gk = /*#__PURE__*/ og(class extends op {isPressed: c,isHovered: p}- }), h = n.props.href ? WE.a : WE.div, g = jg(e, { global: !0 });+ }), h = n.props.href ? GE.a : GE.div, g = jg(e, { global: !0 });return delete g.id, delete g.onClick, /*#__PURE__*/ R.createElement(h, {...H(g, m, a, l, f),ref: i,@@ -31913,26 +31913,26 @@ var gk = /*#__PURE__*/ og(class extends op {"data-focus-visible": d || void 0,"data-pressed": c || void 0,"data-hovered": p || void 0- }, /*#__PURE__*/ R.createElement(QD.Provider, { value: { isSelected: o } }, m.children));-}), _k = /*#__PURE__*/ Gh(function(e, t) {- let n = (0, R.useContext)(pk), r = Rh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);+ }, /*#__PURE__*/ R.createElement($D.Provider, { value: { isSelected: o } }, m.children));+}), vk = /*#__PURE__*/ Gh(function(e, t) {+ let n = (0, R.useContext)(mk), r = Rh(t), i = n.selectedKey === e.id, [a, o] = (0, R.useState)(n.selectedKey == null ? null : i);a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);- let s = _O(r, i);- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ace, {+ let s = vO(r, i);+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ R.createElement(ice, {...e,tabPanelRef: r,isInitiallySelected: a || !1,isExiting: s});});-function ace(e) {- let t = (0, R.useContext)(pk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = gO(r) && !i, p = RE({+function ice(e) {+ let t = (0, R.useContext)(mk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Sne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = cy(), d = t.selectedKey === e.id, f = _O(r) && !i, p = zE({...e,defaultClassName: "react-aria-TabPanel",values: {isFocused: l,isFocusVisible: u,- isInert: eO(!d),+ isInert: tO(!d),isEntering: f,isExiting: a,state: t@@ -31940,31 +31940,31 @@ function ace(e) {}), m = jg(o, { global: !0 });delete m.id;let h = d ? H(m, s, c, p) : H(m, p);- return /*#__PURE__*/ R.createElement(WE.div, {+ return /*#__PURE__*/ R.createElement(GE.div, {...h,ref: r,"data-focused": l || void 0,"data-focus-visible": u || void 0,- inert: eO(!d || e.inert),+ inert: tO(!d || e.inert),"data-inert": d ? void 0 : "true","data-entering": f || void 0,"data-exiting": a || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [[fk, null], [pk, null]] }, /*#__PURE__*/ R.createElement(XE.Provider, { value: JE }, p.children)));+ }, /*#__PURE__*/ R.createElement(RE, { values: [[pk, null], [mk, null]] }, /*#__PURE__*/ R.createElement(ZE.Provider, { value: YE }, p.children)));}//#endregion//#region node_modules/react-aria-components/dist/private/TextArea.mjs-var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.createContext)(null), cce = /*#__PURE__*/ Gh(function(e, t) {- [e, t] = BE(e, t, sce);- let { validationBehavior: n } = zE(aD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);- [e, i] = BE(e, i, KE);- let [a, o] = VE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = tte({- ...HE(e),+var ace = /*#__PURE__*/ (0, R.createContext)({}), oce = /*#__PURE__*/ (0, R.createContext)(null), sce = /*#__PURE__*/ Gh(function(e, t) {+ [e, t] = VE(e, t, oce);+ let { validationBehavior: n } = BE(oD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, R.useRef)(null);+ [e, i] = VE(e, i, qE);+ let [a, o] = HE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, R.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = tte({+ ...UE(e),inputElementType: s,label: o,validationBehavior: r}, i), m = (0, R.useCallback)((e) => {i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");- }, [i]), h = RE({+ }, [i]), h = zE({...e,values: {isDisabled: e.isDisabled || !1,@@ -31974,7 +31974,7 @@ var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.crea},defaultClassName: "react-aria-TextField"}), g = jg(e, { global: !0 });- return delete g.id, /*#__PURE__*/ R.createElement(WE.div, {+ return delete g.id, /*#__PURE__*/ R.createElement(GE.div, {...g,...h,ref: t,@@ -31983,38 +31983,38 @@ var oce = /*#__PURE__*/ (0, R.createContext)({}), sce = /*#__PURE__*/ (0, R.crea"data-invalid": p.isInvalid || void 0,"data-readonly": e.isReadOnly || void 0,"data-required": e.isRequired || void 0- }, /*#__PURE__*/ R.createElement(LE, { values: [- [QE, {+ }, /*#__PURE__*/ R.createElement(RE, { values: [+ [$E, {...l,ref: a}],- [uD, {+ [dD, {...u,ref: m}],- [oce, {+ [ace, {...u,ref: m}],- [lD, {+ [uD, {role: "presentation",isInvalid: p.isInvalid,isDisabled: e.isDisabled || !1}],- [rD, { slots: {+ [iD, { slots: {description: d,errorMessage: f} }],- [iD, p]+ [aD, p]] }, h.children));});//#endregion//#region src/react/boardui/components/base/input/label.tsx-function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, B.jsxs)(xoe, {+function cce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, B.jsxs)(boe, {"data-label": "true",...a,- className: CE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),+ className: wE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),children: [i,e && /* @__PURE__ */ (0, B.jsx)("span", {@@ -32022,7 +32022,7 @@ function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childclassName: "text-body-medium text-text-error-primary",children: "*"}),- n && /* @__PURE__ */ (0, B.jsx)(oae, {+ n && /* @__PURE__ */ (0, B.jsx)(aae, {className: "size-4 shrink-0 text-foreground-icon-quaternary","aria-hidden": !0})@@ -32031,33 +32031,33 @@ function lce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, child}//#endregion//#region src/react/boardui/components/base/input/hint-text.tsx-function uce({ isInvalid: e = !1, className: t, ...n }) {- return /* @__PURE__ */ (0, B.jsx)(Toe, {+function lce({ isInvalid: e = !1, className: t, ...n }) {+ return /* @__PURE__ */ (0, B.jsx)(woe, {slot: e ? "errorMessage" : "description",...n,- className: CE("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)+ className: wE("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 vk = (0, R.createContext)({});-function yk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, B.jsx)(vk.Provider, {+var yk = (0, R.createContext)({});+function bk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, B.jsx)(yk.Provider, {value: {size: e,fieldClassName: t,inputClassName: n},- children: /* @__PURE__ */ (0, B.jsx)(cce, {+ children: /* @__PURE__ */ (0, B.jsx)(sce, {...a,"data-input-size": e,- className: CE("group flex h-max w-full flex-col items-start gap-1", r),+ className: wE("group flex h-max w-full flex-col items-start gap-1", r),children: i})});}-yk.displayName = "TextField";-var bk = wE({+bk.displayName = "TextField";+var xk = TE({field: ["relative flex w-full items-center","rounded-2lg",@@ -32086,44 +32086,44 @@ var bk = wE({].join(" "),icon: "size-5 shrink-0"});-function xk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, R.useContext)(vk), u = e ?? l.size ?? "medium", d = r != null;- return /* @__PURE__ */ (0, B.jsx)(Aoe, {+function Sk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, R.useContext)(yk), u = e ?? l.size ?? "medium", d = r != null;+ return /* @__PURE__ */ (0, B.jsx)(koe, {ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => CE(bk.field, d ? bk.fieldWithAddonSize[u] : bk.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 }) => wE(xk.field, d ? xk.fieldWithAddonSize[u] : xk.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, B.jsxs)("div", {- className: bk.content,+ className: xk.content,children: [/* @__PURE__ */ (0, B.jsxs)("div", {- className: bk.leftSection,+ className: xk.leftSection,children: [d ? r : t ? /* @__PURE__ */ (0, B.jsx)(t, {- className: bk.icon,+ className: xk.icon,"aria-hidden": !0- }) : null, /* @__PURE__ */ (0, B.jsx)(Moe, {+ }) : null, /* @__PURE__ */ (0, B.jsx)(joe, {ref: o,...c,- className: CE(bk.input, l.inputClassName, a)+ className: wE(xk.input, l.inputClassName, a)})]}), n ? /* @__PURE__ */ (0, B.jsx)(n, {- className: bk.icon,+ className: xk.icon,"aria-hidden": !0}) : null]})});}-xk.displayName = "InputBase";-function Sk({ 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, B.jsx)(yk, {+Sk.displayName = "InputBase";+function Ck({ 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, B.jsx)(bk, {...d,className: u,"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- e && /* @__PURE__ */ (0, B.jsx)(lce, {+ e && /* @__PURE__ */ (0, B.jsx)(cce, {isRequired: u,isInvalid: d,tooltip: n,children: e}),- /* @__PURE__ */ (0, B.jsx)(xk, {+ /* @__PURE__ */ (0, B.jsx)(Sk, {ref: c,groupRef: l,placeholder: r,@@ -32132,17 +32132,17 @@ function Sk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, traleadingAddon: o,fieldClassName: s}),- t && /* @__PURE__ */ (0, B.jsx)(uce, {+ t && /* @__PURE__ */ (0, B.jsx)(lce, {isInvalid: d,children: t})] })});}-Sk.displayName = "Input";+Ck.displayName = "Input";//#endregion//#region src/react/boardui/components/base/dropdown/menu-styles.ts-var Ck = [+var wk = ["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",@@ -32150,10 +32150,10 @@ var Ck = ["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(" "), dce = "w-[266px]", fce = "flex w-full flex-col gap-1 outline-none", wk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Tk = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";+].join(" "), uce = "w-[266px]", dce = "flex w-full flex-col gap-1 outline-none", Tk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Ek = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";//#endregion//#region src/react/boardui/components/foundations/icons/chevrons.tsx-function pce(e) {+function fce(e) {return /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -32167,7 +32167,7 @@ function pce(e) {})});}-function mce(e) {+function pce(e) {return /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 24 24",fill: "none",@@ -32181,7 +32181,7 @@ function mce(e) {}//#endregion//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts-function hce(e, t, n) {+function mce(e, t, n) {(0, R.useEffect)(() => {if (!e) return;let r = (e) => {@@ -32195,7 +32195,7 @@ function hce(e, t, n) {n]);}-function gce(e, t) {+function hce(e, t) {let n = (0, R.useRef)(!1);return (0, R.useEffect)(() => {if (!e) return;@@ -32209,33 +32209,33 @@ function gce(e, t) {}//#endregion//#region src/react/boardui/components/base/select/select.tsx-var Ek = (0, R.createContext)("md");-function Dk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+var Dk = (0, R.createContext)("md");+function Ok({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {let l = (0, R.useRef)(null), u = (0, R.useRef)(null), [d, f] = (0, R.useState)(!1);- hce(d, () => f(!1), [l, u]);- let p = gce(d, l);- return /* @__PURE__ */ (0, B.jsx)(yse, {+ mce(d, () => f(!1), [l, u]);+ let p = hce(d, l);+ return /* @__PURE__ */ (0, B.jsx)(vse, {ref: s,...c,isOpen: d,onOpenChange: (e) => p(e) && f(e),- className: CE("group flex flex-col", e),- children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(eD, {+ className: wE("group flex flex-col", e),+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)(tD, {ref: l,- className: CE("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, B.jsx)(Sse, {- className: CE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),+ className: wE("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, B.jsx)(xse, {+ className: wE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),children: o- }), /* @__PURE__ */ (0, B.jsx)(pce, { className: CE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(fce, { className: wE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, B.jsx)(SO, {ref: u,isNonModal: !0,offset: 4,- className: CE(dce, Ck, "p-2", n),- children: /* @__PURE__ */ (0, B.jsx)(Boe, {+ className: wE(uce, wk, "p-2", n),+ children: /* @__PURE__ */ (0, B.jsx)(zoe, {items: a,- className: CE(fce, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, B.jsx)(Ek.Provider, {+ className: wE(dce, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, B.jsx)(Dk.Provider, {value: r,children: i})@@ -32243,31 +32243,31 @@ function Dk({ className: e, triggerClassName: t, popoverClassName: n, size: r =})] })});}-function Ok({ className: e, children: t, ...n }) {- let r = (0, R.useContext)(Ek);- return /* @__PURE__ */ (0, B.jsx)(Uoe, {+function kk({ className: e, children: t, ...n }) {+ let r = (0, R.useContext)(Dk);+ return /* @__PURE__ */ (0, B.jsx)(Hoe, {...n,- className: (t) => CE(wk, 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) => wE(Tk, 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/boardui/components/application/settings/settings-rows.tsx-function kk({ className: e, children: t }) {+function Ak({ className: e, children: t }) {return /* @__PURE__ */ (0, B.jsx)("div", {- className: CE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),+ className: wE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),children: t});}-function Ak({ className: e, children: t }) {+function jk({ className: e, children: t }) {return /* @__PURE__ */ (0, B.jsx)("p", {- className: CE("w-full px-3 text-body-2-medium text-text-secondary", e),+ className: wE("w-full px-3 text-body-2-medium text-text-secondary", e),children: t});}-function jk({ label: e, description: t, children: n }) {+function Mk({ label: e, description: t, children: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {- className: CE("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: wE("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, B.jsxs)("div", {className: "flex min-w-0 flex-col",children: [/* @__PURE__ */ (0, B.jsx)("p", {@@ -32282,7 +32282,7 @@ function jk({ label: e, description: t, children: n }) {}//#endregion//#region src/react/boardui/components/base/buttons/link-button.tsx-var Mk = wE({+var Nk = TE({base: ["inline-flex items-center justify-center gap-1 whitespace-nowrap","font-sans select-none cursor-pointer rounded-sm",@@ -32306,15 +32306,15 @@ var Mk = wE({secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")}});-function Nk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {- let c = CE(Mk.base, Mk.size[t], Mk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [+function Pk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = wE(Nk.base, Nk.size[t], Nk.variant[e], a), l = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsx)(n, {- className: Mk.icon[t],+ className: Nk.icon[t],"aria-hidden": !0}) : null,i != null && /* @__PURE__ */ (0, B.jsx)("span", { children: i }),r ? /* @__PURE__ */ (0, B.jsx)(r, {- className: Mk.icon[t],+ className: Nk.icon[t],"aria-hidden": !0}) : null] });@@ -32341,14 +32341,14 @@ function Nk({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili}//#endregion//#region src/react/settings/section.tsx-function Pk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {+function Fk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {let a = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex w-full flex-wrap items-center justify-between gap-2",children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, B.jsx)(Ak, { children: e })+ children: /* @__PURE__ */ (0, B.jsx)(jk, { children: e })}), n]- }) : /* @__PURE__ */ (0, B.jsx)(Ak, { children: e }), /* @__PURE__ */ (0, B.jsx)(kk, { children: i })] });+ }) : /* @__PURE__ */ (0, B.jsx)(jk, { children: e }), /* @__PURE__ */ (0, B.jsx)(Ak, { children: i })] });return r ? /* @__PURE__ */ (0, B.jsx)("form", {id: t,"aria-label": e,@@ -32363,13 +32363,13 @@ function Pk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {children: a});}-function Fk({ children: e }) {+function Ik({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-col",children: e});}-function Ik({ divided: e = !1, children: t }) {+function Lk({ divided: e = !1, children: t }) {return e ? /* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",children: t@@ -32378,7 +32378,7 @@ function Ik({ divided: e = !1, children: t }) {children: t});}-function Lk({ status: e, children: t }) {+function Rk({ status: e, children: t }) {return /* @__PURE__ */ (0, B.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, B.jsx)("div", {@@ -32387,34 +32387,34 @@ function Lk({ status: e, children: t }) {}) : null, t]});}-function Rk({ role: e, children: t }) {+function zk({ role: e, children: t }) {return /* @__PURE__ */ (0, B.jsx)("p", {role: e,className: "text-body-2-regular text-text-secondary",children: t});}-function zk({ children: e }) {+function Bk({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("p", {role: "alert",className: "text-body-2-regular text-text-error-primary",children: e});}-function Bk({ children: e }) {+function Vk({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-medium text-text-primary",children: e});}-function Vk({ href: e, children: t, leadingIcon: n }) {- return /* @__PURE__ */ (0, B.jsx)(Nk, {+function Hk({ href: e, children: t, leadingIcon: n }) {+ return /* @__PURE__ */ (0, B.jsx)(Pk, {href: e,target: "_blank",rel: "noopener noreferrer",size: "small",leadingIcon: n,- trailingIcon: wT,+ trailingIcon: TT,className: "min-w-0 max-w-full",children: /* @__PURE__ */ (0, B.jsx)("span", {className: "min-w-0 whitespace-normal break-all",@@ -32422,13 +32422,13 @@ function Vk({ href: e, children: t, leadingIcon: n }) {})});}-function Hk({ children: e }) {+function Uk({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("dl", {className: "flex flex-col",children: e});}-function Uk({ term: e, children: t }) {+function Wk({ term: e, children: t }) {return /* @__PURE__ */ (0, B.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, B.jsx)("dt", {@@ -32440,7 +32440,7 @@ function Uk({ term: e, children: t }) {})]});}-function Wk({ summary: e, defaultOpen: t = !1, children: n }) {+function Gk({ summary: e, defaultOpen: t = !1, children: n }) {let r = (0, R.useId)(), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(t);return /* @__PURE__ */ (0, B.jsxs)("details", {ref: (e) => {@@ -32453,7 +32453,7 @@ function Wk({ summary: e, defaultOpen: t = !1, children: n }) {e.preventDefault(), !(!i.current || !a.current) && (Xe(i.current, a.current, !s), c(!s));},className: "flex w-fit 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: [/* @__PURE__ */ (0, B.jsx)(gT, {+ children: [/* @__PURE__ */ (0, B.jsx)(_T, {"aria-hidden": !0,className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"}), e]@@ -32468,7 +32468,7 @@ function Wk({ summary: e, defaultOpen: t = !1, children: n }) {})]});}-function _ce({ name: e }) {+function gce({ name: e }) {return /* @__PURE__ */ (0, B.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -32477,22 +32477,22 @@ function _ce({ name: e }) {children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })});}-function Gk({ mark: e }) {+function Kk({ mark: e }) {return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, B.jsx)("img", {src: e,alt: "",width: 16,height: 16,className: "size-4 shrink-0"- }) : /* @__PURE__ */ (0, B.jsx)(_ce, { name: e });+ }) : /* @__PURE__ */ (0, B.jsx)(gce, { name: e });}//#endregion//#region src/react/activity/tasks.ts-var Kk = "/api/tasks", qk = ["tasks"], vce = (e, t) => W(`${Kk}?${new URLSearchParams({+var qk = "/api/tasks", Jk = ["tasks"], _ce = (e, t) => W(`${qk}?${new URLSearchParams({before_finished_at: e.finished_at || "",before_id: String(e.id)})}`, t);-function Jk(...e) {+function Yk(...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) => {@@ -32500,26 +32500,26 @@ function Jk(...e) {return n === r ? t.id - e.id : n < r ? 1 : -1;});}-var yce = 2e3, bce = 1e4, xce = (e) => e?.running.length ? yce : bce, Yk = (e) => W(Kk, e);-async function Sce(e) {+var vce = 2e3, yce = 1e4, bce = (e) => e?.running.length ? vce : yce, Xk = (e) => W(qk, e);+async function xce(e) {await p.fetchQuery({- queryKey: qk,- queryFn: () => Yk(e)+ queryKey: Jk,+ queryFn: () => Xk(e)});}-var Xk = {+var Zk = {manual: "手动",scheduled: "定时",startup: "启动",cli: "命令行"-}, Cce = {+}, Sce = {pending: "排队中",running: "进行中",succeeded: "已完成",failed: "失败",cancelled: "已取消",interrupted: "被打断"-}, wce = (e) => Cce[e] || e, Tce = {+}, Cce = (e) => Sce[e] || e, wce = {checked: "已检查",total: "总数",scanned: "已扫描",@@ -32549,7 +32549,7 @@ var Xk = {source: "来源",cover_network: "封面连不上图片主机"};-function Ece(e) {+function Tce(e) {let t = /* @__PURE__ */ new Map();for (let n of e) {if (!n.followup_key || n.parent_run_id == null) continue;@@ -32558,7 +32558,7 @@ function Ece(e) {}return t;}-function Dce(e, t) {+function Ece(e, t) {let n = [], r = /* @__PURE__ */ new Map();for (let i of e) {if (!t(i)) {@@ -32580,19 +32580,19 @@ function Dce(e, t) {}return n;}-var Oce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Zk = (e) => e.status === "pending" || e.status === "running";-function kce(e) {+var Dce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Qk = (e) => e.status === "pending" || e.status === "running";+function Oce(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, e.error || eA(e.result_summary) || (Zk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");+ return [r, e.error || tA(e.result_summary) || (Qk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");}-function Qk(e) {+function $k(e) {if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";let t = Math.floor(e);if (t < 60) return `${t} 秒`;let n = Math.floor(t / 60);return n < 60 ? `${n} 分 ${t % 60} 秒` : `${Math.floor(n / 60)} 小时 ${n % 60} 分`;}-function $k(e) {+function eA(e) {if (!e) return "";let t = new Date(e);return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {@@ -32602,7 +32602,7 @@ function $k(e) {minute: "2-digit"});}-var Ace = /* @__PURE__ */ new Set([+var kce = /* @__PURE__ */ new Set(["blocked_by","status","run_id",@@ -32611,23 +32611,23 @@ var Ace = /* @__PURE__ */ new Set(["completed_at","finished_at"]);-function eA(e) {- return Object.entries(e || {}).filter(([e, t]) => !Ace.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Tce[e] || e} ${t}`).join(" · ");+function tA(e) {+ return Object.entries(e || {}).filter(([e, t]) => !kce.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${wce[e] || e} ${t}`).join(" · ");}//#endregion//#region src/react/activity/resource-search.tsx-function jce({ className: e }) {+function Ace({ className: e }) {return /* @__PURE__ */ (0, B.jsx)("span", {className: e,"aria-hidden": !0,dangerouslySetInnerHTML: { __html: Qe("") }});}-function Mce(e) {+function jce(e) {return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";}-function Nce({ initialCode: e, reason: t, choose: n }) {- let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => Mce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = FE(), v = () => {+function Mce({ initialCode: e, reason: t, choose: n }) {+ let [r, i] = (0, R.useState)(e), [a, o] = (0, R.useState)(() => jce(t)), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(""), [h, g] = (0, R.useState)(""), _ = IE(), v = () => {if (!r.trim() || _.busy) return;let e = new URLSearchParams({code: r.trim(),@@ -32644,17 +32644,17 @@ function Nce({ initialCode: e, reason: t, choose: n }) {"aria-busy": !!_.busy,className: "flex min-w-0 flex-col gap-4",children: [- t ? /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [+ t ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["版本目标:",t,"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"] }) : null,- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "搜索资源",value: r,maxLength: 80,placeholder: "输入番号,按回车搜索",- leadingIcon: _.busy ? jce : MT,+ leadingIcon: _.busy ? Ace : NT,isReadOnly: !!_.busy,"aria-busy": !!_.busy,onChange: i,@@ -32664,7 +32664,7 @@ function Nce({ initialCode: e, reason: t, choose: n }) {}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Dk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "优先寻找" }), /* @__PURE__ */ (0, B.jsxs)(Ok, {"aria-label": "优先寻找",selectedKey: a,isDisabled: !!_.busy,@@ -32672,15 +32672,15 @@ function Nce({ initialCode: e, reason: t, choose: n }) {e !== null && o(String(e));},children: [- /* @__PURE__ */ (0, B.jsx)(Ok, {+ /* @__PURE__ */ (0, B.jsx)(kk, {id: "quality",children: "高清"}),- /* @__PURE__ */ (0, B.jsx)(Ok, {+ /* @__PURE__ */ (0, B.jsx)(kk, {id: "chinese",children: "中字"}),- /* @__PURE__ */ (0, B.jsx)(Ok, {+ /* @__PURE__ */ (0, B.jsx)(kk, {id: "uncensored",children: "无码"})@@ -32689,33 +32689,33 @@ function Nce({ initialCode: e, reason: t, choose: n }) {}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex gap-3 max-sm:flex-col",- children: [/* @__PURE__ */ (0, B.jsx)(Sk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Ck, {label: "最小体积(GiB)",inputMode: "decimal",value: s,onChange: c- }), /* @__PURE__ */ (0, B.jsx)(Sk, {+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {label: "最大体积(GiB)",inputMode: "decimal",value: l,onChange: u})]}),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),- _.busy ? /* @__PURE__ */ (0, B.jsx)(Rk, {+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),+ _.busy ? /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: "正在搜索资源"}) : null,- _.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: _.error }) : null,- d?.error ? /* @__PURE__ */ (0, B.jsx)(Rk, {+ _.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: _.error }) : null,+ d?.error ? /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: d.error}) : null,- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(Rk, {+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: "没有符合条件的资源。"}) : null,- d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(Rk, { children: e }, e)),+ d?.warnings.map((e) => /* @__PURE__ */ (0, B.jsx)(zk, { children: e }, e)),d?.items.length ? /* @__PURE__ */ (0, B.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",children: d.items.map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {@@ -32725,7 +32725,7 @@ function Nce({ initialCode: e, reason: t, choose: n }) {className: "break-words text-body-2-medium text-text-primary",children: e.name}),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: [+ /* @__PURE__ */ (0, B.jsx)(zk, { children: [`${(e.size / 1024 ** 3).toFixed(2)} GiB`,`${e.seeders} 个做种`,e.resolution ? `${e.resolution}p` : "",@@ -32751,23 +32751,23 @@ function Nce({ initialCode: e, reason: t, choose: n }) {}//#endregion//#region src/react/activity/downloads-panel.tsx-var tA = "/api/downloads", nA = ["downloads"], Pce = "/api/downloads/cancel", Fce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Ice = {+var nA = "/api/downloads", rA = ["downloads"], Nce = "/api/downloads/cancel", Pce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Fce = {ingested: "lime",failed: "rose",cancelled: "yellow",stalled: "yellow"-}, Lce = {+}, Ice = {submitted: "已提交,远端开始下载后这里会显示进度。",adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",refused: "这个资源被判为违规,不再提交。",failed: "提交没有成功。"-}, Rce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, rA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";-function zce({ prefill: e }) {+}, Lce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, iA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";+function Rce({ prefill: e }) {let t = wS({- queryKey: nA,- queryFn: ({ signal: e }) => W(`${tA}?limit=50`, e),- refetchInterval: (e) => Fce(e.state.data)+ queryKey: rA,+ queryFn: ({ signal: e }) => W(`${nA}?limit=50`, e),+ refetchInterval: (e) => Pce(e.state.data)}), n = t.data;if (!n) return t.error ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",@@ -32779,7 +32779,7 @@ function zce({ prefill: e }) {tone: "error",children: U(t.error)}) : null,- n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(Bce, {+ n.available ? r.length ? /* @__PURE__ */ (0, B.jsx)(zce, {snapshot: n,prefill: e}) : /* @__PURE__ */ (0, B.jsx)(Y, {@@ -32792,15 +32792,15 @@ function zce({ prefill: e }) {n.tasks.length ? /* @__PURE__ */ (0, B.jsx)("ul", {"aria-live": "polite",className: "flex min-w-0 flex-col gap-3",- children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Hce, {+ children: n.tasks.map((e) => /* @__PURE__ */ (0, B.jsx)(Vce, {task: e,writable: n.available}, e.id))}) : null] });}-function Bce({ snapshot: e, prefill: t }) {- let n = cS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = FE(), h = (0, R.useRef)(null);+function zce({ snapshot: e, prefill: t }) {+ let n = cS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, R.useState)(r[0].key), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(t?.code ?? ""), [u, d] = (0, R.useState)(r[0].target), [f, p] = (0, R.useState)(null), m = IE(), h = (0, R.useRef)(null);(0, R.useEffect)(() => {t && h.current?.focus();}, [t]);@@ -32820,21 +32820,21 @@ function Bce({ snapshot: e, prefill: t }) {title: t?.title,origin: t?.origin};- p(null), m.run("submit", (e) => G(tA, r, "POST", e), (e) => {- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: nA });+ p(null), m.run("submit", (e) => G(nA, r, "POST", e), (e) => {+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: rA });});},- children: /* @__PURE__ */ (0, B.jsxs)(kk, { children: [- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- /* @__PURE__ */ (0, B.jsx)(Nce, {+ children: /* @__PURE__ */ (0, B.jsxs)(Ak, { children: [+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsx)(Mce, {initialCode: t?.code ?? "",reason: t?.searchReason,choose: (e, t) => {s(e), l(t), h.current?.focus();}}),- t?.title ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,- /* @__PURE__ */ (0, B.jsx)(Sk, {+ t?.title ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,+ /* @__PURE__ */ (0, B.jsx)(Ck, {ref: h,label: "磁力链接",placeholder: "magnet:?xt=urn:btih:…",@@ -32845,19 +32845,19 @@ function Bce({ snapshot: e, prefill: t }) {}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "下载到" }), /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "下载到",selectedKey: i,onSelectionChange: (e) => {e !== null && _(String(e));},- children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: r.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e.key,children: e.label}, e.key))})]}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "目标目录",placeholder: g.target || "/云下载",autoComplete: "off",@@ -32866,7 +32866,7 @@ function Bce({ snapshot: e, prefill: t }) {value: u,onChange: d}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "番号",placeholder: "可不填",autoComplete: "off",@@ -32875,15 +32875,15 @@ function Bce({ snapshot: e, prefill: t }) {onChange: l})] }),- f ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ f ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(Vce, { result: f })+ children: /* @__PURE__ */ (0, B.jsx)(Bce, { result: f })}) : null,- m.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ m.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: m.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: m.error })}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, {+ /* @__PURE__ */ (0, B.jsx)(Rk, {status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",@@ -32895,23 +32895,23 @@ function Bce({ snapshot: e, prefill: t }) {] })});}-function Vce({ result: e }) {- let t = rA(e.task), n = Lce[e.outcome];- return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(Rk, {+function Bce({ result: e }) {+ let t = iA(e.task), n = Ice[e.outcome];+ return e.outcome === "failed" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n }) : /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: n});}-function Hce({ task: e, writable: t }) {- let n = cS(), r = FE(), [i, a] = (0, R.useState)(!1), o = rA(e), s = e.state === "failed", c = [+function Vce({ task: e, writable: t }) {+ let n = cS(), r = IE(), [i, a] = (0, R.useState)(!1), o = iA(e), s = e.state === "failed", c = [e.provider_label,e.code,e.target,- $k(e.submitted_at)+ eA(e.submitted_at)].filter(Boolean).join(" · "), l = () => {- n.invalidateQueries({ queryKey: nA });+ n.invalidateQueries({ queryKey: rA });}, u = () => {- r.run("cancel", (t) => G(Pce, { id: e.id }, "POST", t), l);+ r.run("cancel", (t) => G(Nce, { id: e.id }, "POST", t), l);}, d = () => {let t = {magnet: e.source_uri,@@ -32921,14 +32921,14 @@ function Hce({ task: e, writable: t }) {title: e.title,origin: e.origin};- r.run("resubmit", (e) => G(tA, t, "POST", e), l);+ r.run("resubmit", (e) => G(nA, t, "POST", e), l);}, f = () => {navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));};return /* @__PURE__ */ (0, B.jsxs)("li", {"data-download-state": e.state,"data-download-id": e.id,- className: kE({+ className: AE({padding: "none",bordered: "line",className: s ? "flex flex-col border-border-error-default" : "flex flex-col"@@ -32940,9 +32940,9 @@ function Hce({ task: e, writable: t }) {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, B.jsx)("strong", {className: "min-w-0 break-words text-title-1-medium text-text-primary",- children: Rce(e)- }), /* @__PURE__ */ (0, B.jsx)(EE, {- color: Ice[e.state] ?? "neutral",+ children: Lce(e)+ }), /* @__PURE__ */ (0, B.jsx)(DE, {+ color: Fce[e.state] ?? "neutral",children: e.state_label})]}),@@ -32950,7 +32950,7 @@ function Hce({ task: e, writable: t }) {className: "min-w-0 break-words text-caption-1-regular text-text-secondary",children: c}),- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, B.jsx)(PE, {+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, B.jsx)(FE, {label: "远端下载进度",value: Math.round(e.progress * 100),max: 100@@ -32959,7 +32959,7 @@ function Hce({ task: e, writable: t }) {className: "min-w-0 break-all text-caption-1-regular text-text-secondary",children: e.ledger_path}) : null,- r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null,+ r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2 pt-1",children: [@@ -32997,23 +32997,23 @@ function Hce({ task: e, writable: t }) {}//#endregion//#region src/react/activity/activity-page.tsx-var Uce = {+var Hce = {succeeded: "lime",failed: "rose",cancelled: "yellow",interrupted: "yellow"};-function iA({ status: e }) {- return /* @__PURE__ */ (0, B.jsx)(EE, {- color: Uce[e] ?? "neutral",- children: wce(e)+function aA({ status: e }) {+ return /* @__PURE__ */ (0, B.jsx)(DE, {+ color: Hce[e] ?? "neutral",+ children: Cce(e)});}-function Wce({ rows: e }) {+function Uce({ rows: e }) {return /* @__PURE__ */ (0, B.jsx)("ul", {className: "flex min-w-0 flex-col",children: e.map((e) => {- let t = kce(e);+ let t = Oce(e);return /* @__PURE__ */ (0, B.jsxs)("li", {"data-status": e.status,"data-followup-key": e.followup_key,@@ -33023,7 +33023,7 @@ function Wce({ rows: e }) {className: "min-w-0 break-words text-caption-1-regular text-text-primary",children: e.task_label}),- /* @__PURE__ */ (0, B.jsx)(iA, { status: e.status }),+ /* @__PURE__ */ (0, B.jsx)(aA, { status: e.status }),t ? /* @__PURE__ */ (0, B.jsx)("span", {className: "min-w-0 break-words text-caption-1-regular text-text-secondary",children: t@@ -33033,12 +33033,12 @@ function Wce({ rows: e }) {})});}-function aA({ run: e, meta: t, children: n, footer: r, followups: i }) {+function oA({ run: e, meta: t, children: n, footer: r, followups: i }) {return /* @__PURE__ */ (0, B.jsxs)("li", {"data-status": e.status,"data-task-key": e.task_key,"data-run-id": e.id,- className: kE({+ className: AE({padding: "none",bordered: "line",className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"@@ -33052,7 +33052,7 @@ function aA({ run: e, meta: t, children: n, footer: r, followups: i }) {children: [/* @__PURE__ */ (0, B.jsx)("strong", {className: "min-w-0 break-words text-title-1-medium text-text-primary",children: e.task_label- }), /* @__PURE__ */ (0, B.jsx)(iA, { status: e.status })]+ }), /* @__PURE__ */ (0, B.jsx)(aA, { status: e.status })]}),/* @__PURE__ */ (0, B.jsx)("p", {className: "text-caption-1-regular text-text-secondary",@@ -33061,7 +33061,7 @@ function aA({ run: e, meta: t, children: n, footer: r, followups: i }) {n]}),- i?.length ? /* @__PURE__ */ (0, B.jsx)(Wce, { rows: i }) : null,+ i?.length ? /* @__PURE__ */ (0, B.jsx)(Uce, { rows: i }) : null,r ? /* @__PURE__ */ (0, B.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, B.jsx)("p", {@@ -33072,15 +33072,15 @@ function aA({ run: e, meta: t, children: n, footer: r, followups: i }) {]});}-function oA({ run: e, followups: t }) {- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Qk(e.elapsed_seconds), o = [Xk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, B.jsx)(aA, {+function Wce({ run: e, followups: t }) {+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = $k(e.elapsed_seconds), o = [Zk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");+ return /* @__PURE__ */ (0, B.jsx)(oA, {run: e,meta: o,followups: t,children: n > 0 ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, B.jsx)(PE, {+ children: [/* @__PURE__ */ (0, B.jsx)(FE, {label: i,value: r,max: n@@ -33095,20 +33095,20 @@ function oA({ run: e, followups: t }) {" 项"]})]- }) : /* @__PURE__ */ (0, B.jsx)(jE, { label: i })+ }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: i })});}function sA({ run: e, followups: t, runs: n }) {- let r = eA(e.result_summary), i = Qk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [- Xk[e.trigger] || e.trigger,+ let r = tA(e.result_summary), i = $k(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [+ Zk[e.trigger] || e.trigger,`近 ${n.length} 轮`,- `${$k(a.finished_at)} – ${$k(e.finished_at)}`+ `${eA(a.finished_at)} – ${eA(e.finished_at)}`] : [- Xk[e.trigger] || e.trigger,- $k(e.finished_at),+ Zk[e.trigger] || e.trigger,+ eA(e.finished_at),i && `用时 ${i}`]).filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, B.jsx)(aA, {+ return /* @__PURE__ */ (0, B.jsx)(oA, {run: e,meta: o,footer: e.error,@@ -33140,32 +33140,32 @@ function lA({ live: e = !1, children: t }) {}function Gce({ prefill: e }) {let t = wS({- queryKey: qk,- queryFn: ({ signal: e }) => Yk(e),- refetchInterval: (e) => xce(e.state.data)+ queryKey: Jk,+ queryFn: ({ signal: e }) => Xk(e),+ refetchInterval: (e) => bce(e.state.data)}), n = t.data, r = n?.finished, [i, a] = (0, R.useState)([]), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(r);- r !== c && (l(r), i.length && c && a(Jk(i, c)));+ r !== c && (l(r), i.length && c && a(Yk(i, c)));let u = DS({- mutationFn: ({ oldest: e }) => vce(e),+ mutationFn: ({ oldest: e }) => _ce(e),onSuccess: (e, { shown: t }) => {- a((n) => Jk(n, t, e.finished || [])), s(!!e.finished_has_more);+ a((n) => Yk(n, t, e.finished || [])), s(!!e.finished_has_more);}}), d = t.error ? U(t.error) : "";- if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: d || "读取任务中心失败"}) });- let f = Jk(n.finished || [], i), p = [+ let f = Yk(n.finished || [], i), p = [...n.running || [],...n.skipped || [],...f- ], m = Ece(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {+ ], m = Tce(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {!u.isPending && v && u.mutate({oldest: v,shown: f});- }, x = _.filter((e) => m.get(e.id)?.some(Zk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Dce(w, (e) => Oce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;- return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [+ }, x = _.filter((e) => m.get(e.id)?.some(Qk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Ece(w, (e) => Dce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [d ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: d@@ -33174,9 +33174,9 @@ function Gce({ prefill: e }) {tone: "warning",children: n.message || "账本上还没有任务中心的表"}) : null,- E ? /* @__PURE__ */ (0, B.jsx)(AE, {+ E ? /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: DT,+ icon: OT,title: "还没有任务记录",children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"}) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [@@ -33184,7 +33184,7 @@ function Gce({ prefill: e }) {title: "正在进行",children: S.length || x.length ? /* @__PURE__ */ (0, B.jsxs)(lA, {live: !0,- children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(oA, {+ children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Wce, {run: e,followups: m.get(e.id)}, e.id)), x.map((e) => /* @__PURE__ */ (0, B.jsx)(sA, {@@ -33218,7 +33218,7 @@ function Gce({ prefill: e }) {y ? /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: mT,+ leadingIcon: hT,className: "self-start",...X(u.isPending),onClick: b,@@ -33229,7 +33229,7 @@ function Gce({ prefill: e }) {] }),/* @__PURE__ */ (0, B.jsx)(cA, {title: "云下载",- children: /* @__PURE__ */ (0, B.jsx)(zce, { prefill: e })+ children: /* @__PURE__ */ (0, B.jsx)(Rce, { prefill: e })})] });}@@ -33277,21 +33277,21 @@ function dA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa"data-filter-glass": !0,"data-glass-pane": "",...c,- className: CE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),+ className: wE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),children: [s,/* @__PURE__ */ (0, B.jsx)("div", {role: "group","aria-label": t,"data-filter-row": "top",- className: CE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),+ className: wE("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, B.jsx)("div", {ref: u,"data-filter-row": "bottom","aria-busy": l || void 0,- className: CE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),+ className: wE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),children: r})]@@ -33303,7 +33303,7 @@ function fA({ children: e, pressed: t, onPress: n, className: r, ...i }) {type: "button",...i,"aria-pressed": t,- className: CE(qce, r),+ className: wE(qce, r),onClick: n,children: e});@@ -33466,14 +33466,14 @@ function hA(e) {//#region src/react/components/segmented.tsxfunction gA(e) {let t = hA("selection");- return /* @__PURE__ */ (0, B.jsx)(hk, {+ return /* @__PURE__ */ (0, B.jsx)(gk, {...e,ref: t});}function _A(e) {let t = hA("selection");- return /* @__PURE__ */ (0, B.jsx)(zO, {+ return /* @__PURE__ */ (0, B.jsx)(BO, {...e,ref: t});@@ -33677,7 +33677,7 @@ function rle({ text: e, busy: t }) {});}function EA({ name: e, label: t, value: n, options: r, onChange: i }) {- return /* @__PURE__ */ (0, B.jsx)(zO, {+ return /* @__PURE__ */ (0, B.jsx)(BO, {name: e,"aria-label": t,orientation: "horizontal",@@ -33687,7 +33687,7 @@ function EA({ name: e, label: t, value: n, options: r, onChange: i }) {className: bA,children: r.map(([e, t, n]) => {let r = CA(n);- return /* @__PURE__ */ (0, B.jsx)(BO, {+ return /* @__PURE__ */ (0, B.jsx)(VO, {value: e,"aria-label": t,"data-glass-segment": "",@@ -34723,7 +34723,7 @@ function HA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip://#region src/react/catalog-grid/catalog-grid-page.tsxfunction UA(e) {if (e.mode === "items") return /* @__PURE__ */ (0, B.jsx)(kle, { ...e });- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${LC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${RC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;return /* @__PURE__ */ (0, B.jsx)(Ale, { ...e }, t);}function Ole({ name: e }) {@@ -34755,7 +34755,7 @@ function kle(e) {});}function Ale(e) {- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Ore(e) : RC(e), s = i && e.initial ? {+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Dre(e) : zC(e), s = i && e.initial ? {pages: [{...e.initial,items: e.initial.items || [],@@ -34775,7 +34775,7 @@ function Ale(e) {(0, R.useEffect)(() => {c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));}, [c.isPending]);- let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => Mre(c.data?.pages || [], {+ let { tiles: u, pageStarts: d } = (0, R.useMemo)(() => jre(c.data?.pages || [], {collapse: e.groupCollapse !== !1,mix: !!e.mix && !a,javImage: r.javImage@@ -34835,7 +34835,7 @@ function Ale(e) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {"data-media-sections": "","data-select-mode": e.selectMode ? "" : void 0,- children: Fre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {+ children: Pre(u, g).map((t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {"data-media-grid": "",children: t.tiles.map(x)}), t.strip ? /* @__PURE__ */ (0, B.jsx)(Mle, {@@ -34926,7 +34926,7 @@ function jle(e, t, n, r, i) {let r = new AbortController();d.current.push(r);let i = n - 1;- W(`/api/items?${Pre(e.filters || {}, l.current)}`, r.signal).then((e) => {+ W(`/api/items?${Nre(e.filters || {}, l.current)}`, r.signal).then((e) => {let t = e.items || [];if (!t.length) {l.current = 0;@@ -34942,7 +34942,7 @@ function jle(e, t, n, r, i) {}, [t]), (0, R.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 = Nre(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 = Mre(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, {@@ -34994,7 +34994,7 @@ function Nle({ seed: e, layout: t, helpers: n, actions: r }) {let i = (0, R.useRef)(/* @__PURE__ */ new Map()), a = (0, R.useRef)(t);a.current = t;let o = re(e, n.tagLabel), s = (0, R.useCallback)(async () => {- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => zC(e, t.javImage)).slice(0, 9);+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => BC(e, t.javImage)).slice(0, 9);return i.current = new Map(n.map((e) => [String(e.id), GA(e, t, !0).html])), n.map((e) => String(e.id));}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = GA(e, t, !1);return /* @__PURE__ */ (0, B.jsx)(HA, {@@ -35303,17 +35303,17 @@ function Ej(e, t, n, r) {...i ? { expected_revision: t.asset_mutation_revision } : {}};}-var bue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dj = (e) => W(iue, e), Oj = (e) => G(aue, e), xue = (e, t) => G(oue, {+var bue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Dj = (e) => W(iue, e), Oj = (e) => G(aue, e), kj = (e, t) => G(oue, {genre: e,tag: t});-async function kj(e) {+async function Aj(e) {await p.fetchQuery({queryKey: yj,queryFn: () => Dj(e)});}-function Aj(e, t) {+function jj(e, t) {let n = new Set(t);n.size && p.setQueryData(yj, (t) => {if (!t) return t;@@ -35331,207 +35331,207 @@ function Aj(e, t) {};});}-var Sue = () => p.invalidateQueries({+var xue = () => p.invalidateQueries({queryKey: yj,exact: !0});-function Cue(e, t) {+function Sue(e, t) {return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${vj(e.fetched_at)} 的缓存` : e?.error || t;}//#endregion//#region src/react/data-cleanup/links.ts-var wue = "/api/links", jj = "/api/links/check", Mj = "/api/links/prune", Nj = ["links"], Pj = ["links", "check"], Fj = ["links", "prune"], Ij = {+var Cue = "/api/links", Mj = "/api/links/check", Nj = "/api/links/prune", Pj = ["links"], Fj = ["links", "check"], Ij = ["links", "prune"], Lj = {official: "官网/事务所",social: "社交账号",catalog: "作品资料站",source_reference: "资料出处"};-async function Lj(e) {+async function Rj(e) {let t = await e;if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");return t;}-var Rj = (e) => W(wue, e), zj = (e) => G(jj, { status_only: !0 }, "POST", e), Tue = ({ retry: e, checkId: t }) => Lj(G(jj, e ? {+var zj = (e) => W(Cue, e), Bj = (e) => G(Mj, { status_only: !0 }, "POST", e), wue = ({ retry: e, checkId: t }) => Rj(G(Mj, e ? {retry: e,check_id: t-} : { restart: !0 })), Bj = (e) => W(Mj, e), Eue = (e) => Lj(G(Mj, {+} : { restart: !0 })), Vj = (e) => W(Nj, e), Tue = (e) => Rj(G(Nj, {confirm: !0,check_id: e,background: !0-})), Vj = (e) => Number(e || 0).toLocaleString(), Due = (e) => `已删除 ${Vj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Vj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Vj(e.recovered)} 条未确认失效的链接。`;-function Oue(e) {+})), Hj = (e) => Number(e || 0).toLocaleString(), Eue = (e) => `已删除 ${Hj(e.removed)} 条;${e.marked ? `已隐退女优的 ${Hj(e.marked)} 条留作不可点的记录;` : ""}保留 ${Hj(e.recovered)} 条未确认失效的链接。`;+function Due(e) {let t = e.scope === "retry";- return e.total ? `${t ? "已重验" : "已检查"} ${Vj(e.checked)} / ${Vj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+ return e.total ? `${t ? "已重验" : "已检查"} ${Hj(e.checked)} / ${Hj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";}//#endregion//#region src/react/settings-panel/settings-data.ts-var Hj = "/api/settings", Uj = "/api/follow/schedule", Wj = "/api/thumbnail-jobs", Gj = ["settings"], Kj = ["follow-schedule"], qj = ["thumbnail-jobs"], kue = (e) => W(Hj, e), Jj = (e) => W(Uj, e), Yj = (e) => W(Wj, e);-function Aue(e = p) {+var Uj = "/api/settings", Wj = "/api/follow/schedule", Gj = "/api/thumbnail-jobs", Kj = ["settings"], qj = ["follow-schedule"], Jj = ["thumbnail-jobs"], Oue = (e) => W(Uj, e), Yj = (e) => W(Wj, e), Xj = (e) => W(Gj, e);+function kue(e = p) {return e.fetchQuery({- queryKey: Kj,- queryFn: ({ signal: e }) => Jj(e),- staleTime: 0- }).catch(() => null), e.fetchQuery({queryKey: qj,queryFn: ({ signal: e }) => Yj(e),staleTime: 0}).catch(() => null), e.fetchQuery({- queryKey: Gj,- queryFn: ({ signal: e }) => kue(e),+ queryKey: Jj,+ queryFn: ({ signal: e }) => Xj(e),+ staleTime: 0+ }).catch(() => null), e.fetchQuery({+ queryKey: Kj,+ queryFn: ({ signal: e }) => Oue(e),staleTime: 0}).catch(() => null);}-function Xj() {+function Zj() {return DS({- mutationFn: (e) => G(Hj, e),- onSuccess: (e) => p.setQueryData(Gj, e)+ mutationFn: (e) => G(Uj, e),+ onSuccess: (e) => p.setQueryData(Kj, e)});}-function jue() {+function Aue() {return DS({- mutationFn: (e) => G(Uj, {+ mutationFn: (e) => G(Wj, {enabled: e > 0,interval_minutes: e || 60}),- onSuccess: (e) => p.setQueryData(Kj, e)+ onSuccess: (e) => p.setQueryData(qj, e)});}-function Mue() {+function jue() {return DS({- mutationFn: (e) => G(Wj, { mode: e }),- onSuccess: (e) => p.setQueryData(qj, e)+ mutationFn: (e) => G(Gj, { mode: e }),+ onSuccess: (e) => p.setQueryData(Jj, e)});}-function Nue(e) {+function Mue(e) {return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${vj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${vj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";}-function Pue(e) {+function Nue(e) {return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";}//#endregion//#region src/react/data-cleanup/organize.ts-var Fue = "/api/organize", Iue = "/api/organize/preview", Lue = "/api/organize/apply", Rue = "/api/organize/rollback", Zj = ["organize"], Qj = (e) => W(Fue, e);-async function zue(e) {+var Pue = "/api/organize", Fue = "/api/organize/preview", Iue = "/api/organize/apply", Lue = "/api/organize/rollback", Qj = ["organize"], $j = (e) => W(Pue, e);+async function Rue(e) {await p.fetchQuery({- queryKey: Zj,- queryFn: () => Qj(e)+ queryKey: Qj,+ queryFn: () => $j(e)});}-var Bue = (e) => G(Iue, e), Vue = (e) => e.kind === "apply" ? G(Lue, {+var zue = (e) => G(Fue, e), Bue = (e) => e.kind === "apply" ? G(Iue, {...e.request,confirm: !0-}) : G(Rue, { confirm: !0 });-async function Hue(e) {- p.setQueryData(Zj, (t) => t && {+}) : G(Lue, { confirm: !0 });+async function Vue(e) {+ p.setQueryData(Qj, (t) => t && {...t,templates: e});try {- await G(Hj, { organizeTemplates: e });+ await G(Uj, { organizeTemplates: e });} catch {}}-var Uue = (e, t) => e && {+var Hue = (e, t) => e && {...e,...t-}, Wue = /目录模板|分隔符|盘符|`\.`/;-function $j(e) {+}, Uue = /目录模板|分隔符|盘符|`\.`/;+function eM(e) {let t = String(e || "");return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);}-var eM = (e) => Number(e || 0).toLocaleString();-function Gue(e) {- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eM(t)}`).join(" · ");- return Number(e.counts?.change || 0) ? `${eM(e.counts.change)} 个文件会改名或移动,${eM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;+var tM = (e) => Number(e || 0).toLocaleString();+function Wue(e) {+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tM(t)}`).join(" · ");+ return Number(e.counts?.change || 0) ? `${tM(e.counts.change)} 个文件会改名或移动,${tM(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;}-function tM(e) {+function nM(e) {let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);return {- text: t ? `已退回 ${eM(r)} 个文件${n ? `,${eM(n)} 行未能退回` : ""}。` : `已整理 ${eM(r)} 个文件${n ? `,${eM(n)} 行未能处理` : ""}。`,+ text: t ? `已退回 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能退回` : ""}。` : `已整理 ${tM(r)} 个文件${n ? `,${tM(n)} 行未能处理` : ""}。`,failed: n,rollback: t};}//#endregion//#region src/react/data-cleanup/resource-sync.ts-var nM = "/api/resource-sync/scan", rM = "/api/resource-sync/apply", iM = ["resource-sync", "scan"], aM = ["resource-sync", "apply"], oM = (e) => G(nM, {+var rM = "/api/resource-sync/scan", iM = "/api/resource-sync/apply", aM = ["resource-sync", "scan"], oM = ["resource-sync", "apply"], sM = (e) => G(rM, {background: !0,status_only: !0-}, "POST", e), Kue = () => G(nM, {+}, "POST", e), Gue = () => G(rM, {background: !0,restart: !0-}), sM = (e) => W(rM, e), que = (e) => G(rM, {+}), cM = (e) => W(iM, e), Kue = (e) => G(iM, {confirm: !0,clean_cache: !0,scan_id: e,background: !0-}), cM = (e) => (e?.sources ?? []).some((e) => Ple.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function Jue(e) {- cM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({- queryKey: iM,- queryFn: () => oM(e)- }), p.fetchQuery({+}), lM = (e) => (e?.sources ?? []).some((e) => Ple.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);+async function que(e) {+ lM(p.getQueryData(u)) && await Promise.all([p.fetchQuery({queryKey: aM,queryFn: () => sM(e)+ }), p.fetchQuery({+ queryKey: oM,+ queryFn: () => cM(e)})]);}-var Yue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Xue = {+var Jue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), Yue = {local: "本地磁盘",115: "115",pikpak: "PikPak"-}, lM = (e) => Number(e || 0).toLocaleString(), Zue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", uM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), dM = (e) => e.vanish ? `${lM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", fM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Que = (e) => `将永久删除文件已不在盘上的 ${lM(uM(e))} 条记录和 ${lM(e.empty)} 个空文件夹,并清理 ${lM(e.cache?.files)} 个闲置缓存。${fM(e)}${dM(e)}`, $ue = (e) => `将永久删除文件已不在盘上的 ${lM(uM(e))} 条记录(含回收站里的)、${lM(e.empty)} 个空文件夹,并清理 ${lM(e.cache?.files)} 个闲置缓存。来源根目录保留。${fM(e)}${dM(e)}`, ede = (e) => e.online ? [- `找不到文件 · 共 ${lM(e.total)} 项`,- e.vanish ? `${lM(e.vanish)} 项带个人记录` : "",- e.empty ? `空文件夹 ${lM(e.empty)} 个` : "",- e.unreadable ? `${lM(e.unreadable)} 个目录读取失败,已跳过` : ""-].filter(Boolean).join(" · ") : `馆藏中有 ${lM(e.total)} 项`;-function pM(e) {+}, uM = (e) => Number(e || 0).toLocaleString(), Xue = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fM = (e) => e.vanish ? `${uM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", pM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", Zue = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录和 ${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。${pM(e)}${fM(e)}`, Que = (e) => `将永久删除文件已不在盘上的 ${uM(dM(e))} 条记录(含回收站里的)、${uM(e.empty)} 个空文件夹,并清理 ${uM(e.cache?.files)} 个闲置缓存。来源根目录保留。${pM(e)}${fM(e)}`, $ue = (e) => e.online ? [+ `找不到文件 · 共 ${uM(e.total)} 项`,+ e.vanish ? `${uM(e.vanish)} 项带个人记录` : "",+ e.empty ? `空文件夹 ${uM(e.empty)} 个` : "",+ e.unreadable ? `${uM(e.unreadable)} 个目录读取失败,已跳过` : ""+].filter(Boolean).join(" · ") : `馆藏中有 ${uM(e.total)} 项`;+function mM(e) {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 ? `${lM(t.length)} 条记录没有删除(${o})` : "",- n ? `${lM(n)} 个文件夹没有删除` : "",- r.length ? `${lM(r.length)} 个缓存没有清理` : ""+ t.length ? `${uM(t.length)} 条记录没有删除(${o})` : "",+ n ? `${uM(n)} 个文件夹没有删除` : "",+ r.length ? `${uM(r.length)} 个缓存没有清理` : ""].filter(Boolean).join(",")};}-var tde = (e, t) => {- let { rest: n } = pM(e), r = `已永久删除 ${lM(e.purged)} 条失效记录和 ${lM(e.dirs_removed)} 个空文件夹,清理 ${lM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${lM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${lM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");+var ede = (e, t) => {+ let { rest: n } = mM(e), r = `已永久删除 ${uM(e.purged)} 条失效记录和 ${uM(e.dirs_removed)} 个空文件夹,清理 ${uM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${uM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");return n ? `${r}${n},重新检查后可再试。` : r;-}, nde = "/api/review?counts=1", mM = ["review", "counts"], rde = "/api/ads?limit=1", hM = ["junk-summary"], gM = "/api/items?state=trash&limit=1", _M = ["trash-summary"], ide = [+}, tde = "/api/review?counts=1", hM = ["review", "counts"], nde = "/api/ads?limit=1", gM = ["junk-summary"], _M = "/api/items?state=trash&limit=1", vM = ["trash-summary"], rde = [["video", "视频"],["image", "图片"],["archive", "压缩包"],["audio", "音频"],["url", "网址"],["other", "其它"]-], vM = (e) => W(nde, e), yM = (e) => W(rde, e), bM = (e) => {+], yM = (e) => W(tde, e), bM = (e) => W(nde, e), xM = (e) => {let t = sessionStorage.getItem("peach.library");- return W(t ? `${gM}&library=${encodeURIComponent(t)}` : gM, e);-}, xM = (e) => Number(e || 0).toLocaleString();-function ade(e) {+ return W(t ? `${_M}&library=${encodeURIComponent(t)}` : _M, e);+}, SM = (e) => Number(e || 0).toLocaleString();+function ide(e) {let t = bj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);return a && i.push(`其余 ${a.toLocaleString()}`), {figure: `${r.toLocaleString()} 条待复核`,meta: i.join(" · ")};}-function ode(e) {+function ade(e) {if (!e) return "";- let t = ide.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${xM(e.counts[t])}`);- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${xM(e.dismissed_total)}`), t.join(" · ");+ let t = rde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${SM(e.counts[t])}`);+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${SM(e.dismissed_total)}`), t.join(" · ");}-var sde = [- [mM, ({ signal: e }) => vM(e)],+var ode = [+ [hM, ({ signal: e }) => yM(e)],[pj, ({ signal: e }) => mj(e)],- [_M, ({ signal: e }) => bM(e)],- [Nj, ({ signal: e }) => Rj(e)],+ [vM, ({ signal: e }) => xM(e)],[Pj, ({ signal: e }) => zj(e)],- [Fj, ({ signal: e }) => Bj(e)]+ [Fj, ({ signal: e }) => Bj(e)],+ [Ij, ({ signal: e }) => Vj(e)]];-async function cde(e) {- let t = location.hash === "#resource-sync", n = sde.map(([n, r]) => {+async function sde(e) {+ let t = location.hash === "#resource-sync", n = ode.map(([n, r]) => {if (t) return p.fetchQuery({queryKey: n,queryFn: () => r({ signal: e })@@ -35544,49 +35544,49 @@ async function cde(e) {await Promise.all([...n,p.fetchQuery({- queryKey: hM,- queryFn: () => yM(e)+ queryKey: gM,+ queryFn: () => bM(e)}),p.fetchQuery({queryKey: qA,queryFn: () => YA(e)}),- KA(e).then(() => Jue(e)),+ KA(e).then(() => que(e)),nj(e),Zle(e),- zue(e)+ Rue(e)]);}//#endregion//#region src/react/components/stat-card.tsx-var lde = [+var cde = ["text-chart-6","text-chart-5","text-chart-7","text-chart-8"-], ude = [+], lde = ["bg-chart-6/10","bg-chart-5/10","bg-chart-7/10","bg-chart-8/10"];-function SM(e = {}) {- return `${kE({+function CM(e = {}) {+ return `${AE({...e,padding: "none"})} flex flex-col overflow-hidden pt-4 text-left`;}-var CM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", dde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";-function wM({ interactive: e = !1 } = {}) {- return kE({+var wM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", ude = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+function TM({ interactive: e = !1 } = {}) {+ return AE({padding: "none",radius: "plain",interactive: e,className: "flex min-h-33 flex-col gap-2 p-4 text-left"});}-var fde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function TM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+var dde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";+function EM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",@@ -35619,13 +35619,13 @@ function TM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta})] });}-function EM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+function DM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",children: [t ? /* @__PURE__ */ (0, B.jsx)("i", {"aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${lde[n % 4]} ${ude[n % 4]}`,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${cde[n % 4]} ${lde[n % 4]}`,children: /* @__PURE__ */ (0, B.jsx)(t, {"aria-hidden": !0,className: "size-4"@@ -35647,9 +35647,9 @@ function EM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {}//#endregion//#region src/react/components/menu-dialog.tsx-function DM(e) {+function OM(e) {let t = hA("hover");- return /* @__PURE__ */ (0, B.jsx)(MO, {+ return /* @__PURE__ */ (0, B.jsx)(NO, {...e,ref: t});@@ -35660,67 +35660,67 @@ function DM(e) {}).medium;//#endregion//#region src/management.ts-var pde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", mde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", hde = kE({+var fde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", pde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", mde = AE({padding: "none",bordered: "line",className: "overflow-hidden"-}), gde = {+}), hde = {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"-}, _de = {+}, gde = {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"-}, vde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", yde = {+}, _de = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", vde = {neutral: "border-border-button-default bg-card-footer",error: "border-border-error-default bg-background-tertiary-error"-}, bde = kE({+}, yde = AE({padding: "none",radius: "surface",bordered: "line",className: "overflow-hidden"-}), OM = "border-t border-border-button-default p-4 first:border-t-0";-function kM({ tone: e = "neutral", status: t, children: n }) {+}), kM = "border-t border-border-button-default p-4 first:border-t-0";+function AM({ tone: e = "neutral", status: t, children: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {- className: `${vde} ${yde[e]}`,+ className: `${_de} ${vde[e]}`,children: [t ? /* @__PURE__ */ (0, B.jsx)("p", {className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,children: t}) : null, n]});}-function AM({ id: e, children: t }) {+function jM({ id: e, children: t }) {return /* @__PURE__ */ (0, B.jsx)("h2", {id: e,className: "text-title-2-medium! m-0! text-text-primary",children: t});}-function jM({ id: e, gap: t = "none", children: n }) {+function MM({ id: e, gap: t = "none", children: n }) {return /* @__PURE__ */ (0, B.jsx)("h3", {id: e,className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,children: n});}-function MM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+function NM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {return /* @__PURE__ */ (0, B.jsxs)("section", {id: r,"aria-label": t,"aria-labelledby": n,...o,- className: `${hde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,+ className: `${mde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,children: [/* @__PURE__ */ (0, B.jsx)("div", {- className: gde[e],+ className: hde[e],children: a}), i ? /* @__PURE__ */ (0, B.jsx)("footer", {- className: _de[e],+ className: gde[e],children: i}) : null]});}//#endregion//#region src/react/components/overlay-scrollbar.ts-function NM() {+function PM() {let e = (0, R.useRef)(null);return (0, R.useEffect)(() => {ke(e.current);@@ -35728,7 +35728,7 @@ function NM() {}//#endregion//#region src/react/boardui/components/base/buttons/icon-button.tsx-var PM = wE({+var FM = TE({base: ["relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg","bg-background-primary-default text-foreground-icon-primary",@@ -35749,21 +35749,21 @@ var PM = wE({small: "size-4 shrink-0"}});-function FM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {+function IM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {return /* @__PURE__ */ (0, B.jsx)("button", {ref: i,type: r,- className: CE(PM.base, PM.size[t], n),+ className: wE(FM.base, FM.size[t], n),...a,children: /* @__PURE__ */ (0, B.jsx)(e, {- className: PM.icon[t],+ className: FM.icon[t],"aria-hidden": !0})});}//#endregion//#region src/react/components/path-line.tsx-function xde({ className: e }) {+function bde({ className: e }) {return /* @__PURE__ */ (0, B.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -35776,8 +35776,8 @@ function xde({ className: e }) {children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-folder-open" })});}-var Sde = "打开文件管理器失败,请重试";-function IM({ path: e, prefix: t, className: n, onRevealed: r }) {+var xde = "打开文件管理器失败,请重试";+function LM({ path: e, prefix: t, className: n, onRevealed: r }) {let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(""), c = (0, R.useRef)(!0);(0, R.useEffect)(() => () => {c.current = !1;@@ -35788,7 +35788,7 @@ function IM({ path: e, prefix: t, className: n, onRevealed: r }) {try {await G("/api/reveal", { path: e }), r?.("已在资源管理器中显示");} catch (e) {- c.current && s(e instanceof RS ? e.message : Sde);+ c.current && s(e instanceof RS ? e.message : xde);} finally {c.current && a(!1);}@@ -35799,10 +35799,10 @@ function IM({ path: e, prefix: t, className: n, onRevealed: r }) {children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex items-center justify-between gap-2",children: [/* @__PURE__ */ (0, B.jsxs)("p", {- className: CE("min-w-0 break-all", n),+ className: wE("min-w-0 break-all", n),children: [t, e]- }), /* @__PURE__ */ (0, B.jsx)(FM, {- icon: xde,+ }), /* @__PURE__ */ (0, B.jsx)(IM, {+ icon: bde,size: "small",className: "shrink-0","aria-label": "在资源管理器中显示",@@ -35817,27 +35817,27 @@ function IM({ path: e, prefix: t, className: n, onRevealed: r }) {}//#endregion//#region src/react/components/task-progress.tsx-function LM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {+function RM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-task-progress": !0,- className: r ? "flex flex-col gap-1.5" : kE({+ className: r ? "flex flex-col gap-1.5" : AE({variant: "outlined",padding: "none",className: "flex flex-col gap-1.5 px-4 py-3.5"}),- children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(PE, {+ children: n && n > 0 ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(FE, {label: e,value: t,max: n}), /* @__PURE__ */ (0, B.jsx)("p", {className: "text-caption-1-regular text-text-secondary",children: e- })] }) : /* @__PURE__ */ (0, B.jsx)(jE, { label: e })+ })] }) : /* @__PURE__ */ (0, B.jsx)(ME, { label: e })});}//#endregion//#region src/react/library-processing/use-library-processing.ts-function RM({ toast: e, mode: t, monitor: n }) {+function zM({ toast: e, mode: t, monitor: n }) {let r = t === "notice" || !!n, i = wS({queryKey: ej,queryFn: ({ signal: e }) => tj(e),@@ -35861,29 +35861,29 @@ function RM({ toast: e, mode: t, monitor: n }) {}//#endregion//#region src/react/library-processing/library-processing-card.tsx-var Cde = [+var Sde = [{label: "扫描并补全资料",- icon: ST,+ icon: CT,command: {}},{label: "只扫描",- icon: ET,+ icon: DT,command: { stage: "scan" }},{label: "只采集",- icon: iae,+ icon: rae,command: { stage: "collect" }}-], wde = CE(wk, Tk, "text-body-2-medium"), Tde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Ede = (e) => {+], Cde = wE(Tk, Ek, "text-body-2-medium"), wde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Tde = (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(",")}。`;-}, Dde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Ede(e);-function Ode({ busy: e, onRun: t }) {+}, Ede = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Tde(e);+function Dde({ busy: e, onRun: t }) {let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1), a = (n) => {e || (i(!1), t(n));};@@ -35892,14 +35892,14 @@ function Ode({ busy: e, onRun: t }) {"data-split-button": !0,"data-variant": "primary",children: [/* @__PURE__ */ (0, B.jsx)(J, {- leadingIcon: ST,+ leadingIcon: CT,onClick: () => a({}),...X(e),children: "扫描并补全资料"}), /* @__PURE__ */ (0, B.jsx)(J, {ref: n,iconOnly: !0,- leadingIcon: mT,+ leadingIcon: hT,"aria-label": "更多扫描与采集方式","aria-haspopup": "dialog","aria-expanded": r,@@ -35908,19 +35908,19 @@ function Ode({ busy: e, onRun: t }) {e || i(!0);}})]- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(SO, {triggerRef: n,isOpen: r,onOpenChange: i,placement: "bottom end",offset: 4,- className: Ck,- children: /* @__PURE__ */ (0, B.jsx)(DM, {+ className: wk,+ children: /* @__PURE__ */ (0, B.jsx)(OM, {"aria-label": "更多扫描与采集方式",className: "flex w-52 flex-col gap-1 outline-none",- children: Cde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {+ children: Sde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, B.jsxs)("button", {type: "button",- className: wde,+ className: Cde,onClick: () => a(n),children: [/* @__PURE__ */ (0, B.jsx)(t, {"aria-hidden": !0,@@ -35930,8 +35930,8 @@ function Ode({ busy: e, onRun: t }) {})})] });}-function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = qle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Kle(e.notes || {}), c = NM();+function Ode({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = qle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Kle(e.notes || {}), c = PM();return /* @__PURE__ */ (0, B.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-4 empty:hidden",@@ -35939,7 +35939,7 @@ function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {e.status === "running" && e.stalled ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "warning",title: "处理较慢",- children: Tde+ children: wde}) : null,t || e.status === "failed" ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",@@ -35951,7 +35951,7 @@ function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}) : null,extra: a ? /* @__PURE__ */ (0, B.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5",- children: /* @__PURE__ */ (0, B.jsxs)(Wk, {+ children: /* @__PURE__ */ (0, B.jsxs)(Gk, {summary: a.label,children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "relative",@@ -35982,7 +35982,7 @@ function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {})}), a.log ? /* @__PURE__ */ (0, B.jsx)("div", {className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",- children: /* @__PURE__ */ (0, B.jsx)(IM, {+ children: /* @__PURE__ */ (0, B.jsx)(LM, {path: a.log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -35996,13 +35996,13 @@ function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {n?.status === "complete" ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "success",title: "处理完成",- children: Dde(n)+ children: Ede(n)}) : null,e.status !== "running" && s ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",extra: e.issues_log ? /* @__PURE__ */ (0, B.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",- children: /* @__PURE__ */ (0, B.jsx)(IM, {+ children: /* @__PURE__ */ (0, B.jsx)(LM, {path: e.issues_log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -36014,8 +36014,8 @@ function kde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {]});}-function zM(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = RM(e), o = DS({+function BM(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = zM(e), o = DS({mutationFn: (e) => G($A, e),onSuccess: (e) => {a(), p.setQueryData(ej, e), p.invalidateQueries({ queryKey: ej });@@ -36029,23 +36029,23 @@ function zM(e) {};return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, B.jsx)(MM, {+ children: [/* @__PURE__ */ (0, B.jsx)(NM, {layout: "stack",label: "扫描与采集",footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(Nk, {+ /* @__PURE__ */ (0, B.jsx)(Pk, {href: "/scraping",size: "small",- trailingIcon: hT,+ trailingIcon: gT,children: "来源和凭证"}),- s.candidates ? /* @__PURE__ */ (0, B.jsx)(Nk, {+ s.candidates ? /* @__PURE__ */ (0, B.jsx)(Pk, {href: "/review",size: "small",- trailingIcon: hT,+ trailingIcon: gT,children: "复核资料"}) : null,- /* @__PURE__ */ (0, B.jsx)(Ode, {+ /* @__PURE__ */ (0, B.jsx)(Dde, {busy: l,onRun: d})@@ -36053,12 +36053,12 @@ function zM(e) {children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(jM, { children: "扫描与采集" }),+ /* @__PURE__ */ (0, B.jsx)(MM, { children: "扫描与采集" }),/* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: pde+ children: fde}),- s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(LM, {+ s.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: u,value: s.checked,@@ -36066,7 +36066,7 @@ function zM(e) {}) : null]})- }), /* @__PURE__ */ (0, B.jsx)(kde, {+ }), /* @__PURE__ */ (0, B.jsx)(Ode, {state: s,problem: c,settled: i,@@ -36082,9 +36082,9 @@ function zM(e) {}//#endregion//#region src/react/background-job.ts-var BM = 2e3, Ade = (e) => e, jde = (e, t) => t;-function VM(e) {- let { queryKey: t, jobOf: n = Ade, withJob: r = jde, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);+var VM = 2e3, kde = (e) => e, Ade = (e, t) => t;+function HM(e) {+ let { queryKey: t, jobOf: n = kde, withJob: r = Ade, idlePollMs: i } = e, [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(null), l = (0, R.useRef)(e);(0, R.useEffect)(() => {l.current = e;});@@ -36093,7 +36093,7 @@ function VM(e) {queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),refetchInterval: (e) => {let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? BM : i ?? !1;+ return t !== void 0 && n(t)?.status === "running" ? VM : i ?? !1;}}), d = DS({mutationFn: (e) => l.current.start(e),@@ -36124,32 +36124,32 @@ function VM(e) {}//#endregion//#region src/react/media-repair/media-repair-card.tsx-var Mde = (e) => Oe[e] || e, HM = (e) => p.setQueryData(cj, e);-function Nde() {+var jde = (e) => Oe[e] || e, UM = (e) => p.setQueryData(cj, e);+function Mde() {let e = wS({queryKey: cj,queryFn: ({ signal: e }) => uj(e),- refetchInterval: (e) => e.state.data?.status === "running" && BM+ refetchInterval: (e) => e.state.data?.status === "running" && VM}), t = wS({queryKey: lj,queryFn: ({ signal: e }) => dj(e)- }), [n, r] = (0, R.useState)(""), i = FE(), a = e.data ?? Xle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {+ }), [n, r] = (0, R.useState)(""), i = IE(), a = e.data ?? Xle, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {c && je({title: `修复媒体库「${c.name}」`,body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),confirmLabel: "修复媒体库",- onConfirm: async () => HM(await G(sj, {+ onConfirm: async () => UM(await G(sj, {library: c.id,restart: !0}))});- }, u = () => void i.run("stop", (e) => G(sj, { stop: !0 }, "POST", e), HM), d = Qle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");+ }, u = () => void i.run("stop", (e) => G(sj, { stop: !0 }, "POST", e), UM), d = Qle(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, B.jsx)(MM, {+ children: [/* @__PURE__ */ (0, B.jsx)(NM, {layout: "split",label: "媒体修复",- footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Dk, {+ footer: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "媒体库",className: "w-48",selectedKey: c?.id ?? null,@@ -36157,10 +36157,10 @@ function Nde() {onSelectionChange: (e) => {e !== null && r(String(e));},- children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(Ok, {+ children: o.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {id: e.id,textValue: e.name,- children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: Mde(e.icon) }), e.name]+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: jde(e.icon) }), e.name]}, e.id))}), s ? /* @__PURE__ */ (0, B.jsx)(J, {onClick: u,@@ -36174,12 +36174,12 @@ function Nde() {children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(jM, { children: "媒体修复" }),+ /* @__PURE__ */ (0, B.jsx)(MM, { children: "媒体修复" }),/* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: mde+ children: pde}),- s && a.total ? /* @__PURE__ */ (0, B.jsx)(PE, {+ s && a.total ? /* @__PURE__ */ (0, B.jsx)(FE, {label: "修复进度",value: a.checked,max: a.total@@ -36215,7 +36215,7 @@ function Nde() {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var UM = {+var WM = {md: {box: "size-4",glyph: "size-4",@@ -36229,11 +36229,11 @@ var UM = {gap: "gap-1.5"}};-function WM({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = UM[t], c = n || r, l = o && !a;+function GM({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = WM[t], c = n || r, l = o && !a;return /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,- className: CE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? CE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : CE("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: wE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? wE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : wE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),children: /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -36257,36 +36257,36 @@ function WM({ state: e, size: t = "md" }) {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function GM({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = UM[n];- return /* @__PURE__ */ (0, B.jsx)(Ooe, {+function KM({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = WM[n];+ return /* @__PURE__ */ (0, B.jsx)(Doe, {ref: r,...i,- className: (t) => CE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(WM, {+ className: (t) => wE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(GM, {state: e,size: n}), t != null && /* @__PURE__ */ (0, B.jsx)("span", {- className: CE(a.label, "text-text-primary"),+ className: wE(a.label, "text-text-primary"),children: t})] })});}//#endregion//#region src/react/boardui/components/base/table/table.tsx-function KM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+function qM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {return /* @__PURE__ */ (0, B.jsx)("div", {- className: CE("w-full overflow-x-auto", n),- children: /* @__PURE__ */ (0, B.jsx)(Ise, {+ className: wE("w-full overflow-x-auto", n),+ children: /* @__PURE__ */ (0, B.jsx)(Fse, {ref: r,...i,- className: CE("bui-table", e === "sm" && "bui-table-sm", t)+ className: wE("bui-table", e === "sm" && "bui-table-sm", t)})});}//#endregion//#region src/react/components/row-click.ts-var Pde = [+var Nde = ["a","button","input",@@ -36299,15 +36299,15 @@ var Pde = ["[role=\"link\"]","[role=\"menu\"]"].join(",");-function qM(e, t) {+function JM(e, t) {let n = e.target;if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(Pde);+ let r = n.closest(Nde);return !r || !t.contains(r) || r === t;}//#endregion//#region src/react/components/data-table-frame.tsx-function JM({ children: e, follow: t = !1, onRowClick: n }) {+function YM({ children: e, follow: t = !1, onRowClick: n }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-board-data-table": !0,"data-follow-table": t || void 0,@@ -36315,15 +36315,15 @@ function JM({ children: e, follow: t = !1, onRowClick: n }) {let t = e.target;if (!(t instanceof Element)) return;let r = t.closest("[role=\"row\"][data-key]");- r && qM(e, r) && n(r.dataset.key);+ r && JM(e, r) && n(r.dataset.key);} : void 0,children: e});}//#endregion//#region src/react/data-cleanup/link-manager.tsx-var Fde = CA("unlink"), YM = CA("rotate-cw"), Ide = "站点返回 404 或 410,确认这个地址不存在。", Lde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Rde = "删除前会逐条重验一次;此操作不可撤销。", zde = "暂时无法读取进度,正在重新连接…", XM = (e) => Number(e || 0).toLocaleString();-function ZM({ label: e, value: t, note: n }) {+var Pde = CA("unlink"), XM = CA("rotate-cw"), Fde = "站点返回 404 或 410,确认这个地址不存在。", Ide = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Lde = "删除前会逐条重验一次;此操作不可撤销。", Rde = "暂时无法读取进度,正在重新连接…", ZM = (e) => Number(e || 0).toLocaleString();+function QM({ label: e, value: t, note: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-col gap-0.5",children: [@@ -36342,11 +36342,11 @@ function ZM({ label: e, value: t, note: n }) {]});}-function QM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {+function $M({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {if (!t.length) return null;let o = r ?? [], s = o.length > 0 && o.length === t.length;return /* @__PURE__ */ (0, B.jsxs)("div", {- className: OM,+ className: kM,children: [/* @__PURE__ */ (0, B.jsxs)("h4", {className: "mb-1 text-body-semibold text-text-primary",@@ -36359,13 +36359,13 @@ function QM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })className: "mb-3 text-caption-1-regular text-text-secondary",children: n}),- /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": e,size: "sm",- children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [- i ? /* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [+ i ? /* @__PURE__ */ (0, B.jsx)(ik, {id: "pick",- children: /* @__PURE__ */ (0, B.jsx)(GM, {+ children: /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,"aria-label": "全选本次未访问成功的链接",isSelected: s,@@ -36373,44 +36373,44 @@ function QM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })onChange: (e) => i(e ? t.map((e) => e.id) : [])})}) : null,- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "entity",isRowHeader: !0,children: "所属"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "kind",children: "类型"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "label",children: "标签"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "note",children: "结果"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "url",children: "地址"})- ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(ck, {+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {id: e.id,children: [- i ? /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(GM, {+ i ? /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,"aria-label": `选择 ${e.entity} 的${e.label || e.url}`,isSelected: o.includes(e.id),onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))}) }) : null,- /* @__PURE__ */ (0, B.jsx)(uk, { children: e.entity }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: Ij[e.link_kind] || e.link_kind }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: e.label || "" }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.entity }),+ /* @__PURE__ */ (0, B.jsx)(dk, { children: Lj[e.link_kind] || e.link_kind }),+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.label || "" }),+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {className: "tabular-nums text-text-error-primary",children: e.note}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("a", {href: e.url,target: "_blank",rel: "noreferrer",@@ -36420,7 +36420,7 @@ function QM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })"data-middle-truncate": !0,className: "min-w-0 truncate",children: e.url- }), /* @__PURE__ */ (0, B.jsx)(wT, {+ }), /* @__PURE__ */ (0, B.jsx)(TT, {"aria-hidden": !0,className: "size-3.5 shrink-0"})]@@ -36432,27 +36432,27 @@ function QM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })]});}-function Bde() {+function zde() {let e = wS({- queryKey: Nj,- queryFn: ({ signal: e }) => Rj(e)- }), [t, n] = (0, R.useState)([]), r = VM({- queryKey: Fj,- queryFn: ({ signal: e }) => Bj(e),- start: Eue,+ queryKey: Pj,+ queryFn: ({ signal: e }) => zj(e)+ }), [t, n] = (0, R.useState)([]), r = HM({+ queryKey: Ij,+ queryFn: ({ signal: e }) => Vj(e),+ start: Tue,onFinish: () => {p.invalidateQueries({- queryKey: Nj,+ queryKey: Pj,exact: !0}), p.invalidateQueries({- queryKey: Pj,+ queryKey: Fj,exact: !0});}- }), i = VM({- queryKey: Pj,- queryFn: ({ signal: e }) => zj(e),- start: Tue,+ }), i = HM({+ queryKey: Fj,+ queryFn: ({ signal: e }) => Bj(e),+ start: wue,onStarted: () => {r.dismiss(), n([]);}@@ -36482,7 +36482,7 @@ function Bde() {else if (v) x = /* @__PURE__ */ (0, B.jsx)(Y, {tone: "success",title: "完成",- children: Due(v)+ children: Eue(v)});else if (y) x = /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",@@ -36492,7 +36492,7 @@ function Bde() {else if (i.query.isError && a) x = /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",title: "任务状态",- children: zde+ children: Rde});else if (a?.status === "failed") x = /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",@@ -36500,12 +36500,12 @@ function Bde() {children: a.error || "检查失败"});else if (a && a.status !== "idle") {- b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(LM, {+ b = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,- label: Oue(a),+ label: Due(a),value: a.checked,total: a.total- }) : null, c ? /* @__PURE__ */ (0, B.jsx)(LM, {+ }) : null, c ? /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: r.job?.message || "正在重验并删除失效链接…",value: r.job?.checked,@@ -36513,38 +36513,38 @@ function Bde() {}) : null] });let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";x = l || u.length || d.length ? /* @__PURE__ */ (0, B.jsxs)("div", {- className: bde,+ className: yde,children: [- /* @__PURE__ */ (0, B.jsx)(QM, {+ /* @__PURE__ */ (0, B.jsx)($M, {title: "地址已失效",items: u,- hint: Ide+ hint: Fde}),- /* @__PURE__ */ (0, B.jsx)(QM, {+ /* @__PURE__ */ (0, B.jsx)($M, {title: "本次未访问成功",items: d,- hint: Lde,+ hint: Ide,picked: f.length ? t : void 0,onPick: f.length ? n : void 0,children: f.length ? /* @__PURE__ */ (0, B.jsx)("div", {className: "-mx-4 mt-3 -mb-4",- children: /* @__PURE__ */ (0, B.jsxs)(kM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {- leadingIcon: YM,+ children: /* @__PURE__ */ (0, B.jsxs)(AM, { children: [/* @__PURE__ */ (0, B.jsx)(J, {+ leadingIcon: XM,disabled: !t.length,...X(s),onClick: () => g(t),children: e}), /* @__PURE__ */ (0, B.jsx)(J, {- leadingIcon: YM,+ leadingIcon: XM,...X(s),onClick: () => g(f.map((e) => e.id)),children: `全部重试(${f.length})`})] })}) : null}),- l && u.length ? /* @__PURE__ */ (0, B.jsx)(kM, {+ l && u.length ? /* @__PURE__ */ (0, B.jsx)(AM, {tone: "error",- status: Rde,+ status: Lde,children: /* @__PURE__ */ (0, B.jsx)(J, {variant: "danger",...X(c),@@ -36553,7 +36553,7 @@ function Bde() {})}) : null,l && !u.length && !d.length ? /* @__PURE__ */ (0, B.jsx)("p", {- className: `${OM} text-body-regular text-notification-success-foreground`,+ className: `${kM} text-body-regular text-notification-success-foreground`,children: "全部链接均可访问。"}) : null]@@ -36564,21 +36564,21 @@ function Bde() {"aria-labelledby": "link-manager-title",className: "flex scroll-mt-20 flex-col gap-4",children: [- /* @__PURE__ */ (0, B.jsx)(AM, {+ /* @__PURE__ */ (0, B.jsx)(jM, {id: "link-manager-title",children: "链接管理"}),- /* @__PURE__ */ (0, B.jsxs)(MM, {+ /* @__PURE__ */ (0, B.jsxs)(NM, {layout: "stack",labelledBy: "link-manager-box",footer: /* @__PURE__ */ (0, B.jsx)(J, {- leadingIcon: Fde,+ leadingIcon: Pde,...X(s),onClick: () => g(),children: s ? "检查中" : l ? "重新检查" : "检查死链"}),children: [- /* @__PURE__ */ (0, B.jsx)(jM, {+ /* @__PURE__ */ (0, B.jsx)(MM, {id: "link-manager-box",gap: "small",children: "站外链接"@@ -36589,13 +36589,13 @@ function Bde() {children: U(e.error)}) : m ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "link-stat-grid mt-4 gap-x-8 gap-y-3",- children: [/* @__PURE__ */ (0, B.jsx)(ZM, {+ children: [/* @__PURE__ */ (0, B.jsx)(QM, {label: "链接总数",- value: XM(m.total),- note: `分布在 ${XM(m.entities)} 个女优、厂牌与系列`- }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(ZM, {- label: Ij[e] || e,- value: XM(t)+ value: ZM(m.total),+ note: `分布在 ${ZM(m.entities)} 个女优、厂牌与系列`+ }), Object.entries(m.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(QM, {+ label: Lj[e] || e,+ value: ZM(t)}, e))]}), h ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "mt-4 flex min-w-0 flex-col gap-0.5",@@ -36624,18 +36624,18 @@ function Bde() {}//#endregion//#region src/react/data-cleanup/organize-card.tsx-var Vde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Hde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Ude = 8;-function Wde({ plan: e }) {+var Bde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Vde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Hde = 8;+function Ude({ plan: e }) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ol", {className: "mt-2 flex min-w-0 flex-col gap-1",- children: e.rows.slice(0, Ude).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {+ children: e.rows.slice(0, Hde).map((e) => /* @__PURE__ */ (0, B.jsxs)("li", {className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",children: [/* @__PURE__ */ (0, B.jsx)("span", {"data-middle-truncate": !0,title: e.current_path,className: "min-w-0 truncate",- children: $j(e.current_path)+ children: eM(e.current_path)}),/* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,@@ -36645,7 +36645,7 @@ function Wde({ plan: e }) {"data-middle-truncate": !0,title: e.target_path,className: "min-w-0 truncate text-text-primary",- children: $j(e.target_path)+ children: eM(e.target_path)})]}, e.current_path))@@ -36654,10 +36654,10 @@ function Wde({ plan: e }) {children: "只列出前 8 行,完整计划在计划 CSV 里。"}) : null] });}-function Gde({ toast: e, failure: t }) {+function Wde({ toast: e, failure: t }) {let n = wS({- queryKey: Zj,- queryFn: ({ signal: e }) => Qj(e)+ queryKey: Qj,+ queryFn: ({ signal: e }) => $j(e)}), r = n.data, i = r?.locations ?? [], [a, o] = (0, R.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, R.useState)(null), d = l?.location === s ? l : {location: s,file: c?.file ?? "",@@ -36670,8 +36670,8 @@ function Gde({ toast: e, failure: t }) {file_template: d.file.trim(),dir_template: d.dir.trim()}), y = DS({- mutationFn: Bue,- onSuccess: (e, t) => void Hue({+ mutationFn: zue,+ onSuccess: (e, t) => void Vue({...r?.templates ?? {},[t.location]: {file: t.file_template,@@ -36679,29 +36679,29 @@ function Gde({ toast: e, failure: t }) {}}),onError: (e) => {- let t = Wue.test(U(e)) ? "dir" : "file";+ let t = Uue.test(U(e)) ? "dir" : "file";h(t), (t === "dir" ? _ : g).current?.focus();}- }), b = VM({- queryKey: Zj,- queryFn: ({ signal: e }) => Qj(e),- start: Vue,+ }), b = HM({+ queryKey: Qj,+ queryFn: ({ signal: e }) => $j(e),+ start: Bue,jobOf: (e) => e,- withJob: Uue,+ withJob: Hue,onStarted: () => y.reset(),onFinish: (n) => {if (p.invalidateQueries({- queryKey: Zj,+ queryKey: Qj,exact: !0}), n.status !== "complete") return;- let { text: r, failed: i } = tM(n);+ let { text: r, failed: i } = nM(n);i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));}}), x = b.running || b.start.isPending, S = y.data, C = Number(S?.counts?.change || 0), w = I[s] || s, T = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), E = () => {y.isPending || !s || (h(null), y.mutate(v()));}, D = () => void je({title: "按模板整理文件",- body: Vde(w),+ body: Bde(w),confirmLabel: "整理文件",onConfirm: () => b.start.mutateAsync({kind: "apply",@@ -36709,13 +36709,13 @@ function Gde({ toast: e, failure: t }) {})}), O = () => void je({title: "回滚上一批整理",- body: Hde,+ body: Vde,confirmLabel: "回滚整理",onConfirm: () => b.start.mutateAsync({ kind: "rollback" })}), k = null, A = b.job, j = b.outcome;if (A?.status === "running") {let e = A.message || A.stage || "正在整理文件…";- k = /* @__PURE__ */ (0, B.jsx)(LM, {+ k = /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: e,value: A.checked,@@ -36727,7 +36727,7 @@ function Gde({ toast: e, failure: t }) {children: j.error || "请查看任务记录,核对已处理的文件。"});else if (j) {- let { text: e, failed: t } = tM(j);+ let { text: e, failed: t } = nM(j);k = /* @__PURE__ */ (0, B.jsx)(Y, {tone: t ? "warning" : "success",title: t ? "部分完成" : "整理结果",@@ -36737,7 +36737,7 @@ function Gde({ toast: e, failure: t }) {tone: "error",title: "整理失败",children: U(b.start.error)- }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(LM, {+ }) : y.isPending ? k = /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: "正在按模板算计划…"}) : y.isError ? k = /* @__PURE__ */ (0, B.jsx)(Y, {@@ -36747,9 +36747,9 @@ function Gde({ toast: e, failure: t }) {}) : S && (k = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",title: "预览结果",- children: Gue(S)- }), C ? /* @__PURE__ */ (0, B.jsx)(Wde, { plan: S }) : null] }));- return /* @__PURE__ */ (0, B.jsxs)(MM, {+ children: Wue(S)+ }), C ? /* @__PURE__ */ (0, B.jsx)(Ude, { plan: S }) : null] }));+ return /* @__PURE__ */ (0, B.jsxs)(NM, {layout: "stack",id: "organize",labelledBy: "cleanup-organize-title",@@ -36773,7 +36773,7 @@ function Gde({ toast: e, failure: t }) {}) : null] }),children: [- /* @__PURE__ */ (0, B.jsx)(jM, {+ /* @__PURE__ */ (0, B.jsx)(MM, {id: "cleanup-organize-title",gap: "medium",children: "整理"@@ -36793,20 +36793,20 @@ function Gde({ toast: e, failure: t }) {/* @__PURE__ */ (0, B.jsxs)("div", {className: "mt-3 flex flex-col gap-3",children: [- i.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {+ i.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "整理哪个来源",className: "w-fit min-w-25",selectedKey: s || null,onSelectionChange: (e) => {e !== null && (o(String(e)), h(null), y.reset());},- children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(Ok, {+ children: i.map((e) => /* @__PURE__ */ (0, B.jsxs)(kk, {id: e.location,textValue: I[e.location] || e.location,- children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), I[e.location] || e.location]}, e.location))}) : null,- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "文件名模板",placeholder: "{number}[ {title}]",value: d.file,@@ -36817,7 +36817,7 @@ function Gde({ toast: e, failure: t }) {f({ file: e }), h(null);}}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "目录模板",placeholder: "留空表示原地改名",value: d.dir,@@ -36857,56 +36857,56 @@ function Gde({ toast: e, failure: t }) {}//#endregion//#region src/react/data-cleanup/orphan-records.ts-var Kde = "/api/orphan-records", qde = "/api/orphan-records/attach", $M = ["orphan-records"], Jde = [+var Gde = "/api/orphan-records", Kde = "/api/orphan-records/attach", eN = ["orphan-records"], qde = [["asset_preference", "喜欢与理由"],["watch_queue", "稍后看"],["playlist_item", "播放列表"],["asset_quality_goal", "寻找更好版本"],["activity_event", "观看历史"],["asset_tag_preference", "隐藏标签"]-], Yde = (e) => W(Kde, e), Xde = (e, t) => G(qde, {+], Jde = (e) => W(Gde, e), Yde = (e, t) => G(Kde, {id: e,target: t-}), Zde = (e) => G(JA, {+}), Xde = (e) => G(JA, {ids: [e],operation: "delete"-}), Qde = (e) => [+}), Zde = (e) => [e.rating ? `评分 ${e.rating}` : "",e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""-], eN = (e) => [...Jde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Qde(e)].filter(Boolean).join(" · "), $de = (e) => e ? `${Math.round(e / 60)} 分钟` : "", tN = (e) => [e.name, $de(e.duration)].filter(Boolean).join(" · "), efe = CA("play"), nN = () => p.invalidateQueries({- queryKey: $M,+], tN = (e) => [...qde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...Zde(e)].filter(Boolean).join(" · "), Qde = (e) => e ? `${Math.round(e / 60)} 分钟` : "", nN = (e) => [e.name, Qde(e.duration)].filter(Boolean).join(" · "), $de = CA("play"), rN = () => p.invalidateQueries({+ queryKey: eN,exact: !0});-function tfe({ item: e, toast: t }) {+function efe({ item: e, toast: t }) {let [n, r] = (0, R.useState)(e.candidates[0]?.id ?? null), i = DS({- mutationFn: () => Xde(e.id, Number(n)),+ mutationFn: () => Yde(e.id, Number(n)),onSuccess: (e) => {- t(`记录已接到新文件,批次 ${e.batch}`), nN();+ t(`记录已接到新文件,批次 ${e.batch}`), rN();},onError: (e) => t(U(e))}), a = DS({- mutationFn: () => Zde(e.id),+ mutationFn: () => Xde(e.id),onSuccess: (n) => {- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), nN();+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), rN();}}), o = () => {je({title: "彻底删除",- body: `将删除「${e.name}」这一条和它带的记录(${eN(e.records)})。此操作不可撤销。`,+ body: `将删除「${e.name}」这一条和它带的记录(${tN(e.records)})。此操作不可撤销。`,confirmLabel: "彻底删除",danger: !0,onConfirm: () => a.mutateAsync()});}, s = i.isPending || a.isPending;- return /* @__PURE__ */ (0, B.jsxs)(ck, {+ return /* @__PURE__ */ (0, B.jsxs)(lk, {id: e.id,children: [- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, B.jsxs)("span", {className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",- children: [/* @__PURE__ */ (0, B.jsx)(efe, {+ children: [/* @__PURE__ */ (0, B.jsx)($de, {"aria-hidden": !0,className: "size-5"}), e.has_thumb ? /* @__PURE__ */ (0, B.jsx)("img", {@@ -36928,27 +36928,27 @@ function tfe({ item: e, toast: t }) {})]})]}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {className: "block min-w-44",- children: eN(e.records)+ children: tN(e.records)}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": `把 ${e.name} 的记录接到哪个文件`,className: "w-64",selectedKey: n,onSelectionChange: (e) => {e !== null && r(Number(e));},- children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: e.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e.id,- textValue: tN(e),- children: tN(e)+ textValue: nN(e),+ children: nN(e)}, e.id))}) : /* @__PURE__ */ (0, B.jsx)("span", {className: "text-text-secondary",children: "没有番号或文件名对得上的文件"}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex flex-wrap gap-2",children: [e.candidates.length ? /* @__PURE__ */ (0, B.jsx)(J, {size: "small",@@ -36968,23 +36968,23 @@ function tfe({ item: e, toast: t }) {]});}-function nfe({ toast: e }) {+function tfe({ toast: e }) {let t = wS({- queryKey: $M,- queryFn: ({ signal: e }) => Yde(e)+ queryKey: eN,+ queryFn: ({ signal: e }) => Jde(e)}), n = t.data?.items ?? [];return !t.isError && !n.length ? null : /* @__PURE__ */ (0, B.jsxs)("section", {id: "orphan-records","aria-labelledby": "orphan-records-title",className: "flex scroll-mt-20 flex-col gap-4",- children: [/* @__PURE__ */ (0, B.jsx)(AM, {+ children: [/* @__PURE__ */ (0, B.jsx)(jM, {id: "orphan-records-title",children: "孤儿记录"- }), /* @__PURE__ */ (0, B.jsxs)(MM, {+ }), /* @__PURE__ */ (0, B.jsxs)(NM, {layout: "stack",labelledBy: "orphan-records-box",children: [- /* @__PURE__ */ (0, B.jsx)(jM, {+ /* @__PURE__ */ (0, B.jsx)(MM, {id: "orphan-records-box",gap: "small",children: "文件已消失的作品"@@ -36997,28 +36997,28 @@ function nfe({ toast: e }) {tone: "error",title: "孤儿记录读取失败",children: U(t.error)- }) : /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ }) : /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": "文件已消失的作品",size: "sm",- children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [- /* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "item",isRowHeader: !0,children: "作品"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "records",children: "带的记录"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "target",children: "接到"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(tfe, {+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: n.map((t) => /* @__PURE__ */ (0, B.jsx)(efe, {item: t,toast: e}, t.id)) })]@@ -37029,99 +37029,99 @@ function nfe({ toast: e }) {}//#endregion//#region src/react/data-cleanup/resource-sync-card.tsx-var rfe = CA("git-compare"), ife = CA("rotate-cw"), afe = "暂时无法读取进度,正在重新连接…", rN = "清理失效条目", iN = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", aN = (e) => Number(e || 0).toLocaleString();-function ofe({ scan: e }) {+var nfe = CA("git-compare"), rfe = CA("rotate-cw"), ife = "暂时无法读取进度,正在重新连接…", iN = "清理失效条目", aN = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", oN = (e) => Number(e || 0).toLocaleString();+function afe({ scan: e }) {let t = e.cache ?? {files: 0,bytes: 0};return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", {- className: iN,+ className: aN,children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, B.jsx)("article", {- className: wM(),- children: /* @__PURE__ */ (0, B.jsx)(TM, {- label: Xue[e.location] || "媒体来源",- mark: /* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] ?? "database" }),+ className: TM(),+ children: /* @__PURE__ */ (0, B.jsx)(EM, {+ label: Yue[e.location] || "媒体来源",+ mark: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] ?? "database" }),aside: /* @__PURE__ */ (0, B.jsx)("span", {className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",children: e.online ? "可访问" : "离线,已跳过"}),- figure: e.online ? `${aN(e.missing)} 项` : "—",- meta: ede(e),+ figure: e.online ? `${oN(e.missing)} 项` : "—",+ meta: $ue(e),wrapMeta: !0})}, e.location))}), /* @__PURE__ */ (0, B.jsxs)("div", {- className: iN,+ className: aN,children: [/* @__PURE__ */ (0, B.jsx)("article", {- className: wM(),- children: /* @__PURE__ */ (0, B.jsx)(TM, {+ className: TM(),+ children: /* @__PURE__ */ (0, B.jsx)(EM, {label: "待永久删除",- figure: `${aN(uM(e))} 项`,+ figure: `${oN(dM(e))} 项`,meta: "文件已不在盘上,含回收站"})}),/* @__PURE__ */ (0, B.jsx)("article", {- className: wM(),- children: /* @__PURE__ */ (0, B.jsx)(TM, {+ className: TM(),+ children: /* @__PURE__ */ (0, B.jsx)(EM, {label: "将标为已消失",- figure: `${aN(e.vanish)} 项`,+ figure: `${oN(e.vanish)} 项`,meta: "带个人记录,记录留着"})}),/* @__PURE__ */ (0, B.jsx)("article", {- className: wM(),- children: /* @__PURE__ */ (0, B.jsx)(TM, {+ className: TM(),+ children: /* @__PURE__ */ (0, B.jsx)(EM, {label: "空文件夹",- figure: `${aN(e.empty)} 个`,+ figure: `${oN(e.empty)} 个`,meta: "保留来源根目录"})}),/* @__PURE__ */ (0, B.jsx)("article", {- className: wM(),- children: /* @__PURE__ */ (0, B.jsx)(TM, {+ className: TM(),+ children: /* @__PURE__ */ (0, B.jsx)(EM, {label: "可清理的缓存",- figure: `${aN(t.files)} 个`,+ figure: `${oN(t.files)} 个`,meta: t.files ? ye(t.bytes) : ""})})]})] });}-function sfe({ toast: e }) {- let t = VM({- queryKey: aM,- queryFn: ({ signal: e }) => sM(e),- start: que,+function ofe({ toast: e }) {+ let t = HM({+ queryKey: oM,+ queryFn: ({ signal: e }) => cM(e),+ start: Kue,onFinish: (t) => {if (p.invalidateQueries({- queryKey: _M,+ queryKey: vM,exact: !0}), p.invalidateQueries({- queryKey: iM,+ queryKey: aM,exact: !0}), t.status !== "complete") return;- let { done: n, left: r } = pM(t);- r ? e(`已完成 ${aN(n)} 项,${aN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");+ let { done: n, left: r } = mM(t);+ r ? e(`已完成 ${oN(n)} 项,${oN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");}- }), n = VM({- queryKey: iM,- queryFn: ({ signal: e }) => oM(e),- start: Kue,+ }), n = HM({+ queryKey: aM,+ queryFn: ({ signal: e }) => sM(e),+ start: Gue,onStarted: () => t.dismiss()}), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void je({- title: rN,- body: $ue(e),- confirmLabel: rN,+ title: iN,+ body: Que(e),+ confirmLabel: iN,danger: !0,onConfirm: () => t.start.mutateAsync(e.scan_id || "")}), l = t.outcome, u = (e) => {- let t = pM(e).left > 0;+ let t = mM(e).left > 0;return /* @__PURE__ */ (0, B.jsx)(Y, {tone: t ? "warning" : "success",title: t ? "部分完成" : "清理结果",- children: tde(e, ye)+ children: ede(e, ye)});}, d = null, f = null;if (l?.status === "failed") f = /* @__PURE__ */ (0, B.jsx)(Y, {@@ -37130,7 +37130,7 @@ function sfe({ toast: e }) {children: l.error || "请查看任务记录,核对已处理的文件。"});else if (l) f = u(l);- else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(LM, {+ else if (t.running) d = /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: t.job?.message || "正在复核并清理失效条目…"});@@ -37142,11 +37142,11 @@ function sfe({ toast: e }) {else if (n.query.isError && r) f = /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",title: "任务状态",- children: afe+ children: ife});else if (r?.status === "running") {- let e = Zue(r);- d = /* @__PURE__ */ (0, B.jsx)(LM, {+ let e = Xue(r);+ d = /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: e,value: r.completed_sources,@@ -37163,13 +37163,13 @@ function sfe({ toast: e }) {children: "这次检查的结果已经清理,重新扫描可再核对。"});else if (r?.status === "complete") {- let e = Yue(r);+ let e = Jue(r);f = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(ofe, { scan: r }),+ /* @__PURE__ */ (0, B.jsx)(afe, { scan: r }),e ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",title: "清理内容",- children: Que(r)+ children: Zue(r)}) : null,/* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-wrap items-center justify-end gap-2",@@ -37177,7 +37177,7 @@ function sfe({ toast: e }) {variant: "danger",...X(a),onClick: () => c(r),- children: a ? "正在复核并清理…" : rN+ children: a ? "正在复核并清理…" : iN}) : /* @__PURE__ */ (0, B.jsx)("p", {className: "mr-auto text-body-regular text-notification-success-foreground",children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"@@ -37194,16 +37194,16 @@ function sfe({ toast: e }) {"aria-labelledby": "resource-sync-title",className: "flex scroll-mt-20 flex-col gap-4",children: [- /* @__PURE__ */ (0, B.jsx)(AM, {+ /* @__PURE__ */ (0, B.jsx)(jM, {id: "resource-sync-title",children: "资源同步"}),- /* @__PURE__ */ (0, B.jsxs)(MM, {+ /* @__PURE__ */ (0, B.jsxs)(NM, {layout: "split",labelledBy: "resource-sync-box",footer: /* @__PURE__ */ (0, B.jsx)(J, {"data-resource-scan": !0,- leadingIcon: o && !i ? ife : rfe,+ leadingIcon: o && !i ? rfe : nfe,...X(i),onClick: () => {i || n.start.mutate();@@ -37211,7 +37211,7 @@ function sfe({ toast: e }) {children: s}),children: [- /* @__PURE__ */ (0, B.jsx)(jM, {+ /* @__PURE__ */ (0, B.jsx)(MM, {id: "resource-sync-box",gap: "small",children: "文件与记录核对"@@ -37237,16 +37237,16 @@ function sfe({ toast: e }) {}//#endregion//#region src/react/data-cleanup/data-cleanup-page.tsx-function oN(e, t) {+function sN(e, t) {return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);}-function sN({ section: e, label: t, icon: n, value: r, open: i }) {+function cN({ section: e, label: t, icon: n, value: r, open: i }) {return /* @__PURE__ */ (0, B.jsx)("button", {type: "button",- className: wM({ interactive: !0 }),+ className: TM({ interactive: !0 }),"data-cleanup-go": e,onClick: () => i(e),- children: /* @__PURE__ */ (0, B.jsx)(TM, {+ children: /* @__PURE__ */ (0, B.jsx)(EM, {label: t,icon: n,figure: r.figure,@@ -37254,20 +37254,20 @@ function sN({ section: e, label: t, icon: n, value: r, open: i }) {})});}-var cfe = CA("square-check-big"), lfe = CA("sparkles"), ufe = CA("file-stack"), dfe = CA("file-archive"), ffe = CA("trash"), pfe = [- mM,+var sfe = CA("square-check-big"), cfe = CA("sparkles"), lfe = CA("file-stack"), ufe = CA("file-archive"), dfe = CA("trash"), ffe = [+ hM,pj,qA-], mfe = () => {- for (let e of pfe) p.invalidateQueries({+], pfe = () => {+ for (let e of ffe) p.invalidateQueries({queryKey: e,exact: !0});};-function hfe({ toast: e, failure: t, open: n }) {+function mfe({ toast: e, failure: t, open: n }) {let r = wS({- queryKey: mM,- queryFn: ({ signal: e }) => vM(e)+ queryKey: hM,+ queryFn: ({ signal: e }) => yM(e)}), i = wS({queryKey: pj,queryFn: ({ signal: e }) => mj(e)@@ -37275,59 +37275,59 @@ function hfe({ toast: e, failure: t, open: n }) {queryKey: qA,queryFn: ({ signal: e }) => YA(e)}), o = wS({- queryKey: hM,- queryFn: ({ signal: e }) => yM(e)- }), s = wS({- queryKey: _M,+ queryKey: gM,queryFn: ({ signal: e }) => bM(e)+ }), s = wS({+ queryKey: vM,+ queryFn: ({ signal: e }) => xM(e)}), c = wS({queryKey: u,queryFn: ({ signal: e }) => f(e)}), l = (t) => e(t);- return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {- className: fde,+ className: dde,children: [- /* @__PURE__ */ (0, B.jsx)(sN, {+ /* @__PURE__ */ (0, B.jsx)(cN, {section: "review",label: "人工复核",- icon: cfe,+ icon: sfe,open: n,- value: oN(r, ade)+ value: sN(r, ide)}),- /* @__PURE__ */ (0, B.jsx)(sN, {+ /* @__PURE__ */ (0, B.jsx)(cN, {section: "quality",label: "高清版",- icon: lfe,+ icon: cfe,open: n,- value: oN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))+ value: sN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))}),- /* @__PURE__ */ (0, B.jsx)(sN, {+ /* @__PURE__ */ (0, B.jsx)(cN, {section: "duplicates",label: "重复文件",- icon: ufe,+ icon: lfe,open: n,- value: oN(a, (e) => Number(e.total || 0) ? {+ value: sN(a, (e) => Number(e.total || 0) ? {figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,meta: `可回收 ${ye(e.reclaimable || 0)}`} : { figure: "没有重复内容" })}),- /* @__PURE__ */ (0, B.jsx)(sN, {+ /* @__PURE__ */ (0, B.jsx)(cN, {section: "ads",label: "垃圾文件",- icon: dfe,+ icon: ufe,open: n,- value: oN(o, (e) => ({+ value: sN(o, (e) => ({figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,- meta: ode(e)+ meta: ade(e)}))}),- /* @__PURE__ */ (0, B.jsx)(sN, {+ /* @__PURE__ */ (0, B.jsx)(cN, {section: "trash",label: "回收站",- icon: ffe,+ icon: dfe,open: n,- value: oN(s, (e) => ({+ value: sN(s, (e) => ({figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,meta: e.total ? `占用 ${ye(e.bytes || 0)}` : ""}))@@ -37340,31 +37340,31 @@ function hfe({ toast: e, failure: t, open: n }) {/* @__PURE__ */ (0, B.jsx)("div", {id: "libraryProcessing",className: "scroll-mt-20",- children: /* @__PURE__ */ (0, B.jsx)(zM, {+ children: /* @__PURE__ */ (0, B.jsx)(BM, {toast: l,monitor: !0,- onComplete: mfe+ onComplete: pfe})}),/* @__PURE__ */ (0, B.jsx)("div", {id: "mediaRepair",- children: /* @__PURE__ */ (0, B.jsx)(Nde, {})+ children: /* @__PURE__ */ (0, B.jsx)(Mde, {})}),- /* @__PURE__ */ (0, B.jsx)(Gde, {+ /* @__PURE__ */ (0, B.jsx)(Wde, {toast: l,failure: t})]}),- /* @__PURE__ */ (0, B.jsx)(Bde, {}),- /* @__PURE__ */ (0, B.jsx)(nfe, { toast: l }),- cM(c.data) ? /* @__PURE__ */ (0, B.jsx)(sfe, { toast: e }) : null+ /* @__PURE__ */ (0, B.jsx)(zde, {}),+ /* @__PURE__ */ (0, B.jsx)(tfe, { toast: l }),+ lM(c.data) ? /* @__PURE__ */ (0, B.jsx)(ofe, { toast: e }) : null] });}//#endregion//#region src/react/feed-new/feed-new.ts-var cN = (e) => ["feed-new", e ?? "home"], gfe = 8, _fe = 1500;-function vfe(e, t, n) {+var lN = (e) => ["feed-new", e ?? "home"], hfe = 8, gfe = 1500;+function _fe(e, t, n) {let r = document.createElement("template");r.innerHTML = e;let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {@@ -37375,32 +37375,32 @@ function vfe(e, t, n) {setTimeout(e, n);})]);}-async function yfe(e, t, n) {+async function vfe(e, t, n) {let r = new URLSearchParams({ limit: "12" });e && r.set("entity", String(e));let i = await pe(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);- return n && o.length && await vfe(s, gfe, _fe), {+ return n && o.length && await _fe(s, hfe, gfe), {items: o,html: s};}-var lN = (e, t, n = !1) => ({- queryKey: cN(e),- queryFn: () => yfe(e, t, n),+var uN = (e, t, n = !1) => ({+ queryKey: lN(e),+ queryFn: () => vfe(e, t, n),staleTime: Infinity-}), uN = (e, t) => pe("/api/feeds/discovery", {+}), dN = (e, t) => pe("/api/feeds/discovery", {method: "POST",body: JSON.stringify({action: t,ids: [e]})}).then(() => void 0, () => void 0);-async function bfe(e) {- p.removeQueries({ queryKey: cN(null) }), await p.fetchQuery(lN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));+async function yfe(e) {+ p.removeQueries({ queryKey: lN(null) }), await p.fetchQuery(uN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));}//#endregion//#region src/react/entity-page/entity-page.ts-var xfe = [+var bfe = ["loc","creator","tag",@@ -37410,51 +37410,51 @@ var xfe = ["orient","sort","dir"-], dN = {+], fN = {media: "videos",set: 0-}, fN = (e, t) => [+}, pN = (e, t) => ["entity",e,t-], Sfe = (e, t, n, r) => [+], xfe = (e, t, n, r) => ["entity-items",e,t,n,r-], pN = (e, t, n, r) => [+], mN = (e, t, n, r) => ["entity-photos",e,t,n,r-], mN = (e) => String(e || "").split(",").filter(Boolean), Cfe = (e, t) => mN(e).includes(t);-function hN(e, t, n, r, i = 0) {+], hN = (e) => String(e || "").split(",").filter(Boolean), Sfe = (e, t) => hN(e).includes(t);+function gN(e, t, n, r, i = 0) {let a = new URLSearchParams();a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");- for (let t of xfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);+ for (let t of bfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);return r.jav && a.set("jav", "1"), a;}-async function gN(e, t, n, r, i, a) {- return await pe(`/api/items?${hN(e, t, n, r, i)}`, a ? { signal: a } : {});+async function _N(e, t, n, r, i, a) {+ return await pe(`/api/items?${gN(e, t, n, r, i)}`, a ? { signal: a } : {});}-var _N = (e) => {+var vN = (e) => {let t = {jav: e.jav,seed: e.seed- }, n = hN(e.kind, e.name, e.filters, t).toString();+ }, n = gN(e.kind, e.name, e.filters, t).toString();return {- queryKey: Sfe(e.kind, e.name, n, e.revision),- queryFn: ({ signal: n }) => gN(e.kind, e.name, e.filters, t, 0, n),+ queryKey: xfe(e.kind, e.name, n, e.revision),+ queryFn: ({ signal: n }) => _N(e.kind, e.name, e.filters, t, 0, n),staleTime: Infinity};-}, vN = (e, t) => ({- queryKey: fN(e, t),+}, yN = (e, t) => ({+ queryKey: pN(e, t),queryFn: ({ signal: n }) => pe(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),staleTime: Infinity});-function wfe(e, t, n, r, i, a) {+function Cfe(e, t, n, r, i, a) {let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;if (i) {let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;@@ -37463,10 +37463,10 @@ function wfe(e, t, n, r, i, a) {let s = r ? `&seed=${encodeURIComponent(r)}` : "";return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;}-var yN = (e, t, n, r) => ({- queryKey: pN(e, t, n, r),+var bN = (e, t, n, r) => ({+ queryKey: mN(e, t, n, r),queryFn: async ({ pageParam: i }) => {- let a = await pe(wfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {+ let a = await pe(Cfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {if (i) throw e;return { error: String(e) };});@@ -37479,8 +37479,8 @@ var yN = (e, t, n, r) => ({seed: t[0]?.seed || ""} : void 0,staleTime: Infinity-}), bN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];-async function Tfe(e) {+}), xN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];+async function wfe(e) {let { kind: t, name: n } = e;for (let e of ["entity",@@ -37492,51 +37492,51 @@ async function Tfe(e) {n] });await Promise.all([- p.fetchQuery(vN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: cN(Number(t.id)) }), p.fetchQuery(lN(Number(t.id), e.helpers.feedRowHtml, !0)))),- p.fetchQuery(_N(e)),- p.fetchInfiniteQuery(yN(t, n, 0, "")),- e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(yN(t, n, e.media.set, "")) : null+ p.fetchQuery(yN(t, n)).then((t) => !t || t.error || !t.id ? null : (p.removeQueries({ queryKey: lN(Number(t.id)) }), p.fetchQuery(uN(Number(t.id), e.helpers.feedRowHtml, !0)))),+ p.fetchQuery(vN(e)),+ p.fetchInfiniteQuery(bN(t, n, 0, "")),+ e.media.media === "photos" && e.media.set ? p.fetchInfiniteQuery(bN(t, n, e.media.set, "")) : null]);}//#endregion//#region src/react/follow/online-vocab.ts-var Efe = "/api/follow/authors", Dfe = "/api/follow/tags", Ofe = (e) => [+var Tfe = "/api/follow/authors", Efe = "/api/follow/tags", Dfe = (e) => ["follow","authors",e-], kfe = (e, t) => [+], Ofe = (e, t) => ["follow","tags",e,t];-function Afe(e, t, n) {+function kfe(e, t, n) {let r = new URLSearchParams({limit: String(t),offset: String(n)});- return e && r.set("q", e), `${Efe}?${r}`;+ return e && r.set("q", e), `${Tfe}?${r}`;}-function jfe(e, t, n, r) {+function Afe(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), `${Dfe}?${i}`;+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Efe}?${i}`;}-var Mfe = (e, t, n, r) => W(Afe(e, t, n), r), Nfe = (e, t, n, r, i) => W(jfe(e, t, n, r), i), Pfe = "/api/index", xN = {+var jfe = (e, t, n, r) => W(kfe(e, t, n), r), Mfe = (e, t, n, r, i) => W(Afe(e, t, n, r), i), Nfe = "/api/index", SN = {performers: "艺人",- creators: "卖家与动画作者",+ creators: "卖家",studios: "厂牌",agencies: "事务所",tags: "标签"-}, Ffe = {+}, Pfe = {performers: "performer",creators: "creator",studios: "studio",agencies: "agency"-}, SN = [+}, CN = [["all", "全部"],["meta", "影片属性"],["relationship", "人物关系"],@@ -37546,39 +37546,41 @@ var Mfe = (e, t, n, r) => W(Afe(e, t, n), r), Nfe = (e, t, n, r, i) => W(jfe(e,["story", "故事剧情"],["position", "性交体位"],["general", "其他内容"]-], CN = [+], wN = [["all", "全部"],["general", "通用"],["artist", "创作者"],["character", "角色"],["copyright", "作品"],["metadata", "元数据"]-], wN = {+], TN = {performers: [["all", "全部"],["japanese_av", "女优"],["amateur", "素人"],["western", "西方"],- ["blogger", "网黄博主"]- ],- creators: [- ["all", "全部"],- ["seller", "卖家"],+ ["blogger", "网黄博主"],["animation", "动画作者"]- ]-}, TN = {+ ],+ creators: [["all", "全部"]]+}, EN = {people: 120,tags: 180-}, EN = (e) => e !== "tags", DN = (e) => e === "studios" || e === "agencies";-function ON(e) {- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? CN : SN : e.kind === "performers" || e.kind === "creators" ? wN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);+}, DN = (e) => e !== "tags", ON = (e) => e === "studios" || e === "agencies";+function kN(e) {+ if (e.kind === "creators" && e.category === "animation") return kN({+ ...e,+ kind: "performers",+ scope: "local"+ });+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? wN : CN : e.kind === "performers" || e.kind === "creators" ? TN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);return {...e,scope: t,category: (e.kind === "tags" || r) && i ? e.category : "all"};}-function kN(e) {+function AN(e) {let { kind: t, q: n, scope: r, category: i } = e;return t === "tags" ? r === "online" ? {what: "online-tags",@@ -37598,50 +37600,50 @@ function kN(e) {...i && i !== "all" ? { category: i } : {}};}-var AN = (e, t, n = "all") => [+var jN = (e, t, n = "all") => ["index",e,t,...e === "tags" || n !== "all" ? [n] : []];-function jN(e, t, n, r, i) {+function MN(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), `${Pfe}?${a}`;+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Nfe}?${a}`;}-function MN(e) {- let t = e.what === "people" || e.what === "online-authors" ? TN.people : TN.tags, n = {+function NN(e) {+ let t = e.what === "people" || e.what === "online-authors" ? EN.people : EN.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: AN(e.kind, e.q, e.category || "all"),- queryFn: ({ pageParam: n, signal: r }) => W(jN(e.kind, e.q, e.category || "all", t, n), r)+ queryKey: jN(e.kind, e.q, e.category || "all"),+ queryFn: ({ pageParam: n, signal: r }) => W(MN(e.kind, e.q, e.category || "all", t, n), r)};case "tags": return {...n,- queryKey: AN("tags", e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => W(jN("tags", e.q, e.category, t, n), r)+ queryKey: jN("tags", e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => W(MN("tags", e.q, e.category, t, n), r)};case "online-authors": return {...n,- queryKey: Ofe(e.q),- queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, t, n, r)+ queryKey: Dfe(e.q),+ queryFn: ({ pageParam: n, signal: r }) => jfe(e.q, t, n, r)};case "online-tags": return {...n,- queryKey: kfe(e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => Nfe(e.q, e.category, t, n, r)+ queryKey: Ofe(e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => Mfe(e.q, e.category, t, n, r)};}}-async function Ife(e, t) {- let n = MN(kN(ON(e)));+async function Ffe(e, t) {+ let n = NN(AN(kN(e)));p.removeQueries({queryKey: n.queryKey,exact: !0@@ -37655,13 +37657,13 @@ async function Ife(e, t) {getNextPageParam: n.getNextPageParam});}-var Lfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Rfe = (e, t) => `${e}${t ? "+" : ""} 项`, NN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", zfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Bfe = {+var Ife = (e) => e ? e.pages.flatMap((e) => e.items) : [], Lfe = (e, t) => `${e}${t ? "+" : ""} 项`, PN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Rfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), zfe = {numeric: !0,sensitivity: "base"};-function Vfe(e, t) {+function Bfe(e, t) {let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Bfe))) {+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", zfe))) {let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);a ? a.push(r) : n.set(i, [r]);}@@ -37669,7 +37671,7 @@ function Vfe(e, t) {}//#endregion//#region src/react/index/index-people.tsx-function PN({ html: e, face: t, company: n, big: r }) {+function FN({ html: e, face: t, company: n, big: r }) {let i = (0, R.useRef)(null);return (0, R.useLayoutEffect)(() => {t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");@@ -37681,18 +37683,18 @@ function PN({ html: e, face: t, company: n, big: r }) {dangerouslySetInnerHTML: { __html: e }});}-var Hfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";-function FN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {+var Vfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";+function IN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {return /* @__PURE__ */ (0, B.jsxs)("button", {type: "button",...a,"data-index-cell": "",onClick: i,- className: kE({+ className: AE({radius: "plain",padding: "none",interactive: !0,- className: `${Hfe} ${n ? "items-stretch text-left" : "items-center text-center"}`+ className: `${Vfe} ${n ? "items-stretch text-left" : "items-center text-center"}`}),children: [r,@@ -37709,23 +37711,23 @@ function FN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {]});}-function IN({ kind: e, items: t, layout: n, props: r }) {- let i = DN(e), a = n === "big";+function LN({ kind: e, items: t, layout: n, props: r }) {+ let i = ON(e), a = n === "big";return /* @__PURE__ */ (0, B.jsx)("div", {"data-index-grid": "","data-layout": n,"data-cells": i ? "company" : "people",className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,children: t.map((t) => {- let n = t.entity_kind || Ffe[e], o = r.personAvatar(t, n, a);- return /* @__PURE__ */ (0, B.jsx)(FN, {+ let n = t.entity_kind || Pfe[e], o = r.personAvatar(t, n, a);+ return /* @__PURE__ */ (0, B.jsx)(IN, {"data-k": t.k,"data-kind": n,name: t.k,- readout: `${zfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,+ readout: `${Rfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,big: a,onPress: () => r.openEntity(n, t.k),- children: /* @__PURE__ */ (0, B.jsx)(PN, {+ children: /* @__PURE__ */ (0, B.jsx)(FN, {html: o.html,face: o.face,company: i,@@ -37735,21 +37737,21 @@ function IN({ kind: e, items: t, layout: n, props: r }) {})});}-function Ufe({ items: e, layout: t, props: n }) {+function Hfe({ items: e, layout: t, props: n }) {let r = t === "big";return /* @__PURE__ */ (0, B.jsx)("div", {"data-index-grid": "","data-layout": t,"data-cells": "people",className: "index-grid-person gap-3",- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(FN, {+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(IN, {"data-follow-author": e.key,"data-kind": "performer",name: e.k,readout: `${e.n.toLocaleString()} 项更新`,big: r,onPress: () => n.openFollowAuthor(e.key),- children: /* @__PURE__ */ (0, B.jsx)(PN, {+ children: /* @__PURE__ */ (0, B.jsx)(FN, {html: n.authorAvatar(e),company: !1,big: r@@ -37759,14 +37761,14 @@ function Ufe({ items: e, layout: t, props: n }) {}//#endregion//#region src/board-controls.ts-function Wfe(e) {+function Ufe(e) {let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;e.style.setProperty("--board-range-value", `${i}%`);}//#endregion//#region src/react/photo-lightbox/photo-lightbox.ts-var LN = "/vendor/swiper/14.2.0/", RN = null, Gfe = () => RN ??= Promise.all([new Promise((e, t) => {- let n = `${LN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);+var RN = "/vendor/swiper/14.2.0/", zN = null, Wfe = () => zN ??= Promise.all([new Promise((e, t) => {+ let n = `${RN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);if (r?.sheet) {e();return;@@ -37780,11 +37782,11 @@ var LN = "/vendor/swiper/14.2.0/", RN = null, Gfe = () => RN ??= Promise.all([nereturn;}let r = document.createElement("script");- r.src = `${LN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);+ r.src = `${RN}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 RN = null, e;+ throw zN = null, e;});-function Kfe(e, t, n) {+function Gfe(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);@@ -37805,48 +37807,48 @@ function Kfe(e, t, n) {}};}-var zN = (e) => {+var BN = (e) => {let t = Number(e) || 0;return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : ye(t)).replace(" ", "\xA0") : "大小未知";-}, qfe = (e) => e.asset?.name || e.name || "未命名图片";-function Jfe(e, t) {+}, Kfe = (e) => e.asset?.name || e.name || "未命名图片";+function qfe(e, t) {let n = e.asset;- if (n) return [I[n.location ?? ""] || n.location || "来源未知", zN(n.size)].join(" · ");+ if (n) return [I[n.location ?? ""] || n.location || "来源未知", BN(n.size)].join(" · ");let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";return [e.source || "在线图片",r,i,- e.size ? zN(e.size) : ""+ e.size ? BN(e.size) : ""].filter(Boolean).join(" · ");}//#endregion//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx-var BN = null, VN = null, Yfe = 0;-function Xfe() {- return (!VN || !BN?.isConnected) && (VN?.unmount(), BN = document.createElement("div"), BN.className = "peach-react", BN.dataset.photoLightboxHost = "", document.body.append(BN), VN = (0, ip.createRoot)(BN)), VN;+var VN = null, HN = null, Jfe = 0;+function Yfe() {+ return (!HN || !VN?.isConnected) && (HN?.unmount(), VN = document.createElement("div"), VN.className = "peach-react", VN.dataset.photoLightboxHost = "", document.body.append(VN), HN = (0, ip.createRoot)(VN)), HN;}-async function HN(e, t, n) {+async function UN(e, t, n) {if (!t.length || e < 0 || e >= t.length) return;let r;try {- r = await Gfe();+ r = await Wfe();} catch {window.open(t[e].src, "_blank", "noopener");return;}- let i = Xfe();- (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Zfe, {+ let i = Yfe();+ (0, rp.flushSync)(() => i.render(/* @__PURE__ */ (0, B.jsx)(Xfe, {slides: t,index: e,Swiper: r,host: n ?? null- }, ++Yfe)));+ }, ++Jfe)));}-function UN() {- VN && (0, rp.flushSync)(() => VN.render(null));+function WN() {+ HN && (0, rp.flushSync)(() => HN.render(null));}-function Zfe({ slides: e, index: t, Swiper: n, host: r }) {+function Xfe({ slides: e, index: t, Swiper: n, host: r }) {let i = e.length > 1, a = (0, R.useId)(), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(null), h = (0, R.useRef)(null), g = (0, R.useRef)(null), [_, v] = (0, R.useState)(t), [y, b] = (0, R.useState)(100), [x, S] = (0, R.useState)({}), [C, w] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, R.useState)(!1), [D, O] = (0, R.useState)({at: t,text: ""@@ -37889,7 +37891,7 @@ function Zfe({ slides: e, index: t, Swiper: n, host: r }) {v(this.activeIndex), i(this.activeIndex);} }});- i(t, 0), h.current = Kfe(e, a, b);+ i(t, 0), h.current = Gfe(e, a, b);let m = tt(e, f.current, p.current), _ = (e = !1) => {m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();};@@ -37906,13 +37908,13 @@ function Zfe({ slides: e, index: t, Swiper: n, host: r }) {});y.observe(e);let x = (e) => {- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : UN());+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : WN());};return document.addEventListener("keydown", x, !0), () => {document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");};}, []), (0, R.useLayoutEffect)(() => {- m.current && Wfe(m.current);+ m.current && Ufe(m.current);}, [y]);let k = e[_], A = k.asset ?? null, j = async (e) => {if (!A || !r || e.getAttribute("aria-busy") === "true") return;@@ -37943,18 +37945,18 @@ function Zfe({ slides: e, index: t, Swiper: n, host: r }) {"data-photo-lightbox": "","data-has-strip": i ? "" : void 0,onCancel: (e) => {- e.preventDefault(), UN();+ e.preventDefault(), WN();},onClick: (e) => {let t = e.target;- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && UN();+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && WN();},children: [/* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-photo-close": "","aria-label": "关闭",- onClick: UN,+ onClick: WN,dangerouslySetInnerHTML: { __html: L("x") }}),/* @__PURE__ */ (0, B.jsxs)("div", {@@ -38087,10 +38089,10 @@ function Zfe({ slides: e, index: t, Swiper: n, host: r }) {id: `${a}-title`,"data-middle-truncate": "",tabIndex: -1,- children: qfe(k)+ children: Kfe(k)}, _), /* @__PURE__ */ (0, B.jsx)("span", {"data-photo-detail-meta": "",- children: Jfe(k, x[_])+ children: qfe(k, x[_])})]}),/* @__PURE__ */ (0, B.jsx)("button", {@@ -38129,28 +38131,28 @@ function Zfe({ slides: e, index: t, Swiper: n, host: r }) {}//#endregion//#region src/react/entity-body/entity-body-page.tsx-function Qfe(e) {- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)($fe, {+function Zfe(e) {+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, B.jsx)(Qfe, {roster: e.roster,props: e- }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)(epe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(rpe, {+ }) : e.view === "videos" ? /* @__PURE__ */ (0, B.jsx)($fe, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, B.jsx)(npe, {photos: e.photos,props: e}, e.photos.revision) : null;}-function $fe({ roster: e, props: t }) {+function Qfe({ roster: e, props: t }) {let { helpers: n, actions: r } = t, i = (0, R.useMemo)(() => ({personAvatar: n.personAvatar,openEntity: r.openEntity}), [n, r]);- return /* @__PURE__ */ (0, B.jsx)(IN, {+ return /* @__PURE__ */ (0, B.jsx)(LN, {kind: e.kind,items: e.people,layout: e.layout,props: i});}-function epe(e) {+function $fe(e) {let t = MA(!e.items, e.skeletonHtml);return /* @__PURE__ */ (0, B.jsxs)("div", {"data-entity-grid": "",@@ -38174,16 +38176,16 @@ function epe(e) {}) : null]});}-var tpe = (e) => Array.from({ length: e.n }, (t, n) => ({+var epe = (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 || "官方样张"-})), WN = (e) => e.sample === !0, GN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, KN = (e) => WN(e) ? `/sample-thumb?${GN(e)}` : `/photo-thumb?id=${e.id}`, npe = (e) => WN(e) ? {- src: `/sample-image?${GN(e)}`,- thumb: KN(e),+})), GN = (e) => e.sample === !0, KN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, qN = (e) => GN(e) ? `/sample-thumb?${KN(e)}` : `/photo-thumb?id=${e.id}`, tpe = (e) => GN(e) ? {+ src: `/sample-image?${KN(e)}`,+ thumb: qN(e),name: e.name,asset: null,source: e.source,@@ -38191,18 +38193,18 @@ var tpe = (e) => Array.from({ length: e.n }, (t, n) => ({total: e.total} : {src: `/photo?id=${e.id}`,- thumb: KN(e),+ thumb: qN(e),name: e.name || "",asset: e};-function rpe({ photos: e, props: t }) {- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(tpe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {+function npe({ photos: e, props: t }) {+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, R.useMemo)(() => [...e.codeSets.flatMap(epe), ...e.items], [e]), [s, c] = (0, R.useState)(() => /* @__PURE__ */ new Set()), l = (0, R.useCallback)((e) => c((t) => {if (t.has(e)) return t;let n = new Set(t);return n.add(e), n;}), []), u = (0, R.useCallback)((e) => {- HN(e, o.map(npe), { revealSource: i.revealSource });- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(ipe, {+ UN(e, o.map(tpe), { revealSource: i.revealSource });+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, B.jsx)(rpe, {item: e,index: t,lost: s.has(t),@@ -38220,7 +38222,7 @@ function rpe({ photos: e, props: t }) {};}), h = p;return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(qN, {+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(JN, {label: e.code,title: e.name,meta: [@@ -38232,7 +38234,7 @@ function rpe({ photos: e, props: t }) {...f,children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))})] }, e.code)),- m.length && e.total ? /* @__PURE__ */ (0, B.jsx)(qN, {+ m.length && e.total ? /* @__PURE__ */ (0, B.jsx)(JN, {label: "本地图片",meta: `${e.total.toLocaleString()} 张`}) : null,@@ -38248,7 +38250,7 @@ function rpe({ photos: e, props: t }) {}, e.items.length) : null] });}-function qN({ label: e, title: t, meta: n }) {+function JN({ label: e, title: t, meta: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {"data-photo-group": "",children: [@@ -38265,7 +38267,7 @@ function qN({ label: e, title: t, meta: n }) {]});}-function ipe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {+function rpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {let a = e.name ?? "";return /* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -38274,7 +38276,7 @@ function ipe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {title: a,onClick: () => i(t),children: n ? null : /* @__PURE__ */ (0, B.jsx)("img", {- src: KN(e),+ src: qN(e),alt: a,loading: "lazy",decoding: "async",@@ -38283,7 +38285,7 @@ function ipe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {})});}-function JN(e) {+function YN(e) {return {x0: 0,y0: 0,@@ -38291,7 +38293,7 @@ function JN(e) {y1: e.height};}-function YN(e) {+function XN(e) {return {x0: Math.round(e.x0),y0: Math.round(e.y0),@@ -38299,40 +38301,40 @@ function YN(e) {y1: Math.round(e.y1)};}-function XN(e) {+function ZN(e) {return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;}-function ZN(e, t) {- if (!XN(e)) return {+function QN(e, t) {+ if (!ZN(e)) return {x0: 0,y0: 0,x1: 0,y1: 0};- if (t == null || !(t > 0)) return JN(e);+ if (t == null || !(t > 0)) return YN(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 YN({+ return XN({x0: i,y0: a,x1: i + n,y1: a + r});}-function ape(e, t) {- if (!XN(e) || !(t > 0)) return JN(e);+function ipe(e, t) {+ if (!ZN(e) || !(t > 0)) return YN(e);let n = Math.min(e.width, e.height * t);- return YN({+ return XN({x0: e.width - n,y0: 0,x1: e.width,y1: e.height});}-function ope(e, t, n) {- if (!XN(t) || !(n > 0)) return JN(t);- let r = QN(e, t), i = ZN({+function ape(e, t, n) {+ if (!ZN(t) || !(n > 0)) return YN(t);+ let r = $N(e, t), i = QN({width: r.x1 - r.x0,height: r.y1 - r.y0}, n);@@ -38343,8 +38345,8 @@ function ope(e, t, n) {y1: r.y0 + i.y1};}-function QN(e, t, n = null, r = "width") {- if (!XN(t)) return {+function $N(e, t, n = null, r = "width") {+ if (!ZN(t)) return {x0: 0,y0: 0,x1: 0,@@ -38353,43 +38355,43 @@ function QN(e, t, n = null, r = "width") {let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));- return YN({+ return XN({x0: s,y0: c,x1: s + a,y1: c + o});}-function $N(e, t, n, r) {+function eP(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 YN({+ return XN({x0: o,y0: s,x1: o + i,y1: s + a});}-function eP(e, t, n, r = null) {- if (!XN(n) || !(t > 0)) return e;+function tP(e, t, n, r = null) {+ if (!ZN(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 QN({+ return $N({x0: i - o / 2,y0: a - s / 2,x1: i + o / 2,y1: a + s / 2}, n, r);}-function spe(e, t, n, r, i = null) {+function ope(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 QN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+ return $N(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");}-function cpe(e, t) {- return XN(t) ? {+function spe(e, t) {+ return ZN(t) ? {left: e.x0 / t.width * 100,top: e.y0 / t.height * 100,width: (e.x1 - e.x0) / t.width * 100,@@ -38401,8 +38403,8 @@ function cpe(e, t) {height: 0};}-function lpe(e, t) {- if (!XN(t)) return {+function cpe(e, t) {+ if (!ZN(t)) return {size: "cover",position: "50% 50%"};@@ -38412,7 +38414,7 @@ function lpe(e, t) {position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`};}-function upe(e, t) {+function lpe(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}%`,@@ -38421,29 +38423,29 @@ function upe(e, t) {height: `${t.height / r * 100}%`};}-function tP(e, t, n) {+function nP(e, t, n) {return t > 0 ? e * n / t : 0;}//#endregion//#region src/react/components/modal-frame.tsx-var dpe = {+var upe = {"avatar-picker": "max-w-avatar-picker","cover-crop": "max-w-cover-crop",form: "max-w-form-modal"};-function nP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {+function rP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {let { isFocusVisible: a } = nh();- return /* @__PURE__ */ (0, B.jsx)(IO, {+ return /* @__PURE__ */ (0, B.jsx)(LO, {isOpen: e,onOpenChange: t,isDismissable: !0,"data-modal-motion": "","data-motion-instant": a || void 0,className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",- children: /* @__PURE__ */ (0, B.jsx)(sse, {+ children: /* @__PURE__ */ (0, B.jsx)(ose, {"data-modal-surface": "",- className: `flex max-h-full w-full ${dpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,- children: /* @__PURE__ */ (0, B.jsx)(MO, {+ className: `flex max-h-full w-full ${upe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,+ children: /* @__PURE__ */ (0, B.jsx)(NO, {"aria-label": r,className: "flex min-h-0 flex-col outline-none",children: i@@ -38451,7 +38453,7 @@ function nP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {})});}-function rP({ children: e }) {+function iP({ children: e }) {return /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",@@ -38460,8 +38462,8 @@ function rP({ children: e }) {}//#endregion//#region src/react/crop/crop-frame.tsx-var fpe = .02, iP = 1.08;-function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {+var dpe = .02, aP = 1.08;+function oP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {let s = (0, R.useRef)(null), c = (0, R.useRef)(null), [l, u] = (0, R.useState)(!1);(0, R.useEffect)(() => {u(!1);@@ -38472,8 +38474,8 @@ function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odx: 0,dy: 0} : {- dx: tP(e, n.clientWidth, r.width),- dy: tP(t, n.clientHeight, r.height)+ dx: nP(e, n.clientWidth, r.width),+ dy: nP(t, n.clientHeight, r.height)};}, [r]);function f(e) {@@ -38491,29 +38493,29 @@ function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oif (!n || !a || !r) return;let o = d(e.clientX - n.x, e.clientY - n.y);if (n.mode === "move") {- i($N(n.box, o.dx, o.dy, r));+ i(eP(n.box, o.dx, o.dy, r));return;}- i(spe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));+ i(ope(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));}function m(e) {c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));}function h(e) {if (!n || !r) return;- let a = Math.max(1, (n.x1 - n.x0) * fpe), o = {+ let a = Math.max(1, (n.x1 - n.x0) * dpe), o = {ArrowLeft: [-a, 0],ArrowRight: [a, 0],ArrowUp: [0, -a],ArrowDown: [0, a]};if (o[e.key]) {- e.preventDefault(), i($N(n, o[e.key][0], o[e.key][1], r));+ e.preventDefault(), i(eP(n, o[e.key][0], o[e.key][1], r));return;}- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(eP(n, e.key === "-" ? 1 / iP : iP, r, t)));+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(tP(n, e.key === "-" ? 1 / aP : aP, r, t)));}- let g = n && r ? cpe(QN(n, r, t), r) : null, _ = g ? {+ let g = n && r ? spe($N(n, r, t), r) : null, _ = g ? {"--crop-l": `${g.left}%`,"--crop-t": `${g.top}%`,"--crop-w": `${g.width}%`,@@ -38532,7 +38534,7 @@ function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odraggable: !1,onLoad: (e) => {let t = e.currentTarget;- XN({+ ZN({width: t.naturalWidth,height: t.naturalHeight}) && a({@@ -38571,7 +38573,7 @@ function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oonPointerCancel: m,onKeyDown: h,onWheel: (e) => {- !n || !r || i(eP(n, e.deltaY > 0 ? iP : 1 / iP, r, t));+ !n || !r || i(tP(n, e.deltaY > 0 ? aP : 1 / aP, r, t));},className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",children: /* @__PURE__ */ (0, B.jsx)("span", {@@ -38593,29 +38595,29 @@ function aP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o}//#endregion//#region src/react/avatar-picker/avatar-picker.ts-var ppe = "/api/avatar-choices", oP = "/api/avatar-pick", mpe = "/api/avatar-code-cover", hpe = "/avatar-choice", sP = (e, t) => [+var fpe = "/api/avatar-choices", sP = "/api/avatar-pick", ppe = "/api/avatar-code-cover", mpe = "/avatar-choice", cP = (e, t) => ["avatar-choices",e,t-], cP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, lP = (e, t, n, r = "") => `${hpe}${cP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), uP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", gpe = (e, t, n) => W(ppe + cP(e, t), n), _pe = (e) => G(mpe, { code: e });-function dP(e, t, n) {+], lP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, uP = (e, t, n, r = "") => `${mpe}${lP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), dP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", hpe = (e, t, n) => W(fpe + lP(e, t), n), gpe = (e) => G(ppe, { code: e });+function fP(e, t, n) {let r = t.width === e.width && t.height === e.height;- return e.focus && r ? ope(e.focus, t, n) : ZN(t, n);+ return e.focus && r ? ape(e.focus, t, n) : QN(t, n);}-var vpe = (e) => e.crop && XN({+var _pe = (e) => e.crop && ZN({width: e.width,height: e.height});-async function ype(e, t, n) {+async function vpe(e, t, n) {if (!("file" in n)) {- await G(oP, {+ await G(sP, {kind: e,id: t,...n});return;}- let r = n.file, i = await fetch(`${oP}${cP(e, t)}&name=${encodeURIComponent(r.name)}`, {+ let r = n.file, i = await fetch(`${sP}${lP(e, t)}&name=${encodeURIComponent(r.name)}`, {method: "POST",credentials: "same-origin",body: r@@ -38624,30 +38626,30 @@ async function ype(e, t, n) {let a = await i.json().catch(() => null);throw new RS(a?.error || `请求失败(${i.status})`, i.status, a);}-function bpe(e, t) {+function ype(e, t) {if (!t) return e;let n = t.matched_names.filter((t) => t !== e);return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;}-var xpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function Spe(e) {- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${xpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+var bpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function xpe(e) {+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${bpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;}-var fP = (e) => e.cast > 1, Cpe = (e) => fP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, wpe = {+var pP = (e) => e.cast > 1, Spe = (e) => pP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Cpe = {gfriends: "图库",history: "用过的",asset: "作品画面",code: "番号封面"};-function Tpe(e) {+function wpe(e) {if (e.startsWith("cover:")) return "封面";let t = e.split(":")[2] || "";if (t === "cover") return "封面";let n = Number(t.replace("cell", ""));return Number.isFinite(n) ? `第 ${n + 1} 格` : t;}-var Epe = (e) => `${wpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (fP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Dpe = 8, Ope = 3 / 4;-function kpe({ kind: e, entityId: t, name: n, onPicked: r }) {+var Tpe = (e) => `${Cpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (pP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Epe = 8, Dpe = 3 / 4;+function Ope({ kind: e, entityId: t, name: n, onPicked: r }) {let [i, a] = (0, R.useState)(!1);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", {className: "absolute right-1 bottom-1 z-10",@@ -38657,17 +38659,17 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r }) {"aria-label": `更换${n}的头像`,onClick: () => a(!0),className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",- children: /* @__PURE__ */ (0, B.jsx)(qie, {+ children: /* @__PURE__ */ (0, B.jsx)(Kie, {"aria-hidden": !0,className: "size-4"})})- }), /* @__PURE__ */ (0, B.jsx)(nP, {+ }), /* @__PURE__ */ (0, B.jsx)(rP, {isOpen: i,onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, B.jsx)(Ape, {+ children: /* @__PURE__ */ (0, B.jsx)(kpe, {kind: e,entityId: t,name: n,@@ -38676,50 +38678,50 @@ function kpe({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, R.useRef)(null), o = NM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = sP(e, t), _ = (0, R.useRef)(!1), v = wS({+function kpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, R.useRef)(null), o = PM(), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)(null), g = cP(e, t), _ = (0, R.useRef)(!1), v = wS({queryKey: g,- queryFn: ({ signal: n }) => gpe(e, t, n),+ queryFn: ({ signal: n }) => hpe(e, t, n),retryOnMount: !0});(0, R.useEffect)(() => () => {- _.current && p.removeQueries({ queryKey: sP(e, t) });+ _.current && p.removeQueries({ queryKey: cP(e, t) });}, [e, t]);let y = DS({- mutationFn: (n) => ype(e, t, n),+ mutationFn: (n) => vpe(e, t, n),onSuccess: () => {_.current = !0, i(), r();}}), b = DS({- mutationFn: (e) => _pe(e),+ mutationFn: (e) => gpe(e),onSuccess: (e) => h(e)});function x(e) {let t = e.currentTarget, n = t.files?.[0];t.value = "", f(""), n && y.mutate({ file: n });}- let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : Spe(S);+ let S = v.data, C = S?.choices ?? [], w = d || (y.error ? U(y.error) : "") || (!m && b.error ? U(b.error) : "") || (v.error ? U(v.error) : ""), T = y.isPending || b.isPending, E = m ? "" : xpe(S);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, B.jsx)(rP, { children: /* @__PURE__ */ (0, B.jsx)(PT, { className: "size-6" }) }),+ /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(FT, { className: "size-6" }) }),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(nD, {+ children: [/* @__PURE__ */ (0, B.jsx)(rD, {slot: "title",className: "text-title-3-semibold text-text-primary",children: m ? "框出头像那一块" : "更换头像"- }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(EE, {+ }), !m && C.length ? /* @__PURE__ */ (0, B.jsxs)(DE, {color: "soft",children: [C.length, " 张可选"]}) : null]}),/* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: m ? Cpe(m) : bpe(n, S)+ children: m ? Spe(m) : ype(n, S)}),E ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",@@ -38731,14 +38733,14 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, B.jsx)(FM, {- icon: yT,+ /* @__PURE__ */ (0, B.jsx)(IM, {+ icon: bT,size: "small","aria-label": "关闭",onClick: i})]- }), m ? /* @__PURE__ */ (0, B.jsx)(Mpe, {+ }), m ? /* @__PURE__ */ (0, B.jsx)(jpe, {kind: e,entityId: t,choice: m,@@ -38762,7 +38764,7 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {"aria-busy": v.isPending || void 0,"data-skeleton": v.isPending ? "avatar-choices" : void 0,className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",- children: v.isPending ? Array.from({ length: Dpe }, (e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {+ children: v.isPending ? Array.from({ length: Epe }, (e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {"aria-hidden": !0,"data-avatar-skeleton": !0,className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",@@ -38775,15 +38777,15 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: Epe(n),+ title: Tpe(n),...X(T),onClick: () => {T || (n.crop ? h(n) : y.mutate({ ref: n.ref }));},className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",children: [- /* @__PURE__ */ (0, B.jsx)(jpe, {- src: lP(e, t, n.ref, uP(n, n.ref)),+ /* @__PURE__ */ (0, B.jsx)(Ape, {+ src: uP(e, t, n.ref, dP(n, n.ref)),choice: n}),/* @__PURE__ */ (0, B.jsx)("span", {@@ -38792,15 +38794,15 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),n.current ? /* @__PURE__ */ (0, B.jsx)("span", {className: "absolute top-1 left-1",- children: /* @__PURE__ */ (0, B.jsx)(EE, {+ children: /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "gray",children: "在用"})}) : null,- fP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {+ pP(n) ? /* @__PURE__ */ (0, B.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, B.jsxs)(EE, {+ children: /* @__PURE__ */ (0, B.jsxs)(DE, {variant: "caption",color: "gray",children: [n.cast, " 人"]@@ -38819,7 +38821,7 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {},children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "番号",placeholder: "番号,如 ABW-232",value: l,@@ -38854,7 +38856,7 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {className: "flex min-w-0 flex-1 items-center gap-2",children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {type: "url","aria-label": "图片地址",placeholder: "https://…",@@ -38874,7 +38876,7 @@ function Ape({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function jpe({ src: e, choice: t }) {+function Ape({ src: e, choice: t }) {let n = (0, R.useRef)(null), [r, i] = (0, R.useState)(!1);(0, R.useEffect)(() => {n.current?.complete && n.current.naturalWidth && i(!0);@@ -38882,7 +38884,7 @@ function jpe({ src: e, choice: t }) {let a = {width: t.width,height: t.height- }, o = vpe(t) ? upe(dP(t, a, Ope), a) : null, s = r ? !0 : void 0;+ }, o = _pe(t) ? lpe(fP(t, a, Dpe), a) : null, s = r ? !0 : void 0;return /* @__PURE__ */ (0, B.jsxs)("span", {className: "relative block w-full aspect-avatar-choice overflow-hidden",children: [/* @__PURE__ */ (0, B.jsx)("img", {@@ -38907,23 +38909,23 @@ function jpe({ src: e, choice: t }) {})]});}-function Mpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = uP(n, s), m = lP(e, t, s, p), h = NM();+function jpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, R.useState)(o[0]), [l, u] = (0, R.useState)(null), [d, f] = (0, R.useState)(null), p = dP(n, s), m = uP(e, t, s, p), h = PM();function g(e) {c(e), u(null), f(null);}- let _ = d && l ? lpe(d, l) : null;+ let _ = d && l ? cpe(d, l) : null;return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {ref: h,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: [/* @__PURE__ */ (0, B.jsx)(aP, {+ children: [/* @__PURE__ */ (0, B.jsx)(oP, {src: m,aspect: 1,box: d,size: l,label: `${n.label} 的头像取景框`,onSize: (e) => {- u(e), XN(e) && f(s === n.ref ? dP(n, e, 1) : ZN(e, 1));+ u(e), ZN(e) && f(s === n.ref ? fP(n, e, 1) : QN(e, 1));},onBox: f}), o.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {@@ -38937,7 +38939,7 @@ function Mpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })"data-crop-base": !0,onClick: () => g(e),className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",- children: Tpe(e)+ children: wpe(e)}, e))}) : null]}), /* @__PURE__ */ (0, B.jsxs)("div", {@@ -38971,7 +38973,7 @@ function Mpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })}//#endregion//#region src/react/feed-new/feed-new-row.tsx-function pP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {+function mP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {let a = (0, R.useRef)(null), o = e?.items.length ? e.html : "";(0, R.useLayoutEffect)(() => {t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);@@ -39005,12 +39007,12 @@ function pP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {}//#endregion//#region src/react/entity-hero/glyph.tsx-var Npe = {+var Mpe = {"text-aa": 1.435,"mark-javdb": 326 / 111};-function mP({ name: e }) {- let t = Npe[e];+function hP({ name: e }) {+ let t = Mpe[e];return /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24","aria-hidden": "true",@@ -39020,19 +39022,19 @@ function mP({ name: e }) {}//#endregion//#region src/react/entity-hero/hero-pop.tsx-function hP(e, t) {+function gP(e, t) {let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;let i = n.bottom + 8;t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;}-var gP = (e) => !!e?.isConnected && e.matches(":popover-open");-function _P(e, t, n, r) {+var _P = (e) => !!e?.isConnected && e.matches(":popover-open");+function vP(e, t, n, r) {let i = (0, R.useRef)(r);i.current = r, (0, R.useEffect)(() => {if (!e) return;let r = () => {- t.current && gP(n.current) ? hP(t.current, n.current) : i.current();+ t.current && _P(n.current) ? gP(t.current, n.current) : i.current();};return addEventListener("scroll", r, {capture: !0,@@ -39046,17 +39048,17 @@ function _P(e, t, n, r) {n]);}-function vP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {+function yP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(!1), u = (0, R.useRef)(!1), d = (0, R.useRef)(0), f = () => {- clearTimeout(d.current), u.current = !1, gP(s.current) && s.current.hidePopover(), l(!1);+ clearTimeout(d.current), u.current = !1, _P(s.current) && s.current.hidePopover(), l(!1);}, p = () => {- clearTimeout(d.current), !(!s.current || !o.current || gP(s.current)) && (s.current.showPopover(), hP(o.current, s.current), l(!0));+ clearTimeout(d.current), !(!s.current || !o.current || _P(s.current)) && (s.current.showPopover(), gP(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 _P(c, o, s, f), (0, R.useEffect)(() => {+ return vP(c, o, s, f), (0, R.useEffect)(() => {if (!c) return;let e = (e) => {let t = e.target;@@ -39082,7 +39084,7 @@ function vP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {u.current ? f() : (p(), u.current = !0);},onKeyDown: (e) => {- e.key === "Escape" && gP(s.current) && (e.preventDefault(), f());+ e.key === "Escape" && _P(s.current) && (e.preventDefault(), f());},children: ["+", t]}), /* @__PURE__ */ (0, B.jsxs)("div", {@@ -39100,16 +39102,16 @@ function vP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function Ppe({ following: e, busy: t, onToggle: n, tip: r }) {+function Npe({ following: e, busy: t, onToggle: n, tip: r }) {let i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), [s, c] = (0, R.useState)(!1), l = (0, R.useRef)(!1), u = () => {- gP(o.current) && o.current.hidePopover(), c(!1);+ _P(o.current) && o.current.hidePopover(), c(!1);}, d = () => {- l.current || !o.current || !i.current || gP(o.current) || (o.current.showPopover(), hP(i.current, o.current), c(!0));+ l.current || !o.current || !i.current || _P(o.current) || (o.current.showPopover(), gP(i.current, o.current), c(!0));}, f = () => {l.current = !1, u();};- return _P(s, i, o, () => c(!1)), (0, R.useEffect)(() => {- i.current && gP(o.current) && hP(i.current, o.current);+ return vP(s, i, o, () => c(!1)), (0, R.useEffect)(() => {+ i.current && _P(o.current) && gP(i.current, o.current);}, [r]), /* @__PURE__ */ (0, B.jsxs)("label", {ref: i,"data-entry-feed": "",@@ -39118,7 +39120,7 @@ function Ppe({ following: e, busy: t, onToggle: n, tip: r }) {a.current?.matches(":focus-visible") || f();},children: [- /* @__PURE__ */ (0, B.jsx)(mP, { name: "rss" }),+ /* @__PURE__ */ (0, B.jsx)(hP, { name: "rss" }),/* @__PURE__ */ (0, B.jsx)("input", {ref: a,type: "checkbox",@@ -39153,29 +39155,29 @@ function Ppe({ following: e, busy: t, onToggle: n, tip: r }) {}//#endregion//#region src/react/entity-hero/name-picker.tsx-function Fpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function Ppe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);return (0, R.useEffect)(() => {o.current?.setAttribute("title", "名字与别名");- }, []), /* @__PURE__ */ (0, B.jsxs)($oe, {+ }, []), /* @__PURE__ */ (0, B.jsxs)(Qoe, {isOpen: i,onOpenChange: a,- children: [/* @__PURE__ */ (0, B.jsx)(eD, {+ children: [/* @__PURE__ */ (0, B.jsx)(tD, {ref: o,"data-namepick-toggle": "","aria-label": "名字与别名",- children: /* @__PURE__ */ (0, B.jsx)(mP, { name: "chevron-down" })- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ children: /* @__PURE__ */ (0, B.jsx)(hP, { name: "chevron-down" })+ }), /* @__PURE__ */ (0, B.jsx)(SO, {placement: "bottom start",offset: 8,containerPadding: 8,- className: Ck,+ className: wk,"data-namepick-menu": "",- children: /* @__PURE__ */ (0, B.jsxs)(tse, {+ children: /* @__PURE__ */ (0, B.jsxs)(ese, {"aria-label": "名字与别名","data-namepick-list": "",children: [- /* @__PURE__ */ (0, B.jsx)(OO, {+ /* @__PURE__ */ (0, B.jsx)(kO, {selectionMode: "single",disallowEmptySelection: !0,selectedKeys: [e],@@ -39183,31 +39185,31 @@ function Fpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let r = [...t][0];r && r !== e && n(r);},- children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(AO, {+ children: t.map((e) => /* @__PURE__ */ (0, B.jsxs)(jO, {id: e,textValue: e,"data-namepick-name": e,- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]}, e))}),- /* @__PURE__ */ (0, B.jsx)(Foe, { "data-namepick-rule": "" }),- /* @__PURE__ */ (0, B.jsx)(OO, { children: /* @__PURE__ */ (0, B.jsxs)(AO, {+ /* @__PURE__ */ (0, B.jsx)(Poe, { "data-namepick-rule": "" }),+ /* @__PURE__ */ (0, B.jsx)(kO, { children: /* @__PURE__ */ (0, B.jsxs)(jO, {id: "alias",textValue: "添加别名","data-namepick-alias": "",onAction: r,- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "plus" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "添加别名…" })]}) })]})})]});}-var Ipe = (e) => e === "studio" || e === "agency", yP = (e) => e === "performer" || e === "creator", Lpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";-function Rpe(e) {+var Fpe = (e) => e === "studio" || e === "agency", bP = (e) => e === "performer" || e === "creator", Ipe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";+function Lpe(e) {return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);}-function bP(e) {+function xP(e) {if (e.agency) return {name: e.agency.canonical_name,linked: !0@@ -39218,13 +39220,13 @@ function bP(e) {linked: !1} : null;}-function xP(e, t) {+function SP(e, t) {let n = Ce(e, "performer"), r = be(t);return r && [e.label, n].map(be).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}-var SP = (e) => ({ site: xe(e) });-function zpe(e, t) {- let n = bP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({+var CP = (e) => ({ site: xe(e) });+function Rpe(e, t) {+ let n = xP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,title: e.label,@@ -39234,7 +39236,7 @@ function zpe(e, t) {let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";return {type: "gone",- title: `${xP(e, n)} · ${t}`+ title: `${SP(e, n)} · ${t}`};}let r = e.url || "";@@ -39242,11 +39244,11 @@ function zpe(e, t) {type: "private",label: e.label || e.hostname || "已记录"};- if (yP(t) && e.link_kind !== "social") return {+ if (bP(t) && e.link_kind !== "social") return {type: "icon",url: r,- title: xP(e, n),- mark: SP(e)+ title: SP(e, n),+ mark: CP(e)};if (e.link_kind === "social") {let t = me(r);@@ -39254,7 +39256,7 @@ function zpe(e, t) {type: "icon",url: r,title: e.label || "",- mark: t ? { brand: t } : SP(e)+ mark: t ? { brand: t } : CP(e)};}return {@@ -39262,13 +39264,13 @@ function zpe(e, t) {url: r,title: e.label || "",text: Ce(e, t, i),- mark: SP(e)+ mark: CP(e)};});return [...r, ...a];}-var CP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function Bpe(e) {+var wP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");+function zpe(e) {return [["legal_name",@@ -39324,7 +39326,7 @@ function Bpe(e) {}]}] : []);}-function Vpe(e) {+function Bpe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -39381,14 +39383,14 @@ function Vpe(e) {tags: e.tags}), t;}-function Hpe(e) {+function Vpe(e) {let t = e.length > 5 ? 4 : e.length;return {shown: e.slice(0, t),rest: e.length - t};}-function Upe(e) {+function Hpe(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 ? {@@ -39399,7 +39401,7 @@ function Upe(e) {}//#endregion//#region src/react/entity-hero/entity-hero-page.tsx-function Wpe(e) {+function Upe(e) {return te({id: e.id,hasImage: e.has_image,@@ -39409,8 +39411,8 @@ function Wpe(e) {focus: e.avatar_focus});}-function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {- let s = yP(e), c = Ipe(e), l = s ? Vpe(n.profile) : c ? Bpe(n.company_profile) : [], u = zpe(n, e), d = CP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);+function Wpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {+ let s = bP(e), c = Fpe(e), l = s ? Bpe(n.profile) : c ? zpe(n.company_profile) : [], u = Rpe(n, e), d = wP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, R.useRef)(null), m = (0, R.useRef)(null);return (0, R.useEffect)(() => {o.wireScroller(p.current);}, [o, u.length]), (0, R.useEffect)(() => {@@ -39423,7 +39425,7 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, B.jsxs)("div", {"data-entity-portrait-wrap": "",- children: [/* @__PURE__ */ (0, B.jsx)(Kpe, {+ children: [/* @__PURE__ */ (0, B.jsx)(Gpe, {kind: e,name: t,helpers: o,@@ -39431,7 +39433,7 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,company: c}), s && n.id ? /* @__PURE__ */ (0, B.jsx)("span", {"data-avatar-picker": "",- children: /* @__PURE__ */ (0, B.jsx)(kpe, {+ children: /* @__PURE__ */ (0, B.jsx)(Ope, {kind: e,entityId: Number(n.id),name: n.canonical_name || t,@@ -39444,14 +39446,14 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, B.jsxs)("div", {"data-entity-title": "",- children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Fpe, {+ children: [/* @__PURE__ */ (0, B.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, B.jsx)(Ppe, {current: n.canonical_name,- choices: Rpe(n),+ choices: Lpe(n),onChoose: a.chooseName,onAddAlias: a.addAlias})]}),- /* @__PURE__ */ (0, B.jsx)(qpe, {+ /* @__PURE__ */ (0, B.jsx)(Kpe, {kind: e,entity: n,actions: a@@ -39472,9 +39474,9 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,u.length ? /* @__PURE__ */ (0, B.jsx)("div", {ref: p,"data-entity-links": "",- children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Zpe, { link: e }, t))+ children: u.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Xpe, { link: e }, t))}) : null,- d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Qpe, {+ d.length || n.feed ? /* @__PURE__ */ (0, B.jsx)(Zpe, {entity: n,actions: a,helpers: o@@ -39483,11 +39485,11 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}),l.length ? /* @__PURE__ */ (0, B.jsx)("dl", {"data-entity-facts": "",- children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Ype, {+ children: l.map((e) => /* @__PURE__ */ (0, B.jsx)(Jpe, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, B.jsx)(Xpe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, B.jsx)(Ype, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", {"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,children: [t ? " " : "", e.text]}, t))@@ -39506,7 +39508,7 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,onClick: () => a.openEntity("performer", e.k),children: [/* @__PURE__ */ (0, B.jsx)("span", {"data-hero-ring": "",- dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Wpe(e)}` }+ dangerouslySetInnerHTML: { __html: `<span>${ge(e.k.slice(0, 1))}</span>${Upe(e)}` }}), /* @__PURE__ */ (0, B.jsx)("span", {"data-hero-costar-name": "",children: e.k@@ -39514,14 +39516,14 @@ function Gpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}, e.k))})}) : null]- }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(pP, {+ }), i ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {feedNew: r,host: i,wire: o.wireFeedRow,act: (e, t) => a.feedAction(e, t)}), i) : null] });}-function Kpe({ kind: e, name: t, helpers: n, people: r, company: i }) {+function Gpe({ kind: e, name: t, helpers: n, people: r, company: i }) {let [a] = (0, R.useState)(() => `${n.portraitImg()}<span>${ge(t.slice(0, 1))}</span>`);return /* @__PURE__ */ (0, B.jsx)("div", {"data-entity-portrait": r ? "round" : "square",@@ -39530,8 +39532,8 @@ function Kpe({ kind: e, name: t, helpers: n, people: r, company: i }) {dangerouslySetInnerHTML: { __html: a }});}-function qpe({ kind: e, entity: t, actions: n }) {- let r = bP(t), i = (e, t) => (r) => {+function Kpe({ kind: e, entity: t, actions: n }) {+ let r = xP(t), i = (e, t) => (r) => {r.preventDefault(), n.openEntity(e, t);}, a = r ? r.linked ? /* @__PURE__ */ (0, B.jsx)("a", {href: he("agency", r.name),@@ -39540,37 +39542,37 @@ function qpe({ kind: e, entity: t, actions: n }) {children: r.name}) : r.name : null, o = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });if (e === "performer" || e === "creator") {- let e = Upe(t.name_groups);+ let e = Hpe(t.name_groups);return /* @__PURE__ */ (0, B.jsxs)("div", {"data-entity-alias": "meta",children: [- /* @__PURE__ */ (0, B.jsx)(wP, { entity: t }),+ /* @__PURE__ */ (0, B.jsx)(TP, { entity: t }),/* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsx)("span", { children: o })]}),a ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]}) : null,e ? /* @__PURE__ */ (0, B.jsxs)("div", {"data-meta-item": "names",children: [- /* @__PURE__ */ (0, B.jsx)(mP, { name: "id-card" }),+ /* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }),/* @__PURE__ */ (0, B.jsx)("span", {"data-alias-names": "",title: "别名",children: e.names.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))}),- e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(vP, {+ e.rest > 0 ? /* @__PURE__ */ (0, B.jsx)(yP, {id: "entityAliasPop",hook: "alias",rest: e.rest,label: `另外 ${e.rest} 个别名`,heading: `${e.total} 个别名`,- children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(Jpe, {+ children: /* @__PURE__ */ (0, B.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, B.jsx)(qpe, {label: e.label,names: e.names}, t)) })@@ -39592,21 +39594,21 @@ function qpe({ kind: e, entity: t, actions: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {"data-entity-alias": "meta",children: [- e === "creator" ? /* @__PURE__ */ (0, B.jsx)(wP, { entity: t }) : null,+ e === "creator" ? /* @__PURE__ */ (0, B.jsx)(TP, { entity: t }) : null,/* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "film" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [o, c] })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "film" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [o, c] })]}),a ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "briefcase" }), /* @__PURE__ */ (0, B.jsx)("span", { children: a })]}) : null,l ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "",title: "片商",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "clapperboard" }), /* @__PURE__ */ (0, B.jsx)("a", {+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "clapperboard" }), /* @__PURE__ */ (0, B.jsx)("a", {href: he("studio", l.name),"data-studio-link": l.name,onClick: i("studio", l.name),@@ -39616,7 +39618,7 @@ function qpe({ kind: e, entity: t, actions: n }) {s.length ? /* @__PURE__ */ (0, B.jsxs)("div", {"data-meta-item": "names","data-company-names": e === "studio" || e === "agency" ? "" : void 0,- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "id-card" }), /* @__PURE__ */ (0, B.jsx)("span", {+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "id-card" }), /* @__PURE__ */ (0, B.jsx)("span", {"data-alias-names": "",title: "别名",children: s.map((e, t) => /* @__PURE__ */ (0, B.jsx)("span", { children: e }, t))@@ -39625,32 +39627,32 @@ function qpe({ kind: e, entity: t, actions: n }) {]});}-function wP({ entity: e }) {+function TP({ entity: e }) {return e.identity_labels?.length ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-meta-item": "classification","data-identity-classification": "",- children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: "user-round" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.identity_labels.join(" · ") })]+ children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: "user-round" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.identity_labels.join(" · ") })]}) : null;}-function Jpe({ label: e, names: t }) {+function qpe({ label: e, names: t }) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, B.jsx)("dd", {"data-wide": e ? void 0 : "",children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, B.jsx)("small", { children: e.reading }) : null] }, t))})] });}-function Ype({ glyph: e, label: t, clip: n, children: r }) {- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(mP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {+function Jpe({ glyph: e, label: t, clip: n, children: r }) {+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("dt", { children: [/* @__PURE__ */ (0, B.jsx)(hP, { name: e }), t] }), /* @__PURE__ */ (0, B.jsx)("dd", {"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,title: n,children: r})] });}-function Xpe({ tags: e }) {- let { shown: t, rest: n } = Hpe(e);+function Ype({ tags: e }) {+ let { shown: t, rest: n } = Vpe(e);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, B.jsx)("span", {"data-fact-tag": "",children: e- }, e)), n ? /* @__PURE__ */ (0, B.jsx)(vP, {+ }, e)), n ? /* @__PURE__ */ (0, B.jsx)(yP, {id: "entityTagPop",hook: "fact",rest: n,@@ -39665,10 +39667,10 @@ function Xpe({ tags: e }) {})}) : null] });}-function TP({ mark: e }) {+function EP({ mark: e }) {if ("brand" in e) return /* @__PURE__ */ (0, B.jsx)("span", {"data-link-icon": "brand",- children: /* @__PURE__ */ (0, B.jsx)(mP, { name: e.brand })+ children: /* @__PURE__ */ (0, B.jsx)(hP, { name: e.brand })});let t = L("globe") + ("site" in e ? `<img src="${ge(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");return /* @__PURE__ */ (0, B.jsx)("span", {@@ -39676,7 +39678,7 @@ function TP({ mark: e }) {dangerouslySetInnerHTML: { __html: t }});}-function Zpe({ link: e }) {+function Xpe({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, B.jsx)("a", {"data-link": "icon",@@ -39685,19 +39687,19 @@ function Zpe({ link: e }) {rel: "noreferrer",title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark })+ children: /* @__PURE__ */ (0, B.jsx)(EP, { mark: e.mark })});case "gone": return /* @__PURE__ */ (0, B.jsx)("span", {"data-link": "gone",tabIndex: 0,title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } })+ children: /* @__PURE__ */ (0, B.jsx)(EP, { mark: { globe: !0 } })});case "private": return /* @__PURE__ */ (0, B.jsxs)("span", {"data-link": "private",title: e.label,- children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {+ children: [/* @__PURE__ */ (0, B.jsx)(EP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, B.jsxs)("span", {"data-link-label": "",children: ["来源 · ", e.label]})]@@ -39708,14 +39710,14 @@ function Zpe({ link: e }) {target: "_blank",rel: "noreferrer",title: e.title,- children: [/* @__PURE__ */ (0, B.jsx)(TP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {+ children: [/* @__PURE__ */ (0, B.jsx)(EP, { mark: e.mark }), /* @__PURE__ */ (0, B.jsx)("span", {"data-link-label": "",children: e.text})]});}}-function Qpe({ entity: e, actions: t, helpers: n }) {+function Zpe({ entity: e, actions: t, helpers: n }) {let [r, i] = (0, R.useState)(!!e.feed?.following), [a, o] = (0, R.useState)(!1), s = (0, R.useRef)(!1), c = async (e) => {if (s.current) return !1;s.current = !0, o(!0);@@ -39733,34 +39735,34 @@ function Qpe({ entity: e, actions: t, helpers: n }) {};return /* @__PURE__ */ (0, B.jsxs)("div", {"data-entry-marks": "",- children: [CP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {+ children: [wP(e).map((e, t) => /* @__PURE__ */ (0, B.jsxs)("a", {"data-entry-mark": "",href: e.url,target: "_blank",rel: "noreferrer",title: e.label,"aria-label": e.label,- children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(mP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {+ children: [e.mark ? /* @__PURE__ */ (0, B.jsx)(hP, { name: e.mark }) : /* @__PURE__ */ (0, B.jsxs)("span", {"data-missav-mark": "",children: [/* @__PURE__ */ (0, B.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "AV" })]}), e.ordinal ? /* @__PURE__ */ (0, B.jsx)("span", {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(Ppe, {+ }, t)), e.feed ? /* @__PURE__ */ (0, B.jsx)(Npe, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: Lpe(r)+ tip: Ipe(r)}) : null]});}//#endregion//#region src/react/entity-page/entity-page-view.tsx-function $pe(e) {- let { kind: t, name: n } = e, r = wS(vN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;+function Qpe(e) {+ let { kind: t, name: n } = e, r = wS(yN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;return (0, R.useLayoutEffect)(() => {i && o.missing();}, [o, i]), (0, R.useLayoutEffect)(() => {@@ -39774,12 +39776,12 @@ function $pe(e) {onRetry: () => {r.refetch();}- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, B.jsx)(nme, {+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, B.jsx)(tme, {...e,entity: r.data});}-function EP(e) {+function DP(e) {let [t, n] = (0, R.useState)({key: e,n: 1@@ -39791,14 +39793,14 @@ function EP(e) {};return n(r), r.n;}-var eme = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);-function tme(e, t) {+var $pe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);+function eme(e, t) {return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;}-function nme(e) {- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(yN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || bN(m).length > 0, _ = a.media === "photos" && g ? a : dN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);+function tme(e) {+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = OS(bN(t, n, 0, "")).data?.pages[0], m = f && !f.error ? f : null, h = m ? (m.total || 0) + (m.sample_total || 0) : 0, g = (m?.total || 0) > 0 || xN(m).length > 0, _ = a.media === "photos" && g ? a : fN, [v, y] = (0, R.useState)("people"), b = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [x, S] = (0, R.useState)(b);x !== b && (S(b), y("videos"));- let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = _N(e), D = wS(E), O = EP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));+ let C = l && v === "people" && u.length ? "people" : _.media, [w, T] = (0, R.useState)(0), E = vN(e), D = wS(E), O = DP(JSON.stringify([E.queryKey, w])), [k] = (0, R.useState)(() => (t === "performer" || t === "studio") && (e.jav || (D.data?.items || []).some((e) => e.is_jav)));(0, R.useLayoutEffect)(() => {s.javContext(k);}, [s, k]);@@ -39808,26 +39810,26 @@ function nme(e) {}, [e.layout, k]), j = {jav: e.jav,seed: e.seed- }, M = (0, R.useCallback)((e, r) => gN(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = OS({- ...yN(t, n, te, P),+ }, M = (0, R.useCallback)((e, r) => _N(t, n, i, j, e, r), [O]), [N, ee] = (0, R.useState)({}), te = _.set, P = N[te] || "", F = OS({+ ...bN(t, n, te, P),enabled: C === "photos"- }), ne = F.data?.pages[0], re = EP(JSON.stringify(pN(t, n, te, P))), ie = (0, R.useMemo)(() => {+ }), ne = F.data?.pages[0], re = DP(JSON.stringify(mN(t, n, te, P))), ie = (0, R.useMemo)(() => {let e = F.data?.pages;if (!e?.[0] || e[0].error) return null;let t = e[0];return {revision: re,- codeSets: t.id ? [] : bN(t),+ codeSets: t.id ? [] : xN(t),items: e.flatMap((e) => e.items || []),total: t.total || 0,hasMore: !!e[e.length - 1]?.has_more};}, [F.data, re]), ae = F.refetch, oe = F.fetchNextPage, se = wS({- ...lN(d, o.feedRowHtml),+ ...uN(d, o.feedRowHtml),enabled: !!d}), ce = (0, R.useRef)(e.feedRevision);(0, R.useEffect)(() => {- ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: cN(d) }));+ ce.current !== e.feedRevision && (ce.current = e.feedRevision, p.invalidateQueries({ queryKey: lN(d) }));}, [d, e.feedRevision]);let le = !!D.data;(0, R.useEffect)(() => {@@ -39844,7 +39846,7 @@ function nme(e) {ue.current = !1;}, []);let de = (0, R.useCallback)(async () => {- await p.invalidateQueries({ queryKey: fN(t, n) }), await p.invalidateQueries({ queryKey: [+ await p.invalidateQueries({ queryKey: pN(t, n) }), await p.invalidateQueries({ queryKey: ["entity-items",t,n@@ -39875,7 +39877,7 @@ function nme(e) {enabled: e})}),- onSuccess: (e, r) => p.setQueryData(fN(t, n), (e) => e && {+ onSuccess: (e, r) => p.setQueryData(pN(t, n), (e) => e && {...e,feed: {...e.feed,@@ -39923,10 +39925,10 @@ function nme(e) {let e = await pe("/api/feeds/check").catch(() => null);if (!e || e.status !== "running") break;}- ue.current && await p.invalidateQueries({ queryKey: cN(d) });+ ue.current && await p.invalidateQueries({ queryKey: lN(d) });})();},- feedAction: uN,+ feedAction: dN,avatarPicked: () => {s.avatarChanged(), de().then(() => {ue.current && T((e) => e + 1);@@ -39957,19 +39959,19 @@ function nme(e) {e === C && !_.set || (y(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {media: "photos",set: 0- } : dN));+ } : fN));},setState: (e) => s.route({...i,state: e- }, dN),+ }, fN),toggleTag: s.toggleTag,clearFilter: s.clearFilter,clearAll: s.clearAll,setSort: s.setSort,reshuffle: async () => {if (C !== "photos") {- let r = s.reshuffleVideos(), a = _N({+ let r = s.reshuffleVideos(), a = vN({kind: t,name: n,filters: {@@ -39983,7 +39985,7 @@ function nme(e) {await p.fetchQuery(a).catch(() => null);return;}- let r = eme(), a = await p.fetchInfiniteQuery(yN(t, n, te, r)).catch(() => null);+ let r = $pe(), a = await p.fetchInfiniteQuery(bN(t, n, te, r)).catch(() => null);!ue.current || !a?.pages[0] || a.pages[0].error || ee((e) => ({...e,[te]: r@@ -40016,7 +40018,7 @@ function nme(e) {k: e.k,label: ct(e.k),n: e.n,- selected: Cfe(i.tag, e.k)+ selected: Sfe(i.tag, e.k)})), be = h || u.length ? {label: u.length ? "页面视图" : "媒体类型",people: u.length ? {@@ -40042,9 +40044,9 @@ function nme(e) {if (C === "people") Ce = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;else if (C === "videos") {we = !D.data;- let e = mN(i.tag).map((e) => ct(e));+ let e = hN(i.tag).map((e) => ct(e));Ce = `视频 · ${(D.data?.work_total ?? D.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;- } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : tme(ne, bN(ne).length) : we = F.isPending;+ } else ne && !ne.error ? Ce = xe ? `${ne.title} · ${(ne.total || 0).toLocaleString()} 张` : eme(ne, xN(ne).length) : we = F.isPending;let Te = (0, R.useMemo)(() => ({...e.card.actions,loadMorePhotos: async () => {@@ -40061,7 +40063,7 @@ function nme(e) {u]);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(Gpe, {+ /* @__PURE__ */ (0, B.jsx)(Wpe, {kind: t,name: n,entity: r,@@ -40092,7 +40094,7 @@ function nme(e) {onRetry: () => {D.refetch();}- }) : /* @__PURE__ */ (0, B.jsx)(Qfe, {+ }) : /* @__PURE__ */ (0, B.jsx)(Zfe, {kind: t,name: n,view: C,@@ -40118,7 +40120,7 @@ function nme(e) {}//#endregion//#region src/react/components/collection-summary.tsx-function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {+function OP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {return /* @__PURE__ */ (0, B.jsxs)("div", {"data-collection-summary": "",className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5@@ -40145,29 +40147,29 @@ function DP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !}//#endregion//#region src/react/duplicates/duplicates-page.tsx-var rme = CA("play"), ime = CA("file-stack"), ame = kE({+var nme = CA("play"), rme = CA("file-stack"), ime = AE({padding: "none",radius: "surface",className: "mb-6 overflow-hidden dark:bg-background-primary-default"-}), OP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", kP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", AP = "font-mono text-caption-1-regular leading-5 text-text-secondary", jP = () => {+}), kP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", AP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", jP = "font-mono text-caption-1-regular leading-5 text-text-secondary", MP = () => {p.invalidateQueries({queryKey: qA,exact: !0}), p.invalidateQueries({- queryKey: _M,+ queryKey: vM,exact: !0});};-function ome(e) {+function ame(e) {return e.identical ? /* @__PURE__ */ (0, B.jsx)("span", {- className: `${kP} text-(--keep)`,+ className: `${AP} text-(--keep)`,children: "sha1 一致"}) : /* @__PURE__ */ (0, B.jsx)("span", {- className: `${kP} text-text-secondary`,+ className: `${AP} text-text-secondary`,children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"});}-function sme({ file: e, openItem: t }) {+function ome({ file: e, openItem: t }) {let n = () => t(e.id);return /* @__PURE__ */ (0, B.jsxs)("div", {className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",@@ -40177,7 +40179,7 @@ function sme({ file: e, openItem: t }) {onClick: n,"aria-label": `预览 ${e.name}`,className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",- children: [/* @__PURE__ */ (0, B.jsx)(rme, {+ children: [/* @__PURE__ */ (0, B.jsx)(nme, {"aria-hidden": !0,className: "size-6"}), /* @__PURE__ */ (0, B.jsx)("img", {@@ -40201,39 +40203,39 @@ function sme({ file: e, openItem: t }) {}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex flex-none gap-1",children: [e.is_largest ? /* @__PURE__ */ (0, B.jsx)("i", {- className: `${OP} not-italic bg-background-primary-hover text-text-secondary`,+ className: `${kP} not-italic bg-background-primary-hover text-text-secondary`,children: "最大"}) : null, e.is_longest ? /* @__PURE__ */ (0, B.jsx)("i", {- className: `${OP} not-italic bg-(--keep)/22 text-(--keep)`,+ className: `${kP} not-italic bg-(--keep)/22 text-(--keep)`,children: "最长"}) : null]}) : null]}),/* @__PURE__ */ (0, B.jsxs)("span", {- className: `${AP} flex min-w-0 items-center gap-1.5`,- children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {+ className: `${jP} flex min-w-0 items-center gap-1.5`,+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: Oe[e.location] || "database" }), /* @__PURE__ */ (0, B.jsx)("span", {className: "whitespace-nowrap",children: I[e.location] || e.location || e.drive})]}),/* @__PURE__ */ (0, B.jsx)("span", {- className: AP,+ className: jP,children: ye(e.size || 0)}),/* @__PURE__ */ (0, B.jsx)("span", {- className: AP,+ className: jP,children: ve(e.duration)}),/* @__PURE__ */ (0, B.jsx)("span", {"data-middle-truncate": !0,title: e.path ?? "",- className: `${AP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,+ className: `${jP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,children: e.path ?? ""})]});}-function cme({ openItem: e, toast: t, failure: n }) {+function sme({ openItem: e, toast: t, failure: n }) {let r = wS({queryKey: qA,queryFn: ({ signal: e }) => YA(e)@@ -40243,13 +40245,13 @@ function cme({ openItem: e, toast: t, failure: n }) {}), [a, o] = (0, R.useState)(""), s = DS({mutationFn: (e) => QA(e, "dispose"),onSuccess: (e, r) => {- jP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {+ MP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {try {await QA(r, "restore");} catch (e) {n("撤销移入回收站", e);} finally {- jP();+ MP();}} });},@@ -40276,7 +40278,7 @@ function cme({ openItem: e, toast: t, failure: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "mx-auto w-full max-w-board pb-10.5",children: [- /* @__PURE__ */ (0, B.jsx)(DP, {+ /* @__PURE__ */ (0, B.jsx)(OP, {label: "重复内容",figure: `${Number(c.total || 0).toLocaleString()} 组`,detail: `${c.files} 个文件 · 可回收 ${ye(c.reclaimable)}`@@ -40325,7 +40327,7 @@ function cme({ openItem: e, toast: t, failure: n }) {let r = [t], i = (e) => `${n}:${e}`;return /* @__PURE__ */ (0, B.jsxs)("section", {"aria-label": t.code,- className: ame,+ className: ime,children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",children: [@@ -40337,9 +40339,9 @@ function cme({ openItem: e, toast: t, failure: n }) {className: "font-mono text-caption-1-regular leading-5 text-text-primary",children: `${t.count} 个 · 可回收 ${ye(t.reclaimable)}`}),- ome(t),+ ame(t),t.cross_drive ? /* @__PURE__ */ (0, B.jsx)("span", {- className: `${kP} text-text-secondary`,+ className: `${AP} text-text-secondary`,children: `跨盘 ${t.drives.join(" ")}`}) : null,/* @__PURE__ */ (0, B.jsxs)("span", {@@ -40392,13 +40394,13 @@ function cme({ openItem: e, toast: t, failure: n }) {]})]- }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(sme, {+ }), /* @__PURE__ */ (0, B.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, B.jsx)(ome, {file: t,openItem: e}, t.id)) })]}, `${t.code}-${n}`);- }) : /* @__PURE__ */ (0, B.jsx)(AE, {- icon: ime,+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {+ icon: rme,title: "没有找到重复文件",children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"})@@ -40407,23 +40409,23 @@ function cme({ openItem: e, toast: t, failure: n }) {}//#endregion//#region src/react/diagnostics/diagnostics.ts-var MP = ["diagnostics"], NP = (e) => W("/api/diagnostics", e);-async function lme(e) {+var NP = ["diagnostics"], PP = (e) => W("/api/diagnostics", e);+async function cme(e) {await p.fetchQuery({- queryKey: MP,- queryFn: () => NP(e),+ queryKey: NP,+ queryFn: () => PP(e),staleTime: 1e4});}//#endregion//#region src/react/diagnostics/diagnostics-page.tsx-var PP = {+var FP = {ok: "正常",warning: "需检查",failed: "需处理",unknown: "未取得",disabled: "未配置"-}, ume = [+}, lme = [["媒体库与挂载", ["media_mounts", "data_root"]],["数据库与迁移", ["database", "schema"]],["工具", ["ffmpeg"]],@@ -40434,8 +40436,8 @@ var PP = {"version"]],["后台任务", ["tasks"]]-], FP = (e) => new Date(e).toLocaleString();-function dme({ name: e, check: t, navigate: n, configure: r }) {+], IP = (e) => new Date(e).toLocaleString();+function ume({ name: e, check: t, navigate: n, configure: r }) {let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",@@ -40447,7 +40449,7 @@ function dme({ name: e, check: t, navigate: n, configure: r }) {children: t.label}), /* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: PP[t.status] ?? "未取得"+ children: FP[t.status] ?? "未取得"})]}),/* @__PURE__ */ (0, B.jsx)("p", {@@ -40467,14 +40469,14 @@ function dme({ name: e, check: t, navigate: n, configure: r }) {]});}-function fme({ group: e, openItem: t, receipt: n }) {- let r = FE(), i = NM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");- return /* @__PURE__ */ (0, B.jsx)(Wk, {+function dme({ group: e, openItem: t, receipt: n }) {+ let r = IE(), i = PM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");+ return /* @__PURE__ */ (0, B.jsx)(Gk, {summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,children: e.count === null ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "neutral",children: "清单未取得,请重新检查。"- }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ }) : e.items.length ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center justify-between gap-2",children: [e.truncated ? /* @__PURE__ */ (0, B.jsxs)("span", {@@ -40509,20 +40511,20 @@ function fme({ group: e, openItem: t, receipt: n }) {}) }, e.id))})})- ] }) : /* @__PURE__ */ (0, B.jsx)(AE, {- icon: nae,+ ] }) : /* @__PURE__ */ (0, B.jsx)(jE, {+ icon: tae,title: "清单为空",shell: "plain",children: "没有需要处理的作品。"})});}-function pme(e) {+function fme(e) {let t = wS({- queryKey: MP,- queryFn: ({ signal: e }) => NP(e),+ queryKey: NP,+ queryFn: ({ signal: e }) => PP(e),staleTime: 1e4- }), n = FE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {+ }), n = IE(), [r, i] = (0, R.useState)(""), a = () => void n.run("refresh", async () => {let e = await t.refetch();if (e.error) throw e.error;return e.data;@@ -40543,27 +40545,27 @@ function pme(e) {tone: "error",children: r}) : null,- /* @__PURE__ */ (0, B.jsx)(Pk, {+ /* @__PURE__ */ (0, B.jsx)(Fk, {title: "库健康",- children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, B.jsxs)("p", {className: "text-body-2-regular text-text-secondary",- children: ["处理记录 · ", FP(o.library.issue_at)]- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(fme, {+ children: ["处理记录 · ", IP(o.library.issue_at)]+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(dme, {group: n,...e}, t))] })}),- ume.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Pk, {+ lme.map(([t, n]) => /* @__PURE__ */ (0, B.jsx)(Fk, {title: t,- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(dme, {+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, B.jsx)(ume, {name: t,check: o.checks[t],...e}, t) : null)}, t)),- /* @__PURE__ */ (0, B.jsx)(Pk, {+ /* @__PURE__ */ (0, B.jsx)(Fk, {title: "来源会话",- children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, B.jsxs)("h3", {@@ -40571,19 +40573,19 @@ function pme(e) {children: [e.label," · ",- PP[e.status]+ FP[e.status]]}),/* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-regular text-text-primary",children: e.reason}),- /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [/* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {term: "上次解析成功",- children: e.last_success_at ? FP(e.last_success_at) : "未取得"- }), /* @__PURE__ */ (0, B.jsx)(Uk, {+ children: e.last_success_at ? IP(e.last_success_at) : "未取得"+ }), /* @__PURE__ */ (0, B.jsx)(Wk, {term: "冷却截止",- children: e.cooldown_until ? FP(e.cooldown_until) : "未在冷却"+ children: e.cooldown_until ? IP(e.cooldown_until) : "未在冷却"})] })]}, e.source)), /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {@@ -40611,21 +40613,21 @@ function pme(e) {}//#endregion//#region src/react/feed-new/feed-new-page.tsx-function mme({ host: e, revision: t, helpers: n, actions: r }) {- let i = wS(lN(null, n.feedRowHtml)), a = (0, R.useRef)(t);+function pme({ host: e, revision: t, helpers: n, actions: r }) {+ let i = wS(uN(null, n.feedRowHtml)), a = (0, R.useRef)(t);return (0, R.useEffect)(() => {- a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: cN(null) }));- }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(pP, {+ a.current !== t && (a.current = t, p.invalidateQueries({ queryKey: lN(null) }));+ }, [t]), (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)(mP, {feedNew: i.data ?? null,host: e,wire: n.wireFeedRow,- act: uN,+ act: dN,settled: r.settled}), e);}//#endregion//#region src/follow-sort.ts-var IP = [+var LP = [["checked", "检查时间"],["added", "添加时间"],["name", "创作者名称"],@@ -40633,7 +40635,7 @@ var IP = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], hme = "checked", LP = {+], mme = "checked", RP = {checked: "desc",added: "desc",name: "asc",@@ -40641,32 +40643,32 @@ var IP = [source: "asc",provider: "asc",status: "asc"-}, gme = (e) => IP.some(([t]) => t === e);-function RP(e, t) {- let n = gme(e) ? e : hme;+}, hme = (e) => LP.some(([t]) => t === e);+function zP(e, t) {+ let n = hme(e) ? e : mme;return {sort: n,- dir: t === "asc" || t === "desc" ? t : LP[n]+ dir: t === "asc" || t === "desc" ? t : RP[n]};}//#endregion//#region src/react/follow-manage/follow-manage.ts-var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check", HP = "/api/follow/source", UP = "/api/follow/resolve", _me = "/api/follow/suggest", WP = "/api/follow/author-alias", vme = "/api/follow/credential", GP = "/api/follow/status", yme = "/api/feeds", KP = "/api/feeds/source", bme = "/api/feeds/check", xme = "/api/feeds/lookup", qP = ["follow-manage"], JP = ["follow-manage", "credentials"], Sme = ["follow-manage", "check"], Cme = ["follow-manage", "resolve"], YP = ["follow-manage", "feeds"], wme = (e) => [+var BP = "/api/follow", VP = "/api/follow/credentials", HP = "/api/follow/check", UP = "/api/follow/source", WP = "/api/follow/resolve", gme = "/api/follow/suggest", GP = "/api/follow/author-alias", _me = "/api/follow/credential", KP = "/api/follow/status", vme = "/api/feeds", qP = "/api/feeds/source", yme = "/api/feeds/check", bme = "/api/feeds/lookup", JP = ["follow-manage"], YP = ["follow-manage", "credentials"], xme = ["follow-manage", "check"], Sme = ["follow-manage", "resolve"], XP = ["follow-manage", "feeds"], Cme = (e) => ["follow-manage","suggest",e-], XP = [["default", "默认视图"], ["table", "表格视图"]], ZP = [+], ZP = [["default", "默认视图"], ["table", "表格视图"]], QP = [10,20,50,100-], Tme = Object.fromEntries(IP), QP = {+], wme = Object.fromEntries(LP), $P = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Eme = (e) => XP.some(([t]) => t === e), Dme = (e) => ZP.includes(Number(e)) ? Number(e) : 20, Ome = {+}, Tme = (e) => ZP.some(([t]) => t === e), Eme = (e) => QP.includes(Number(e)) ? Number(e) : 20, Dme = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -40674,25 +40676,25 @@ var zP = "/api/follow", BP = "/api/follow/credentials", VP = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, kme = (e, t) => `按${Tme[e]}${Ome[e][t === "asc" ? 0 : 1]}排序`;-function $P(e) {+}, Ome = (e, t) => `按${wme[e]}${Dme[e][t === "asc" ? 0 : 1]}排序`;+function eF(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function Ame(e) {+function kme(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}-var eF = (e) => e.last_status === "error" || e.last_status === "unauthorized", tF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), nF = {- source: tF,- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || tF(e, t),- status: (e, t) => $P(e) - $P(t) || tF(e, t)-}, rF = (e) => Date.parse(e || "") || 0, iF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();-function aF(e, t = []) {+var tF = (e) => e.last_status === "error" || e.last_status === "unauthorized", nF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), rF = {+ source: nF,+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || nF(e, t),+ status: (e, t) => eF(e) - eF(t) || nF(e, t)+}, iF = (e) => Date.parse(e || "") || 0, aF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();+function oF(e, t = []) {if (!e.length) return "";- let n = (e) => String(e.author_name || "").trim() || iF(e.label), r = e.find((e) => e.entity_name);+ let n = (e) => String(e.author_name || "").trim() || aF(e.label), r = e.find((e) => e.entity_name);if (r) return r.entity_name;let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);- if (i) return iF(i.canonical_name);+ if (i) return aF(i.canonical_name);let a = e.find((e) => e.official_avatar_url);if (a && n(a)) return n(a);let o = e.map(n).filter(Boolean);@@ -40700,18 +40702,18 @@ function aF(e, t = []) {let s = (e) => (e.match(/[A-Z]/g) || []).length;return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);}-function oF(e) {+function sF(e) {let t = e.trim().match(/[A-Za-z0-9]/);return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();}-function sF(e) {+function cF(e) {let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";return {src: r,fallback: t && n && n.avatar_url !== r && n.avatar_url || ""};}-function cF(e) {+function lF(e) {let t = [], n = /* @__PURE__ */ new Map();for (let r of e) {let e = r.author_key || `source:${r.id}`;@@ -40719,31 +40721,31 @@ function cF(e) {}return t.map((e) => n.get(e));}-function jme(e, t, n, r = []) {- let i = cF(e), a = n === LP[t] ? 1 : -1, o = (e) => aF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = nF[t];+function Ame(e, t, n, r = []) {+ let i = lF(e), a = n === RP[t] ? 1 : -1, o = (e) => oF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = rF[t];if (c) {for (let e of i) e.sort((e, t) => a * c(e, t));return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));}- let l = (e) => Math.max(...e.map((e) => rF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => rF(e.created_at)));+ let l = (e) => Math.max(...e.map((e) => iF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => iF(e.created_at)));return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));}-function Mme(e, t, n, r = []) {+function jme(e, t, n, r = []) {let i = e.flatMap((e) => {- let t = aF(e, r);+ let t = oF(e, r);return e.map((n) => ({source: n,group: e,author: t}));- }), a = nF[t];+ }), a = rF[t];if (a) {- let e = n === LP[t] ? 1 : -1;+ let e = n === RP[t] ? 1 : -1;i.sort((t, n) => e * a(t.source, n.source));}return i;}-function lF(e, t, n) {+function uF(e, t, n) {let r = gj(e, t), i = _j(n, r), a = (i - 1) * t;return {page: i,@@ -40753,91 +40755,91 @@ function lF(e, t, n) {end: Math.min(a + t, e)};}-function Nme(e, t) {+function Mme(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}-function uF(e, t) {+function dF(e, t) {let n = t.filter((t) => e.has(t)).length;return {all: t.length > 0 && n === t.length,some: n > 0 && n < t.length};}-function dF(e, t, n) {+function fF(e, t, n) {let r = new Set(e);for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var fF = (e) => W(`${zP}?summary=1`, e), pF = (e) => W(BP, e), Pme = (e) => W(VP, e), Fme = (e) => W(UP, e), Ime = (e, t) => W(`${_me}?q=${encodeURIComponent(e)}`, t), mF = (e) => G(VP, {+var pF = (e) => W(`${BP}?summary=1`, e), mF = (e) => W(VP, e), Nme = (e) => W(HP, e), Pme = (e) => W(WP, e), Fme = (e, t) => W(`${gme}?q=${encodeURIComponent(e)}`, t), hF = (e) => G(HP, {...e?.length ? { sources: e } : {},background: !0-}), Lme = (e) => G(UP, {+}), Ime = (e) => G(WP, {lines: e,background: !0-}), hF = (e, t) => G(HP, {+}), gF = (e, t) => G(UP, {action: "enabled",id: e,enabled: t-}), gF = (e) => G(HP, {+}), _F = (e) => G(UP, {action: "remove",id: e-}), Rme = (e) => G(HP, {+}), Lme = (e) => G(UP, {action: "add",url: e.url,label: e.label,author: e.author || "",aliases: e.aliases || [],defer_check: !0-}), _F = (e, t) => G(WP, {+}), vF = (e, t) => G(GP, {action: "add",canonical: e,alias: t-}), zme = (e) => G(WP, {+}), Rme = (e) => G(GP, {action: "remove",alias: e-}), Bme = (e, t) => G(vme, {+}), zme = (e, t) => G(_me, {provider: e,values: t-}), Vme = (e, t) => G(GP, {+}), Bme = (e, t) => G(KP, {item: e,to: t-}), Hme = () => W(`${zP}?status=new&limit=1000`);-async function vF(e) {- let t = await W(yme, e);+}), Vme = () => W(`${BP}?status=new&limit=1000`);+async function yF(e) {+ let t = await W(vme, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}-var yF = (e, t, n) => G(KP, {+var bF = (e, t, n) => G(qP, {action: "enabled",id: e,enabled: t-}, "POST", n), bF = (e, t) => G(KP, {+}, "POST", n), xF = (e, t) => G(qP, {action: "remove",id: e-}, "POST", t), xF = (e, t) => G(bme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Ume = (e, t) => W(`${xme}?q=${encodeURIComponent(e)}`, t), Wme = (e, t, n) => G(KP, {+}, "POST", t), SF = (e, t) => G(yme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Hme = (e, t) => W(`${bme}?q=${encodeURIComponent(e)}`, t), Ume = (e, t, n) => G(qP, {action: "follow-name",name: e,ids: t}, "POST", n);-async function Gme(e, t = "") {+async function Wme(e, t = "") {await Promise.all([- p.fetchQuery({- queryKey: qP,- queryFn: () => fF(e)- }),p.fetchQuery({queryKey: JP,queryFn: () => pF(e)}),- t === "feeds" ? p.fetchQuery({+ p.fetchQuery({queryKey: YP,- queryFn: () => vF(e)+ queryFn: () => mF(e)+ }),+ t === "feeds" ? p.fetchQuery({+ queryKey: XP,+ queryFn: () => yF(e)}) : null]);}-function SF(e, t) {- p.setQueryData(qP, (n) => n && {+function CF(e, t) {+ p.setQueryData(JP, (n) => n && {...n,sources: n.sources.map((n) => n.id === e ? {...n,@@ -40845,24 +40847,24 @@ function SF(e, t) {} : n)});}-function CF(e) {+function wF(e) {let t = new Set(e);- p.setQueryData(qP, (e) => e && {+ p.setQueryData(JP, (e) => e && {...e,sources: e.sources.filter((e) => !t.has(e.id))});}-var wF = () => p.invalidateQueries({- queryKey: qP,+var TF = () => p.invalidateQueries({+ queryKey: JP,exact: !0});-function Kme(e) {+function Gme(e) {let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");let f = t.filter((e) => e.exhausted).length;return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;}-var qme = (e) => (e?.results || []).filter((e) => !e.ok), Jme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", TF = (e) => e.last_checked_at ? vj(e.last_checked_at) : "未检查", Yme = /* @__PURE__ */ new Set([+var Kme = (e) => (e?.results || []).filter((e) => !e.ok), qme = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", EF = (e) => e.last_checked_at ? vj(e.last_checked_at) : "未检查", Jme = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -40875,50 +40877,50 @@ var qme = (e) => (e?.results || []).filter((e) => !e.ok), Jme = (e) => (e?.resul"gofile","f95zone","simpcity"-]), EF = (e) => Yme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Xme = {+]), DF = (e) => Jme.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Yme = {required: "需要",optional: "可选",none: "不需要",blocked: "接不进来"-}, DF = (e) => !!e.present && !e.missing.length, Zme = [+}, OF = (e) => !!e.present && !e.missing.length, Xme = [["", "全部"],["new", "未看"],["saved", "已保存"],["ignored", "已忽略"]-], Qme = [+], Zme = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]-], OF = {+], kF = {new: ["从新到旧", "从旧到新"],hot: ["从高到低", "从低到高"],dur: ["从长到短", "从短到长"]};-function kF(e, t) {+function AF(e, t) {let n = (e) => encodeURIComponent(e.join(","));return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);}-function AF(e, t) {+function jF(e, t) {return {queryKey: ["follow-feed",- kF(e, 0),+ AF(e, 0),t],- queryFn: ({ pageParam: t, signal: n }) => W(kF(e, t), n),+ queryFn: ({ pageParam: t, signal: n }) => W(AF(e, t), n),initialPageParam: 0,getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,placeholderData: kS.keepPreviousData};}-var jF = ["follow-feed", "credentials"], MF = (e) => W(BP, e).catch(() => ({ providers: [] }));-async function $me(e, t) {- let n = AF(e.view, e.revision);+var MF = ["follow-feed", "credentials"], NF = (e) => W(VP, e).catch(() => ({ providers: [] }));+async function Qme(e, t) {+ let n = jF(e.view, e.revision);p.removeQueries({queryKey: n.queryKey,exact: !0}), p.removeQueries({- queryKey: jF,+ queryKey: MF,exact: !0}), await Promise.all([p.fetchInfiniteQuery({queryKey: n.queryKey,@@ -40929,11 +40931,11 @@ async function $me(e, t) {initialPageParam: 0,getNextPageParam: n.getNextPageParam}), p.fetchQuery({- queryKey: jF,- queryFn: () => MF(t)+ queryKey: MF,+ queryFn: () => NF(t)})]);}-function NF(e) {+function PF(e) {if (!e?.pages.length) return null;let t = e.pages, n = t[t.length - 1];return {@@ -40942,10 +40944,10 @@ function NF(e) {groups: t.flatMap((e) => e.groups || [])};}-function PF(e, t, n) {+function FF(e, t, n) {return [...e].sort((e, r) => Ee(n, t(e)) - Ee(n, t(r)) || String(t(e)).localeCompare(String(t(r))));}-function FF(e) {+function IF(e) {let t = /* @__PURE__ */ new Set();return [e.primary,@@ -40953,14 +40955,14 @@ function FF(e) {...e.duplicates].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));}-function ehe(e) {+function $me(e) {let t = p.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);for (let n of t) {let t = n.state.data;if (!Array.isArray(t?.pages) || !t.pages.length) continue;let r = t.pages[t.pages.length - 1];for (let n of t.pages) for (let t of n.groups || []) {- let n = FF(t).find((t) => t.id === e);+ let n = IF(t).find((t) => t.id === e);if (n) return {item: n,group: t,@@ -40971,7 +40973,7 @@ function ehe(e) {}return null;}-function the(e) {+function ehe(e) {p.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -40981,7 +40983,7 @@ function the(e) {...t,groups: (t.groups || []).map((t) => {let n = (t) => t.id === e.id ? e : t;- return FF(t).some((t) => t.id === e.id) ? {+ return IF(t).some((t) => t.id === e.id) ? {...t,primary: n(t.primary),variants: t.variants.map(n),@@ -40991,39 +40993,39 @@ function the(e) {}))});}-function nhe(e, t) {+function the(e, t) {p.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)- }, (n) => n && UF(n, null, e, t));-}-function IF(e) {- return FF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+ }, (n) => n && WF(n, null, e, t));}function LF(e) {+ return IF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+}+function RF(e) {let t = /* @__PURE__ */ new Set(), n = e.media_items || [];return n.length ? n.forEach((e) => {(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;}-function RF(e) {+function zF(e) {let t = /* @__PURE__ */ new Set();- return FF(e).forEach((e) => LF(e).forEach((e) => t.add(e))), t;+ return IF(e).forEach((e) => RF(e).forEach((e) => t.add(e))), t;}-function zF(e, t) {+function BF(e, t) {let n = t === "images" ? "image" : "video";- return IF(e).find((e) => LF(e).has(n)) || e.primary;+ return LF(e).find((e) => RF(e).has(n)) || e.primary;}-function BF(e) {- return IF(e).filter((e) => e.playable && e.media_kind === "video");+function VF(e) {+ return LF(e).filter((e) => e.playable && e.media_kind === "video");}-var VF = {+var HF = {video: "个视频",image: "张图片",mixed: "个媒体"};-function rhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${VF[s] || VF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];+function nhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${HF[s] || HF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));return {isMix: !!c,@@ -41032,14 +41034,14 @@ function rhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: rfaces: d.length > 1 ? d.slice(0, i) : []};}-function ihe(e) {+function rhe(e) {let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);if (!t.length) return "";let n = Math.max(...t), r = Math.min(...t);return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;}-function HF(e, t, n) {- return e === t ? OF[e] ? {+function UF(e, t, n) {+ return e === t ? kF[e] ? {sort: e,dir: n === "asc" ? "desc" : "asc"} : null : {@@ -41047,13 +41049,13 @@ function HF(e, t, n) {dir: "desc"};}-function ahe(e, t, n, r) {- let i = HF(e, n, r);+function ihe(e, t, n, r) {+ let i = UF(e, n, r);if (!i) return "";- let a = OF[i.sort];+ let a = kF[i.sort];return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;}-function UF(e, t, n, r) {+function WF(e, t, n, r) {let i = "", a = e.pages.map((e) => ({...e,groups: (e.groups || []).flatMap((e) => {@@ -41083,7 +41085,7 @@ function UF(e, t, n, r) {})};}-function ohe(e, t) {+function ahe(e, t) {let n = [];return e.author && n.push({kind: "创作者",@@ -41103,7 +41105,7 @@ function ohe(e, t) {label: e})), n;}-function she(e, t) {+function ohe(e, t) {return t.kind === "创作者" ? {...e,author: ""@@ -41118,7 +41120,7 @@ function she(e, t) {tags: e.tags.filter((e) => e !== t.key)};}-function che(e, t) {+function she(e, t) {for (let n of e) {let e = n.primary?.tag_types?.[t];if (e) return e;@@ -41127,7 +41129,7 @@ function che(e, t) {}//#endregion//#region src/sidebar.ts-var lhe = [+var che = ["","follow","jav",@@ -41136,7 +41138,7 @@ var lhe = ["studios","flagged","manage"-], uhe = [+], lhe = ["playlists","immerse","stats",@@ -41146,77 +41148,77 @@ var lhe = ["follow-manage","quality"];-[...lhe, ...uhe];-function dhe(e) {+[...che, ...lhe];+function uhe(e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);}//#endregion//#region src/react/follow-feed/follow-marks.ts-var WF = (e) => typeof e == "string" ? e : "", GF = (e) => e.aliases;-function KF(e, t = "") {- let n = EF(e);+var GF = (e) => typeof e == "string" ? e : "", KF = (e) => e.aliases;+function qF(e, t = "") {+ let n = DF(e);return n ? `<img data-follow-site-icon="" src="${n}" alt="${ge(t)}"${t ? ` title="${ge(t)}"` : ""} loading="lazy" data-drop="self">` : "";}-var qF = (e, t) => aF(e, GF(t));-function JF(e, t) {- let { src: n, fallback: r } = sF(e), i = oF(t);+var JF = (e, t) => oF(e, KF(t));+function YF(e, t) {+ let { src: n, fallback: r } = cF(e), i = sF(t);if (!n) return `<span class="favatar none" title="没有可用头像">${ge(i)}</span>`;let a = r ? ` data-fallbacks="${ge(r)}"` : "";return `<img class="favatar" src="${ge(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${ge(i)}" data-drop-class="favatar none">`;}-function YF(e, t, n) {- let r = GF(n), i = e.credit, a = i?.poster;+function XF(e, t, n) {+ let r = KF(n), i = e.credit, a = i?.poster;if (!a) {- let n = aF(t, r);+ let n = oF(t, r);return {- author: n || WF(e.author) || WF(e.source_label) || "创作者未取得",- avatar: JF(t, n),+ author: n || GF(e.author) || GF(e.source_label) || "创作者未取得",+ avatar: YF(t, n),credited: ""};}- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && aF(c, r) || a;+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && oF(c, r) || a;return {author: l,- avatar: JF(c, l),+ avatar: YF(c, l),credited: i.credited || ""};}-function XF(e, t = e.primary) {+function ZF(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 = WF(e.primary.version);+ let i = GF(e.primary.version);i && n.push(r("version", ge(i)));- let a = WF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";+ let a = GF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";return o && n.push(r(a, o)), n.join("");}-function ZF(e, t = e.primary) {+function QF(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]) => KF(e, t) || `<span>${ge(t)}</span>`).join("");+ let r = [...n].map(([e, t]) => qF(e, t) || `<span>${ge(t)}</span>`).join("");return `<span data-follow-seealso="" title="另见 ${ge([...n.values()].join("、"))}">另见 ${r}</span>`;}-function QF(e, t) {- let n = WF(e.media_error);+function $F(e, t) {+ let n = GF(e.media_error);return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";}-var $F = (e) => e.published_at ? vj(e.published_at) : "时间未取得", eI = /* @__PURE__ */ new Set(), tI = [], nI = null;-function rI() {- if (nI = null, !tI.length) return;- let e = tI.splice(0, 200);+var eI = (e) => e.published_at ? vj(e.published_at) : "时间未取得", tI = /* @__PURE__ */ new Set(), nI = [], rI = null;+function iI() {+ if (rI = null, !nI.length) return;+ let e = nI.splice(0, 200);pe("/api/follow/image-dims", {method: "POST",body: JSON.stringify({ entries: e })- }).catch(() => {}), tI.length && (nI = setTimeout(rI, 800));+ }).catch(() => {}), nI.length && (rI = setTimeout(iI, 800));}-function fhe(e, t, n, r) {+function dhe(e, t, n, r) {let i = `${e}:${t ?? ""}`;- eI.has(i) || (eI.add(i), tI.push(t === null ? {+ tI.has(i) || (tI.add(i), nI.push(t === null ? {item: e,width: n,height: r@@ -41225,15 +41227,15 @@ function fhe(e, t, n, r) {width: n,height: r,media: t- }), nI ||= setTimeout(rI, 800));+ }), rI ||= setTimeout(iI, 800));}//#endregion//#region src/react/follow-feed/follow-card.tsx-var phe = (e) => Number(e) > 0;-function mhe(e) {+var fhe = (e) => Number(e) > 0;+function phe(e) {return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;}-function hhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {+function mhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {let [a, o] = (0, R.useState)(!1), [s, c] = (0, R.useState)(!1);return a ? null : /* @__PURE__ */ (0, B.jsx)("img", {src: s ? t : e,@@ -41251,8 +41253,8 @@ function hhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {} : void 0});}-function ghe(e) {- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = zF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => fhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? BF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = rhe({+function hhe(e) {+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = BF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => dhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? VF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = nhe({cover: p,coverFace: (f?.thumb_url ? f : u).face,stack: t.stack,@@ -41268,7 +41270,7 @@ function ghe(e) {w.current = C.onPointerLeave;let T = (0, R.useCallback)((e) => {e && (e._stopHover = () => w.current());- }, []), E = YF(u, n, i), D = $F(u), O = (u.tags || []).slice(0, 3), k = QF(u, i), A = ZF(t, u), j = u.status === "saved", M = (e) => {+ }, []), E = XF(u, n, i), D = eI(u), O = (u.tags || []).slice(0, 3), k = $F(u, i), A = QF(t, u), j = u.status === "saved", M = (e) => {if (!e.target.closest("[data-media-tag]")) {if (o || e.shiftKey || e.ctrlKey || e.metaKey) {e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);@@ -41301,7 +41303,7 @@ function ghe(e) {}), /* @__PURE__ */ (0, B.jsxs)("div", {"data-media-pic": "",children: [- p ? /* @__PURE__ */ (0, B.jsx)(hhe, {+ p ? /* @__PURE__ */ (0, B.jsx)(mhe, {src: p,fallback: m,width: _?.width,@@ -41309,7 +41311,7 @@ function ghe(e) {onLearn: v}, p) : /* @__PURE__ */ (0, B.jsx)("span", {"data-follow-nothumb": "",- dangerouslySetInnerHTML: { __html: KF(u.resource_provider || u.provider) }+ dangerouslySetInnerHTML: { __html: qF(u.resource_provider || u.provider) }}),x.faces.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {"data-mix-faces": "",@@ -41328,7 +41330,7 @@ function ghe(e) {"data-media-badge": "",title: u.provider_label,"aria-label": `来源:${u.provider_label || ""}`,- dangerouslySetInnerHTML: { __html: KF(u.provider) }+ dangerouslySetInnerHTML: { __html: qF(u.provider) }}),/* @__PURE__ */ (0, B.jsx)("span", {"data-media-check": "",@@ -41337,7 +41339,7 @@ function ghe(e) {},dangerouslySetInnerHTML: { __html: L("check") }}),- phe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {+ fhe(u.duration) ? /* @__PURE__ */ (0, B.jsx)("span", {"data-media-duration": "",children: ve(u.duration)}) : null,@@ -41419,7 +41421,7 @@ function ghe(e) {/* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-media-title": "",- dangerouslySetInnerHTML: { __html: XF(t, u) + ge(u.title) }+ dangerouslySetInnerHTML: { __html: ZF(t, u) + ge(u.title) }}),/* @__PURE__ */ (0, B.jsxs)("div", {"data-follow-byline": "",@@ -41430,7 +41432,7 @@ function ghe(e) {}), /* @__PURE__ */ (0, B.jsx)("time", {dateTime: u.published_at || "",title: D,- children: mhe(D)+ children: phe(D)})]}),E.credited ? /* @__PURE__ */ (0, B.jsx)("div", {@@ -41466,10 +41468,10 @@ function ghe(e) {]});}-var _he = (0, R.memo)(ghe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {+var ghe = (0, R.memo)(hhe), aI = () => /* @__PURE__ */ (0, B.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), vhe = CA("settings"), yhe = CA("chevron-down"), bhe = CA("history"), xhe = [[+}), _he = CA("settings"), vhe = CA("chevron-down"), yhe = CA("history"), bhe = [["fixed","固定比例","layout-grid"@@ -41478,19 +41480,19 @@ var _he = (0, R.memo)(ghe), iI = () => /* @__PURE__ */ (0, B.jsx)("span", {"瀑布流","columns-2"]];-function She(e, t, n) {+function xhe(e, t, n) {return (0, R.useMemo)(() => {let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();a.forEach((e) => {e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));});- let f = PF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = PF(o.works || [], (e) => e[0], n).slice(0, 24);+ let f = FF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = FF(o.works || [], (e) => e[0], n).slice(0, 24);t.work && !p.some((e) => e[0] === t.work) && p.push([t.work,t.work,0]);- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = PF([...u], (e) => e[0], n).slice(0, 20);+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = FF([...u], (e) => e[0], n).slice(0, 20);t.tags.forEach((e) => {h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);});@@ -41498,7 +41500,7 @@ function She(e, t, n) {videos: 0,images: 0};- r.forEach((e) => RF(e).forEach((e) => {+ r.forEach((e) => zF(e).forEach((e) => {g[e === "image" ? "images" : "videos"] += 1;}));let _ = t.media === "images" ? "image" : "video";@@ -41513,7 +41515,7 @@ function She(e, t, n) {workRows: p,allCount: m,mediaCounts: g,- visible: r.filter((e) => RF(e).has(_)),+ visible: r.filter((e) => zF(e).has(_)),author: d.has(t.author) && s.has(t.author) ? t.author : "",provider: l.has(t.provider) ? t.provider : "",workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),@@ -41526,15 +41528,15 @@ function She(e, t, n) {n]);}-function Che(e) {- let { view: t, seed: n, revision: r, actions: i } = e, a = AF(t, r), o = OS(a), s = wS({- queryKey: jF,- queryFn: ({ signal: e }) => MF(e)- }), c = (0, R.useMemo)(() => NF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({+function She(e) {+ let { view: t, seed: n, revision: r, actions: i } = e, a = jF(t, r), o = OS(a), s = wS({+ queryKey: MF,+ queryFn: ({ signal: e }) => NF(e)+ }), c = (0, R.useMemo)(() => PF(o.data), [o.data]), l = (0, R.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, R.useMemo)(() => ({sources: c?.sources || [],aliases: c?.author_aliases || [],credentials: l- }), [c, l]), d = She(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => dhe(d.visible.flatMap(FF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);+ }), [c, l]), d = xhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, R.useMemo)(() => uhe(d.visible.flatMap(IF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);(0, R.useEffect)(() => {p && i.loaded(m);}, [@@ -41542,7 +41544,7 @@ function Che(e) {m,i]);- let h = whe(e, !!c);+ let h = Che(e, !!c);if (!c) return o.isError ? /* @__PURE__ */ (0, B.jsx)(NA, {message: Te(o.error),onRetry: () => void o.refetch()@@ -41550,12 +41552,12 @@ function Che(e) {let g = (e) => i.route({...t,...e- }), _ = ohe({+ }), _ = ahe({...t,author: d.author,provider: d.provider}, {- authors: new Map([...d.authorSources].map(([e, t]) => [e, qF(t, u)])),+ authors: new Map([...d.authorSources].map(([e, t]) => [e, JF(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);@@ -41575,7 +41577,7 @@ function Che(e) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",- leadingIcon: vhe,+ leadingIcon: _he,"data-follow-manage": "",onClick: i.openManage,children: "管理关注"@@ -41592,20 +41594,20 @@ function Che(e) {}) : null]})]}),- /* @__PURE__ */ (0, B.jsx)(The, {+ /* @__PURE__ */ (0, B.jsx)(whe, {facets: d,pressed: d.author,context: u,props: e,onPick: (e) => g({ author: d.author === e ? "" : e })}),- /* @__PURE__ */ (0, B.jsx)(Ehe, {+ /* @__PURE__ */ (0, B.jsx)(The, {rows: d.workRows,pressed: t.work,props: e,onPick: (e) => g({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, B.jsx)(Dhe, {+ /* @__PURE__ */ (0, B.jsx)(Ehe, {facets: d,view: t,total: v,@@ -41613,9 +41615,9 @@ function Che(e) {props: e,route: g}),- /* @__PURE__ */ (0, B.jsx)(Ohe, {+ /* @__PURE__ */ (0, B.jsx)(Dhe, {conditions: _,- onDrop: (e) => i.route(she(t, e)),+ onDrop: (e) => i.route(ohe(t, e)),onClear: () => g({author: "",provider: "",@@ -41623,11 +41625,11 @@ function Che(e) {tags: []})}),- d.broken.length ? /* @__PURE__ */ (0, B.jsx)(khe, {+ d.broken.length ? /* @__PURE__ */ (0, B.jsx)(Ohe, {count: d.broken.length,onManage: i.openManage}) : null,- /* @__PURE__ */ (0, B.jsx)(Ahe, {+ /* @__PURE__ */ (0, B.jsx)(khe, {pending: f,facets: d,data: c,@@ -41644,13 +41646,13 @@ function Che(e) {load: async () => {await o.fetchNextPage({ throwOnError: !0 });},- children: [/* @__PURE__ */ (0, B.jsx)(yhe, { className: "size-3.5" }), "加载更多"]+ children: [/* @__PURE__ */ (0, B.jsx)(vhe, { className: "size-3.5" }), "加载更多"]}, o.data?.pages.length)}) : null, y ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",- leadingIcon: h.olderBusy ? void 0 : bhe,+ leadingIcon: h.olderBusy ? void 0 : yhe,"data-follow-older": "","aria-busy": h.busy || void 0,onClick: () => void h.start(!0),@@ -41660,14 +41662,14 @@ function Che(e) {}), /* @__PURE__ */ (0, B.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"}), /* @__PURE__ */ (0, B.jsx)("span", {"data-follow-backfill": "",- children: ihe(d.sources)+ children: rhe(d.sources)})]}) : null]}) : null]})] });}-function whe(e, t) {+function Che(e, t) {let { helpers: n, actions: r } = e, [i, a] = (0, R.useState)(0), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), f = (0, R.useRef)(!1), m = (0, R.useRef)(null), h = (0, R.useRef)({helpers: n,actions: r@@ -41682,7 +41684,7 @@ function whe(e, t) {return h.current.helpers.jobProgress({host: e,active: () => t,- read: (e) => W(VP, e),+ read: (e) => W(HP, e),busy: (e) => {t && (f.current = e, s(e));},@@ -41707,7 +41709,7 @@ function whe(e, t) {f.current = !0, l(e ? "older" : "check");let t = !1;try {- let n = await G(VP, e ? {+ let n = await G(HP, e ? {older: !0,background: !0} : { background: !0 });@@ -41725,7 +41727,7 @@ function whe(e, t) {olderBusy: c === "older" || u && o};}-function The({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function whe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {let a = (0, R.useRef)(null);return (0, R.useEffect)(() => {r.helpers.wireDrag(a.current);@@ -41742,16 +41744,16 @@ function The({ facets: e, pressed: t, context: n, props: r, onPick: i }) {onClick: () => i(r),children: [/* @__PURE__ */ (0, B.jsx)("span", {"data-follow-ring": "",- dangerouslySetInnerHTML: { __html: JF(a, qF(a, n)) }+ dangerouslySetInnerHTML: { __html: YF(a, JF(a, n)) }}), /* @__PURE__ */ (0, B.jsx)("span", {"data-follow-name": "",- children: qF(a, n)+ children: JF(a, n)})]}, r);})}) : null;}-function Ehe({ rows: e, pressed: t, props: n, onPick: r }) {+function The({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, R.useRef)(null);return (0, R.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -41772,7 +41774,7 @@ function Ehe({ rows: e, pressed: t, props: n, onPick: r }) {}, e[0]))}) : null;}-function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+function Ehe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {let { helpers: o, actions: s } = i, c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = (0, R.useRef)(null), d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = mA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = mA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);(0, R.useEffect)(() => {o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);@@ -41830,7 +41832,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: L(i) }}, e);})- }), /* @__PURE__ */ (0, B.jsx)(iI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {+ }), /* @__PURE__ */ (0, B.jsx)(aI, {})] }) : null, /* @__PURE__ */ (0, B.jsxs)("div", {ref: f,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, B.jsxs)("div", {@@ -41839,7 +41841,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-label": "状态","data-entity-states": "",onPointerLeave: h.leave,- children: [Zme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {+ children: [Xme.map(([e, n]) => /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-entity-state": e,"data-follow-filter": e,@@ -41850,7 +41852,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {t.status !== e && a({ status: e });},children: n- }, e)), v ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null]+ }, e)), v ? /* @__PURE__ */ (0, B.jsx)(aI, {}) : null]}), /* @__PURE__ */ (0, B.jsxs)("div", {ref: p,"data-entity-tags": "",@@ -41863,13 +41865,13 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {title: n,"aria-label": `来源:${n}`,onClick: () => a({ provider: e.provider === t ? "" : t }),- dangerouslySetInnerHTML: { __html: KF(t) }+ dangerouslySetInnerHTML: { __html: qF(t) }}, t)),- _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(iI, {}) : null,+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, B.jsx)(aI, {}) : null,e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, B.jsxs)(fA, {"data-follow-tag": n,"data-entity-press": "",- "data-tag-cat": `r34-${che(e.groups, n)}`,+ "data-tag-cat": `r34-${she(e.groups, n)}`,pressed: t.tags.includes(n),onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),children: [ct(n), r ? /* @__PURE__ */ (0, B.jsx)("span", {@@ -41891,7 +41893,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {y ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(EA, {label: "图片布局",value: i.photoLayout,- options: xhe,+ options: bhe,onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, B.jsxs)("button", {type: "button",@@ -41908,7 +41910,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: L("captions-off") }})]})] }) : null,- Qme.map(([e, n]) => {+ Zme.map(([e, n]) => {let r = t.sort === e, i = CA(t.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, B.jsxs)("button", {type: "button",@@ -41916,9 +41918,9 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"data-follow-sort": e,"data-entity-press": "","aria-pressed": r,- "aria-label": ahe(e, n, t.sort, t.dir) || void 0,+ "aria-label": ihe(e, n, t.sort, t.dir) || void 0,onClick: () => {- let n = HF(e, t.sort, t.dir);+ let n = UF(e, t.sort, t.dir);n && a(n);},children: [n, r ? /* @__PURE__ */ (0, B.jsx)(i, { className: "size-3.5" }) : null]@@ -41928,7 +41930,7 @@ function Dhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {})] })});}-function Ohe({ conditions: e, onDrop: t, onClear: n }) {+function Dhe({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -41953,7 +41955,7 @@ function Ohe({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function khe({ count: e, onManage: t }) {+function Ohe({ count: e, onManage: t }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-follow-broken": "",onClick: (e) => {@@ -41962,12 +41964,12 @@ function khe({ count: e, onManage: t }) {dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${L("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }});}-function Ahe({ pending: e, facets: t, data: n, context: r, props: i }) {+function khe({ pending: e, facets: t, data: n, context: r, props: i }) {let { view: a, helpers: o } = i, s = a.media === "images", c = MA(e, () => o.listSkeletonHtml(a.media));return /* @__PURE__ */ (0, B.jsxs)("div", {"data-follow-list-body": "","data-grid-reveal": c.fading ? "" : void 0,- children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(jhe, {+ children: [c.layer, e ? null : /* @__PURE__ */ (0, B.jsx)(Ahe, {facets: t,data: n,context: r,@@ -41976,38 +41978,38 @@ function Ahe({ pending: e, facets: t, data: n, context: r, props: i }) {})]});}-function jhe({ facets: e, data: t, context: n, props: r, images: i }) {- let { view: a, actions: o } = r, s = Phe(r), c = i ? {+function Ahe({ facets: e, data: t, context: n, props: r, images: i }) {+ let { view: a, actions: o } = r, s = Nhe(r), c = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)} : {}, l;return l = e.visible.length ? e.visible.map((t) => {let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;- return /* @__PURE__ */ (0, B.jsx)(_he, {+ return /* @__PURE__ */ (0, B.jsx)(ghe, {group: t,authorSources: c,media: a.media,context: n,- selected: r.selected.has(aI(t, a)),+ selected: r.selected.has(oI(t, a)),selectMode: r.selectMode,- busy: s.busy.get(aI(t, a)) || "",- failure: s.failures.get(aI(t, a)) || "",+ busy: s.busy.get(oI(t, a)) || "",+ failure: s.failures.get(oI(t, a)) || "",actions: o,onStatus: s.status,onSave: s.save}, `${l}:${a.media}`);- }) : /* @__PURE__ */ (0, B.jsx)(Mhe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {+ }) : /* @__PURE__ */ (0, B.jsx)(jhe, { data: t }), /* @__PURE__ */ (0, B.jsx)("div", {"data-follow-list": "","data-follow-wall": i ? "" : void 0,...c,children: l});}-function aI(e, t) {- return zF(e, t.media).id;+function oI(e, t) {+ return BF(e, t.media).id;}-function Mhe({ data: e }) {+function jhe({ data: e }) {let t = (e.groups || []).length ? Pe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Pe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Pe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });return /* @__PURE__ */ (0, B.jsx)("div", {"data-follow-empty": "",@@ -42015,22 +42017,22 @@ function Mhe({ data: e }) {dangerouslySetInnerHTML: { __html: t }});}-var Nhe = {+var Mhe = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"};-function Phe(e) {- let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = AF(t, n).queryKey, l = (e, t, n) => n((n) => {+function Nhe(e) {+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, R.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, R.useState)(() => /* @__PURE__ */ new Map()), c = jF(t, n).queryKey, l = (e, t, n) => n((n) => {let r = new Map(n);return t ? r.set(e, t) : r.delete(e), r;}), u = (e, n) => {- p.setQueryData(c, (r) => r && UF(r, t, e, n));+ p.setQueryData(c, (r) => r && WF(r, t, e, n));}, d = () => void p.invalidateQueries({queryKey: c,exact: !0}), f = (e) => {- let t = NF(p.getQueryData(c));+ let t = PF(p.getQueryData(c));for (let n of t?.groups || []) for (let t of [n.primary,...n.variants,@@ -42038,13 +42040,13 @@ function Phe(e) {]) if (t.id === e) return t.status;return "new";}, m = DS({- mutationFn: ({ id: e, to: t }) => G(GP, {+ mutationFn: ({ id: e, to: t }) => G(KP, {item: e,to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), d(), r.toast(Nhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {- await G(GP, {+ u(t, n), d(), r.toast(Mhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ await G(KP, {item: t,to: i}), u(t, i), d();@@ -42089,8 +42091,8 @@ function Phe(e) {}//#endregion//#region src/react/follow-manage/source-view.tsx-function oI({ provider: e, label: t }) {- let n = EF(e), [r, i] = (0, R.useState)(!1);+function sI({ provider: e, label: t }) {+ let n = DF(e), [r, i] = (0, R.useState)(!1);return !n || r ? t ? /* @__PURE__ */ (0, B.jsx)(B.Fragment, { children: t }) : null : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("img", {src: n,alt: "",@@ -42101,8 +42103,8 @@ function oI({ provider: e, label: t }) {className: "size-3.5 shrink-0 rounded-sm object-contain"}), t ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : null] });}-function sI({ group: e, name: t }) {- let { src: n, fallback: r } = sF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];+function cI({ group: e, name: t }) {+ let { src: n, fallback: r } = cF(e), [i, a] = (0, R.useState)(0), o = [n, r].filter(Boolean)[i];return o ? /* @__PURE__ */ (0, B.jsx)("img", {src: o,alt: "",@@ -42115,18 +42117,18 @@ function sI({ group: e, name: t }) {}) : /* @__PURE__ */ (0, B.jsx)("span", {title: "没有可用头像",className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",- children: oF(t)+ children: sF(t)});}-function cI({ source: e }) {- let t = eF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";- return /* @__PURE__ */ (0, B.jsx)(EE, {+function lI({ source: e }) {+ let t = tF(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";+ return /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: t,- children: Ame(e)+ children: kme(e)});}-function lI({ source: e }) {+function uI({ source: e }) {return /* @__PURE__ */ (0, B.jsxs)("a", {href: e.url,target: "_blank",@@ -42141,11 +42143,11 @@ function lI({ source: e }) {}//#endregion//#region src/react/follow-manage/add-source.tsx-var uI = CE(wk, Tk, "text-body-2-medium"), Fhe = "粘贴来源链接,或输入创作者名、id…", Ihe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Lhe = "识别中…", Rhe = "站内没有查到来源", dI = (e, t) => `${e}:${t.url}`;-function zhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {+var dI = wE(Tk, Ek, "text-body-2-medium"), Phe = "粘贴来源链接,或输入创作者名、id…", Fhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Ihe = "识别中…", Lhe = "站内没有查到来源", fI = (e, t) => `${e}:${t.url}`;+function Rhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {return (0, R.useEffect)(() => {t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });- }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(xO, {+ }, [t, r]), /* @__PURE__ */ (0, B.jsxs)(SO, {ref: t,triggerRef: e,isOpen: !0,@@ -42157,17 +42159,17 @@ function zhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCplacement: "bottom start",offset: 4,"aria-label": "来源建议",- className: CE(Ck, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),+ className: wE(wk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),children: [i && !n.length ? /* @__PURE__ */ (0, B.jsx)("div", {className: "px-2 py-1.5",- children: /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在查找建议" })+ children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找建议" })}) : null, n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(R.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, B.jsx)("div", {className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",children: e.group}), /* @__PURE__ */ (0, B.jsxs)("button", {type: "button","aria-current": t === r ? "true" : void 0,- className: t === r ? CE(uI, "bg-background-secondary-default") : uI,+ className: t === r ? wE(dI, "bg-background-secondary-default") : dI,onMouseDown: (e) => e.preventDefault(),onClick: () => a(e.value),children: [@@ -42187,7 +42189,7 @@ function zhe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC})] }, `${e.group}-${e.value}`))]});}-function Bhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {+function zhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {let i = (0, R.useRef)(null), [a, o] = (0, R.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {let i = new Set(t);r ? i.delete(e) : i.add(e), n(i);@@ -42195,20 +42197,20 @@ function Bhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J, {ref: i,variant: "secondary",- leadingIcon: rae,+ leadingIcon: nae,"aria-haspopup": "dialog","aria-expanded": a,"aria-label": l,onClick: () => o(!0),children: l- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(SO, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom end",offset: 4,- className: Ck,- children: /* @__PURE__ */ (0, B.jsxs)(MO, {+ className: wk,+ children: /* @__PURE__ */ (0, B.jsxs)(NO, {"aria-label": "来源筛选",className: "flex w-64 flex-col gap-1 outline-none",children: [s.length ? /* @__PURE__ */ (0, B.jsxs)("div", {@@ -42224,16 +42226,16 @@ function Bhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onClick: () => n(new Set(s.map((e) => e.provider_label))),children: "全不选"})]- }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "暂无可用来源" }), s.map((e) => {+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "暂无可用来源" }), s.map((e) => {let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(GM, {+ children: [/* @__PURE__ */ (0, B.jsx)(KM, {isSelected: !t.has(e.provider_label),onChange: (t) => u(e.provider_label, t),children: /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5",- children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }), e.provider_label]+ children: [/* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }), e.provider_label]})}), n ? /* @__PURE__ */ (0, B.jsx)(J, {variant: "ghost",@@ -42249,7 +42251,7 @@ function Bhe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {})})] });}-function Vhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {+function Bhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {if (e.kind === "error") return /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: e.line,@@ -42257,7 +42259,7 @@ function Vhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {});let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});return /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({variant: "outlined",padding: "none",className: "flex flex-col gap-2 p-4"@@ -42268,15 +42270,15 @@ function Vhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {children: e.line}),a.length ? a.map((e) => {- let n = dI(t, e);- return /* @__PURE__ */ (0, B.jsx)(GM, {+ let n = fI(t, e);+ return /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: !e.known && !r.has(n),isDisabled: e.known,onChange: (e) => i(n, e),children: /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-1.5",children: [- /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }),+ /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }),/* @__PURE__ */ (0, B.jsx)("b", {className: "text-body-medium",children: e.provider_label@@ -42292,22 +42294,22 @@ function Vhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {]})}, n);- }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: Rhe }),+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: Lhe }),(e.external_searches || []).map((e) => /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, B.jsx)("small", {className: "text-caption-1-regular text-text-secondary",children: e.evidence- }), /* @__PURE__ */ (0, B.jsx)(Vk, {+ }), /* @__PURE__ */ (0, B.jsx)(Hk, {href: e.url,children: `${e.label}:${e.query}`})]}, e.url)),- o.length ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null+ o.length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null]});}-function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {+function Vhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(!1), [p, m] = (0, R.useState)(null), [h, g] = (0, R.useState)(-1), _ = (0, R.useRef)(null), v = (0, R.useRef)(null), [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, R.useState)(""), [T, E] = (0, R.useState)(0);(0, R.useEffect)(() => {let e = a.trim();@@ -42319,18 +42321,18 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:return () => clearTimeout(t);}, [a]);let D = wS({- queryKey: wme(l),- queryFn: ({ signal: e }) => Ime(l, e),+ queryKey: Cme(l),+ queryFn: ({ signal: e }) => Fme(l, e),enabled: l.length > 0 && d}), O = (0, R.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({value: t.value,matched: t.matched || "",n: t.n || 0,group: e.label- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = VM({- queryKey: Cme,- queryFn: ({ signal: e }) => Fme(e),- start: (e) => Lme([e]),+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = HM({+ queryKey: Sme,+ queryFn: ({ signal: e }) => Pme(e),+ start: (e) => Ime([e]),onStarted: () => S(/* @__PURE__ */ new Set()),onError: (e) => w(U(e)),onFinish: (e) => {@@ -42364,14 +42366,14 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({candidate: e,- key: dI(t, e)+ key: fI(t, e)})).filter((e) => !x.has(e.key))), ae = DS({mutationFn: async (e) => {let t = [], n = [];E(0);for (let r of e) {try {- let e = await Rme(r.candidate);+ let e = await Lme(r.candidate);n.push(e.source);} catch (e) {t.push(`${r.candidate.label}:${U(e)}`);@@ -42379,7 +42381,7 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:E((e) => e + 1);}if (n.length) try {- await mF(n);+ await hF(n);} catch (e) {t.push(U(e));}@@ -42389,7 +42391,7 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:};},onSuccess: (e) => {- if (wF(), e.failures.length) {+ if (TF(), e.failures.length) {w(e.failures.join(";"));return;}@@ -42398,7 +42400,7 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onError: (e) => w(U(e))}), oe = e.suggestions || [], se = !s.includes("/");return /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42418,15 +42420,15 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = e.relatedTarget;!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);},- children: [/* @__PURE__ */ (0, B.jsx)(Sk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "来源链接、名字或 id",- placeholder: Fhe,+ placeholder: Phe,value: a,- leadingIcon: MT,+ leadingIcon: NT,isDisabled: n,onChange: o,onKeyDown: ne- }), P ? /* @__PURE__ */ (0, B.jsx)(zhe, {+ }), P ? /* @__PURE__ */ (0, B.jsx)(Rhe, {field: _,menu: v,options: O,@@ -42436,7 +42438,7 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onClose: F}) : null]}),- /* @__PURE__ */ (0, B.jsx)(Bhe, {+ /* @__PURE__ */ (0, B.jsx)(zhe, {credentials: t,hidden: y,onHidden: b,@@ -42454,9 +42456,9 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:/* @__PURE__ */ (0, B.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",- children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(LM, {+ children: [A || M.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Ihe : Lhe),+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : se ? Fhe : Ihe),value: k?.checked,total: k?.total}) : null, C ? /* @__PURE__ */ (0, B.jsx)(Y, {@@ -42468,8 +42470,8 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:re.length ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "查找结果" }),- re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Vhe, {+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "查找结果" }),+ re.map((e, t) => /* @__PURE__ */ (0, B.jsx)(Bhe, {row: e,at: t,hidden: y,@@ -42524,16 +42526,16 @@ function Hhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}//#endregion//#region src/react/follow-manage/alias-manager.tsx-var Uhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, fI = (e) => e.alias;-function Whe(e, t, n) {+var Hhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, pI = (e) => e.alias;+function Uhe(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 pI({ sources: e, name: t, canonicalKey: n }) {+function mI({ sources: e, name: t, canonicalKey: n }) {return /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(sI, {- group: Whe(e, t, n),+ children: [/* @__PURE__ */ (0, B.jsx)(cI, {+ group: Uhe(e, t, n),name: t}), /* @__PURE__ */ (0, B.jsx)("b", {className: "text-body-medium",@@ -42541,15 +42543,15 @@ function pI({ sources: e, name: t, canonicalKey: n }) {})]});}-function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {+function Whe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {let [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), p = DS({mutationFn: async (e) => {let t = 0;for (let n of e) {try {- await _F(n.canonical, n.alias);+ await vF(n.canonical, n.alias);} catch (n) {- throw t && wF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);+ throw t && TF(), Error(`${U(n)}(还有 ${e.length - t} 组没有合并)`);}t += 1;}@@ -42559,19 +42561,19 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i};},onSuccess: (e) => {- c(""), o(/* @__PURE__ */ new Set()), wF(), i(`已合并 ${e.done} 组创作者别名`);+ c(""), o(/* @__PURE__ */ new Set()), TF(), i(`已合并 ${e.done} 组创作者别名`);},onError: (e) => c(U(e))}), m = DS({- mutationFn: (e) => _F(e.canonical, e.alias),+ mutationFn: (e) => vF(e.canonical, e.alias),onSuccess: () => {- c(""), u(""), f(""), wF(), i("已保存创作者别名");+ c(""), u(""), f(""), TF(), i("已保存创作者别名");},onError: (e) => c(U(e))}), h = DS({- mutationFn: (e) => zme(e),+ mutationFn: (e) => Rme(e),onSuccess: () => {- c(""), wF(), i("已移除创作者别名");+ c(""), TF(), i("已移除创作者别名");},onError: (e) => c(U(e))}), g = (e, t) => {@@ -42581,9 +42583,9 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iconfirmLabel: t ? "合并全部别名" : "合并所选别名",onConfirm: () => p.mutateAsync(e)});- }, _ = t.filter((e) => a.has(fI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);+ }, _ = t.filter((e) => a.has(pI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);return /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42594,10 +42596,10 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "手动添加别名" }), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "规范创作者名",placeholder: "规范创作者名",value: l,@@ -42605,7 +42607,7 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iisDisabled: r,className: "w-56"}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "平台别名",placeholder: "平台别名",value: d,@@ -42626,13 +42628,13 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i]})]}),- s ? /* @__PURE__ */ (0, B.jsx)(zk, { children: s }) : null,+ s ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: s }) : null,t.length ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "待合并" }),+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "待合并" }),/* @__PURE__ */ (0, B.jsx)("span", {className: "mr-auto text-body-2-regular text-text-secondary",children: `${t.length} 组`@@ -42654,44 +42656,44 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: `全部合并(${t.length})`})]- }), /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ }), /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": "待合并创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [- /* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "select",- children: /* @__PURE__ */ (0, B.jsx)(GM, {+ children: /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,isSelected: v,isIndeterminate: _.length > 0 && !v,"aria-label": "全选待合并别名",- onChange: (e) => o(e ? new Set(t.map(fI)) : /* @__PURE__ */ new Set())+ onChange: (e) => o(e ? new Set(t.map(pI)) : /* @__PURE__ */ new Set())})}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "canonical",children: "规范创作者"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "alias",isRowHeader: !0,children: "平台别名"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "evidence",children: "依据"}),- /* @__PURE__ */ (0, B.jsx)(rk, {+ /* @__PURE__ */ (0, B.jsx)(ik, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: t.map((e) => {- let t = fI(e);- return /* @__PURE__ */ (0, B.jsxs)(ck, {+ ] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: t.map((e) => {+ let t = pI(e);+ return /* @__PURE__ */ (0, B.jsxs)(lk, {id: t,"data-board-selected": a.has(t) || void 0,children: [- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,isSelected: a.has(t),"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,@@ -42700,16 +42702,16 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ie ? n.add(t) : n.delete(t), o(n);}}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(mI, {sources: n,name: e.canonical}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: e.alias }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: e.alias }),+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: e.evidence}) }),- /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",disabled: r,@@ -42726,27 +42728,27 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iclassName: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "已保存别名" }), /* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: `${e.length} 组`})]- }), e.length ? /* @__PURE__ */ (0, B.jsx)(JM, { children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ }), e.length ? /* @__PURE__ */ (0, B.jsx)(YM, { children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": "已保存创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, B.jsxs)(nk, { children: [/* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(rk, { children: [/* @__PURE__ */ (0, B.jsx)(ik, {id: "canonical",isRowHeader: !0,children: "规范创作者"- }), /* @__PURE__ */ (0, B.jsx)(rk, {+ }), /* @__PURE__ */ (0, B.jsx)(ik, {id: "aliases",children: "平台别名"- })] }), /* @__PURE__ */ (0, B.jsx)(ak, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(ck, {+ })] }), /* @__PURE__ */ (0, B.jsx)(ok, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(lk, {id: e.canonical_key,- children: [/* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)(pI, {+ children: [/* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)(mI, {sources: n,name: e.canonical_name,canonicalKey: e.canonical_key- }) }), /* @__PURE__ */ (0, B.jsx)(uk, { children: /* @__PURE__ */ (0, B.jsx)("span", {+ }) }), /* @__PURE__ */ (0, B.jsx)(dk, { children: /* @__PURE__ */ (0, B.jsx)("span", {className: "flex flex-wrap items-center gap-1.5",children: e.aliases.map((e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",@@ -42754,13 +42756,13 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ivariant: "ghost",size: "xs",iconOnly: !0,- leadingIcon: yT,+ leadingIcon: bT,"aria-label": `移除别名 ${e.name}`,disabled: r,...X(h.isPending),onClick: () => void je({title: "移除创作者别名",- body: Uhe(e.name),+ body: Hhe(e.name),confirmLabel: "移除创作者别名",onConfirm: () => h.mutateAsync(e.name)})@@ -42768,9 +42770,9 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}, e.key))}) })]}, e.canonical_key)) })]- }) }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: PT,+ icon: FT,title: "还没有保存创作者别名",children: "填写规范创作者名和平台别名以添加。"})]@@ -42780,33 +42782,33 @@ function Ghe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}//#endregion//#region src/react/follow-manage/credentials.tsx-var Khe = "这些账号信息存在哪里", qhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Jhe = "将清除这个来源在本机和共享副本中的登录凭据。", Yhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";-function Xhe(e, t) {+var Ghe = "这些账号信息存在哪里", Khe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", qhe = "将清除这个来源在本机和共享副本中的登录凭据。", Jhe = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";+function Yhe(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function Zhe({ row: e }) {- if (DF(e)) return /* @__PURE__ */ (0, B.jsx)(EE, {+function Xhe({ row: e }) {+ if (OF(e)) return /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "lime",children: "已配置"});let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";- return /* @__PURE__ */ (0, B.jsx)(EE, {+ return /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: t,- children: Xme[e.requirement] || ""+ children: Yme[e.requirement] || ""});}-function Qhe({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = DF(e), c = DS({- mutationFn: (t) => Bme(e.provider, t),+function Zhe({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, R.useState)({}), [a, o] = (0, R.useState)(""), s = OF(e), c = DS({+ mutationFn: (t) => zme(e.provider, t),onSuccess: (e, t) => {if (e.note) {o(e.note);return;}o(""), i({}), p.invalidateQueries({- queryKey: JP,+ queryKey: YP,exact: !0}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");},@@ -42822,17 +42824,17 @@ function Qhe({ row: e, readOnly: t, toast: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Vk, {+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: [e.why, e.where ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [" ", /* @__PURE__ */ (0, B.jsx)(Hk, {href: e.where,children: "去取"})] }) : null] }),- e.howto ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: e.howto }) : null,+ e.howto ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.howto }) : null,/* @__PURE__ */ (0, B.jsx)("div", {className: "flex w-full flex-col gap-3",- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, B.jsx)(Ck, {type: "password",label: n,- placeholder: Xhe(e, n),+ placeholder: Yhe(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -42860,7 +42862,7 @@ function Qhe({ row: e, readOnly: t, toast: n }) {...X(c.isPending),onClick: () => void je({title: "清除来源凭据",- body: Jhe,+ body: qhe,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -42868,9 +42870,9 @@ function Qhe({ row: e, readOnly: t, toast: n }) {children: "清除"}) : null]}),- a ? /* @__PURE__ */ (0, B.jsx)(zk, { children: a }) : null,- (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,- e.path ? /* @__PURE__ */ (0, B.jsx)(IM, {+ a ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: a }) : null,+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, B.jsx)(zk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,+ e.path ? /* @__PURE__ */ (0, B.jsx)(LM, {path: e.path,className: "font-mono text-caption-1-regular text-text-tertiary",onRevealed: n@@ -42878,18 +42880,18 @@ function Qhe({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "凭据文件权限过宽",- children: Yhe+ children: Jhe}) : null]});}-function $he({ row: e, readOnly: t, toast: n }) {+function Qhe({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-2",children: [/* @__PURE__ */ (0, B.jsx)("span", {className: "inline-flex size-3.5 shrink-0 items-center justify-center",- children: /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider })+ children: /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider })}),/* @__PURE__ */ (0, B.jsx)("b", {className: "text-body-medium text-text-primary",@@ -42899,8 +42901,8 @@ function $he({ row: e, readOnly: t, toast: n }) {className: "text-caption-1-regular text-text-secondary",children: e.nature}) : null,- /* @__PURE__ */ (0, B.jsx)(Zhe, { row: e }),- e.missing.length ? /* @__PURE__ */ (0, B.jsx)(EE, {+ /* @__PURE__ */ (0, B.jsx)(Xhe, { row: e }),+ e.missing.length ? /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "rose",children: `缺 ${e.missing.join("、")}`@@ -42909,13 +42911,13 @@ function $he({ row: e, readOnly: t, toast: n }) {});return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, B.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, B.jsx)(Rk, { children: e.why }) : null]+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.why }) : null]}) : /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, /* @__PURE__ */ (0, B.jsx)(Wk, {- summary: DF(e) ? "修改凭据" : "填写凭据",- defaultOpen: e.requirement === "required" && !DF(e),- children: /* @__PURE__ */ (0, B.jsx)(Qhe, {+ children: [r, /* @__PURE__ */ (0, B.jsx)(Gk, {+ summary: OF(e) ? "修改凭据" : "填写凭据",+ defaultOpen: e.requirement === "required" && !OF(e),+ children: /* @__PURE__ */ (0, B.jsx)(Zhe, {row: e,readOnly: t,toast: n@@ -42923,10 +42925,10 @@ function $he({ row: e, readOnly: t, toast: n }) {})]});}-function ege({ data: e, readOnly: t, toast: n }) {- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !DF(e));+function $he({ data: e, readOnly: t, toast: n }) {+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !OF(e));return r.length ? /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42961,12 +42963,12 @@ function ege({ data: e, readOnly: t, toast: n }) {className: "text-body-medium text-text-secondary",children: e.title}), /* @__PURE__ */ (0, B.jsx)("div", {- className: kE({+ className: AE({variant: "outlined",padding: "none",className: "flex flex-col overflow-hidden"}),- children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)($he, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, B.jsx)(Qhe, {row: e,readOnly: t,toast: n@@ -42978,13 +42980,13 @@ function ege({ data: e, readOnly: t, toast: n }) {children: [/* @__PURE__ */ (0, B.jsx)("b", {className: "text-body-medium text-text-primary",- children: Khe+ children: Ghe}),/* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: qhe+ children: Khe}),- /* @__PURE__ */ (0, B.jsx)(IM, {+ /* @__PURE__ */ (0, B.jsx)(LM, {path: e.root,prefix: "凭据文件在 ",className: "text-body-2-regular text-text-secondary",@@ -42993,16 +42995,16 @@ function ege({ data: e, readOnly: t, toast: n }) {]})]- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: cae,+ icon: sae,title: "没有可配置的来源",children: "已接入的站点及其凭据状态会显示在这里。"});}//#endregion//#region node_modules/@tanstack/table-core/build/lib/index.mjs-function mI() {+function hI() {return {accessor: (e, t) => typeof e == "function" ? {...t,@@ -43015,24 +43017,24 @@ function mI() {group: (e) => e};}-function hI(e, t) {+function gI(e, t) {return typeof e == "function" ? e(t) : e;}-function gI(e, t) {+function _I(e, t) {return (n) => {t.setState((t) => ({...t,- [e]: hI(n, t[e])+ [e]: gI(n, t[e])}));};}-function _I(e) {+function vI(e) {return e instanceof Function;}-function tge(e) {+function ege(e) {return Array.isArray(e) && e.every((e) => typeof e == "number");}-function nge(e, t) {+function tge(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -43042,7 +43044,7 @@ function nge(e, t) {};return r(e), n;}-function vI(e, t, n) {+function yI(e, t, n) {let r = [], i;return (a) => {let o;@@ -43064,21 +43066,21 @@ function vI(e, t, n) {return i;};}-function yI(e, t, n, r) {+function bI(e, t, n, r) {return {debug: () => e?.debugAll ?? e[t],key: !1,onChange: r};}-function rge(e, t, n, r) {+function nge(e, t, n, r) {let i = {id: `${t.id}_${n.id}`,row: t,column: n,getValue: () => t.getValue(r),renderValue: () => i.getValue() ?? e.options.renderFallbackValue,- getContext: vI(() => [+ getContext: yI(() => [e,n,t,@@ -43090,13 +43092,13 @@ function rge(e, t, n, r) {cell: r,getValue: r.getValue,renderValue: r.renderValue- }), yI(e.options, "debugCells", "cell.getContext"))+ }), bI(e.options, "debugCells", "cell.getContext"))};return e._features.forEach((r) => {r.createCell == null || r.createCell(i, n, t, e);}, {}), i;}-function ige(e, t, n, r) {+function rge(e, t, n, r) {let i = {...e._getDefaultColumnDef(),...t@@ -43113,17 +43115,17 @@ function ige(e, t, n, r) {depth: n,columnDef: i,columns: [],- getFlatColumns: vI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], yI(e.options, "debugColumns", "column.getFlatColumns")),- getLeafColumns: vI(() => [e._getOrderColumnsFn()], (e) => {+ getFlatColumns: yI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], bI(e.options, "debugColumns", "column.getFlatColumns")),+ getLeafColumns: yI(() => [e._getOrderColumnsFn()], (e) => {var t;return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];- }, yI(e.options, "debugColumns", "column.getLeafColumns"))+ }, bI(e.options, "debugColumns", "column.getLeafColumns"))};for (let t of e._features) t.createColumn == null || t.createColumn(c, e);return c;}-var bI = "debugHeaders";-function xI(e, t, n) {+var xI = "debugHeaders";+function SI(e, t, n) {let r = {id: n.id ?? t.id,column: t,@@ -43151,42 +43153,42 @@ function xI(e, t, n) {t.createHeader == null || t.createHeader(r, e);}), r;}-var age = { createTable: (e) => {- e.getHeaderGroups = vI(() => [+var ige = { createTable: (e) => {+ e.getHeaderGroups = yI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (t, n, r, i) => {let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));- return SI(t, [+ return CI(t, [...a,...s,...o], e);- }, yI(e.options, bI, "getHeaderGroups")), e.getCenterHeaderGroups = vI(() => [+ }, bI(e.options, xI, "getHeaderGroups")), e.getCenterHeaderGroups = yI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), SI(t, n, e, "center")), yI(e.options, bI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = vI(() => [+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), CI(t, n, e, "center")), bI(e.options, xI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = yI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left- ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), yI(e.options, bI, "getLeftHeaderGroups")), e.getRightHeaderGroups = vI(() => [+ ], (t, n, r) => CI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), bI(e.options, xI, "getLeftHeaderGroups")), e.getRightHeaderGroups = yI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right- ], (t, n, r) => SI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), yI(e.options, bI, "getRightHeaderGroups")), e.getFooterGroups = vI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getFooterGroups")), e.getLeftFooterGroups = vI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getLeftFooterGroups")), e.getCenterFooterGroups = vI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getCenterFooterGroups")), e.getRightFooterGroups = vI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), yI(e.options, bI, "getRightFooterGroups")), e.getFlatHeaders = vI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getFlatHeaders")), e.getLeftFlatHeaders = vI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = vI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getCenterFlatHeaders")), e.getRightFlatHeaders = vI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), yI(e.options, bI, "getRightFlatHeaders")), e.getCenterLeafHeaders = vI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {+ ], (t, n, r) => CI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), bI(e.options, xI, "getRightHeaderGroups")), e.getFooterGroups = yI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getFooterGroups")), e.getLeftFooterGroups = yI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getLeftFooterGroups")), e.getCenterFooterGroups = yI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getCenterFooterGroups")), e.getRightFooterGroups = yI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), bI(e.options, xI, "getRightFooterGroups")), e.getFlatHeaders = yI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getFlatHeaders")), e.getLeftFlatHeaders = yI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = yI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getCenterFlatHeaders")), e.getRightFlatHeaders = yI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), bI(e.options, xI, "getRightFlatHeaders")), e.getCenterLeafHeaders = yI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), yI(e.options, bI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = vI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {+ }), bI(e.options, xI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = yI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), yI(e.options, bI, "getLeftLeafHeaders")), e.getRightLeafHeaders = vI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {+ }), bI(e.options, xI, "getLeftLeafHeaders")), e.getRightLeafHeaders = yI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), yI(e.options, bI, "getRightLeafHeaders")), e.getLeafHeaders = vI(() => [+ }), bI(e.options, xI, "getRightLeafHeaders")), e.getLeafHeaders = yI(() => [e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()@@ -43194,9 +43196,9 @@ var age = { createTable: (e) => {...e[0]?.headers ?? [],...t[0]?.headers ?? [],...n[0]?.headers ?? []- ].map((e) => e.getLeafHeaders()).flat(), yI(e.options, bI, "getLeafHeaders"));+ ].map((e) => e.getLeafHeaders()).flat(), bI(e.options, xI, "getLeafHeaders"));} };-function SI(e, t, n, r) {+function CI(e, t, n, r) {let i = 0, a = function(e, t) {t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {var n;@@ -43214,7 +43216,7 @@ function SI(e, t, n, r) {let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);else {- let i = xI(n, c, {+ let i = SI(n, c, {id: [r,t,@@ -43231,7 +43233,7 @@ function SI(e, t, n, r) {i.headers.push(e), e.headerGroup = i;}), o.push(i), t > 0 && s(a, t - 1);};- s(t.map((e, t) => xI(n, e, {+ s(t.map((e, t) => SI(n, e, {depth: i,index: t})), i - 1), o.reverse();@@ -43249,7 +43251,7 @@ function SI(e, t, n, r) {});return c(o[0]?.headers ?? []), o;}-var oge = (e, t, n, r, i, a, o) => {+var age = (e, t, n, r, i, a, o) => {let s = {id: t,index: r,@@ -43270,7 +43272,7 @@ var oge = (e, t, n, r, i, a, o) => {},renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,subRows: a ?? [],- getLeafRows: () => nge(s.subRows, (e) => e.subRows),+ getLeafRows: () => tge(s.subRows, (e) => e.subRows),getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,getParentRows: () => {let e = [], t = s;@@ -43281,95 +43283,95 @@ var oge = (e, t, n, r, i, a, o) => {}return e.reverse();},- getAllCells: vI(() => [e.getAllLeafColumns()], (t) => t.map((t) => rge(e, s, t, t.id)), yI(e.options, "debugRows", "getAllCells")),- _getAllCellsByColumnId: vI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), yI(e.options, "debugRows", "getAllCellsByColumnId"))+ getAllCells: yI(() => [e.getAllLeafColumns()], (t) => t.map((t) => nge(e, s, t, t.id)), bI(e.options, "debugRows", "getAllCells")),+ _getAllCellsByColumnId: yI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), bI(e.options, "debugRows", "getAllCellsByColumnId"))};for (let t = 0; t < e._features.length; t++) {let n = e._features[t];n == null || n.createRow == null || n.createRow(s, e);}return s;-}, sge = { createColumn: (e, t) => {+}, oge = { createColumn: (e, t) => {e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();};-} }, CI = (e, t, n) => {+} }, wI = (e, t, n) => {var r, i;let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));};-CI.autoRemove = (e) => NI(e);-var wI = (e, t, n) => {+wI.autoRemove = (e) => PI(e);+var TI = (e, t, n) => {var r;return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));};-wI.autoRemove = (e) => NI(e);-var TI = (e, t, n) => {+TI.autoRemove = (e) => PI(e);+var EI = (e, t, n) => {var r;return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();};-TI.autoRemove = (e) => NI(e);-var EI = (e, t, n) => e.getValue(t)?.includes(n);-EI.autoRemove = (e) => NI(e);-var DI = (e, t, n) => !n.some((n) => {+EI.autoRemove = (e) => PI(e);+var DI = (e, t, n) => e.getValue(t)?.includes(n);+DI.autoRemove = (e) => PI(e);+var OI = (e, t, n) => !n.some((n) => {var r;return !((r = e.getValue(t)) != null && r.includes(n));});-DI.autoRemove = (e) => NI(e) || !(e != null && e.length);-var OI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));-OI.autoRemove = (e) => NI(e) || !(e != null && e.length);-var kI = (e, t, n) => e.getValue(t) === n;-kI.autoRemove = (e) => NI(e);-var AI = (e, t, n) => e.getValue(t) == n;-AI.autoRemove = (e) => NI(e);-var jI = (e, t, n) => {+OI.autoRemove = (e) => PI(e) || !(e != null && e.length);+var kI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));+kI.autoRemove = (e) => PI(e) || !(e != null && e.length);+var AI = (e, t, n) => e.getValue(t) === n;+AI.autoRemove = (e) => PI(e);+var jI = (e, t, n) => e.getValue(t) == n;+jI.autoRemove = (e) => PI(e);+var MI = (e, t, n) => {let [r, i] = n, a = e.getValue(t);return a >= r && a <= i;};-jI.resolveFilterValue = (e) => {+MI.resolveFilterValue = (e) => {let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;if (a > o) {let e = a;a = o, o = e;}return [a, o];-}, jI.autoRemove = (e) => NI(e) || NI(e[0]) && NI(e[1]);-var MI = {- includesString: CI,- includesStringSensitive: wI,- equalsString: TI,- arrIncludes: EI,- arrIncludesAll: DI,- arrIncludesSome: OI,- equals: kI,- weakEquals: AI,- inNumberRange: jI+}, MI.autoRemove = (e) => PI(e) || PI(e[0]) && PI(e[1]);+var NI = {+ includesString: wI,+ includesStringSensitive: TI,+ equalsString: EI,+ arrIncludes: DI,+ arrIncludesAll: OI,+ arrIncludesSome: kI,+ equals: AI,+ weakEquals: jI,+ inNumberRange: MI};-function NI(e) {+function PI(e) {return e == null || e === "";}-var cge = {+var sge = {getDefaultColumnDef: () => ({ filterFn: "auto" }),getInitialState: (e) => ({columnFilters: [],...e}),getDefaultOptions: (e) => ({- onColumnFiltersChange: gI("columnFilters", e),+ onColumnFiltersChange: _I("columnFilters", e),filterFromLeafRows: !1,maxLeafRowFilterDepth: 100}),createColumn: (e, t) => {e.getAutoFilterFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- return typeof n == "string" ? MI.includesString : typeof n == "number" ? MI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? MI.equals : Array.isArray(n) ? MI.arrIncludes : MI.weakEquals;- }, e.getFilterFn = () => _I(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? MI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {+ return typeof n == "string" ? NI.includesString : typeof n == "number" ? NI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? NI.equals : Array.isArray(n) ? NI.arrIncludes : NI.weakEquals;+ }, e.getFilterFn = () => vI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? NI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {var n;return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {t.setColumnFilters((t) => {- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = hI(n, i ? i.value : void 0);- if (PI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = gI(n, i ? i.value : void 0);+ if (FI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];let o = {id: e.id,value: a@@ -43384,19 +43386,19 @@ var cge = {createTable: (e) => {e.setColumnFilters = (t) => {let n = e.getAllLeafColumns();- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => hI(t, e)?.filter((e) => {+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => gI(t, e)?.filter((e) => {let t = n.find((t) => t.id === e.id);- return !(t && PI(t.getFilterFn(), e.value, t));+ return !(t && FI(t.getFilterFn(), e.value, t));}));}, e.resetColumnFilters = (t) => {e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());}};-function PI(e, t, n) {+function FI(e, t, n) {return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;}-var FI = {+var II = {sum: (e, t, n) => n.reduce((t, n) => {let r = n.getValue(e);return t + (typeof r == "number" ? r : 0);@@ -43432,7 +43434,7 @@ var FI = {median: (e, t) => {if (!t.length) return;let n = t.map((t) => t.getValue(e));- if (!tge(n)) return;+ if (!ege(n)) return;if (n.length === 1) return n[0];let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];@@ -43440,7 +43442,7 @@ var FI = {unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,count: (e, t) => t.length-}, lge = {+}, cge = {getDefaultColumnDef: () => ({aggregatedCell: (e) => {var t;@@ -43453,7 +43455,7 @@ var FI = {...e}),getDefaultOptions: (e) => ({- onGroupingChange: gI("grouping", e),+ onGroupingChange: _I("grouping", e),groupedColumnMode: "reorder"}),createColumn: (e, t) => {@@ -43466,11 +43468,11 @@ var FI = {};}, e.getAutoAggregationFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- if (typeof n == "number") return FI.sum;- if (Object.prototype.toString.call(n) === "[object Date]") return FI.extent;+ if (typeof n == "number") return II.sum;+ if (Object.prototype.toString.call(n) === "[object Date]") return II.extent;}, e.getAggregationFn = () => {if (!e) throw Error();- return _I(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? FI[e.columnDef.aggregationFn];+ return vI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? II[e.columnDef.aggregationFn];};},createTable: (e) => {@@ -43492,27 +43494,27 @@ var FI = {};}};-function uge(e, t, n) {+function lge(e, t, n) {if (!(t != null && t.length) || !n) return e;let r = e.filter((e) => !t.includes(e.id));return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];}-var dge = {+var uge = {getInitialState: (e) => ({columnOrder: [],...e}),- getDefaultOptions: (e) => ({ onColumnOrderChange: gI("columnOrder", e) }),+ getDefaultOptions: (e) => ({ onColumnOrderChange: _I("columnOrder", e) }),createColumn: (e, t) => {- e.getIndex = vI((e) => [VI(t, e)], (t) => t.findIndex((t) => t.id === e.id), yI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => VI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {- let r = VI(t, n);+ e.getIndex = yI((e) => [HI(t, e)], (t) => t.findIndex((t) => t.id === e.id), bI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => HI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {+ let r = HI(t, n);return r[r.length - 1]?.id === e.id;};},createTable: (e) => {e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);- }, e._getOrderColumnsFn = vI(() => [+ }, e._getOrderColumnsFn = yI(() => [e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode@@ -43527,18 +43529,18 @@ var dge = {}i = [...i, ...n];}- return uge(i, t, n);- }, yI(e.options, "debugTable", "_getOrderColumnsFn"));+ return lge(i, t, n);+ }, bI(e.options, "debugTable", "_getOrderColumnsFn"));}-}, II = () => ({+}, LI = () => ({left: [],right: []-}), fge = {+}), dge = {getInitialState: (e) => ({- columnPinning: II(),+ columnPinning: LI(),...e}),- getDefaultOptions: (e) => ({ onColumnPinningChange: gI("columnPinning", e) }),+ getDefaultOptions: (e) => ({ onColumnPinningChange: _I("columnPinning", e) }),createColumn: (e, t) => {e.pin = (n) => {let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);@@ -43562,75 +43564,75 @@ var dge = {};},createRow: (e, t) => {- e.getCenterVisibleCells = vI(() => [+ e.getCenterVisibleCells = yI(() => [e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.column.id));- }, yI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ }, bI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = yI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "left"- })), yI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = vI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ })), bI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = yI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "right"- })), yI(t.options, "debugRows", "getRightVisibleCells"));+ })), bI(t.options, "debugRows", "getRightVisibleCells"));},createTable: (e) => {- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? II() : e.initialState?.columnPinning ?? II()), e.getIsSomeColumnsPinned = (t) => {+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? LI() : e.initialState?.columnPinning ?? LI()), e.getIsSomeColumnsPinned = (t) => {let n = e.getState().columnPinning;return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);- }, e.getLeftLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = vI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), yI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = vI(() => [+ }, e.getLeftLeafColumns = yI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), bI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = yI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), bI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = yI(() => [e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.id));- }, yI(e.options, "debugColumns", "getCenterLeafColumns"));+ }, bI(e.options, "debugColumns", "getCenterLeafColumns"));}};-function pge(e) {+function fge(e) {return e || (typeof document < "u" ? document : null);}-var LI = {+var RI = {size: 150,minSize: 20,maxSize: 2 ** 53 - 1-}, RI = () => ({+}, zI = () => ({startOffset: null,startSize: null,deltaOffset: null,deltaPercentage: null,isResizingColumn: !1,columnSizingStart: []-}), mge = {- getDefaultColumnDef: () => LI,+}), pge = {+ getDefaultColumnDef: () => RI,getInitialState: (e) => ({columnSizing: {},- columnSizingInfo: RI(),+ columnSizingInfo: zI(),...e}),getDefaultOptions: (e) => ({columnResizeMode: "onEnd",columnResizeDirection: "ltr",- onColumnSizingChange: gI("columnSizing", e),- onColumnSizingInfoChange: gI("columnSizingInfo", e)+ onColumnSizingChange: _I("columnSizing", e),+ onColumnSizingInfoChange: _I("columnSizingInfo", e)}),createColumn: (e, t) => {e.getSize = () => {let n = t.getState().columnSizing[e.id];- return Math.min(Math.max(e.columnDef.minSize ?? LI.minSize, n ?? e.columnDef.size ?? LI.size), e.columnDef.maxSize ?? LI.maxSize);- }, e.getStart = vI((e) => [+ return Math.min(Math.max(e.columnDef.minSize ?? RI.minSize, n ?? e.columnDef.size ?? RI.size), e.columnDef.maxSize ?? RI.maxSize);+ }, e.getStart = yI((e) => [e,- VI(t, e),+ HI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getStart")), e.getAfter = vI((e) => [+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), bI(t.options, "debugColumns", "getStart")), e.getAfter = yI((e) => [e,- VI(t, e),+ HI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), yI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), bI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {t.setColumnSizing((t) => {let { [e.id]: n, ...r } = t;return r;@@ -43652,8 +43654,8 @@ var LI = {}, e.getResizeHandler = (n) => {let r = t.getColumn(e.column.id), i = r?.getCanResize();return (a) => {- if (!r || !i || (a.persist == null || a.persist(), BI(a) && a.touches && a.touches.length > 1)) return;- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = BI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {+ if (!r || !i || (a.persist == null || a.persist(), VI(a) && a.touches && a.touches.length > 1)) return;+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = VI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {typeof n == "number" && (t.setColumnSizingInfo((e) => {let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);return e.columnSizingStart.forEach((e) => {@@ -43678,7 +43680,7 @@ var LI = {deltaPercentage: null,columnSizingStart: []}));- }, p = pge(n), m = {+ }, p = fge(n), m = {moveHandler: (e) => d(e.clientX),upHandler: (e) => {p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);@@ -43688,8 +43690,8 @@ var LI = {upHandler: (e) => {p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);}- }, g = hge() ? { passive: !1 } : !1;- BI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({+ }, g = mge() ? { passive: !1 } : !1;+ VI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({...e,startOffset: c,startSize: o,@@ -43705,12 +43707,12 @@ var LI = {e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});}, e.resetHeaderSizeInfo = (t) => {- e.setColumnSizingInfo(t ? RI() : e.initialState.columnSizingInfo ?? RI());+ e.setColumnSizingInfo(t ? zI() : e.initialState.columnSizingInfo ?? zI());}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;}-}, zI = null;-function hge() {- if (typeof zI == "boolean") return zI;+}, BI = null;+function mge() {+ if (typeof BI == "boolean") return BI;let e = !1;try {let t = { get passive() {@@ -43720,17 +43722,17 @@ function hge() {} catch {e = !1;}- return zI = e, zI;+ return BI = e, BI;}-function BI(e) {+function VI(e) {return e.type === "touchstart";}-var gge = {+var hge = {getInitialState: (e) => ({columnVisibility: {},...e}),- getDefaultOptions: (e) => ({ onColumnVisibilityChange: gI("columnVisibility", e) }),+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: _I("columnVisibility", e) }),createColumn: (e, t) => {e.toggleVisibility = (n) => {e.getCanHide() && t.setColumnVisibility((t) => ({@@ -43745,7 +43747,7 @@ var gge = {};},createRow: (e, t) => {- e._getAllVisibleCells = vI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), yI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = vI(() => [+ e._getAllVisibleCells = yI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), bI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = yI(() => [e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()@@ -43753,10 +43755,10 @@ var gge = {...e,...t,...n- ], yI(t.options, "debugRows", "getVisibleCells"));+ ], bI(t.options, "debugRows", "getVisibleCells"));},createTable: (e) => {- let t = (t, n) => vI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), yI(e.options, "debugColumns", t));+ let t = (t, n) => yI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), bI(e.options, "debugColumns", t));e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});}, e.toggleAllColumnsVisible = (t) => {@@ -43769,20 +43771,20 @@ var gge = {};}};-function VI(e, t) {+function HI(e, t) {return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();}-var _ge = { createTable: (e) => {+var gge = { createTable: (e) => {e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();};-} }, vge = {+} }, _ge = {getInitialState: (e) => ({globalFilter: void 0,...e}),getDefaultOptions: (e) => ({- onGlobalFilterChange: gI("globalFilter", e),+ onGlobalFilterChange: _I("globalFilter", e),globalFilterFn: "auto",getColumnCanGlobalFilter: (t) => {var n;@@ -43794,22 +43796,22 @@ var _ge = { createTable: (e) => {e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;},createTable: (e) => {- e.getGlobalAutoFilterFn = () => MI.includesString, e.getGlobalFilterFn = () => {+ e.getGlobalAutoFilterFn = () => NI.includesString, e.getGlobalFilterFn = () => {let { globalFilterFn: t } = e.options;- return _I(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? MI[t];+ return vI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? NI[t];}, e.setGlobalFilter = (t) => {e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);}, e.resetGlobalFilter = (t) => {e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);};}-}, yge = {+}, vge = {getInitialState: (e) => ({expanded: {},...e}),getDefaultOptions: (e) => ({- onExpandedChange: gI("expanded", e),+ onExpandedChange: _I("expanded", e),paginateExpandedRows: !0}),createTable: (e) => {@@ -43880,18 +43882,18 @@ var _ge = { createTable: (e) => {};};}-}, HI = 0, UI = 10, WI = () => ({- pageIndex: HI,- pageSize: UI-}), bge = {+}, UI = 0, WI = 10, GI = () => ({+ pageIndex: UI,+ pageSize: WI+}), yge = {getInitialState: (e) => ({...e,pagination: {- ...WI(),+ ...GI(),...e?.pagination}}),- getDefaultOptions: (e) => ({ onPaginationChange: gI("pagination", e) }),+ getDefaultOptions: (e) => ({ onPaginationChange: _I("pagination", e) }),createTable: (e) => {let t = !1, n = !1;e._autoResetPageIndex = () => {@@ -43907,11 +43909,11 @@ var _ge = { createTable: (e) => {e.resetPageIndex(), n = !1;});}- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => hI(t, e)), e.resetPagination = (t) => {- e.setPagination(t ? WI() : e.initialState.pagination ?? WI());+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => gI(t, e)), e.resetPagination = (t) => {+ e.setPagination(t ? GI() : e.initialState.pagination ?? GI());}, e.setPageIndex = (t) => {e.setPagination((n) => {- let r = hI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;+ let r = gI(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@@ -43919,13 +43921,13 @@ var _ge = { createTable: (e) => {});}, e.resetPageIndex = (t) => {var n;- e.setPageIndex(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? HI);+ e.setPageIndex(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? UI);}, e.resetPageSize = (t) => {var n;- e.setPageSize(t ? UI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? UI);+ e.setPageSize(t ? WI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? WI);}, e.setPageSize = (t) => {e.setPagination((e) => {- let n = Math.max(1, hI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);+ let n = Math.max(1, gI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);return {...e,pageIndex: i,@@ -43933,28 +43935,28 @@ var _ge = { createTable: (e) => {};});}, e.setPageCount = (t) => e.setPagination((n) => {- let r = hI(t, e.options.pageCount ?? -1);+ let r = gI(t, e.options.pageCount ?? -1);return typeof r == "number" && (r = Math.max(-1, r)), {...n,pageCount: r};- }), e.getPageOptions = vI(() => [e.getPageCount()], (e) => {+ }), e.getPageOptions = yI(() => [e.getPageCount()], (e) => {let t = [];return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;- }, yI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {+ }, bI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();return n === -1 || n !== 0 && t < n - 1;}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;}-}, GI = () => ({+}, KI = () => ({top: [],bottom: []-}), xge = {+}), bge = {getInitialState: (e) => ({- rowPinning: GI(),+ rowPinning: KI(),...e}),- getDefaultOptions: (e) => ({ onRowPinningChange: gI("rowPinning", e) }),+ getDefaultOptions: (e) => ({ onRowPinningChange: _I("rowPinning", e) }),createRow: (e, t) => {e.pin = (n, r, i) => {let a = r ? e.getLeafRows().map((e) => {@@ -43993,7 +43995,7 @@ var _ge = { createTable: (e) => {};},createTable: (e) => {- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? GI() : e.initialState?.rowPinning ?? GI()), e.getIsSomeRowsPinned = (t) => {+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? KI() : e.initialState?.rowPinning ?? KI()), e.getIsSomeRowsPinned = (t) => {let n = e.getState().rowPinning;return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {@@ -44002,22 +44004,22 @@ var _ge = { createTable: (e) => {}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({...e,position: r- })), e.getTopRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), yI(e.options, "debugRows", "getTopRows")), e.getBottomRows = vI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), yI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = vI(() => [+ })), e.getTopRows = yI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), bI(e.options, "debugRows", "getTopRows")), e.getBottomRows = yI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), bI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = yI(() => [e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom], (e, t, n) => {let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);return e.filter((e) => !r.has(e.id));- }, yI(e.options, "debugRows", "getCenterRows"));+ }, bI(e.options, "debugRows", "getCenterRows"));}-}, Sge = {+}, xge = {getInitialState: (e) => ({rowSelection: {},...e}),getDefaultOptions: (e) => ({- onRowSelectionChange: gI("rowSelection", e),+ onRowSelectionChange: _I("rowSelection", e),enableRowSelection: !0,enableMultiRowSelection: !0,enableSubRowSelection: !0@@ -44036,21 +44038,21 @@ var _ge = { createTable: (e) => {}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };return e.getRowModel().rows.forEach((t) => {- KI(i, t.id, r, !0, e);+ qI(i, t.id, r, !0, e);}), i;- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = vI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = yI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, yI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = vI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {+ }, bI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = yI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, yI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = vI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? qI(e, n) : {+ }, bI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = yI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? JI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, yI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {+ }, bI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;}, e.getIsAllPageRowsSelected = () => {@@ -44074,17 +44076,17 @@ var _ge = { createTable: (e) => {t.setRowSelection((a) => {if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;let o = { ...a };- return KI(o, e.id, n, r?.selectChildren ?? !0, t), o;+ return qI(o, e.id, n, r?.selectChildren ?? !0, t), o;});}, e.getIsSelected = () => {let { rowSelection: n } = t.getState();- return JI(e, n);+ return YI(e, n);}, e.getIsSomeSelected = () => {let { rowSelection: n } = t.getState();- return YI(e, n) === "some";+ return XI(e, n) === "some";}, e.getIsAllSubRowsSelected = () => {let { rowSelection: n } = t.getState();- return YI(e, n) === "all";+ return XI(e, n) === "all";}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {let t = e.getCanSelect();return (n) => {@@ -44092,16 +44094,16 @@ var _ge = { createTable: (e) => {};};}-}, KI = (e, t, n, r, i) => {+}, qI = (e, t, n, r, i) => {var a;let o = i.getRow(t, !0);- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => KI(e, t.id, n, r, i));+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => qI(e, t.id, n, r, i));};-function qI(e, t) {+function JI(e, t) {let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {return e.map((e) => {var t;- let o = JI(e, n);+ let o = YI(e, n);if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {...e,subRows: a(e.subRows)@@ -44114,32 +44116,32 @@ function qI(e, t) {rowsById: i};}-function JI(e, t) {+function YI(e, t) {return t[e.id] ?? !1;}-function YI(e, t, n) {+function XI(e, t, n) {var r;if (!((r = e.subRows) != null && r.length)) return !1;let i = !0, a = !1;return e.subRows.forEach((e) => {- if (!(a && !i) && (e.getCanSelect() && (JI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {- let n = YI(e, t);+ if (!(a && !i) && (e.getCanSelect() && (YI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {+ let n = XI(e, t);n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);}}), i ? "all" : a ? "some" : !1;}-var XI = /([0-9]+)/gm, Cge = (e, t, n) => $I(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), wge = (e, t, n) => $I(QI(e.getValue(n)), QI(t.getValue(n))), Tge = (e, t, n) => ZI(QI(e.getValue(n)).toLowerCase(), QI(t.getValue(n)).toLowerCase()), Ege = (e, t, n) => ZI(QI(e.getValue(n)), QI(t.getValue(n))), Dge = (e, t, n) => {+var ZI = /([0-9]+)/gm, Sge = (e, t, n) => eL($I(e.getValue(n)).toLowerCase(), $I(t.getValue(n)).toLowerCase()), Cge = (e, t, n) => eL($I(e.getValue(n)), $I(t.getValue(n))), wge = (e, t, n) => QI($I(e.getValue(n)).toLowerCase(), $I(t.getValue(n)).toLowerCase()), Tge = (e, t, n) => QI($I(e.getValue(n)), $I(t.getValue(n))), Ege = (e, t, n) => {let r = e.getValue(n), i = t.getValue(n);return r > i ? 1 : r < i ? -1 : 0;-}, Oge = (e, t, n) => ZI(e.getValue(n), t.getValue(n));-function ZI(e, t) {+}, Dge = (e, t, n) => QI(e.getValue(n), t.getValue(n));+function QI(e, t) {return e === t ? 0 : e > t ? 1 : -1;}-function QI(e) {+function $I(e) {return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";}-function $I(e, t) {- let n = e.split(XI).filter(Boolean), r = t.split(XI).filter(Boolean);+function eL(e, t) {+ let n = e.split(ZI).filter(Boolean), r = t.split(ZI).filter(Boolean);for (; n.length && r.length;) {let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();if (isNaN(o[0])) {@@ -44153,22 +44155,22 @@ function $I(e, t) {}return n.length - r.length;}-var eL = {- alphanumeric: Cge,- alphanumericCaseSensitive: wge,- text: Tge,- textCaseSensitive: Ege,- datetime: Dge,- basic: Oge-}, kge = [- age,- gge,+var tL = {+ alphanumeric: Sge,+ alphanumericCaseSensitive: Cge,+ text: wge,+ textCaseSensitive: Tge,+ datetime: Ege,+ basic: Dge+}, Oge = [+ ige,+ hge,+ uge,dge,- fge,+ oge,sge,- cge,+ gge,_ge,- vge,{getInitialState: (e) => ({sorting: [],@@ -44179,7 +44181,7 @@ var eL = {sortUndefined: 1}),getDefaultOptions: (e) => ({- onSortingChange: gI("sorting", e),+ onSortingChange: _I("sorting", e),isMultiSortEvent: (e) => e.shiftKey}),createColumn: (e, t) => {@@ -44187,13 +44189,13 @@ var eL = {let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;for (let t of n) {let n = t?.getValue(e.id);- if (Object.prototype.toString.call(n) === "[object Date]") return eL.datetime;- if (typeof n == "string" && (r = !0, n.split(XI).length > 1)) return eL.alphanumeric;+ if (Object.prototype.toString.call(n) === "[object Date]") return tL.datetime;+ if (typeof n == "string" && (r = !0, n.split(ZI).length > 1)) return tL.alphanumeric;}- return r ? eL.text : eL.basic;+ return r ? tL.text : tL.basic;}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {if (!e) throw Error();- return _I(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? eL[e.columnDef.sortingFn];+ return vI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? tL[e.columnDef.sortingFn];}, e.toggleSorting = (n, r) => {let i = e.getNextSortingOrder(), a = n != null;t.setSorting((o) => {@@ -44230,15 +44232,15 @@ var eL = {}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());}},- lge,+ cge,+ vge,yge,bge,xge,- Sge,- mge+ pge];-function Age(e) {- let t = [...kge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {+function kge(e) {+ let t = [...Oge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {...r,...e}, a = { ...e.initialState ?? {} };@@ -44264,7 +44266,7 @@ function Age(e) {n.setState(n.initialState);},setOptions: (e) => {- let t = hI(e, n.options);+ let t = gI(e, n.options);n.options = i(t);},getState: () => n.options.state,@@ -44279,7 +44281,7 @@ function Age(e) {if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();return r;},- _getDefaultColumnDef: vI(() => [n.options.defaultColumn], (e) => (e ??= {}, {+ _getDefaultColumnDef: yI(() => [n.options.defaultColumn], (e) => (e ??= {}, {header: (e) => {let t = e.header.column.columnDef;return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;@@ -44290,20 +44292,20 @@ function Age(e) {},...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),...e- }), yI(e, "debugColumns", "_getDefaultColumnDef")),+ }), bI(e, "debugColumns", "_getDefaultColumnDef")),_getColumnDefs: () => n.options.columns,- getAllColumns: vI(() => [n._getColumnDefs()], (e) => {+ getAllColumns: yI(() => [n._getColumnDefs()], (e) => {let t = function(e, r, i) {return i === void 0 && (i = 0), e.map((e) => {- let a = ige(n, e, i, r), o = e;+ let a = rge(n, e, i, r), o = e;return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;});};return t(e);- }, yI(e, "debugColumns", "getAllColumns")),- getAllFlatColumns: vI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), yI(e, "debugColumns", "getAllFlatColumns")),- _getAllFlatColumnsById: vI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), yI(e, "debugColumns", "getAllFlatColumnsById")),- getAllLeafColumns: vI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), yI(e, "debugColumns", "getAllLeafColumns")),+ }, bI(e, "debugColumns", "getAllColumns")),+ getAllFlatColumns: yI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), bI(e, "debugColumns", "getAllFlatColumns")),+ _getAllFlatColumnsById: yI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), bI(e, "debugColumns", "getAllFlatColumnsById")),+ getAllLeafColumns: yI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), bI(e, "debugColumns", "getAllLeafColumns")),getColumn: (e) => n._getAllFlatColumnsById()[e]};Object.assign(n, c);@@ -44313,8 +44315,8 @@ function Age(e) {}return n;}-function tL() {- return (e) => vI(() => [e.options.data], (t) => {+function nL() {+ return (e) => yI(() => [e.options.data], (t) => {let n = {rows: [],flatRows: [],@@ -44323,7 +44325,7 @@ function tL() {i === void 0 && (i = 0);let o = [];for (let c = 0; c < t.length; c++) {- let l = oge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);+ let l = age(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {var s;l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));@@ -44332,9 +44334,9 @@ function tL() {return o;};return n.rows = r(t), n;- }, yI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));+ }, bI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));}-function jge(e) {+function Age(e) {let t = [], n = (e) => {var r;t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);@@ -44345,8 +44347,8 @@ function jge(e) {rowsById: e.rowsById};}-function nL(e) {- return (e) => vI(() => [+function rL(e) {+ return (e) => yI(() => [e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows ? void 0 : e.getState().expanded@@ -44359,7 +44361,7 @@ function nL(e) {rows: a,flatRows: o,rowsById: s- } : jge({+ } : Age({rows: a,flatRows: o,rowsById: s@@ -44368,32 +44370,32 @@ function nL(e) {u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);};return u.rows.forEach(d), u;- }, yI(e.options, "debugTable", "getPaginationRowModel"));+ }, bI(e.options, "debugTable", "getPaginationRowModel"));}//#endregion//#region node_modules/@tanstack/react-table/build/lib/index.mjs-function rL(e, t) {- return e ? Mge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;+function iL(e, t) {+ return e ? jge(e) ? /*#__PURE__*/ R.createElement(e, t) : e : null;}-function Mge(e) {- return Nge(e) || typeof e == "function" || Pge(e);+function jge(e) {+ return Mge(e) || typeof e == "function" || Nge(e);}-function Nge(e) {+function Mge(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function Pge(e) {+function Nge(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}-function iL(e) {+function aL(e) {let t = {state: {},onStateChange: () => {},renderFallbackValue: null,...e- }, [n] = R.useState(() => ({ current: Age(t) })), [r, i] = R.useState(() => n.current.initialState);+ }, [n] = R.useState(() => ({ current: kge(t) })), [r, i] = R.useState(() => n.current.initialState);return n.current.setOptions((t) => ({...t,...e,@@ -44408,7 +44410,7 @@ function iL(e) {}//#endregion//#region src/react/boardui/components/base/switch/switch.tsx-var Fge = wE({+var Pge = TE({sm: {track: "h-4 w-7",trackRadius: {@@ -44470,23 +44472,23 @@ var Fge = wE({}}});-function Ige({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Fge[t];+function Fge({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = Pge[t];return /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,- className: CE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? CE("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: wE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? wE("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),children: /* @__PURE__ */ (0, B.jsx)("span", {- className: CE("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, B.jsx)("span", { className: CE("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: wE("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, B.jsx)("span", { className: wE("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 aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {- return /* @__PURE__ */ (0, B.jsx)(wse, {+function oL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+ return /* @__PURE__ */ (0, B.jsx)(Cse, {ref: i,...a,- className: (t) => CE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ige, {+ className: (t) => wE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Fge, {state: e,size: n,shape: r@@ -44498,8 +44500,8 @@ function aL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:}//#endregion//#region src/react/components/legacy-avatar.ts-var oL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Lge = "输入女优名,到 JavDB 找她的演员页";-function Rge(e, t) {+var sL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Ige = "输入女优名,到 JavDB 找她的演员页";+function Lge(e, t) {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 {@@ -44518,10 +44520,10 @@ function Rge(e, t) {blocked: !1};}-function zge({ card: e, picked: t, onPick: n }) {+function Rge({ card: e, picked: t, onPick: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(GM, {+ children: [/* @__PURE__ */ (0, B.jsx)(KM, {isSelected: t,onChange: n,children: /* @__PURE__ */ (0, B.jsxs)("span", {@@ -44531,7 +44533,7 @@ function zge({ card: e, picked: t, onPick: n }) {className: "min-w-0 break-words",children: e.names.join("、")}),- e.record ? /* @__PURE__ */ (0, B.jsx)(EE, {+ e.record ? /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "neutral",children: e.record@@ -44542,16 +44544,16 @@ function zge({ card: e, picked: t, onPick: n }) {}) : null]})- }), /* @__PURE__ */ (0, B.jsx)(Vk, {+ }), /* @__PURE__ */ (0, B.jsx)(Hk, {href: e.url,children: e.id})]});}-function Bge({ readOnly: e, toast: t, onAdded: n }) {- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = FE(), u = () => {+function zge({ readOnly: e, toast: t, onAdded: n }) {+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(/* @__PURE__ */ new Set()), l = IE(), u = () => {let t = r.trim();- !t || e || l.run("lookup", (e) => Ume(t, e), (e) => {+ !t || e || l.run("lookup", (e) => Hme(t, e), (e) => {o(e), c(new Set(e.suggested));});}, d = (e) => {@@ -44559,12 +44561,12 @@ function Bge({ readOnly: e, toast: t, onAdded: n }) {}, f = () => {o(null), c(/* @__PURE__ */ new Set()), l.setError("");}, p = () => {- a && l.run("follow", (e) => Wme(a.q, [...s], e), (e) => {+ a && l.run("follow", (e) => Ume(a.q, [...s], e), (e) => {t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();});- }, m = a ? Rge(a, s) : null;+ }, m = a ? Lge(a, s) : null;return /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -44577,11 +44579,11 @@ function Bge({ readOnly: e, toast: t, onAdded: n }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-64 grow",- children: /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "女优名",- placeholder: Lge,+ placeholder: Ige,value: r,- leadingIcon: MT,+ leadingIcon: NT,isDisabled: e,onChange: i,onKeyDown: d@@ -44602,16 +44604,16 @@ function Bge({ readOnly: e, toast: t, onAdded: n }) {a ? /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "JavDB 上的演员卡" }),- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(zge, {+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "JavDB 上的演员卡" }),+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, B.jsx)(Rge, {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, B.jsx)(Rk, { children: "JavDB 上没有搜到这个名字。" }),- a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(Rk, {+ }, e.id)) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "JavDB 上没有搜到这个名字。" }),+ a.candidates.length ? /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"}) : null,@@ -44638,19 +44640,19 @@ function Bge({ readOnly: e, toast: t, onAdded: n }) {}//#endregion//#region src/react/follow-manage/source-list.tsx-var Vge = Object.fromEntries(Object.entries(QP).map(([e, t]) => [t, e])), sL = 740;-function Hge() {+var Bge = Object.fromEntries(Object.entries($P).map(([e, t]) => [t, e])), cL = 740;+function Vge() {let [e, t] = (0, R.useState)(!1), n = (0, R.useRef)(null), r = (0, R.useCallback)((e) => {if (n.current?.disconnect(), !e) {n.current = null;return;}- let r = new ResizeObserver(() => t(e.clientWidth < sL));- r.observe(e), n.current = r, t(e.clientWidth < sL);+ let r = new ResizeObserver(() => t(e.clientWidth < cL));+ r.observe(e), n.current = r, t(e.clientWidth < cL);}, []);return (0, R.useEffect)(() => () => n.current?.disconnect(), []), [r, e];}-var Uge = {+var Hge = {select: "选择",author: "创作者",source: "来源",@@ -44659,7 +44661,7 @@ var Uge = {checked: "上次检查",actions: "操作"};-function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {+function lL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {return t <= 1 ? null : /* @__PURE__ */ (0, B.jsxs)("nav", {"aria-label": r,className: "flex flex-wrap items-center justify-center gap-2",@@ -44696,22 +44698,22 @@ function cL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {]});}-function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {+function Uge({ source: e, selected: t, onToggle: n, handlers: r }) {return /* @__PURE__ */ (0, B.jsxs)("div", {"data-selected": t || void 0,className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",onClick: (e) => {- qM(e, e.currentTarget) && n(!t);+ JM(e, e.currentTarget) && n(!t);},children: [- /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: t,onChange: n,"aria-label": `选择 ${e.label}`}),/* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {+ children: [/* @__PURE__ */ (0, B.jsx)(uI, { source: e }), e.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.last_error}) : null]@@ -44719,17 +44721,17 @@ function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {/* @__PURE__ */ (0, B.jsx)("span", {className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",title: e.provider_label,- children: /* @__PURE__ */ (0, B.jsx)(oI, {+ children: /* @__PURE__ */ (0, B.jsx)(sI, {provider: e.provider,label: e.provider_label})}),- /* @__PURE__ */ (0, B.jsx)(cI, { source: e }),+ /* @__PURE__ */ (0, B.jsx)(lI, { source: e }),/* @__PURE__ */ (0, B.jsx)("span", {className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",- children: TF(e)+ children: EF(e)}),- /* @__PURE__ */ (0, B.jsx)(aL, {+ /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": `启用 ${e.label}`,isSelected: e.enabled,isDisabled: r.readOnly,@@ -44741,7 +44743,7 @@ function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: AT,+ leadingIcon: jT,"aria-label": `检查 ${e.label} 的更新`,disabled: !e.enabled || r.readOnly,...X(r.busy),@@ -44750,7 +44752,7 @@ function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: CT,+ leadingIcon: wT,"aria-label": `移除 ${e.label}`,disabled: r.readOnly,onClick: () => r.remove(e)@@ -44759,11 +44761,11 @@ function Wge({ source: e, selected: t, onToggle: n, handlers: r }) {]});}-function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(eF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = uF(r, c);+function Wge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(tF).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = dF(r, c);return /* @__PURE__ */ (0, B.jsxs)("section", {"aria-label": `${t} 的关注来源`,- className: kE({+ className: AE({variant: "raised",padding: "none",className: "flex flex-col overflow-hidden p-2"@@ -44773,7 +44775,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,"data-open": n || void 0,className: "flex flex-wrap items-center gap-3 px-2 py-2.5",children: [- /* @__PURE__ */ (0, B.jsx)(sI, {+ /* @__PURE__ */ (0, B.jsx)(cI, {group: e,name: t}),@@ -44785,7 +44787,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: AT,+ leadingIcon: jT,"aria-label": `检查 ${t} 的全部来源`,disabled: !l.length || i.readOnly,...X(i.busy),@@ -44794,7 +44796,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,/* @__PURE__ */ (0, B.jsxs)("span", {className: "flex shrink-0 items-center gap-1",title: d,- children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(oI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]+ children: [e.map((e) => /* @__PURE__ */ (0, B.jsx)(sI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, B.jsx)(q_, { children: `来源:${d}` })]}),u ? /* @__PURE__ */ (0, B.jsx)("span", {className: "shrink-0 text-body-2-regular text-text-error-primary",@@ -44803,7 +44805,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: vT,+ leadingIcon: yT,"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false","aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,onClick: () => o(!p.all),@@ -44814,7 +44816,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,size: "small","aria-expanded": n,"aria-controls": f,- leadingIcon: n ? _T : mT,+ leadingIcon: n ? vT : hT,"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,onClick: () => a(!n),children: n ? "收起" : "展开"@@ -44824,7 +44826,7 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,id: f,hidden: !n,"data-source-divider": !0,- children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Wge, {+ children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(Uge, {source: e,handlers: i,selected: r.has(e.id),@@ -44833,37 +44835,37 @@ function Gge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,})]});}-function Kge(e) {- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = Hge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => jme(g, n, r, _), [+function Gge(e) {+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, R.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, R.useState)(/* @__PURE__ */ new Set()), [x, S] = Vge(), [C, w] = (0, R.useState)(""), T = (0, R.useMemo)(() => Ame(g, n, r, _), [g,n,r,_- ]), E = (0, R.useMemo)(() => Mme(T, n, r, _), [+ ]), E = (0, R.useMemo)(() => jme(T, n, r, _), [T,n,r,_- ]), { job: D, running: O, outcome: k, start: A } = VM({- queryKey: Sme,- queryFn: ({ signal: e }) => Pme(e),- start: (e) => mF(e),+ ]), { job: D, running: O, outcome: k, start: A } = HM({+ queryKey: xme,+ queryFn: ({ signal: e }) => Nme(e),+ start: (e) => hF(e),onError: (e) => w(U(e)),onFinish: (e) => {- wF(), m(e.status === "failed" ? e.error || "检查失败" : Kme(e));+ TF(), m(e.status === "failed" ? e.error || "检查失败" : Gme(e));}}), j = (e) => {O || A.isPending || (w(""), A.mutate(e));- }, M = (e, t) => p(dF(s, [e], t)), N = (e, t) => p(dF(s, e, t)), ee = DS({- mutationFn: (e) => gF(e),+ }, M = (e, t) => p(fF(s, [e], t)), N = (e, t) => p(fF(s, e, t)), ee = DS({+ mutationFn: (e) => _F(e),onSuccess: (e, t) => {- CF([t]), p(dF(s, [t], !1)), m("已取消关注来源");+ wF([t]), p(fF(s, [t], !1)), m("已取消关注来源");},onError: (e) => w(U(e))}), te = DS({- mutationFn: (e) => hF(e.id, e.enabled),+ mutationFn: (e) => gF(e.id, e.enabled),onSuccess: (e, t) => {- SF(t.id, { enabled: t.enabled }), w("");+ CF(t.id, { enabled: t.enabled }), w("");},onError: (e) => w(U(e))}), P = (e) => void je({@@ -44875,7 +44877,7 @@ function Kge(e) {}), F = DS({mutationFn: async (e) => {let t = await Se(e.ids, 4, async (t) => {- e.action === "remove" ? await gF(t) : await hF(t, e.action === "enabled");+ e.action === "remove" ? await _F(t) : await gF(t, e.action === "enabled");});return {...e,@@ -44884,9 +44886,9 @@ function Kge(e) {};},onSuccess: (e) => {- if (e.action === "remove") CF(e.done);- else for (let t of e.done) SF(t, { enabled: e.action === "enabled" });- p(dF(s, e.done, !1));+ if (e.action === "remove") wF(e.done);+ else for (let t of e.done) CF(t, { enabled: e.action === "enabled" });+ p(fF(s, e.done, !1));let t = e.results.filter((e) => !e.ok);if (t.length) {w(`${t.length}/${e.ids.length} 个来源未更新:${U(t[0]?.error)}`);@@ -44899,18 +44901,18 @@ function Kge(e) {onError: (e) => w(U(e))}), ne = DS({mutationFn: async (e) => {- let t = ((await Hme()).groups || []).flatMap((e) => [+ let t = ((await Vme()).groups || []).flatMap((e) => [e.primary,...e.variants,...e.duplicates]).filter((e) => e.status === "new").map((e) => e.id);return {ids: t,- failed: (await Se(t, 6, (t) => Vme(t, e))).filter((e) => !e.ok)+ failed: (await Se(t, 6, (t) => Bme(t, e))).filter((e) => !e.ok)};},onSuccess: (e) => {- if (wF(), e.failed.length) {+ if (TF(), e.failed.length) {w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);return;}@@ -44935,12 +44937,12 @@ function Kge(e) {readOnly: c};let ae = ie.current, oe = (0, R.useMemo)(() => {- let e = mI(), t = (e) => () => Uge[e] || e;+ let e = hI(), t = (e) => () => Hge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, B.jsx)(GM, {+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),@@ -44952,7 +44954,7 @@ function Kge(e) {header: t("author"),cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(sI, {+ children: [/* @__PURE__ */ (0, B.jsx)(cI, {group: e.row.original.group,name: e.row.original.author}), /* @__PURE__ */ (0, B.jsx)("span", {@@ -44966,7 +44968,7 @@ function Kge(e) {header: t("source"),cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {+ children: [/* @__PURE__ */ (0, B.jsx)(uI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, B.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.row.original.source.last_error}) : null]@@ -44977,18 +44979,18 @@ function Kge(e) {header: t("provider"),cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex items-center gap-1.5",- children: [/* @__PURE__ */ (0, B.jsx)(oI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]+ children: [/* @__PURE__ */ (0, B.jsx)(sI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, B.jsx)(cI, { source: e.row.original.source })+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(lI, { source: e.row.original.source })}),e.accessor((e) => e.source.last_checked_at || "", {id: "checked",header: t("checked"),- cell: (e) => TF(e.row.original.source)+ cell: (e) => EF(e.row.original.source)}),e.display({id: "actions",@@ -44996,7 +44998,7 @@ function Kge(e) {cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex items-center gap-1",children: [- /* @__PURE__ */ (0, B.jsx)(aL, {+ /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": `启用 ${e.row.original.source.label}`,isSelected: e.row.original.source.enabled,isDisabled: ae.readOnly,@@ -45006,7 +45008,7 @@ function Kge(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: AT,+ leadingIcon: jT,"aria-label": `检查 ${e.row.original.source.label} 的更新`,disabled: !e.row.original.source.enabled || ae.readOnly,...X(ae.busy),@@ -45016,7 +45018,7 @@ function Kge(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: CT,+ leadingIcon: wT,"aria-label": `移除 ${e.row.original.source.label}`,disabled: ae.readOnly,onClick: () => ie.current.remove(e.row.original.source)@@ -45026,12 +45028,12 @@ function Kge(e) {})];}, [ae]), se = (0, R.useMemo)(() => {- let e = Vge[n];+ let e = Bge[n];return e ? [{id: e,desc: r === "desc"}] : [];- }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = lF(le ? E.length : T.length, o, i), de = iL({+ }, [n, r]), ce = (0, R.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), le = a === "table", ue = uF(le ? E.length : T.length, o, i), de = aL({data: E,columns: oe,getRowId: (e) => String(e.source.id),@@ -45048,7 +45050,7 @@ function Kge(e) {onSortingChange: (e) => {let t = (typeof e == "function" ? e(se) : e)[0];if (!t) return;- let n = QP[t.id];+ let n = $P[t.id];n && l(n, t.desc ? "desc" : "asc");},onRowSelectionChange: (e) => {@@ -45062,11 +45064,11 @@ function Kge(e) {}, n = typeof e == "function" ? e(t) : e;n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);},- getCoreRowModel: tL(),- getPaginationRowModel: nL()- }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = uF(s, I), me = [...s], he = qme(k), ge = Jme(k), _e = T.length > 0 && y.size >= T.length;+ getCoreRowModel: nL(),+ getPaginationRowModel: rL()+ }), fe = de.getRowModel().rows, I = le ? fe.map((e) => e.original.source.id) : T.slice(ue.start, ue.end).flatMap((e) => e.map((e) => e.id)), pe = dF(s, I), me = [...s], he = Kme(k), ge = qme(k), _e = T.length > 0 && y.size >= T.length;return g.length ? /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -45085,7 +45087,7 @@ function Kge(e) {}),/* @__PURE__ */ (0, B.jsx)(J, {variant: "primary",- leadingIcon: AT,+ leadingIcon: jT,disabled: c,"aria-label": "检查全部",iconOnly: S,@@ -45100,28 +45102,28 @@ function Kge(e) {children: [/* @__PURE__ */ (0, B.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: lae,- "aria-label": XP[0][1],+ leadingIcon: cae,+ "aria-label": ZP[0][1],"aria-pressed": !le,onClick: () => d("default")}), /* @__PURE__ */ (0, B.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: fae,- "aria-label": XP[1][1],+ leadingIcon: dae,+ "aria-label": ZP[1][1],"aria-pressed": le,onClick: () => d("table")})]}),- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "关注列表排序",selectedKey: n,onSelectionChange: (e) => {if (e === null) return;let t = String(e);- l(t, LP[t]);+ l(t, RP[t]);},- children: IP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: LP.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))@@ -45129,14 +45131,14 @@ function Kge(e) {/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",iconOnly: !0,- leadingIcon: r === "asc" ? Yie : Jie,- "aria-label": kme(n, r),+ leadingIcon: r === "asc" ? Jie : qie,+ "aria-label": Ome(n, r),onClick: () => l(n, r === "asc" ? "desc" : "asc")}),le ? null : /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",iconOnly: S,- leadingIcon: _e ? mT : _T,+ leadingIcon: _e ? hT : vT,"aria-label": _e ? "全部展开" : "全部收起",onClick: () => b(_e ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),children: _e ? "全部展开" : "全部收起"@@ -45147,7 +45149,7 @@ function Kge(e) {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",children: [- O ? /* @__PURE__ */ (0, B.jsx)(LM, {+ O ? /* @__PURE__ */ (0, B.jsx)(RM, {embedded: !0,label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),value: D?.checked,@@ -45233,10 +45235,10 @@ function Kge(e) {})]}),- le ? /* @__PURE__ */ (0, B.jsx)(JM, {+ le ? /* @__PURE__ */ (0, B.jsx)(YM, {follow: !0,onRowClick: (e) => M(Number(e), !s.has(Number(e))),- children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": "关注来源",size: "sm",sortDescriptor: se[0] ? {@@ -45247,9 +45249,9 @@ function Kge(e) {id: String(e.column),desc: e.direction === "descending"}]),- children: [/* @__PURE__ */ (0, B.jsx)(nk, { children: de.getHeaderGroups()[0].headers.map((e) => {- let t = e.column.id in QP, n = rL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: de.getHeaderGroups()[0].headers.map((e) => {+ let t = e.column.id in $P, n = iL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, B.jsx)(ik, {id: e.id,allowsSorting: t,isRowHeader: e.column.id === "source",@@ -45258,20 +45260,20 @@ function Kge(e) {children: [n, /* @__PURE__ */ (0, B.jsx)("span", {"data-sort-indicator": !0,"data-direction": e || void 0,- children: /* @__PURE__ */ (0, B.jsx)(mce, {})+ children: /* @__PURE__ */ (0, B.jsx)(pce, {})})]}) : /* @__PURE__ */ (0, B.jsx)(q_, { children: n })}, e.id);- }) }), /* @__PURE__ */ (0, B.jsx)(ak, {+ }) }), /* @__PURE__ */ (0, B.jsx)(ok, {renderEmptyState: () => "这一页没有来源",- children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(ck, {+ children: fe.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(uk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id))})]})- }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(GM, {+ }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(KM, {isSelected: pe.all,isIndeterminate: pe.some,onChange: (e) => N(I, e),@@ -45281,9 +45283,9 @@ function Kge(e) {className: "flex flex-col gap-3",children: T.slice(ue.start, ue.end).map((e) => {let t = String(e[0].author_key || e[0].id);- return /* @__PURE__ */ (0, B.jsx)(Gge, {+ return /* @__PURE__ */ (0, B.jsx)(Wge, {group: e,- name: aF(e, _),+ name: oF(e, _),handlers: ae,selected: s,open: !y.has(t),@@ -45303,19 +45305,19 @@ function Kge(e) {className: "text-body-2-regular text-text-secondary",children: `${ue.start + 1}–${ue.end} / ${ue.total} ${le ? "个来源" : "位创作者"}`}),- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(o),onSelectionChange: (e) => {e !== null && de.setPageSize(Number(e));},- children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: QP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: String(e),children: `每页 ${e} ${le ? "条" : "位"}`}, e))}),- /* @__PURE__ */ (0, B.jsx)(cL, {+ /* @__PURE__ */ (0, B.jsx)(lL, {page: ue.page,pages: ue.pages,onPage: (e) => de.setPageIndex(e - 1)@@ -45364,11 +45366,11 @@ function Kge(e) {]}) : null]- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: jT,+ icon: MT,title: "还没有关注来源",- actions: /* @__PURE__ */ (0, B.jsx)(OE, {+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {variant: "primary",size: "small",href: "/follow-manage?tab=add",@@ -45379,7 +45381,7 @@ function Kge(e) {}//#endregion//#region src/react/follow-manage/feed-sources.tsx-var qge = {+var Kge = {select: "选择",name: "名称",kind: "类型",@@ -45389,33 +45391,33 @@ var qge = {fetched: "上次拉取",fresh: "上次新增",actions: "操作"-}, Jge = /* @__PURE__ */ new Set(["select", "actions"]), lL = () => p.invalidateQueries({- queryKey: YP,+}, qge = /* @__PURE__ */ new Set(["select", "actions"]), uL = () => p.invalidateQueries({+ queryKey: XP,exact: !0-}), uL = (e) => e.name || e.url, Yge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;-function Xge(e) {+}), dL = (e) => e.name || e.url, Jge = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;+function Yge(e) {try {return new URL(e).hostname.replace(/^www\./, "");} catch {return e;}}-function Zge({ source: e }) {- return e.last_error ? /* @__PURE__ */ (0, B.jsx)(EE, {+function Xge({ source: e }) {+ return e.last_error ? /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "rose",children: "拉取失败"- }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(EE, {+ }) : e.enabled ? /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "lime",children: "正常"- }) : /* @__PURE__ */ (0, B.jsx)(EE, {+ }) : /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "neutral",children: "已暂停"});}-function Qge({ source: e }) {+function Zge({ source: e }) {let t = e.entity_id ? {id: e.entity_id,has_image: !!e.has_image,@@ -45424,31 +45426,31 @@ function Qge({ source: e }) {} : null;return /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${oL}`,- dangerouslySetInnerHTML: { __html: k(uL(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 ${sL}`,+ dangerouslySetInnerHTML: { __html: k(dL(e), t, null, "performer") }});}-var $ge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";-function e_e(e) {+var Qge = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";+function $ge(e) {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 dL(e, t) {+function fL(e, t) {let n = e.length === 1 ? e[0] : null;return je({title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,- body: n ? `将移除订阅源「${uL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",+ body: n ? `将移除订阅源「${dL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",confirmLabel: n ? "移除订阅源" : "移除所选订阅源",danger: !0,onConfirm: t});}-function t_e({ readOnly: e, toast: t }) {+function e_e({ readOnly: e, toast: t }) {let n = wS({- queryKey: YP,- queryFn: ({ signal: e }) => vF(e)- }), r = FE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = lF(a.length, u, c);+ queryKey: XP,+ queryFn: ({ signal: e }) => yF(e)+ }), r = IE(), i = n.data, a = (0, R.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, R.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, R.useState)(1), [u, d] = (0, R.useState)(20), f = uF(a.length, u, c);(0, R.useEffect)(() => {l((e) => Math.min(e, f.pages));}, [f.pages]), (0, R.useEffect)(() => {@@ -45460,7 +45462,7 @@ function t_e({ readOnly: e, toast: t }) {let p = DS({mutationFn: async (e) => {let t = await Se(e.ids, 4, async (t) => {- e.action === "remove" ? await bF(t) : await yF(t, e.action === "enabled");+ e.action === "remove" ? await xF(t) : await bF(t, e.action === "enabled");});return {...e,@@ -45469,13 +45471,13 @@ function t_e({ readOnly: e, toast: t }) {},onSuccess: (e) => {let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;- if (s(/* @__PURE__ */ new Set()), lL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {+ if (s(/* @__PURE__ */ new Set()), uL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {let e = n[0];r.setError(`${n.length} 条没有写入:${e.ok ? "" : U(e.error)}`);}},onError: (e) => r.setError(U(e))- }), m = (0, R.useMemo)(() => e_e(a), [a]), h = (0, R.useRef)({+ }), m = (0, R.useMemo)(() => $ge(a), [a]), h = (0, R.useRef)({readOnly: e,shared: m,busy: null,@@ -45487,34 +45489,34 @@ function t_e({ readOnly: e, toast: t }) {readOnly: e,shared: m,busy: r.busy,- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => yF(e.id, t, n), () => void lL()),- fetch: (e) => void r.run(`check-${e.id}`, (t) => xF(t, [e.id]), () => void lL()),- remove: (e) => void dL([e], async () => {- await bF(e.id), t(`已移除订阅源「${uL(e)}」`), lL();+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => bF(e.id, t, n), () => void uL()),+ fetch: (e) => void r.run(`check-${e.id}`, (t) => SF(t, [e.id]), () => void uL()),+ remove: (e) => void fL([e], async () => {+ await xF(e.id), t(`已移除订阅源「${dL(e)}」`), uL();})};let g = (0, R.useMemo)(() => {- let e = mI(), t = (e) => () => qge[e] || e;+ let e = hI(), t = (e) => () => Kge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, B.jsx)(GM, {+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(KM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),- "aria-label": `选择 ${uL(e.row.original)}`+ "aria-label": `选择 ${dL(e.row.original)}`})}),- e.accessor(uL, {+ e.accessor(dL, {id: "name",header: t("name"),cell: (e) => {- let t = $ge(e.row.original, h.current.shared);+ let t = Qge(e.row.original, h.current.shared);return /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",children: [- /* @__PURE__ */ (0, B.jsx)(Qge, { source: e.row.original }),+ /* @__PURE__ */ (0, B.jsx)(Zge, { source: e.row.original }),e.getValue(),t ? /* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -45542,15 +45544,15 @@ function t_e({ readOnly: e, toast: t }) {rel: "noreferrer noopener",title: "打开来源页面",className: "text-text-primary underline-offset-2 hover:underline",- children: Xge(e.getValue())+ children: Yge(e.getValue())})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, B.jsx)(Zge, { source: e.row.original })+ cell: (e) => /* @__PURE__ */ (0, B.jsx)(Xge, { source: e.row.original })}),- e.accessor((e) => Yge(e.interval_minutes), {+ e.accessor((e) => Jge(e.interval_minutes), {id: "interval",header: t("interval"),cell: (e) => /* @__PURE__ */ (0, B.jsx)("span", {@@ -45580,8 +45582,8 @@ function t_e({ readOnly: e, toast: t }) {cell: (e) => /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex items-center gap-1",children: [- /* @__PURE__ */ (0, B.jsx)(aL, {- "aria-label": `启用 ${uL(e.row.original)}`,+ /* @__PURE__ */ (0, B.jsx)(oL, {+ "aria-label": `启用 ${dL(e.row.original)}`,isSelected: e.row.original.enabled,isDisabled: h.current.readOnly,onChange: (t) => h.current.toggle(e.row.original, t)@@ -45590,8 +45592,8 @@ function t_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: AT,- "aria-label": `拉取 ${uL(e.row.original)}`,+ leadingIcon: jT,+ "aria-label": `拉取 ${dL(e.row.original)}`,disabled: h.current.readOnly,...X(h.current.busy === `check-${e.row.original.id}`),onClick: () => h.current.fetch(e.row.original)@@ -45600,8 +45602,8 @@ function t_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: CT,- "aria-label": `移除 ${uL(e.row.original)}`,+ leadingIcon: wT,+ "aria-label": `移除 ${dL(e.row.original)}`,disabled: h.current.readOnly,onClick: () => h.current.remove(e.row.original)})@@ -45609,7 +45611,7 @@ function t_e({ readOnly: e, toast: t }) {})})];- }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = iL({+ }, []), _ = (0, R.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = aL({data: a,columns: g,getRowId: (e) => String(e.id),@@ -45625,27 +45627,27 @@ function t_e({ readOnly: e, toast: t }) {let t = typeof e == "function" ? e(_) : e;s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));},- getCoreRowModel: tL(),- getPaginationRowModel: nL()+ getCoreRowModel: nL(),+ getPaginationRowModel: rL()});if (!i) return n.error ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "打不开订阅源",children: U(n.error)- }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "正在读订阅源。" });- let y = () => void r.run("check", (e) => xF(e), () => void lL()), b = (e) => s((t) => {+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "正在读订阅源。" });+ let y = () => void r.run("check", (e) => SF(e), () => void uL()), b = (e) => s((t) => {let n = new Set(t);return n.has(e) ? n.delete(e) : n.add(e), n;}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",- children: [/* @__PURE__ */ (0, B.jsx)(Bge, {+ children: [/* @__PURE__ */ (0, B.jsx)(zge, {readOnly: e,toast: t,- onAdded: () => void lL()+ onAdded: () => void uL()}), /* @__PURE__ */ (0, B.jsxs)("section", {"aria-label": "JAV 订阅列表",- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -45673,9 +45675,9 @@ function t_e({ readOnly: e, toast: t }) {className: "flex flex-col gap-3",children: [S.map((e) => /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",- title: `${uL(e)} 拉取失败`,+ title: `${dL(e)} 拉取失败`,children: e.last_error- }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null]+ }, e.id)), r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null]}) : null,/* @__PURE__ */ (0, B.jsxs)(oS, {visible: x.length > 0,@@ -45709,7 +45711,7 @@ function t_e({ readOnly: e, toast: t }) {size: "small",disabled: e,...X(p.isPending),- onClick: () => void dL(x, () => p.mutateAsync({+ onClick: () => void fL(x, () => p.mutateAsync({ids: x.map((e) => e.id),action: "remove"})),@@ -45723,26 +45725,26 @@ function t_e({ readOnly: e, toast: t }) {})]}),- a.length ? /* @__PURE__ */ (0, B.jsx)(JM, {+ a.length ? /* @__PURE__ */ (0, B.jsx)(YM, {onRowClick: (e) => b(Number(e)),- children: /* @__PURE__ */ (0, B.jsxs)(KM, {+ children: /* @__PURE__ */ (0, B.jsxs)(qM, {"aria-label": "JAV 订阅源",size: "sm",- children: [/* @__PURE__ */ (0, B.jsx)(nk, { children: v.getHeaderGroups()[0].headers.map((e) => {- let t = rL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, B.jsx)(rk, {+ children: [/* @__PURE__ */ (0, B.jsx)(rk, { children: v.getHeaderGroups()[0].headers.map((e) => {+ let t = iL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, B.jsx)(ik, {id: e.id,isRowHeader: e.column.id === "name",- children: Jge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t+ children: qge.has(e.column.id) ? /* @__PURE__ */ (0, B.jsx)(q_, { children: t }) : t}, e.id);- }) }), /* @__PURE__ */ (0, B.jsx)(ak, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(ck, {+ }) }), /* @__PURE__ */ (0, B.jsx)(ok, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, B.jsx)(lk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(uk, { children: rL(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, B.jsx)(dk, { children: iL(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id)) })]})- }) : /* @__PURE__ */ (0, B.jsx)(AE, {- icon: jT,+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {+ icon: MT,title: "还没有订阅源",shell: "plain",children: "在上面按女优名添加,或在人物页点「订阅新作」。"@@ -45754,19 +45756,19 @@ function t_e({ readOnly: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`}),- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(u),onSelectionChange: (e) => {e !== null && (d(Number(e)), l(1));},- children: ZP.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: QP.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: String(e),children: `每页 ${e} 条`}, e))}),- /* @__PURE__ */ (0, B.jsx)(cL, {+ /* @__PURE__ */ (0, B.jsx)(lL, {label: "JAV 订阅分页",page: f.page,pages: f.pages,@@ -45788,29 +45790,29 @@ function t_e({ readOnly: e, toast: t }) {}//#endregion//#region src/react/wants/resource-cache.ts-var fL = "peach.want-resources.v1", pL = 864e5;-function mL(e, t = Date.now()) {+var pL = "peach.want-resources.v1", mL = 864e5;+function hL(e, t = Date.now()) {let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * pL : 7 * pL;+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * mL : 7 * mL;}-function hL() {+function gL() {try {- let e = JSON.parse(localStorage.getItem(fL) || "[]");+ let e = JSON.parse(localStorage.getItem(pL) || "[]");return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];} catch {return [];}}-function n_e(e, t) {- let n = hL().find((t) => t.code === e);- return n && Date.now() - n.saved < mL(t) ? n : void 0;+function t_e(e, t) {+ let n = gL().find((t) => t.code === e);+ return n && Date.now() - n.saved < hL(t) ? n : void 0;}-function r_e(e, t) {+function n_e(e, t) {if (t.state === "ready") try {- let n = hL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");- localStorage.setItem(fL, JSON.stringify([{+ let n = gL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");+ localStorage.setItem(pL, JSON.stringify([{code: e,saved: Number.isFinite(r) ? r : Date.now(),result: t@@ -45819,7 +45821,7 @@ function r_e(e, t) {}//#endregion//#region src/react/wants/want-magnets.tsx-function gL({ icon: e, children: t }) {+function _L({ icon: e, children: t }) {return /* @__PURE__ */ (0, B.jsxs)("span", {className: "inline-flex items-center gap-1",children: [/* @__PURE__ */ (0, B.jsx)(e, {@@ -45828,8 +45830,8 @@ function gL({ icon: e, children: t }) {}), t]});}-function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {- let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = FE(), f = cS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => n_e(e.code || "", e.release_date), [e.code, e.release_date]);+function r_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {+ let o = (0, R.useRef)(null), [s, c] = (0, R.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, R.useState)([]), d = IE(), f = cS(), p = (0, R.useRef)(!1), m = (0, R.useMemo)(() => t_e(e.code || "", e.release_date), [e.code, e.release_date]);(0, R.useEffect)(() => {if (!o.current || s) return;let e = new IntersectionObserver((t) => {@@ -45845,15 +45847,15 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour],queryFn: async ({ signal: t }) => {let n = p.current, r = await W(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);- return p.current = n && r.state === "busy", r_e(e.code || "", r), r;+ return p.current = n && r.state === "busy", n_e(e.code || "", r), r;},initialData: m?.result,initialDataUpdatedAt: m?.saved,enabled: s,retry: !1,- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) ? Infinity : 0,+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : hL(e.release_date)) ? Infinity : 0,gcTime: 864e5,- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : mL(e.release_date)) && "always",+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : hL(e.release_date)) && "always",refetchOnWindowFocus: !1,refetchInterval: (e) => e.state.data?.state === "busy" && 3e3});@@ -45862,7 +45864,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}, [h.data?.source_url, a]);let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {- let n = await G(tA, {+ let n = await G(nA, {magnet: r.uri,provider: g.key,target: g.target,@@ -45873,7 +45875,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourif (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");return n;}, (e) => {- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: nA });+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: rA });});}, v = (e) => {d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));@@ -45891,7 +45893,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: AT,+ leadingIcon: jT,...X(y),onClick: () => {y || (p.current = !0, h.refetch());@@ -45899,7 +45901,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourchildren: "重新查询"})]}),- y ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在查找资源链接…" }) : null,+ y ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在查找资源链接…" }) : null,b ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "资源链接未取得",@@ -45928,18 +45930,18 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourclassName: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(EE, {+ children: [/* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",children: /* @__PURE__ */ (0, B.jsxs)("span", {className: "inline-flex items-center gap-1",- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(gae, {+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(hae, {"aria-hidden": !0,className: "size-3.5"- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)(eae, {+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, B.jsx)($ie, {"aria-hidden": !0,className: "size-3.5"- }) : /* @__PURE__ */ (0, B.jsx)(OT, {+ }) : /* @__PURE__ */ (0, B.jsx)(kT, {"aria-hidden": !0,className: "size-3.5"}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]@@ -45951,24 +45953,24 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",children: [- /* @__PURE__ */ (0, B.jsx)(gL, {- icon: OT,+ /* @__PURE__ */ (0, B.jsx)(_L, {+ icon: kT,children: e.source}),- /* @__PURE__ */ (0, B.jsx)(gL, {- icon: ET,+ /* @__PURE__ */ (0, B.jsx)(_L, {+ icon: DT,children: e.size || "大小未知"}),- e.files ? /* @__PURE__ */ (0, B.jsx)(gL, {- icon: tae,+ e.files ? /* @__PURE__ */ (0, B.jsx)(_L, {+ icon: eae,children: e.files.replaceAll("個", "个")}) : null,- /* @__PURE__ */ (0, B.jsx)(gL, {- icon: Xie,+ /* @__PURE__ */ (0, B.jsx)(_L, {+ icon: Yie,children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"}),- e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(gL, {- icon: kT,+ e.attributes.map((e) => /* @__PURE__ */ (0, B.jsx)(_L, {+ icon: AT,children: e}, e))]@@ -45976,11 +45978,11 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex shrink-0 flex-wrap gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(OE, {+ /* @__PURE__ */ (0, B.jsx)(kE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: wT,+ trailingIcon: TT,href: e.source_url,target: "_blank",rel: "noopener noreferrer",@@ -45989,7 +45991,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: $ie,+ leadingIcon: Qie,...X(d.busy === `copy:${e.id}`),onClick: () => v(e),children: "复制链接"@@ -45997,7 +45999,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSoure.protocol === "magnet" ? /* @__PURE__ */ (0, B.jsx)(J, {variant: "primary",size: "small",- leadingIcon: bT,+ leadingIcon: xT,disabled: t || !n?.available || !g || r,...X(d.busy === e.id),onClick: () => _(e),@@ -46010,7 +46012,7 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourreturn /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",children: e.slice(0, 3)- }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Wk, {+ }), e.length > 3 ? /* @__PURE__ */ (0, B.jsx)(Gk, {summary: `更多资源(${e.length - 3} 条)`,children: /* @__PURE__ */ (0, B.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",@@ -46023,41 +46025,41 @@ function i_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}//#endregion//#region src/react/wants/wants.ts-var _L = "/api/wants", vL = ["wants"], a_e = (e) => [+var vL = "/api/wants", yL = ["wants"], i_e = (e) => ["wants","follow",e-], o_e = [+], a_e = [["searching", "待找"],["unreleased", "未发售"],["given_up", "暂时放弃"],["acquired", "已入库"]-], s_e = (e) => W(_L, e), c_e = (e, t) => W(`${_L}?follow=${encodeURIComponent(e)}`, t), yL = (e, t) => G(_L, {+], o_e = (e) => W(vL, e), s_e = (e, t) => W(`${vL}?follow=${encodeURIComponent(e)}`, t), bL = (e, t) => G(vL, {action: "add",...e-}, "POST", t), bL = (e, t) => G(_L, {+}, "POST", t), xL = (e, t) => G(vL, {action: "remove",ids: e-}, "POST", t), l_e = (e, t) => G(_L, {+}, "POST", t), c_e = (e, t) => G(vL, {action: "reset",ids: e-}, "POST", t), xL = () => p.invalidateQueries({ queryKey: vL }), SL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;-function u_e(e) {+}, "POST", t), SL = () => p.invalidateQueries({ queryKey: yL }), CL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;+function l_e(e) {return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";}//#endregion//#region src/react/wants/want-list.tsx-var d_e = {+var u_e = {code: "手动添加",feed: "Feed 新作",follow: "关注"-}, CL = (e) => [+}, wL = (e) => [e.release_date,e.studio,e.performers,- d_e[e.origin]+ u_e[e.origin]].filter(Boolean).join(" · ");-function f_e({ want: e }) {+function d_e({ want: e }) {return /* @__PURE__ */ (0, B.jsxs)("span", {className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",children: [/* @__PURE__ */ (0, B.jsx)("span", {@@ -46073,37 +46075,37 @@ function f_e({ want: e }) {}) : null]});}-function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {+function f_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {let [l, u] = (0, R.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");return /* @__PURE__ */ (0, B.jsxs)("li", {"data-want-id": e.id,- className: kE({+ className: AE({bordered: "soft",className: "flex flex-col gap-4 max-sm:p-4"}),children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 items-start gap-4 max-sm:gap-3",- children: [/* @__PURE__ */ (0, B.jsx)(f_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {+ children: [/* @__PURE__ */ (0, B.jsx)(d_e, { want: e }), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, B.jsxs)("p", {className: "flex min-w-0 flex-wrap items-baseline gap-x-2",children: [/* @__PURE__ */ (0, B.jsx)("b", {className: "text-headline-medium text-text-primary",- children: SL(e)+ children: CL(e)}), e.code && e.title ? /* @__PURE__ */ (0, B.jsx)("span", {className: "min-w-0 truncate text-body-2-regular text-text-secondary",children: e.title}) : null]}),- CL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {+ wL(e) ? /* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: CL(e)+ children: wL(e)}) : null,!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, B.jsx)("p", {"data-want-note": "",className: "text-caption-1-regular text-text-secondary",- children: u_e(e)+ children: l_e(e)}) : null,e.scrape_error ? /* @__PURE__ */ (0, B.jsxs)("p", {className: "text-caption-1-regular text-text-secondary",@@ -46112,11 +46114,11 @@ function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, B.jsxs)("div", {className: "mt-1 flex flex-wrap items-center gap-2",children: [- d ? /* @__PURE__ */ (0, B.jsx)(OE, {+ d ? /* @__PURE__ */ (0, B.jsx)(kE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: wT,+ trailingIcon: TT,href: d,target: "_blank",rel: "noopener noreferrer",@@ -46125,7 +46127,7 @@ function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDoe.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: bT,+ leadingIcon: xT,disabled: t,onClick: a,children: "云下载"@@ -46141,7 +46143,7 @@ function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: CT,+ leadingIcon: wT,disabled: t,...X(n === `remove:${e.id}`),onClick: i,@@ -46151,7 +46153,7 @@ function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo})]})]- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(i_e, {+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, B.jsx)(r_e, {want: e,readOnly: t,downloads: o,@@ -46161,36 +46163,36 @@ function p_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo}) : null]});}-function m_e({ readOnly: e, toast: t, cloudDownload: n }) {- let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = FE(), c = wS({- queryKey: vL,- queryFn: ({ signal: e }) => s_e(e),+function p_e({ readOnly: e, toast: t, cloudDownload: n }) {+ let [r, i] = (0, R.useState)(""), [a, o] = (0, R.useState)(""), s = IE(), c = wS({+ queryKey: yL,+ queryFn: ({ signal: e }) => o_e(e),refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1}), l = () => {let n = r.trim();- !n || e || s.run("add", (e) => yL({ code: n }, e), (e) => {- t(e.created ? `已加入想要:${SL(e.want)}` : `${SL(e.want)} 已经在想要里`), i(""), xL();+ !n || e || s.run("add", (e) => bL({ code: n }, e), (e) => {+ t(e.created ? `已加入想要:${CL(e.want)}` : `${CL(e.want)} 已经在想要里`), i(""), SL();});}, u = (e) => {e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());}, d = (e) => {- s.run(`remove:${e.id}`, (t) => bL([e.id], t), () => {- t(`已移除:${SL(e)}`), xL();+ s.run(`remove:${e.id}`, (t) => xL([e.id], t), () => {+ t(`已移除:${CL(e)}`), SL();});}, f = (e) => {- s.run(`reset:${e.id}`, (t) => l_e([e.id], t), () => {- t(`${SL(e)} 回到待找`), xL();+ s.run(`reset:${e.id}`, (t) => c_e([e.id], t), () => {+ t(`${CL(e)} 回到待找`), SL();});}, p = c.data, m = p?.items || [], h = wS({- queryKey: nA,- queryFn: ({ signal: e }) => W(`${tA}?limit=100`, e),+ queryKey: rA,+ queryFn: ({ signal: e }) => W(`${nA}?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.find((e) => e.key === a)?.key || g[0]?.key || "";return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-8",children: [/* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -46203,7 +46205,7 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-64 grow max-sm:min-w-0",- children: /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "番号",placeholder: "输入番号,例如 SSIS-950",value: r,@@ -46219,7 +46221,7 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {children: "添加"})]}),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),s.error ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "这一次没有完成",@@ -46232,7 +46234,7 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {title: "想要清单读取失败",children: U(c.error)}) : null,- p?.scraping ? /* @__PURE__ */ (0, B.jsx)(Rk, {+ p?.scraping ? /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: "正在给刚加入的番号取资料与封面。"}) : null,@@ -46243,16 +46245,16 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {className: "text-body-medium text-text-primary",children: "下载到"}),- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "下载到",selectedKey: _,onSelectionChange: (e) => o(String(e)),- children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: g.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e.key,children: e.label}, e.key))}),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })+ /* @__PURE__ */ (0, B.jsx)(zk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })]}) : null,h.error ? /* @__PURE__ */ (0, B.jsx)(Y, {@@ -46268,13 +46270,13 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {tone: "neutral",children: "云下载只在账本写入端可用。"}) : null,- p && !m.length ? /* @__PURE__ */ (0, B.jsx)(AE, {+ p && !m.length ? /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: dae,+ icon: uae,title: "还没有想要的作品",children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"}) : null,- o_e.map(([r, i]) => {+ a_e.map(([r, i]) => {let a = m.filter((e) => e.phase === r);return a.length ? /* @__PURE__ */ (0, B.jsxs)("section", {"aria-label": i,@@ -46288,7 +46290,7 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {})]}), /* @__PURE__ */ (0, B.jsx)("ul", {className: "flex flex-col gap-4",- children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(p_e, {+ children: a.map((r) => /* @__PURE__ */ (0, B.jsx)(f_e, {want: r,readOnly: e,busy: s.busy,@@ -46311,16 +46313,16 @@ function m_e({ readOnly: e, toast: t, cloudDownload: n }) {}//#endregion//#region src/react/follow-manage/follow-manage-page.tsx-var wL = [+var TL = [["list", "关注列表"],["add", "添加关注"],["feeds", "JAV 订阅源"],["wants", "JAV 入库"],["source", "来源和凭证"]-], TL = (e) => wL.some(([t]) => t === e);-function EL({ term: e, figure: t, unit: n }) {+], EL = (e) => TL.some(([t]) => t === e);+function DL({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, B.jsxs)("div", {- className: kE({+ className: AE({padding: "none",className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"}),@@ -46336,23 +46338,23 @@ function EL({ term: e, figure: t, unit: n }) {})]});}-function h_e(e) {- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(TL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => RP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => RP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Eme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Dme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = wS({- queryKey: qP,- queryFn: ({ signal: e }) => fF(e)- }), w = wS({+function m_e(e) {+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(EL(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => zP(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => zP(e.sort, e.dir).dir), [_, v] = (0, R.useState)(Tme(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(Eme(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = wS({queryKey: JP,queryFn: ({ signal: e }) => pF(e)- }), T = wS({+ }), w = wS({queryKey: YP,- queryFn: ({ signal: e }) => vF(e)+ queryFn: ({ signal: e }) => mF(e)+ }), T = wS({+ queryKey: XP,+ queryFn: ({ signal: e }) => yF(e)}), E = C.data || { sources: [] }, D = w.data || {root: "",providers: []}, O = E.sources;(0, R.useEffect)(() => {S((e) => {- let t = Nme(e, O);+ let t = Mme(e, O);return t.size === e.size ? e : t;});}, [O]);@@ -46362,10 +46364,10 @@ function h_e(e) {tab: e.tab ?? l,page: e.page ?? d,sort: n === "checked" ? "" : n,- dir: r === LP[n] ? "" : r+ dir: r === RP[n] ? "" : r});- }, A = cF(O), j = O.filter(eF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !DF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;- return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [+ }, A = lF(O), j = O.filter(tF).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !OF(e)).length, ee = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [o ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "warning",title: "本机只能浏览",@@ -46380,64 +46382,64 @@ function h_e(e) {children: s}) : null,/* @__PURE__ */ (0, B.jsxs)("div", {- className: dde,+ className: ude,"aria-label": "关注概览",children: [- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "关注创作者",figure: A.length,unit: "位"}),- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "启用来源",figure: M,unit: `/ ${O.length}`}),- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "检查失败",figure: j,unit: "个来源"}),- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "未看更新",figure: E.counts?.new || 0,unit: "条"}),- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "JAV 订阅",figure: ee,unit: "位"}),- /* @__PURE__ */ (0, B.jsx)(EL, {+ /* @__PURE__ */ (0, B.jsx)(DL, {term: "未看新作",figure: T.data?.unread || 0,unit: "条"})]}),- /* @__PURE__ */ (0, B.jsxs)(mk, {+ /* @__PURE__ */ (0, B.jsxs)(hk, {selectedKey: l,onSelectionChange: (e) => {let t = String(e);- TL(t) && (u(t), k({ tab: t }));+ EL(t) && (u(t), k({ tab: t }));},className: "flex flex-col gap-6",children: [- /* @__PURE__ */ (0, B.jsx)(hk, {+ /* @__PURE__ */ (0, B.jsx)(gk, {"aria-label": "关注管理区域","data-section-nav": !0,"data-section-items": !0,className: "flex max-w-full flex-nowrap overflow-x-auto",- children: wL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(gk, {+ children: TL.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(_k, {id: e,className: "cursor-pointer whitespace-nowrap",children: e === "source" && N ? `${t}(${N})` : t}, e))}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "list",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, B.jsx)(Kge, {+ children: /* @__PURE__ */ (0, B.jsx)(Gge, {data: E,sort: p,dir: h,@@ -46467,10 +46469,10 @@ function h_e(e) {}})}),- /* @__PURE__ */ (0, B.jsxs)(_k, {+ /* @__PURE__ */ (0, B.jsxs)(vk, {id: "add",className: "flex flex-col gap-8",- children: [/* @__PURE__ */ (0, B.jsx)(Hhe, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vhe, {data: E,credentials: D,readOnly: o,@@ -46478,7 +46480,7 @@ function h_e(e) {openCredentials: () => {u("source"), k({ tab: "source" });}- }), /* @__PURE__ */ (0, B.jsx)(Ghe, {+ }), /* @__PURE__ */ (0, B.jsx)(Whe, {groups: E.author_aliases || [],readOnly: o,toast: r,@@ -46486,27 +46488,27 @@ function h_e(e) {sources: E.sources})]}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "feeds",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, B.jsx)(t_e, {+ children: /* @__PURE__ */ (0, B.jsx)(e_e, {readOnly: o,toast: r})}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "wants",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, B.jsx)(m_e, {+ children: /* @__PURE__ */ (0, B.jsx)(p_e, {readOnly: o,toast: r,cloudDownload: a})}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "source",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, B.jsx)(ege, {+ children: /* @__PURE__ */ (0, B.jsx)($he, {data: D,readOnly: o,toast: r@@ -46518,15 +46520,15 @@ function h_e(e) {}//#endregion//#region src/react/components/board-tabs.tsx-function DL({ value: e }) {+function OL({ value: e }) {return /* @__PURE__ */ (0, B.jsx)("span", {"data-tab-count": "",className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",children: e.toLocaleString()});}-var g_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";-function OL({ tabs: e, value: t, label: n, onChange: r }) {+var h_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";+function kL({ tabs: e, value: t, label: n, onChange: r }) {let i = (0, R.useRef)(null), a = (0, R.useRef)(null);return (0, R.useLayoutEffect)(() => {let e = i.current;@@ -46561,7 +46563,7 @@ function OL({ tabs: e, value: t, label: n, onChange: r }) {"data-tab": e.value,"aria-selected": i,tabIndex: i ? 0 : -1,- className: g_e,+ className: h_e,onClick: () => {i || r(e.value);},@@ -46577,23 +46579,23 @@ function OL({ tabs: e, value: t, label: n, onChange: r }) {}//#endregion//#region src/react/index/index-tags.tsx-var kL = () => /* @__PURE__ */ (0, B.jsx)("span", {+var AL = () => /* @__PURE__ */ (0, B.jsx)("span", {"aria-hidden": !0,"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"});-function __e({ tag: e, actions: t }) {+function g_e({ tag: e, actions: t }) {let n = t.picked.has(e.k);return /* @__PURE__ */ (0, B.jsxs)("button", {type: "button","data-alpha-tag": "","data-k": e.k,- "data-tag-cat": NN(t.online, e.cat),+ "data-tag-cat": PN(t.online, e.cat),"aria-pressed": n,onClick: () => t.press(e.k),className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: [- /* @__PURE__ */ (0, B.jsx)(kL, {}),+ /* @__PURE__ */ (0, B.jsx)(AL, {}),/* @__PURE__ */ (0, B.jsx)("span", {className: "min-w-0 flex-1 truncate",children: e.label@@ -46605,23 +46607,23 @@ function __e({ tag: e, actions: t }) {]});}-function v_e({ groups: e, actions: t }) {+function __e({ groups: e, actions: t }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-alphabet": "",className: "flex flex-col gap-4",children: e.map(([e, n], r) => /* @__PURE__ */ (0, B.jsxs)("section", {"data-alpha-group": r,- className: kE({+ className: AE({radius: "plain",padding: "none",className: "px-5 pt-4 pb-3"}),children: [/* @__PURE__ */ (0, B.jsxs)("h3", {className: "mb-2 flex items-center text-title-2-medium text-text-primary",- children: [e, /* @__PURE__ */ (0, B.jsx)(DL, { value: n.length })]+ children: [e, /* @__PURE__ */ (0, B.jsx)(OL, { value: n.length })]}), /* @__PURE__ */ (0, B.jsx)("div", {className: "index-tag-list gap-x-4 gap-y-0.5",- children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(__e, {+ children: n.map((e) => /* @__PURE__ */ (0, B.jsx)(g_e, {tag: e,actions: t}, e.k))@@ -46629,8 +46631,8 @@ function v_e({ groups: e, actions: t }) {}, e))});}-var y_e = "\xA0";-function b_e({ tags: e, actions: t }) {+var v_e = "\xA0";+function y_e({ tags: e, actions: t }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-tag-cloud": "",className: "flex flex-wrap gap-1.75",@@ -46638,11 +46640,11 @@ function b_e({ tags: e, actions: t }) {type: "button","data-tag-chip": "","data-k": e.k,- "data-tag-cat": NN(t.online, e.cat),+ "data-tag-cat": PN(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 + y_e, /* @__PURE__ */ (0, B.jsx)("span", {+ children: [e.label + v_e, /* @__PURE__ */ (0, B.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",children: e.n.toLocaleString()@@ -46650,7 +46652,7 @@ function b_e({ tags: e, actions: t }) {}, e.k))});}-var x_e = [[+var b_e = [["cloud","标签云","tags"@@ -46659,16 +46661,16 @@ var x_e = [["字母表","text-aa"]];-function S_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {+function x_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {return /* @__PURE__ */ (0, B.jsx)(dA, {label: "标签筛选",topLabel: "标签类型",top: e.map(([e, r]) => /* @__PURE__ */ (0, B.jsxs)(fA, {"data-tag-pill": "",- "data-tag-cat": e === "all" ? "all" : NN(n, e),+ "data-tag-cat": e === "all" ? "all" : PN(n, e),pressed: t === e,onPress: () => o(e),- children: [/* @__PURE__ */ (0, B.jsx)(kL, {}), r]+ children: [/* @__PURE__ */ (0, B.jsx)(AL, {}), r]}, e)),bottom: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("span", {@@ -46687,15 +46689,15 @@ function S_e({ categories: e, category: t, online: n, readout: r, letters: i, vichildren: e}, e))}) : null,- /* @__PURE__ */ (0, B.jsx)(zO, {+ /* @__PURE__ */ (0, B.jsx)(BO, {"aria-label": "标签视图",orientation: "horizontal",value: a,onChange: (e) => c(e),className: `ml-auto ${bA}`,- children: x_e.map(([e, t, n]) => {+ children: b_e.map(([e, t, n]) => {let r = CA(n);- return /* @__PURE__ */ (0, B.jsx)(BO, {+ return /* @__PURE__ */ (0, B.jsx)(VO, {value: e,"aria-label": t,"data-glass-segment": "",@@ -46711,13 +46713,13 @@ function S_e({ categories: e, category: t, online: n, readout: r, letters: i, vi] })});}-function C_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+function S_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {return /* @__PURE__ */ (0, B.jsxs)(oS, {visible: e > 0,label: "所选标签操作",count: `已选 ${e} 个标签`,children: [- /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: t === "any",onChange: (e) => n(e ? "any" : "all"),children: /* @__PURE__ */ (0, B.jsxs)("span", {@@ -46749,7 +46751,7 @@ function C_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {}//#endregion//#region src/react/index/index-page.tsx-var w_e = [{+var C_e = [{value: "studios",label: "厂牌",symbol: "clapperboard"@@ -46757,7 +46759,7 @@ var w_e = [{value: "agencies",label: "事务所",symbol: "briefcase"-}], AL = [{+}], w_e = [{value: "local",label: "本地",symbol: "hard-drive"@@ -46765,15 +46767,23 @@ var w_e = [{value: "online",label: "在线",symbol: "rss"-}], T_e = [{- value: "performers",- label: "艺人",- symbol: "user-round"-}, {- value: "creators",- label: "卖家与动画作者",- symbol: "user-round"-}], E_e = {+}], T_e = [+ {+ value: "performers",+ label: "艺人",+ symbol: "user-round"+ },+ {+ value: "creators",+ label: "卖家",+ symbol: "user-round"+ },+ {+ value: "online",+ label: "在线",+ symbol: "rss"+ }+], E_e = {people: [["big","大图 · 竖幅头像",@@ -46795,15 +46805,15 @@ var w_e = [{};function D_e({ kind: e, layout: t, onChange: n }) {return /* @__PURE__ */ (0, B.jsx)(_A, {- "aria-label": `${xN[e]}索引版式`,+ "aria-label": `${SN[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",className: `flex-none max-board-narrow:order-3 ${vA}`,- children: E_e[DN(e) ? "company" : "people"].map(([e, t, n]) => {+ children: E_e[ON(e) ? "company" : "people"].map(([e, t, n]) => {let r = CA(n);- return /* @__PURE__ */ (0, B.jsx)(BO, {+ return /* @__PURE__ */ (0, B.jsx)(VO, {value: e,"aria-label": t,className: Zce,@@ -46832,13 +46842,13 @@ function k_e({ label: e, value: t, onQuery: n }) {onCompositionEnd: (e) => {a.current = !1, s(e.target.value);},- children: /* @__PURE__ */ (0, B.jsx)(yk, {+ children: /* @__PURE__ */ (0, B.jsx)(bk, {"aria-label": e,value: r,onChange: (e) => {i(e), a.current || s(e);},- children: /* @__PURE__ */ (0, B.jsx)(xk, {+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {type: "search",leadingIcon: O_e,spellCheck: !1,@@ -46851,13 +46861,13 @@ function k_e({ label: e, value: t, onQuery: n }) {});}function A_e(e) {- let [t, n] = (0, R.useState)(() => ON({+ let [t, n] = (0, R.useState)(() => kN({kind: e.kind,q: e.q,scope: e.scope,view: e.view,category: e.category- })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = xN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";+ })), [r, i] = (0, R.useState)(e.layout), [a, o] = (0, R.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, R.useState)("any"), l = (0, R.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = SN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";(0, R.useEffect)(() => {e.selectMode || o(/* @__PURE__ */ new Set());}, [e.selectMode]);@@ -46867,7 +46877,7 @@ function A_e(e) {...r};y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });- }, x = MN(kN(t)), S = OS({+ }, x = NN(AN(t)), S = OS({queryKey: x.queryKey,queryFn: ({ pageParam: e, signal: t }) => x.queryFn({pageParam: e,@@ -46876,21 +46886,21 @@ function A_e(e) {initialPageParam: 0,getNextPageParam: x.getNextPageParam,placeholderData: v ? kS.keepPreviousData : void 0- }), C = Lfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Rfe(C.length, !!S.hasNextPage);+ }), C = Ife(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Lfe(C.length, !!S.hasNextPage);(0, R.useLayoutEffect)(() => {l.current && se(l.current);}, [r]);let E = (0, R.useMemo)(() => u === "tags" ? C.map((t) => ({...t,label: e.tagLabel(t.k)- })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Vfe(E, (t) => e.tagLabel(t)) : [], [+ })) : [], [C, u]), D = (0, R.useMemo)(() => u === "tags" && p === "alphabet" ? Bfe(E, (t) => e.tagLabel(t)) : [], [E,p,u]), O = (t) => {i(t), e.savePreference({ layout: t });- }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(OL, {- tabs: AL,+ }, k = u === "tags" ? /* @__PURE__ */ (0, B.jsx)(kL, {+ tabs: w_e,value: f,label: "词表",onChange: (e) => {@@ -46900,18 +46910,8 @@ function A_e(e) {view: e === "online" ? "alphabet" : p});}- }) : u === "performers" ? /* @__PURE__ */ (0, B.jsx)(OL, {- tabs: AL,- value: f,- label: "名册",- onChange: (t) => {- t === "online" && e.exitSelectMode(), b({- scope: t,- category: "all"- });- }- }) : DN(u) ? /* @__PURE__ */ (0, B.jsx)(OL, {- tabs: w_e,+ }) : ON(u) ? /* @__PURE__ */ (0, B.jsx)(kL, {+ tabs: C_e,value: u,label: "公司类型",onChange: (e) => b({ kind: e })@@ -46928,7 +46928,7 @@ function A_e(e) {let n = new Set(e);return n.delete(t) || n.add(t), n;});- }, j = (g ? CN : SN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);+ }, j = (g ? wN : CN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);return /* @__PURE__ */ (0, B.jsxs)("div", {ref: l,"data-index-page": u,@@ -46943,12 +46943,12 @@ function A_e(e) {className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",children: h}),- EN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {+ DN(u) ? /* @__PURE__ */ (0, B.jsx)("span", {"data-index-count": "",className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",children: S.isPending ? "" : T}) : null,- EN(u) ? /* @__PURE__ */ (0, B.jsx)(D_e, {+ DN(u) ? /* @__PURE__ */ (0, B.jsx)(D_e, {kind: u,layout: r,onChange: O@@ -46966,21 +46966,23 @@ function A_e(e) {})]}),- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, B.jsx)(OL, {+ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, B.jsx)(kL, {tabs: T_e,- value: u,+ value: _ ? "online" : u,label: "人物名册",- onChange: (e) => b({- kind: e,- scope: "local",- category: "all"- })+ onChange: (t) => {+ t === "online" && e.exitSelectMode(), b({+ kind: t === "online" ? "performers" : t,+ scope: t === "online" ? "online" : "local",+ category: "all"+ });+ }}) : null,k,- (u === "creators" || u === "performers") && f === "local" ? /* @__PURE__ */ (0, B.jsx)("div", {+ u === "performers" && f === "local" ? /* @__PURE__ */ (0, B.jsx)("div", {"aria-label": "身份分类",className: "mb-4 flex flex-wrap gap-2",- children: wN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(J, {+ children: TN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(J, {variant: m === e ? "primary" : "secondary",size: "small","aria-pressed": m === e,@@ -46988,7 +46990,7 @@ function A_e(e) {children: t}, e))}) : null,- u === "tags" ? /* @__PURE__ */ (0, B.jsx)(S_e, {+ u === "tags" ? /* @__PURE__ */ (0, B.jsx)(x_e, {categories: j,category: m,online: g,@@ -47013,7 +47015,7 @@ function A_e(e) {mode: p}) }});- if (S.isError) return /* @__PURE__ */ (0, B.jsx)(AE, {+ if (S.isError) return /* @__PURE__ */ (0, B.jsx)(jE, {icon: CA("search"),title: `没能读取${h}`,actions: /* @__PURE__ */ (0, B.jsx)(J, {@@ -47029,12 +47031,12 @@ function A_e(e) {online: g || _,configurable: e.configurable});- if (_) return /* @__PURE__ */ (0, B.jsx)(Ufe, {+ if (_) return /* @__PURE__ */ (0, B.jsx)(Hfe, {items: C,layout: r,props: e});- if (EN(u)) return /* @__PURE__ */ (0, B.jsx)(IN, {+ if (DN(u)) return /* @__PURE__ */ (0, B.jsx)(LN, {kind: u,items: C,layout: r,@@ -47045,10 +47047,10 @@ function A_e(e) {picked: a,press: A};- return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(v_e, {+ return p === "alphabet" ? /* @__PURE__ */ (0, B.jsx)(__e, {groups: D,actions: t- }) : /* @__PURE__ */ (0, B.jsx)(b_e, {+ }) : /* @__PURE__ */ (0, B.jsx)(y_e, {tags: E,actions: t});@@ -47063,13 +47065,13 @@ function A_e(e) {disabled: S.isFetchingNextPage,"aria-busy": S.isFetchingNextPage || void 0,onClick: () => void S.fetchNextPage(),- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(jE, {+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, B.jsx)(ME, {inline: !0,label: "继续载入中…"}) : "载入更多"})}) : null,- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(C_e, {+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, B.jsx)(S_e, {count: a.size,match: s,onMatch: c,@@ -47085,27 +47087,27 @@ function A_e(e) {var j_e = {tags: "标签",performers: "艺人",- creators: "卖家与动画作者",+ creators: "卖家",studios: "厂牌",agencies: "事务所"};function M_e({ kind: e, filtered: t, online: n, configurable: r }) {- if (t) return /* @__PURE__ */ (0, B.jsx)(AE, {+ if (t) return /* @__PURE__ */ (0, B.jsx)(jE, {icon: CA("search"),title: "没有符合条件的内容",- actions: /* @__PURE__ */ (0, B.jsx)(OE, {+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {variant: "primary",href: "/?loc=&thumb=0",children: "查看全部内容"}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : j_e[e], a = /* @__PURE__ */ (0, B.jsx)(OE, {+ let i = n && e === "performers" ? "创作者" : j_e[e], a = /* @__PURE__ */ (0, B.jsx)(kE, {variant: !r || n ? "primary" : "secondary",href: "/follow-manage?tab=add",children: "添加关注"});- return /* @__PURE__ */ (0, B.jsx)(AE, {+ return /* @__PURE__ */ (0, B.jsx)(jE, {icon: CA(e === "tags" ? "tags" : "user-round"),title: `还没有${i}`,actions: n ? a : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [r ? /* @__PURE__ */ (0, B.jsx)(J, {@@ -47372,7 +47374,7 @@ function RL({ scope: e, count: t }) {})] }) : null;}function H_e({ route: e, page: t, failed: n, onNavigate: r }) {- let i = NM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = mA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FL.map(([e]) => ML(t, e)).join(",") : ""}`), l = B_e(s), u = (e) => {+ let i = PM(), a = (0, R.useRef)(null), { kind: o, view: s } = e, c = mA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? FL.map(([e]) => ML(t, e)).join(",") : ""}`), l = B_e(s), u = (e) => {let t = e.target.closest("a");!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || IL()));}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";@@ -47381,7 +47383,7 @@ function H_e({ route: e, page: t, failed: n, onNavigate: r }) {children: [/* @__PURE__ */ (0, B.jsx)("div", {"data-junk-summary": "","aria-live": "polite",- children: /* @__PURE__ */ (0, B.jsx)(DP, {+ children: /* @__PURE__ */ (0, B.jsx)(OP, {label: V_e(s),figure: d,pending: !t && !n,@@ -47500,7 +47502,7 @@ function q_e({ props: e, data: t, pending: n, error: r, retry: i }) {});if (!l.length) {let t = e.view === "dismissed";- return /* @__PURE__ */ (0, B.jsx)(AE, {+ return /* @__PURE__ */ (0, B.jsx)(jE, {icon: U_e,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"@@ -47574,9 +47576,9 @@ function X_e({ value: e, max: t }) {});}function Z_e(e) {- let { job: t } = RM(e), n = t.data, r = t.isError ? n ? rj : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";+ let { job: t } = zM(e), n = t.data, r = t.isError ? n ? rj : U(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";if (!r && !o && !a) return null;- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : aj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? sae : Qie;+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : aj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? oae : Zie;return /* @__PURE__ */ (0, B.jsxs)("aside", {role: a ? "alert" : "status",className: Y_e[s],@@ -47592,10 +47594,10 @@ function Z_e(e) {className: "min-w-0 text-body-2-regular",children: u})]- }), /* @__PURE__ */ (0, B.jsx)(Nk, {+ }), /* @__PURE__ */ (0, B.jsx)(Pk, {href: "/data-cleanup#libraryProcessing",size: "small",- trailingIcon: hT,+ trailingIcon: gT,children: r || a ? "查看并处理" : "查看进度"})]});@@ -47637,7 +47639,7 @@ function rve(e) {}//#endregion//#region src/react/playlists/playlists-page.tsx-var ive = CA("ellipsis"), ave = CA("pencil"), ove = CA("trash"), sve = CA("playlist"), qL = CE(wk, Tk, "text-body-2-medium"), JL = "播放列表名称不能为空", YL = (e) => async () => {+var ive = CA("ellipsis"), ave = CA("pencil"), ove = CA("trash"), sve = CA("playlist"), qL = wE(Tk, Ek, "text-body-2-medium"), JL = "播放列表名称不能为空", YL = (e) => async () => {try {await e();} finally {@@ -47667,7 +47669,7 @@ function cve({ toast: e }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, B.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, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {label: "新播放列表",placeholder: "输入名称",maxLength: 80,@@ -47703,7 +47705,7 @@ function lve({ target: e, close: t, toast: n }) {},onError: (e) => o(U(e))});- return /* @__PURE__ */ (0, B.jsx)(nP, {+ return /* @__PURE__ */ (0, B.jsx)(rP, {isOpen: !!e,onOpenChange: (e) => {e || t();@@ -47726,11 +47728,11 @@ function lve({ target: e, close: t, toast: n }) {className: "flex min-h-0 flex-col",children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-4 p-5",- children: [/* @__PURE__ */ (0, B.jsx)(nD, {+ children: [/* @__PURE__ */ (0, B.jsx)(rD, {slot: "title",className: "text-title-2-semibold text-text-primary",children: "编辑名称"- }), /* @__PURE__ */ (0, B.jsx)(Sk, {+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {ref: s,label: "名称",placeholder: "输入名称",@@ -47776,14 +47778,14 @@ function uve({ name: e, onRename: t, onDelete: n }) {"aria-hidden": !0,className: "size-4.5"})- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(SO, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: Ck,- children: /* @__PURE__ */ (0, B.jsxs)(DM, {+ className: wk,+ children: /* @__PURE__ */ (0, B.jsxs)(OM, {"aria-label": `播放列表操作:${e}`,className: "flex w-37.5 flex-col gap-0.5 outline-none",children: [/* @__PURE__ */ (0, B.jsxs)("button", {@@ -47872,7 +47874,7 @@ function dve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i})}, r.id);})- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {icon: sve,title: "还没有播放列表",children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"@@ -47891,7 +47893,7 @@ function fve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDislet o = () => t(e.id);return /* @__PURE__ */ (0, B.jsxs)("li", {"data-goal-id": e.id,- className: kE({+ className: AE({padding: "none",bordered: "soft",className: "flex flex-col gap-3 p-3"@@ -47970,13 +47972,13 @@ function pve(e) {queryKey: pj,queryFn: ({ signal: e }) => mj(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "高清版目标读取失败",children: t.error ? U(t.error) : "未取得高清版目标,请刷新页面重试。"}) });let r = n.items || [];- return r.length ? /* @__PURE__ */ (0, B.jsxs)(ME, { children: [/* @__PURE__ */ (0, B.jsx)(DP, {+ return r.length ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)(OP, {label: "待升级",figure: `${n.total} 部作品`,flush: !0@@ -47986,9 +47988,9 @@ function pve(e) {item: t,...e}, t.id))- })] }) : /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(AE, {+ })] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: _ae,+ icon: gae,title: "没有标记中的高清版目标",children: "现有版本都已满足条件,或还没有加入追踪。"}) });@@ -48004,29 +48006,29 @@ function mve(e) {"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",children: [- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Dk, {+ i.length > 1 ? /* @__PURE__ */ (0, B.jsxs)(Ok, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",selectedKey: a || "*",onSelectionChange: (e) => {e !== null && o(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, B.jsx)(Ok, {+ children: [/* @__PURE__ */ (0, B.jsx)(kk, {id: "*",children: "全部分类"- }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ }), i.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]@@ -48034,7 +48036,7 @@ function mve(e) {/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: vT,+ leadingIcon: yT,"aria-pressed": v,disabled: p || !s.length,onClick: () => {@@ -48050,7 +48052,7 @@ function mve(e) {visible: c.size > 0,count: `已选 ${c.size} 项`,children: [- b ? /* @__PURE__ */ (0, B.jsxs)(Dk, {+ b ? /* @__PURE__ */ (0, B.jsxs)(Ok, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",@@ -48058,10 +48060,10 @@ function mve(e) {onSelectionChange: (e) => {e !== null && e !== "" && h(String(e));},- children: [/* @__PURE__ */ (0, B.jsx)(Ok, {+ children: [/* @__PURE__ */ (0, B.jsx)(kk, {id: "",children: x- }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ }), y.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: e}, e))]@@ -48171,13 +48173,13 @@ function _ve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {return a.length ? a.length === 1 ? /* @__PURE__ */ (0, B.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",children: /* @__PURE__ */ (0, B.jsx)(ZL, { candidate: a[0] })- }) : /* @__PURE__ */ (0, B.jsx)(zO, {+ }) : /* @__PURE__ */ (0, B.jsx)(BO, {"aria-label": `${t || "候选"}的来源`,value: n,isDisabled: i,onChange: r,className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(BO, {+ children: a.map((e) => /* @__PURE__ */ (0, B.jsx)(VO, {value: e.candidate_key,className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",children: /* @__PURE__ */ (0, B.jsx)(ZL, {@@ -48189,13 +48191,13 @@ function _ve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {}function vve({ genre: e, tags: t, locked: n, toast: r }) {let [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), c = DS({- mutationFn: (t) => xue(e, t),+ mutationFn: (t) => kj(e, t),onSuccess: async (t, n) => {if (!t.ok) {s(t.error || "服务端拒绝了这次收录");return;}- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Sue();+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await xue();},onError: (e) => s(U(e))}), l = () => {@@ -48214,14 +48216,14 @@ function vve({ genre: e, tags: t, locked: n, toast: r }) {className: "text-body-medium text-text-primary",children: e}),- /* @__PURE__ */ (0, B.jsx)(yk, {+ /* @__PURE__ */ (0, B.jsx)(bk, {"aria-label": `「${e}」收录成的中文标签`,value: i,onChange: a,maxLength: 40,isDisabled: n || c.isPending,className: "min-w-40 flex-1",- children: /* @__PURE__ */ (0, B.jsx)(xk, {+ children: /* @__PURE__ */ (0, B.jsx)(Sk, {size: "small",list: t.length ? XL : void 0,autoComplete: "off",@@ -48317,7 +48319,7 @@ function eR({ asset: e, openItem: t }) {}), /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: uae,+ leadingIcon: lae,onClick: () => t(e.id),children: "打开原视频"})]@@ -48331,7 +48333,7 @@ function xve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {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 ${oL}`,+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${sL}`,dangerouslySetInnerHTML: { __html: r }}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-col items-start",@@ -48358,10 +48360,10 @@ function Sve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [o ? /* @__PURE__ */ (0, B.jsx)(OE, {+ children: [o ? /* @__PURE__ */ (0, B.jsx)(kE, {variant: "secondary",size: "small",- trailingIcon: wT,+ trailingIcon: TT,href: o,target: "_blank",rel: "noopener noreferrer",@@ -48472,7 +48474,7 @@ function Cve({ assets: e, picked: t, onPicked: n, locked: r }) {}),/* @__PURE__ */ (0, B.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, B.jsx)(WM, {+ children: /* @__PURE__ */ (0, B.jsx)(GM, {size: "sm",state: {isSelected: n,@@ -48492,13 +48494,13 @@ function Cve({ assets: e, picked: t, onPicked: n, locked: r }) {}//#endregion//#region src/react/review/review-card.tsx-var wve = kE({+var wve = AE({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"}), tR = "flex min-h-6 min-w-0 items-center", Tve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";function Eve(e) {- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = NM(), h = NM(), g = t === "metadata_fields", _ = lue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = hue(t, n), x = Tj(t, n), S = wj(t, n), C = gue(n), w = _ue(n), T = Cj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, R.useRef)(!1), m = PM(), h = PM(), g = t === "metadata_fields", _ = lue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = hue(t, n), x = Tj(t, n), S = wj(t, n), C = gue(n), w = _ue(n), T = Cj(t, n), E = n.comparison_assets || [], D = n.preview_assets || [], O = String(n.decision || "pending") !== "pending", A = E.length > 1 ? /* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-col gap-3",children: E.map((e) => /* @__PURE__ */ (0, B.jsx)(eR, {asset: e,@@ -48539,9 +48541,9 @@ function Eve(e) {...r,assets: e})- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "inset",- icon: aae,+ icon: iae,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`}) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, B.jsx)(Sve, {@@ -48553,7 +48555,7 @@ function Eve(e) {note: f.revealNote}) : /* @__PURE__ */ (0, B.jsx)($L, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, B.jsxs)("h4", {className: `${tR} flex-wrap gap-2`,- children: [/* @__PURE__ */ (0, B.jsx)(EE, {+ children: [/* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "blue",children: x@@ -48586,7 +48588,7 @@ function Eve(e) {onKeyDownCapture: (e) => {p.current = e.shiftKey;},- children: /* @__PURE__ */ (0, B.jsx)(GM, {+ children: /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: a,"aria-label": `选择 ${b}`,onChange: (e) => o(p.current, e)@@ -48596,7 +48598,7 @@ function Eve(e) {className: "min-w-0 flex-1",children: M}),- O ? /* @__PURE__ */ (0, B.jsx)(EE, {+ O ? /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "neutral",children: n.decision@@ -48620,7 +48622,7 @@ function Eve(e) {!y && A ? A : null,w.length || t === "creator_tags" ? /* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-wrap gap-1",- children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(EE, {+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, B.jsx)(DE, {variant: "caption",color: "soft",children: e@@ -48761,7 +48763,7 @@ function kve(e) {fe(t.item_key, e.error || "服务端拒绝了这次判定");return;}- Aj(d, [t.item_key]), de([t.item_key]), s(bue(n));+ jj(d, [t.item_key]), de([t.item_key]), s(bue(n));},onError: (e, { row: t }) => fe(t.item_key, U(e))}), me = DS({@@ -48785,7 +48787,7 @@ function kve(e) {};},onSuccess: ({ status: e, done: t, failures: n }) => {- Aj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));+ jj(d, t), de(t), n.forEach(([e, t]) => fe(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));},onError: (e) => {E(U(e));@@ -48815,7 +48817,7 @@ function kve(e) {k(e), j("");let t = await o(e);M.current && (k(0), j(t));- }, ve = Cue(N.mirror, l), ye = N.genre_tags || [], be = {+ }, ve = Sue(N.mirror, l), ye = N.genre_tags || [], be = {openItem: i,openEntity: a,onReveal: _e,@@ -48823,7 +48825,7 @@ function kve(e) {revealNote: A,toast: s};- return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsxs)("div", {+ return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-5 pb-10",children: [P ? /* @__PURE__ */ (0, B.jsx)(Y, {@@ -48840,7 +48842,7 @@ function kve(e) {children: ve}) : null,/* @__PURE__ */ (0, B.jsx)(gve, { tags: ye }),- /* @__PURE__ */ (0, B.jsxs)(mk, {+ /* @__PURE__ */ (0, B.jsxs)(hk, {orientation: t ? "horizontal" : "vertical",selectedKey: d,onSelectionChange: (e) => {@@ -48854,13 +48856,13 @@ function kve(e) {children: [/* @__PURE__ */ (0, B.jsx)("h2", {id: "reviewcategories",children: "复核分类"- }), /* @__PURE__ */ (0, B.jsx)(hk, {+ }), /* @__PURE__ */ (0, B.jsx)(gk, {"aria-labelledby": "reviewcategories","data-section-items": !0,className: "flex review-split:flex-col review-split:items-stretch",children: sue.map((e) => {let t = Number(N.counts[e] || 0);- return /* @__PURE__ */ (0, B.jsxs)(gk, {+ return /* @__PURE__ */ (0, B.jsxs)(_k, {id: e,className: Dve,children: [bj[e], t ? /* @__PURE__ */ (0, B.jsx)("span", {@@ -48870,7 +48872,7 @@ function kve(e) {}, e);})})]- }), /* @__PURE__ */ (0, B.jsxs)(_k, {+ }), /* @__PURE__ */ (0, B.jsxs)(vk, {id: d,className: "flex min-w-0 flex-1 flex-col gap-5",children: [@@ -48938,8 +48940,8 @@ function kve(e) {handlers: be}, e.item_key))})]- }, e.key)) : /* @__PURE__ */ (0, B.jsx)(AE, {- icon: Zie,+ }, e.key)) : /* @__PURE__ */ (0, B.jsx)(jE, {+ icon: Xie,title: "此分类没有待复核项目",children: "可切换分类查看其他候选。"}),@@ -49044,43 +49046,43 @@ function Bve({ source: e, toast: t }) {}}let w = f || (_.error ? U(_.error) : "") || (v.error ? U(v.error) : ""), T = v.data?.results ?? [], E = n === "peach" || e.accepts_cookie || e.browser || !!w || T.length > 0;- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: e.label,onSubmit: b,aside: /* @__PURE__ */ (0, B.jsxs)("span", {className: "flex min-w-0 items-center gap-1",- children: [/* @__PURE__ */ (0, B.jsx)(uR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Vk, {+ children: [/* @__PURE__ */ (0, B.jsx)(uR, { source: e.source }), /* @__PURE__ */ (0, B.jsx)(Hk, {href: e.login,children: e.login})]}),children: [- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [/* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Mk, {label: "来源性质",children: e.nature || "公开页面"- }), /* @__PURE__ */ (0, B.jsx)(jk, {+ }), /* @__PURE__ */ (0, B.jsx)(Mk, {label: "连接方式",- children: /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "连接方式",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: Rve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: Rve.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))})})] }),- E ? /* @__PURE__ */ (0, B.jsxs)(Ik, {+ E ? /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,children: [n === "peach" ? /* @__PURE__ */ (0, B.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, B.jsx)(Nk, {+ children: /* @__PURE__ */ (0, B.jsx)(Pk, {href: "/configuration#peachProxy",size: "small",- trailingIcon: hT,+ trailingIcon: gT,children: "配置 Peach 代理"})}) : null,@@ -49100,13 +49102,13 @@ function Bve({ source: e, toast: t }) {l(e), g();},className: vA,- children: lR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {+ children: lR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {value: e,className: yA,children: t}, e))}),- c === "paste" ? /* @__PURE__ */ (0, B.jsx)(Sk, {+ c === "paste" ? /* @__PURE__ */ (0, B.jsx)(Ck, {type: "password",label: "Cookie",autoComplete: "off",@@ -49115,7 +49117,7 @@ function Bve({ source: e, toast: t }) {}) : /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "Netscape Cookie 文件(.txt)" }),+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "Netscape Cookie 文件(.txt)" }),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-3",children: [/* @__PURE__ */ (0, B.jsx)(J, {@@ -49141,14 +49143,14 @@ function Bve({ source: e, toast: t }) {]})] }) : null,- w ? /* @__PURE__ */ (0, B.jsx)(zk, { children: w }) : null,+ w ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: w }) : null,T.map((t) => /* @__PURE__ */ (0, B.jsx)(Y, {tone: t.ok ? "success" : "error",children: Lve(t, e.label)}, t.label))]}) : null,- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",onClick: x,@@ -49171,7 +49173,7 @@ function Bve({ source: e, toast: t }) {});}function Vve({ toast: e }) {- let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = VM({+ let [t, n] = (0, R.useState)(""), { running: r, outcome: i, start: a } = HM({queryKey: iR,queryFn: ({ signal: e }) => sR(e),start: () => G(nR, { code: t }),@@ -49181,15 +49183,15 @@ function Vve({ toast: e }) {}), o = (e) => {e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();}, s = a.error ? U(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";- return /* @__PURE__ */ (0, B.jsx)(Pk, {+ return /* @__PURE__ */ (0, B.jsx)(Fk, {title: "高清封面",onSubmit: o,- children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ck, {"aria-label": "馆藏番号",isRequired: !0,isDisabled: r,@@ -49204,7 +49206,7 @@ function Vve({ toast: e }) {children: "抓取封面"})]}),- r ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在抓取封面" }) : null,+ r ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在抓取封面" }) : null,s ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: s@@ -49217,7 +49219,7 @@ function Vve({ toast: e }) {});}function Hve({ toast: e }) {- let { query: t, running: n, outcome: r, start: i } = VM({+ let { query: t, running: n, outcome: r, start: i } = HM({queryKey: aR,queryFn: ({ signal: e }) => cR(e),start: () => G(Fve, {}),@@ -49230,44 +49232,44 @@ function Hve({ toast: e }) {t.status === "complete" && e(t.result || "amane 桥已重建");}}), a = DS({ mutationFn: () => G(Pve, {}) }), o = t.data;- if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Pk, {+ if (!o) return t.error ? /* @__PURE__ */ (0, B.jsx)(Fk, {title: "amane",- children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: U(t.error)}) })}) : null;let s = n || i.isPending || a.isPending, c = i.error ? U(i.error) : a.error ? U(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "amane",- aside: /* @__PURE__ */ (0, B.jsx)(Vk, {+ aside: /* @__PURE__ */ (0, B.jsx)(Hk, {href: o.repository,leadingIcon: zve,children: o.repository}),children: [- /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "已安装版本",children: o.installed_version || "未安装"}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "上游最新版本",children: a.data?.latest ?? "尚未检查"}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "运行环境",children: o.installed ? "已安装" : "未安装"}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "内置站点",children: o.sites.map((e) => e.label).join("、")})] }),- /* @__PURE__ */ (0, B.jsxs)(Ik, {+ /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,children: [- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["已安装版本:",o.installed_version || "未安装","。amane(",@@ -49276,7 +49278,7 @@ function Hve({ toast: e }) {o.version," 版本,不随上游自动升级。"] }),- n ? /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在重建运行环境" }) : null,+ n ? /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在重建运行环境" }) : null,c ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: c@@ -49287,7 +49289,7 @@ function Hve({ toast: e }) {}) : null]}),- /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [/* @__PURE__ */ (0, B.jsx)(J, {variant: "secondary",onClick: () => {s || a.mutate();@@ -49309,7 +49311,7 @@ function Uve({ toast: e }) {queryKey: rR,queryFn: ({ signal: e }) => oR(e)}), n = t.data;- return n ? /* @__PURE__ */ (0, B.jsxs)(ME, { children: [+ return n ? /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "高清图片可能要经代理才能下载,先检查连接。"@@ -49320,7 +49322,7 @@ function Uve({ toast: e }) {toast: e}, t.source)),/* @__PURE__ */ (0, B.jsx)(Hve, { toast: e })- ] }) : /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ ] }) : /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "采集来源读取失败",children: t.error ? U(t.error) : "读取采集来源失败"@@ -49630,7 +49632,7 @@ function Xve({ tabs: e, kind: t, onPick: n, wire: r }) {"aria-selected": t === e,onMouseDown: (e) => e.preventDefault(),onClick: () => n(e),- children: [r, i ? /* @__PURE__ */ (0, B.jsx)(DL, { value: i }) : null]+ children: [r, i ? /* @__PURE__ */ (0, B.jsx)(OL, { value: i }) : null]}, e || "all");return /* @__PURE__ */ (0, B.jsxs)("div", {ref: i,@@ -49785,11 +49787,11 @@ var $ve = "JavDB 或 MISSAV 无法访问时,可填写能访问的镜像域名//#endregion//#region src/react/settings/entry-links-settings.tsxfunction tye({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e.sites), i = FE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+ let [n, r] = (0, R.useState)(e.sites), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t} : n));- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "外部入口",onSubmit: (e) => {e.preventDefault();@@ -49798,9 +49800,9 @@ function tye({ initial: e, receipt: t }) {r(e.sites), t("已保存配置");});},- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: $ve }),- n.map((e) => /* @__PURE__ */ (0, B.jsx)(Sk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsx)(zk, { children: $ve }),+ n.map((e) => /* @__PURE__ */ (0, B.jsx)(Ck, {id: `entry-link-${e.key}`,label: `${e.label} 地址`,autoComplete: "off",@@ -49811,8 +49813,8 @@ function tye({ initial: e, receipt: t }) {validationBehavior: "aria",hint: eye}, e.key)),- i.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",...X(i.busy === "save"),children: "保存配置"@@ -49834,8 +49836,8 @@ function nye({ data: e, receipt: t }) {});}function rye({ startup: e, receipt: t }) {- let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = FE(), l = e.available && !e.desktop_message;- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ let [n, r] = (0, R.useState)(e.enabled), [i, a] = (0, R.useState)(e.silent), [o, s] = (0, R.useState)(e.desktop), c = IE(), l = e.available && !e.desktop_message;+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "开机自启",onSubmit: (r) => {r.preventDefault(), e.available && c.run("save", (e) => G("/api/configuration/startup", {@@ -49845,30 +49847,30 @@ function rye({ startup: e, receipt: t }) {}, "POST", e), () => t("已保存配置"));},children: [- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "开机后启动 Peach",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "开机后启动 Peach",isSelected: n,isDisabled: !e.available,onChange: r})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "静默启动",description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "静默启动",isSelected: i,isDisabled: !e.available || !n,onChange: a})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "在桌面创建快捷方式",description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "在桌面创建快捷方式",isSelected: o,isDisabled: !l,@@ -49876,11 +49878,11 @@ function rye({ startup: e, receipt: t }) {})})] }),- e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Ik, {+ e.message || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,- children: [e.message ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: c.error }) : null]+ children: [e.message ? /* @__PURE__ */ (0, B.jsx)(zk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",disabled: !e.available,...X(c.busy === "save"),@@ -49907,7 +49909,7 @@ function aye({ initial: e, initialJob: t }) {let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, R.useState)(""), c = FE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = CR.has(i.state);+ }), [o, s] = (0, R.useState)(""), c = IE(), l = (0, R.useRef)(!1), u = (0, R.useRef)(!0), d = CR.has(i.state);(0, R.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -49953,57 +49955,57 @@ function aye({ initial: e, initialJob: t }) {state: "error"}), c.setError(U(t));}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "检查更新",children: [- /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "当前版本",children: n.current_version}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "安装方式",children: n.installation}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "更新通道",children: n.channel}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "最新版本",children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")})] }),- /* @__PURE__ */ (0, B.jsxs)(Ik, {+ /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,children: [- n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,+ n.checked_at ? /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,n.state === "available" && !g ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "info",title: "有可用更新",children: n.message- }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(Rk, {+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || n.message }) : /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: n.message}),- i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.message }) : null,+ i.state === "error" ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.message }) : null,i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, B.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(PE, {+ /* @__PURE__ */ (0, B.jsx)(FE, {label: "更新准备进度",value: i.progress,stops: iye}),- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: _ })+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: _ })]}) : null]}),- /* @__PURE__ */ (0, B.jsxs)(Lk, {- status: /* @__PURE__ */ (0, B.jsx)(Vk, {+ /* @__PURE__ */ (0, B.jsxs)(Rk, {+ status: /* @__PURE__ */ (0, B.jsx)(Hk, {href: n.release_url,children: "查看发布页"}),@@ -50048,9 +50050,9 @@ function sye({ data: e, receipt: t, reopenTutorial: n }) {initialJob: e.update_job}) : null,/* @__PURE__ */ (0, B.jsx)(uye, { facts: e.facts }),- /* @__PURE__ */ (0, B.jsx)(Pk, {+ /* @__PURE__ */ (0, B.jsx)(Fk, {title: "系统诊断",- children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Nk, {+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(Pk, {href: "/diagnostics",children: "打开系统诊断"}) }) })@@ -50067,10 +50069,10 @@ function sye({ data: e, receipt: t, reopenTutorial: n }) {});}function cye({ receipt: e, reopenTutorial: t }) {- let n = FE();- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ let n = IE();+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "安装教程",- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Rk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error }) : null] }), /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),...X(n.busy === "reopen"),children: "重新打开教程"@@ -50078,57 +50080,57 @@ function cye({ receipt: e, reopenTutorial: t }) {});}function lye({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = FE(e.error), s = (r) => {+ let [n, r] = (0, R.useState)(e.mode), [i, a] = (0, R.useState)(e.interval_hours), o = IE(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => G("/api/configuration/automatic-updates", {mode: n,interval_hours: i}, "POST", e), () => t("已保存配置"));}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "自动更新",onSubmit: s,children: [- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "自动检查新版本",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "自动检查新版本",isSelected: n !== "off",isDisabled: !e.available,onChange: (e) => r(e ? "check" : "off")})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "自动下载更新",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "自动下载更新",isSelected: n === "download",isDisabled: !e.available || !e.download_available || n === "off",onChange: (e) => r(e ? "download" : "check")})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "检查频率",description: c,- children: /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "检查频率",selectedKey: String(i),isDisabled: !e.available,onSelectionChange: (e) => {e !== null && a(Number(e));},- children: oye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: oye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))})})] }),- o.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ o.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: o.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o.error })}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",disabled: !e.available,...X(o.busy === "save"),@@ -50138,11 +50140,11 @@ function lye({ initial: e, receipt: t }) {});}function uye({ facts: e }) {- return /* @__PURE__ */ (0, B.jsx)(Pk, {+ return /* @__PURE__ */ (0, B.jsx)(Fk, {title: "运行信息",- children: /* @__PURE__ */ (0, B.jsx)(Hk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Uk, {+ children: /* @__PURE__ */ (0, B.jsx)(Uk, { children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)(Wk, {term: e.term,- children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Vk, {+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, B.jsx)(Hk, {href: e.download_url,children: e.download_label}) : null]@@ -50163,26 +50165,26 @@ function dye({ uninstall: e, receipt: t }) {a(e.message);}}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {id: "uninstallPeach",title: "卸载 Peach",- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- e.available ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,- /* @__PURE__ */ (0, B.jsx)(GM, {+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ e.available ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: n,isDisabled: !e.full_available || !!i,onChange: r,children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"}),- /* @__PURE__ */ (0, B.jsx)(Wk, {+ /* @__PURE__ */ (0, B.jsx)(Gk, {summary: "数据目录",- children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(IM, {+ children: c.map((e) => /* @__PURE__ */ (0, B.jsx)(LM, {path: e,className: "text-body-2-regular text-text-secondary",onRevealed: t}, e))})- ] }), /* @__PURE__ */ (0, B.jsx)(Lk, {+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {status: s ? /* @__PURE__ */ (0, B.jsx)("p", {role: i ? "status" : void 0,children: s@@ -50225,13 +50227,13 @@ var fye = 8e3, pye = [function hye() {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "@container flex flex-col gap-3",- children: [/* @__PURE__ */ (0, B.jsxs)(Rk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Vk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(zk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, B.jsx)(Hk, {href: "https://www.clouddrive2.com/help.html",children: "挂载帮助"- })] }), /* @__PURE__ */ (0, B.jsxs)(Wk, {+ })] }), /* @__PURE__ */ (0, B.jsxs)(Gk, {summary: "CloudDrive 缓存建议",children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "按缓存所在硬盘和可用内存选择起步值,再根据播放表现调整。" }),/* @__PURE__ */ (0, B.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",@@ -50263,9 +50265,9 @@ function hye() {/* @__PURE__ */ (0, B.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })]}),- /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [+ /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["三处缓存的分工、往上调的方法和这些起步值的来源在",- /* @__PURE__ */ (0, B.jsx)(Vk, {+ /* @__PURE__ */ (0, B.jsx)(Hk, {href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",children: "CloudDrive 配置与调优"}),@@ -50294,7 +50296,7 @@ function bye({ initial: e, receipt: t }) {})] });}function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {- let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(OR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = FE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({+ let [i, a] = (0, R.useState)(e.config), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(String(e.config.wait_hours)), [u, d] = (0, R.useState)(null), [f, p] = (0, R.useState)(""), [m, h] = (0, R.useState)(OR), [g, _] = (0, R.useState)(""), [v, y] = (0, R.useState)(!1), b = IE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({...i,targets: {...i.targets,@@ -50324,7 +50326,7 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {root: !e.config.pikpak_root};b.run("auto", (e) => W(TR, e), (e) => w(e, t), (e) => _(U(e)));- }, []), /* @__PURE__ */ (0, B.jsxs)(Pk, {+ }, []), /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "云下载",onSubmit: (e) => {if (e.preventDefault(), C) {@@ -50347,9 +50349,9 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {}, (e) => _(U(e)));},children: [- /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "把磁力交给 115 或 PikPak 离线下载,文件落在已挂载的网盘目录,再由推送发现登记入库,不经过这台电脑。 115 每个任务扣一条离线配额(年费会员每月 1500 条、月费 200 条),被判违规的资源不重试。" }),+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "CloudDrive2 地址",placeholder: "留空自动探测本机 19798 / 29798",autoComplete: "off",@@ -50361,7 +50363,7 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {clouddrive_address: e})}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "CloudDrive2 API 令牌",type: "password",autoComplete: "off",@@ -50372,7 +50374,7 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: s}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "115 目标目录",placeholder: "留空时按推送发现自动填写",autoComplete: "off",@@ -50384,7 +50386,7 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: (e) => S("115", e)}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "PikPak 目标目录",placeholder: "以 / 开头的网盘路径",autoComplete: "off",@@ -50396,7 +50398,7 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "PikPak 根目录对应的媒体文件夹",selectedKey: i.pikpak_root || null,isDisabled: !e.available,@@ -50405,13 +50407,13 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {...i,pikpak_root: e === null ? "" : String(e)}),- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: e}, e))- }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]+ }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "等待上限(小时)",type: "number",inputMode: "numeric",@@ -50422,9 +50424,9 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {onChange: l})] }),- b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ b.busy === "auto" ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(jE, { label: "正在检查 CloudDrive2" })+ children: /* @__PURE__ */ (0, B.jsx)(ME, { label: "正在检查 CloudDrive2" })}) : null,u ? /* @__PURE__ */ (0, B.jsx)(Sye, {report: u,@@ -50450,11 +50452,11 @@ function xye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {} : void 0,creating: b.busy === "folder"}) : null,- g || b.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ g || b.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: g || b.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: g || b.error })}) : null,- /* @__PURE__ */ (0, B.jsxs)(Lk, {+ /* @__PURE__ */ (0, B.jsxs)(Rk, {status: e.available ? void 0 : "云下载只在账本写入端可用。",children: [/* @__PURE__ */ (0, B.jsx)(J, {onClick: () => {@@ -50491,18 +50493,18 @@ var OR = {};function Sye({ report: e, detected: t, suggested: n, create: r, creating: i }) {let a = n.target;- return /* @__PURE__ */ (0, B.jsxs)(Ik, {+ return /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,- children: [/* @__PURE__ */ (0, B.jsxs)(Hk, { children: [- t ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ children: [/* @__PURE__ */ (0, B.jsxs)(Uk, { children: [+ t ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "CloudDrive2 地址",children: `探测到 ${t},保存配置后生效`}) : null,- a?.exists ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ a?.exists ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "115 目标目录",children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`}) : null,- a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Uk, {+ a && !a.exists ? /* @__PURE__ */ (0, B.jsxs)(Wk, {term: "115 目标目录",children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, B.jsx)(J, {size: "small",@@ -50511,27 +50513,27 @@ function Sye({ report: e, detected: t, suggested: n, create: r, creating: i }) {children: "新建这个目录"}) : null]}) : null,- n.root ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ n.root ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "PikPak 根目录",children: `按推送发现填入 ${n.root},保存配置后生效`}) : null,- e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ e.permissions.length ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "离线权限",children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"}) : null,- e.folder ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ e.folder ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "目标目录",children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`}) : null,- e.quota ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ e.quota ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "115 离线配额",children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`}) : null- ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(zk, { children: e }, e))]+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, B.jsx)(Bk, { children: e }, e))]});}function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {- let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = FE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";+ let [a, o] = (0, R.useState)(""), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(""), h = IE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";(0, R.useEffect)(() => {if (!v) return;let e = new AbortController(), r, i = async () => {@@ -50575,7 +50577,7 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {t(e), f(""), n("已登出 PikPak");}, (e) => f(U(e)));}, C = /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "账号",placeholder: "邮箱或手机号",autoComplete: "username",@@ -50584,7 +50586,7 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: i}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "密码",type: "password",autoComplete: "current-password",@@ -50593,7 +50595,7 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: o}),- /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: s,isDisabled: !e.available,onChange: c,@@ -50604,7 +50606,7 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {title: "需要人机验证",extra: /* @__PURE__ */ (0, B.jsx)("div", {className: "pt-2",- children: /* @__PURE__ */ (0, B.jsx)(Vk, {+ children: /* @__PURE__ */ (0, B.jsx)(Hk, {href: l,children: "打开 PikPak 验证页"})@@ -50617,32 +50619,32 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {...X(h.busy === "login"),children: "登录"}), T = _.state === "timeout" || _.state === "failed";- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "PikPak 账号",onSubmit: x,children: [- g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [/* @__PURE__ */ (0, B.jsx)(Uk, {+ g.logged_in ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [/* @__PURE__ */ (0, B.jsx)(Wk, {term: "账号",children: g.username || "已登录"- }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ }), g.method === "browser" ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "登录方式",children: "浏览器登录,由 Peach 续期"- }) : /* @__PURE__ */ (0, B.jsx)(Uk, {+ }) : /* @__PURE__ */ (0, B.jsx)(Wk, {term: "密码",children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"- })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),- p ? T ? /* @__PURE__ */ (0, B.jsx)(zk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(Rk, {+ })] }) : _.available ? /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "「用浏览器登录」会打开一个 Peach 专用的浏览器窗口,在里面登录 PikPak。Peach 读到登录状态后关掉窗口,之后由 Peach 续期;续期失败时回到这里重新登录。" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。" }),+ p ? T ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: p }) : /* @__PURE__ */ (0, B.jsx)(zk, {role: "status",children: p}) : null,- /* @__PURE__ */ (0, B.jsx)(Wk, {+ /* @__PURE__ */ (0, B.jsx)(Gk, {summary: "用账号密码登录",children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),C,/* @__PURE__ */ (0, B.jsx)("div", {className: "flex justify-end",@@ -50651,13 +50653,13 @@ function Cye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {]})})- ] }) : /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [/* @__PURE__ */ (0, B.jsx)(Rk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),- d || h.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ ] }) : /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsx)(zk, { children: "PikPak 没有开放接口,Peach 照 PikPak 网页端的协议直连,接口变了就会报错,那时可以先复制磁力手动添加。账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),+ d || h.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: d || h.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: d || h.error })}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, {- status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(jE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,+ /* @__PURE__ */ (0, B.jsx)(Rk, {+ status: !g.logged_in && v ? /* @__PURE__ */ (0, B.jsx)(ME, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,children: g.logged_in ? /* @__PURE__ */ (0, B.jsx)(J, {onClick: S,disabled: !e.available,@@ -50749,7 +50751,7 @@ function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {className: "min-w-0 flex-1","aria-label": e,placeholder: "本机文件夹路径",@@ -50760,14 +50762,14 @@ function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,isInvalid: !!r,hint: r || void 0}),- /* @__PURE__ */ (0, B.jsx)(FM, {+ /* @__PURE__ */ (0, B.jsx)(IM, {icon: wye,"aria-label": "选择文件夹",onClick: o,...X(a)}),- s ? /* @__PURE__ */ (0, B.jsx)(FM, {- icon: yT,+ s ? /* @__PURE__ */ (0, B.jsx)(IM, {+ icon: bT,"aria-label": "移除这个文件夹",onClick: s}) : null@@ -50781,22 +50783,22 @@ function Dye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,function Oye({ index: e, value: t, onChange: n, options: r = kR }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体来源" }), /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": `媒体来源 ${e + 1}`,selectedKey: t,onSelectionChange: (e) => {e !== null && n(String(e));},- children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(Ok, {+ children: r.map(([e, t]) => /* @__PURE__ */ (0, B.jsxs)(kk, {id: e,textValue: t,- children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: AR(e) }), t]+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e) }), t]}, e))})]});}function kye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {- return /* @__PURE__ */ (0, B.jsx)(Sk, {+ return /* @__PURE__ */ (0, B.jsx)(Ck, {label: n,placeholder: r,value: e,@@ -50811,36 +50813,36 @@ function Aye({ receipt: e }) {queryKey: ["indexers"],queryFn: ({ signal: e }) => W(jR, e)});- return t.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(jye, {+ return t.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: U(t.error) }) : t.data ? /* @__PURE__ */ (0, B.jsx)(jye, {initial: t.data,receipt: e}) : null;}function jye({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e.indexers), i = FE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+ let [n, r] = (0, R.useState)(e.indexers), i = IE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "资源索引器",onSubmit: (e) => {e.preventDefault(), i.run("save", (e) => G(jR, { indexers: n }, "POST", e), (e) => {r(e.indexers), t("已保存索引器");});},- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "用户自配索引器。填写 Prowlarr 或 Jackett 提供的 Torznab API 地址,在活动页「云下载」中按番号搜索。" }),n.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: `索引器 ${t + 1} 名称`,value: e.name,maxLength: 80,isDisabled: !!i.busy,onChange: (t) => a(e.key, { name: t })}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: `索引器 ${t + 1} API 地址`,value: e.url,type: "url",@@ -50849,7 +50851,7 @@ function jye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { url: t })}),- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: `索引器 ${t + 1} API key`,type: "password",autoComplete: "new-password",@@ -50858,13 +50860,13 @@ function jye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { api_key: t })}),- /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: e.enabled,isDisabled: !!i.busy,onChange: (t) => a(e.key, { enabled: t }),children: "启用 · 用户自配索引器"}),- e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(GM, {+ e.api_key_set ? /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: !!e.clear_api_key,isDisabled: !!i.busy,onChange: (t) => a(e.key, { clear_api_key: t }),@@ -50878,8 +50880,8 @@ function jye({ initial: e, receipt: t }) {}) })]}, e.key)),- i.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, B.jsxs)(Lk, {+ i.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {status: "保存后生效;关闭或移除索引器会停止向它查询。",children: [/* @__PURE__ */ (0, B.jsx)(J, {type: "button",@@ -50966,34 +50968,34 @@ function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, B.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: e || l }), ((e) => e && MR.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l }), ((e) => e && MR.find(([t]) => t === e)?.[1] || u)(e)]})- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(SO, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom start",offset: 4,- className: Ck,- children: /* @__PURE__ */ (0, B.jsxs)(MO, {+ className: wk,+ children: /* @__PURE__ */ (0, B.jsxs)(NO, {"aria-label": `${t}候选`,className: "flex w-72 flex-col gap-3 outline-none",children: [- /* @__PURE__ */ (0, B.jsx)(nD, {+ /* @__PURE__ */ (0, B.jsx)(rD, {slot: "title",className: "px-1 text-body-medium text-text-primary",children: "选择媒体库图标"}),- /* @__PURE__ */ (0, B.jsx)(zO, {+ /* @__PURE__ */ (0, B.jsx)(BO, {"aria-label": "候选图标",value: s || NR,onChange: (e) => c(e === NR ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: MR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {+ children: MR.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {value: e || NR,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",- children: /* @__PURE__ */ (0, B.jsx)(Gk, { mark: e || l })+ children: /* @__PURE__ */ (0, B.jsx)(Kk, { mark: e || l })}, e || NR))}),/* @__PURE__ */ (0, B.jsxs)("div", {@@ -51018,13 +51020,13 @@ function Nye({ value: e, label: t, kind: n = "local", onChange: r }) {//#region src/react/settings/push-discovery-settings.tsxvar Pye = "/api/configuration/push-discovery", Fye = "/api/configuration/push-discovery/secret";function Iye({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = FE(), l = NM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.prefixes), [o, s] = (0, R.useState)(""), c = IE(), l = PM(), u = n.media_roots, [d, f] = (0, R.useState)(e), p = (e, n) => {r(e), f(e), a(e.prefixes), s(""), t(n);}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "推送发现",onSubmit: (e) => {e.preventDefault();@@ -51037,11 +51039,11 @@ function Iye({ initial: e, receipt: t }) {c.run("save", (e) => G(Pye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(U(e)));},children: [- /* @__PURE__ */ (0, B.jsxs)(Fk, { children: [- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "新文件落地就入库",description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "新文件落地就入库",isSelected: n.enabled,isDisabled: !n.available,@@ -51051,10 +51053,10 @@ function Iye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "监视本机文件夹",description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "监视本机文件夹",isSelected: n.watch_local,isDisabled: !n.available || !n.enabled,@@ -51064,10 +51066,10 @@ function Iye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Mk, {label: "接收 CloudDrive2 通知",description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",- children: /* @__PURE__ */ (0, B.jsx)(aL, {+ children: /* @__PURE__ */ (0, B.jsx)(oL, {"aria-label": "接收 CloudDrive2 通知",isSelected: n.cloud,isDisabled: !n.available || !n.enabled,@@ -51078,30 +51080,30 @@ function Iye({ initial: e, receipt: t }) {})})] }),- d.enabled ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ d.enabled ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Uk, {+ children: /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [d.watch_local ? /* @__PURE__ */ (0, B.jsx)(Wk, {term: "本机文件夹监视",children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"- }) : null, /* @__PURE__ */ (0, B.jsx)(Uk, {+ }) : null, /* @__PURE__ */ (0, B.jsx)(Wk, {term: "已入库",children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`})] })}) : null,- d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "CloudDrive2 配置内容" }),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "CloudDrive2 配置内容" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "Webhook 需要 CloudDrive2 会员;非会员的配置即使显示有效,也不会发送通知。 在「设置 → Webhooks」中添加配置,粘贴下方内容并保存。地址和密钥已填好;更换密钥后需重新复制。 Windows 桌面版若因换行问题显示「无效」,将配置保存为 .toml 文件,放入 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),d.config_toml ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", { children: /* @__PURE__ */ (0, B.jsx)(J, {size: "small",onClick: () => {navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));},children: "复制配置"- }) }), /* @__PURE__ */ (0, B.jsx)(Wk, {+ }) }), /* @__PURE__ */ (0, B.jsx)(Gk, {summary: "查看这段配置",children: /* @__PURE__ */ (0, B.jsx)("div", {className: "relative",@@ -51112,17 +51114,17 @@ function Iye({ initial: e, receipt: t }) {children: d.config_toml})})- })] }) : /* @__PURE__ */ (0, B.jsx)(Rk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })+ })] }) : /* @__PURE__ */ (0, B.jsx)(zk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })]})}) : null,- n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ n.enabled && n.cloud ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,children: /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "云端路径前缀" }),- /* @__PURE__ */ (0, B.jsx)(Rk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "云端路径前缀" }),+ /* @__PURE__ */ (0, B.jsx)(zk, { children: "左侧填写 CloudDrive2 中的目录前缀,右侧选择对应的媒体文件夹。 Peach 按此对应关系定位通知中的文件。" }),/* @__PURE__ */ (0, B.jsx)("div", {role: "group","aria-label": "云端路径前缀",@@ -51130,7 +51132,7 @@ function Iye({ initial: e, receipt: t }) {children: i.map((e, t) => /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {className: "min-w-0 flex-1","aria-label": `云端路径前缀 ${t + 1}`,placeholder: "/115",@@ -51139,19 +51141,19 @@ function Iye({ initial: e, receipt: t }) {value: e.prefix,onChange: (e) => m(t, { prefix: e })}),- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": `前缀 ${t + 1} 对应的媒体根`,selectedKey: e.root,onSelectionChange: (e) => {e !== null && m(t, { root: String(e) });},- children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: u.map((e) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: e}, e))}),- /* @__PURE__ */ (0, B.jsx)(FM, {- icon: yT,+ /* @__PURE__ */ (0, B.jsx)(IM, {+ icon: bT,"aria-label": "移除这一条",onClick: () => a((e) => e.filter((e, n) => n !== t))})@@ -51169,11 +51171,11 @@ function Iye({ initial: e, receipt: t }) {]})}) : null,- o || c.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ o || c.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: o || c.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: o || c.error })}) : null,- /* @__PURE__ */ (0, B.jsxs)(Lk, {+ /* @__PURE__ */ (0, B.jsxs)(Rk, {status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, B.jsx)(J, {onClick: () => {@@ -51243,7 +51245,7 @@ function Hye({ data: e, receipt: t }) {blank: () => PR(),pickFolder: Rye,describe: U- }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = FE();+ }), [d, f] = (0, R.useState)(String(e.port)), [p, m] = (0, R.useState)(!1), [h, g] = (0, R.useState)(""), [_, v] = (0, R.useState)(""), [y, b] = (0, R.useState)(null), x = (0, R.useRef)(e.revision), S = IE();(0, R.useEffect)(() => {if (!y) return;let e = setTimeout(() => location.assign(y.url), fye);@@ -51263,14 +51265,14 @@ function Hye({ data: e, receipt: t }) {s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(U(e));});};- if (y) return /* @__PURE__ */ (0, B.jsx)(Pk, {+ if (y) return /* @__PURE__ */ (0, B.jsx)(Fk, {title: "这台电脑",- children: /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {+ children: /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsxs)(Y, {tone: "success",title: "配置已保存",children: ["Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ (0, B.jsx)(Nk, {+ /* @__PURE__ */ (0, B.jsx)(Pk, {href: y.url,size: "small",children: "进入馆藏"@@ -51280,14 +51282,14 @@ function Hye({ data: e, receipt: t }) {}) })});let w = n.some((e) => Tye(e.location)), T = w ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "这台电脑",onSubmit: C,- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体文件夹" }),/* @__PURE__ */ (0, B.jsx)("div", {role: "group","aria-label": "媒体文件夹",@@ -51302,7 +51304,7 @@ function Hye({ data: e, receipt: t }) {onPick: () => void l(i),onRemove: n.length > 1 ? () => a(i) : void 0,children: [- /* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(Ck, {label: "媒体库名称",maxLength: 80,placeholder: "同名文件夹归入同一个媒体库",@@ -51311,7 +51313,7 @@ function Hye({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, B.jsx)(Bk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(Nye, {+ children: [/* @__PURE__ */ (0, B.jsx)(Vk, { children: "媒体库图标" }), /* @__PURE__ */ (0, B.jsx)(Nye, {label: `媒体库图标 ${i + 1}`,value: t.library_icon,kind: t.location,@@ -51338,17 +51340,17 @@ function Hye({ data: e, receipt: t }) {]}),w ? /* @__PURE__ */ (0, B.jsx)(hye, {}) : null,- T.map((e) => /* @__PURE__ */ (0, B.jsxs)(Rk, { children: [+ T.map((e) => /* @__PURE__ */ (0, B.jsxs)(zk, { children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ (0, B.jsxs)(Vk, {+ /* @__PURE__ */ (0, B.jsxs)(Hk, {href: e.download_url,children: ["下载 ", e.name]})] }, e.name)),- e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,- e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(Sk, {+ e.windows === !1 ? /* @__PURE__ */ (0, B.jsx)(zk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, B.jsx)(Ck, {id: "configPort",label: "本机访问端口",inputMode: "numeric",@@ -51358,7 +51360,7 @@ function Hye({ data: e, receipt: t }) {isInvalid: !!h,hint: h || "浏览器地址里冒号后面的数字,一般不用改。"}),- /* @__PURE__ */ (0, B.jsx)(GM, {+ /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: p,onChange: m,children: "保存后扫描并补全资料"@@ -51368,7 +51370,7 @@ function Hye({ data: e, receipt: t }) {title: "没有保存",children: _}) : null- ] }), /* @__PURE__ */ (0, B.jsx)(Lk, {+ ] }), /* @__PURE__ */ (0, B.jsx)(Rk, {status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",@@ -51403,19 +51405,19 @@ function Uye({ online: e }) {});}function Wye({ data: e }) {- let t = e.media_sources, n = FE();- return t ? /* @__PURE__ */ (0, B.jsxs)(Pk, {+ let t = e.media_sources, n = IE();+ return t ? /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "挂载状态",children: [- /* @__PURE__ */ (0, B.jsx)(Hk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Uk, {- term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Gk, { mark: AR(e.location) }), Lye(e.location)] }),+ /* @__PURE__ */ (0, B.jsx)(Uk, { children: t.map((e, t) => /* @__PURE__ */ (0, B.jsxs)(Wk, {+ term: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Kk, { mark: AR(e.location) }), Lye(e.location)] }),children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, B.jsx)(Uye, { online: e.online })]}, t)) }),- n.error ? /* @__PURE__ */ (0, B.jsx)(Ik, {+ n.error ? /* @__PURE__ */ (0, B.jsx)(Lk, {divided: !0,- children: /* @__PURE__ */ (0, B.jsx)(zk, { children: n.error })+ children: /* @__PURE__ */ (0, B.jsx)(Bk, { children: n.error })}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {onClick: () => void n.run("refresh", (e) => xR(e), (e) => p.setQueryData(bR, e)),...X(n.busy === "refresh"),children: "刷新挂载状态"@@ -51426,7 +51428,7 @@ function Wye({ data: e }) {//#endregion//#region src/react/settings/password-pair.tsxfunction Gye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Sk, {+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {id: "access-password",type: "password",label: e,@@ -51439,7 +51441,7 @@ function Gye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmavalidationBehavior: "aria",isInvalid: !a && !!o,hint: a ? s : o || s- }), /* @__PURE__ */ (0, B.jsx)(Sk, {+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {id: "access-confirm",type: "password",label: "确认访问密码",@@ -51462,7 +51464,7 @@ var Kye = {password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};function qye({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = FE(), g = (e) => {+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(""), [o, s] = (0, R.useState)(""), [c, l] = (0, R.useState)(""), [u, d] = (0, R.useState)(!1), [f, p] = (0, R.useState)({}), m = (0, R.useRef)(null), h = IE(), g = (e) => {e.preventDefault();let f = {};if (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) {@@ -51483,24 +51485,24 @@ function qye({ initial: e, receipt: t }) {n ? p(n) : h.setError(U(e));});}, _ = Kye[n.mode], v = n.mode !== "locked";- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "访问密码",onSubmit: g,children: [/* @__PURE__ */ (0, B.jsx)("div", {ref: m,- children: /* @__PURE__ */ (0, B.jsxs)(Ik, { children: [- _ ? /* @__PURE__ */ (0, B.jsx)(Rk, { children: _ }) : null,+ children: /* @__PURE__ */ (0, B.jsxs)(Lk, { children: [+ _ ? /* @__PURE__ */ (0, B.jsx)(zk, { children: _ }) : null,n.mode === "open" ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "warning",title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(GM, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, B.jsx)(KM, {isSelected: u,onChange: d,children: "关闭访问密码"}) : null,- n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(Sk, {+ n.mode === "password" ? /* @__PURE__ */ (0, B.jsx)(Ck, {id: "access-current",type: "password",label: "当前访问密码",@@ -51529,9 +51531,9 @@ function qye({ initial: e, receipt: t }) {title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- h.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: h.error }) : null+ h.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: h.error }) : null] })- }), v ? /* @__PURE__ */ (0, B.jsx)(Lk, {+ }), v ? /* @__PURE__ */ (0, B.jsx)(Rk, {status: "保存后立即生效。",children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",@@ -51548,7 +51550,7 @@ var Jye = 2e3, Yye = [["quick", "临时链接"], ["named", "命名隧道"]], Xyenamed: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"};function Zye({ revision: e, initial: t, receipt: n }) {- let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = FE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";+ let [r, i] = (0, R.useState)(t), [a, o] = (0, R.useState)(e), [s, c] = (0, R.useState)(t.mode), [l, u] = (0, R.useState)(t.hostname), [d, f] = (0, R.useState)(""), [m, h] = (0, R.useState)({}), g = IE(), _ = r.state === "starting" || r.state === "running", v = r.named_available && s === "named";(0, R.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {@@ -51574,26 +51576,26 @@ function Zye({ revision: e, initial: t, receipt: n }) {n ? h(n) : g.setError(U(e));});};- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {title: "Cloudflare 公网入口",onSubmit: (e) => {e.preventDefault(), y("save", _, () => n("已保存配置"));},- children: [/* @__PURE__ */ (0, B.jsxs)(Ik, { children: [+ children: [/* @__PURE__ */ (0, B.jsxs)(Lk, { children: [r.named_available ? /* @__PURE__ */ (0, B.jsx)(_A, {"aria-label": "公网入口的形态(二选一)",value: s,isDisabled: _,onChange: (e) => c(e),className: vA,- children: Yye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(BO, {+ children: Yye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(VO, {value: e,className: yA,children: t}, e))}) : null,- /* @__PURE__ */ (0, B.jsx)(Rk, { children: Xye[v ? "named" : "quick"] }),- v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Sk, {+ /* @__PURE__ */ (0, B.jsx)(zk, { children: Xye[v ? "named" : "quick"] }),+ v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(Ck, {id: "tunnel-hostname",label: "公开主机名",autoComplete: "off",@@ -51604,7 +51606,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {validationBehavior: "aria",isInvalid: !!m.hostname,hint: m.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"- }), /* @__PURE__ */ (0, B.jsx)(Sk, {+ }), /* @__PURE__ */ (0, B.jsx)(Ck, {id: "tunnel-token",type: "password",label: "隧道令牌",@@ -51624,7 +51626,7 @@ function Zye({ revision: e, initial: t, receipt: n }) {r.state === "running" && r.url ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "info",title: "公网地址",- children: /* @__PURE__ */ (0, B.jsx)(Vk, {+ children: /* @__PURE__ */ (0, B.jsx)(Hk, {href: r.url,children: r.url})@@ -51634,9 +51636,9 @@ function Zye({ revision: e, initial: t, receipt: n }) {title: "正在连接",children: "正在等待 cloudflared 连上 Cloudflare 边缘。"}) : null,- r.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: r.error }) : null,- g.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: g.error }) : null- ] }), /* @__PURE__ */ (0, B.jsxs)(Lk, {+ r.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: r.error }) : null,+ g.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: g.error }) : null+ ] }), /* @__PURE__ */ (0, B.jsxs)(Rk, {status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",children: [/* @__PURE__ */ (0, B.jsx)(J, {onClick: () => y("toggle", !_, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),@@ -51678,8 +51680,8 @@ function $ye({ data: e, receipt: t }) {});}function ebe({ initial: e, receipt: t }) {- let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = FE();- return /* @__PURE__ */ (0, B.jsxs)(Pk, {+ let [n, r] = (0, R.useState)(e), [i, a] = (0, R.useState)(e.mode), [o, s] = (0, R.useState)(""), c = IE();+ return /* @__PURE__ */ (0, B.jsxs)(Fk, {id: "peachProxy",title: "Peach 代理",onSubmit: (e) => {@@ -51691,25 +51693,25 @@ function ebe({ initial: e, receipt: t }) {});},children: [- /* @__PURE__ */ (0, B.jsx)(Fk, { children: /* @__PURE__ */ (0, B.jsx)(jk, {+ /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Mk, {label: "连接方式",description: "采集来源选「Peach 代理」时共用这里的连接方式。",- children: /* @__PURE__ */ (0, B.jsx)(Dk, {+ children: /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "连接方式",selectedKey: i,onSelectionChange: (e) => {e !== null && a(String(e));},- children: Qye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: Qye.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))})}) }),- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Ik, {+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, B.jsxs)(Lk, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(Sk, {+ i === "proxy" ? /* @__PURE__ */ (0, B.jsx)(Ck, {id: "peachProxyAddress",type: "password",label: "代理地址",@@ -51723,10 +51725,10 @@ function ebe({ initial: e, receipt: t }) {title: "需要选择连接方式",children: "已有来源的代理地址不同,请选择公共连接方式。"}) : null,- c.error ? /* @__PURE__ */ (0, B.jsx)(zk, { children: c.error }) : null+ c.error ? /* @__PURE__ */ (0, B.jsx)(Bk, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(J, {+ /* @__PURE__ */ (0, B.jsx)(Rk, { children: /* @__PURE__ */ (0, B.jsx)(J, {type: "submit",...X(c.busy === "save"),children: "保存配置"@@ -70793,7 +70795,7 @@ var _Ve = ["axis", "item"], vVe = J3(J3({}, U3), {}, {//#endregion//#region src/react/charts/cn.tsfunction Y3(...e) {- return CE(Sh(e));+ return wE(Sh(e));}//#endregion//#region src/react/evilcharts/registry/ui/recharts-chart.tsx@@ -72341,7 +72343,7 @@ var aHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, B.jsxs)(B.Frg6.Bar = BVe, g6.XAxis = VVe, g6.YAxis = HVe, g6.Grid = UVe, g6.Tooltip = WVe, g6.Legend = GVe, g6.Brush = l6;//#endregion//#region src/react/charts/chart-card.tsx-var v6 = `${kE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;+var v6 = `${AE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;function y6({ title: e, figure: t, note: n }) {return /* @__PURE__ */ (0, B.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",@@ -72728,7 +72730,7 @@ function L6({ children: e, className: t = "", previewCount: n = 10 }) {onClick: () => {c(!0), o((e) => !e);},- children: /* @__PURE__ */ (0, B.jsx)(mT, { "aria-hidden": !0 })+ children: /* @__PURE__ */ (0, B.jsx)(hT, { "aria-hidden": !0 })}) : null]});}@@ -73031,7 +73033,7 @@ function W6({ title: e, rows: t, unit: n = "个视频" }) {}//#endregion//#region src/react/stats/stats-page.tsx-var DHe = 10, G6 = b6[5], OHe = b6[4], kHe = `${kE()} flex flex-col gap-4`, AHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", jHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", MHe = "开始播放后,这里会显示最近的真实观看证据。", NHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", PHe = "添加媒体文件夹后,这里会显示存储空间。";+var DHe = 10, G6 = b6[5], OHe = b6[4], kHe = `${AE()} flex flex-col gap-4`, AHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", jHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", MHe = "开始播放后,这里会显示最近的真实观看证据。", NHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", PHe = "添加媒体文件夹后,这里会显示存储空间。";function K6({ term: e, value: t }) {return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",@@ -73056,7 +73058,7 @@ function q6({ term: e, value: t, total: n }) {children: [LR(t, n), "%"]})]})]- }), /* @__PURE__ */ (0, B.jsx)(PE, {+ }), /* @__PURE__ */ (0, B.jsx)(FE, {label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,value: t,max: Math.max(n, 1)@@ -73138,15 +73140,15 @@ function FHe({ data: e, configurable: t, openMediaSettings: n }) {})]})]- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: hae,+ icon: mae,title: "还没有视频",actions: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [t ? /* @__PURE__ */ (0, B.jsx)(J, {size: "small",onClick: n,children: "添加媒体文件夹"- }) : null, /* @__PURE__ */ (0, B.jsx)(OE, {+ }) : null, /* @__PURE__ */ (0, B.jsx)(kE, {variant: "secondary",href: "/follow-manage?tab=add",size: "small",@@ -73228,7 +73230,7 @@ function RHe({ volume: e }) {})]})]}),- t == null ? null : /* @__PURE__ */ (0, B.jsx)(PE, {+ t == null ? null : /* @__PURE__ */ (0, B.jsx)(FE, {label: `${e.label}空间使用率`,value: n,max: Math.max(t, 1)@@ -73250,9 +73252,9 @@ function zHe({ volumes: e, configurable: t, openMediaSettings: n }) {return e.length ? /* @__PURE__ */ (0, B.jsx)("div", {className: "flex flex-col",children: e.map((e) => /* @__PURE__ */ (0, B.jsx)(RHe, { volume: e }, `${e.kind}:${e.label}`))- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: ET,+ icon: DT,title: "还没有存储来源",actions: t ? /* @__PURE__ */ (0, B.jsx)(J, {size: "small",@@ -73288,11 +73290,11 @@ function BHe({ tags: e, tagLabel: t, onTag: n }) {]})}, e.k))- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: kT,+ icon: AT,title: "还没有内容标签",- actions: /* @__PURE__ */ (0, B.jsx)(OE, {+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {variant: "secondary",href: "/data-cleanup",size: "small",@@ -73324,7 +73326,7 @@ function VHe({ rows: e }) {})]}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "min-w-0 basis-40",- children: [/* @__PURE__ */ (0, B.jsx)(PE, {+ children: [/* @__PURE__ */ (0, B.jsx)(FE, {label: `真实观看 ${t.toFixed(0)}%`,value: t}), /* @__PURE__ */ (0, B.jsx)("small", {@@ -73334,11 +73336,11 @@ function VHe({ rows: e }) {})]}, `${e.kind}:${e.id}`);})- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: DT,+ icon: OT,title: "还没有观看记录",- actions: /* @__PURE__ */ (0, B.jsx)(OE, {+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {variant: "secondary",href: "/",size: "small",@@ -73366,7 +73368,7 @@ function HHe({ sources: e, videos: t }) {})]})]}),- /* @__PURE__ */ (0, B.jsx)(PE, {+ /* @__PURE__ */ (0, B.jsx)(FE, {label: `${e.k} 覆盖视频`,value: e.assets,max: Math.max(t, 1)@@ -73377,11 +73379,11 @@ function HHe({ sources: e, videos: t }) {})]}, e.k))- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: kT,+ icon: AT,title: "还没有标签来源",- actions: /* @__PURE__ */ (0, B.jsx)(OE, {+ actions: /* @__PURE__ */ (0, B.jsx)(kE, {variant: "secondary",href: "/data-cleanup",size: "small",@@ -73391,13 +73393,13 @@ function HHe({ sources: e, videos: t }) {});}function X6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {- return /* @__PURE__ */ (0, B.jsx)(gk, {+ return /* @__PURE__ */ (0, B.jsx)(_k, {id: e,- className: SM({+ className: CM({interactive: !0,selectable: !0}),- children: /* @__PURE__ */ (0, B.jsx)(EM, {+ children: /* @__PURE__ */ (0, B.jsx)(DM, {label: t,icon: i,accent: a,@@ -73411,29 +73413,29 @@ function UHe(e) {queryKey: FR,queryFn: ({ signal: e }) => IR(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ if (!n) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "馆藏统计读取失败",children: t.error ? U(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 = LR(n.tag_cov, n.attribution.videos);- return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [/* @__PURE__ */ (0, B.jsx)("p", {className: "text-caption-1-regular text-text-secondary",children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${ye(o)}`}),- /* @__PURE__ */ (0, B.jsxs)(mk, {+ /* @__PURE__ */ (0, B.jsxs)(hk, {defaultSelectedKey: "inventory",className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, B.jsxs)(hk, {+ /* @__PURE__ */ (0, B.jsxs)(gk, {"aria-label": "统计视图",- className: CM,+ className: wM,children: [/* @__PURE__ */ (0, B.jsx)(X6, {id: "inventory",label: "馆藏视频",- icon: ST,+ icon: CT,accent: 0,figure: a.toLocaleString(),detail: ye(o)@@ -73441,7 +73443,7 @@ function UHe(e) {/* @__PURE__ */ (0, B.jsx)(X6, {id: "viewing",label: "看过",- icon: TT,+ icon: ET,accent: 1,figure: r.played.toLocaleString(),detail: ibe(r.play_seconds)@@ -73449,7 +73451,7 @@ function UHe(e) {/* @__PURE__ */ (0, B.jsx)(X6, {id: "coverage",label: "内容标签",- icon: kT,+ icon: AT,accent: 2,figure: `${s}%`,detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`@@ -73457,21 +73459,21 @@ function UHe(e) {/* @__PURE__ */ (0, B.jsx)(X6, {id: "storage",label: "使用空间",- icon: ET,+ icon: DT,accent: 3,figure: `${i.online} 个卷`,detail: i.measured ? `已用 ${ye(i.used)}` : "容量未取得"})]}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "inventory",children: /* @__PURE__ */ (0, B.jsx)(FHe, {data: n,...e})}),- /* @__PURE__ */ (0, B.jsxs)(_k, {+ /* @__PURE__ */ (0, B.jsxs)(vk, {id: "viewing",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, B.jsx)(Y6, {@@ -73519,7 +73521,7 @@ function UHe(e) {})}), /* @__PURE__ */ (0, B.jsx)(IHe, { data: n })]}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "coverage",children: /* @__PURE__ */ (0, B.jsx)(Y6, {headline: /* @__PURE__ */ (0, B.jsx)(J6, {@@ -73530,7 +73532,7 @@ function UHe(e) {children: /* @__PURE__ */ (0, B.jsx)(LHe, { attribution: n.attribution })})}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "storage",children: /* @__PURE__ */ (0, B.jsx)(Y6, {headline: /* @__PURE__ */ (0, B.jsx)(J6, {@@ -73546,9 +73548,9 @@ function UHe(e) {})]}),- /* @__PURE__ */ (0, B.jsxs)(mk, {+ /* @__PURE__ */ (0, B.jsxs)(hk, {defaultSelectedKey: "tags",- className: `${kE({ padding: "none" })} flex flex-col`,+ className: `${AE({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "px-4 pt-3",@@ -73556,17 +73558,17 @@ function UHe(e) {"aria-label": "统计维度",className: vA,children: [- /* @__PURE__ */ (0, B.jsx)(gk, {+ /* @__PURE__ */ (0, B.jsx)(_k, {id: "tags",className: yA,children: "内容标签"}),- /* @__PURE__ */ (0, B.jsx)(gk, {+ /* @__PURE__ */ (0, B.jsx)(_k, {id: "recent",className: yA,children: "最近看过"}),- /* @__PURE__ */ (0, B.jsx)(gk, {+ /* @__PURE__ */ (0, B.jsx)(_k, {id: "sources",className: yA,children: "标签来源"@@ -73574,7 +73576,7 @@ function UHe(e) {]})}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "tags",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, B.jsx)(BHe, {@@ -73582,12 +73584,12 @@ function UHe(e) {...e})}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "recent",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, B.jsx)(VHe, { rows: n.recent })}),- /* @__PURE__ */ (0, B.jsx)(_k, {+ /* @__PURE__ */ (0, B.jsx)(vk, {id: "sources",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, B.jsx)(HHe, {@@ -74640,11 +74642,11 @@ function XUe({ flows: e }) {}//#endregion//#region src/react/taste/taste-page.tsx-var ZUe = 10, A8 = CE(wk, Tk, "text-body-2-medium"), j8 = `${kE()} flex flex-col gap-4`, M8 = "rounded-xl bg-background-primary-default p-3", QUe = "读取运行 Peach 的这台电脑上的浏览记录", $Ue = "导入或读取浏览记录后,这里会列出已采集设备。", eWe = "馆藏里暂时没有对得上浏览信号的标签。", tWe = "采集浏览记录后,这里会显示聚合后的口味证据。", nWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", rWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", iWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", aWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", oWe = "这个数据源将不再用于口味分析。原始导出文件保留。", N8 = "peach-taste-guide-dismissed";+var ZUe = 10, A8 = wE(Tk, Ek, "text-body-2-medium"), j8 = `${AE()} flex flex-col gap-4`, M8 = "rounded-xl bg-background-primary-default p-3", QUe = "读取运行 Peach 的这台电脑上的浏览记录", $Ue = "导入或读取浏览记录后,这里会列出已采集设备。", eWe = "馆藏里暂时没有对得上浏览信号的标签。", tWe = "采集浏览记录后,这里会显示聚合后的口味证据。", nWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", rWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", iWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", aWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", oWe = "这个数据源将不再用于口味分析。原始导出文件保留。", N8 = "peach-taste-guide-dismissed";function P8({ icon: e, term: t, figure: n, detail: r, accent: i }) {return /* @__PURE__ */ (0, B.jsx)("div", {- className: SM(),- children: /* @__PURE__ */ (0, B.jsx)(EM, {+ className: CM(),+ children: /* @__PURE__ */ (0, B.jsx)(DM, {label: t,icon: e,accent: i,@@ -74669,14 +74671,14 @@ function F8({ name: e, domain: t }) {}function sWe({ html: e }) {return /* @__PURE__ */ (0, B.jsx)("span", {- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${oL}`,+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${sL}`,dangerouslySetInnerHTML: { __html: e }});}function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {- if (!e.length) return /* @__PURE__ */ (0, B.jsx)(AE, {+ if (!e.length) return /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: MT,+ icon: NT,title: "暂无足够证据",children: r});@@ -74725,7 +74727,7 @@ function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {children: bUe(e)})]}),- o ? /* @__PURE__ */ (0, B.jsx)(gT, {+ o ? /* @__PURE__ */ (0, B.jsx)(_T, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"}) : null@@ -74746,20 +74748,20 @@ function cWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {});}function I8({ label: e, panels: t, onSignal: n }) {- return /* @__PURE__ */ (0, B.jsxs)(mk, {- className: `${kE({ padding: "none" })} flex flex-col`,+ return /* @__PURE__ */ (0, B.jsxs)(hk, {+ className: `${AE({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, B.jsx)("div", {className: "px-4 pt-3",children: /* @__PURE__ */ (0, B.jsx)(gA, {"aria-label": e,className: vA,- children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(gk, {+ children: t.map((e) => /* @__PURE__ */ (0, B.jsx)(_k, {id: e.id,className: yA,children: e.name}, e.id))})- }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(_k, {+ }), t.map((e) => /* @__PURE__ */ (0, B.jsx)(vk, {id: e.id,className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, B.jsx)(cWe, {@@ -74835,14 +74837,14 @@ function lWe({ data: e, onSignal: t, navigate: n }) {className: "text-caption-1-regular text-text-secondary",children: e.detail})]- }), /* @__PURE__ */ (0, B.jsx)(gT, {+ }), /* @__PURE__ */ (0, B.jsx)(_T, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"})]}, e.key))- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: MT,+ icon: NT,title: "还没有可探索的入口",children: eWe})@@ -74858,11 +74860,11 @@ function uWe({ onboarding: e, done: t }) {}});return t || n ? null : /* @__PURE__ */ (0, B.jsx)("div", {- className: kE({+ className: AE({padding: "none",className: "p-4"}),- children: /* @__PURE__ */ (0, B.jsxs)(Wk, {+ children: /* @__PURE__ */ (0, B.jsxs)(Gk, {summary: "浏览器历史记录导入指南",defaultOpen: e,children: [@@ -74931,7 +74933,7 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {"data-split-button": !0,"data-variant": "primary",children: [/* @__PURE__ */ (0, B.jsx)(J, {- leadingIcon: xT,+ leadingIcon: ST,title: QUe,onClick: t,...X(e),@@ -74939,7 +74941,7 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {}), /* @__PURE__ */ (0, B.jsx)(J, {ref: r,iconOnly: !0,- leadingIcon: mT,+ leadingIcon: hT,"aria-label": "更多取得浏览记录的方式","aria-haspopup": "dialog","aria-expanded": i,@@ -74948,21 +74950,21 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {e || a(!0);}})]- }), /* @__PURE__ */ (0, B.jsx)(xO, {+ }), /* @__PURE__ */ (0, B.jsx)(SO, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: Ck,- children: /* @__PURE__ */ (0, B.jsxs)(DM, {+ className: wk,+ children: /* @__PURE__ */ (0, B.jsxs)(OM, {"aria-label": "更多取得浏览记录的方式",className: "flex w-52 flex-col gap-1 outline-none",children: [/* @__PURE__ */ (0, B.jsxs)("button", {type: "button",className: A8,onClick: () => o(t),- children: [/* @__PURE__ */ (0, B.jsx)(xT, {+ children: [/* @__PURE__ */ (0, B.jsx)(ST, {"aria-hidden": !0,className: "size-4 shrink-0"}), "读取浏览器历史"]@@ -74970,7 +74972,7 @@ function dWe({ busy: e, onRefresh: t, onImport: n }) {type: "button",className: A8,onClick: () => o(n),- children: [/* @__PURE__ */ (0, B.jsx)(NT, {+ children: [/* @__PURE__ */ (0, B.jsx)(PT, {"aria-hidden": !0,className: "size-4 shrink-0"}), "导入历史文件"]@@ -75004,10 +75006,10 @@ function fWe({ sources: e, window: t, toast: n }) {children: [/* @__PURE__ */ (0, B.jsx)("span", {className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(NT, {+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, B.jsx)(PT, {"aria-hidden": !0,className: "size-4"- }) : /* @__PURE__ */ (0, B.jsx)(ST, {+ }) : /* @__PURE__ */ (0, B.jsx)(CT, {"aria-hidden": !0,className: "size-4"})@@ -75027,7 +75029,7 @@ function fWe({ sources: e, window: t, toast: n }) {size: "small","aria-label": `移除 ${e.profile}`,iconOnly: !0,- leadingIcon: CT,+ leadingIcon: wT,...X(r.isPending),onClick: () => {r.isPending || je({@@ -75040,9 +75042,9 @@ function fWe({ sources: e, window: t, toast: n }) {})]}, e.source_key))- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: ST,+ icon: CT,title: "还没有数据源",children: $Ue})@@ -75054,7 +75056,7 @@ function pWe(e) {queryKey: d8(a),queryFn: ({ signal: e }) => f8(a, e),placeholderData: kS.keepPreviousData- }), { job: d, running: f, outcome: m, start: h } = VM({+ }), { job: d, running: f, outcome: m, start: h } = HM({queryKey: uUe,queryFn: ({ signal: e }) => fUe(e),start: () => mUe(a),@@ -75073,14 +75075,14 @@ function pWe(e) {}, v = () => {f || h.isPending || (h.reset(), h.mutate());}, y = u.data;- if (!y) return /* @__PURE__ */ (0, B.jsx)(ME, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ if (!y) return /* @__PURE__ */ (0, B.jsx)(NE, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "口味分析读取失败",children: u.error ? U(u.error) : "读取口味分析失败"}) });let b = y.summary || {}, x = y.coverage || {}, S = y.rankings || {}, C = y.storage || {}, w = S.browser_categories || [], T = y.gaps || [], E = x.tagged || 0, D = x.identified || 0, O = h.error ? U(h.error) : g.error ? U(g.error) : m?.status === "failed" ? m.error || "读取未取得" : "";- return /* @__PURE__ */ (0, B.jsxs)(ME, { children: [- /* @__PURE__ */ (0, B.jsxs)(mk, {+ return /* @__PURE__ */ (0, B.jsxs)(NE, { children: [+ /* @__PURE__ */ (0, B.jsxs)(hk, {selectedKey: s,onSelectionChange: (e) => c(String(e)),className: "flex flex-col gap-5",@@ -75090,11 +75092,11 @@ function pWe(e) {children: [/* @__PURE__ */ (0, B.jsxs)(gA, {"aria-label": "口味证据来源",className: vA,- children: [/* @__PURE__ */ (0, B.jsx)(gk, {+ children: [/* @__PURE__ */ (0, B.jsx)(_k, {id: "browser",className: yA,children: "浏览器记录"- }), /* @__PURE__ */ (0, B.jsx)(gk, {+ }), /* @__PURE__ */ (0, B.jsx)(_k, {id: "peach",className: yA,children: "Peach 内部"@@ -75102,13 +75104,13 @@ function pWe(e) {}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(Dk, {+ /* @__PURE__ */ (0, B.jsx)(Ok, {"aria-label": "分析范围",selectedKey: a,onSelectionChange: (e) => {e !== null && o(String(e));},- children: dUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(Ok, {+ children: dUe.map(([e, t]) => /* @__PURE__ */ (0, B.jsx)(kk, {id: e,children: t}, e))@@ -75137,48 +75139,48 @@ function pWe(e) {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",children: [- f ? /* @__PURE__ */ (0, B.jsx)(LM, {+ f ? /* @__PURE__ */ (0, B.jsx)(RM, {label: d?.message || "正在读取浏览记录并更新口味分析",value: d?.checked,total: d?.total}) : null,- g.isPending ? /* @__PURE__ */ (0, B.jsx)(LM, { label: "正在导入历史文件" }) : null,+ g.isPending ? /* @__PURE__ */ (0, B.jsx)(RM, { label: "正在导入历史文件" }) : null,O ? /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",children: O}) : null]}),- /* @__PURE__ */ (0, B.jsxs)(_k, {+ /* @__PURE__ */ (0, B.jsxs)(vk, {id: "browser",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, B.jsxs)("div", {- className: CM,+ className: wM,children: [/* @__PURE__ */ (0, B.jsx)(P8, {accent: 0,- icon: DT,+ icon: OT,term: "浏览记录",figure: Number(b.history_visits || 0).toLocaleString(),detail: `${b.history_sources || 0} 个数据源 · ${p8(b.range_start)}—${p8(b.range_end)}`}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 1,- icon: kT,+ icon: AT,term: "口味维度",figure: w.length.toLocaleString(),detail: w[0]?.name || "尚无主维度"}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 2,- icon: MT,+ icon: NT,term: "浏览候选",figure: T.length.toLocaleString()}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 3,- icon: ST,+ icon: CT,term: "私有导出",figure: Number(C.exports || 0).toLocaleString(),detail: ye(C.bytes || 0)@@ -75209,9 +75211,9 @@ function pWe(e) {children: w.length ? /* @__PURE__ */ (0, B.jsx)(YUe, {rows: w,label: "口味维度排名"- }) : /* @__PURE__ */ (0, B.jsx)(AE, {+ }) : /* @__PURE__ */ (0, B.jsx)(jE, {shell: "plain",- icon: MT,+ icon: NT,title: "暂无口味维度",children: tWe})@@ -75278,35 +75280,35 @@ function pWe(e) {})]}),- /* @__PURE__ */ (0, B.jsxs)(_k, {+ /* @__PURE__ */ (0, B.jsxs)(vk, {id: "peach",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, B.jsxs)("div", {- className: CM,+ className: wM,children: [/* @__PURE__ */ (0, B.jsx)(P8, {accent: 0,- icon: TT,+ icon: ET,term: "Peach 看过",figure: Number(b.peach_items || 0).toLocaleString(),detail: vUe(b.peach_seconds || 0)}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 1,- icon: mae,+ icon: pae,term: "喜欢",figure: Number(b.liked || 0).toLocaleString()}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 2,- icon: pae,+ icon: fae,term: "不合口味",figure: Number(b.disliked || 0).toLocaleString()}),/* @__PURE__ */ (0, B.jsx)(P8, {accent: 3,- icon: kT,+ icon: AT,term: "有标签",figure: E.toLocaleString()})@@ -75409,7 +75411,7 @@ function L8({ term: e, value: t, rest: n }) {children: `${n} 项待补`})]})]- }), /* @__PURE__ */ (0, B.jsx)(PE, {+ }), /* @__PURE__ */ (0, B.jsx)(FE, {label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,value: t,max: r@@ -75448,7 +75450,7 @@ var R8 = {})},"/review": {- prefetch: (e, t) => kj(t),+ prefetch: (e, t) => Aj(t),page: (e, t) => /* @__PURE__ */ (0, B.jsx)(kve, {...e,route: t.routeReview,@@ -75459,8 +75461,8 @@ var R8 = {})},"/data-cleanup": {- prefetch: (e, t) => cde(t),- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(hfe, {+ prefetch: (e, t) => sde(t),+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(mfe, {failure: t.failure,open: (e) => mWe(e, t, n),toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)@@ -75468,7 +75470,7 @@ var R8 = {},"/duplicates": {prefetch: (e, t) => Lle(t),- page: (e, t) => /* @__PURE__ */ (0, B.jsx)(cme, {+ page: (e, t) => /* @__PURE__ */ (0, B.jsx)(sme, {openItem: t.openItem,failure: t.failure,toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})@@ -75498,8 +75500,8 @@ var R8 = {})},"/diagnostics": {- prefetch: (e, t) => lme(t),- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(pme, {+ prefetch: (e, t) => cme(t),+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(fme, {navigate: n,openItem: t.openItem,receipt: (e) => t.receipt(e),@@ -75509,12 +75511,12 @@ var R8 = {})},"/activity": {- prefetch: (e, t) => Sce(t),+ prefetch: (e, t) => xce(t),page: (e) => /* @__PURE__ */ (0, B.jsx)(Gce, { ...e.prefill ? { prefill: e.prefill } : {} })},"/follow-manage": {- prefetch: (e, t) => Gme(t, e.tab),- page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(h_e, {+ prefetch: (e, t) => Wme(t, e.tab),+ page: (e, t, n) => /* @__PURE__ */ (0, B.jsx)(m_e, {...e,route: t.routeFollowManage,savePreference: t.saveFollowPreference,@@ -75537,11 +75539,11 @@ var R8 = {})},"/follow": {- prefetch: (e, t) => $me(e, t),- page: (e) => /* @__PURE__ */ (0, B.jsx)(Che, { ...e })+ prefetch: (e, t) => Qme(e, t),+ page: (e) => /* @__PURE__ */ (0, B.jsx)(She, { ...e })}}, V8 = (e) => Object.hasOwn(B8, e), H8 = {- prefetch: (e, t) => Ife(e, t),+ prefetch: (e, t) => Ffe(e, t),page: (e, t) => /* @__PURE__ */ (0, B.jsx)(A_e, {...e,route: t.routeIndex,@@ -75562,8 +75564,8 @@ var R8 = {"/agencies": H8,"/tags": H8}, W8 = {- prefetch: (e) => Tfe(e),- page: (e) => /* @__PURE__ */ (0, B.jsx)($pe, { ...e })+ prefetch: (e) => wfe(e),+ page: (e) => /* @__PURE__ */ (0, B.jsx)(Qpe, { ...e })}, G8 = {"/performers/*": W8,"/studios/*": W8,@@ -75572,21 +75574,21 @@ var R8 = {"/agencies/*": W8}, K8 = {"/": {- prefetch: (e, t) => kre(e, t),+ prefetch: (e, t) => Ore(e, t),page: (e) => /* @__PURE__ */ (0, B.jsx)(UA, { ...e })},"/junk-files": {prefetch: async () => {},page: (e) => /* @__PURE__ */ (0, B.jsx)(G_e, { ...e })}-}, q8 = (e) => Object.hasOwn(K8, e), hWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(Z_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(zM, { ...e }), J8 = {+}, q8 = (e) => Object.hasOwn(K8, e), hWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, B.jsx)(Z_e, { ...e }) : /* @__PURE__ */ (0, B.jsx)(BM, { ...e }), J8 = {"catalog-filter": {prefetch: async () => {},page: (e) => /* @__PURE__ */ (0, B.jsx)(ole, { ...e })},"feed-new": {- prefetch: (e) => bfe(e),- page: (e) => /* @__PURE__ */ (0, B.jsx)(mme, { ...e })+ prefetch: (e) => yfe(e),+ page: (e) => /* @__PURE__ */ (0, B.jsx)(pme, { ...e })},"library-processing": {prefetch: (e, t) => nj(t),@@ -76452,24 +76454,24 @@ function zGe({ openConfiguration: e }) {}), n = t.data;return /* @__PURE__ */ (0, B.jsxs)("div", {className: "flex flex-col",- children: [n ? /* @__PURE__ */ (0, B.jsxs)(Hk, { children: [- /* @__PURE__ */ (0, B.jsx)(Uk, {+ children: [n ? /* @__PURE__ */ (0, B.jsxs)(Uk, { children: [+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "媒体库",children: `${n.library_count} 个`}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "端口",children: String(n.port)}),- /* @__PURE__ */ (0, B.jsx)(Uk, {+ /* @__PURE__ */ (0, B.jsx)(Wk, {term: "更新",children: RGe(n)})- ] }) : /* @__PURE__ */ (0, B.jsx)(Ik, { children: /* @__PURE__ */ (0, B.jsx)(Y, {+ ] }) : /* @__PURE__ */ (0, B.jsx)(Lk, { children: /* @__PURE__ */ (0, B.jsx)(Y, {tone: "error",title: "配置读取失败",children: t.error ? U(t.error) : "未取得配置,请刷新页面重试。"- }) }), /* @__PURE__ */ (0, B.jsx)(Lk, {+ }) }), /* @__PURE__ */ (0, B.jsx)(Rk, {status: "媒体文件夹、端口、代理与更新在配置页上改。",children: /* @__PURE__ */ (0, B.jsx)(J, {onClick: e,@@ -76627,7 +76629,7 @@ function HGe({ host: e, spot: t, index: n, glow: r }) {children: u})]}),- /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })+ /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })]}), /* @__PURE__ */ (0, B.jsxs)("div", {className: "popmenu",@@ -76865,7 +76867,7 @@ function q5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {//#endregion//#region src/react/sidebar/sidebar-order.tsfunction J5(e) {- let { mutate: t } = Xj();+ let { mutate: t } = Zj();return (0, R.useCallback)((n) => {e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });}, [e, t]);@@ -76943,9 +76945,9 @@ function KGe({ host: e }) {/* @__PURE__ */ (0, B.jsx)("i", {"data-sidebar-grip": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "grip-vertical" })+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "grip-vertical" })}),- /* @__PURE__ */ (0, B.jsx)(cT, { name: a ?? "" }),+ /* @__PURE__ */ (0, B.jsx)(lT, { name: a ?? "" }),/* @__PURE__ */ (0, B.jsx)("b", { children: r })]}), /* @__PURE__ */ (0, B.jsxs)("span", {@@ -76959,7 +76961,7 @@ function KGe({ host: e }) {title: "上移",disabled: o === 0,onClick: () => _(e, -1),- children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-up" })+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-up" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -76969,7 +76971,7 @@ function KGe({ host: e }) {title: "下移",disabled: o === i.length - 1,onClick: () => _(e, 1),- children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -76981,7 +76983,7 @@ function KGe({ host: e }) {onClick: () => {n.length > 1 && t(n.filter((t) => t !== e));},- children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "eye-off" })+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "eye-off" })})]})]@@ -77001,13 +77003,13 @@ function KGe({ host: e }) {ref: m,onClick: b,children: v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [- /* @__PURE__ */ (0, B.jsx)(cT, { name: v[2] ?? "" }),+ /* @__PURE__ */ (0, B.jsx)(lT, { name: v[2] ?? "" }),/* @__PURE__ */ (0, B.jsx)("span", {"data-sidebar-add-label": "",children: v[1]}),- /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })- ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })+ /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })+ ] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "check" }), /* @__PURE__ */ (0, B.jsx)("span", { children: "全部页面都已显示" })] })}), a.length ? /* @__PURE__ */ (0, B.jsx)("div", {className: "popmenu","data-sidebar-add-menu": "",@@ -77025,7 +77027,7 @@ function KGe({ host: e }) {onClick: () => {s(X5(e)), y(), m.current?.focus();},- children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: n ?? "" }), /* @__PURE__ */ (0, B.jsx)("span", { children: t })]}, X5(e)))}) : null]}), /* @__PURE__ */ (0, B.jsx)("button", {@@ -77114,7 +77116,7 @@ function eKe() {}function i7() {let e = Q5;- e && (0, rp.flushSync)(() => eKe().render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(sKe, {+ e && (0, rp.flushSync)(() => eKe().render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(oKe, {host: e,view: t7}) })));@@ -77143,7 +77145,7 @@ function nKe(e = "") {let t = Q5;if (!t) return;Ae(), n7 += 1, r7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");- let n = Z5.findIndex(([t]) => t === e), r = Aue();+ let n = Z5.findIndex(([t]) => t === e), r = kue();a7({open: !0,closing: !1,@@ -77186,7 +77188,7 @@ function aKe(e) {e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());}var s7 = (e) => `settings-tab-${e}`, c7 = (e) => e === Z5.length - 1 ? "machineGroup" : `settings-group-${e}`;-function oKe({ tab: e, epoch: t, onSelect: n }) {+function l7({ tab: e, epoch: t, onSelect: n }) {let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(e), s = (0, R.useRef)([]), c = (e, t) => {let n = i.current;if (!n) return;@@ -77258,12 +77260,12 @@ function oKe({ tab: e, epoch: t, onSelect: n }) {onPointerEnter: (e) => {e.pointerType !== "touch" && c(e.currentTarget, !0);},- children: [/* @__PURE__ */ (0, B.jsx)(Rie, { name: r }), t]+ children: [/* @__PURE__ */ (0, B.jsx)(Lie, { name: r }), t]}, t))]});}-function l7({ index: e, tab: t, children: n }) {+function u7({ index: e, tab: t, children: n }) {return /* @__PURE__ */ (0, B.jsxs)("section", {"data-setting-group": "",id: c7(e),@@ -77273,7 +77275,7 @@ function l7({ index: e, tab: t, children: n }) {children: [/* @__PURE__ */ (0, B.jsx)("h3", { children: Z5[e][0] }), n]});}-function u7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {+function d7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {return /* @__PURE__ */ (0, B.jsxs)("label", {"data-setting-row": "",children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: t }), /* @__PURE__ */ (0, B.jsx)("small", {@@ -77290,7 +77292,7 @@ function u7({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se})]});}-function d7({ title: e, description: t, kind: n, children: r }) {+function f7({ title: e, description: t, kind: n, children: r }) {return /* @__PURE__ */ (0, B.jsxs)("div", {"data-setting-row": "","data-setting-sort": n === "sort" ? "" : void 0,@@ -77298,11 +77300,11 @@ function d7({ title: e, description: t, kind: n, children: r }) {children: [/* @__PURE__ */ (0, B.jsxs)("span", { children: [/* @__PURE__ */ (0, B.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, B.jsx)("small", { children: t }) : t] }), r]});}-var f7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {+var p7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, B.jsx)("small", {...t,dangerouslySetInnerHTML: { __html: e }-}), p7 = () => `${Qe("保存中")}<span>正在保存…</span>`, m7 = (e, t) => e instanceof Error && e.message || t;-function sKe({ host: e, view: t }) {+}), m7 = () => `${Qe("保存中")}<span>正在保存…</span>`, h7 = (e, t) => e instanceof Error && e.message || t;+function oKe({ host: e, view: t }) {(0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);let n = e.store.value, r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(t.tab), l = () => {let [e, t] = [i.current, o.current];@@ -77359,7 +77361,7 @@ function sKe({ host: e, view: t }) {})})]}),- /* @__PURE__ */ (0, B.jsx)(oKe, {+ /* @__PURE__ */ (0, B.jsx)(l7, {tab: t.tab,epoch: d,onSelect: f@@ -77368,11 +77370,11 @@ function sKe({ host: e, view: t }) {"data-settings-scroll": "",ref: o,children: [- /* @__PURE__ */ (0, B.jsxs)(l7, {+ /* @__PURE__ */ (0, B.jsxs)(u7, {index: 0,tab: t.tab,children: [- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "主题",description: "跟随系统,或固定用浅色、深色。",children: /* @__PURE__ */ (0, B.jsx)(W5, {@@ -77403,7 +77405,7 @@ function sKe({ host: e, view: t }) {onChange: (t) => e.setHighContrast(t.target.checked)})]}),- /* @__PURE__ */ (0, B.jsx)(u7, {+ /* @__PURE__ */ (0, B.jsx)(d7, {id: "uiSoundsSetting",title: "界面音效",checked: n.uiSounds,@@ -77412,7 +77414,7 @@ function sKe({ host: e, view: t }) {n.uiSounds = t, p(), e.changed("uiSounds");}}),- /* @__PURE__ */ (0, B.jsx)(u7, {+ /* @__PURE__ */ (0, B.jsx)(d7, {id: "homeGlowSetting",title: "侧栏光晕",checked: n.homeGlow.on,@@ -77432,33 +77434,33 @@ function sKe({ host: e, view: t }) {})]}),- /* @__PURE__ */ (0, B.jsx)(lKe, {+ /* @__PURE__ */ (0, B.jsx)(cKe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, B.jsx)(dKe, {+ /* @__PURE__ */ (0, B.jsx)(uKe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, B.jsx)(l7, {+ /* @__PURE__ */ (0, B.jsx)(u7, {index: 3,tab: t.tab,- children: /* @__PURE__ */ (0, B.jsx)(pKe, {+ children: /* @__PURE__ */ (0, B.jsx)(fKe, {host: e,epoch: d})}),- /* @__PURE__ */ (0, B.jsx)(mKe, {+ /* @__PURE__ */ (0, B.jsx)(pKe, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, B.jsx)(l7, {+ /* @__PURE__ */ (0, B.jsx)(u7, {index: 5,tab: t.tab,- children: /* @__PURE__ */ (0, B.jsx)(u7, {+ children: /* @__PURE__ */ (0, B.jsx)(d7, {id: "censorSetting",title: "SFW 模式",describedBy: "sfwDescription",@@ -77467,10 +77469,10 @@ function sKe({ host: e, view: t }) {onToggle: (t) => e.setCensored(t)})}),- /* @__PURE__ */ (0, B.jsx)(l7, {+ /* @__PURE__ */ (0, B.jsx)(u7, {index: 6,tab: t.tab,- children: /* @__PURE__ */ (0, B.jsx)(gKe, {+ children: /* @__PURE__ */ (0, B.jsx)(hKe, {host: e,machine: t.machine})@@ -77481,7 +77483,7 @@ function sKe({ host: e, view: t }) {})});}-function cKe(e, t) {+function sKe(e, t) {let n = e.querySelector("[data-select-label]");if (!n) return;n.querySelector("[data-icon-swap]") || (n.innerHTML = Le("arrow-up", "arrow-down", "a", {@@ -77491,13 +77493,13 @@ function cKe(e, t) {let r = n.querySelector("[data-sort-direction-label]");r && (r.textContent = t ? "升序" : "降序");}-function lKe({ host: e, tab: t, epoch: n }) {+function cKe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";- return /* @__PURE__ */ (0, B.jsxs)(l7, {+ return /* @__PURE__ */ (0, B.jsxs)(u7, {index: 1,tab: t,children: [- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "每批作品",description: "首页每次加载的作品数量。",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77512,7 +77514,7 @@ function lKe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "默认排序",kind: "sort",description: /* @__PURE__ */ (0, B.jsx)("small", {@@ -77542,7 +77544,7 @@ function lKe({ host: e, tab: t, epoch: n }) {onPick: (t) => {r.defaultSortDirection = t, i(), e.changed("sortDirection");},- decorate: (e) => cKe(e, o)+ decorate: (e) => sKe(e, o)})]})}),@@ -77559,7 +77561,7 @@ function lKe({ host: e, tab: t, epoch: n }) {}})]}),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "JAV 默认封面",description: "首页、接着看和 Mix 等位置共用;缺图时使用另一种封面。",children: /* @__PURE__ */ (0, B.jsx)(W5, {@@ -77573,11 +77575,11 @@ function lKe({ host: e, tab: t, epoch: n }) {text: !0,epoch: n,onChoose: (t) => {- r.javImage = FC(t), i(), e.changed("javImage");+ r.javImage = IC(t), i(), e.changed("javImage");}})}),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "视频封面默认大小",kind: "related",description: "首页和 JAV 等视频列表共用;小图展示完整封套,大图展示完整正封。",@@ -77594,7 +77596,7 @@ function lKe({ host: e, tab: t, epoch: n }) {onChoose: (t) => e.setVideoLayout(t)})}),- /* @__PURE__ */ (0, B.jsx)(u7, {+ /* @__PURE__ */ (0, B.jsx)(d7, {id: "feedAutoScrollSetting",title: "新作自动滚动",checked: r.feedAutoScroll,@@ -77603,7 +77605,7 @@ function lKe({ host: e, tab: t, epoch: n }) {r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");}}),- QGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(uKe, {+ QGe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, B.jsx)(lKe, {host: e,id: t,settingKey: n,@@ -77615,8 +77617,8 @@ function lKe({ host: e, tab: t, epoch: n }) {]});}-function uKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {- let s = Xj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {+function lKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {+ let s = Zj(), [c, l] = (0, R.useState)(null), u = (0, R.useRef)(null), d = e.store.value, f = (t) => {l(t), Ye(u.current), s.mutate({ [n]: t }, {onSuccess: (i) => {d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);@@ -77644,13 +77646,13 @@ function uKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a})]});}-function dKe({ host: e, tab: t, epoch: n }) {+function uKe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save();- return /* @__PURE__ */ (0, B.jsxs)(l7, {+ return /* @__PURE__ */ (0, B.jsxs)(u7, {index: 2,tab: t,children: [- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "悬停放大",description: "转圈完成后进入放大预览。",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77665,7 +77667,7 @@ function dKe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, B.jsx)(u7, {+ /* @__PURE__ */ (0, B.jsx)(d7, {id: "detailAutoplaySetting",title: "打开详情自动播放",checked: r.detailAutoplay,@@ -77674,7 +77676,7 @@ function dKe({ host: e, tab: t, epoch: n }) {r.detailAutoplay = e, i();}}),- /* @__PURE__ */ (0, B.jsx)(u7, {+ /* @__PURE__ */ (0, B.jsx)(d7, {id: "miniplayerSetting",title: "小窗播放",checked: r.miniplayer,@@ -77683,7 +77685,7 @@ function dKe({ host: e, tab: t, epoch: n }) {r.miniplayer = t, i(), e.changed("miniplayer");}}),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "快进 / 快退",description: "卡片预览和详情播放器共用。",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77698,8 +77700,8 @@ function dKe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, B.jsx)(fKe, { epoch: n }),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(dKe, { epoch: n }),+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "相关推荐",description: "详情下方一次显示的相似作品数量。",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77717,18 +77719,18 @@ function dKe({ host: e, tab: t, epoch: n }) {]});}-function fKe({ epoch: e }) {+function dKe({ epoch: e }) {let t = wS({- queryKey: qj,- queryFn: ({ signal: e }) => Yj(e)- }), n = Mue(), r = n.reset;+ queryKey: Jj,+ queryFn: ({ signal: e }) => Xj(e)+ }), n = jue(), r = n.reset;(0, R.useEffect)(() => {r();}, [e, r]);- let i = t.data?.mode || "off", a = n.isPending ? p7() : t.isFetching ? Be("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : t.data ? h7(Pue(t.data)) : "读取运行状态…";- return /* @__PURE__ */ (0, B.jsx)(d7, {+ let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Nue(t.data)) : "读取运行状态…";+ return /* @__PURE__ */ (0, B.jsx)(f7, {title: "视频缩略图采集",- description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(f7, {+ description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, B.jsx)(p7, {id: "videoThumbnailState","aria-live": "polite",html: a@@ -77744,9 +77746,9 @@ function fKe({ epoch: e }) {})});}-function pKe({ host: e, epoch: t }) {- let n = e.store.value, r = Xj();- return /* @__PURE__ */ (0, B.jsx)(d7, {+function fKe({ host: e, epoch: t }) {+ let n = e.store.value, r = Zj();+ return /* @__PURE__ */ (0, B.jsx)(f7, {title: "搜索记录",description: "保存在 Peach 账本,所有访问端同步。",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77762,8 +77764,8 @@ function pKe({ host: e, epoch: t }) {})});}-function mKe({ host: e, tab: t, epoch: n }) {- let r = e.store.value, i = Xj(), a = Xj(), [o, s] = (0, R.useState)("");+function pKe({ host: e, tab: t, epoch: n }) {+ let r = e.store.value, i = Zj(), a = Zj(), [o, s] = (0, R.useState)("");(0, R.useEffect)(() => {s("");}, [n]);@@ -77773,15 +77775,15 @@ function mKe({ host: e, tab: t, epoch: n }) {typeof t.followInitialDays == "number" && (r.followInitialDays = t.followInitialDays), e.store.save(), s("已保存,适用于尚未开始采集的来源。"), e.receipt("已保存首次采集历史范围");},onError: (t) => {- s(m7(t, "")), e.failure("保存首次采集历史范围", t);+ s(h7(t, "")), e.failure("保存首次采集历史范围", t);}}));};- return /* @__PURE__ */ (0, B.jsxs)(l7, {+ return /* @__PURE__ */ (0, B.jsxs)(u7, {index: 4,tab: t,children: [- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "首次采集历史范围",description: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("small", { children: "按发布时间限制新来源首次导入的内容;范围内不足 30 条时补到 30 条。没有日期的条目仍会导入;已有内容不受影响,支持历史分页的来源可手动加载更早。" }), /* @__PURE__ */ (0, B.jsx)("small", {id: "followInitialDaysState",@@ -77798,8 +77800,8 @@ function mKe({ host: e, tab: t, epoch: n }) {onPick: (e) => c(Number(e))})}),- /* @__PURE__ */ (0, B.jsx)(hKe, { epoch: n }),- /* @__PURE__ */ (0, B.jsx)(d7, {+ /* @__PURE__ */ (0, B.jsx)(mKe, { epoch: n }),+ /* @__PURE__ */ (0, B.jsx)(f7, {title: "头像与站点图标刷新",description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",children: /* @__PURE__ */ (0, B.jsx)(G5, {@@ -77817,18 +77819,18 @@ function mKe({ host: e, tab: t, epoch: n }) {]});}-function hKe({ epoch: e }) {+function mKe({ epoch: e }) {let t = wS({- queryKey: Kj,- queryFn: ({ signal: e }) => Jj(e)- }), n = jue(), r = n.reset;+ queryKey: qj,+ queryFn: ({ signal: e }) => Yj(e)+ }), n = Aue(), r = n.reset;(0, R.useEffect)(() => {r();}, [e, r]);- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? p7() : t.isFetching ? Be("正在读取状态") : n.isError ? h7(m7(n.error, "保存失败")) : t.isError ? h7(`状态未取得:${m7(t.error, String(t.error))}`) : i ? h7(Nue(i)) : "读取运行状态…";- return /* @__PURE__ */ (0, B.jsx)(d7, {+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Be("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Mue(i)) : "读取运行状态…";+ return /* @__PURE__ */ (0, B.jsx)(f7, {title: "关注自动更新",- description: /* @__PURE__ */ (0, B.jsx)(f7, {+ description: /* @__PURE__ */ (0, B.jsx)(p7, {id: "followScheduleState","aria-live": "polite",html: o@@ -77845,7 +77847,7 @@ function hKe({ epoch: e }) {})});}-function gKe({ host: e, machine: t }) {+function hKe({ host: e, machine: t }) {return t === "summary" ? /* @__PURE__ */ (0, B.jsx)("div", {id: "machineSettings",children: /* @__PURE__ */ (0, B.jsx)("div", {@@ -77859,55 +77861,55 @@ function gKe({ host: e, machine: t }) {dangerouslySetInnerHTML: { __html: He("媒体文件夹、端口、代理与更新只能在运行 Peach 服务的那台设备上改:在它的浏览器里打开配置页。", { label: "在服务端设备修改" }) }}, "note") : /* @__PURE__ */ (0, B.jsx)("div", { id: "machineSettings" }, "none");}-function h7(e) {+function g7(e) {return e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`);}//#endregion//#region src/react/sidebar/sidebar-island.tsx-var g7 = "__home__", _Ke = {+var _7 = "__home__", gKe = {creator: 26,tag: 30,tech: 16-}, _7 = 180, v7 = null, y7 = null, b7 = {+}, v7 = 180, y7 = null, b7 = null, x7 = {content: null,filters: {},latest: null-}, x7 = 0;-function S7() {- let e = v7;- if (!e || !y7) return;- let t = b7, n = x7;- (0, rp.flushSync)(() => y7.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(bKe, {+}, S7 = 0;+function C7() {+ let e = y7;+ if (!e || !b7) return;+ let t = x7, n = S7;+ (0, rp.flushSync)(() => b7.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(yKe, {host: e,props: t,epoch: n}) })));}-var vKe = {+var _Ke = {render(e) {- b7 = e, S7();+ x7 = e, C7();},navChanged() {- x7 += 1, S7();+ S7 += 1, C7();}};-function yKe(e) {- return v7 = e, b7 = {+function vKe(e) {+ return y7 = e, x7 = {content: null,filters: {},latest: null- }, e.scroll.replaceChildren(), y7 = (0, ip.createRoot)(e.scroll), S7(), e.attached(), vKe;+ }, e.scroll.replaceChildren(), b7 = (0, ip.createRoot)(e.scroll), C7(), e.attached(), _Ke;}-function bKe({ host: e, props: t, epoch: n }) {+function yKe({ host: e, props: t, epoch: n }) {let r = (0, R.useSyncExternalStore)(e.store.subscribe, e.store.version);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("div", { "data-sidebar-head": "" }),- /* @__PURE__ */ (0, B.jsx)(xKe, {+ /* @__PURE__ */ (0, B.jsx)(bKe, {host: e,epoch: n,version: r}),- t.content ? /* @__PURE__ */ (0, B.jsx)(CKe, {+ t.content ? /* @__PURE__ */ (0, B.jsx)(SKe, {host: e,content: t.content,filters: t.filters,@@ -77915,8 +77917,8 @@ function bKe({ host: e, props: t, epoch: n }) {}) : null] });}-function xKe({ host: e, epoch: t, version: n }) {- let r = J5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = mA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || g7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;+function bKe({ host: e, epoch: t, version: n }) {+ let r = J5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, R.useRef)(null), l = (0, R.useRef)(null), u = mA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;(0, R.useEffect)(() => {let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());return [@@ -77934,7 +77936,7 @@ function xKe({ host: e, epoch: t, version: n }) {}, _ = (e) => ({draggable: !0,onDragStart: (t) => {- p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || g7);+ p(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e || _7);},onDragOver: (t) => {if (f === null || f === e) return;@@ -77972,16 +77974,16 @@ function xKe({ host: e, epoch: t, version: n }) {"data-sidebar-home-logo": "",src: "/peach-logo.png",alt: ""- }) : /* @__PURE__ */ (0, B.jsx)(cT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]- }, t || g7))+ }) : /* @__PURE__ */ (0, B.jsx)(lT, { name: r }), /* @__PURE__ */ (0, B.jsx)("span", { children: n })]+ }, t || _7))}), v ? (0, rp.createPortal)(/* @__PURE__ */ (0, B.jsx)("span", {"data-sidebar-glide": "","aria-hidden": "true",ref: l}), v) : null] });}-var C7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);-function SKe(e) {+var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);+function xKe(e) {if (!e) return null;let t = /* @__PURE__ */ new Map(), n = [["loc", e.locations],@@ -77994,7 +77996,7 @@ function SKe(e) {for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);return t;}-function CKe({ host: e, content: t, filters: n, latest: r }) {+function SKe({ host: e, content: t, filters: n, latest: r }) {let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;(0, R.useLayoutEffect)(() => {t.kind === "catalog" && Ue(e.scroll, "drawer");@@ -78003,8 +78005,8 @@ function CKe({ host: e, content: t, filters: n, latest: r }) {i,t.kind]);- let a = t.kind === "catalog" ? wKe(e, t.facets, n, r, i) : [TKe(e, t.tags, new Set(t.selected))], o = 0;- return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(EKe, {+ let a = t.kind === "catalog" ? CKe(e, t.facets, n, r, i) : [wKe(e, t.tags, new Set(t.selected))], o = 0;+ return a.map((e) => e && /* @__PURE__ */ (0, B.jsx)(TKe, {title: e.title,kind: e.kind,active: e.active,@@ -78013,11 +78015,11 @@ function CKe({ host: e, content: t, filters: n, latest: r }) {children: e.body}, e.title));}-function wKe(e, t, n, r, i) {- let a = SKe(r), o = (t, r, i) => {+function CKe(e, t, n, r, i) {+ let a = xKe(r), o = (t, r, i) => {if (!t.length) return null;- let o = C7(n, r);- return /* @__PURE__ */ (0, B.jsx)(E7, {+ let o = w7(n, r);+ return /* @__PURE__ */ (0, B.jsx)(D7, {rows: t,filterKey: r,multi: i,@@ -78027,7 +78029,7 @@ function wKe(e, t, n, r, i) {});}, s = (t, s, c, l, u, d) => {if (!c.length) return null;- let f = C7(n, l), p = c.some((e) => f.includes(e.value));+ let f = w7(n, l), p = c.some((e) => f.includes(e.value));if (!d) return {title: t,kind: s,@@ -78039,12 +78041,12 @@ function wKe(e, t, n, r, i) {title: t,kind: s,active: p,- body: /* @__PURE__ */ (0, B.jsx)(OKe, {+ body: /* @__PURE__ */ (0, B.jsx)(DKe, {epoch: i,title: t,rows: c,latest: m ?? null,- limit: _Ke[d],+ limit: gKe[d],filterKey: l,selected: f,counts: a,@@ -78059,7 +78061,7 @@ function wKe(e, t, n, r, i) {title: "时长",kind: "meta",active: !1,- body: /* @__PURE__ */ (0, B.jsx)(kKe, {+ body: /* @__PURE__ */ (0, B.jsx)(OKe, {host: e,filters: n})@@ -78073,7 +78075,7 @@ function wKe(e, t, n, r, i) {title: "关注标签",kind: "online",active: !1,- body: /* @__PURE__ */ (0, B.jsx)(D7, {+ body: /* @__PURE__ */ (0, B.jsx)(O7, {rows: t.followTags,host: e,selected: null,@@ -78082,12 +78084,12 @@ function wKe(e, t, n, r, i) {} : null];}-function TKe(e, t, n) {+function wKe(e, t, n) {return t.length ? {title: "内容标签",kind: "online",active: t.some((e) => n.has(e.value)),- body: /* @__PURE__ */ (0, B.jsx)(D7, {+ body: /* @__PURE__ */ (0, B.jsx)(O7, {rows: t,host: e,selected: n,@@ -78095,19 +78097,19 @@ function TKe(e, t, n) {})} : null;}-function w7(e, t) {+function T7(e, t) {let n = null;try {n = sessionStorage.getItem(`peach.sidebar.group.${e}`);} catch {}return n === null ? t : n === "open";}-function EKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {- let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => w7(e, n)), u = (0, R.useRef)(!1);+function TKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {+ let o = (0, R.useRef)(null), s = (0, R.useRef)(null), [c, l] = (0, R.useState)(() => T7(e, n)), u = (0, R.useRef)(!1);(0, R.useLayoutEffect)(() => {let t = o.current, r = s.current;if (!t || !r) return;- let i = u.current ? w7(e, n) : c;+ let i = u.current ? T7(e, n) : c;u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("fcollapse") && r.classList.toggle("fcollapse-settled", i), l(i));}, [i]);let d = (t) => {@@ -78128,7 +78130,7 @@ function EKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })"aria-expanded": c,"aria-controls": f,onClick: d,- children: [/* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-right" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e })]}), /* @__PURE__ */ (0, B.jsx)("div", {ref: s,"data-sidebar-collapse": "",@@ -78139,7 +78141,7 @@ function EKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })children: /* @__PURE__ */ (0, B.jsx)("div", {"data-sidebar-body": "",id: `sidebar-group-${encodeURIComponent(e)}`,- children: /* @__PURE__ */ (0, B.jsx)(T7.Provider, {+ children: /* @__PURE__ */ (0, B.jsx)(E7.Provider, {value: d,children: a})@@ -78148,15 +78150,15 @@ function EKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })})]});}-var T7 = (0, R.createContext)(() => {});-function DKe({ dot: e }) {- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(cT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {+var E7 = (0, R.createContext)(() => {});+function EKe({ dot: e }) {+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, B.jsx)(lT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, B.jsx)("img", {"data-sidebar-source-icon": "",src: e.src,alt: ""}) : /* @__PURE__ */ (0, B.jsx)("i", { "data-sidebar-cost": e.cost }) : null;}-function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {+function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-sidebar-chips": "",children: e.map((e) => {@@ -78173,7 +78175,7 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }title: e.offline,onClick: () => a.toggleChip(t, e.value, n),children: [- /* @__PURE__ */ (0, B.jsx)(DKe, { dot: e.dot }),+ /* @__PURE__ */ (0, B.jsx)(EKe, { dot: e.dot }),/* @__PURE__ */ (0, B.jsx)("span", {"data-sidebar-chip-label": "",children: e.label@@ -78188,8 +78190,8 @@ function E7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }})});}-function OKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {- let u = (0, R.useContext)(T7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);+function DKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {+ let u = (0, R.useContext)(E7), [d, f] = (0, R.useState)(null), [p, m] = (0, R.useState)(e);p !== e && (m(e), f(null));let h = (0, R.useRef)(null), g = (0, R.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;return (0, R.useLayoutEffect)(() => {@@ -78204,7 +78206,7 @@ function OKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, se.body.classList.add("fcollapse"), Ie(e.body, e.before, () => !!t?.open && !e.body.inert);}t(), requestAnimationFrame(t);- }, [d, _]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(E7, {+ }, [d, _]), /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(D7, {rows: _ ? v : v.slice(0, i),filterKey: a,multi: !1,@@ -78229,10 +78231,10 @@ function OKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, sall: !_}), _ && u());},- children: /* @__PURE__ */ (0, B.jsx)(cT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, B.jsx)(lT, { name: "chevron-down" })}) : null] });}-function D7({ rows: e, host: t, selected: n, badges: r }) {+function O7({ rows: e, host: t, selected: n, badges: r }) {return /* @__PURE__ */ (0, B.jsx)("div", {"data-sidebar-chips": "",children: e.map((e) => /* @__PURE__ */ (0, B.jsxs)("button", {@@ -78253,10 +78255,10 @@ function D7({ rows: e, host: t, selected: n, badges: r }) {}, e.value))});}-var O7 = (e, t) => e ? Math.min(_7, Number(e) / 60) : t;-function kKe({ host: e, filters: t }) {- let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [O7(t.dur_min, 0), O7(t.dur_max, _7)]), [s, c] = (0, R.useState)("max");- r !== n && (i(n), o([O7(t.dur_min, 0), O7(t.dur_max, _7)]));+var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;+function OKe({ host: e, filters: t }) {+ let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, R.useState)(n), [a, o] = (0, R.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, R.useState)("max");+ r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));let [l, u] = a, d = (0, R.useRef)(null), f = (0, R.useRef)(null), p = (0, R.useRef)(null), m = (0, R.useRef)(a);m.current = a;let h = (e, t) => {@@ -78269,11 +78271,11 @@ function kKe({ host: e, filters: t }) {}, [e]), (0, R.useLayoutEffect)(() => {let e = d.current;if (!e) return;- e.style.setProperty("--lo", `${l / _7 * 100}%`), e.style.setProperty("--hi", `${u / _7 * 100}%`);+ e.style.setProperty("--lo", `${l / v7 * 100}%`), e.style.setProperty("--hi", `${u / v7 * 100}%`);let t = e.getBoundingClientRect();e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {let n = e.dataset.rangeEnd === "max" ? u : l;- e.style.left = `${n / _7 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");+ e.style.left = `${n / v7 * 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`);});@@ -78283,7 +78285,7 @@ function kKe({ host: e, filters: t }) {"data-range-end": e,"data-range-active": s === e ? "" : void 0,"aria-hidden": "true",- children: e === "max" && t >= _7 ? "不限" : `${t} 分钟`+ children: e === "max" && t >= v7 ? "不限" : `${t} 分钟`});return /* @__PURE__ */ (0, B.jsx)("div", {"data-sidebar-duration": "",@@ -78298,7 +78300,7 @@ function kKe({ host: e, filters: t }) {id: "durMin",type: "range",min: "0",- max: _7,+ max: v7,step: "5",value: l,"aria-label": "最短时长(分钟)",@@ -78309,7 +78311,7 @@ function kKe({ host: e, filters: t }) {id: "durMax",type: "range",min: "0",- max: _7,+ max: v7,step: "5",value: u,"aria-label": "最长时长(分钟)",@@ -78324,17 +78326,17 @@ function kKe({ host: e, filters: t }) {}//#endregion//#region src/board-skeleton.ts-var k7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, AKe = () => `${k7("80%")}${k7("48%")}`, jKe = (e, t) => e.repeat(t);-function MKe() {- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${k7("85%")}${k7("65%")}${jKe(AKe(), 4)}</div></aside></div>`;+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, kKe = () => `${A7("80%")}${A7("48%")}`, AKe = (e, t) => e.repeat(t);+function jKe() {+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${AKe(kKe(), 4)}</div></aside></div>`;}//#endregion//#region src/react/follow-detail/follow-detail.ts-var A7 = (e) => ["follow-item", e], NKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, PKe = "/api/follow/save", FKe = "/api/follow/media/hide";-async function j7(e, t) {- let n = await W(NKe(e), t);+var j7 = (e) => ["follow-item", e], MKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, NKe = "/api/follow/save", PKe = "/api/follow/media/hide";+async function M7(e, t) {+ let n = await W(MKe(e), t);for (let t of n.groups || []) {- let r = FF(t).find((t) => t.id === e);+ let r = IF(t).find((t) => t.id === e);if (r) return {item: r,group: t,@@ -78344,21 +78346,21 @@ async function j7(e, t) {}throw Error("这条关注内容已不存在");}-async function IKe(e, t) {- let n = A7(e.id), r = ehe(e.id), i = p.getQueryData(jF) ? null : p.fetchQuery({- queryKey: jF,- queryFn: () => MF(t)+async function FKe(e, t) {+ let n = j7(e.id), r = $me(e.id), i = p.getQueryData(MF) ? null : p.fetchQuery({+ queryKey: MF,+ queryFn: () => NF(t)});r ? p.setQueryData(n, {...r,item: r.item}) : await p.fetchQuery({queryKey: n,- queryFn: () => j7(e.id, t)+ queryFn: () => M7(e.id, t)}), await i;}-function LKe(e, t, n, r) {- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && BF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);+function IKe(e, t, n, r) {+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && VF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);return {embedded: i,selected: s,@@ -78372,32 +78374,32 @@ function LKe(e, t, n, r) {src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""};}-var RKe = (e) => FF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), zKe = {+var LKe = (e) => IF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), RKe = {"gofile.io": "Gofile","pixeldrain.com": "Pixeldrain","mega.nz": "MEGA","mega.io": "MEGA","mediafire.com": "MediaFire","drive.google.com": "Google Drive"-}, BKe = {+}, zKe = {gofile: "Gofile",pixeldrain: "Pixeldrain",mega: "MEGA",mediafire: "MediaFire",google_drive: "Google Drive"};-function VKe(e) {+function BKe(e) {try {let t = new URL(e).hostname.replace(/^www\./, "");- return zKe[t] || t;+ return RKe[t] || t;} catch {return "外部文件页";}}-function M7(e, t) {- return BKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+function N7(e, t) {+ return zKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-function HKe(e, t, n = "") {+function VKe(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;@@ -78406,56 +78408,56 @@ function HKe(e, t, n = "") {title: e.is_release && t.author ? `${t.author}:${i}` : i};}-var UKe = (e) => String(e.name || "").trim(), N7 = (e, t) => e.tag_types?.[t] || "unknown", WKe = /* @__PURE__ */ new Set([+var HKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", UKe = /* @__PURE__ */ new Set(["artist","character","copyright","metadata","unknown"]);-function GKe(e, t) {- let n = N7(e, t);- return `r34-${WKe.has(n) ? n : "general"}`;+function WKe(e, t) {+ let n = P7(e, t);+ return `r34-${UKe.has(n) ? n : "general"}`;}-var P7 = [+var F7 = ["copyright","character","artist","general","metadata"];-function KKe(e, t) {+function GKe(e, t) {let n = e.detail_tags || e.tags || [], r = (t) => {- let n = P7.indexOf(N7(e, t));- return n < 0 ? P7.length : n;+ let n = F7.indexOf(P7(e, t));+ return n < 0 ? F7.length : n;};return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-function qKe(e, t) {+function KKe(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 JKe = (e, t) => ({+var qKe = (e, t) => ({sources: e.sources,aliases: e.aliases,credentials: t-}), F7 = (e) => e?.size ? { size: e.size } : {};-function YKe(e, t) {+}), I7 = (e) => e?.size ? { size: e.size } : {};+function JKe(e, t) {let { images: n, kind: r, src: i, selected: a } = t;return n.length ? n.map((t, r) => ({src: `/follow-stream?id=${e.id}&media=${t.index}`,thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,name: t.name || e.title,- source: M7(t, e),- ...F7(t),+ source: N7(t, e),+ ...I7(t),position: r + 1,total: n.length})) : r === "image" && i ? [{src: i,thumb: e.thumb_url || i,name: e.title,- source: M7(a, e),- ...F7(a),+ source: N7(a, e),+ ...I7(a),position: 1,total: 1}] : e.thumb_url ? [{@@ -78467,10 +78469,10 @@ function YKe(e, t) {total: 1}] : [];}-var XKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";+var YKe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";//#endregion//#region src/react/components/mix-queue.tsx-function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {+function L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {return /* @__PURE__ */ (0, B.jsxs)("aside", {"data-mix-queue": "","data-queue-kind": e,@@ -78498,7 +78500,7 @@ function I7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,})]});}-function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {+function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {let s = /* @__PURE__ */ (0, B.jsx)("span", {"data-mix-item-text": "",children: a@@ -78521,29 +78523,29 @@ function L7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }}), r]});}-var ZKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {+var XKe = ({ label: e, count: t }) => /* @__PURE__ */ (0, B.jsxs)("h3", {"data-mix-group-label": "",children: [e," ",/* @__PURE__ */ (0, B.jsx)("span", { children: t })]-}), R7 = (e) => Number(e) > 0, QKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {+}), z7 = (e) => Number(e) > 0, ZKe = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: L(e) }-}), z7 = L("external-link", "externalmark");-function $Ke(e) {+}), B7 = L("external-link", "externalmark");+function QKe(e) {let { id: t, actions: n } = e, r = wS({- queryKey: A7(t),- queryFn: ({ signal: e }) => j7(t, e)+ queryKey: j7(t),+ queryFn: ({ signal: e }) => M7(t, e)}), i = wS({- queryKey: jF,- queryFn: ({ signal: e }) => MF(e)+ queryKey: MF,+ queryFn: ({ signal: e }) => NF(e)}), a = (0, R.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, R.useState)(e.mediaIndex);- return r.data ? /* @__PURE__ */ (0, B.jsx)(eqe, {+ return r.data ? /* @__PURE__ */ (0, B.jsx)($Ke, {...e,data: r.data,- context: JKe(r.data, a),+ context: qKe(r.data, a),mediaIndex: o,onMedia: s}) : /* @__PURE__ */ (0, B.jsx)("div", {@@ -78552,7 +78554,7 @@ function $Ke(e) {children: /* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-media": "","data-follow-detail-media": "none",- children: [/* @__PURE__ */ (0, B.jsx)(B7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {+ children: [/* @__PURE__ */ (0, B.jsx)(V7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {"data-follow-detail-placeholder": "",children: r.isError ? /* @__PURE__ */ (0, B.jsx)(NA, {message: Te(r.error),@@ -78562,7 +78564,7 @@ function $Ke(e) {})});}-var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {+var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",@@ -78571,8 +78573,8 @@ var B7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: L("x") }});-function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {- let { item: s, group: c } = e, l = LKe(s, c, n, i), u = iqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({+function $Ke({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {+ let { item: s, group: c } = e, l = IKe(s, c, n, i), u = rqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, R.useState)({key: "",kind: ""}), m = {@@ -78592,20 +78594,20 @@ function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hels,l.kind]);- let h = !l.embedded.length && l.collection ? RKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(W7, {+ let h = !l.embedded.length && l.collection ? LKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, B.jsx)(G7, {item: s,current: l.selected.index,helpers: a,actions: o,onMedia: r- }) : l.collection ? h ? /* @__PURE__ */ (0, B.jsx)(W7, {+ }) : l.collection ? h ? /* @__PURE__ */ (0, B.jsx)(G7, {item: h,current: null,helpers: a,actions: o,onMedia: r,currentId: s.id- }) : /* @__PURE__ */ (0, B.jsx)(nqe, {+ }) : /* @__PURE__ */ (0, B.jsx)(tqe, {group: l.collection,itemId: s.id,helpers: a,@@ -78616,7 +78618,7 @@ function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel"data-with-queue": g ? "" : void 0,"data-follow-detail": "",children: [- /* @__PURE__ */ (0, B.jsx)(tqe, {+ /* @__PURE__ */ (0, B.jsx)(eqe, {item: s,media: l,helpers: a,@@ -78625,7 +78627,7 @@ function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helissues: m}, d),g,- /* @__PURE__ */ (0, B.jsx)(rqe, {+ /* @__PURE__ */ (0, B.jsx)(nqe, {item: s,data: e,context: t,@@ -78638,8 +78640,8 @@ function eqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel]});}-function tqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = YKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({+function eqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, R.useRef)(null), [p, m] = (0, R.useState)(null), h = JKe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, R.useState)(v), S = (0, R.useRef)({item: e,selected: o}), C = (0, R.useRef)(i.failed);@@ -78669,14 +78671,14 @@ function tqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {"--follow-image-arrow-inset": p === null ? void 0 : `${p}px`},children: [- /* @__PURE__ */ (0, B.jsx)(B7, { onClose: n.close }),+ /* @__PURE__ */ (0, B.jsx)(V7, { onClose: n.close }),_ ? null : v ? /* @__PURE__ */ (0, B.jsx)("img", {"data-follow-detail-poster": "","data-zoomable": h.length ? "" : void 0,src: b,alt: e.title,referrerPolicy: "no-referrer",- onClick: h.length ? () => void HN(Math.max(0, l), h) : void 0,+ onClick: h.length ? () => void UN(Math.max(0, l), h) : void 0,onError: () => {if (y && b !== y) {x(y), i.thumbFallback();@@ -78688,7 +78690,7 @@ function tqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {"data-follow-detail-placeholder": "",children: [/* @__PURE__ */ (0, B.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: KF(e.resource_provider || e.provider) }+ dangerouslySetInnerHTML: { __html: qF(e.resource_provider || e.provider) }}), /* @__PURE__ */ (0, B.jsx)("span", { children: "没有可用预览" })]}),u ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [@@ -78727,11 +78729,11 @@ function tqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {]});}-var V7 = ({ kind: e }) => /* @__PURE__ */ (0, B.jsx)("span", {+var H7 = ({ kind: e }) => /* @__PURE__ */ (0, B.jsx)("span", {"data-follow-nothumb": "",dangerouslySetInnerHTML: { __html: L(e === "image" ? "image-off" : "play") }});-function H7({ src: e }) {+function U7({ src: e }) {let [t, n] = (0, R.useState)(!1);return t ? null : /* @__PURE__ */ (0, B.jsx)("img", {src: e,@@ -78741,14 +78743,14 @@ function H7({ src: e }) {onError: () => n(!0)});}-function U7(e) {+function W7(e) {return (0, R.useCallback)((t) => {t && e.wireDrag(t);}, [e]);}-function nqe({ group: e, itemId: t, helpers: n, actions: r }) {- let i = BF(e), a = U7(n);- return /* @__PURE__ */ (0, B.jsx)(I7, {+function tqe({ group: e, itemId: t, helpers: n, actions: r }) {+ let i = VF(e), a = W7(n);+ return /* @__PURE__ */ (0, B.jsx)(L7, {kind: "collection","data-follow-queue": "",title: "视频合集",@@ -78756,12 +78758,12 @@ function nqe({ group: e, itemId: t, helpers: n, actions: r }) {listRef: a,summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,children: i.map((n) => {- let i = e.duplicates.includes(n), a = HKe(e, n, i ? n.provider_label : ""), o = i ? KF(n.provider, n.provider_label) : "";- return /* @__PURE__ */ (0, B.jsxs)(L7, {+ let i = e.duplicates.includes(n), a = VKe(e, n, i ? n.provider_label : ""), o = i ? qF(n.provider, n.provider_label) : "";+ return /* @__PURE__ */ (0, B.jsxs)(R7, {current: n.id === t,"data-follow-queue-item": n.id,onClick: () => r.openItem(n.id),- pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(V7, { kind: "video" }), R7(n.duration) ? /* @__PURE__ */ (0, B.jsx)("i", {+ pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: "video" }), z7(n.duration) ? /* @__PURE__ */ (0, B.jsx)("i", {className: "mono","data-mix-item-duration": "",children: ve(n.duration)@@ -78779,15 +78781,15 @@ function nqe({ group: e, itemId: t, helpers: n, actions: r }) {children: a.label}), /* @__PURE__ */ (0, B.jsx)("time", {dateTime: n.published_at || "",- children: $F(n)+ children: eI(n)})]})]}, n.id);})});}-function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {- let o = e.media_items || [], s = U7(r), c = [];+function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {+ let o = e.media_items || [], s = W7(r), c = [];o.forEach((e) => {let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);n || (n = {@@ -78797,26 +78799,26 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, c.push(n)), n.items.push(e);});let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);- return /* @__PURE__ */ (0, B.jsx)(I7, {+ return /* @__PURE__ */ (0, B.jsx)(L7, {kind: "media","data-follow-queue": "",title: "多媒体",onClose: i.close,listRef: s,summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(ZKe, {+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, B.jsx)(XKe, {label: n.label,count: n.items.length- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(L7, {+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, B.jsxs)(R7, {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, B.jsx)(H7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(V7, { kind: n.media_kind || "" }),+ pic: n.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(H7, { kind: n.media_kind || "" }),children: [/* @__PURE__ */ (0, B.jsx)("b", {"data-middle-truncate": "",- children: UKe(n)+ children: HKe(n)}), /* @__PURE__ */ (0, B.jsx)("span", {"data-truncate-end": "",children: n.media_kind === "image" ? "图片" : "视频"@@ -78824,13 +78826,13 @@ function W7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, n.index))])});}-function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {+function nqe({ 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 = ZF(d, e), p = YF(e, qKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = QF(e, n), g = KKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {+ }, f = QF(d, e), p = XF(e, KKe(e, t.sources), n), m = p.credited ? "" : e.author && be(e.author) !== be(p.author) ? e.author : "", h = $F(e, n), g = GKe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {"aria-busy": !0,"aria-disabled": !0} : {};@@ -78846,7 +78848,7 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-title": "","data-follow-detail-name": "","data-reveal-line": "",- dangerouslySetInnerHTML: { __html: XF(d, e) + ge(e.title) }+ dangerouslySetInnerHTML: { __html: ZF(d, e) + ge(e.title) }}), e.url ? /* @__PURE__ */ (0, B.jsx)("a", {"data-follow-origin": "",href: e.url,@@ -78854,7 +78856,7 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helperel: "noreferrer noopener",title: "打开来源页面","aria-label": "打开来源页面",- dangerouslySetInnerHTML: { __html: z7 }+ dangerouslySetInnerHTML: { __html: B7 }}) : null]}),/* @__PURE__ */ (0, B.jsxs)("div", {@@ -78873,8 +78875,8 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-meta": "","data-reveal-line": "",children: [- /* @__PURE__ */ (0, B.jsx)("span", { children: $F(e) }),- R7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,+ /* @__PURE__ */ (0, B.jsx)("span", { children: eI(e) }),+ z7(e.duration) ? /* @__PURE__ */ (0, B.jsx)("span", { children: ve(e.duration) }) : null,f ? /* @__PURE__ */ (0, B.jsx)("span", {"data-follow-badges": "",dangerouslySetInnerHTML: { __html: f }@@ -78907,9 +78909,9 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpehref: e,target: "_blank",rel: "noreferrer noopener",- children: [VKe(e), /* @__PURE__ */ (0, B.jsx)("span", {+ children: [BKe(e), /* @__PURE__ */ (0, B.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: z7 }+ dangerouslySetInnerHTML: { __html: B7 }})]}, e))}) : null,@@ -79016,7 +79018,7 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-label": `恢复显示 ${e.name || ""}`,...y(`restore:${e.index}`),onClick: () => i.restore(e.index),- children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(H7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(QKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]+ children: [e.thumb_url ? /* @__PURE__ */ (0, B.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, B.jsx)(ZKe, { name: "image-off" }), /* @__PURE__ */ (0, B.jsx)("i", { dangerouslySetInnerHTML: { __html: L("rotate-ccw") } })]}, e.index))})]}) : null,@@ -79030,7 +79032,7 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-follow-detail-tags": "",children: g.map((t) => /* @__PURE__ */ (0, B.jsx)("button", {type: "button",- "data-tag-cat": GKe(e, t),+ "data-tag-cat": WKe(e, t),"data-follow-tag": t,onClick: () => s.openTag(t),children: o.tagLabel(t)@@ -79040,8 +79042,8 @@ function rqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe})});}-function iqe(e, t, n) {- let r = e.id, i = A7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {+function rqe(e, t, n) {+ let r = e.id, i = j7(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), l = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;}), u = (e) => {@@ -79051,17 +79053,17 @@ function iqe(e, t, n) {...t.item,status: e}- }), nhe(r, e);+ }), the(r, e);}, d = (e) => {c(Te(e) || "操作失败"), t.failure("更新关注状态", e);}, f = DS({- mutationFn: ({ to: e }) => G(GP, {+ mutationFn: ({ to: e }) => G(KP, {item: r,to: e}),onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), n === "ignored" && xL(), t.toast(XKe(n), { undo: i === "saved" ? void 0 : async () => {- await G(GP, {+ u(n), c(""), n === "ignored" && SL(), t.toast(YKe(n), { undo: i === "saved" ? void 0 : async () => {+ await G(KP, {item: r,to: i}), u(i);@@ -79070,7 +79072,7 @@ function iqe(e, t, n) {onError: d,onSettled: (e, t, { to: n }) => l(n, !1)}), m = DS({- mutationFn: () => G(PKe, { item: r }),+ mutationFn: () => G(NKe, { item: r }),onSuccess: () => {u("saved"), c(""), t.toast("已保存到账本");},@@ -79078,7 +79080,7 @@ function iqe(e, t, n) {onSettled: () => l("save", !1)}), h = DS({mutationFn: async ({ index: e, hidden: t }) => {- await G(FKe, {+ await G(PKe, {item: r,media: e,hidden: t@@ -79089,17 +79091,17 @@ function iqe(e, t, n) {},onSuccess: (e, { hidden: r, next: a }) => {let o = p.getQueryData(i);- o && the(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");+ o && ehe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");},onError: d,onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)}), g = wS({- queryKey: a_e(r),- queryFn: ({ signal: e }) => c_e(r, e)+ queryKey: i_e(r),+ queryFn: ({ signal: e }) => s_e(r, e)}).data?.want ?? null, _ = DS({- mutationFn: async (e) => (e ? await bL([e.id]) : await yL({ follow: r }), !e),+ mutationFn: async (e) => (e ? await xL([e.id]) : await bL({ follow: r }), !e),onSuccess: (e) => {- c(""), t.toast(e ? "已加入想要" : "已取消想要"), xL();+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), SL();},onError: d,onSettled: () => l("want", !1)@@ -79139,25 +79141,25 @@ function iqe(e, t, n) {}//#endregion//#region src/react/components/overlay-host.ts-function aqe(e) {+function iqe(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 oqe(e) {+function aqe(e) {let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return aqe(n ?? t.body);+ return iqe(n ?? t.body);}//#endregion//#region src/react/cover-crop/cover-crop.ts-var sqe = "/api/cover-crop", cqe = (e, t) => G(sqe, {+var oqe = "/api/cover-crop", sqe = (e, t) => G(oqe, {code: e,box: t});//#endregion//#region src/react/cover-crop/cover-crop-page.tsx-function G7({ className: e }) {+function K7({ className: e }) {return /* @__PURE__ */ (0, B.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -79170,7 +79172,7 @@ function G7({ className: e }) {children: /* @__PURE__ */ (0, B.jsx)("use", { href: "#i-crop" })});}-function lqe({ code: e, coverUrl: t, box: n, onSaved: r }) {+function cqe({ code: e, coverUrl: t, box: n, onSaved: r }) {let [i, a] = (0, R.useState)(!1), o = (0, R.useRef)(null);return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)("button", {ref: o,@@ -79181,15 +79183,15 @@ function lqe({ code: e, coverUrl: t, box: n, onSaved: r }) {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, B.jsx)(G7, { className: "size-3.75" })+ children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-3.75" })}), /* @__PURE__ */ (0, B.jsx)(ry, {- getContainer: () => oqe(o.current),- children: /* @__PURE__ */ (0, B.jsx)(nP, {+ getContainer: () => aqe(o.current),+ children: /* @__PURE__ */ (0, B.jsx)(rP, {isOpen: i,onOpenChange: a,width: "cover-crop",label: "裁剪封面",- children: /* @__PURE__ */ (0, B.jsx)(uqe, {+ children: /* @__PURE__ */ (0, B.jsx)(lqe, {code: e,coverUrl: t,box: n,@@ -79199,9 +79201,9 @@ function lqe({ code: e, coverUrl: t, box: n, onSaved: r }) {})})] });}-function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {- let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = NM(), f = DS({- mutationFn: (t) => cqe(e, t),+function lqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+ let [a, o] = (0, R.useState)(null), [s, c] = (0, R.useState)(null), [l, u] = (0, R.useState)(!0), d = PM(), f = DS({+ mutationFn: (t) => sqe(e, t),onSuccess: (e) => {i(), r(e.poster_box);}@@ -79213,19 +79215,19 @@ function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {y0: n.y0,x1: n.x1,y1: n.y1- } : ape(e, IC);- c(QN(t, e, null));+ } : ipe(e, LC);+ c($N(t, e, null));}let m = f.isPending;return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, B.jsx)(rP, { children: /* @__PURE__ */ (0, B.jsx)(G7, { className: "size-6" }) }),+ /* @__PURE__ */ (0, B.jsx)(iP, { children: /* @__PURE__ */ (0, B.jsx)(K7, { className: "size-6" }) }),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [- /* @__PURE__ */ (0, B.jsx)(nD, {+ /* @__PURE__ */ (0, B.jsx)(rD, {slot: "title",className: "text-title-3-semibold text-text-primary",children: "裁剪封面"@@ -79240,8 +79242,8 @@ function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, B.jsx)(FM, {- icon: yT,+ /* @__PURE__ */ (0, B.jsx)(IM, {+ icon: bT,size: "small","aria-label": "关闭",onClick: i@@ -79251,24 +79253,24 @@ function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {/* @__PURE__ */ (0, B.jsx)("div", {ref: d,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: /* @__PURE__ */ (0, B.jsx)(aP, {+ children: /* @__PURE__ */ (0, B.jsx)(oP, {src: t,- aspect: l ? IC : null,+ aspect: l ? LC : null,box: s,size: a,label: `${e} 的正封取景框`,onSize: (e) => {- XN(e) && p(e);+ ZN(e) && p(e);},onBox: c})}),/* @__PURE__ */ (0, B.jsxs)("div", {className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, B.jsx)(aL, {+ children: [/* @__PURE__ */ (0, B.jsx)(oL, {isSelected: l,onChange: (e) => {- u(e), e && s && a && c(QN(s, a, IC));+ u(e), e && s && a && c($N(s, a, LC));},children: /* @__PURE__ */ (0, B.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -79297,21 +79299,21 @@ function uqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}//#endregion//#region src/react/item-detail/item-detail-page.tsx-var K7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {+var q7 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: L(e) }-}), q7 = ({ html: e }) => /* @__PURE__ */ (0, B.jsx)("span", {+}), J7 = ({ html: e }) => /* @__PURE__ */ (0, B.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: e }});-function dqe(e) {+function uqe(e) {let { queue: t, actions: n } = e, r = wS({- queryKey: t ? UC(t) : ["item-queue", "none"],- queryFn: ({ signal: n }) => QC(t, e.helpers, n),+ queryKey: t ? WC(t) : ["item-queue", "none"],+ queryFn: ({ signal: n }) => $C(t, e.helpers, n),enabled: !!t- }), i = t && r.data || null, a = i ? tw(i, e.id) : t ? null : e.id, o = wS({- queryKey: HC(a ?? 0),- queryFn: ({ signal: e }) => ZC(a, e),+ }), i = t && r.data || null, a = i ? nw(i, e.id) : t ? null : e.id, o = wS({+ queryKey: UC(a ?? 0),+ queryFn: ({ signal: e }) => QC(a, e),enabled: a != null});if (!o.data || t && !i) {@@ -79322,7 +79324,7 @@ function dqe(e) {children: /* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-media": "","data-item-media": "none",- children: [/* @__PURE__ */ (0, B.jsx)(J7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, B.jsx)("div", {"data-item-placeholder": "",children: e ? /* @__PURE__ */ (0, B.jsx)(NA, {message: Te(e),@@ -79334,13 +79336,13 @@ function dqe(e) {})});}- return /* @__PURE__ */ (0, B.jsx)(fqe, {+ return /* @__PURE__ */ (0, B.jsx)(dqe, {...e,- item: zre(o.data, i),+ item: Rre(o.data, i),queue: i}, o.data.id);}-var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {+var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-stage-close": "",id: "closeStage",@@ -79349,36 +79351,36 @@ var J7 = ({ onClose: e }) => /* @__PURE__ */ (0, B.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: L("x") }});-function fqe(e) {- let { item: t, queue: n, actions: r, helpers: i } = e, a = Oqe(t, r, i.tagLabel), o = (0, R.useRef)(t);+function dqe(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Dqe(t, r, i.tagLabel), o = (0, R.useRef)(t);(0, R.useLayoutEffect)(() => {r.present(o.current, n);}, [r]), (0, R.useEffect)(() => {- n?.kind === "playlist" && G(WC, {+ n?.kind === "playlist" && G(GC, {action: "progress",id: n.playlistId,asset_id: t.id}).catch(() => {});}, []);- let s = $re(t, i.sourceOffline(t.location || ""));+ let s = Qre(t, i.sourceOffline(t.location || ""));return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-grid": "","data-with-queue": n ? "" : void 0,"data-item-detail": "",children: [- /* @__PURE__ */ (0, B.jsx)(pqe, {+ /* @__PURE__ */ (0, B.jsx)(fqe, {item: t,gate: s,helpers: i,actions: r}),- n ? /* @__PURE__ */ (0, B.jsx)(hqe, {+ n ? /* @__PURE__ */ (0, B.jsx)(mqe, {queue: n,itemId: t.id,helpers: i,actions: r}) : null,- /* @__PURE__ */ (0, B.jsx)(vqe, {+ /* @__PURE__ */ (0, B.jsx)(_qe, {item: t,queue: n,write: a,@@ -79386,9 +79388,9 @@ function fqe(e) {actions: r})]- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Dqe, { ...e }) : null] });+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, B.jsx)(Eqe, { ...e }) : null] });}-function pqe({ item: e, gate: t, helpers: n, actions: r }) {+function fqe({ item: e, gate: t, helpers: n, actions: r }) {let [i, a] = (0, R.useState)(t ? "" : "auto"), o = (0, R.useRef)(null), s = (0, R.useRef)(e);(0, R.useLayoutEffect)(() => {let e = o.current;@@ -79399,7 +79401,7 @@ function pqe({ item: e, gate: t, helpers: n, actions: r }) {ref: o,"data-stage-media": "","data-item-media": t || "video",- children: [/* @__PURE__ */ (0, B.jsx)(J7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(mqe, {+ children: [/* @__PURE__ */ (0, B.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, B.jsx)(pqe, {item: e,badge: c,helpers: n,@@ -79409,7 +79411,7 @@ function pqe({ item: e, gate: t, helpers: n, actions: r }) {role: "status","data-item-gate": "online",children: [- /* @__PURE__ */ (0, B.jsx)(q7, { html: c }),+ /* @__PURE__ */ (0, B.jsx)(J7, { html: c }),/* @__PURE__ */ (0, B.jsx)("b", { children: "在线资产" }),/* @__PURE__ */ (0, B.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),/* @__PURE__ */ (0, B.jsx)("button", {@@ -79424,11 +79426,11 @@ function pqe({ item: e, gate: t, helpers: n, actions: r }) {id: "gate","data-item-gate": "metered",onClick: () => a("clicked"),- children: [/* @__PURE__ */ (0, B.jsx)(q7, { html: c }), /* @__PURE__ */ (0, B.jsxs)("span", { children: ["点此开始拉流 · ", ye(e.size || 0)] })]+ children: [/* @__PURE__ */ (0, B.jsx)(J7, { html: c }), /* @__PURE__ */ (0, B.jsxs)("span", { children: ["点此开始拉流 · ", ye(e.size || 0)] })]}) : null]});}-function mqe({ item: e, badge: t, helpers: n, actions: r }) {+function pqe({ item: e, badge: t, helpers: n, actions: r }) {let [i, a] = (0, R.useState)(!1), [o, s] = (0, R.useState)(!1), c = async () => {a(!0);let t = await r.checkSource(e.location || "").catch(() => !1);@@ -79439,7 +79441,7 @@ function mqe({ item: e, badge: t, helpers: n, actions: r }) {role: "status","data-item-gate": "offline",children: [- /* @__PURE__ */ (0, B.jsx)(q7, { html: t }),+ /* @__PURE__ */ (0, B.jsx)(J7, { html: t }),/* @__PURE__ */ (0, B.jsx)("b", { children: "脱盘模式" }),/* @__PURE__ */ (0, B.jsx)("span", { children: n.offlineReason(e.location || "") }),/* @__PURE__ */ (0, B.jsx)("button", {@@ -79453,8 +79455,8 @@ function mqe({ item: e, badge: t, helpers: n, actions: r }) {]});}-function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {- let i = Yre(e), a = (0, R.useRef)(null), o = _qe(e, t, r), s = (0, R.useRef)(o);+function mqe({ queue: e, itemId: t, helpers: n, actions: r }) {+ let i = Jre(e), a = (0, R.useRef)(null), o = gqe(e, t, r), s = (0, R.useRef)(o);s.current = o;let c = (0, R.useCallback)((t) => {a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {@@ -79462,7 +79464,7 @@ function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {attribute: "data-queue-row",onMove: (e, t, n) => s.current.move(+e, +t, n)}));- }, [n, e.kind]), l = gqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {+ }, [n, e.kind]), l = hqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-save-mix": "",title: "保存为播放列表",@@ -79481,7 +79483,7 @@ function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {seedId: e.seedId,playlistId: e.playlistId};- return /* @__PURE__ */ (0, B.jsx)(I7, {+ return /* @__PURE__ */ (0, B.jsx)(L7, {kind: e.kind,title: i.title,summary: i.summary,@@ -79490,11 +79492,11 @@ function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {listRef: c,children: e.items.map((i) => {let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, B.jsx)("i", {- className: `javedition ${qre[i.edition_label] || "censored"}`,+ className: `javedition ${Kre[i.edition_label] || "censored"}`,"data-queue-edition": "",children: i.edition_label- }) : null, s = e.kind === "playlist" && ew(i);- return /* @__PURE__ */ (0, B.jsxs)(L7, {+ }) : null, s = e.kind === "playlist" && tw(i);+ return /* @__PURE__ */ (0, B.jsxs)(R7, {current: i.id === t,"data-queue-item": i.id,row: { "data-queue-row": i.id },@@ -79504,25 +79506,25 @@ function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {onClick: () => {s || r.openQueueItem(d, i.id);},- pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(q7, { html: oe(i, n.javImage()) }), /* @__PURE__ */ (0, B.jsx)("i", {+ pic: /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(J7, { html: oe(i, n.javImage()) }), /* @__PURE__ */ (0, B.jsx)("i", {className: "mono","data-mix-item-duration": "",children: ve(i.duration)})] }),- lead: /* @__PURE__ */ (0, B.jsx)(q7, { html: ae(i) }),+ lead: /* @__PURE__ */ (0, B.jsx)(J7, { html: ae(i) }),after: e.kind === "playlist" ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-queue-edit": "",children: [/* @__PURE__ */ (0, B.jsx)("i", {"data-queue-grip": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "grip-vertical" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "grip-vertical" })}), /* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-queue-remove": i.id,title: "移出播放列表","aria-label": "移出播放列表",onClick: () => o.remove(i.id),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "x" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })})]}) : null,children: [/* @__PURE__ */ (0, B.jsxs)("span", {@@ -79533,14 +79535,14 @@ function hqe({ queue: e, itemId: t, helpers: n, actions: r }) {})]}), /* @__PURE__ */ (0, B.jsx)("span", {"data-truncate-end": "",- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? lw(i.part_label) : re(i, n.tagLabel)+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? uw(i.part_label) : re(i, n.tagLabel)})]}, i.id);})});}-function gqe(e, t) {- let n = DS({ mutationFn: (t) => G(WC, {+function hqe(e, t) {+ let n = DS({ mutationFn: (t) => G(GC, {action: "create",name: t,asset_ids: e.items.map((e) => e.id),@@ -79553,11 +79555,11 @@ function gqe(e, t) {save: (e) => n.mutateAsync(e)});}-function _qe(e, t, n) {- let r = UC({+function gqe(e, t, n) {+ let r = WC({kind: "playlist",playlistId: e.playlistId- }), i = (e) => (p.setQueryData(r, $C(e)), e), a = (t) => G(WC, {+ }), i = (e) => (p.setQueryData(r, ew(e)), e), a = (t) => G(GC, {id: e.playlistId,...t}).then((e) => e.playlist), o = DS({@@ -79573,8 +79575,8 @@ function _qe(e, t, n) {return {move: async (t, r, c) => {if (e.kind !== "playlist") return;- let l = Zre(s, t, r, c);- if (Qre(l, s)) return;+ let l = Xre(s, t, r, c);+ if (Zre(l, s)) return;let u = s;await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {i(await a({@@ -79620,7 +79622,7 @@ function _qe(e, t, n) {}};}-function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {+function _qe({ item: e, queue: t, write: n, helpers: r, actions: i }) {let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, R.useState)(!1);return /* @__PURE__ */ (0, B.jsx)("div", {"data-stage-side": "",@@ -79628,7 +79630,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {children: /* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-side-content": "",children: [- /* @__PURE__ */ (0, B.jsx)(yqe, {+ /* @__PURE__ */ (0, B.jsx)(vqe, {item: e,queue: t,helpers: r,@@ -79640,7 +79642,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-live": "polite",children: n.sourceState}),- /* @__PURE__ */ (0, B.jsx)(xqe, {+ /* @__PURE__ */ (0, B.jsx)(bqe, {item: e,write: n}),@@ -79651,7 +79653,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {children: [/* @__PURE__ */ (0, B.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "monitor" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "monitor" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.width || "?","×",e.height || "?"@@ -79659,11 +79661,11 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {}),/* @__PURE__ */ (0, B.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "hard-drive" }), /* @__PURE__ */ (0, B.jsx)("span", { children: ye(e.size || 0) })]+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "hard-drive" }), /* @__PURE__ */ (0, B.jsx)("span", { children: ye(e.size || 0) })]}),e.release_date ? /* @__PURE__ */ (0, B.jsxs)("span", {"data-spec-item": "",- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "calendar" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.release_date })]+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "calendar" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.release_date })]}) : null,e.region_label ? /* @__PURE__ */ (0, B.jsxs)("button", {type: "button",@@ -79671,22 +79673,22 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"data-open-region": e.region || "",title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",onClick: () => i.openRegion(e.region || ""),- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "globe" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "globe" }), /* @__PURE__ */ (0, B.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]}) : null]}),- /* @__PURE__ */ (0, B.jsx)(Sqe, {+ /* @__PURE__ */ (0, B.jsx)(xqe, {item: e,helpers: r,actions: i}),- /* @__PURE__ */ (0, B.jsx)(Cqe, {+ /* @__PURE__ */ (0, B.jsx)(Sqe, {item: e,write: n,helpers: r,actions: i}),- /* @__PURE__ */ (0, B.jsx)(Tqe, { item: e }),+ /* @__PURE__ */ (0, B.jsx)(wqe, { item: e }),/* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-actions": "","data-item-feedback": "",@@ -79700,7 +79702,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": !!e.liked,...o("like"),onClick: () => n.preference({ liked: !e.liked }),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "thumbs-up" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "thumbs-up" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79712,7 +79714,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-controls": "preferencePanel","data-has-reason": String(!!e.like_reason),onClick: () => c((e) => !e),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "notebook-pen" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "notebook-pen" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79723,7 +79725,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.feedback === "dislike",...o("dislike"),onClick: () => n.feedback("dislike"),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "thumbs-down" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "thumbs-down" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79734,7 +79736,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.feedback === "seen",...o("seen"),onClick: () => n.feedback("seen"),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "eye" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "eye" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79745,7 +79747,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": !!e.watch_later,...o("later"),onClick: n.later,- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: e.watch_later ? "check" : "bookmark-plus" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: e.watch_later ? "check" : "bookmark-plus" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79754,7 +79756,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-label": "加入播放列表",title: "加入播放列表",onClick: () => i.addToPlaylist(e),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "playlist" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "playlist" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79765,7 +79767,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": !!e.better_version,...o("quality"),onClick: n.quality,- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "sparkles" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "sparkles" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button",@@ -79776,11 +79778,11 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-pressed": e.disposal === "trash",...o("dispose"),onClick: () => n.feedback("dispose"),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "trash" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "trash" })})]}),- /* @__PURE__ */ (0, B.jsx)(Eqe, {+ /* @__PURE__ */ (0, B.jsx)(Tqe, {item: e,open: s,write: n@@ -79791,7 +79793,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {...o("o"),onClick: () => n.feedback("o"),children: [- /* @__PURE__ */ (0, B.jsx)(K7, { name: "sperm" }),+ /* @__PURE__ */ (0, B.jsx)(q7, { name: "sperm" }),/* @__PURE__ */ (0, B.jsx)("span", { children: "记一次高潮" }),/* @__PURE__ */ (0, B.jsx)("b", {className: "mono",@@ -79804,7 +79806,7 @@ function vqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {})});}-function yqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+function vqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {let a = (0, R.useRef)(null), [o, s] = (0, R.useState)(!1), [c, l] = (0, R.useState)(!1);(0, R.useLayoutEffect)(() => {let e = a.current;@@ -79814,7 +79816,7 @@ function yqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {}, n = new ResizeObserver(t);return n.observe(e), t(), () => n.disconnect();}, []);- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Xre(e, t);+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Yre(e, t);return /* @__PURE__ */ (0, B.jsx)("div", {"data-item-title": "",children: /* @__PURE__ */ (0, B.jsxs)("div", {@@ -79841,23 +79843,23 @@ function yqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {"aria-label": o ? "收起标题" : "展开标题",title: o ? "收起标题" : "展开完整标题",onClick: u,- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: o ? "chevron-up" : "chevron-down" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: o ? "chevron-up" : "chevron-down" })}),e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, B.jsx)("span", {"data-cover-crop-host": "",- children: /* @__PURE__ */ (0, B.jsx)(lqe, {+ children: /* @__PURE__ */ (0, B.jsx)(cqe, {code: e.cover_key || e.code || "",coverUrl: M(e),box: e.poster_box || null,onSaved: (t) => {p.invalidateQueries({- queryKey: HC(e.id),+ queryKey: UC(e.id),exact: !0- }), VC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });+ }), HC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });}})}) : null,- e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(bqe, {+ e.location === "online" ? null : /* @__PURE__ */ (0, B.jsx)(yqe, {id: e.id,actions: r,onStatus: i@@ -79867,7 +79869,7 @@ function yqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {})});}-function bqe({ id: e, actions: t, onStatus: n }) {+function yqe({ id: e, actions: t, onStatus: n }) {let [r, i] = (0, R.useState)(""), a = async () => {r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));}, o = async () => {@@ -79897,17 +79899,17 @@ function bqe({ id: e, actions: t, onStatus: n }) {"aria-disabled": !0} : {},onClick: () => void o(),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "folder-sync" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "folder-sync" })})] });}-function xqe({ item: e, write: t }) {- let n = rw(e.rating);+function bqe({ item: e, write: t }) {+ let n = iw(e.rating);return /* @__PURE__ */ (0, B.jsxs)("div", {id: "detailRating",role: "group","data-item-rating": "","aria-label": "评分",- "data-value": nw(e.rating),+ "data-value": rw(e.rating),children: [/* @__PURE__ */ (0, B.jsx)("div", {"data-rating-stars": "",children: [@@ -79924,17 +79926,17 @@ function xqe({ item: e, write: t }) {"aria-label": e === n ? `取消评分(当前 ${e} 星)` : `评为 ${e} 星`,...t.busyAttrs(`rate:${e}`),onClick: () => t.rate(e),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "star" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "star" })}, e))}), /* @__PURE__ */ (0, B.jsx)("span", {"data-rating-value": "","aria-live": "polite",- children: Hre(e.rating)+ children: Vre(e.rating)})]});}-function Sqe({ item: e, actions: t }) {- let n = (0, R.useMemo)(() => Vre(e), [e]), [r, i] = (0, R.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {+function xqe({ item: e, actions: t }) {+ let n = (0, R.useMemo)(() => Bre(e), [e]), [r, i] = (0, R.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, B.jsx)("span", {"data-id-face": "",dangerouslySetInnerHTML: { __html: `<span>${ge(n.name.slice(0, 1))}</span>` + te({@@ -79997,7 +79999,7 @@ function Sqe({ item: e, actions: t }) {onClick: t.openUnowned,children: [/* @__PURE__ */ (0, B.jsx)("span", {"data-id-face": "",- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "user-round" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "user-round" })}), /* @__PURE__ */ (0, B.jsx)("span", {"data-id-name": "",children: "未归属"@@ -80009,7 +80011,7 @@ function Sqe({ item: e, actions: t }) {size: "small",id: "castMore","data-cast-more": "",- trailingIcon: mT,+ trailingIcon: hT,"aria-expanded": !1,onClick: () => i(!0),children: [@@ -80043,19 +80045,19 @@ function Sqe({ item: e, actions: t }) {"data-entity-name": e.name,title: e.name,onClick: () => t.openEntity("series", e.name),- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]}, e.name) : /* @__PURE__ */ (0, B.jsxs)("span", {"data-series-link": "",title: e.name,- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "tags" }), /* @__PURE__ */ (0, B.jsx)("span", { children: e.name })]}, e.name))})]}) : null]});}-function Cqe({ item: e, write: t, helpers: n, actions: r }) {- let i = Wre(e, n);+function Sqe({ item: e, write: t, helpers: n, actions: r }) {+ let i = Ure(e, n);return /* @__PURE__ */ (0, B.jsxs)("div", {"data-stage-tags": "",id: "detailTags",@@ -80074,16 +80076,16 @@ function Cqe({ item: e, write: t, helpers: n, actions: r }) {"aria-label": `删除标签 ${n.tagLabel(e.k)}`,...t.busyAttrs(`tag:${e.k}`),onClick: () => t.removeTag(e),- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "x" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "x" })})]- }, e.k)), /* @__PURE__ */ (0, B.jsx)(wqe, {+ }, e.k)), /* @__PURE__ */ (0, B.jsx)(Cqe, {item: e,write: t,helpers: n})]});}-function wqe({ item: e, write: t, helpers: n }) {+function Cqe({ item: e, write: t, helpers: n }) {let r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(!1), [s, c] = (0, R.useState)(!1), [l, u] = (0, R.useState)(""), [d, f] = (0, R.useState)(""), [p, m] = (0, R.useState)(-1), h = (0, R.useCallback)(() => {i.current && Ne(i.current), c(!1);}, []);@@ -80097,7 +80099,7 @@ function wqe({ item: e, write: t, helpers: n }) {clearTimeout(t), document.removeEventListener("pointerdown", e, !0);};}, [s, h]);- let g = s ? Kre(d, n.tagCandidates(), cw()) : {+ let g = s ? Gre(d, n.tagCandidates(), lw()) : {recent: [],results: [],create: ""@@ -80125,12 +80127,12 @@ function wqe({ item: e, write: t, helpers: n }) {if (n.key === "Enter") {n.preventDefault();let r = p >= 0 ? _[p] : null;- r ? v(r, r.n !== -1 && iw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));+ r ? v(r, r.n !== -1 && aw(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));}}}, b = -1, x = (t) => {b += 1;- let r = b, i = iw(e, t.k);+ let r = b, i = aw(e, t.k);return /* @__PURE__ */ (0, B.jsxs)("button", {type: "button","data-pick": t.k,@@ -80138,7 +80140,7 @@ function wqe({ item: e, write: t, helpers: n }) {"aria-pressed": i,onClick: () => v(t, i),children: [- /* @__PURE__ */ (0, B.jsx)(K7, { name: i ? "check" : "tags" }),+ /* @__PURE__ */ (0, B.jsx)(q7, { name: i ? "check" : "tags" }),/* @__PURE__ */ (0, B.jsx)("span", {"data-pick-name": "",children: n.tagLabel(t.k)@@ -80161,7 +80163,7 @@ function wqe({ item: e, write: t, helpers: n }) {onClick: () => {i.current && (Ge(i.current), c(!0), u(""), f(""), m(-1), requestAnimationFrame(() => a.current?.focus()));},- children: /* @__PURE__ */ (0, B.jsx)(K7, { name: "plus" })+ children: /* @__PURE__ */ (0, B.jsx)(q7, { name: "plus" })}), /* @__PURE__ */ (0, B.jsxs)("div", {ref: i,id: "tagPicker",@@ -80171,7 +80173,7 @@ function wqe({ item: e, write: t, helpers: n }) {hidden: !0,children: [/* @__PURE__ */ (0, B.jsxs)("label", {"data-tag-search": "",- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "search" }), /* @__PURE__ */ (0, B.jsx)("input", {+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "search" }), /* @__PURE__ */ (0, B.jsx)("input", {ref: a,id: "tagPickSearch",maxLength: 80,@@ -80212,7 +80214,7 @@ function wqe({ item: e, write: t, helpers: n }) {onClick: () => {h(), t.addTag(g.create);},- children: [/* @__PURE__ */ (0, B.jsx)(K7, { name: "plus" }), /* @__PURE__ */ (0, B.jsxs)("span", {+ children: [/* @__PURE__ */ (0, B.jsx)(q7, { name: "plus" }), /* @__PURE__ */ (0, B.jsxs)("span", {"data-pick-name": "",children: ["新建“",@@ -80227,8 +80229,8 @@ function wqe({ item: e, write: t, helpers: n }) {})]})] });}-function Tqe({ item: e }) {- let t = eie(e);+function wqe({ item: e }) {+ let t = $re(e);return /* @__PURE__ */ (0, B.jsxs)("div", {"data-item-trace": "",children: [/* @__PURE__ */ (0, B.jsxs)("div", {@@ -80262,7 +80264,7 @@ function Tqe({ item: e }) {})]});}-function Eqe({ item: e, open: t, write: n }) {+function Tqe({ item: e, open: t, write: n }) {let [r, i] = (0, R.useState)(e.like_reason || ""), a = (0, R.useRef)(null);(0, R.useEffect)(() => {t && a.current?.focus();@@ -80301,10 +80303,10 @@ function Eqe({ item: e, open: t, write: n }) {})]});}-function Dqe(e) {+function Eqe(e) {let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = wS({- queryKey: Ire(t.id, n),- queryFn: async ({ signal: e }) => (await W(Rre(t.id, n), e)).items || []+ queryKey: Fre(t.id, n),+ queryFn: async ({ signal: e }) => (await W(Lre(t.id, n), e)).items || []}), [o] = (0, R.useState)(() => r.relatedSkeletonHtml()), s = (0, R.useCallback)((e) => {e && (Fe(e), r.wireDrag(e));}, [r]);@@ -80330,12 +80332,12 @@ function Dqe(e) {revision: 0,wireDrag: r.wireDrag,skeletonHtml: () => ""- }) : a.isError ? null : /* @__PURE__ */ (0, B.jsx)(q7, { html: o })+ }) : a.isError ? null : /* @__PURE__ */ (0, B.jsx)(J7, { html: o })})]});}-function Oqe(e, t, n) {- let r = e.id, i = HC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {+function Dqe(e, t, n) {+ let r = e.id, i = UC(r), [a, o] = (0, R.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, R.useState)(""), [l, u] = (0, R.useState)(""), d = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;}), f = () => p.getQueryData(i) || e, m = (e) => {@@ -80351,7 +80353,7 @@ function Oqe(e, t, n) {rating: t.rating,o_count: t.o_count};- return BC(r, n), t;+ return VC(r, n), t;}, h = (e, t) => G(e, {id: r,...t@@ -80366,7 +80368,7 @@ function Oqe(e, t, n) {run: n}));}, v = async (e, t) => {- let n = await h(GC, t === void 0 ? { kind: e } : {+ let n = await h(KC, t === void 0 ? { kind: e } : {kind: e,value: t});@@ -80386,21 +80388,21 @@ function Oqe(e, t, n) {"aria-disabled": !0} : {},rate: (e) => _(`rate:${e}`, "评分", async () => {- let n = f().rating || 0, r = Ure(n, e);- await v("rate", r), t.toast(r ? `已评 ${rw(r)} 星` : "已取消评分", { undo: async () => {+ let n = f().rating || 0, r = Hre(n, e);+ await v("rate", r), t.toast(r ? `已评 ${iw(r)} 星` : "已取消评分", { undo: async () => {await v("rate", n);} });}),feedback: (e) => _(e, "操作", async () => {let n = { feedback: f().feedback || null }, r = await v(e);- t.toast(uw(e, r), { undo: async () => {+ t.toast(dw(e, r), { undo: async () => {e === "o" ? await v("o-undo") : e === "dispose" ? await v("dispose") : (r.feedback && await v(r.feedback), n.feedback && await v(n.feedback)), await t.trashChanged(f().disposal || null, !0);} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);}),later: () => _("later", "更新稍后看", async () => {- let e = await h(qC, {});+ let e = await h(JC, {});m({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {- m({ watch_later: (await h(qC, {})).watch_later });+ m({ watch_later: (await h(JC, {})).watch_later });} });}),quality: () => _("quality", "更新版本需求", async () => {@@ -80410,9 +80412,9 @@ function Oqe(e, t, n) {}, n = (e) => m({better_version: e.better_version,better_version_reason: e.better_version_reason || ""- }), r = await h(JC, { wanted: !e.wanted });+ }), r = await h(YC, { wanted: !e.wanted });n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {- n(await h(JC, e));+ n(await h(YC, e));} });}),preference: ({ liked: e, reason: n }) => {@@ -80426,7 +80428,7 @@ function Oqe(e, t, n) {});u("保存中…");try {- o(await h(YC, {+ o(await h(XC, {liked: a,reason: i}));@@ -80436,7 +80438,7 @@ function Oqe(e, t, n) {u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);let s = f();t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {- o(await h(YC, r));+ o(await h(XC, r));} });});},@@ -80445,11 +80447,11 @@ function Oqe(e, t, n) {operation: "remove",tag: e.k})).ok) throw Error("标签未删除");- m((t) => aw(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {- await h(KC, {+ m((t) => ow(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {+ await h(qC, {operation: "add",tag: e.k- }), m((t) => ow(t, e));+ }), m((t) => sw(t, e));} });}),addTag: (e) => {@@ -80458,14 +80460,14 @@ function Oqe(e, t, n) {(await h("/api/item-tag", {operation: "add",tag: r- })).ok && (m((e) => ow(e, {+ })).ok && (m((e) => sw(e, {k: r,cat: "general"- })), Gre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {- await h(KC, {+ })), Wre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {+ await h(qC, {operation: "remove",tag: r- }), m((e) => aw(e, r));+ }), m((e) => ow(e, r));} }));});}@@ -80473,31 +80475,31 @@ function Oqe(e, t, n) {}//#endregion//#region src/react/stage/stage-player.ts-var Y7 = null, X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = !1, t9 = 0, n9 = null, r9 = () => !1, i9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;-function kqe(e, t) {- Y7 = e, r9 = () => t.isOpen(), n9 = () => t.requestClose(), qne({+var X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;+function Oqe(e, t) {+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), qne({...e.player,stage: () => document.getElementById("stage")}), Jne({- inMiniplayer: (e) => X7?.player === e,- kind: (e) => X7?.player === e ? X7.kind : Z7?.kind ?? Q7?.kind ?? "item",- expand: () => S9(),- toMiniplayer: () => C9()- }), a9 || (a9 = !0, addEventListener("pagehide", () => yC()));-}-var a9 = !1;-function o9() {- if (!Y7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");- return Y7;-}-function s9(e) {- Q7 = e;-}-var Aqe = () => Q7;-function c9(e, t) {- let { kind: n, item: r, media: i = null } = t, a = i9(n, r.id, i?.index ?? null);- if (X7 && X7.key === a) return jqe(e, X7);- X7 && x9();+ inMiniplayer: (e) => Z7?.player === e,+ kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",+ expand: () => C9(),+ toMiniplayer: () => w9()+ }), o9 || (o9 = !0, addEventListener("pagehide", () => bC()));+}+var o9 = !1;+function s9() {+ if (!X7) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");+ return X7;+}+function c9(e) {+ $7 = e;+}+var kqe = () => $7;+function l9(e, t) {+ let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);+ if (Z7 && Z7.key === a) return Aqe(e, Z7);+ Z7 && S9();let o = {player: null,kind: n,@@ -80505,28 +80507,28 @@ function c9(e, t) {mediaIndex: i?.index ?? null,key: a};- Z7 = o;+ Q7 = 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 = NC(s, {+ let c = PC(s, {kind: n,item: r,media: i,autoplay: t.autoplay,resume: t.resume ?? null,onPlayer: (e) => {- Z7 === o && (o.player = e);+ Q7 === o && (o.player = e);},- handedOff: (e) => X7?.player === e+ handedOff: (e) => Z7?.player === e});return () => {- let e = !!o.player && X7?.player === o.player;- Z7 === o && (Z7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), yC());+ let e = !!o.player && Z7?.player === o.player;+ Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), bC());};}-function jqe(e, t) {+function Aqe(e, t) {let { player: n } = t;- y9(t), X7 = null, b9(), n.el().classList.remove("vjs-peach-mini"), jC(e), e.append(n.el()), JS(n);+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), MC(e), e.append(n.el()), JS(n);let r = {player: n,kind: t.kind,@@ -80534,23 +80536,23 @@ function jqe(e, t) {mediaIndex: t.mediaIndex,key: t.key};- Z7 = r;- let i = MC(n, e);+ Q7 = r;+ let i = NC(n, e);return YS(n), () => {- Z7 === r && (Z7 = null), i(), X7?.player !== n && (qS() === n && JS(null), dC(n), yC());+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (qS() === n && JS(null), dC(n), bC());};}-var l9 = () => {- let e = Z7?.player;+var u9 = () => {+ let e = Q7?.player;return e && !e.isDisposed() ? e : null;};-function Mqe(e) {- let t = e9;- e9 = !1, X7?.pending && x9();- let n = Z7, r = n?.player, i = Q7;- if (!n || !r || r.isDisposed() || !i || !$7) return;- let a = o9().player.settings();- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Lqe({+function jqe(e) {+ let t = t9;+ t9 = !1, Z7?.pending && S9();+ let n = Q7, r = n?.player, i = $7;+ if (!n || !r || r.isDisposed() || !i || !e9) return;+ let a = s9().player.settings();+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Iqe({player: r,kind: n.kind,item: n.item,@@ -80558,52 +80560,52 @@ function Mqe(e) {key: n.key}, i);}-function Nqe(e, t) {- if (e9 = !1, X7) {- if (X7.kind === e && X7.item.id === t) {- X7.pending = !0, b9();+function Mqe(e, t) {+ if (t9 = !1, Z7) {+ if (Z7.kind === e && Z7.item.id === t) {+ Z7.pending = !0, x9();return;}- x9();+ S9();}}-function u9(e) {- $7 = e, $7 && _9();+function d9(e) {+ e9 = e, e9 && v9();}-var d9 = () => !!X7 && !X7.pending && !X7.player.isDisposed();-function Pqe() {- return d9() ? $7?.frame.querySelector("video") ?? null : null;+var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();+function Nqe() {+ return f9() ? e9?.frame.querySelector("video") ?? null : null;}-function Fqe() {- return r9() ? document.getElementById("stage")?.querySelector("video") ?? null : Pqe();+function Pqe() {+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Nqe();}-function f9(e) {- $7 && ($7.title.textContent = e.title || "", $7.sub.textContent = e.sub || "", $7.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));+function p9(e) {+ e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));}-function p9(e = X7?.item) {- if (!$7) return;- let t = $7.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;- $7.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);+function m9(e = Z7?.item) {+ if (!e9) return;+ let t = e9.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;+ e9.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);}-function m9() {- let e = X7?.player;- if (!e || e.isDisposed() || !$7) return;+function h9() {+ let e = Z7?.player;+ if (!e || e.isDisposed() || !e9) return;let t = e.paused();- $7.play.setAttribute("aria-label", t ? "播放" : "暂停"), $7.play.querySelector("[data-icon-swap]") || ($7.play.innerHTML = Le("player-pause", "player-play", t ? "b" : "a")), Ze($7.play, t ? "b" : "a");+ e9.play.setAttribute("aria-label", t ? "播放" : "暂停"), e9.play.querySelector("[data-icon-swap]") || (e9.play.innerHTML = Le("player-pause", "player-play", t ? "b" : "a")), Ze(e9.play, t ? "b" : "a");}-function h9() {- let e = X7?.player;- if (!e || e.isDisposed() || !$7) return;- let t = we(X7?.item.duration) || we(e.duration());- $7.time.textContent = `${_e(e.currentTime())} / ${t ? _e(t) : "0:00"}`;-}-var g9 = () => Math.max(1, Number(o9().player.settings().seekSeconds) || 10);-function _9() {- if (!$7 || !Y7) return;- let e = g9();- for (let [t, n] of [[$7.back, `后退 ${e} 秒`], [$7.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;-}-function v9(e) {+function g9() {+ let e = Z7?.player;+ if (!e || e.isDisposed() || !e9) return;+ let t = we(Z7?.item.duration) || we(e.duration());+ e9.time.textContent = `${_e(e.currentTime())} / ${t ? _e(t) : "0:00"}`;+}+var _9 = () => Math.max(1, Number(s9().player.settings().seekSeconds) || 10);+function v9() {+ if (!e9 || !X7) return;+ let e = _9();+ for (let [t, n] of [[e9.back, `后退 ${e} 秒`], [e9.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;+}+function y9(e) {let t = (t, n) => {e.player.on(t, n), e.off.push(() => {try {@@ -80615,17 +80617,17 @@ function v9(e) {"play","pause","ended"- ], m9), t([+ ], h9), t(["timeupdate","durationchange","loadedmetadata"- ], h9), t("loadedmetadata", () => p9()), m9(), h9(), p9(), _9();+ ], g9), t("loadedmetadata", () => m9()), h9(), g9(), m9(), v9();}-function y9(e) {+function b9(e) {e.off.forEach((e) => e()), e.off = [];}-function Iqe() {- let e = $7?.root;+function Fqe() {+ let e = e9?.root;if (!e) return;let t = e.hidden;if (e.hidden = !1, !t) return;@@ -80633,8 +80635,8 @@ function Iqe() {let n = () => e.removeAttribute("data-miniplayer-enter");e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);}-function b9() {- let e = $7?.root;+function x9() {+ let e = e9?.root;if (e) {e.hidden = !0;for (let t of [@@ -80645,77 +80647,77 @@ function b9() {e.style.transform = "";}}-function Lqe(e, t) {- if (!$7) return;+function Iqe(e, t) {+ if (!e9) return;let n = {...e,meta: t,off: [],pending: !1};- X7 = n, t9++, e.player.el().classList.add("vjs-peach-mini"), $7.frame.prepend(e.player.el()), f9(t), v9(n), Iqe(), YS(e.player);-}-function x9() {- let e = X7;- e && y9(e), X7 = null, t9++;- let t = e?.player ?? null;- t && qS() === t && JS(null), dC(t), t && yC(), $7?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), GS(), b9();+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Fqe(), YS(e.player);}function S9() {- if (!d9() || !X7) return;- let { kind: e, item: t, mediaIndex: n } = X7;- o9().expand(e, t.id, n);+ let e = Z7;+ e && b9(e), Z7 = null, n9++;+ let t = e?.player ?? null;+ t && qS() === t && JS(null), dC(t), t && bC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), GS(), x9();}function C9() {- if (d9() && !r9()) {- S9();+ if (!f9() || !Z7) return;+ let { kind: e, item: t, mediaIndex: n } = Z7;+ s9().expand(e, t.id, n);+}+function w9() {+ if (f9() && !i9()) {+ C9();return;}- r9() && l9() && n9 && (e9 = !0, n9());+ i9() && u9() && r9 && (t9 = !0, r9());}-function Rqe() {- let e = X7?.player;+function Lqe() {+ let e = Z7?.player;!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());}-function w9(e) {- let t = X7?.player;+function T9(e) {+ let t = Z7?.player;if (!t || t.isDisposed()) return;- let n = we(t.duration()) || we(X7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + g9() * e);+ let n = we(t.duration()) || we(Z7?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + _9() * e);t.currentTime(n ? Math.min(n, r) : r);}-function T9(e) {- return !(!d9() || !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 || o9().sourceOffline(String(e.location ?? "")));-}-async function zqe(e) {- if (!d9() || !X7 || !$7) return;- let t = ++t9, n = await pe(`/api/item?id=${e}`).catch(() => null);- if (t !== t9 || !d9() || !X7 || !$7 || !n || n.error) return;- if (!T9(n)) {- o9().openItem(e);+function E9(e) {+ return !(!f9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || s9().sourceOffline(String(e.location ?? "")));+}+async function Rqe(e) {+ if (!f9() || !Z7 || !e9) return;+ let t = ++n9, n = await pe(`/api/item?id=${e}`).catch(() => null);+ if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;+ if (!E9(n)) {+ s9().openItem(e);return;}- let r = X7;- y9(r), qS() === r.player && JS(null), dC(r.player), yC(), $7.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());+ let r = Z7;+ b9(r), qS() === r.player && JS(null), dC(r.player), bC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());let i = document.createElement("video");- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", $7.frame.prepend(i);+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);let a = {kind: "item",item: n,title: String(n.title || n.name || ""),sub: String(n.performers?.[0] || n.creator || "未归属")};- f9(a), NC(i, {+ p9(a), PC(i, {kind: "item",item: n,autoplay: !0,chrome: !1,onPlayer: (r) => {- if (t !== t9) {+ if (t !== n9) {r && qS() === r && JS(null), dC(r);return;}if (!r) {- x9(), o9().openItem(e);+ S9(), s9().openItem(e);return;}r.el().classList.add("vjs-peach-mini");@@ -80724,26 +80726,26 @@ async function zqe(e) {kind: "item",item: n,mediaIndex: null,- key: i9("item", n.id, null),+ key: a9("item", n.id, null),meta: a,off: [],pending: !1};- X7 = i, v9(i);+ Z7 = i, y9(i);}- }), p9(n);+ }), m9(n);}//#endregion//#region src/react/stage/miniplayer.tsx-var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {+var D9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, B.jsx)("use", { href: `#i-${e}` })-}), Bqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, D9 = (e) => (t) => {+}), zqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {t.stopPropagation(), e();-}, Vqe = (0, R.memo)(function() {+}, Bqe = (0, R.memo)(function() {let e = (0, R.useRef)(null), t = (0, R.useRef)(null), n = (0, R.useRef)(null), r = (0, R.useRef)(null), i = (0, R.useRef)(null), a = (0, R.useRef)(null), o = (0, R.useRef)(null), s = (0, R.useRef)(null), c = (0, R.useRef)(null), l = (0, R.useRef)(null);- return (0, R.useLayoutEffect)(() => (u9({+ return (0, R.useLayoutEffect)(() => (d9({root: e.current,frame: n.current,play: r.current,@@ -80753,7 +80755,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {title: s.current,sub: c.current,info: l.current- }), () => u9(null)), []), (0, R.useEffect)(() => Uqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {+ }), () => d9(null)), []), (0, R.useEffect)(() => Hqe(e.current, t.current), []), /* @__PURE__ */ (0, B.jsx)("aside", {ref: e,"data-miniplayer": "",id: "miniplayer",@@ -80777,24 +80779,24 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {id: "miniplayerExpand","aria-label": "展开到详情","aria-keyshortcuts": "i",- onClick: D9(S9),- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "maximize-2" })+ onClick: O9(C9),+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "maximize-2" })}),/* @__PURE__ */ (0, B.jsx)("button", {type: "button","data-miniplayer-button": "close",id: "miniplayerClose","aria-label": "关闭小窗",- onClick: D9(x9),- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "x" })+ onClick: O9(S9),+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "x" })}),/* @__PURE__ */ (0, B.jsx)("button", {ref: a,type: "button","data-miniplayer-seek": "",id: "miniplayerBack",- onClick: D9(() => w9(-1)),- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "rotate-ccw" })+ onClick: O9(() => T9(-1)),+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "rotate-ccw" })}),/* @__PURE__ */ (0, B.jsx)("button", {ref: r,@@ -80803,16 +80805,16 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {id: "miniplayerPlay","aria-label": "暂停","aria-keyshortcuts": "k",- onClick: D9(Rqe),- dangerouslySetInnerHTML: Bqe+ onClick: O9(Lqe),+ dangerouslySetInnerHTML: zqe}),/* @__PURE__ */ (0, B.jsx)("button", {ref: o,type: "button","data-miniplayer-seek": "",id: "miniplayerAhead",- onClick: D9(() => w9(1)),- children: /* @__PURE__ */ (0, B.jsx)(E9, { name: "rotate-cw" })+ onClick: O9(() => T9(1)),+ children: /* @__PURE__ */ (0, B.jsx)(D9, { name: "rotate-cw" })}),/* @__PURE__ */ (0, B.jsx)("span", {ref: i,@@ -80829,7 +80831,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {"data-miniplayer-info": "",id: "miniplayerInfo","aria-label": "展开到详情",- onClick: () => S9(),+ onClick: () => C9(),children: [/* @__PURE__ */ (0, B.jsx)("span", {ref: s,"data-miniplayer-title": "",@@ -80843,7 +80845,7 @@ var E9 = ({ name: e }) => /* @__PURE__ */ (0, B.jsx)("svg", {})});});-function Hqe(e, t, n) {+function Vqe(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@@ -80865,7 +80867,7 @@ function Hqe(e, t, n) {};e.addEventListener("transitionend", u), setTimeout(u, 600);}-function Uqe(e, t) {+function Hqe(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 = {@@ -80891,7 +80893,7 @@ function Uqe(e, t) {} catch {}i.moved && (e.dataset.dragged = "1", setTimeout(() => {delete e.dataset.dragged;- }, 0), Hqe(e, i.dx, i.dy));+ }, 0), Vqe(e, i.dx, i.dy));}, o = (t) => {e.dataset.dragged && (t.stopPropagation(), t.preventDefault());}, s = (e) => {@@ -80903,65 +80905,65 @@ function Uqe(e, t) {}//#endregion//#region src/react/stage/stage.tsx-var O9 = null, k9 = null, A9 = null, j9 = null, M9 = 0, N9 = null, P9 = !1, F9 = !1, I9 = () => {+var k9 = null, A9 = null, j9 = null, M9 = null, N9 = 0, P9 = null, F9 = !1, I9 = !1, L9 = () => {let e = document.getElementById("stage");return e instanceof HTMLDialogElement ? e : null;};-function L9() {- if (!O9) throw Error("舞台还没有接上宿主(configureStage)");- return O9;+function R9() {+ if (!k9) throw Error("舞台还没有接上宿主(configureStage)");+ return k9;}-function Wqe() {- return (!k9 || !A9?.isConnected) && (k9?.unmount(), A9 = document.createElement("div"), A9.dataset.stageHost = "", document.body.append(A9), k9 = (0, ip.createRoot)(A9)), k9;+function Uqe() {+ return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, ip.createRoot)(j9)), A9;}-function R9() {- let e = Wqe();- (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Gqe, { view: j9 }) })));+function z9() {+ let e = Uqe();+ (0, rp.flushSync)(() => e.render(/* @__PURE__ */ (0, B.jsx)(jS, { children: /* @__PURE__ */ (0, B.jsx)(Wqe, { view: M9 }) })));}-function Gqe({ view: e }) {- return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Kqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Vqe, {})] });+function Wqe({ view: e }) {+ return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [e ? /* @__PURE__ */ (0, B.jsx)(Gqe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, B.jsx)(Bqe, {})] });}-var z9 = () => /* @__PURE__ */ (0, B.jsx)("div", {+var B9 = () => /* @__PURE__ */ (0, B.jsx)("div", {"data-skeleton": "detail",role: "status","aria-label": "正在读取作品详情",- dangerouslySetInnerHTML: { __html: MKe() }+ dangerouslySetInnerHTML: { __html: jKe() }});-function B9(e) {+function V9(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 Kqe({ view: e }) {+function Gqe({ view: e }) {let t = (0, R.useRef)(null);(0, R.useLayoutEffect)(() => {let e = t.current, n = (e) => {- e.preventDefault(), V9();+ e.preventDefault(), H9();};return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);}, []);- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(dqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)($Ke, { ...r.props });+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, B.jsx)(uqe, { ...r.props }) : /* @__PURE__ */ (0, B.jsx)(QKe, { ...r.props });return /* @__PURE__ */ (0, B.jsxs)("dialog", {ref: t,id: "stage","data-stage": "","aria-label": "作品详情",onKeyDown: (e) => {- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), V9());+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), H9());},onPointerDown: (e) => {- F9 = B9(e);+ I9 = V9(e);},onClick: (e) => {- F9 && B9(e) && V9();+ I9 && V9(e) && H9();},children: [- n === "skeleton" ? /* @__PURE__ */ (0, B.jsx)(z9, {}, "skeleton") : null,+ n === "skeleton" ? /* @__PURE__ */ (0, B.jsx)(B9, {}, "skeleton") : null,n === "reveal" ? /* @__PURE__ */ (0, B.jsx)("div", {"data-stage-fade": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, B.jsx)(z9, {})+ children: /* @__PURE__ */ (0, B.jsx)(B9, {})}, "fade") : null,n === "skeleton" ? null : /* @__PURE__ */ (0, B.jsx)("div", {"data-stage-scroll": "",@@ -80973,32 +80975,32 @@ function Kqe({ view: e }) {]});}-function V9() {- !j9 || P9 || (P9 = !0, j9.request.actions.close());+function H9() {+ !M9 || F9 || (F9 = !0, M9.request.actions.close());}-function H9(e, t) {- let n = I9();+function U9(e, t) {+ let n = L9();n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);}-function qqe(e) {+function Kqe(e) {let t = e.resume ?? null, n = (n) => {let r = t && (e.id == null || e.id === n) ? t : null;return t = null, r;- }, r = () => L9().player.settings();+ }, r = () => R9().player.settings();if (e.kind === "item") {let { kind: t, resume: i, actions: a, ...o } = e, s = {...a,- close: V9,+ close: H9,present: (e, t) => {let n = e.performers;- s9({+ c9({kind: "item",item: e,title: String(e.title || e.name || ""),sub: String(n?.[0] || e.creator || "未归属")- }), H9(r().ambientMode, r().theaterMode), a.present(e, t);+ }), U9(r().ambientMode, r().theaterMode), a.present(e, t);},- mountPlayer: (e, t, r, i) => c9(e, {+ mountPlayer: (e, t, r, i) => l9(e, {kind: "item",item: t,autoplay: i?.autoplay,@@ -81016,16 +81018,16 @@ function qqe(e) {}let { kind: i, resume: a, actions: o, ...s } = e, c = {...o,- close: V9,+ close: H9,present: (e, t) => {- s9({+ c9({kind: "follow",item: e,title: e.title || "",sub: e.author || e.source_label || ""- }), H9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);+ }), U9(t === "video" && r().ambientMode, t === "video" && r().theaterMode), o.present(e, t);},- mountPlayer: (e, t, r, i) => c9(e, {+ mountPlayer: (e, t, r, i) => l9(e, {kind: "follow",item: t,media: r,@@ -81042,48 +81044,48 @@ function qqe(e) {}};}-function Jqe(e, t) {+function qqe(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"), j9?.generation === t && j9.phase === "reveal" && (j9 = {- ...j9,+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), M9?.generation === t && M9.phase === "reveal" && (M9 = {+ ...M9,phase: "content"- }, R9());+ }, z9());}, a = (e) => {e.target === n && i();};n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);}-async function Yqe(e) {- j9 && U9({ miniplayer: !1 });- let t = ++M9, n = new AbortController();- N9 = n, P9 = !1, F9 = !1, Nqe(e.kind, e.id ?? NaN), j9 = {+async function Jqe(e) {+ M9 && W9({ miniplayer: !1 });+ let t = ++N9, n = new AbortController();+ P9 = n, F9 = !1, I9 = !1, Mqe(e.kind, e.id ?? NaN), M9 = {generation: t,request: e,- content: qqe(e),+ content: Kqe(e),phase: "skeleton"- }, R9();- let r = I9();+ }, z9();+ let r = L9();if (!r) return;Fe(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();- let i = j9.content;+ let i = M9.content;try {- i.kind === "item" ? await Bre(i.props, n.signal) : await IKe(i.props, n.signal);+ i.kind === "item" ? await zre(i.props, n.signal) : await FKe(i.props, n.signal);} catch {if (n.signal.aborted) return;}- if (t !== M9 || !j9) return;+ if (t !== N9 || !M9) return;let a = !!r.querySelector(".skeleton-awaiting");- j9 = {- ...j9,+ M9 = {+ ...M9,phase: a ? "content" : "reveal"- }, R9(), a || Jqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, z9(), a || qqe(r, t), Ke(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");let o = document.activeElement;(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();}-function Xqe() {- let e = I9();+function Yqe() {+ let e = L9();return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {let n = 0, r = () => {clearTimeout(n), e.removeEventListener("animationend", i), t();@@ -81093,77 +81095,77 @@ function Xqe() {e.addEventListener("animationend", i), n = window.setTimeout(r, 380);}));}-function U9({ miniplayer: e = !0 } = {}) {- if (M9++, N9?.abort(), N9 = null, Mqe(e), !j9) return;- let t = I9();- t && ue(t), GS(), t?.open && t.close(), j9 = null, P9 = !1, F9 = !1, R9(), s9(null), document.body.removeAttribute("data-detail-open");+function W9({ miniplayer: e = !0 } = {}) {+ if (N9++, P9?.abort(), P9 = null, jqe(e), !M9) return;+ let t = L9();+ t && ue(t), GS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");}-function Zqe(e) {- !j9 || j9.content.kind !== "item" || (j9 = {- ...j9,+function Xqe(e) {+ !M9 || M9.content.kind !== "item" || (M9 = {+ ...M9,content: {kind: "item",props: {- ...j9.content.props,+ ...M9.content.props,...e}}- }, R9());+ }, z9());}-function Qqe() {- let e = Aqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, L9().player.settings().javImage) : "";+function Zqe() {+ let e = kqe(), t = e?.kind === "item" ? e.item : null, n = t ? N(t, R9().player.settings().javImage) : "";if (!n) return;- let r = l9();+ let r = u9();r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);}-var $qe = {- open: Yqe,- update: Zqe,- exit: Xqe,- dispose: U9,- requestClose: V9,- repaintPoster: Qqe,- isOpen: () => !!j9,- activeVideo: () => Fqe(),+var Qqe = {+ open: Jqe,+ update: Xqe,+ exit: Yqe,+ dispose: W9,+ requestClose: H9,+ repaintPoster: Zqe,+ isOpen: () => !!M9,+ activeVideo: () => Pqe(),toggleTheater: () => {- j9 && uC(!L9().player.settings().theaterMode);+ M9 && uC(!R9().player.settings().theaterMode);},- toggleMiniplayer: () => C9(),- closeMiniplayer: () => x9(),- miniplayerActive: () => d9(),- miniplayerTakesCard: (e) => T9(e),+ toggleMiniplayer: () => w9(),+ closeMiniplayer: () => S9(),+ miniplayerActive: () => f9(),+ miniplayerTakesCard: (e) => E9(e),miniplayerPlay: (e) => {- zqe(e);+ Rqe(e);}};-function eJe(e) {- return O9 = e, kqe(e, {- isOpen: () => !!j9,- requestClose: V9- }), R9(), $qe;+function $qe(e) {+ return k9 = e, Oqe(e, {+ isOpen: () => !!M9,+ requestClose: H9+ }), z9(), Qqe;}//#endregion//#region node_modules/sonner/dist/index.mjs-function tJe(e) {+function eJe(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 nJe = (e) => {+var tJe = (e) => {switch (e) {- case "success": return aJe;- case "info": return sJe;- case "warning": return oJe;- case "error": return cJe;+ case "success": return iJe;+ case "info": return oJe;+ case "warning": return aJe;+ case "error": return sJe;default: return null;}-}, rJe = Array(12).fill(0), iJe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {+}, nJe = Array(12).fill(0), rJe = ({ visible: e, className: t }) => /*#__PURE__*/ R.createElement("div", {className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),"data-visible": e-}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, rJe.map((e, t) => /*#__PURE__*/ R.createElement("div", {+}, /*#__PURE__*/ R.createElement("div", { className: "sonner-spinner" }, nJe.map((e, t) => /*#__PURE__*/ R.createElement("div", {className: "sonner-loading-bar",key: `spinner-bar-${t}`-})))), aJe = /*#__PURE__*/ R.createElement("svg", {+})))), iJe = /*#__PURE__*/ R.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81174,7 +81176,7 @@ var nJe = (e) => {fillRule: "evenodd",d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule: "evenodd"-})), oJe = /*#__PURE__*/ R.createElement("svg", {+})), aJe = /*#__PURE__*/ R.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 24 24",fill: "currentColor",@@ -81185,7 +81187,7 @@ var nJe = (e) => {fillRule: "evenodd",d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule: "evenodd"-})), sJe = /*#__PURE__*/ R.createElement("svg", {+})), oJe = /*#__PURE__*/ R.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81196,7 +81198,7 @@ var nJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule: "evenodd"-})), cJe = /*#__PURE__*/ R.createElement("svg", {+})), sJe = /*#__PURE__*/ R.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81207,7 +81209,7 @@ var nJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule: "evenodd"-})), lJe = /*#__PURE__*/ R.createElement("svg", {+})), cJe = /*#__PURE__*/ R.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",width: "12",height: "12",@@ -81228,7 +81230,7 @@ var nJe = (e) => {y1: "6",x2: "18",y2: "18"-})), uJe = () => {+})), lJe = () => {let [e, t] = R.useState(document.hidden);return R.useEffect(() => {let e = () => {@@ -81236,7 +81238,7 @@ var nJe = (e) => {};return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);}, []), e;-}, dJe = 1, fJe = 100, W9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : dJe++, G9 = new class {+}, uJe = 1, dJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : uJe++, K9 = new class {constructor() {this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {let t = this.subscribers.indexOf(e);@@ -81246,10 +81248,10 @@ var nJe = (e) => {}, this.addToast = (e) => {this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();}, this.trimHistory = () => {- let e = this.toasts.length - fJe;+ let e = this.toasts.length - dJe;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 = W9(e), i = this.pendingDismissals.get(r);+ let { message: t, ...n } = e, r = G9(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({@@ -81368,7 +81370,7 @@ var nJe = (e) => {}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });}, this.custom = (e, t) => {- let n = W9(t);+ let n = G9(t);return this.create({...t,jsx: e(n),@@ -81377,21 +81379,21 @@ var nJe = (e) => {}), n;}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();}-}(), K9 = (e, t) => G9.message(e, t), pJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(K9, {- success: G9.success,- info: G9.info,- warning: G9.warning,- error: G9.error,- custom: G9.custom,- message: G9.message,- promise: G9.promise,- dismiss: G9.dismiss,- loading: G9.loading+}(), fJe = (e, t) => K9.message(e, t), pJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(fJe, {+ success: K9.success,+ info: K9.info,+ warning: K9.warning,+ error: K9.error,+ custom: K9.custom,+ message: K9.message,+ promise: K9.promise,+ dismiss: K9.dismiss,+ loading: K9.loading}, {- getHistory: () => G9.toasts,- getToasts: () => G9.getActiveToasts()+ getHistory: () => K9.toasts,+ getToasts: () => K9.getActiveToasts()});-tJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");+eJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function J9(e) {return e.label !== void 0;}@@ -81404,7 +81406,7 @@ function xJe(e) {return t && r.push(t), n && r.push(n), r;}var SJe = (e) => {- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = uJe(), De = R.useMemo(() => e.swipeDirections ?? xJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = R.useState(null), [O, k] = R.useState(null), [A, j] = R.useState(!1), [M, N] = R.useState(!1), [ee, te] = R.useState(!1), [P, F] = R.useState(!1), [ne, re] = R.useState(!1), [ie, ae] = R.useState(0), [oe, se] = R.useState(0), ce = R.useRef(n.duration || y || Y9), le = R.useRef(null), ue = R.useRef(null), de = c === 0, fe = c + 1 <= o, I = n.type, pe = I ?? "default", me = n.dismissible !== !1, he = n.className || "", ge = n.descriptionClassName || "", _e = R.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ve = R.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), ye = R.useMemo(() => n.duration || y || Y9, [n.duration, y]), be = R.useRef(0), L = R.useRef(0), xe = R.useRef(0), Se = R.useRef(null), [Ce, we] = b.split("-"), Te = R.useMemo(() => s.reduce((e, t, n) => n >= _e ? e : e + t.height, 0), [s, _e]), Ee = lJe(), De = R.useMemo(() => e.swipeDirections ?? xJe(b), [e.swipeDirections, b]), Oe = n.invert || t, ke = I === "loading";L.current = R.useMemo(() => _e * x + Te, [_e, Te]), R.useEffect(() => {ce.current = ye;}, [ye]), R.useEffect(() => {@@ -81478,12 +81480,12 @@ var SJe = (e) => {return w?.loading ? /*#__PURE__*/ R.createElement("div", {className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": I === "loading"- }, w.loading) : /*#__PURE__*/ R.createElement(iJe, {+ }, w.loading) : /*#__PURE__*/ R.createElement(rJe, {className: X9(C?.loader, n?.classNames?.loader),visible: I === "loading"});}- let Me = n.icon || w?.[I] || nJe(I);+ let Me = n.icon || w?.[I] || tJe(I);return /*#__PURE__*/ R.createElement("li", {tabIndex: 0,ref: ue,@@ -81571,7 +81573,7 @@ var SJe = (e) => {Ae(), n.onDismiss == null || n.onDismiss.call(n, n);},className: X9(C?.closeButton, n?.classNames?.closeButton)- }, w?.close ?? lJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {+ }, w?.close ?? cJe) : null, (I || n.icon || n.promise) && n.icon !== null && (w?.[I] !== null || n.icon) ? /*#__PURE__*/ R.createElement("div", {"data-icon": "",className: X9(C?.icon, n?.classNames?.icon)}, I === "loading" ? n.icon || je() : n.promise ? je() : null, I === "loading" ? null : Me) : null, /*#__PURE__*/ R.createElement("div", {@@ -81632,9 +81634,9 @@ function CJe(e, t) {}var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = mJe, toastOptions: g, dir: _ = Z9(), gap: v = vJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = R.useState([]), w = R.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = R.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = R.useState([]), [O, k] = R.useState(!1), [A, j] = R.useState(!1), [M, N] = R.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), ee = R.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = R.useRef(null), F = R.useRef(!1), ne = R.useCallback((e) => {- C((t) => (t.find((t) => t.id === e.id)?.delete || G9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));+ C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));}, []);- return R.useEffect(() => G9.subscribe((e) => {+ return R.useEffect(() => K9.subscribe((e) => {if (e.dismiss) {requestAnimationFrame(() => {C((t) => t.map((t) => t.id === e.id ? {@@ -81808,4 +81810,4 @@ var wJe = /*#__PURE__*/ R.forwardRef(function(e, t) {});};//#endregion-export { Une as configureBatchDock, Gne as configureGlowPicker, Mie as configureImmerse, Vie as configureManageHeader, LGe as configureRouter, iKe as configureSettingsPanel, yKe as configureSidebar, eJe as configureStage, TJe as mountToaster, vWe as prefetchManagedRoute, EJe as showToast };+export { Une as configureBatchDock, Gne as configureGlowPicker, jie as configureImmerse, Bie as configureManageHeader, LGe as configureRouter, iKe as configureSettingsPanel, vKe as configureSidebar, $qe as configureStage, TJe as mountToaster, vWe as prefetchManagedRoute, EJe as showToast };diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex 06e093c37..79dd7eccb 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -4743,7 +4743,7 @@ function Os({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:}[e] : "") || {tags: "标签",performers: "艺人",- creators: "卖家与动画作者",+ creators: "卖家",studios: "厂牌",agencies: "事务所",series: "系列"