Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(jav-browser): 用户脚本在女优页订阅新作,按名字订阅不再被 JavDB 搜索卡住

longmeidaode6a20d900b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba732d5fe..a38de079d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,7 @@ Removed / Fixed / Security。
- **采集**:用户脚本添加的任务结束后,完成或失败会一直留在浮卡的「其他任务」里,直到在脚本里标为已读;窗口全关时结束的,下次打开也能看到,失败的也能在脚本里直接重试。需要用户脚本 0.7.2 起的版本;任务中心、想要清单等别处提交的仍只显示 10 分钟。
- **更新**:Docker 部署可以在配置页一键更新。用 `docker compose --profile watchtower up -d` 启动 `compose.yaml` 新增的可选 Watchtower,Peach 自动配好它,不用填任何设置;检查到新镜像时点「一键更新」,Watchtower 拉取镜像并重建 Peach 容器,`/data` 保留,有待执行的数据库迁移时启动前先备份。容器里检查更新改以 Docker Hub 为准,发布页已有新版、镜像还没推送时显示「镜像尚未发布」。没有启用 Watchtower 时仍列出宿主机上的两步命令。Watchtower 能管理宿主机上的容器,启用前先读 [Docker 部署](docs/DOCKER.md#一键更新可选-watchtower)。
- **配置**:Windows 源码运行缺 FFmpeg 或 untrunc 时,「应用与维护」的「运行信息」里可以直接点「安装」:Peach 下载发布页上的同一份工具包,经 Peach 代理出网、校验后装进数据目录的 `tools`,装好那一行显示版本,不用再自己下载解压。macOS、Linux 没有发布的工具包,仍给官方下载链接。
+- **关注**:在 JavDB、DMM、MISSAV 的女优页上,用户脚本可以直接订阅她的新作(需要用户脚本 0.7.3 起)。JavDB 与 DMM 页按页面上的站内编号认人,Peach 里还没有她时新建并订上;MISSAV 页只有名字,库里有编号的直接订,否则到 JavDB 搜,确认是同一个人才订,同名不止一位时请到她的 JavDB 页订。
### 变更
@@ -48,6 +49,8 @@ Removed / Fixed / Security。
### 修复
+- **关注**:订阅源页签「添加 JAV 订阅」在 JavDB 冷却、限流或回登入页时,如果名字认得出数据库里已有 JavDB 或 DMM 编号的女优,可以直接订阅她,不再整次报错、订不上。
+- **界面**:人物页的 JavDB 与 MISSAV 入口不再落到旧艺名(#271)。名字是纯汉字的女优,资料站记下的现名就是她的日文艺名,MISSAV 不再改用旧艺名(如森日向子曾指向「白石アイリ」);JavDB 有几个演员页时,作品上署过名的那页排第一,旧艺名的空页排后面。
- **采集**:新作页资源区里 JavDB 磁链区的条目显示实际大小(如 4.12GB),不再一律写「大小未知」。
- **采集**:HEYZO 编号小于 1000 的影片(如 `HEYZO-0707`)不再被收成三位、查不到资料;升级时把已入库的三位写法改回四位并重新处理,手改过的番号不动。
- **播放**:生成过时间轴缩略图的视频,详情页进度条预览只显示指向时刻的那一格,不再把一整行画面挤在一个框里。
diff --git a/docs/JAV_BROWSER.md b/docs/JAV_BROWSER.md
index f7dffade1..4476fa5fc 100644
--- a/docs/JAV_BROWSER.md
+++ b/docs/JAV_BROWSER.md
@@ -48,6 +48,8 @@ Peach 配置页通过同源桥接页检测脚本版本和是否已为当前地
`POST /api/jav-browser/postprocess` 接收 `{"code": "..."}`,重试这个番号入库后失败的整理,与任务中心的「重试整理」同一入口,返回状态接口同一结构;没有失败的整理时返回 400。
+女优页的「订阅新作」走 `GET /api/jav-browser/performer?source_url=…&names=…` 与 `POST /api/jav-browser/performer`(正文 `{"source_url": "…", "names": [...], "enabled": true}`),两者都回 `{name, entity_id, following, avatar?}`。支持 JavDB 演员页 `/actors/<id>`、DMM 女优片单 `?actress=<编号>` 与旧版 `article=actress/id=<编号>`、MISSAV 女优页 `/actresses/<名字>`;`names` 是页面上的女优名,JavDB 标题栏的几种写法与 MISSAV 的「现名(旧名)」都会拆开。认人先看页面编号的持有者,再按名字认正名或唯一别名;编号没人持有时新建她并绑上编号,DMM 页没给名字时向 DMM 问。只有名字的页面,库里有编号的直接订,否则到 JavDB 搜,名字对得上又确认是同一个人才登记,同名不止一位、搜不到或 JavDB 冷却时返回 400 与原因。取舍见 [ADR-0143](adr/0143-userscript-performer-pages-subscribe.md)。
+
脚本通过专用令牌向 `POST /api/jav-browser/errors` 写入请求超时、连接失败、HTTP 拒绝和无效响应记录。记录只含发生时间、事件标识、脚本版本、站点标识、番号、操作类型、耗时和 HTTP 状态,不含令牌、账号、完整来源地址、页面正文或原始异常。每批最多 10 条、16 KiB,服务端每分钟最多接收 20 条并按事件标识去重;仅写本机 `errors-*.log`,随导出诊断包提供。脚本管理器暂存最多 20 条、保留 7 天,后续请求成功时按一分钟限频向原 Peach 地址补报;记录失败不重试添加,也不递归生成错误。
## 配置来源与显示条件
diff --git a/docs/ROUTES.md b/docs/ROUTES.md
index c7f0f6c28..866ebcddb 100644
--- a/docs/ROUTES.md
+++ b/docs/ROUTES.md
@@ -114,7 +114,7 @@
设置分区可直接打开、刷新和用浏览器前进后退。偏好面板从当前页面打开时保留背景;配置分区复用配置页及其权限检查。配置分类导航停在搜索栏下方,切换分类时显示所选分区的开头。
-用户脚本通过专用令牌调用 `POST /api/jav-browser/errors`,仅接收白名单错误字段并写入本机日志;批次、体积、限频与诊断包范围见 [浏览器添加 JAV](JAV_BROWSER.md)。状态接口 `GET /api/jav-browser` 同时投影真实下载与整理进度,`GET /api/jav-browser/active` 以同一结构列出进行中与最近结束的任务,均不授予配置、账号或账本写入权限。`POST /api/jav-browser/postprocess` 只能重试该番号已失败的整理,走任务中心同一入口。`POST /api/jav-browser/dismiss` 只记下脚本确认过哪些已结束的任务,不改任务与账本。
+用户脚本通过专用令牌调用 `POST /api/jav-browser/errors`,仅接收白名单错误字段并写入本机日志;批次、体积、限频与诊断包范围见 [浏览器添加 JAV](JAV_BROWSER.md)。状态接口 `GET /api/jav-browser` 同时投影真实下载与整理进度,`GET /api/jav-browser/active` 以同一结构列出进行中与最近结束的任务,均不授予配置、账号或账本写入权限。`POST /api/jav-browser/postprocess` 只能重试该番号已失败的整理,走任务中心同一入口。`POST /api/jav-browser/dismiss` 只记下脚本确认过哪些已结束的任务,不改任务与账本。`GET`/`POST /api/jav-browser/performer` 认出女优页是哪位并开关她的「订阅新作」,与人物页开关同一套订阅;编号没人持有时会新建女优并绑上编号,规则见 ADR-0143。
`GET /api/review/auto-landings` 逐条列出 ADR-0139 两条规则仍在的自动写入:作品、封面地址、写入的字段与值、写入前的值或补上的标签、规则与时间;带 `items=<决定键>`(换行分隔)时只读返回这几条要改回的值、要删的标签、写入后被改过或已删除而不动的作品,以及计划摘要 `token`。`POST /api/review/auto-landings/revert` 接收 `items` 与 `token`,在写锁里重算计划,对不上返回 400 要求重新预览;对上后先备份账本再撤回,回执带备份文件名与未改动的作品。列表里没有的决定键一律拒绝,其余自动落库来源仍由 `scripts/revert_auto_landing.py` 撤回;只读端拒绝撤回(ADR-0141)。
diff --git a/docs/adr/0143-userscript-performer-pages-subscribe.md b/docs/adr/0143-userscript-performer-pages-subscribe.md
new file mode 100644
index 000000000..432e2df18
--- /dev/null
+++ b/docs/adr/0143-userscript-performer-pages-subscribe.md
@@ -0,0 +1,52 @@
+# ADR-0143:用户脚本在女优页订阅新作,只有名字时由 JavDB 确认唯一一人
+
+- 状态:Accepted
+- 日期:2026-11-05
+- 关系:放宽 [ADR-0083](0083-feed-subscriptions-by-name-create-performers.md)「由查找结果直接建,
+ 不让用户勾」这一条否决,只限用户脚本的女优页;订阅源页签照旧由用户勾卡。订阅地址仍由服务端按
+ JavDB 演员 id 与 DMM 女优编号现拼(ADR-0047、ADR-0135)。
+
+## 背景
+
+用户在 JavDB、DMM、MISSAV 等站浏览女优页时,想直接把她加入 Peach 的新作订阅,不必回到 Peach
+搜名字、勾演员卡。三类页面带的身份不一样:JavDB 演员页地址里有站内 id,DMM 女优片单地址里有
+女优编号,MISSAV 女优页只有名字。
+
+另有反馈说订阅女优「搜不到」。按名字订阅只靠 JavDB 演员搜索,JavDB 冷却、限流或回登入页时
+整条路都走不通,连库里认得出、已有编号的人也订不了。
+
+## 决策
+
+**一、脚本专用端点。** `GET /api/jav-browser/performer?source_url=…&names=…` 认人并回订阅状态,
+`POST /api/jav-browser/performer` 订阅或取消。两者用浏览器添加的专用令牌,不收订阅地址。
+
+**二、按页面编号认人。** JavDB 演员 id 与 DMM 女优编号(`dmm`、`r18dev` 同一套)已在谁名下就是谁;
+没人持有时按页面名字认正名或唯一别名,认不出就新建她,并绑上这个编号。DMM 页没给名字时按编号向
+DMM 问她的名字。这和用户在订阅源页签勾一张卡是同一件事:页面本身就是那个人。
+
+**三、只有名字时由 JavDB 确认唯一一人。** 库里认得出、又已有编号的直接订。否则按名字到 JavDB
+搜演员卡,名字对得上、且 `one_person` 判为同一个人的那几张才登记并订;同名不止一位或搜不到时
+不猜,请用户到她的 JavDB 演员页订。用户 2026-11-05 要求这条路「能确认是一人才添加」。
+
+**四、按名字订阅不被 JavDB 搜索卡住。** 订阅源页签的查找在 JavDB 搜不成时,如果名字认得出库里
+已有编号的她,返回她并说明 JavDB 没搜成的原因,页面给出「订阅库里的她」。
+
+## 理由
+
+- ADR-0083 否决自动选卡,是因为输入的名字可能指同名的另一位。女优页的名字来自她本人的页面,
+ 再要求 JavDB 上名字对得上的卡只有一个人,挂错人的余地与用户在页签里看卡勾选相当。
+- 编号比名字硬:有编号的页面不经搜索,JavDB 冷却时也能订。
+
+## 被否决的方案
+
+- **只有名字时也新建实体、等资料后继补编号。** 订阅要编号才拉得到新作,新建一位订不上的人只会
+ 多出一条空订阅。
+- **MISSAV 页搜到多张卡时让脚本列出来勾。** 浮卡放不下卡片列表;同名多位时交给 JavDB 演员页,
+ 那里的地址自带 id。
+
+## 后果
+
+- `web_feeds` 公开 `subscribe_performer`、`fetch_new_sources`、`subscribable` 与
+ `create_followed_performer`,人物页开关、订阅源页签与脚本端点共用。
+- 按 DMM 编号新建的女优只有 DMM 片单一个订阅源,JavDB 演员页等资料后继绑上 id 后在下一轮补订。
+- `tests/test_feeds_web.py` 的 `PerformerPageFollowTest` 钉住地址解析、三类认人与拒绝条件。
diff --git a/frontend/src/react/follow-manage/add-feed.tsx b/frontend/src/react/follow-manage/add-feed.tsx
index 85a41f032..35085c6f8 100644
--- a/frontend/src/react/follow-manage/add-feed.tsx
+++ b/frontend/src/react/follow-manage/add-feed.tsx
@@ -2,7 +2,10 @@
*
* 查找只是列出候选、不写任何东西:同名的人站上可能不止一位,替用户决定「就是这个」是错的。
* 名字对得上、又只有一个人的那几张先勾上,其余的要用户自己点。地址仍由服务端按勾选的 id 拼,
- * 页面从头到尾不送地址。这位在数据库里不存在也可以订:服务端会新建她。 */
+ * 页面从头到尾不送地址。这位在数据库里不存在也可以订:服务端会新建她。
+ *
+ * 数据库里认得出、又已有 JavDB 演员页或 DMM 编号的人不必靠搜索:JavDB 冷却搜不成或搜不到时,
+ * 照样给出「订阅库里的她」,和人物页的开关是同一个动作。 */
import { useState } from 'react';
import type { KeyboardEvent } from 'react';
import { RiSearchLine } from '@remixicon/react';
@@ -17,7 +20,7 @@ import { Note } from '../components/note';
import { ExternalLink, FieldLabel, Help } from '../settings/section';
import { busyProps, useAction } from '../settings/use-action';
import { composingKey } from '../components/ime';
-import { followFeedByName, lookupFeedActor, type FeedCandidate, type FeedLookup } from './follow-manage';
+import { followFeedByName, followFeedEntity, lookupFeedActor, type FeedCandidate, type FeedLookup } from './follow-manage';
const PLACEHOLDER = '输入女优名,到 JavDB 找她的演员页';
const TITLE = '添加 JAV 订阅';
@@ -91,7 +94,20 @@ export function AddFeed({ readOnly, toast, onAdded }: AddFeedProps) {
});
};
+ const followKnown = () => {
+ const known = result?.known;
+ if (!known) return;
+ void action.run('known', (signal) => followFeedEntity(known.id, signal), () => {
+ toast(`已订阅「${known.name}」的新作`);
+ setName('');
+ close();
+ onAdded();
+ });
+ };
+
const where = result ? destination(result, picked) : null;
+ /* 没有可勾的卡(搜不成或搜不到)时,库里能直接订的她就是这一次的去处。 */
+ const direct = result && !result.candidates.length && result.known?.subscribable ? result.known : null;
return (
/* 和「添加关注」那一块同一个形:一张填充卡,标题在卡里。 */
@@ -110,6 +126,7 @@ export function AddFeed({ readOnly, toast, onAdded }: AddFeedProps) {
{result ? (
<div className="flex flex-col gap-3">
+ {result.unavailable ? <Note tone="warning" title="JavDB 这一次没有搜成">{result.unavailable}</Note> : null}
<FieldLabel>JavDB 上的演员卡</FieldLabel>
{result.candidates.length ? result.candidates.map((card) => (
<CandidateRow key={card.id} card={card} picked={picked.has(card.id)}
@@ -118,16 +135,25 @@ export function AddFeed({ readOnly, toast, onAdded }: AddFeedProps) {
if (on) next.add(card.id); else next.delete(card.id);
return next;
})} />
- )) : <Help>JavDB 上没有搜到这个名字。</Help>}
+ )) : <Help>{result.unavailable ? '这一次没有拿到演员卡。' : 'JavDB 上没有搜到这个名字。'}</Help>}
{result.candidates.length ? (
<Help role="status">{picked.size ? where!.text : '勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。'}</Help>
) : null}
+ {direct ? (
+ <Help role="status">{direct.following
+ ? `数据库里的「${direct.name}」已经在订阅新作。`
+ : `数据库里的「${direct.name}」已有 JavDB 或 DMM 编号,可以直接订阅。`}</Help>
+ ) : null}
<div className="flex flex-wrap items-center gap-2">
<Button variant="secondary" size="small" onClick={close}>关闭</Button>
{result.candidates.length ? (
<Button variant="primary" size="small" disabled={readOnly || !picked.size || where!.blocked}
{...busyProps(action.busy === 'follow')} onClick={add}>{`添加订阅(${picked.size})`}</Button>
) : null}
+ {direct && !direct.following ? (
+ <Button variant="primary" size="small" disabled={readOnly}
+ {...busyProps(action.busy === 'known')} onClick={followKnown}>{`订阅「${direct.name}」`}</Button>
+ ) : null}
</div>
</div>
) : null}
diff --git a/frontend/src/react/follow-manage/follow-manage.ts b/frontend/src/react/follow-manage/follow-manage.ts
index fe248d4a4..3be7467bd 100644
--- a/frontend/src/react/follow-manage/follow-manage.ts
+++ b/frontend/src/react/follow-manage/follow-manage.ts
@@ -550,8 +550,11 @@ export interface FeedLookup {
candidates: FeedCandidate[];
/** 名字对得上、又只有一个人的那几张,先替用户勾上;同名不止一位时是空的。 */
suggested: string[];
- /** 数据库里按这个名字认得出的那位;认不出是 null,登记时会新建。 */
- known: { id: number; name: string } | null;
+ /** 数据库里按这个名字认得出的那位;认不出是 null,登记时会新建。`subscribable` 是她已有
+ * JavDB 演员页或 DMM 编号、不经搜索就能订,`following` 是已经在订。 */
+ known: { id: number; name: string; subscribable: boolean; following: boolean } | null;
+ /** JavDB 这一趟没搜成的原因;只在库里的她能直接订时随结果一起回来,否则整次查找报错。 */
+ unavailable?: string;
}
export const lookupFeedActor = (name: string, signal?: AbortSignal) =>
@@ -569,6 +572,11 @@ export interface FeedFollowed {
export const followFeedByName = (name: string, ids: string[], signal?: AbortSignal) =>
apiSend<FeedFollowed>(FEED_SOURCE_URL, { action: 'follow-name', name, ids }, 'POST', signal);
+/** 按库里认出的这位直接订,和人物页「订阅新作」开关同一个动作。 */
+export const followFeedEntity = (entityId: number, signal?: AbortSignal) =>
+ apiSend<{ entity_id: number; following: boolean; sources: number[] }>(
+ FEED_SOURCE_URL, { action: 'follow', entity_id: entityId, enabled: true }, 'POST', signal);
+
/** 首屏:创作者来源、JAV 订阅与凭据状态取回来才画。
*
* 两趟后台任务不在首屏里:它们的快照常年躺着上一趟的回执,等它们只会让首屏多等一个
diff --git a/frontend/test/react/follow-manage.test.tsx b/frontend/test/react/follow-manage.test.tsx
index 292890cce..9d60a39b8 100644
--- a/frontend/test/react/follow-manage.test.tsx
+++ b/frontend/test/react/follow-manage.test.tsx
@@ -985,7 +985,7 @@ function nameField(root: ParentNode): HTMLInputElement {
const actorPanel = (root: ParentNode) => root.querySelector('section[aria-label="添加 JAV 订阅"]')!;
-const card = (id: string, names: string[], record = '', held_by: FeedLookup['known'] = null) =>
+const card = (id: string, names: string[], record = '', held_by: { id: number; name: string } | null = null) =>
({ id, names, record, url: `https://javdb.com/actors/${id}`, held_by, matched: [] });
const LOOKUP: FeedLookup = {
@@ -1098,6 +1098,23 @@ it('回车也是查找;勾的卡已在数据库里谁名下就说会挂给谁
expect(sentBody(fetcher, FEED_SOURCE_URL)).toEqual([]);
});
+it('JavDB 搜不成时,库里已有编号的她可以直接订,原因照样说明', async () => {
+ const lookup = vi.fn(() => ({ ...LOOKUP, suggested: [], candidates: [], unavailable: 'JavDB 没有搜成:来源正在冷却',
+ known: { id: 5, name: '瀬戸環奈', subscribable: true, following: false } }));
+ const feedWrite = vi.fn(() => ok({ ok: true, entity_id: 5, following: true, sources: [7] }));
+ const { host, props } = await open({ feeds: FEEDS, lookup, feedWrite }, { tab: 'add' });
+ await type(nameField(host), '瀬戸環奈');
+ await click(buttonNamed('查找', actorPanel(host)));
+ await settle();
+ expect(host.textContent).toContain('JavDB 没有搜成:来源正在冷却');
+ expect(host.textContent).toContain('数据库里的「瀬戸環奈」已有 JavDB 或 DMM 编号,可以直接订阅。');
+ expect(host.textContent).not.toContain('JavDB 上没有搜到这个名字。');
+ await click(buttonNamed('订阅「瀬戸環奈」', host));
+ await settle();
+ expect(feedWrite).toHaveBeenCalledWith({ action: 'follow', entity_id: 5, enabled: true });
+ expect(props.toast).toHaveBeenCalledWith('已订阅「瀬戸環奈」的新作');
+});
+
it('查找被服务端挡回时原因摆在卡里,没有候选时直说', async () => {
const first = await open({ feeds: FEEDS, lookup: () => refuse('JavDB 回的是登入页') }, { tab: 'add' });
await type(nameField(first.host), '甲');
diff --git a/src/peach/routes_jav_browser.py b/src/peach/routes_jav_browser.py
index d75a4ec64..04fa06dfc 100644
--- a/src/peach/routes_jav_browser.py
+++ b/src/peach/routes_jav_browser.py
@@ -65,6 +65,25 @@ def people(request: Request, codes: str, performers: list[str] = Query(default=[
raise HTTPException(400, str(error)) from None
+def performer(request: Request, source_url: str, names: list[str] = Query(default=[]),
+ service=Depends(browser_client)):
+ from .web_jav_browser_performer import performer_status
+ try:
+ result = performer_status(service.contract, request.app.state.preview_service, source_url, names)
+ return JSONResponse(result, headers={"Cache-Control": "no-store"})
+ except ValueError as error:
+ raise HTTPException(400, str(error)) from None
+
+
+def follow_performer(request: Request, body: dict = Body(...), service=Depends(browser_client)):
+ from .web_jav_browser_performer import follow_performer as follow
+ try:
+ result = follow(service.contract, request.app.state.preview_service, body)
+ return JSONResponse(result, headers={"Cache-Control": "no-store"})
+ except ValueError as error:
+ raise HTTPException(400, str(error)) from None
+
+
def retry_postprocess(body: dict = Body(...), service=Depends(browser_client)):
try:
return JSONResponse(service.retry_postprocess(body.get("code")), headers={"Cache-Control": "no-store"})
@@ -122,6 +141,8 @@ def create_router(local_only) -> APIRouter:
router.add_api_route("/api/jav-browser/people", people, methods=["GET"])
router.add_api_route("/api/jav-browser", add, methods=["POST"])
router.add_api_route("/api/jav-browser/postprocess", retry_postprocess, methods=["POST"])
+ router.add_api_route("/api/jav-browser/performer", performer, methods=["GET"])
+ router.add_api_route("/api/jav-browser/performer", follow_performer, methods=["POST"])
router.add_api_route("/api/jav-browser/dismiss", dismiss, methods=["POST"])
router.add_api_route("/api/jav-browser/errors", errors, methods=["POST"])
permissions = [Depends(require_auth), Depends(local_only)]
diff --git a/src/peach/web_feeds.py b/src/peach/web_feeds.py
index 483c25ba3..d8e23d753 100644
--- a/src/peach/web_feeds.py
+++ b/src/peach/web_feeds.py
@@ -479,7 +479,7 @@ def w_feed_source(contract, body) -> dict:
raise ValueError(f"unknown feed source action: {action}")
-def _subscribe(connection, entity_id: int, canonical_name: str) -> list[int]:
+def subscribe_performer(connection, entity_id: int, canonical_name: str) -> list[int]:
"""这位的每个 JavDB 演员页与 DMM 片单各订一条,返回源 id。地址按账本里她的编号现拼。"""
refs = [dict(ref) for ref in connection.execute(
"SELECT provider,external_kind,external_id FROM entity_external_ref"
@@ -491,7 +491,7 @@ def _subscribe(connection, entity_id: int, canonical_name: str) -> list[int]:
return feeds.follow_entity(connection, entity_id, pages)
-def _fetch_now(contract, ids: list[int]) -> None:
+def fetch_new_sources(contract, ids: list[int]) -> None:
"""新订的当场在后台拉:订的人要的是马上看到她有哪些新作,不是等下一轮到期扫描。
已有一轮在跑时就交给那一轮之后的到期扫描——新源 `next_fetch_at` 为空,下一轮一定带上它。
@@ -520,8 +520,8 @@ def _follow_entity(contract, body) -> dict:
feeds.unfollow_entity(connection, entity_id)
ids: list[int] = []
else:
- ids = _subscribe(connection, entity_id, row["canonical_name"])
- _fetch_now(contract, ids)
+ ids = subscribe_performer(connection, entity_id, row["canonical_name"])
+ fetch_new_sources(contract, ids)
return {"ok": True, "entity_id": entity_id, "following": enabled, "sources": ids}
@@ -547,6 +547,32 @@ def q_feed_lookup(contract, args) -> dict:
if not name:
raise ValueError("要先给一个女优名")
url = javdb.SEARCH.format(quote(name))
+ with contract.database.read_connection() as connection:
+ # 账本里按这个名字认得出谁:登记时没人持有所勾的卡就挂到她名下(`_follow_by_name`),
+ # 页面提前把这句话说出来,免得点了才知道挂给了谁。
+ found = entities.resolve_entity(connection, "performer", name)
+ known = _known_performer(connection, found) if found else None
+ try:
+ html = _search_javdb(contract, url)
+ except ValueError as error:
+ # 她已有 JavDB 或 DMM 编号时不必靠这一趟搜索,按库里的她直接订;原因照样告诉页面。
+ if known and known["subscribable"]:
+ return {"ok": True, "q": name, "url": url, "candidates": [], "suggested": [],
+ "known": known, "unavailable": str(error)}
+ raise
+ cards = javdb.search_cards(html)
+ wanted = alias.match_key(name)
+ with contract.database.read_connection() as connection:
+ candidates = [_describe_card(connection, card) for card in cards]
+ mine = [card for card in cards
+ if any(alias.match_key(written) == wanted for written in card["names"])]
+ suggested = [card["id"] for card in mine] if javdb.one_person(mine) else []
+ return {"ok": True, "q": name, "url": url, "candidates": candidates, "suggested": suggested,
+ "known": known}
+
+
+def _search_javdb(contract, url: str) -> str:
+ """取一页 JavDB 演员搜索结果;冷却、限流、断网、登入页都按原因报 ValueError。"""
try:
response = _transport(contract)(HttpRequest("GET", url, {"Accept": "text/html"}),
LOOKUP_TIMEOUT, FETCH_MAX_BYTES)
@@ -557,18 +583,35 @@ def q_feed_lookup(contract, args) -> dict:
html = response.body.decode("utf-8", "replace")
if javdb.LOGIN.search(html):
raise ValueError("JavDB 回的是登入页,这一趟搜不了;稍后再试")
- cards = javdb.search_cards(html)
- wanted = alias.match_key(name)
- with contract.database.read_connection() as connection:
- candidates = [_describe_card(connection, card) for card in cards]
- # 账本里按这个名字认得出谁:登记时没人持有所勾的卡就挂到她名下(`_follow_by_name`),
- # 页面提前把这句话说出来,免得点了才知道挂给了谁。
- known = entities.resolve_entity(connection, "performer", name)
- mine = [card for card in cards
- if any(alias.match_key(written) == wanted for written in card["names"])]
- suggested = [card["id"] for card in mine] if javdb.one_person(mine) else []
- return {"ok": True, "q": name, "url": url, "candidates": candidates, "suggested": suggested,
- "known": {"id": int(known["id"]), "name": str(known["canonical_name"])} if known else None}
+ return html
+
+
+def subscribable(connection, row) -> bool:
+ """这位不经搜索就能订:已有 JavDB 演员页或 DMM 女优编号。"""
+ entity_id = int(row["id"])
+ refs = [dict(ref) for ref in connection.execute(
+ "SELECT provider,external_kind,external_id FROM entity_external_ref WHERE entity_id=?",
+ (entity_id,))]
+ return bool(entry_links.javdb_actor_pages(str(row["canonical_name"]), refs)
+ or feeds.dmm_actress_ids(connection, entity_id))
+
+
+def _known_performer(connection, row) -> dict:
+ """库里认出的这位:能不能直接订、订没订着。"""
+ entity_id = int(row["id"])
+ return {"id": entity_id, "name": str(row["canonical_name"]),
+ "subscribable": subscribable(connection, row),
+ "following": feeds.entity_following(connection, entity_id)}
+
+
+def create_followed_performer(connection, name: str) -> int:
+ """为订阅新建一位零作品的女优,来源记 `FOLLOW_SOURCE`。"""
+ stamp = feeds.stamp()
+ return int(connection.execute(
+ "INSERT INTO entity(kind,canonical_name,normalized_name,metadata_json,"
+ "created_at,updated_at) VALUES('performer',?,?,?,?,?)",
+ (name, entities.normalize_entity_name(name),
+ json.dumps({"source": FOLLOW_SOURCE}, ensure_ascii=False), stamp, stamp)).lastrowid)
def _describe_card(connection, card: dict) -> dict:
@@ -628,19 +671,13 @@ def _follow_by_name(contract, body) -> dict:
if found is not None:
entity_id, canonical = int(found["id"]), str(found["canonical_name"])
else:
- stamp = feeds.stamp()
- entity_id = int(connection.execute(
- "INSERT INTO entity(kind,canonical_name,normalized_name,metadata_json,"
- "created_at,updated_at) VALUES('performer',?,?,?,?,?)",
- (name, entities.normalize_entity_name(name),
- json.dumps({"source": FOLLOW_SOURCE}, ensure_ascii=False), stamp, stamp),
- ).lastrowid)
+ entity_id = create_followed_performer(connection, name)
canonical, created = name, True
for actor_id in ids:
performer_profile_followup.bind(connection, entity_id, "javdb", actor_id,
{"source": FOLLOW_SOURCE})
- sources = _subscribe(connection, entity_id, canonical)
- _fetch_now(contract, sources)
+ sources = subscribe_performer(connection, entity_id, canonical)
+ fetch_new_sources(contract, sources)
return {"ok": True, "entity_id": entity_id, "entity_name": canonical, "created": created,
"sources": sources}
diff --git a/src/peach/web_jav_browser_people.py b/src/peach/web_jav_browser_people.py
index 0d9333c53..2a9d9a134 100644
--- a/src/peach/web_jav_browser_people.py
+++ b/src/peach/web_jav_browser_people.py
@@ -71,6 +71,21 @@ def _framed(original: Image.Image, focus: dict | None) -> Image.Image:
return ImageOps.fit(image, (OUTPUT_PX, OUTPUT_PX), centering=tuple(centering))
+def entity_avatar(contract, preview, entity_id: int) -> str | None:
+ """已安装头像按人脸取景成小图 data URI;没装头像是空串,装了却读不出是 None。"""
+ if not contract.has_entity_image('performer', entity_id):
+ return ''
+ try:
+ path, _ = preview.entity_image('performer', entity_id)
+ with Image.open(path) as original:
+ image = _framed(original, contract.avatar_focus('performer', entity_id))
+ output = io.BytesIO()
+ image.save(output, format='JPEG', quality=75)
+ return 'data:image/jpeg;base64,' + base64.b64encode(output.getvalue()).decode('ascii')
+ except (PreviewUnavailable, OSError, ValueError):
+ return None
+
+
def _page_names(performers) -> list[str]:
"""详情页出演者原文:去掉 ♀ 标记,男演员(♂)不参与;只在查询单个番号时使用。"""
names = [str(name).strip() for name in performers or ()]
@@ -130,15 +145,8 @@ def cached_people(contract, preview, value: str, performers=()) -> dict:
if entity_id is None or not contract.has_entity_image('performer', entity_id):
continue
if entity_id not in avatars:
- try:
- path, _ = preview.entity_image('performer', entity_id)
- with Image.open(path) as original:
- image = _framed(original, contract.avatar_focus('performer', entity_id))
- output = io.BytesIO()
- image.save(output, format='JPEG', quality=75)
- avatars[entity_id] = 'data:image/jpeg;base64,' + base64.b64encode(output.getvalue()).decode('ascii')
- except (PreviewUnavailable, OSError, ValueError):
- avatars[entity_id] = ''
+ avatars[entity_id] = entity_avatar(contract, preview, entity_id)
+ if avatars[entity_id] is None:
person['avatar_unavailable'] = True
if avatars[entity_id]:
person['avatar'] = avatars[entity_id]
diff --git a/src/peach/web_jav_browser_performer.py b/src/peach/web_jav_browser_performer.py
new file mode 100644
index 000000000..e212d433d
--- /dev/null
+++ b/src/peach/web_jav_browser_performer.py
@@ -0,0 +1,170 @@
+"""用户脚本的女优页订阅:认出这一页是哪位女优,查和改她的「订阅新作」。
+
+订阅本身和人物页开关、订阅源页签是同一套(ADR-0083):地址由服务端按她的 JavDB 演员 id 与
+DMM 女优编号现拼,这里只负责从女优页认人。认人先看页面地址里的站内编号,再看名字:
+
+- **JavDB 演员页** `/actors/<id>`:id 已在谁名下就是谁;没人持有时按页面上的名字认,
+ 认不出就新建她,再把这个 id 绑上(与「添加 JAV 订阅」勾选一张卡同一条路)。
+- **DMM 女优片单** `?actress=<编号>` 或旧版 `article=actress/id=<编号>`:编号已在谁名下
+ (`dmm`、`r18dev` 同一套编号)就是谁;没人持有时按页面名字认,页面没给名字就向 DMM
+ 问她的名字,认不出就新建并绑上编号。
+- **MISSAV 女优页** `/actresses/<名字>`:只有名字。库里认得出、又已有编号的直接订;
+ 否则按名字到 JavDB 搜演员卡,只有名字对得上、又能确认是同一个人的那几张才登记并订,
+ 同名不止一位或搜不到时不猜,请用户到她的 JavDB 演员页订。
+"""
+from __future__ import annotations
+
+import re
+from urllib.parse import parse_qs, unquote, urlsplit
+
+from . import entities, feeds, web_feeds
+from .jav_browser import source_site
+from .performer_profile_followup import bind
+from .web_jav_browser_people import entity_avatar
+
+JAVDB_ACTOR = re.compile(r"^/actors/([A-Za-z0-9]{1,16})/?$")
+DMM_ARTICLE = re.compile(r"/article=actress/id=([0-9]{1,12})/")
+MISSAV_ACTRESS = re.compile(r"^/(?:dm[0-9]+/)?(?:(?:en|ja|zh|cn|tw|ko)/)?actresses/([^/]+)/?$")
+DMM_ID = re.compile(r"^[0-9]{1,12}$")
+NAME_LIMIT = 60
+NAMES_LIMIT = 6
+
+
+def _names(values) -> list[str]:
+ """页面给的名字:JavDB 标题栏常把几种写法用逗号连成一串,MISSAV 写成「现名(旧名)」。"""
+ found: list[str] = []
+ for value in values or ():
+ if not isinstance(value, str) or len(value) > 4 * NAME_LIMIT:
+ raise ValueError("女优名无效")
+ for part in re.split(r"[,,、]", value):
+ base = re.sub(r"[((][^()()]*[))]", "", part).strip()
+ for name in (base, *(inner.strip() for inner in re.findall(r"[((]([^()()]+)[))]", part))):
+ if name and len(name) <= NAME_LIMIT and name not in found:
+ found.append(name)
+ return found[:NAMES_LIMIT]
+
+
+def performer_page(source_url: str, names=()) -> dict:
+ """女优页地址 → 站点、站内编号与页面上的名字;不是支持的女优页时报 ValueError。"""
+ try:
+ parts = urlsplit(str(source_url or ""))
+ except ValueError as error:
+ raise ValueError("来源网页地址无效") from error
+ host = (parts.hostname or "").lower()
+ site = source_site(host) if parts.scheme == "https" and host else None
+ page = {"site": site["id"] if site else "", "javdb": "", "dmm": "", "names": _names(names)}
+ if page["site"] == "javdb" and (match := JAVDB_ACTOR.match(parts.path)):
+ page["javdb"] = match.group(1)
+ elif page["site"] == "dmm":
+ actress = parse_qs(parts.query).get("actress", [""])[0] if parts.path.rstrip("/") == "/av/list" else ""
+ article = DMM_ARTICLE.search(parts.path + "/")
+ page["dmm"] = actress if DMM_ID.match(actress) else article.group(1) if article else ""
+ elif page["site"] == "missav" and (match := MISSAV_ACTRESS.match(parts.path)):
+ page["names"] = _names([unquote(match.group(1)), *page["names"]])
+ if not (page["javdb"] or page["dmm"] or (page["site"] == "missav" and page["names"])):
+ raise ValueError("这一页不是支持的女优页")
+ return page
+
+
+def _holder(connection, providers: tuple[str, ...], external_id: str):
+ marks = ",".join("?" * len(providers))
+ return connection.execute(
+ "SELECT e.id,e.canonical_name FROM entity_external_ref r JOIN entity e ON e.id=r.entity_id"
+ f" WHERE r.provider IN ({marks}) AND r.external_kind='performer' AND r.external_id=?"
+ " AND e.kind='performer' ORDER BY e.id LIMIT 1", (*providers, external_id)).fetchone()
+
+
+def _resolve(connection, page: dict):
+ """站内编号的持有者优先,其次按页面名字认正名或唯一别名。"""
+ if page["javdb"] and (held := _holder(connection, ("javdb",), page["javdb"])):
+ return held
+ if page["dmm"] and (held := _holder(connection, tuple(feeds.DMM_ACTRESS_PROVIDERS), page["dmm"])):
+ return held
+ for name in page["names"]:
+ if found := entities.resolve_entity(connection, "performer", name):
+ return found
+ return None
+
+
+def performer_status(contract, preview, source_url: str, names=()) -> dict:
+ """这一页是哪位、订没订着;库里认不出时只回页面上的名字。"""
+ page = performer_page(source_url, names)
+ with contract.database.read_connection() as connection:
+ found = _resolve(connection, page)
+ following = feeds.entity_following(connection, int(found["id"])) if found else False
+ avatar = entity_avatar(contract, preview, int(found["id"])) if found else ""
+ return {"ok": True, "site": page["site"],
+ "name": str(found["canonical_name"]) if found else (page["names"] or [""])[0],
+ "entity_id": int(found["id"]) if found else None,
+ "following": following, **({"avatar": avatar} if avatar else {})}
+
+
+def _dmm_name(contract, actress_id: str) -> str:
+ """按编号向 DMM 问她的名字:走订阅拉片单的同一条请求、限流与冷却。"""
+ from .sources.base import Session, SourceFailure
+ from .sources.dmm import DmmSource
+
+ site, session = DmmSource(), Session(web_feeds._transport(contract))
+ try:
+ with site.holding(session):
+ return site.actress_works(actress_id, session=session, limit=1).name
+ except SourceFailure as error:
+ raise ValueError(f"DMM 没有取到这位女优:{error.message}") from error
+ except Exception as error: # noqa: BLE001 - 断网、超时同样只是这一次没问到
+ raise ValueError(f"DMM 没有取到这位女优:{error}") from error
+
+
+def _follow_dmm(contract, page: dict) -> None:
+ names = page["names"] or [name for name in (_dmm_name(contract, page["dmm"]),) if name]
+ with contract.database.write_transaction() as connection:
+ found = _resolve(connection, {**page, "names": names})
+ if found is not None:
+ entity_id, canonical = int(found["id"]), str(found["canonical_name"])
+ elif names:
+ canonical = entities.canonicalize_entity_name("performer", names[0])
+ entity_id = web_feeds.create_followed_performer(connection, canonical)
+ else:
+ raise ValueError("没有读到这位女优的名字")
+ bind(connection, entity_id, "dmm", page["dmm"], {"source": web_feeds.FOLLOW_SOURCE})
+ sources = web_feeds.subscribe_performer(connection, entity_id, canonical)
+ web_feeds.fetch_new_sources(contract, sources)
+
+
+def _follow_by_search(contract, page: dict, found) -> None:
+ """只有名字的页:按名字到 JavDB 搜,名字对得上、又能确认是同一个人的卡才登记并订。"""
+ names = list(dict.fromkeys([*([str(found["canonical_name"])] if found else []), *page["names"]]))
+ for name in names:
+ result = web_feeds.q_feed_lookup(contract, {"q": name})
+ if result["suggested"]:
+ web_feeds.w_feed_source(contract, {"action": "follow-name", "ids": result["suggested"],
+ "name": str(found["canonical_name"]) if found else name})
+ return
+ raise ValueError(f"JavDB 上按「{names[0]}」没能确认是同一位女优,请到她的 JavDB 演员页订阅")
+
+
+def follow_performer(contract, preview, body: dict) -> dict:
+ """订阅或取消订阅这一页的女优,回订阅后的状态。"""
+ enabled = body.get("enabled")
+ if not isinstance(enabled, bool):
+ raise ValueError("enabled 只能是 true 或 false")
+ names = body.get("names") if isinstance(body.get("names"), list) else []
+ page = performer_page(body.get("source_url"), names)
+ with contract.database.read_connection() as connection:
+ found = _resolve(connection, page)
+ ready = found is not None and web_feeds.subscribable(connection, found)
+ if not enabled:
+ if found is None:
+ raise ValueError("Peach 里没有这位女优")
+ web_feeds.w_feed_source(contract, {"action": "follow", "entity_id": int(found["id"]), "enabled": False})
+ elif ready:
+ web_feeds.w_feed_source(contract, {"action": "follow", "entity_id": int(found["id"]), "enabled": True})
+ elif page["javdb"]:
+ if not (found or page["names"]):
+ raise ValueError("没有读到这位女优的名字")
+ web_feeds.w_feed_source(contract, {"action": "follow-name", "ids": [page["javdb"]],
+ "name": str(found["canonical_name"]) if found else page["names"][0]})
+ elif page["dmm"]:
+ _follow_dmm(contract, page)
+ else:
+ _follow_by_search(contract, page, found)
+ return performer_status(contract, preview, body.get("source_url"), names)
diff --git a/tests/test_fastapi_api.py b/tests/test_fastapi_api.py
index 76d8ca244..a537672d5 100644
--- a/tests/test_fastapi_api.py
+++ b/tests/test_fastapi_api.py
@@ -4228,6 +4228,8 @@ class RouteAuthContractTests(unittest.TestCase):
("POST", "/api/jav-browser"): routes_jav_browser.browser_client,
("POST", "/api/jav-browser/errors"): routes_jav_browser.browser_client,
("POST", "/api/jav-browser/postprocess"): routes_jav_browser.browser_client,
+ ("GET", "/api/jav-browser/performer"): routes_jav_browser.browser_client,
+ ("POST", "/api/jav-browser/performer"): routes_jav_browser.browser_client,
("POST", "/api/jav-browser/dismiss"): routes_jav_browser.browser_client,
}
cls.routes = {(",".join(sorted(route.methods)), route.path):
diff --git a/tests/test_feeds_web.py b/tests/test_feeds_web.py
index 947e14ec5..1240aaad9 100644
--- a/tests/test_feeds_web.py
+++ b/tests/test_feeds_web.py
@@ -19,6 +19,7 @@ sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
sys.path.insert(0, str(Path(__file__).resolve().parent))
from peach import feed_followup, feeds, web_feeds, web_settings, web_state # noqa: E402
+from peach import web_jav_browser_performer as performer # noqa: E402
from peach.http import HttpResponse # noqa: E402
from peach.web_contract import WebContract # noqa: E402
from peach.web_router import dispatch_api_get, dispatch_api_post # noqa: E402
@@ -1126,8 +1127,8 @@ SOLO_PAGE = """
"""
-class PerformerFeedSwitchTest(FeedWebFixture):
- """人物页「订阅新作」开关:地址由服务端按 JavDB 演员页拼,页面只送开和关。"""
+class PerformerFeedFixture(FeedWebFixture):
+ """一位有 JavDB 演员页的女优、按地址回样本页的传输,以及订阅相关的取数辅助。"""
def setUp(self):
super().setUp()
@@ -1168,6 +1169,10 @@ class PerformerFeedSwitchTest(FeedWebFixture):
def _sources(self):
return dispatch_api_get(self.contract, "/api/feeds", {})["sources"]
+
+class PerformerFeedSwitchTest(PerformerFeedFixture):
+ """人物页「订阅新作」开关:地址由服务端按 JavDB 演员页拼,页面只送开和关。"""
+
def test_switching_on_subscribes_her_javdb_page_and_fetches_it_now(self):
result = self._switch(True)
self.assertTrue(result["following"])
@@ -1343,8 +1348,8 @@ LOGIN_PAGE = """<html><head><title> 登入 | JavDB 成人影片數據庫 </title
<body><form action="/user_sessions"></form></body></html>"""
-class FeedFollowByNameTest(PerformerFeedSwitchTest):
- """订阅源页签「添加 JAV 订阅」:按名字搜演员卡,勾选后登记到她名下并订上(ADR-0083)。"""
+class FeedFollowByNameFixture(PerformerFeedFixture):
+ """JavDB 演员搜索页与几张演员卡的样本,按名字查找与登记的辅助。"""
def setUp(self):
super().setUp()
@@ -1373,6 +1378,10 @@ class FeedFollowByNameTest(PerformerFeedSwitchTest):
" AND provider='javdb' ORDER BY external_id", (entity_id,)).fetchall()
return row, refs
+
+class FeedFollowByNameTest(FeedFollowByNameFixture):
+ """订阅源页签「添加 JAV 订阅」:按名字搜演员卡,勾选后登记到她名下并订上(ADR-0083)。"""
+
def test_lookup_lists_every_card_and_only_pre_picks_the_one_person_matching_the_name(self):
result = self._lookup()
self.assertEqual(result["url"], self.search)
@@ -1397,7 +1406,7 @@ class FeedFollowByNameTest(PerformerFeedSwitchTest):
" VALUES(?,'濑户环奈',peach_normalize('濑户环奈'),'test')", (held,))
result = self._lookup()
first, second = result["candidates"][:2]
- self.assertEqual(result["known"], {"id": held, "name": "瀬戸環奈"})
+ self.assertEqual(result["known"], {"id": held, "name": "瀬戸環奈", "subscribable": True, "following": False})
self.assertEqual(first["held_by"], {"id": held, "name": "瀬戸環奈"})
self.assertIsNone(second["held_by"])
# 无码那张卡上只有正名,也对得上她;别名撞上的写法只报一次。
@@ -1417,6 +1426,20 @@ class FeedFollowByNameTest(PerformerFeedSwitchTest):
with self.assertRaises(ValueError):
self._lookup(" ")
+ def test_a_known_performer_with_an_id_can_be_followed_when_javdb_cannot_search(self):
+ """反馈「订阅女优搜不到」:JavDB 冷却或回登入页时,库里已有编号的她照样能订。"""
+ self._serve(self.search, LOGIN_PAGE)
+ held = self._performer("瀬戸環奈", ["Kn01"])
+ result = self._lookup()
+ self.assertEqual((result["candidates"], result["suggested"]), ([], []))
+ self.assertEqual(result["known"], {"id": held, "name": "瀬戸環奈", "subscribable": True, "following": False})
+ self.assertRegex(result["unavailable"], "登入页")
+ # 库里认得出、却没有任何编号的,仍然要靠搜索,搜不成就照旧报错。
+ with self.contract.database.write_transaction() as connection:
+ connection.execute("DELETE FROM entity_external_ref WHERE entity_id=?", (held,))
+ with self.assertRaisesRegex(ValueError, "登入页"):
+ self._lookup()
+
def test_following_an_unknown_name_creates_her_binds_the_cards_and_subscribes_now(self):
result = self._follow(["Kn01", "Kn02"])
self.assertTrue(result["created"])
@@ -1471,6 +1494,87 @@ class FeedFollowByNameTest(PerformerFeedSwitchTest):
self.assertEqual(self._sources(), [])
+class PerformerPageFollowTest(FeedFollowByNameFixture):
+ """用户脚本女优页上的「订阅新作」:先按页面地址里的站内编号认人,只有名字的页去 JavDB 确认。"""
+
+ JAVDB = "https://javdb.com/actors/Kn01"
+ DMM = "https://video.dmm.co.jp/av/list/?actress=1061586"
+ MISSAV = "https://missav.ws/dm127/cn/actresses/" + "%E7%80%AC%E6%88%B8%E7%92%B0%E5%A5%88"
+
+ def _status(self, url, names=()):
+ return performer.performer_status(self.contract, None, url, names)
+
+ def _page_follow(self, url, enabled=True, names=()):
+ return performer.follow_performer(self.contract, None,
+ {"source_url": url, "enabled": enabled, "names": list(names)})
+
+ def test_the_page_address_names_the_site_id_or_the_name(self):
+ self.assertEqual(performer.performer_page(self.JAVDB, ["瀬戸環奈, 瀨戶環奈"]),
+ {"site": "javdb", "javdb": "Kn01", "dmm": "", "names": ["瀬戸環奈", "瀨戶環奈"]})
+ for url in (self.DMM, "https://www.dmm.co.jp/digital/videoa/-/list/=/article=actress/id=1061586/"):
+ with self.subTest(url=url):
+ self.assertEqual(performer.performer_page(url)["dmm"], "1061586")
+ self.assertEqual(performer.performer_page(
+ "https://missav.ws/cn/actresses/" + "%E6%A3%AE%E6%B2%A2%E3%81%8B%E3%81%AA%EF%BC%88%E9%A3%AF%E5%B2%A1%E3%81%8B%E3%81%AA%E3%81%93%EF%BC%89")["names"],
+ ["森沢かな", "飯岡かなこ"])
+ for url in ("https://javdb.com/v/WM9m8", "https://video.dmm.co.jp/av/list/?actress=abc",
+ "https://missav.ws/cn/ssis-057", "https://example.com/actors/Kn01", "http://javdb.com/actors/Kn01"):
+ with self.subTest(url=url), self.assertRaisesRegex(ValueError, "不是支持的女优页"):
+ performer.performer_page(url)
+
+ def test_a_held_javdb_id_names_her_and_switches_her_subscription(self):
+ held = self._performer("瀬戸かんな", ["Kn01"])
+ status = self._status(self.JAVDB, ["瀬戸環奈"])
+ self.assertEqual((status["name"], status["entity_id"], status["following"]), ("瀬戸かんな", held, False))
+ self.assertTrue(self._page_follow(self.JAVDB)["following"])
+ self._settled()
+ self.assertFalse(self._page_follow(self.JAVDB, enabled=False)["following"])
+
+ def test_an_unknown_javdb_page_creates_her_from_the_page_name_and_binds_the_id(self):
+ status = self._page_follow(self.JAVDB, names=["瀬戸環奈, 瀨戶環奈"])
+ self.assertEqual((status["name"], status["following"]), ("瀬戸環奈", True))
+ _row, refs = self._entity(status["entity_id"])
+ self.assertEqual([ref["external_id"] for ref in refs], ["Kn01"])
+ self._settled()
+
+ def test_an_unknown_dmm_page_asks_dmm_for_her_name_and_subscribes_her_catalogue(self):
+ with patch.object(performer, "_dmm_name", return_value="森日向子") as asked, \
+ patch.object(web_feeds, "fetch_new_sources"):
+ status = self._page_follow(self.DMM)
+ asked.assert_called_once()
+ self.assertEqual((status["name"], status["following"]), ("森日向子", True))
+ [source] = [row for row in self._sources() if row["entity_id"] == status["entity_id"]]
+ self.assertEqual(source["url"], feeds.dmm_actress_url("1061586"))
+ # 再来一次就按编号认出她,不再问 DMM。
+ with patch.object(performer, "_dmm_name") as again:
+ self.assertEqual(self._status(self.DMM)["entity_id"], status["entity_id"])
+ again.assert_not_called()
+
+ def test_a_name_only_page_follows_her_once_javdb_confirms_one_person(self):
+ status = self._page_follow(self.MISSAV)
+ self.assertEqual((status["name"], status["following"]), ("瀬戸環奈", True))
+ _row, refs = self._entity(status["entity_id"])
+ self.assertEqual([ref["external_id"] for ref in refs], ["Kn01", "Kn02"])
+ self._settled()
+
+ def test_a_name_only_page_refuses_when_javdb_has_two_people_or_cannot_search(self):
+ for page, reason in ((TWINS_PAGE, "没能确认是同一位女优"), (LOGIN_PAGE, "登入页")):
+ with self.subTest(reason=reason):
+ self._serve(self.search, page)
+ with self.assertRaisesRegex(ValueError, reason):
+ self._page_follow(self.MISSAV)
+ self.assertEqual(self._sources(), [])
+ self.assertEqual((self._status(self.MISSAV)["entity_id"], self._status(self.MISSAV)["name"]),
+ (None, "瀬戸環奈"))
+
+ def test_a_known_name_with_an_id_is_followed_without_searching(self):
+ self._serve(self.search, LOGIN_PAGE)
+ held = self._performer("瀬戸環奈", ["Kn01"])
+ self.assertEqual(self._page_follow(self.MISSAV)["entity_id"], held)
+ self.assertTrue(all(request.url != self.search for request in self.transport.requests))
+ self._settled()
+
+
class JavDiscoveryTest(FeedWebFixture):
def test_discovery_cast_projects_canonical_names_and_preserves_unknown_names(self):
self._add()
diff --git a/web/dist/peach-app.follow-manage-page-DfAEh_7P.js b/web/dist/peach-app.follow-manage-page-CePb_ntJ.js
similarity index 86%
rename from web/dist/peach-app.follow-manage-page-DfAEh_7P.js
rename to web/dist/peach-app.follow-manage-page-CePb_ntJ.js
index 4c94547df..97c668b42 100644
--- a/web/dist/peach-app.follow-manage-page-DfAEh_7P.js
+++ b/web/dist/peach-app.follow-manage-page-CePb_ntJ.js
@@ -1,20 +1,20 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "00b5b15e-ba68-464d-a312-93c805e9e1e1", e._sentryDebugIdIdentifier = "sentry-dbid-00b5b15e-ba68-464d-a312-93c805e9e1e1");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "674b25f6-536a-4708-aaf8-bcd20af2a392", e._sentryDebugIdIdentifier = "sentry-dbid-674b25f6-536a-4708-aaf8-bcd20af2a392");
} catch {}
})();
import { createPaginatedRowModel as e } from "./peach-app.createPaginatedRowModel-ClHnhG_T.js";
import { createSortedRowModel as t, useTableSelection as n } from "./peach-app.use-table-selection-BSdXI_Nc.js";
-import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as r, $542a13ca2fa5b484$export$5b6b19405a83ff9d as i, $76d00c5a4edb230a$export$76ccd210b9029917 as a, $76d00c5a4edb230a$export$816b5d811295e6bc as o, $76d00c5a4edb230a$export$b59bdbef9ce70de2 as s, $76d00c5a4edb230a$export$f6f0c3fe4ec306ea as c, $76d00c5a4edb230a$export$f850895b287ef28e as l, $b4f18e3395fe64d7$export$3d96ec278d3efce4 as u, $b4f18e3395fe64d7$export$3e41faf802a29e71 as d, $b4f18e3395fe64d7$export$b2539bed5023c21c as f, $ea3928288112382f$export$439d29a4e110a164 as p, $l as m, Button as h, ButtonLink as g, Bx as _, Checkbox as v, ChevronSortDown as ee, Chip as y, DataTableFooter as b, DataTableFrame as te, DataTableSort as x, EmptyFocusButton as S, EmptyState as C, ErrorText as w, ExternalLink as T, FEEDS_KEY as ne, FOLLOW_CREDENTIALS_KEY as re, FOLLOW_MANAGE_KEY as E, FOLLOW_MANAGE_NAV as D, FOLLOW_RESOLVE_KEY as O, FieldLabel as k, Help as A, Input as j, LoadingDots as M, M6 as N, MENU_ITEM as P, MENU_ITEM_INTERACTIVE as F, MENU_POPOVER_SURFACE as I, ModalFrame as L, Note as R, P7 as ie, SORT_DEFAULT_DIR as z, STAT_STRIP_SIX as B, SelectionDock as V, SelectionPopover as H, SiteLabel as ae, Switch as oe, Table as se, TableColumnControls as ce, TableColumnResizer as le, TableSelectionHeader as ue, TagManager as U, TaskProgress as W, Wt as de, Xf as fe, __toESM as pe, addAlias as me, addSource as he, avatarInner as G, busyProps as K, cardClass as ge, checkFeeds as _e, columnVisibilityFeature as ve, composingKey as q, confirmModal as ye, createColumnHelper as be, credentialDone as xe, cx as J, dZ as Y, errorHeadline as Se, errorMessage as X, feedIntervalText as Ce, fetchCredentials as we, fetchFeeds as Te, fetchFollow as Ee, fetchResolveJob as De, fetchSuggestions as Oe, flexRender as ke, followFeedByName as Ae, followSuggestKey as je, groupByAuthor as Me, isBroken as Ne, isLayout as Pe, keepSelected as Fe, localTime as Ie, lookupFeedActor as Le, mapLimit as Re, pageSizeOf as ze, pageWindow as Be, pv as Ve, queryClient as He, reloadFollowManage as Ue, removeAlias as We, removeFeed as Ge, renameAliasGroup as Ke, require_jsx_runtime as qe, require_react as Je, resolveFollowSort as Ye, rowPaginationFeature as Xe, rowSelectionFeature as Ze, rowSortingFeature as Qe, setFeedEnabled as $e, startCheck as et, startResolve as tt, tableFeatures as nt, useAction as rt, useBackgroundJob as it, useMutation as at, useQuery as ot, useTable as st, useTablePreferences as ct } from "./peach-app.js";
-import { Page as lt } from "./peach-app.page-QAncjzM1.js";
-import { LEGACY_AVATAR_IMG as ut } from "./peach-app.legacy-avatar-NSITxLRS.js";
-import { PillAriaTabList as dt } from "./peach-app.pill-aria-tab-list-BMY1ZEv1.js";
-import { AuthorAvatar as ft, SourceIcon as pt } from "./peach-app.source-view-DalWfDkm.js";
-import { SourceList as mt } from "./peach-app.source-list-ri5fRK2E.js";
+import { $2ec61d1d4f780267$export$a8a3e93435678ff9 as r, $542a13ca2fa5b484$export$5b6b19405a83ff9d as i, $76d00c5a4edb230a$export$76ccd210b9029917 as a, $76d00c5a4edb230a$export$816b5d811295e6bc as o, $76d00c5a4edb230a$export$b59bdbef9ce70de2 as s, $76d00c5a4edb230a$export$f6f0c3fe4ec306ea as c, $76d00c5a4edb230a$export$f850895b287ef28e as l, $b4f18e3395fe64d7$export$3d96ec278d3efce4 as u, $b4f18e3395fe64d7$export$3e41faf802a29e71 as d, $b4f18e3395fe64d7$export$b2539bed5023c21c as f, $ea3928288112382f$export$439d29a4e110a164 as p, $l as m, Button as h, ButtonLink as g, Bx as _, Checkbox as v, ChevronSortDown as ee, Chip as y, DataTableFooter as b, DataTableFrame as te, DataTableSort as x, EmptyFocusButton as S, EmptyState as C, ErrorText as w, ExternalLink as T, FEEDS_KEY as ne, FOLLOW_CREDENTIALS_KEY as re, FOLLOW_MANAGE_KEY as E, FOLLOW_MANAGE_NAV as D, FOLLOW_RESOLVE_KEY as O, FieldLabel as k, Help as A, Input as j, LoadingDots as M, M6 as N, MENU_ITEM as P, MENU_ITEM_INTERACTIVE as F, MENU_POPOVER_SURFACE as I, ModalFrame as L, Note as R, P7 as ie, SORT_DEFAULT_DIR as z, STAT_STRIP_SIX as B, SelectionDock as V, SelectionPopover as H, SiteLabel as ae, Switch as oe, Table as se, TableColumnControls as ce, TableColumnResizer as le, TableSelectionHeader as ue, TagManager as U, TaskProgress as W, Wt as de, Xf as fe, __toESM as pe, addAlias as me, addSource as he, avatarInner as G, busyProps as K, cardClass as ge, checkFeeds as _e, columnVisibilityFeature as ve, composingKey as q, confirmModal as ye, createColumnHelper as be, credentialDone as xe, cx as J, dZ as Y, errorHeadline as Se, errorMessage as X, feedIntervalText as Ce, fetchCredentials as we, fetchFeeds as Te, fetchFollow as Ee, fetchResolveJob as De, fetchSuggestions as Oe, flexRender as ke, followFeedByName as Ae, followFeedEntity as je, followSuggestKey as Me, groupByAuthor as Ne, isBroken as Pe, isLayout as Fe, keepSelected as Ie, localTime as Le, lookupFeedActor as Re, mapLimit as ze, pageSizeOf as Be, pageWindow as Ve, pv as He, queryClient as Ue, reloadFollowManage as We, removeAlias as Ge, removeFeed as Ke, renameAliasGroup as qe, require_jsx_runtime as Je, require_react as Ye, resolveFollowSort as Xe, rowPaginationFeature as Ze, rowSelectionFeature as Qe, rowSortingFeature as $e, setFeedEnabled as et, startCheck as tt, startResolve as nt, tableFeatures as rt, useAction as it, useBackgroundJob as at, useMutation as ot, useQuery as st, useTable as ct, useTablePreferences as lt } from "./peach-app.js";
+import { Page as ut } from "./peach-app.page-QAncjzM1.js";
+import { LEGACY_AVATAR_IMG as dt } from "./peach-app.legacy-avatar-NSITxLRS.js";
+import { PillAriaTabList as ft } from "./peach-app.pill-aria-tab-list-BMY1ZEv1.js";
+import { AuthorAvatar as pt, SourceIcon as mt } from "./peach-app.source-view-DalWfDkm.js";
+import { SourceList as ht } from "./peach-app.source-list-ri5fRK2E.js";
// src/react/follow-manage/add-source.tsx
-var Z = /* @__PURE__ */ pe(Je(), 1), Q = qe(), ht = J(P, F, "text-body-2-medium"), gt = "粘贴来源链接,或输入创作者名、id…", _t = "添加创作者关注", vt = "查找中(首次按名字查要下载创作者索引,可能几十秒)", yt = "识别中", bt = "站内没有查到来源", xt = "/settings/subscriptions", St = (e, t) => `${e}:${t.url}`;
-function Ct({ field: e, menu: t, options: n, active: r, busy: a, onPick: o, onClose: s }) {
+var Z = /* @__PURE__ */ pe(Ye(), 1), Q = Je(), gt = J(P, F, "text-body-2-medium"), _t = "粘贴来源链接,或输入创作者名、id…", vt = "添加创作者关注", yt = "查找中(首次按名字查要下载创作者索引,可能几十秒)", bt = "识别中", xt = "站内没有查到来源", St = "/settings/subscriptions", Ct = (e, t) => `${e}:${t.url}`;
+function wt({ field: e, menu: t, options: n, active: r, busy: a, onPick: o, onClose: s }) {
return (0, Z.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
}, [t, r]), /* @__PURE__ */ (0, Q.jsxs)(i, {
@@ -39,7 +39,7 @@ function Ct({ field: e, menu: t, options: n, active: r, busy: a, onPick: o, onCl
}), /* @__PURE__ */ (0, Q.jsxs)("button", {
type: "button",
"aria-current": t === r ? "true" : void 0,
- className: t === r ? J(ht, "bg-background-secondary-default") : ht,
+ className: t === r ? J(gt, "bg-background-secondary-default") : gt,
onMouseDown: (e) => e.preventDefault(),
onClick: () => o(e.value),
children: [
@@ -59,7 +59,7 @@ function Ct({ field: e, menu: t, options: n, active: r, busy: a, onPick: o, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function wt({ credentials: e, hidden: t, onHidden: n }) {
+function Tt({ credentials: e, hidden: t, onHidden: n }) {
let r = (e.providers || []).filter((e) => e.followable), i = r.filter((e) => !t.has(e.provider_label)).length, a = i === r.length ? "全部来源" : `${i}/${r.length} 个来源`;
return /* @__PURE__ */ (0, Q.jsx)(H, {
label: "来源筛选",
@@ -71,7 +71,7 @@ function wt({ credentials: e, hidden: t, onHidden: n }) {
selected: !t.has(e.provider_label),
label: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, Q.jsx)(pt, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, Q.jsx)(mt, { provider: e.provider }), e.provider_label]
})
})),
onChange: (e, r) => {
@@ -91,12 +91,12 @@ function wt({ credentials: e, hidden: t, onHidden: n }) {
},
{
label: "凭据设置",
- href: xt
+ href: St
}
]
});
}
-function Tt({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Et({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
if (e.kind === "error") return /* @__PURE__ */ (0, Q.jsx)(R, {
tone: "error",
title: e.line,
@@ -115,7 +115,7 @@ function Tt({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = St(t, e);
+ let n = Ct(t, e);
return /* @__PURE__ */ (0, Q.jsx)(v, {
isSelected: !e.known && !r.has(n),
isDisabled: e.known,
@@ -123,7 +123,7 @@ function Tt({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex min-w-0 flex-wrap items-center gap-1.5",
children: [
- /* @__PURE__ */ (0, Q.jsx)(pt, { provider: e.provider }),
+ /* @__PURE__ */ (0, Q.jsx)(mt, { provider: e.provider }),
/* @__PURE__ */ (0, Q.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -139,7 +139,7 @@ function Tt({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, Q.jsx)(A, { children: bt }),
+ }) : /* @__PURE__ */ (0, Q.jsx)(A, { children: xt }),
(e.external_searches || []).map((e) => /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, Q.jsx)("small", {
@@ -154,7 +154,7 @@ function Tt({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
});
}
-function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
+function Dt({ data: e, credentials: t, readOnly: n, toast: r }) {
let [i, a] = (0, Z.useState)(""), [o, s] = (0, Z.useState)(!1), [c, l] = (0, Z.useState)(""), [u, d] = (0, Z.useState)(""), [f, p] = (0, Z.useState)(!1), [m, g] = (0, Z.useState)(null), [_, v] = (0, Z.useState)(-1), ee = (0, Z.useRef)(null), y = (0, Z.useRef)(null), [b, te] = (0, Z.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, Z.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, Z.useState)(""), [T, ne] = (0, Z.useState)(0);
(0, Z.useEffect)(() => {
let e = i.trim();
@@ -165,8 +165,8 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
let t = setTimeout(() => d(e), 250);
return () => clearTimeout(t);
}, [i, o]);
- let re = ot({
- queryKey: je(u),
+ let re = st({
+ queryKey: Me(u),
queryFn: ({ signal: e }) => Oe(u, e),
enabled: u.length > 0 && f && !o && m !== i
}), E = (0, Z.useMemo)(() => (re.data?.groups || []).flatMap((e) => e.items.map((t) => ({
@@ -174,10 +174,10 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
matched: t.matched || "",
n: t.n || 0,
group: e.label
- }))), [re.data]), { job: D, running: A, outcome: M, start: N, dismiss: P } = it({
+ }))), [re.data]), { job: D, running: A, outcome: M, start: N, dismiss: P } = at({
queryKey: O,
queryFn: ({ signal: e }) => De(e),
- start: (e) => tt([e]),
+ start: (e) => nt([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(X(e)),
onFinish: (e) => {
@@ -206,8 +206,8 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
}
}, B = M?.results || [], V = B.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !b.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: St(t, e)
- })).filter((e) => !x.has(e.key))), H = at({
+ key: Ct(t, e)
+ })).filter((e) => !x.has(e.key))), H = ot({
mutationFn: async (e) => {
let t = [], n = [];
ne(0);
@@ -221,7 +221,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
ne((e) => e + 1);
}
if (n.length) try {
- await et(n);
+ await tt(n);
} catch (e) {
t.push(X(e));
}
@@ -231,12 +231,12 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
};
},
onSuccess: (e) => {
- Ue(), e.failures.length ? w(e.failures.join(";")) : (w(""), P(), r(`已添加 ${e.sources.length} 个关注来源`));
+ We(), e.failures.length ? w(e.failures.join(";")) : (w(""), P(), r(`已添加 ${e.sources.length} 个关注来源`));
},
onError: (e) => w(X(e))
}), ae = e.suggestions || [], oe = !c.includes("/");
return /* @__PURE__ */ (0, Q.jsxs)("section", {
- "aria-label": _t,
+ "aria-label": vt,
className: ge({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
@@ -244,7 +244,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
children: [
/* @__PURE__ */ (0, Q.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
- children: _t
+ children: vt
}),
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
@@ -259,9 +259,9 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
},
children: [/* @__PURE__ */ (0, Q.jsx)(j, {
"aria-label": "来源链接、名字或 id",
- placeholder: gt,
+ placeholder: _t,
value: i,
- leadingIcon: Ve,
+ leadingIcon: He,
enterKeyHint: "search",
isDisabled: n,
onChange: a,
@@ -272,7 +272,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
s(!1), a(e.currentTarget.value);
},
onKeyDown: z
- }), L ? /* @__PURE__ */ (0, Q.jsx)(Ct, {
+ }), L ? /* @__PURE__ */ (0, Q.jsx)(wt, {
field: ee,
menu: y,
options: E,
@@ -282,7 +282,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
onClose: ie
}) : null]
}),
- /* @__PURE__ */ (0, Q.jsx)(wt, {
+ /* @__PURE__ */ (0, Q.jsx)(Tt, {
credentials: t,
hidden: b,
onHidden: te
@@ -301,7 +301,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
className: "flex flex-col gap-3 empty:hidden",
children: [A || N.isPending ? /* @__PURE__ */ (0, Q.jsx)(W, {
embedded: !0,
- label: D?.message || (D?.total ? `查找中:${D.checked || 0}/${D.total}` : oe ? vt : yt),
+ label: D?.message || (D?.total ? `查找中:${D.checked || 0}/${D.total}` : oe ? yt : bt),
value: D?.checked,
total: D?.total
}) : null, C ? /* @__PURE__ */ (0, Q.jsx)(R, {
@@ -314,7 +314,7 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
className: "flex flex-col gap-3",
children: [
/* @__PURE__ */ (0, Q.jsx)(k, { children: "查找结果" }),
- B.map((e, t) => /* @__PURE__ */ (0, Q.jsx)(Tt, {
+ B.map((e, t) => /* @__PURE__ */ (0, Q.jsx)(Et, {
row: e,
at: t,
hidden: b,
@@ -368,8 +368,8 @@ function Et({ data: e, credentials: t, readOnly: n, toast: r }) {
});
}
// src/react/follow-manage/add-feed.tsx
-var Dt = "输入女优名,到 JavDB 找她的演员页", Ot = "添加 JAV 订阅";
-function kt(e, t) {
+var Ot = "输入女优名,到 JavDB 找她的演员页", kt = "添加 JAV 订阅";
+function At(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 {
@@ -388,7 +388,7 @@ function kt(e, t) {
blocked: !1
};
}
-function At({ card: e, picked: t, onPick: n }) {
+function jt({ card: e, picked: t, onPick: n }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, Q.jsx)(v, {
@@ -418,10 +418,10 @@ function At({ card: e, picked: t, onPick: n }) {
})]
});
}
-function jt({ readOnly: e, toast: t, onAdded: n }) {
- let [r, i] = (0, Z.useState)(""), [a, o] = (0, Z.useState)(null), [s, c] = (0, Z.useState)(/* @__PURE__ */ new Set()), l = rt(), u = () => {
+function Mt({ readOnly: e, toast: t, onAdded: n }) {
+ let [r, i] = (0, Z.useState)(""), [a, o] = (0, Z.useState)(null), [s, c] = (0, Z.useState)(/* @__PURE__ */ new Set()), l = it(), u = () => {
let t = r.trim();
- t && !e && l.run("lookup", (e) => Le(t, e), (e) => {
+ t && !e && l.run("lookup", (e) => Re(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -432,9 +432,14 @@ function jt({ readOnly: e, toast: t, onAdded: n }) {
a && l.run("follow", (e) => Ae(a.q, [...s], e), (e) => {
t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();
});
- }, m = a ? kt(a, s) : null;
+ }, m = () => {
+ let e = a?.known;
+ e && l.run("known", (t) => je(e.id, t), () => {
+ t(`已订阅「${e.name}」的新作`), i(""), f(), n();
+ });
+ }, g = a ? At(a, s) : null, _ = a && !a.candidates.length && a.known?.subscribable ? a.known : null;
return /* @__PURE__ */ (0, Q.jsxs)("section", {
- "aria-label": Ot,
+ "aria-label": kt,
className: ge({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
@@ -442,7 +447,7 @@ function jt({ readOnly: e, toast: t, onAdded: n }) {
children: [
/* @__PURE__ */ (0, Q.jsx)("h3", {
className: "text-title-2-medium text-text-primary",
- children: Ot
+ children: kt
}),
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
@@ -450,9 +455,9 @@ function jt({ readOnly: e, toast: t, onAdded: n }) {
className: "min-w-64 grow",
children: /* @__PURE__ */ (0, Q.jsx)(j, {
"aria-label": "女优名",
- placeholder: Dt,
+ placeholder: Ot,
value: r,
- leadingIcon: Ve,
+ leadingIcon: He,
enterKeyHint: "search",
isDisabled: e,
onChange: i,
@@ -474,34 +479,54 @@ function jt({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
+ a.unavailable ? /* @__PURE__ */ (0, Q.jsx)(R, {
+ tone: "warning",
+ title: "JavDB 这一次没有搜成",
+ children: a.unavailable
+ }) : null,
/* @__PURE__ */ (0, Q.jsx)(k, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, Q.jsx)(At, {
+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, Q.jsx)(jt, {
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, Q.jsx)(A, { children: "JavDB 上没有搜到这个名字。" }),
+ }, e.id)) : /* @__PURE__ */ (0, Q.jsx)(A, { children: a.unavailable ? "这一次没有拿到演员卡。" : "JavDB 上没有搜到这个名字。" }),
a.candidates.length ? /* @__PURE__ */ (0, Q.jsx)(A, {
role: "status",
- children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
+ children: s.size ? g.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"
+ }) : null,
+ _ ? /* @__PURE__ */ (0, Q.jsx)(A, {
+ role: "status",
+ children: _.following ? `数据库里的「${_.name}」已经在订阅新作。` : `数据库里的「${_.name}」已有 JavDB 或 DMM 编号,可以直接订阅。`
}) : null,
/* @__PURE__ */ (0, Q.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(h, {
- variant: "secondary",
- size: "small",
- onClick: f,
- children: "关闭"
- }), a.candidates.length ? /* @__PURE__ */ (0, Q.jsx)(h, {
- variant: "primary",
- size: "small",
- disabled: e || !s.size || m.blocked,
- ...K(l.busy === "follow"),
- onClick: p,
- children: `添加订阅(${s.size})`
- }) : null]
+ children: [
+ /* @__PURE__ */ (0, Q.jsx)(h, {
+ variant: "secondary",
+ size: "small",
+ onClick: f,
+ children: "关闭"
+ }),
+ a.candidates.length ? /* @__PURE__ */ (0, Q.jsx)(h, {
+ variant: "primary",
+ size: "small",
+ disabled: e || !s.size || g.blocked,
+ ...K(l.busy === "follow"),
+ onClick: p,
+ children: `添加订阅(${s.size})`
+ }) : null,
+ _ && !_.following ? /* @__PURE__ */ (0, Q.jsx)(h, {
+ variant: "primary",
+ size: "small",
+ disabled: e,
+ ...K(l.busy === "known"),
+ onClick: m,
+ children: `订阅「${_.name}」`
+ }) : null
+ ]
})
]
}) : null
@@ -509,7 +534,7 @@ function jt({ readOnly: e, toast: t, onAdded: n }) {
});
}
// src/react/follow-manage/alias-rename-dialog.tsx
-function Mt({ group: e, close: t, receipt: n }) {
+function Nt({ group: e, close: t, receipt: n }) {
return /* @__PURE__ */ (0, Q.jsx)(L, {
isOpen: !!e,
onOpenChange: (e) => {
@@ -517,19 +542,19 @@ function Mt({ group: e, close: t, receipt: n }) {
},
width: "form",
label: "修改统一名称",
- children: e ? /* @__PURE__ */ (0, Q.jsx)(Nt, {
+ children: e ? /* @__PURE__ */ (0, Q.jsx)(Pt, {
group: e,
close: t,
receipt: n
}, e.canonical_key) : null
});
}
-function Nt({ group: e, close: t, receipt: n }) {
- let [i, a] = (0, Z.useState)(e.canonical_name), o = rt();
+function Pt({ group: e, close: t, receipt: n }) {
+ let [i, a] = (0, Z.useState)(e.canonical_name), o = it();
return /* @__PURE__ */ (0, Q.jsxs)("form", {
onSubmit: (r) => {
- r.preventDefault(), i.trim() && i.trim() !== e.canonical_name && o.run("rename", (t) => Ke(e.canonical_key, i.trim(), t), () => {
- Ue(), n(`已把统一名称改为 ${i.trim()}`), t();
+ r.preventDefault(), i.trim() && i.trim() !== e.canonical_name && o.run("rename", (t) => qe(e.canonical_key, i.trim(), t), () => {
+ We(), n(`已把统一名称改为 ${i.trim()}`), t();
});
},
className: "flex min-h-0 flex-col gap-4 p-5",
@@ -587,30 +612,30 @@ function Nt({ group: e, close: t, receipt: n }) {
});
}
// src/react/follow-manage/alias-manager.tsx
-var Pt = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, Ft = nt({
- rowSelectionFeature: Ze,
- rowSortingFeature: Qe,
- rowPaginationFeature: Xe,
+var Ft = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, It = rt({
+ rowSelectionFeature: Qe,
+ rowSortingFeature: $e,
+ rowPaginationFeature: Ze,
columnVisibilityFeature: ve,
sortedRowModel: t(),
paginatedRowModel: e()
-}), It = Ft, Lt = {
+}), Lt = It, Rt = {
id: "select",
label: "选择",
width: 48,
min: 48,
max: 48,
required: !0
-}, Rt = {
+}, zt = {
id: "canonical",
label: "统一名称",
width: 280,
min: 240,
required: !0,
flex: !0
-}, zt = [
- Lt,
+}, Bt = [
Rt,
+ zt,
{
id: "alias",
label: "平台别名",
@@ -626,9 +651,9 @@ var Pt = (e) => `将移除别名「${e}」,对应来源恢复为独立创作
label: "操作",
width: 112
}
-], Bt = [
- Lt,
+], Vt = [
Rt,
+ zt,
{
id: "aliases",
label: "平台别名",
@@ -640,16 +665,16 @@ var Pt = (e) => `将移除别名「${e}」,对应来源恢复为独立创作
width: 184,
min: 168
}
-], Vt = (e) => e.alias;
-function Ht(e, t, n) {
+], Ht = (e) => e.alias;
+function Ut(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 Ut({ sources: e, name: t, canonicalKey: n }) {
+function Wt({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, Q.jsx)(ft, {
- group: Ht(e, t, n),
+ children: [/* @__PURE__ */ (0, Q.jsx)(pt, {
+ group: Ut(e, t, n),
name: t
}), /* @__PURE__ */ (0, Q.jsx)("b", {
className: "text-body-medium",
@@ -657,8 +682,8 @@ function Ut({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u }) {
- let d = ct("alias-suggestions", zt), f = ct("alias-saved", Bt), [p, m] = (0, Z.useState)(null), [g, _] = (0, Z.useState)({}), [y, T] = (0, Z.useState)({}), ne = n(() => _({})), re = n(() => T({})), [E, D] = (0, Z.useState)([]), [O, A] = (0, Z.useState)([]), [M, N] = (0, Z.useState)({
+function Gt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u }) {
+ let d = lt("alias-suggestions", Bt), f = lt("alias-saved", Vt), [p, m] = (0, Z.useState)(null), [g, _] = (0, Z.useState)({}), [y, T] = (0, Z.useState)({}), ne = n(() => _({})), re = n(() => T({})), [E, D] = (0, Z.useState)([]), [O, A] = (0, Z.useState)([]), [M, N] = (0, Z.useState)({
pageIndex: 0,
pageSize: 20
}), [P, F] = (0, Z.useState)({
@@ -670,14 +695,14 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
}, L = {
...P,
pageIndex: Math.min(P.pageIndex, Math.max(0, Math.ceil(e.length / P.pageSize) - 1))
- }, [R, z] = (0, Z.useState)(""), [B, H] = (0, Z.useState)(""), [ae, oe] = (0, Z.useState)(""), U = at({
+ }, [R, z] = (0, Z.useState)(""), [B, H] = (0, Z.useState)(""), [ae, oe] = (0, Z.useState)(""), U = ot({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
await me(n.canonical, n.alias);
} catch (n) {
- throw t && Ue(), Error(`${X(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && We(), Error(`${X(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -687,24 +712,24 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
};
},
onSuccess: (e) => {
- z(""), _({}), Ue(), u(`已合并 ${e.done} 组创作者别名`);
+ z(""), _({}), We(), u(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => z(X(e))
- }), W = at({
+ }), W = ot({
mutationFn: (e) => me(e.canonical, e.alias),
onSuccess: () => {
- z(""), H(""), oe(""), Ue(), u("已保存创作者别名");
+ z(""), H(""), oe(""), We(), u("已保存创作者别名");
},
onError: (e) => z(X(e))
- }), de = at({
+ }), de = ot({
mutationFn: async (e) => {
let t = typeof e == "string" ? [e] : e, n = 0;
try {
- for (let e of t) await We(e), n += 1;
+ for (let e of t) await Ge(e), n += 1;
} catch (e) {
throw Error(`${X(e)}(已移除 ${n} 个别名,还有 ${t.length - n} 个未移除)`);
} finally {
- Ue();
+ We();
}
},
onSuccess: () => {
@@ -720,7 +745,7 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
});
}, he = (e) => void ye({
title: "移除创作者别名",
- body: Pt(e),
+ body: Ft(e),
confirmLabel: "移除创作者别名",
onConfirm: () => de.mutateAsync(e)
}), G = (0, Z.useRef)({
@@ -759,7 +784,7 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
}),
e.accessor("canonical", {
header: "统一名称",
- cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Ut, {
+ cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Wt, {
sources: G.current.sources,
name: e.getValue()
})
@@ -807,7 +832,7 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
e.accessor("canonical_name", {
id: "canonical",
header: "统一名称",
- cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Ut, {
+ cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Wt, {
sources: G.current.sources,
name: e.getValue(),
canonicalKey: e.row.original.canonical_key
@@ -846,11 +871,11 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
})
})
]);
- }, []), q = st({
- features: Ft,
+ }, []), q = ct({
+ features: It,
data: t,
columns: _e,
- getRowId: Vt,
+ getRowId: Ht,
state: {
rowSelection: g,
sorting: E,
@@ -869,8 +894,8 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
},
onPaginationChange: N,
enableRowSelection: !0
- }), xe = st({
- features: It,
+ }), xe = ct({
+ features: Lt,
data: e,
columns: ve,
getRowId: (e) => e.canonical_key,
@@ -1176,7 +1201,7 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
})
]
}),
- /* @__PURE__ */ (0, Q.jsx)(Mt, {
+ /* @__PURE__ */ (0, Q.jsx)(Nt, {
group: p,
close: () => m(null),
receipt: u
@@ -1185,14 +1210,14 @@ function Wt({ groups: e, suggestions: t, sources: r = [], readOnly: i, toast: u
});
}
// src/react/follow-manage/feed-sources.tsx
-var Gt = nt({
- rowPaginationFeature: Xe,
- rowSelectionFeature: Ze,
- rowSortingFeature: Qe,
+var Kt = rt({
+ rowPaginationFeature: Ze,
+ rowSelectionFeature: Qe,
+ rowSortingFeature: $e,
columnVisibilityFeature: ve,
sortedRowModel: t(),
paginatedRowModel: e()
-}), Kt = {
+}), qt = {
select: "选择",
name: "名称",
kind: "类型",
@@ -1202,7 +1227,7 @@ var Gt = nt({
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, qt = /* @__PURE__ */ new Set(["actions"]), Jt = Object.entries(Kt).map(([e, t]) => ({
+}, Jt = /* @__PURE__ */ new Set(["actions"]), Yt = Object.entries(qt).map(([e, t]) => ({
id: e,
label: t,
width: e === "select" ? 48 : e === "name" ? 300 : e === "actions" ? 208 : e === "fetched" ? 200 : e === "origin" ? 184 : 160,
@@ -1210,18 +1235,18 @@ var Gt = nt({
max: e === "select" ? 48 : e === "name" ? 2e3 : 800,
flex: e === "name",
required: e === "select" || e === "name"
-})), Yt = () => He.invalidateQueries({
+})), Xt = () => Ue.invalidateQueries({
queryKey: ne,
exact: !0
}), $ = (e) => e.name || e.url;
-function Xt(e) {
+function Zt(e) {
try {
return new URL(e).hostname.replace(/^www\./, "");
} catch {
return e;
}
}
-function Zt({ source: e }) {
+function Qt({ source: e }) {
return e.enabled ? e.last_error ? /* @__PURE__ */ (0, Q.jsx)(y, {
variant: "caption",
color: "rose",
@@ -1240,7 +1265,7 @@ function Zt({ source: e }) {
children: "已暂停"
});
}
-function Qt({ source: e }) {
+function $t({ source: e }) {
let t = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -1249,17 +1274,17 @@ function Qt({ source: e }) {
} : null;
return /* @__PURE__ */ (0, Q.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 ${ut}`,
+ 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 ${dt}`,
dangerouslySetInnerHTML: { __html: G($(e), t, null, "performer") }
});
}
-var $t = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function en(e) {
+var en = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
+function tn(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 tn(e, t) {
+function nn(e, t) {
let n = e.length === 1 ? e[0] : null;
return ye({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
@@ -1269,11 +1294,11 @@ function tn(e, t) {
onConfirm: t
});
}
-function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
- let i = ot({
+function rn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
+ let i = st({
queryKey: ne,
queryFn: ({ signal: e }) => Te(e)
- }), u = rt(), d = ct("jav-feeds", Jt), f = i.data, m = (0, Z.useMemo)(() => f?.sources ?? [], [f]), [g, y] = (0, Z.useState)(/* @__PURE__ */ new Set()), S = r?.ids ?? g, T = r?.onChange ?? y, [re, E] = (0, Z.useState)(1), [D, O] = (0, Z.useState)(20), [k, j] = (0, Z.useState)([]), M = Be(m.length, D, re);
+ }), u = it(), d = lt("jav-feeds", Yt), f = i.data, m = (0, Z.useMemo)(() => f?.sources ?? [], [f]), [g, y] = (0, Z.useState)(/* @__PURE__ */ new Set()), S = r?.ids ?? g, T = r?.onChange ?? y, [re, E] = (0, Z.useState)(1), [D, O] = (0, Z.useState)(20), [k, j] = (0, Z.useState)([]), M = Ve(m.length, D, re);
(0, Z.useEffect)(() => {
E((e) => Math.min(e, M.pages));
}, [M.pages]), (0, Z.useEffect)(() => {
@@ -1282,10 +1307,10 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
return n.size === e.size ? e : n;
});
}, [m, T]);
- let P = at({
+ let P = ot({
mutationFn: async (e) => {
- let t = await Re(e.ids, 4, async (t) => {
- e.action === "remove" ? await Ge(t) : await $e(t, e.action === "enabled");
+ let t = await ze(e.ids, 4, async (t) => {
+ e.action === "remove" ? await Ke(t) : await et(t, e.action === "enabled");
});
return {
...e,
@@ -1294,13 +1319,13 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;
- if (T(/* @__PURE__ */ new Set()), Yt(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
+ if (T(/* @__PURE__ */ new Set()), Xt(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), n.length) {
let e = n[0];
u.setError(`${n.length} 条没有写入:${e.ok ? "" : X(e.error)}`);
}
},
onError: (e) => u.setError(X(e))
- }), F = (0, Z.useMemo)(() => en(m), [m]), I = (0, Z.useRef)({
+ }), F = (0, Z.useMemo)(() => tn(m), [m]), I = (0, Z.useRef)({
readOnly: e,
shared: F,
busy: null,
@@ -1312,14 +1337,14 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
readOnly: e,
shared: F,
busy: u.busy,
- toggle: (e, t) => void u.run(`enabled-${e.id}`, (n) => $e(e.id, t, n), () => void Yt()),
- fetch: (e) => void u.run(`check-${e.id}`, (t) => _e(t, [e.id]), () => void Yt()),
- remove: (e) => void tn([e], async () => {
- await Ge(e.id), t(`已移除订阅源「${$(e)}」`), Yt();
+ toggle: (e, t) => void u.run(`enabled-${e.id}`, (n) => et(e.id, t, n), () => void Xt()),
+ fetch: (e) => void u.run(`check-${e.id}`, (t) => _e(t, [e.id]), () => void Xt()),
+ remove: (e) => void nn([e], async () => {
+ await Ke(e.id), t(`已移除订阅源「${$(e)}」`), Xt();
})
};
let L = (0, Z.useMemo)(() => {
- let e = be(), t = (e) => () => Kt[e] || e;
+ let e = be(), t = (e) => () => qt[e] || e;
return e.columns([
e.display({
id: "select",
@@ -1339,11 +1364,11 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
id: "name",
header: t("name"),
cell: (e) => {
- let t = $t(e.row.original, I.current.shared);
+ let t = en(e.row.original, I.current.shared);
return /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",
children: [
- /* @__PURE__ */ (0, Q.jsx)(Qt, { source: e.row.original }),
+ /* @__PURE__ */ (0, Q.jsx)($t, { source: e.row.original }),
e.getValue(),
t ? /* @__PURE__ */ (0, Q.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -1372,8 +1397,8 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
title: "打开来源页面",
className: "max-w-full text-text-primary underline-offset-2 hover:underline",
children: [/* @__PURE__ */ (0, Q.jsx)(ae, {
- site: e.row.original.kind.startsWith("javdb") ? "javdb" : e.row.original.kind.startsWith("dmm") ? "dmm" : Xt(e.getValue()),
- label: Xt(e.getValue())
+ site: e.row.original.kind.startsWith("javdb") ? "javdb" : e.row.original.kind.startsWith("dmm") ? "dmm" : Zt(e.getValue()),
+ label: Zt(e.getValue())
}), /* @__PURE__ */ (0, Q.jsx)(de, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
@@ -1383,7 +1408,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
e.accessor((e) => e.last_error ? "拉取失败" : e.enabled ? "已启用" : "已暂停", {
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Zt, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, Q.jsx)(Qt, { source: e.row.original })
}),
e.accessor((e) => e.interval_minutes, {
id: "interval",
@@ -1398,7 +1423,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, Q.jsx)("span", {
className: "whitespace-nowrap tabular-nums",
- children: e.row.original.last_fetched_at ? Ie(e.row.original.last_fetched_at) : "还没拉过"
+ children: e.row.original.last_fetched_at ? Le(e.row.original.last_fetched_at) : "还没拉过"
})
}),
e.accessor((e) => e.last_new_count, {
@@ -1444,8 +1469,8 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
})
})
]);
- }, []), ie = (0, Z.useMemo)(() => Object.fromEntries([...S].map((e) => [String(e), !0])), [S]), z = st({
- features: Gt,
+ }, []), ie = (0, Z.useMemo)(() => Object.fromEntries([...S].map((e) => [String(e), !0])), [S]), z = ct({
+ features: Kt,
data: m,
columns: L,
getRowId: (e) => String(e.id),
@@ -1474,7 +1499,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
title: "打不开订阅源",
children: X(i.error)
}) : /* @__PURE__ */ (0, Q.jsx)(A, { children: "正在读订阅源。" });
- let B = () => void u.run("check", (e) => _e(e), () => void Yt()), H = (e) => {
+ let B = () => void u.run("check", (e) => _e(e), () => void Xt()), H = (e) => {
r?.onActivate(), T((t) => {
let n = new Set(t);
return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -1529,7 +1554,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
"fresh"
].map((e) => ({
id: e,
- label: Kt[e]
+ label: qt[e]
}))
})
]
@@ -1583,7 +1608,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
size: "small",
disabled: e,
...K(P.isPending),
- onClick: () => void tn(U, () => P.mutateAsync({
+ onClick: () => void nn(U, () => P.mutateAsync({
ids: U.map((e) => e.id),
action: "remove"
})),
@@ -1616,7 +1641,7 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
isRowHeader: e.column.id === "name",
allowsSorting: e.column.getCanSort(),
...d.columnProps(e.id),
- children: ({ sortDirection: n }) => /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [qt.has(e.column.id) ? /* @__PURE__ */ (0, Q.jsx)(p, { children: t }) : /* @__PURE__ */ (0, Q.jsxs)("span", {
+ children: ({ sortDirection: n }) => /* @__PURE__ */ (0, Q.jsxs)(Q.Fragment, { children: [Jt.has(e.column.id) ? /* @__PURE__ */ (0, Q.jsx)(p, { children: t }) : /* @__PURE__ */ (0, Q.jsxs)("span", {
className: "flex items-center gap-0.5",
children: [t, e.column.getCanSort() ? /* @__PURE__ */ (0, Q.jsx)("span", {
"data-sort-indicator": !0,
@@ -1676,8 +1701,8 @@ function nn({ readOnly: e, toast: t, onAdd: n, selection: r }) {
});
}
// src/react/follow-manage/follow-manage-page.tsx
-var rn = (e) => D.some(([t]) => t === e);
-function an({ term: e, figure: t, unit: n }) {
+var an = (e) => D.some(([t]) => t === e);
+function on({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, Q.jsxs)("div", {
className: ge({
padding: "none",
@@ -1699,14 +1724,14 @@ function an({ term: e, figure: t, unit: n }) {
})]
});
}
-function on(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, Z.useState)(rn(e.tab) ? e.tab : "list"), [p, m] = (0, Z.useState)(Math.max(1, Math.floor(e.page) || 1)), [h, _] = (0, Z.useState)(() => Ye(e.sort, e.dir).sort), [v, ee] = (0, Z.useState)(() => Ye(e.sort, e.dir).dir), [y, b] = (0, Z.useState)(Pe(e.layout) ? e.layout : "default"), [te, x] = (0, Z.useState)(ze(e.pageSize)), [S, C] = (0, Z.useState)(/* @__PURE__ */ new Set()), [w, O] = (0, Z.useState)(/* @__PURE__ */ new Set()), k = ot({
+function sn(e) {
+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, Z.useState)(an(e.tab) ? e.tab : "list"), [p, m] = (0, Z.useState)(Math.max(1, Math.floor(e.page) || 1)), [h, _] = (0, Z.useState)(() => Xe(e.sort, e.dir).sort), [v, ee] = (0, Z.useState)(() => Xe(e.sort, e.dir).dir), [y, b] = (0, Z.useState)(Fe(e.layout) ? e.layout : "default"), [te, x] = (0, Z.useState)(Be(e.pageSize)), [S, C] = (0, Z.useState)(/* @__PURE__ */ new Set()), [w, O] = (0, Z.useState)(/* @__PURE__ */ new Set()), k = st({
queryKey: E,
queryFn: ({ signal: e }) => Ee(e)
- }), A = ot({
+ }), A = st({
queryKey: re,
queryFn: ({ signal: e }) => we(e)
- }), j = ot({
+ }), j = st({
queryKey: ne,
queryFn: ({ signal: e }) => Te(e)
}), M = k.data || { sources: [] }, N = A.data || {
@@ -1715,7 +1740,7 @@ function on(e) {
}, P = M.sources;
(0, Z.useEffect)(() => {
C((e) => {
- let t = Fe(e, P);
+ let t = Ie(e, P);
return t.size === e.size ? e : t;
});
}, [P]);
@@ -1727,8 +1752,8 @@ function on(e) {
sort: n === "checked" ? "" : n,
dir: r === z[n] ? "" : r
});
- }, I = Me(P), L = P.filter(Ne).length, ie = P.filter((e) => e.enabled).length, V = (N.providers || []).filter((e) => e.requirement === "required" && !xe(e)).length, H = new Set((j.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, Q.jsxs)(lt, { children: [
+ }, I = Ne(P), L = P.filter(Pe).length, ie = P.filter((e) => e.enabled).length, V = (N.providers || []).filter((e) => e.requirement === "required" && !xe(e)).length, H = new Set((j.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ return /* @__PURE__ */ (0, Q.jsxs)(ut, { children: [
a ? /* @__PURE__ */ (0, Q.jsx)(R, {
tone: "warning",
title: "本机只能浏览",
@@ -1745,32 +1770,32 @@ function on(e) {
className: B,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "关注创作者",
figure: I.length,
unit: "位"
}),
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "启用来源",
figure: ie,
unit: `/ ${P.length}`
}),
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "检查失败",
figure: L,
unit: "个来源"
}),
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "未看更新",
figure: M.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "JAV 订阅",
figure: H,
unit: "位"
}),
- /* @__PURE__ */ (0, Q.jsx)(an, {
+ /* @__PURE__ */ (0, Q.jsx)(on, {
term: "未看新作",
figure: j.data?.unread || 0,
unit: "条"
@@ -1781,11 +1806,11 @@ function on(e) {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- rn(t) && (C(/* @__PURE__ */ new Set()), O(/* @__PURE__ */ new Set()), l(t), F({ tab: t }));
+ an(t) && (C(/* @__PURE__ */ new Set()), O(/* @__PURE__ */ new Set()), l(t), F({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, Q.jsx)(dt, {
+ /* @__PURE__ */ (0, Q.jsx)(ft, {
"aria-label": "关注管理区域",
"data-section-nav": !0,
"data-section-items": !0,
@@ -1801,7 +1826,7 @@ function on(e) {
/* @__PURE__ */ (0, Q.jsxs)(u, {
id: "list",
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, Q.jsx)(nn, {
+ children: [/* @__PURE__ */ (0, Q.jsx)(rn, {
readOnly: a,
toast: r,
onAdd: () => {
@@ -1812,7 +1837,7 @@ function on(e) {
onChange: O,
onActivate: () => C(/* @__PURE__ */ new Set())
}
- }), /* @__PURE__ */ (0, Q.jsx)(mt, {
+ }), /* @__PURE__ */ (0, Q.jsx)(ht, {
data: M,
sort: h,
dir: v,
@@ -1851,20 +1876,20 @@ function on(e) {
id: "add",
className: "flex flex-col gap-8",
children: [
- /* @__PURE__ */ (0, Q.jsx)(Et, {
+ /* @__PURE__ */ (0, Q.jsx)(Dt, {
data: M,
credentials: N,
readOnly: a,
toast: r
}),
- /* @__PURE__ */ (0, Q.jsx)(jt, {
+ /* @__PURE__ */ (0, Q.jsx)(Mt, {
readOnly: a,
toast: r,
onAdded: () => {
j.refetch(), l("list"), F({ tab: "list" });
}
}),
- /* @__PURE__ */ (0, Q.jsx)(Wt, {
+ /* @__PURE__ */ (0, Q.jsx)(Gt, {
groups: M.author_aliases || [],
readOnly: a,
toast: r,
@@ -1887,6 +1912,6 @@ function on(e) {
}) })
] });
}
-export { on as FollowManagePage };
+export { sn as FollowManagePage };
-//# debugId=00b5b15e-ba68-464d-a312-93c805e9e1e1
\ No newline at end of file
+//# debugId=674b25f6-536a-4708-aaf8-bcd20af2a392
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index d3112588c..ff3a229c0 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7d1e5504-3c3e-4d2c-832f-6b9e65541c07", e._sentryDebugIdIdentifier = "sentry-dbid-7d1e5504-3c3e-4d2c-832f-6b9e65541c07");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "47ac12be-9799-4945-8514-f22d55a6be73", e._sentryDebugIdIdentifier = "sentry-dbid-47ac12be-9799-4945-8514-f22d55a6be73");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -5185,9 +5185,9 @@ var k = /* @__PURE__ */ o(((e) => {
}
var Kl = 0;
function ql(e, t, n, r, i) {
- return Kl = 0, U(e.child, t, n, r, i);
+ return Kl = 0, Jl(e.child, t, n, r, i);
}
- function U(e, t, n, r, i) {
+ function Jl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
@@ -5196,13 +5196,13 @@ var k = /* @__PURE__ */ o(((e) => {
r.push(s), s.view && (a = !0);
} else a || Lp(o).view && (a = !0);
Vl = !0, Pp(o, Kl === 0 ? t : t + "_" + Kl, n), Kl++;
- } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || U(e.child, t, n, r, i) && (a = !0);
+ } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || Jl(e.child, t, n, r, i) && (a = !0);
e = e.sibling;
}
return a;
}
- function Jl(e, t) {
- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || Jl(e.child, t), e = e.sibling;
+ function U(e, t) {
+ for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || U(e.child, t), e = e.sibling;
}
function Yl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
@@ -5210,7 +5210,7 @@ var k = /* @__PURE__ */ o(((e) => {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = gi(t.default, t.share), t !== "none" && (ql(e, n, t, null, !1) || Jl(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (ql(e, n, t, null, !1) || U(e.child, !1));
}
e = e.sibling;
}
@@ -5218,7 +5218,7 @@ var k = /* @__PURE__ */ o(((e) => {
function Xl(e, t) {
if (e.tag === 30) {
var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Yl(e) : ql(e, i, a, null, !1) ? (Yl(e), n.paired || t || zd(e, r.onEnter)) : Jl(e.child, !1);
+ a === "none" ? Yl(e) : ql(e, i, a, null, !1) ? (Yl(e), n.paired || t || zd(e, r.onEnter)) : U(e.child, !1);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;
else Yl(e);
}
@@ -5233,7 +5233,7 @@ var k = /* @__PURE__ */ o(((e) => {
var i = t.get(r);
if (i !== void 0) {
var a = gi(n.default, n.share);
- if (a !== "none" && (ql(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : Jl(e.child, !1)), t.delete(r), t.size === 0) break;
+ if (a !== "none" && (ql(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : U(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
@@ -5246,7 +5246,7 @@ var k = /* @__PURE__ */ o(((e) => {
function Ql(e) {
if (e.tag === 30) {
var t = e.memoizedProps, n = mi(t, e.stateNode), r = Hl === null ? void 0 : Hl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (ql(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), zd(e, t.onShare)) : Jl(e.child, !1)), Hl !== null && Zl(e);
+ i !== "none" && (ql(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), zd(e, t.onShare)) : U(e.child, !1)), Hl !== null && Zl(e);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
else Hl !== null && Zl(e);
}
@@ -5264,7 +5264,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Jl(e.child, !1));
+ t.paired !== null && (t.paired = null, U(e.child, !1));
}
eu(e);
}
@@ -5272,12 +5272,12 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
function tu(e) {
- if (e.tag === 30) e.stateNode.paired = null, Jl(e.child, !1), eu(e);
+ if (e.tag === 30) e.stateNode.paired = null, U(e.child, !1), eu(e);
else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;
else eu(e);
}
function nu(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Jl(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;
+ for (e = e.child; e !== null;) e.tag === 30 ? U(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;
}
function ru(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
@@ -5565,7 +5565,7 @@ var k = /* @__PURE__ */ o(((e) => {
var t = e.alternate;
t !== null && (e.alternate = null, xu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Nt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
- var W = null, Su = !1;
+ var Su = null, W = !1;
function Cu(e, t, n) {
for (n = n.child; n !== null;) wu(e, t, n), n = n.sibling;
}
@@ -5579,29 +5579,29 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case 27:
ou || Ol(n, t), jl(n);
- var r = W, i = Su;
- jp(n.type) && (W = n.stateNode, Su = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), W = r, Su = i;
+ var r = Su, i = W;
+ jp(n.type) && (Su = n.stateNode, W = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Su = r, W = i;
break;
case 5: ou || Ol(n, t), jl(n);
case 6:
- if (n.tag === 6 && jl(n), r = W, i = Su, W = null, Cu(e, t, n), W = r, Su = i, W !== null) {
- if (Su) try {
- (W.nodeType === 9 ? W.body : W.nodeName === "HTML" ? W.ownerDocument.body : W).removeChild(n.stateNode), Jt = !0;
+ if (n.tag === 6 && jl(n), r = Su, i = W, Su = null, Cu(e, t, n), Su = r, W = i, Su !== null) {
+ if (W) try {
+ (Su.nodeType === 9 ? Su.body : Su.nodeName === "HTML" ? Su.ownerDocument.body : Su).removeChild(n.stateNode), Jt = !0;
} catch (e) {
bf(n, t, e);
}
else try {
- W.removeChild(n.stateNode), Jt = !0;
+ Su.removeChild(n.stateNode), Jt = !0;
} catch (e) {
bf(n, t, e);
}
}
break;
case 18:
- W !== null && (Su ? (e = W, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Mp(W, n.stateNode));
+ Su !== null && (W ? (e = Su, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Xh(e)) : Mp(Su, n.stateNode));
break;
case 4:
- r = W, i = Su, W = n.stateNode.containerInfo, Su = !0, Cu(e, t, n), W = r, Su = i;
+ r = Su, i = W, Su = n.stateNode.containerInfo, W = !0, Cu(e, t, n), Su = r, W = i;
break;
case 0:
case 11:
@@ -5631,7 +5631,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Zh(e);
+ Xh(e);
} catch (e) {
bf(t, t.return, e);
}
@@ -5639,7 +5639,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Eu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Zh(e);
+ Xh(e);
} catch (e) {
bf(t, t.return, e);
}
@@ -5673,22 +5673,22 @@ var k = /* @__PURE__ */ o(((e) => {
switch (l.tag) {
case 27:
if (jp(l.type)) {
- W = l.stateNode, Su = !1;
+ Su = l.stateNode, W = !1;
break a;
}
break;
case 5:
- W = l.stateNode, Su = !1;
+ Su = l.stateNode, W = !1;
break a;
case 3:
case 4:
- W = l.stateNode.containerInfo, Su = !0;
+ Su = l.stateNode.containerInfo, W = !0;
break a;
}
l = l.return;
}
- if (W === null) throw Error(i(160));
- wu(s, c, o), W = null, Su = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (Su === null) throw Error(i(160));
+ wu(s, c, o), Su = null, W = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ju(t, e, n), t = t.sibling;
}
@@ -5778,7 +5778,7 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case 3:
if (Jt = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Zh(t.containerInfo);
+ Xh(t.containerInfo);
} catch (t) {
bf(e, e.return, t);
}
@@ -6072,7 +6072,7 @@ var k = /* @__PURE__ */ o(((e) => {
Vu(e, t, n, r), a & 2048 && Bu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Jl(a.child, !0), Jl(t.child, !0))), Vu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (U(a.child, !0), U(t.child, !0))), Vu(e, t, n, r);
break;
default: Vu(e, t, n, r);
}
@@ -7817,7 +7817,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Zh(t);
+ e.removeChild(i), Xh(t);
return;
}
r--;
@@ -7833,7 +7833,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = i;
} while (n);
- Zh(t);
+ Xh(t);
}
function Np(e, t) {
var n = e;
@@ -8898,9 +8898,9 @@ var k = /* @__PURE__ */ o(((e) => {
function Oh(e, t, n, r) {
if (Th) {
var i = kh(r);
- if (i === null) ep(e, t, r, Ah, n), Vh(e, r);
- else if (Uh(i, e, t, n, r)) r.stopPropagation();
- else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {
+ if (i === null) ep(e, t, r, Ah, n), Bh(e, r);
+ else if (Hh(i, e, t, n, r)) r.stopPropagation();
+ else if (Bh(e, r), t & 4 && -1 < zh.indexOf(e)) {
for (; i !== null;) {
var a = Ft(i);
if (a !== null) switch (a.tag) {
@@ -9036,30 +9036,30 @@ var k = /* @__PURE__ */ o(((e) => {
default: return 32;
}
}
- var Nh = !1, Ph = null, Fh = null, Ih = null, Lh = /* @__PURE__ */ new Map(), Rh = /* @__PURE__ */ new Map(), zh = [], Bh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Vh(e, t) {
+ var Nh = !1, G = null, Ph = null, Fh = null, Ih = /* @__PURE__ */ new Map(), Lh = /* @__PURE__ */ new Map(), Rh = [], zh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function Bh(e, t) {
switch (e) {
case "focusin":
case "focusout":
- Ph = null;
+ G = null;
break;
case "dragenter":
case "dragleave":
- Fh = null;
+ Ph = null;
break;
case "mouseover":
case "mouseout":
- Ih = null;
+ Fh = null;
break;
case "pointerover":
case "pointerout":
- Lh.delete(t.pointerId);
+ Ih.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Rh.delete(t.pointerId);
+ case "lostpointercapture": Lh.delete(t.pointerId);
}
}
- function Hh(e, t, n, r, i, a) {
+ function Vh(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
@@ -9068,19 +9068,19 @@ var k = /* @__PURE__ */ o(((e) => {
targetContainers: [i]
}, t !== null && (t = Ft(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Uh(e, t, n, r, i) {
+ function Hh(e, t, n, r, i) {
switch (t) {
- case "focusin": return Ph = Hh(Ph, e, t, n, r, i), !0;
- case "dragenter": return Fh = Hh(Fh, e, t, n, r, i), !0;
- case "mouseover": return Ih = Hh(Ih, e, t, n, r, i), !0;
+ case "focusin": return G = Vh(G, e, t, n, r, i), !0;
+ case "dragenter": return Ph = Vh(Ph, e, t, n, r, i), !0;
+ case "mouseover": return Fh = Vh(Fh, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Lh.set(a, Hh(Lh.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Rh.set(a, Hh(Rh.get(a) || null, e, t, n, r, i)), !0;
+ return Ih.set(a, Vh(Ih.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Lh.set(a, Vh(Lh.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function Wh(e) {
+ function Uh(e) {
var t = Pt(e.target);
if (t !== null) {
var n = o(t);
@@ -9107,7 +9107,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
e.blockedOn = null;
}
- function Gh(e) {
+ function Wh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
var n = kh(e.nativeEvent);
@@ -9120,19 +9120,19 @@ var k = /* @__PURE__ */ o(((e) => {
}
return !0;
}
- function Kh(e, t, n) {
- Gh(e) && n.delete(t);
+ function Gh(e, t, n) {
+ Wh(e) && n.delete(t);
}
- function qh() {
- Nh = !1, Ph !== null && Gh(Ph) && (Ph = null), Fh !== null && Gh(Fh) && (Fh = null), Ih !== null && Gh(Ih) && (Ih = null), Lh.forEach(Kh), Rh.forEach(Kh);
+ function Kh() {
+ Nh = !1, G !== null && Wh(G) && (G = null), Ph !== null && Wh(Ph) && (Ph = null), Fh !== null && Wh(Fh) && (Fh = null), Ih.forEach(Gh), Lh.forEach(Gh);
}
- function Jh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, qh)));
+ function qh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Kh)));
}
- var Yh = null;
- function Xh(e) {
- Yh !== e && (Yh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Yh === e && (Yh = null);
+ var Jh = null;
+ function Yh(e) {
+ Jh !== e && (Jh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ Jh === e && (Jh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
@@ -9149,30 +9149,30 @@ var k = /* @__PURE__ */ o(((e) => {
}
}));
}
- function Zh(e) {
+ function Xh(e) {
function t(t) {
- return Jh(t, e);
+ return qh(t, e);
}
- Ph !== null && Jh(Ph, e), Fh !== null && Jh(Fh, e), Ih !== null && Jh(Ih, e), Lh.forEach(t), Rh.forEach(t);
- for (var n = 0; n < zh.length; n++) {
- var r = zh[n];
+ G !== null && qh(G, e), Ph !== null && qh(Ph, e), Fh !== null && qh(Fh, e), Ih.forEach(t), Lh.forEach(t);
+ for (var n = 0; n < Rh.length; n++) {
+ var r = Rh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();
+ for (; 0 < Rh.length && (n = Rh[0], n.blockedOn === null);) Uh(n), n.blockedOn === null && Rh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
var i = n[r], a = n[r + 1], o = i[Tt] || null;
- if (typeof a == "function") o || Xh(n);
+ if (typeof a == "function") o || Yh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
if (i = a, o = a[Tt] || null) s = o.formAction;
else if (jh(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Yh(n);
}
}
}
- function Qh() {
+ function Zh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9204,15 +9204,15 @@ var k = /* @__PURE__ */ o(((e) => {
};
}
}
- function $h(e) {
+ function Qh(e) {
this._internalRoot = e;
}
- eg.prototype.render = $h.prototype.render = function(e) {
+ $h.prototype.render = Qh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
bh(n, Ld(), e, t, null, null);
- }, eg.prototype.unmount = $h.prototype.unmount = function() {
+ }, $h.prototype.unmount = Qh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
@@ -9220,10 +9220,10 @@ var k = /* @__PURE__ */ o(((e) => {
bh(e.current, 2, null, e, null, null), Gd(), t[Et] = null;
}
};
- function eg(e) {
+ function $h(e) {
this._internalRoot = e;
}
- eg.prototype.unstable_scheduleHydration = function(e) {
+ $h.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = xt();
e = {
@@ -9231,18 +9231,18 @@ var k = /* @__PURE__ */ o(((e) => {
target: e,
priority: t
};
- for (var n = 0; n < zh.length && t !== 0 && t < zh[n].priority; n++);
- zh.splice(n, 0, e), n === 0 && Wh(e);
+ for (var n = 0; n < Rh.length && t !== 0 && t < Rh[n].priority; n++);
+ Rh.splice(n, 0, e), n === 0 && Uh(e);
}
};
- var tg = n.version;
- if (tg !== "19.3.1") throw Error(i(527, tg, "19.3.1"));
+ var eg = n.version;
+ if (eg !== "19.3.1") throw Error(i(527, eg, "19.3.1"));
he.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var ng = {
+ var tg = {
bundleType: 0,
version: "19.3.1",
rendererPackageName: "react-dom",
@@ -9250,15 +9250,15 @@ var k = /* @__PURE__ */ o(((e) => {
reconcilerVersion: "19.3.1"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!rg.isDisabled && rg.supportsFiber) try {
- Ze = rg.inject(ng), Qe = rg;
+ var ng = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!ng.isDisabled && ng.supportsFiber) try {
+ Ze = ng.inject(tg), Qe = ng;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
var n = !1, r = "", o = wc, s = Tc, c = Ec;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[Et] = t.current, Qf(e), new $h(t);
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Zh), e[Et] = t.current, Qf(e), new Qh(t);
};
})), P = /* @__PURE__ */ o(((e, t) => {
function n() {
@@ -11883,8 +11883,12 @@ var Ni = (e, t, n) => V(Pr, {
action: "follow-name",
name: e,
ids: t
-}, "POST", n);
-async function Ri(e) {
+}, "POST", n), Ri = (e, t) => V(Pr, {
+ action: "follow",
+ entity_id: e,
+ enabled: !0
+}, "POST", t);
+async function zi(e) {
await Promise.all([
H.fetchQuery({
queryKey: Lr,
@@ -11900,7 +11904,7 @@ async function Ri(e) {
})
]);
}
-function zi(e, t) {
+function Bi(e, t) {
H.setQueryData(Lr, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
@@ -11909,28 +11913,28 @@ function zi(e, t) {
} : n)
});
}
-function Bi(e) {
+function Vi(e) {
let t = new Set(e);
H.setQueryData(Lr, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var Vi = () => H.invalidateQueries({
+var Hi = () => H.invalidateQueries({
queryKey: Lr,
exact: !0
});
-function Hi(e) {
+function Ui(e) {
let t = e.results || [], n = t.reduce((e, t) => e + (t.added || 0), 0), r = t.reduce((e, t) => e + (t.updated || 0), 0), i = t.filter((e) => !e.ok).length, a = [];
return n && a.push(`新增 ${n} 条`), r && a.push(`更新 ${r} 条`), !a.length && i < t.length && a.push("没有更新"), i && a.push(`${i} 个失败`), a.length || a.push("没有更新"), `已检查 ${t.length} 个来源:${a.join(" · ")}`;
}
-function Ui(e) {
+function Wi(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 Wi = (e) => (e?.results || []).filter((e) => !e.ok), Gi = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Ki = (e) => e.last_checked_at ? Cr(e.last_checked_at) : "未检查", qi = /* @__PURE__ */ new Set([
+var Gi = (e) => (e?.results || []).filter((e) => !e.ok), Ki = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", qi = (e) => e.last_checked_at ? Cr(e.last_checked_at) : "未检查", Ji = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -11944,49 +11948,49 @@ var Wi = (e) => (e?.results || []).filter((e) => !e.ok), Gi = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), Ji = (e) => qi.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Yi = {
+]), Yi = (e) => Ji.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Xi = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "暂时无法连接"
-}, Xi = (e) => !!e.present && !e.missing.length, Zi = [
+}, Zi = (e) => !!e.present && !e.missing.length, Qi = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], Qi = [
+], $i = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], $i = {
+], ea = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
-}, ea = "rand";
-function ta(e, t) {
+}, ta = "rand";
+function na(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=100&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.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-var na = Infinity;
-function ra(e, t) {
+var ra = Infinity;
+function ia(e, t) {
return {
queryKey: [
"follow-feed",
- ta(e, 0),
+ na(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => B(ta(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => B(na(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 100 : void 0,
placeholderData: ke,
- gcTime: na
+ gcTime: ra
};
}
-var ia = ["follow-feed", "credentials"], aa = (e) => B(Tr, e).catch(() => ({ providers: [] }));
-async function oa(e, t) {
- let n = ra(e.view, e.revision);
+var aa = ["follow-feed", "credentials"], oa = (e) => B(Tr, e).catch(() => ({ providers: [] }));
+async function sa(e, t) {
+ let n = ia(e.view, e.revision);
H.removeQueries({
- queryKey: ia,
+ queryKey: aa,
exact: !0
});
let r = H.getQueryData(n.queryKey) !== void 0;
@@ -11998,13 +12002,13 @@ async function oa(e, t) {
}),
initialPageParam: 0,
getNextPageParam: n.getNextPageParam,
- gcTime: na
+ gcTime: ra
}), H.fetchQuery({
- queryKey: ia,
- queryFn: () => aa(t)
+ queryKey: aa,
+ queryFn: () => oa(t)
})]);
}
-function sa(e) {
+function ca(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -12013,10 +12017,10 @@ function sa(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function ca(e, t, n) {
+function la(e, t, n) {
return [...e].sort((e, r) => rr(n, t(e)) - rr(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function la(e) {
+function ua(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -12024,14 +12028,14 @@ function la(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function ua(e) {
+function da(e) {
let t = H.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 = la(t).find((t) => t.id === e);
+ let n = ua(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -12042,7 +12046,7 @@ function ua(e) {
}
return null;
}
-function da(e) {
+function fa(e) {
H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -12052,7 +12056,7 @@ function da(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return la(t).some((t) => t.id === e.id) ? {
+ return ua(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -12062,30 +12066,30 @@ function da(e) {
}))
});
}
-function fa(e, t) {
+function pa(e, t) {
H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && wa(n, null, e, t));
-}
-function pa(e) {
- return la(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+ }, (n) => n && Ta(n, null, e, t));
}
function ma(e) {
+ return ua(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+}
+function ha(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 ha(e) {
+function ga(e) {
let t = /* @__PURE__ */ new Set();
- return la(e).forEach((e) => ma(e).forEach((e) => t.add(e))), t;
+ return ua(e).forEach((e) => ha(e).forEach((e) => t.add(e))), t;
}
-function ga(e, t) {
+function _a(e, t) {
let n = t === "images" ? "image" : "video";
- return pa(e).find((e) => ma(e).has(n)) || e.primary;
+ return ma(e).find((e) => ha(e).has(n)) || e.primary;
}
-function _a(e) {
+function va(e) {
return {
status: "",
media: "videos",
@@ -12100,16 +12104,16 @@ function _a(e) {
seed: 0
};
}
-function va(e) {
- return pa(e).filter((e) => e.playable && e.media_kind === "video");
+function ya(e) {
+ return ma(e).filter((e) => e.playable && e.media_kind === "video");
}
-var ya = {
+var ba = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function ba({ 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} ${ya[s] || ya.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function xa({ 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} ${ba[s] || ba.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,
@@ -12118,14 +12122,14 @@ function ba({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function xa(e) {
+function Sa(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 Sa(e, t, n) {
- return e === t ? $i[e] ? {
+function Ca(e, t, n) {
+ return e === t ? ea[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -12133,13 +12137,13 @@ function Sa(e, t, n) {
dir: "desc"
};
}
-function Ca(e, t, n, r) {
- let i = Sa(e, n, r);
+function wa(e, t, n, r) {
+ let i = Ca(e, n, r);
if (!i) return "";
- let a = $i[i.sort];
+ let a = ea[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function wa(e, t, n, r) {
+function Ta(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -12169,7 +12173,7 @@ function wa(e, t, n, r) {
})
};
}
-function Ta(e, t) {
+function Ea(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -12189,7 +12193,7 @@ function Ta(e, t) {
label: e
})), n;
}
-function Ea(e, t) {
+function Da(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -12204,7 +12208,7 @@ function Ea(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function Da(e, t) {
+function Oa(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -12212,13 +12216,13 @@ function Da(e, t) {
return "general";
}
// src/react/follow-feed/follow-view.ts
-function Oa(e, t, n) {
+function ka(e, t, n) {
let r = new URLSearchParams(e), i = (e) => [...new Set((r.get(e) || "").split(",").filter(Boolean))], a = (e) => {
let t = Number(r.get(e));
return t > 0 ? t : 0;
}, o = r.get("status"), s = r.get("sort");
return {
- status: Zi.find(([e]) => e && e === o)?.[0] || "",
+ status: Qi.find(([e]) => e && e === o)?.[0] || "",
media: r.get("media") === "images" ? "images" : "videos",
author: i("author")[0] || "",
provider: i("provider")[0] || "",
@@ -12226,16 +12230,16 @@ function Oa(e, t, n) {
tags: i("tag"),
durMin: a("dur_min"),
durMax: a("dur_max"),
- sort: s === "rand" ? s : Qi.find(([e]) => e === s)?.[0] || "new",
+ sort: s === "rand" ? s : $i.find(([e]) => e === s)?.[0] || "new",
seed: Number(r.get("seed")) >>> 0 || t || n(),
dir: r.get("dir") === "asc" ? "asc" : "desc"
};
}
-function ka(e) {
+function Aa(e) {
let t = new URLSearchParams();
return e.author && t.set("author", e.author), e.provider && t.set("provider", e.provider), e.tags.length && t.set("tag", e.tags.join(",")), e.work && t.set("work", e.work), e.durMin && t.set("dur_min", String(e.durMin)), e.durMax && t.set("dur_max", String(e.durMax)), e.status && t.set("status", e.status), e.media === "images" && t.set("media", e.media), e.sort !== "new" && t.set("sort", e.sort), e.sort === "rand" && t.set("seed", String(e.seed)), e.dir !== "desc" && t.set("dir", e.dir), "/follow" + (t.size ? `?${t}` : "");
}
-function Aa(e, t) {
+function ja(e, t) {
return {
...e,
author: t,
@@ -12248,7 +12252,7 @@ function Aa(e, t) {
status: ""
};
}
-function ja(e, t) {
+function Ma(e, t) {
return {
...e,
author: "",
@@ -12261,14 +12265,14 @@ function ja(e, t) {
};
}
// src/react/follow-feed/follow-controller.ts
-function Ma(e, t, n) {
+function Na(e, t, n) {
let r = () => {
- let t = Oa(e.location().search, e.view().seed, e.rollSeed);
+ let t = ka(e.location().search, e.view().seed, e.rollSeed);
return e.adoptView(t), t;
}, i = (t) => {
e.live() && e.push(t);
}, a = (t, n = {}) => {
- e.adoptView(t), e.route(ka(t)), i({
+ e.adoptView(t), e.route(Aa(t)), i({
...n,
view: e.view()
}), e.syncPhotoWalls();
@@ -12277,7 +12281,7 @@ function Ma(e, t, n) {
e.writeSession({ discoverySeed: t }), a({
...e.view(),
seed: t,
- sort: ea
+ sort: ta
}, { seed: e.session().discoverySeed });
}, s = {
...n,
@@ -12318,25 +12322,25 @@ function Ma(e, t, n) {
discoverySeed: e.enterSeed(),
scrollY: 0,
revision: e.session().revision + 1
- }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(ka(e.view()));
+ }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(Aa(e.view()));
}
};
}
// src/card-art/face-frame.ts
-var Na = .32, Pa = .6;
-function Fa(e) {
+var Pa = .32, Fa = .6;
+function Ia(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function Ia(e, t, n = 1, r = Na, i = Pa) {
- if (!Fa(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function La(e, t, n = 1, r = Pa, i = Fa) {
+ if (!Ia(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function La(e, t, n = 1, r = Na, i = Pa) {
- let a = Ia(e, t, n, r, i);
- if (a <= 1 || !Fa(e) || !t) return null;
+function Ra(e, t, n = 1, r = Pa, i = Fa) {
+ let a = La(e, t, n, r, i);
+ if (a <= 1 || !Ia(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -12347,48 +12351,48 @@ function La(e, t, n = 1, r = Na, i = Pa) {
};
}
// src/card-art/image-fallback.ts
-var Ra = "|", za = "closest:";
-function Ba(e) {
- return String(e ?? "").split(Ra).map((e) => e.trim()).filter(Boolean);
+var za = "|", Ba = "closest:";
+function Va(e) {
+ return String(e ?? "").split(za).map((e) => e.trim()).filter(Boolean);
}
-function Va({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
+function Ha({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
let a = (Array.isArray(t) ? t : [t]).filter(Boolean);
return [
`data-drop="${z(e)}"`,
- a.length ? `data-fallbacks="${z(a.join(Ra))}"` : "",
+ a.length ? `data-fallbacks="${z(a.join(za))}"` : "",
n ? `data-initial="${z(n)}"` : "",
r ? `data-drop-class="${z(r)}"` : "",
i ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function Ha(e) {
+function Ua(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = Ba(e.dataset.fallbacks);
+ let t = Va(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Ra) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(za) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(za)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(Ba)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-var Ua = /* @__PURE__ */ new WeakSet();
-function Wa(e) {
- Ua.has(e) || (Ua.add(e), e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && Ha(e.target);
+var Wa = /* @__PURE__ */ new WeakSet();
+function Ga(e) {
+ Wa.has(e) || (Wa.add(e), e.addEventListener("error", (e) => {
+ e.target instanceof HTMLImageElement && Ua(e.target);
}, !0));
}
// src/card-art/native-image.ts
-function Ga(e, t, n, r) {
+function Ka(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function Ka(e, t, n, r, i = 1) {
+function qa(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -12403,15 +12407,15 @@ function Ka(e, t, n, r, i = 1) {
height: t * c
};
}
-var qa = .1;
-function Ja(e, t, n, r) {
+var Ja = .1;
+function Ya(e, t, n, r) {
if (![
e,
t,
n,
r
].every((e) => Number.isFinite(e) && e > 0)) return null;
- let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * qa;
+ let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Ja;
return Math.min(a, o) >= s ? null : o < a ? {
width: a,
height: s
@@ -12421,37 +12425,37 @@ function Ja(e, t, n, r) {
};
}
// src/card-art/representatives.ts
-var Ya = /* @__PURE__ */ new Map();
-function Xa(e) {
+var Xa = /* @__PURE__ */ new Map();
+function Za(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && Ya.set(e.k, e.rep);
+ e.rep && e.has_avatar && Xa.set(e.k, e.rep);
});
}
-function Za(e) {
- return Ya.get(e);
+function Qa(e) {
+ return Xa.get(e);
}
// src/jav-artwork.ts
-function Qa(e) {
+function $a(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function $a(e) {
+function eo(e) {
return {
- javLayout: Qa(e.javLayout),
- javImage: eo(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: $a(e.javLayout),
+ javImage: to(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function eo(e) {
+function to(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function to(e, t) {
- return e.is_jav && e.code && e.has_cover && (eo(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function no(e, t) {
+ return e.is_jav && e.code && e.has_cover && (to(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var no = .704, ro = .85;
-function io(e, t, n = !1) {
+var ro = .704, io = .85;
+function ao(e, t, n = !1) {
let r = Number(e?.px?.[0]), i = Number(e?.px?.[1]), a = Number(e?.x0);
if (!(r > 0 && i > 0 && t > 0) || !Number.isFinite(a)) return null;
let o = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), s = o(a, 0, r), c = Math.max(s, o(e?.x1, r, r)), l = o(e?.y0, 0, i), u = Math.max(l, o(e?.y1, i, i)), d = c - s, f = u - l;
@@ -12471,38 +12475,38 @@ function io(e, t, n = !1) {
height: g(i / f * m)
};
}
-function ao(e, t) {
+function oo(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || eo(t) !== "cover" && r), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || to(t) !== "cover" && r), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
-function oo(e, t) {
+function so(e, t) {
let n = [];
return e.querySelectorAll("img[data-jav-image]").forEach((e) => {
e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));
}), n;
}
// src/card-art/markup.ts
-var so = "代表作画面,非本人", co = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, lo = (e, t = !1) => {
+var co = "代表作画面,非本人", lo = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, uo = (e, t = !1) => {
let n = t === !0 ? 1 : t || 0;
- return co(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
-}, uo = (e) => lo(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), fo = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, po = (e, t, n) => co(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), mo = (e) => e && typeof e == "object" ? e : null;
-function ho(e) {
+ return lo(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
+}, fo = (e) => uo(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), po = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, mo = (e, t, n) => lo(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), ho = (e) => e && typeof e == "object" ? e : null;
+function go(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function go({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
- let g = !!(t && n), _ = g ? co(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? po(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
+function _o({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
+ let g = !!(t && n), _ = g ? lo(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? mo(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
if (!b) return "";
- let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? xo(p) : "", w = d || bo(p);
- return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${so}" aria-label="${so}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${so}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Va({
+ let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? So(p) : "", w = d || xo(p);
+ return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${co}" aria-label="${co}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${co}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Ha({
dropStyle: (f || !!C || !!w) && S,
fallbacks: x
})}>`;
}
-function _o(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
- let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Va({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
- return `<span class="ini">${z(er(nn(r, e, t?.id)))}</span>` + (u || go({
+function vo(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
+ let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Ha({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
+ return `<span class="ini">${z(er(nn(r, e, t?.id)))}</span>` + (u || _o({
kind: r,
id: t && t.id,
hasImage: !!(t && t.has_image),
@@ -12517,19 +12521,19 @@ function _o(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0,
standIn: !!(t && t.avatar_stand_in)
}));
}
-function vo(e, t, n) {
- return _o(e, t, n ? Za(e) : null, n || "performer");
+function yo(e, t, n) {
+ return vo(e, t, n ? Qa(e) : null, n || "performer");
}
-function yo(e) {
- let t = mo(e);
+function bo(e) {
+ let t = ho(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function bo(e) {
- let t = yo(e);
+function xo(e) {
+ let t = bo(e);
return t ? ` style="object-position:${t}"` : "";
}
-function xo(e) {
- let t = mo(e)?.box;
+function So(e) {
+ let t = ho(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -12538,8 +12542,8 @@ function xo(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function So(e, t, n = !1) {
- let r = uo(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
+function Co(e, t, n = !1) {
+ let r = fo(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
l.x0,
(l.px || [])[0],
(l.px || [])[1],
@@ -12550,45 +12554,45 @@ function So(e, t, n = !1) {
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${z(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;
}
-var Co = {
+var wo = {
kind: "",
html: ""
};
-function wo(e, t, n, r) {
- let i = to(e, r);
- if (!i) return Co;
- let a = e.has_cover && e.code ? uo(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = So(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
+function To(e, t, n, r) {
+ let i = no(e, r);
+ if (!i) return wo;
+ let a = e.has_cover && e.code ? fo(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = Co(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
return {
kind: i === "cover" ? "cover" : "thumb",
html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${z(a)}" data-jav-thumb="${z(o)}" data-jav-image-layout="${t}" `)
};
}
-function To(e, t, n, r) {
- return e.is_jav ? wo(e, t, n, r) : e.follow_thumb_url ? {
+function Eo(e, t, n, r) {
+ return e.is_jav ? To(e, t, n, r) : e.follow_thumb_url ? {
kind: "thumb",
html: `<img class="poster" src="${z(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`
- } : Eo(e, t, n, r);
+ } : Do(e, t, n, r);
}
-function Eo(e, t, n, r) {
- return e.is_jav ? wo(e, t, n, r) : e.has_cover && e.cover_key ? {
+function Do(e, t, n, r) {
+ return e.is_jav ? To(e, t, n, r) : e.has_cover && e.cover_key ? {
kind: "cover",
- html: So(e, t, n)
- } : Do(e, n);
+ html: Co(e, t, n)
+ } : Oo(e, n);
}
-function Do(e, t) {
- return !e.has_thumb && !e.has_local_poster ? Co : {
+function Oo(e, t) {
+ return !e.has_thumb && !e.has_local_poster ? wo : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="${t ? "eager" : "lazy"}" decoding="async">`
};
}
-function Oo(e, t) {
- return Eo(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
-}
function ko(e, t) {
+ return Do(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+}
+function Ao(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav ? to(e, t) === "cover" ? lo(e) : n : e.has_cover && e.cover_key ? lo(e) : n;
+ return e.is_jav ? no(e, t) === "cover" ? uo(e) : n : e.has_cover && e.cover_key ? uo(e) : n;
}
-function Ao(e) {
+function jo(e) {
let t = e.performers || [], n = e.performer_entities ?? e.entity_refs?.performer ?? [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -12599,33 +12603,33 @@ function Ao(e) {
total: e.performer_total || t.length
};
}
-function jo(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Ao(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${_o(e, a[t], Za(e))}</span>`).join("")}</div>` : `<span class="mav">${_o(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Za(n) : null, t || "performer")}</span>`;
+function Mo(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = jo(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${vo(e, a[t], Qa(e))}</span>`).join("")}</div>` : `<span class="mav">${vo(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Qa(n) : null, t || "performer")}</span>`;
}
-function Mo(e, t) {
+function No(e, t) {
let n = (e.performers || [])[0];
return e.is_jav && n ? nn("performer", n) : e.creator ? nn("creator", e.creator) : (n ? nn("performer", n) : "") || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
// src/ui-kit/overlay-scrollbar.ts
-var No = /* @__PURE__ */ new Map();
-function Po(e) {
- No.get(e)?.destroy();
-}
-function Fo() {
- for (let [e, t] of No) e.isConnected ? t.repair() : t.destroy();
+var Po = /* @__PURE__ */ new Map();
+function Fo(e) {
+ Po.get(e)?.destroy();
}
-function Io(e) {
- for (let [t, n] of No) (t === e || e.contains(t)) && n.destroy();
+function Io() {
+ for (let [e, t] of Po) e.isConnected ? t.repair() : t.destroy();
}
function Lo(e) {
- for (let [t, n] of No) (t === e || e.contains(t)) && n();
+ for (let [t, n] of Po) (t === e || e.contains(t)) && n.destroy();
}
-function Ro(e, { variant: t = "", axes: n } = {}) {
+function Ro(e) {
+ for (let [t, n] of Po) (t === e || e.contains(t)) && n();
+}
+function zo(e, { variant: t = "", axes: n } = {}) {
if (!e) return null;
if (e.dataset.overlayScrollbar) {
if (!n || e.dataset.overlayAxes === n.join("")) return null;
- Po(e);
+ Fo(e);
}
let r = e === document.documentElement, i = r ? ["y"] : n ?? ["y", "x"], a = getComputedStyle(e), o = !r && (a.position === "absolute" || a.position === "fixed" || e.matches("dialog,[popover]")), s = r ? document.body : o ? e : e.parentElement;
if (!s) return null;
@@ -12761,54 +12765,54 @@ function Ro(e, { variant: t = "", axes: n } = {}) {
e && T();
},
destroy() {
- No.get(e) === O && (h = !0, No.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...No.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
+ Po.get(e) === O && (h = !0, Po.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...Po.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
}
});
- return No.set(e, O), O;
+ return Po.set(e, O), O;
}
// src/ui-kit/collapse.ts
-var zo = /* @__PURE__ */ new WeakMap();
-function Bo(e, t, n) {
- Ho(t, n, () => e.open, (t) => {
+var Bo = /* @__PURE__ */ new WeakMap();
+function Vo(e, t, n) {
+ Uo(t, n, () => e.open, (t) => {
e.open = t;
});
}
-function Vo(e, t) {
- Ho(e, t, () => !e.hidden, (t) => {
+function Ho(e, t) {
+ Uo(e, t, () => !e.hidden, (t) => {
e.hidden = !t;
});
}
-function Ho(e, t, n, r) {
+function Uo(e, t, n, r) {
e.classList.add("ui-fcollapse");
- let i = (zo.get(e) || 0) + 1;
- zo.set(e, i);
- let a = () => zo.get(e) === i;
+ let i = (Bo.get(e) || 0) + 1;
+ Bo.set(e, i);
+ let a = () => Bo.get(e) === i;
if (t) {
e.inert = !1;
let t = n() ? e.getBoundingClientRect().height : 0;
- r(!0), Wo(e, t, a);
- } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Uo(e, () => {
+ r(!0), Go(e, t, a);
+ } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Wo(e, () => {
a() && (r(!1), e.style.height = "");
});
}
-function Uo(e, t) {
+function Wo(e, t) {
let n = !1, r, i = (a) => {
a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());
};
e.addEventListener("transitionend", i), r = setTimeout(i, 260);
}
-function Wo(e, t, n = () => !0) {
- e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Uo(e, () => {
+function Go(e, t, n = () => !0) {
+ e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Wo(e, () => {
n() && (e.style.height = "auto", e.classList.add("ui-fcollapse-settled"));
});
}
// src/ui-kit/sounds.ts
-var Go = null, Ko = !1;
-function qo() {
+var Ko = null, qo = !1;
+function Jo() {
let e = globalThis.AudioContext || globalThis.webkitAudioContext;
- return e ? (Go ||= new e(), Go.state === "suspended" && Go.resume()?.catch?.(() => {}), Go) : null;
+ return e ? (Ko ||= new e(), Ko.state === "suspended" && Ko.resume()?.catch?.(() => {}), Ko) : null;
}
-function Jo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
+function Yo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
let u = t + c, d = e.createOscillator(), f = e.createGain();
d.type = n, d.frequency.setValueAtTime(r, u), i !== r && d.frequency.exponentialRampToValueAtTime(i, u + a), s ? (f.gain.setValueAtTime(.001, u), f.gain.exponentialRampToValueAtTime(o, u + s)) : f.gain.setValueAtTime(o, u), f.gain.exponentialRampToValueAtTime(.001, u + a);
let p = d;
@@ -12818,7 +12822,7 @@ function Jo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o
}
p.connect(f), f.connect(e.destination), d.start(u), d.stop(u + a + .01);
}
-function Yo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
+function Xo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
let s = Math.max(1, Math.round(e.sampleRate * n)), c = e.createBuffer(1, s, e.sampleRate), l = c.getChannelData(0);
for (let e = 0; e < s; e++) l[e] = Math.random() * 2 - 1;
let u = e.createBufferSource();
@@ -12830,8 +12834,8 @@ function Yo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack
u.disconnect(), d.disconnect(), f.disconnect();
}, u.start(t);
}
-var Xo = {
- click: (e, t) => Yo(e, t, {
+var Zo = {
+ click: (e, t) => Xo(e, t, {
duration: .06,
volume: .12,
filter: {
@@ -12839,24 +12843,24 @@ var Xo = {
Q: 1
}
}),
- "toggle-on": (e, t) => Jo(e, t, {
+ "toggle-on": (e, t) => Yo(e, t, {
from: 550,
to: 650,
duration: .08,
volume: .15
}),
- "toggle-off": (e, t) => Jo(e, t, {
+ "toggle-off": (e, t) => Yo(e, t, {
from: 650,
to: 550,
duration: .08,
volume: .15
}),
success: (e, t) => {
- Jo(e, t, {
+ Yo(e, t, {
from: 523,
duration: .12,
volume: .18
- }), Jo(e, t, {
+ }), Yo(e, t, {
from: 653.75,
duration: .12,
volume: .18,
@@ -12864,12 +12868,12 @@ var Xo = {
});
},
warning: (e, t) => {
- Jo(e, t, {
+ Yo(e, t, {
type: "triangle",
from: 600,
duration: .08,
volume: .15
- }), Jo(e, t, {
+ }), Yo(e, t, {
type: "triangle",
from: 600,
duration: .08,
@@ -12877,7 +12881,7 @@ var Xo = {
start: .16
});
},
- error: (e, t) => Jo(e, t, {
+ error: (e, t) => Yo(e, t, {
type: "sawtooth",
from: 400,
to: 200,
@@ -12889,7 +12893,7 @@ var Xo = {
Q: 1
}
}),
- whoosh: (e, t) => Yo(e, t, {
+ whoosh: (e, t) => Xo(e, t, {
duration: .12,
volume: .08,
attack: .036,
@@ -12899,66 +12903,66 @@ var Xo = {
},
sweepTo: 6e3
}),
- pop: (e, t) => Jo(e, t, {
+ pop: (e, t) => Yo(e, t, {
from: 1500,
to: 500,
duration: .04,
volume: .15
})
};
-Object.freeze(Object.keys(Xo));
-function Zo(e) {
- Ko = e === !0;
-}
+Object.freeze(Object.keys(Zo));
function Qo(e) {
- let t = Xo[e];
+ qo = e === !0;
+}
+function $o(e) {
+ let t = Zo[e];
if (!t) throw Error(`没有「${e}」这种界面音效`);
- if (!Ko) return !1;
- let n = qo();
+ if (!qo) return !1;
+ let n = Jo();
return n ? (t(n, n.currentTime), !0) : !1;
}
-var $o = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", es = "input[type=\"checkbox\"][role=\"switch\"]";
-function ts(e) {
+var es = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", ts = "input[type=\"checkbox\"][role=\"switch\"]";
+function ns(e) {
return e.disabled === !0 || e.getAttribute("aria-disabled") === "true";
}
-var ns = /* @__PURE__ */ new WeakSet();
-function rs(e = document) {
- ns.has(e) || (ns.add(e), e.addEventListener("click", (e) => {
- let t = e.target?.closest?.($o);
- t && !ts(t) && Qo("click");
+var rs = /* @__PURE__ */ new WeakSet();
+function is(e = document) {
+ rs.has(e) || (rs.add(e), e.addEventListener("click", (e) => {
+ let t = e.target?.closest?.(es);
+ t && !ns(t) && $o("click");
}, { capture: !0 }), e.addEventListener("change", (e) => {
let t = e.target;
- t?.matches?.(es) && !ts(t) && Qo(t.checked ? "toggle-on" : "toggle-off");
+ t?.matches?.(ts) && !ns(t) && $o(t.checked ? "toggle-on" : "toggle-off");
}, { capture: !0 }));
}
// src/ui-kit/anchored-menu.ts
-var is = null, as = globalThis;
-as.__peachMenuCloser || (as.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
- if (!is) return;
+var as = null, os = globalThis;
+os.__peachMenuCloser || (os.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
+ if (!as) return;
let t = e.target;
- is.menu.contains(t) || is.toggle.contains(t) || (!is.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && is.setOpen(!1);
+ as.menu.contains(t) || as.toggle.contains(t) || (!as.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && as.setOpen(!1);
}, !0));
-function os() {
- is && is.setOpen(!1);
+function ss() {
+ as && as.setOpen(!1);
}
-var ss = /* @__PURE__ */ new WeakMap();
-function cs(e) {
- ss.delete(e), e.classList.remove("leaving"), e.hidden && Qo("whoosh"), e.hidden = !1;
+var cs = /* @__PURE__ */ new WeakMap();
+function ls(e) {
+ cs.delete(e), e.classList.remove("leaving"), e.hidden && $o("whoosh"), e.hidden = !1;
}
-function ls(e, t) {
- if (e.hidden || ss.has(e)) return;
+function us(e, t) {
+ if (e.hidden || cs.has(e)) return;
let n = () => {
- ss.get(e) === n && (ss.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
+ cs.get(e) === n && (cs.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
};
- ss.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
+ cs.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
t.target === e && n();
}, { once: !0 }), setTimeout(n, 240));
}
-var us = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
-function ds(e, t) {
+var ds = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
+function fs(e, t) {
return e.target instanceof Node && e.target.contains(t);
}
-function fs(e, t, n, { side: r = !1, align: i = "end" } = {}) {
+function ps(e, t, n, { side: r = !1, align: i = "end" } = {}) {
let a = null, o = () => {
let e = t.getBoundingClientRect(), o = n.offsetWidth;
if (a = {
@@ -12968,26 +12972,26 @@ function fs(e, t, n, { side: r = !1, align: i = "end" } = {}) {
n.dataset.placement = "right", n.style.maxHeight = Math.max(0, innerHeight - 32) + "px", n.style.left = Math.max(16, Math.min(e.right + 8, innerWidth - o - 16)) + "px", n.style.top = Math.max(16, Math.min(e.top, innerHeight - n.offsetHeight - 16)) + "px";
return;
}
- let s = us(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
+ let s = ds(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
n.dataset.placement = d ? "bottom" : "top", n.style.maxHeight = f + "px";
let p = i === "start" || n.classList.contains("context-card") ? e.left : e.right - o;
n.style.left = Math.max(8, Math.min(p, innerWidth - o - 8)) + "px", n.style.top = (d ? e.bottom + 8 : e.top - 8 - f) + "px";
}, s = (e) => {
- if (!ds(e, t) || !a) return;
+ if (!fs(e, t) || !a) return;
let n = t.getBoundingClientRect();
(e.target === document || e.target === window || Math.abs(n.left - a.left) > .5 || Math.abs(n.top - a.top) > .5) && d(!1);
}, c = n.hasAttribute("popover"), l = !1, u = !1, d = (r) => {
- u || (r ? (is && is.mount !== e && is.setOpen(!1), l = !0, cs(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
+ u || (r ? (as && as.mount !== e && as.setOpen(!1), l = !0, ls(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
capture: !0,
passive: !0
- })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), ls(n, () => {
+ })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), us(n, () => {
n.style.left = "", n.style.top = "", n.style.maxHeight = "", c && n.matches(":popover-open") && n.hidePopover();
- })), t.setAttribute("aria-expanded", String(r)), is = r ? {
+ })), t.setAttribute("aria-expanded", String(r)), as = r ? {
mount: e,
menu: n,
toggle: t,
setOpen: d
- } : is && is.mount === e ? null : is);
+ } : as && as.mount === e ? null : as);
}, f = (e) => {
e.stopPropagation(), d(!l);
}, p = (e) => {
@@ -12997,16 +13001,16 @@ function fs(e, t, n, { side: r = !1, align: i = "end" } = {}) {
setOpen: d,
isOpen: () => l,
dispose: () => {
- u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), is?.menu === n && (is = null), ss.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
+ u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), as?.menu === n && (as = null), cs.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
}
};
}
// src/ui-kit/select-field.ts
-function ps(e) {
+function ms(e) {
return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${z(e)}" alt="" width="16" height="16">` : R(e, "gselectmark") : "";
}
-function ms(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
- let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${ps(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"
+function hs(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
+ let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${ms(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"
aria-selected="${String(e) === String(a[0])}" tabindex="-1"><span data-select-content>${o([
e,
t,
@@ -13017,13 +13021,13 @@ function ms(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
aria-expanded="false" aria-label="${z(n)}"><span data-select-label>${o(a)}</span>${R("chevron-down")}</button>
<div class="popmenu gselectmenu" role="listbox" aria-label="${z(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;
}
-function hs(e) {
+function gs(e) {
let t = e.querySelector("[data-select-trigger]"), n = e.querySelector("[data-select-menu]"), r = e.querySelector("[data-select-label]"), i = () => [...n.querySelectorAll("[data-select-option]")], a = () => n.querySelector("[aria-selected=\"true\"]");
t.addEventListener("click", () => {
let r = `${t.getBoundingClientRect().width}px`;
n.style.minWidth = r, e.hasAttribute("data-fixed-width") && (n.style.width = r);
});
- let o = fs(e, t, n);
+ let o = ps(e, t, n);
t.addEventListener("click", () => {
o.isOpen() && a()?.focus();
});
@@ -13058,44 +13062,44 @@ function hs(e) {
}), e;
}
// src/ui-kit/media-source-icons.ts
-var gs = {
+var _s = {
local: "hard-drive",
guangya: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEWUlEQVR42sWXT2hcVRTGf/fNYCZdNNPGTaHaSUXFVQZSLLowoe3GdpEERHFhYqTQRBATcWlpSly56YQu4ipNZivYxCK46Z9EsBGkHdwItdhXrLixzaASo2bucXHve/feNzOagqQXHnPf/XPOd77z3XPfKLwmkxTZit4lkiEiykQK8wA5+5v0c5i5nNj3ZJ03nwPyKpmvEekFpGNZvV6PE58qdT7BEIoLRKqYOo0g6PtOogQEDkDWeS4DVgQ0MVpNqbGNpRSATDCEcLHJYcAAzWz4QHIqZCcdswwloWr7iBpWJzeWlIxTAq4CJSK7MNmQOhXrSGXeWzj205AGAiiLQAAt0JA6HZ09eRRDCKV0UmGoUsq8SzJoKRS7DgFJxpQxmjhRXsRg5pU4AAKIKvL7xmQeGPVWerJIHBACSX9TQw5EAlB75lLnnm1t18NgHqHsAPjGvCj8KHN27rEuONgPnV3w96/wVx3urZrotefMj0n5DABalfME59CjUXwGPGDlEegbgZ5+mtpmHW5fgusz8NtdF30AwKZCa9AKJeNIYERZ4anM0esuwWvzJurttK8+hLUZY1B5gaUpMIHlW+8Wh0YL7O2BU5dhb4lttxc/sEBmnE3lmba6yrf0re1RE7vj7RbOf1iBWhXqdw1D+3rh8DtQLIUgNuvwzXmaUm3T25yCJA3Kgjg+DS+fcXMPYvjkLYhXw1Ql/YHT0H861MXcs7C5bo+2BCzkpg8x3ZpDZTa8cQE6i274XB/8/K0TVt8oPDcI67FxFq9AYQ/sP2zm8wXIdcDWn7D7AOwuGdZsRWzNQFJMegfh1EU3tjoLy+85oR4agVfnzdydFZg/ZuY6izD1PRSKzXbjFageS2tF1FZEIvD0QDj29aKt41bJHV0Z7YiZ31iH7z5rbfdmFRruTsj/q5K7D4TvP9Ys9fZofXkeuntgz5Nw6X1jNDn363FzjbgyAzeqnhCzKXhmAKauuk2LY7C2YAWJExyJ6CyQ5LL5aMvtvVE1YlWZtBIexTAF9zOonyg7tCn1Ht2JohsCPS+Fe3+quas3eRpi6G9o82hpAWCj7t5fGIVdxRCE9mt5ereb0+C3ezWnCS1eXweAmkW4tuj6nUU4fiZTQPCMmijY1wvPj4a14vaKi1pjhScOsG6VAoArlZCFo5NwIgvCA/JUP5z8NLTxxVnn2Hx8uPUND1TbOnB0El45R1N6Ls8aagEeL5kUZY/qgximD3riU5n7Jbz62xeikQXj4GHa/RhmjxgQqkV5F3sSRKfA2hei6pvw+dntO791DSpH4Jc7nuCyAhT3NWTT0Z6BtBiV4MR0ezZuXTPCvb7Q8jpJo/aveNyF9N8AkrarCPvL7lr+o270kK0dD9mUTHAz/C7cwSbUIoRlHlWLWIwoUEGoPwL3McJSpCrUiRjbcfeKKfUxcQSg5lhCMQzEO5D3OophNcdS8O8YQMYpoRkix+j/LkxFDWGZAhVVcSn/Bw2n+w/oK+fWAAAAAElFTkSuQmCC",
115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",
pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII=",
onedrive: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAL30lEQVR42u2aa4xd11XHf2ufez2v6/GMY2dix4nHbRw7tI5TmyZgFToKtCKokitoigT9kAopFEFFGqkSAUrDowiJD614SEj5EEG/VUXllQgQLbQVCNqIokoVQmmVKKiNgELcUGfuPXuvtfiw9z73zPUjduxAC3dJW/uc0Zk7Z/3Xf/3XWvsOzG1uc5vb3OY2t7nNbW5z+/9o8r/xR898Kp1txb7fAriABcTFRAKhafwfhkv6x39/YvSv/2cAuO9J3z92e1cc2E+qcDQFRwNYY1gAGkcChMYhgDQOyLPi/tTyYPArnz2x8MVvSwDuf9L3fyPZB2LgvSpOCpCCowLWOCaONo402WkJEIJDAxKcEEDEIfEUxgc+f3r0Z982ANz3CX+oEf/lFnZHcRIQmwyCBScVELxxJDgyyE5Lk0GQUAABwPKLTvyJke7+iU+dka9+ywJw/5O+P415DOfsRCCKE4EY8m6hx4QGpLEc7WaaCtJAECeII5JZIBgAnnheUvPg586s/Om3HAD3P+n7mwl/m+C21iAaRIGJOFGK00BqsgZ4yfnQGDQZhBp5AgxwRAzBwcm7OO42aV5s3vt3b1l97FrfeXAtv7z5I184mybtXTHGtYWF8Eb5z8mpZrSwlAzcQB1UwUSw4JjJFATL6AfAEYJkB90F3AkGLpLLhIBgeOYA4izYUvqtu//iha9/7q3rn/gfZcDr3/P0Vrvd/kxs49tTG9E2kdrI6fvuYOPIPsYKrcHYYKIwcUgCLZDEu+hbcJpmmvcEp6l6UGkvjpDpL57dF3EcA3FwWraHP/rUD+z+g1edAXc99PxmGp9/PLZxS9XwskyV4/dscui12Xl1SJojnAzUIDrZaYGEYOY0jeA4UiIuQTCdpkEXHvfMBBwozgP5R7bLPf4u8IoBCFfy0KmHn3tA4/YzqrplxWlVRdVYWVvk+OmDRKVbybPjavk6ASlBVMETeBIsgUTBk+MRPDqSBItAufeJl+ctP9M6HgWiY9GxCI7uO/Hx/3jiVQPg1MPPfTi1+rgmRZNiKWFJu3X6rcew0GTBU4gJ2lSA0KwBqmAKnkCTgIJEsOhQQCDle0ngE6AtDreOTwogKe/WgrfgEayFZpf+4Os+9uKbrnsKnHr4Xx5NMT2kMdGtpGjK+8Hb97N6w4hxglaL4zZlQSwMUPLPTMg3ASxkGps6TdEECY4nx7w0QFKoXkpiTQME3Ot9ThPS5HeAk9dNBE89/NwDqdXHNSZScT61CY2R1CaaAdz7rruxpmGSyEszEBOF1qdlMBUg3PILh07ocimQxgjBaapDQQl4LgBiU/HbJcRRwIZCGoVcEsWRVmlaVxo5+/T37nnimgG466HnNy1ufyHFtKYxRzw7n0gxK//xrds5dPsG0XLkdzhveSUvouiQ3EvAHHHPJTA4BMtgBCO4IyEr/hQgx3Y3pBuHxJUGD56X5J6A4ITGGTS5irjxtVab33j2+PJHXrEGxPH5R+MkrqU2kmIktTFHvji/sm+FA0c3mCiMe863Wmjfy301SOqIgpgjmlHxZFhrOd/HuW7aWLGxYxPDJoZHJx1aIt6yTFoa4A5mZTkognnuFays0HBwZSl9+NhXXvzy4S+fv++qGfD69zy9Fdv0V1pErsv7mgYx8YYfOs3u/atoiXasANT8L12gaol86eRwz2Wt7GK9Oi+KeE4HdyesNsjRZXShQcVzIyV5UVkQcq/QlOg3hQ1NGaoEJufHwwefObb0+1csgu1LkwdUFU2l3M0AcPCuwyztXWWSprU+zjifDDSBVmcB8RI29253c0yNxi3X+CJ0zXpgeHyFtgkZM8lR93p+UD4GL52kg5nkaJaOEoQQfGG01P7ekX/e9meOLX30ygCI8WwucZYZkCoASjMUDty5Sau9Gm895S+1XxXMHbMaecsCWJx3s5IOmc+mhRFiNHsDiydHpOK8Ghi5glhxFMkfa5BHZ8tOm+QHpbTM7oIHWNqVHtv8p/G/PXvH4p9fFoDNd3x+K43jmqlianRpkBIalcNvvhMLTaZ26fVrxCsYSXPkO+etPFgTWJ1gjpti5ohqBsCMZhcsn9iND0J21ovzLtNr8XyIUhAwkTw8dYhkyriDhPxnRVgYDNJvAscuK4Jtm7ZSG0mT3ir3owPr7DlyICt8EbtYrqvjnfNaXqgIXq7Tlmt8SSdvDW8TNlG8VaxVll63Qlgdds5Xn1JpsWt36SYkLcJXRdEENcE07911WUG4/dCXxj99WQakNm5qUlwN1ZoCiptx8Lu/IzczpbGpL5WqIpd7M3bkuVh+c1PLlI+V9oZnlcTVWLh5yOJrl0hd1NnJAhNUsg6YFRaY9JTcqwDkHsKliORUG4Zi7wd++5IMGO4dnUiTSJxE0qQltRE3Y+P0bTRroxzxWaX3aTpY763FnGB1IMjC4Mnw0k57zJHXmAiNsX5mT3aUndGv9xXoVKNvsiPyeYF6ibpNo1+vHW7d+OLkxCUBWLp5Yzu1mfamuQNbXF/mhpO35T6/p/qxl/dqWfTEneBO8BxlT1URM1peBgSfGD5J3Qct3znClwc7I06vaFBZJ5l5VgGYgtAtFdTzdQUg9XYxfuySACwc2L96wxuOTu/Xljl473eSpEHNy0Q3zXfX3OR4ysIm6rj6VCBUy6BTqJ4SFhVXxZOirSLBGN2x0jmts9TvpUMqDKiptiPy/Yj3Iz+z3LnlkhrgItujY69h9fhrsrKWipqid9N4fUEtNA21wdGS70WVxLw4bx31iRmM2gWaKnvfsh8fNt1nzgKhfiEIoevfSt57J/54KGcl3SCV9+lvyPFLAiDOE2Z2twbp+nb3DIJJPuaqL9edURj5tKbU90x9R1JWTFfFa+ub8rWWfrnZHVg6OppqyGWiX++dUglKqXMvDZI7Ich0rwDQ2ylHzJdshIRPJvVfysdPUp6u0S/1uNdDS2ly8EL/Uu5ELQtipX6sjZV1OWSq7Nu6EdNpb2/9qPvMz8t1NaueBceLw15HbIHQj/7Ohv/SAHzpfcO/ue1D2980kVH2DlQyG6yjXBYOoUMFJ+e+mGUNKEXbk2OqeOdlLn+WjMVDCyzcskKK03ZBZ5y/GBCznjhCCNM2WQoILl1V7FIBwE0+fdlWOLl90k3OulNg7P1V6VXckiL9eu/JwUtnp9MSWFPAUzlLNGPvvQfQeBHq9523HiPs4sOM1zMWkY4BlQVysTSw8JXLAjAc2iOTl+Ssi2SnKnouID4VE+eCwUaKc7W5ccszgJdGyC0/t+e79iGLA1KaOthh5jPOXyL6s9alpshF6d/tA/7yZQ9Ebv3g+T9xs7d1LdTMVukv3i/UiueWLQteYYAnRaOXBkhpRg03veNwd1DSHZjYzuvovRnjCgC46Kxf1V+69/5Meqe8+WXPBIcj+/H2BXvGYXkHfJUMdebwPM/XMLrV4/J8b2ln5N1g/U03llF5GuHZ6z4DZsXvasx3JjA4H7ziM8HDv/hfPxwn6eNS4KuFIXQlM0deyFG30giZaQEgA2Epa4InY/XkGit3rO8QvB1TZe++32m+Qv9n7dO8W7au6puhm3/h3CO2rb/WTwWRWv58WgatnNJqzf06AOWx19XYtW+B9e85uDPnZ6jfP2Pog3Ed7BsM2OTdcu6qvxq7+WfP/byO4696EZjy/WRHsGCemxGtYpjTAM2nPWbOrj1D9p65CRtMO74+3S/GgrpfF+cbtnhQ/vEVfzd468+d+772m/Fjbra3+6V61GW5AfKy14R2Myw5u9Z2sX7PBtY0OxqdPgizAFQmmF8H5wNb/NTFnb+qL0cPf+jfD0xekF/3l9I73XyRrgvMYEzPAUrumzNcHbL3jTfhPeeNndHvpmW/cL9G+yPgAd53Ie2v6dvhw4+eO9Weiw+mcXq7tWmjdoOUbtDdkUZYvnUPK0fWulbBekPNLAAXsMCu2fGP8H7561f9HyQ2H/n6PZOxnrSJv01dgyBhsDxYWdwYHQnLC0ojLyAyrpOjWk6cVHXSp31TaRhJhvvVAVAdfZZF/vDlIj63uc1tbnOb29zmNre5zW1ucwP+G1ME77lSc/kUAAAAAElFTkSuQmCC"
-}, _s = {
- ...Object.fromEntries(hn.map((e) => [e.id, gs[e.id] || e.icon])),
+}, vs = {
+ ...Object.fromEntries(hn.map((e) => [e.id, _s[e.id] || e.icon])),
online: "rss",
smb: "network"
-}, vs = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", ys = {
+}, ys = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", bs = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, bs = {
- medium: ys.medium,
- small: "size-8 rounded-lg p-0 text-body-medium"
}, xs = {
+ medium: bs.medium,
+ small: "size-8 rounded-lg p-0 text-body-medium"
+}, Ss = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, Ss = "size-(--icon-inline) shrink-0", Cs = {
+}, Cs = "size-(--icon-inline) shrink-0", ws = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, ws = {
+}, Ts = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, Ts = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function Es(e = "compact") {
- return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${Ts("star", "size-4")}</button></span>`;
+}, Es = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function Ds(e = "compact") {
+ return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${Es("star", "size-4")}</button></span>`;
}
-function Ds(e, t = "", n = e) {
- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${Ts("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
+function Os(e, t = "", n = e) {
+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0">${Es("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary"></div></div></div></div>`;
}
-function Os({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? ys[t] : bs[t], s = n ? Ts(n, r ? Ss : xs[t]) : "", c = r ? `<span class="${Cs[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${vs} ${o} ${ws[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+function ks({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? bs[t] : xs[t], s = n ? Es(n, r ? Cs : Ss[t]) : "", c = r ? `<span class="${ws[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${ys} ${o} ${Ts[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var ks = {
+var As = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -13107,66 +13111,66 @@ var ks = {
chevron: "size-3.5"
}
};
-function As(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
- let a = ks[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${Ts("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
+function js(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
+ let a = As[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${Es("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
}
-var js = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Ms = "flex min-w-0 flex-col gap-2", Ns = "text-body-regular text-text-secondary", Ps = "text-display-4-medium tabular-nums text-text-primary", Fs = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function Is(e) {
- return `<div data-collection-summary="" class="${js}"><div class="${Ms}"><span class="${Ns}">${e}</span><strong class="${Ps}"><span data-skeleton="count" aria-hidden="true" class="${Fs}"></span></strong></div></div>`;
+var Ms = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Ns = "flex min-w-0 flex-col gap-2", Ps = "text-body-regular text-text-secondary", Fs = "text-display-4-medium tabular-nums text-text-primary", Is = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function Ls(e) {
+ return `<div data-collection-summary="" class="${Ms}"><div class="${Ns}"><span class="${Ps}">${e}</span><strong class="${Fs}"><span data-skeleton="count" aria-hidden="true" class="${Is}"></span></strong></div></div>`;
}
// src/ui-kit/markup.ts
-var Ls = /* @__PURE__ */ new Set([
+var Rs = /* @__PURE__ */ new Set([
"secondary",
"warning",
"error",
"success"
]);
-function Rs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
+function zs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
return `<details class="geist-note-details"><summary>${z(e)}</summary>
<ul>${t.map((e) => `<li>${e.href ? `<a href="${z(e.href)}">${z(e.label || "")}</a>` : `<b>${z(e.label || "")}</b>`}<span>${z(e.note || "")}</span>${e.hint ? `<code>${z(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${z(n)}</p>` : ""}</details>`;
}
-function zs(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
- let l = Ls.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";
+function Bs(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
+ let l = Rs.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";
return `<div class="geist-note geist-note-${l}${r ? ` ${z(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>
- ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? xn(e) : e)}</span></p>${f}${c ? Rs(c) : ""}</div>`;
+ ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? xn(e) : e)}</span></p>${f}${c ? zs(c) : ""}</div>`;
}
-function Bs(e = "加载中") {
+function Vs(e = "加载中") {
let t = Array.from({ length: 10 }, (e, t) => `<i aria-hidden="true" style="--spinner-angle:${t * 36}deg;--spinner-delay:${t * 100 - 900}ms"></i>`).join("");
return `<span class="ui-geist-spinner" role="status" aria-label="${z(e)}">${t}</span>`;
}
-var Vs = "载入中";
-function Hs(e = "正在处理", { className: t = "" } = {}) {
+var Hs = "载入中";
+function Us(e = "正在处理", { className: t = "" } = {}) {
return `<span class="ui-geist-loading${t ? ` ${z(t)}` : ""}" role="status">
<span class="ui-geist-loading-dots" aria-hidden="true"><i></i><i></i><i></i></span>
<span>${z(e)}</span></span>`;
}
-function Us(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
+function Ws(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
let o = e.map(({ value: e, label: r, count: i, symbol: o }) => {
let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${z(Number(i).toLocaleString())}</span>`;
return `<button type="button" role="tab" ${n}="${z(e)}" aria-selected="${s}"${a ? ` aria-controls="${z(a)}"` : ""}>${o ? R(o) : ""}${z(r)}${c}</button>`;
}).join("");
return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${z(i)}` : ""}" role="tablist" aria-label="${z(r)}">${o}</div>`;
}
-function Ws(e, t, n, { className: r = "", actions: i = "" } = {}) {
+function Gs(e, t, n, { className: r = "", actions: i = "" } = {}) {
return `<div class="ui-emptystate${r ? ` ${z(r)}` : ""}" data-geist-empty-state role="status">
<div class="ui-es-icon" aria-hidden="true">${R(e)}</div>
<div class="ui-es-copy"><h3>${z(t)}</h3><p>${z(n)}</p></div>
${i ? `<div class="ui-es-actions">${i}</div>` : ""}
</div>`;
}
-function Gs(e = "") {
+function Ks(e = "") {
return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${R("check")}</span></span>`;
}
// src/ui-kit/motion.ts
-function Ks(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
+function qs(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
return `<span class="iconswap${r ? " " + z(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${z(a)}"` : ""}><span data-icon="a">${R(e, i)}</span><span data-icon="b">${R(t, i)}</span></span>`;
}
-function qs(e, t) {
+function Js(e, t) {
let n = e && (e.matches?.("[data-icon-swap]") ? e : e.querySelector?.("[data-icon-swap]"));
return n && (n.dataset.iconState = t === "b" || t === !0 ? "b" : "a"), n;
}
-function Js(e, t, { html: n = !1 } = {}) {
+function Ys(e, t, { html: n = !1 } = {}) {
if (!e) return;
let r = String(t ?? ""), i = () => {
n ? e.innerHTML = r : e.textContent = r;
@@ -13186,7 +13190,7 @@ function Js(e, t, { html: n = !1 } = {}) {
e.classList.contains("leaving") && (e.removeEventListener("transitionend", s), o());
}, 400);
}
-function Ys(e, t) {
+function Xs(e, t) {
if (!e) return;
let n = String(t ?? ""), r = e.dataset.popCount;
if (r === n && e.firstElementChild) return;
@@ -13196,9 +13200,9 @@ function Ys(e, t) {
let a = e.firstElementChild;
a.getBoundingClientRect(), a.classList.add("popping");
}
-function Xs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
+function Zs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
if (!e || !t || (t.querySelectorAll(":scope > .cleardissolve").forEach((e) => e.remove()), e.classList.remove("dissolving"), e.value = "", !n || !e.isConnected)) return () => {};
- let i = Zs(e, t, "cleardissolve");
+ let i = Qs(e, t, "cleardissolve");
if (!i) return () => {};
let a = document.createElement("span");
a.dataset.dissolveValue = "", a.textContent = n, a.style.transform = `translateX(-${Math.max(0, r)}px)`, i.append(a), e.classList.add("dissolving"), t.append(i);
@@ -13207,7 +13211,7 @@ function Xs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r
};
return i.addEventListener("animationend", c), s = setTimeout(c, 1e3), c;
}
-function Zs(e, t, n) {
+function Qs(e, t, n) {
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
if (!r.width) return null;
let a = document.createElement("span");
@@ -13227,28 +13231,28 @@ function Zs(e, t, n) {
direction: o.direction
}), a;
}
-function Qs(e, t, n = e && e.parentElement) {
+function $s(e, t, n = e && e.parentElement) {
if (!e) return () => {};
let r = e.placeholder;
if (n?.querySelectorAll(":scope > .placeholderroll").forEach((e) => e.remove()), e.classList.remove("placeholderrolling"), e.placeholder = t, !n || !r || r === t || e.value || !e.isConnected || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return () => {};
- let i = Zs(e, n, "placeholderroll");
+ let i = Qs(e, n, "placeholderroll");
if (!i) return () => {};
i.style.color = getComputedStyle(e, "::placeholder").color;
let a = document.createElement("span");
- i.append(a), e.classList.add("placeholderrolling"), n.append(i), Js(a, r), a.getBoundingClientRect(), Js(a, t);
+ i.append(a), e.classList.add("placeholderrolling"), n.append(i), Ys(a, r), a.getBoundingClientRect(), Ys(a, t);
let o = !0, s = () => {
o && (o = !1, clearTimeout(c), i.remove(), n.querySelector(":scope > .placeholderroll") || e.classList.remove("placeholderrolling"));
}, c = setTimeout(s, 900);
return s;
}
-var $s = /* @__PURE__ */ new Map();
-function ec(e, t = "") {
+var ec = /* @__PURE__ */ new Map();
+function tc(e, t = "") {
e && e.querySelectorAll("[data-count-badge]").forEach((e) => {
- let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = $s.get(n);
- $s.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
+ let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = ec.get(n);
+ ec.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
});
}
-function tc(e, t = "[data-reveal-line]") {
+function nc(e, t = "[data-reveal-line]") {
if (!e) return;
let n = [...e.querySelectorAll(t)];
if (!n.length) return;
@@ -13264,12 +13268,12 @@ function tc(e, t = "[data-reveal-line]") {
i.classList.contains("revealline") && (i.removeEventListener("transitionend", a), r());
}, 1200);
}
-var nc = [
+var rc = [
50,
100,
200
];
-function rc({ mode: e = "cloud", pageSize: t = 100 } = {}) {
+function ic({ mode: e = "cloud", pageSize: t = 100 } = {}) {
let n = Math.max(1, Math.min(200, Math.floor(t))), r = Array.from({ length: n }, (e, t) => `<span data-tag-skeleton-cell class="skeleton block rounded-lg" style="height:34px;width:${58 + (Math.imul(t + 1, 2654435761) >>> 0) % 153}px;max-width:100%"></span>`).join(""), i = Array.from({ length: Math.min(2, n) }, (e, t) => {
let r = Math.floor(n / 2) + (t === 0 ? n % 2 : 0);
return `<section class="min-w-0 bg-background-secondary-default rounded-2xl px-5 pt-4 pb-3"><span class="skeleton mb-2 block w-20" style="height:24px"></span><div class="index-tag-list gap-x-4 gap-y-0.5">${Array.from({ length: r }, () => "<span data-tag-skeleton-cell class=\"flex h-9 min-w-0 items-center gap-3 px-2.5\"><span class=\"skeleton w-32 max-w-full rounded-md\" style=\"height:16px\"></span><span class=\"skeleton ml-auto w-8 rounded-md\" style=\"height:12px\"></span></span>").join("")}</div></section>`;
@@ -13277,7 +13281,7 @@ function rc({ mode: e = "cloud", pageSize: t = 100 } = {}) {
return `<div data-skeleton="tags/${e === "alphabet" ? "alphabet" : "cloud"}/${n}" role="status" aria-label="正在读取标签" aria-busy="true"><span class="sr-only">正在读取标签</span><div aria-hidden="true">${e === "alphabet" ? `<div class="flex flex-col gap-4">${i}</div>` : `<div class="flex flex-wrap gap-1.75">${r}</div>`}<div class="mt-5 flex flex-wrap items-center justify-between gap-3" data-tag-pagination-skeleton><span class="skeleton block w-32" style="height:16px"></span><div class="flex items-center gap-2"><span class="skeleton block w-28 rounded-md" style="height:32px"></span><span class="skeleton block w-40 rounded-md" style="height:32px"></span></div></div></div></div>`;
}
// src/ui-kit/skeleton.ts
-function ic(e, t) {
+function ac(e, t) {
if (!e) return;
if (e.querySelector(".skeleton-awaiting") || !e.querySelector(".skeleton,[data-skeleton],.skeletoncard,.countskeleton") || !e.firstChild) {
t();
@@ -13295,7 +13299,7 @@ function ic(e, t) {
n.isConnected && (n.removeEventListener("transitionend", i), r());
}, 1e3);
}
-function ac(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
+function oc(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
let c = (/* @__PURE__ */ new Set([
"panel",
"cards",
@@ -13309,18 +13313,18 @@ function ac(e = "正在读取内容", { className: t = "", variant: n = "panel",
role="status" aria-label="${z(e)}"><span class="sr-only">${z(e)}</span>
<div${a ? ` class="${z(a)}"` : ""}${o ? ` data-size="${z(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;
}
-function oc({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
- if (e === "tags") return rc({ mode: n });
+function sc({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
+ if (e === "tags") return ic({ mode: n });
let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" || e === "series" ? "company" : "people"}" data-layout="${z(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\">&nbsp;</span><span class=\"n skeleton\">&nbsp;</span></span>".repeat(12)}</div>`, i = "正在读取索引";
return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${z(e)}/${z(t)}/${z(n)}" data-fill=""
role="status" aria-label="${i}"><span class="sr-only">${i}</span><section aria-hidden="true">${r}</section></div>`;
}
-var sc = {
+var cc = {
av: () => "<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>",
brandpill: (e) => `<span class="brandpill brandskeleton" style="width:${e}px"><span class="mk"></span></span>`,
pill: (e) => `<span class="pill tagskeleton" style="width:${e}px"></span>`,
"filter-pill": (e) => `<span class="skeleton" style="width:${e}px;height:var(--control-h-compact);border-radius:8px;flex:none"></span>`
-}, cc = {
+}, lc = {
av: [0],
brandpill: [
132,
@@ -13363,41 +13367,41 @@ var sc = {
76,
84
]
-}, lc = "[data-skeleton],[data-skeleton-tier],.countskeleton";
-function uc(e) {
+}, uc = "[data-skeleton],[data-skeleton-tier],.countskeleton";
+function dc(e) {
if (!e) return;
- let t = [...e.matches?.(lc) ? [e] : [], ...e.querySelectorAll(lc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
+ let t = [...e.matches?.(uc) ? [e] : [], ...e.querySelectorAll(uc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
for (let e of n) e.closest("[data-page-navigation-pending]") ? (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting")) : e.dataset.skeletonReveal || (e.dataset.skeletonReveal = "pending", e.classList.add("skeleton-awaiting"), setTimeout(() => {
e.isConnected && e.dataset.skeletonReveal === "pending" && (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting"));
}, 180));
}
-var dc = 64;
-function fc(e) {
- e = e.filter((e) => e.row && sc[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
+var fc = 64;
+function pc(e) {
+ e = e.filter((e) => e.row && cc[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
...e,
start: e.row.children.length,
added: 0
}));
let t = (e, t) => {
- let n = sc[e.kind], r = cc[e.kind], i = "";
- for (let a = Math.min(dc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
+ let n = cc[e.kind], r = lc[e.kind], i = "";
+ for (let a = Math.min(fc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
e.row.insertAdjacentHTML("beforeend", i);
};
- for (let n of e) t(n, cc[n.kind].length);
+ for (let n of e) t(n, lc[n.kind].length);
for (let n = 0; n < 4; n++) {
- let n = e.filter((e) => e.added < dc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
+ let n = e.filter((e) => e.added < fc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
let t = e.row.children[e.start].getBoundingClientRect(), n = e.row.lastElementChild.getBoundingClientRect(), r = Math.max(1, (n.right - t.left) / e.added);
return [e, Math.ceil((e.row.getBoundingClientRect().right - n.right) / r) + 1];
});
if (!n.length) break;
for (let [e, r] of n) t(e, Math.max(1, r));
}
- for (let t of e) uc(t.row);
+ for (let t of e) dc(t.row);
}
-function pc(e) {
+function mc(e) {
if (!e) return;
let t = (t) => [...e.matches?.(t) ? [e] : [], ...e.querySelectorAll(t)];
- fc(t("[data-skeleton-tier]").map((e) => ({
+ pc(t("[data-skeleton-tier]").map((e) => ({
row: e,
kind: e.dataset.skeletonTier
})));
@@ -13410,36 +13414,36 @@ function pc(e) {
for (; e.children.length > s;) e.lastElementChild.remove();
for (; e.children.length < s;) e.appendChild(t.cloneNode(!0));
}
- uc(e);
+ dc(e);
}
// src/ui-kit/sweep-gate.ts
-var mc = 1e4, hc = /* @__PURE__ */ new WeakMap(), gc = null;
-function _c() {
- return gc || typeof IntersectionObserver != "function" || (gc = new IntersectionObserver((e) => {
+var hc = 1e4, gc = /* @__PURE__ */ new WeakMap(), _c = null;
+function vc() {
+ return _c || typeof IntersectionObserver != "function" || (_c = new IntersectionObserver((e) => {
for (let { target: t, isIntersecting: n } of e) {
if (!t.isConnected) {
- yc(t);
+ bc(t);
continue;
}
let e = t;
- e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, hc.has(e) || hc.set(e, setTimeout(() => {
- hc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
- }, mc))) : (e.dataset.sweep = "idle", clearTimeout(hc.get(e)), hc.delete(e)));
+ e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, gc.has(e) || gc.set(e, setTimeout(() => {
+ gc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
+ }, hc))) : (e.dataset.sweep = "idle", clearTimeout(gc.get(e)), gc.delete(e)));
}
- })), gc;
-}
-function vc(e) {
- _c()?.observe(e);
+ })), _c;
}
function yc(e) {
- gc?.unobserve(e), clearTimeout(hc.get(e)), hc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
+ vc()?.observe(e);
+}
+function bc(e) {
+ _c?.unobserve(e), clearTimeout(gc.get(e)), gc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
}
// src/ui-kit/scroll.ts
-var bc = /* @__PURE__ */ new Map(), xc, Sc = 240, Cc = 50, wc = 70, Tc = .55, Ec = .35, Dc = 480;
-function Oc(e, t) {
- return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * Tc / t + 1)) * t;
+var xc = /* @__PURE__ */ new Map(), Sc, Cc = 240, wc = 50, Tc = 70, Ec = .55, Dc = .35, Oc = 480;
+function kc(e, t) {
+ return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * Ec / t + 1)) * t;
}
-function kc(e) {
+function Ac(e) {
let t = null, n = 0, r = () => typeof e.animate != "function" || matchMedia("(prefers-reduced-motion:reduce)").matches, i = () => {
t = null, n || e.classList.remove("edgepull");
}, a = (n, r) => {
@@ -13447,11 +13451,11 @@ function kc(e) {
};
return {
drag(i) {
- r() || (t?.cancel(), t = null, n = -Oc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
+ r() || (t?.cancel(), t = null, n = -kc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
},
release() {
if (!n) return;
- let t = n, r = Uc();
+ let t = n, r = Wc();
n = 0, e.style.removeProperty("--edge-pull"), a([{
"--edge-pull": `${t}px`,
easing: r.easing
@@ -13459,9 +13463,9 @@ function kc(e) {
},
kick(t) {
if (r() || n) return;
- let i = -Oc(t * Ec, Math.min(e.clientWidth, Dc));
+ let i = -kc(t * Dc, Math.min(e.clientWidth, Oc));
if (!i) return;
- let o = Uc();
+ let o = Wc();
a([
{
"--edge-pull": "0px",
@@ -13477,10 +13481,10 @@ function kc(e) {
}
};
}
-function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
+function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
if (!e) return;
n && (e.dataset.scrollGesture = "");
- let o = bc.get(e);
+ let o = xc.get(e);
if (o) return o.options.drag ||= t, o.options.fade ||= n, o.update(), o;
let s = {
drag: t,
@@ -13488,7 +13492,7 @@ function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
wheel: r,
elastic: i,
dragIgnore: a
- }, c = new AbortController(), l = kc(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
+ }, c = new AbortController(), l = Ac(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
e.dataset[t] !== n && (e.dataset[t] = n);
}, b = "", x = () => (b ||= getComputedStyle(e).overflowX, [
"auto",
@@ -13514,7 +13518,7 @@ function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
cancelAnimationFrame(h), h = 0, v = 0;
}, O = (t) => {
let n = Math.min(Math.max(t - g, 0), 64);
- if (g = t, _ += (p - _) * (1 - Math.exp(-n / wc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
+ if (g = t, _ += (p - _) * (1 - Math.exp(-n / Tc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
else if (h = 0, v) {
let e = v;
v = 0, E(e);
@@ -13526,11 +13530,11 @@ function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
if (t.defaultPrevented || !t.cancelable || Math.abs(t.deltaY) <= Math.abs(t.deltaX) || n <= 0 || !x()) return;
t.preventDefault();
let r = performance.now(), i = Math.abs(t.deltaY);
- r > f && (m = !1), f = r + Sc;
+ r > f && (m = !1), f = r + Cc;
let a = h ? p : e.scrollLeft, o = a + t.deltaY;
p = Math.min(n, Math.max(0, o));
let c = o === p ? 0 : t.deltaY;
- i < Cc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
+ i < wc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
}, { passive: !1 }), T(e, "mousedown", (t) => {
d = 0, !s.drag || t.button !== 0 || e.scrollWidth - e.clientWidth <= 1 || s.dragIgnore && (t.shiftKey || t.ctrlKey || t.metaKey || t.altKey || t.target.closest?.(s.dragIgnore)) || (t.stopPropagation(), D(), u = {
x: t.pageX,
@@ -13568,18 +13572,18 @@ function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
b = "", S();
},
destroy() {
- c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), bc.delete(e), delete e.dataset.scrollGesture, u && delete document.documentElement.dataset.dragScrolling, bc.size || (xc?.disconnect(), xc = null);
+ c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), xc.delete(e), delete e.dataset.scrollGesture, u && delete document.documentElement.dataset.dragScrolling, xc.size || (Sc?.disconnect(), Sc = null);
}
};
- return bc.set(e, ee), xc || (xc = new MutationObserver(() => {
- for (let [e, t] of bc) e.isConnected || t.destroy();
- }), xc.observe(document.body, {
+ return xc.set(e, ee), Sc || (Sc = new MutationObserver(() => {
+ for (let [e, t] of xc) e.isConnected || t.destroy();
+ }), Sc.observe(document.body, {
childList: !0,
subtree: !0
})), ee;
}
-function jc(e) {
- return Ac(e, {
+function Mc(e) {
+ return jc(e, {
drag: !0,
fade: !1,
wheel: !1,
@@ -13587,9 +13591,9 @@ function jc(e) {
dragIgnore: "a,button,input,select,textarea,label,[role=\"button\"],[role=\"checkbox\"],[role=\"slider\"],.react-aria-ColumnResizer,thead"
});
}
-var Mc = 24, Nc = 2e3, Pc = 3e3, Fc = /* @__PURE__ */ new Map(), Ic = /* @__PURE__ */ new Set(), Lc = null, Rc = null, zc = /* @__PURE__ */ new Map();
-function Bc(e) {
- if (!e || Fc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
+var Nc = 24, Pc = 2e3, Fc = 3e3, Ic = /* @__PURE__ */ new Map(), Lc = /* @__PURE__ */ new Set(), Rc = null, zc = null, Bc = /* @__PURE__ */ new Map();
+function Vc(e) {
+ if (!e || Ic.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let t = new AbortController(), n = e.scrollLeft, r = 1, i = 0, a = 0, o = !1, s = !1, c = !0, l = 0, u = -1, d = !1, f = (e, n, r) => e.addEventListener(n, r, {
passive: !0,
signal: t.signal
@@ -13601,11 +13605,11 @@ function Bc(e) {
if (!m()) return;
a = requestAnimationFrame(h);
let o = i ? Math.min(t - i, 64) : 0;
- i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * Mc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + Nc)));
+ i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * Nc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + Pc)));
}, g = () => {
e.isConnected ? !a && m() && (i = 0, a = requestAnimationFrame(h)) : b();
}, _ = () => {
- l = performance.now() + Pc;
+ l = performance.now() + Fc;
};
f(e, "pointerenter", () => {
o = !0;
@@ -13625,41 +13629,41 @@ function Bc(e) {
});
y.observe(e, { childList: !0 }), f(document, "visibilitychange", g), g();
function b() {
- cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Fc.delete(e), Ic.delete(g), Rc?.unobserve(e), zc.delete(e), Fc.size || (Lc?.disconnect(), Lc = null, Rc?.disconnect(), Rc = null);
+ cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Ic.delete(e), Lc.delete(g), zc?.unobserve(e), Bc.delete(e), Ic.size || (Rc?.disconnect(), Rc = null, zc?.disconnect(), zc = null);
}
- Fc.set(e, b), Ic.add(g), Lc || (Lc = new MutationObserver(() => Ic.forEach((e) => e())), Lc.observe(document.body, {
+ Ic.set(e, b), Lc.add(g), Rc || (Rc = new MutationObserver(() => Lc.forEach((e) => e())), Rc.observe(document.body, {
attributes: !0,
attributeFilter: ["data-detail-open", "data-wall-open"]
- })), typeof IntersectionObserver == "function" && (Rc ??= new IntersectionObserver((e) => {
- for (let t of e) zc.get(t.target)?.(t.isIntersecting);
- }), zc.set(e, (e) => {
+ })), typeof IntersectionObserver == "function" && (zc ??= new IntersectionObserver((e) => {
+ for (let t of e) Bc.get(t.target)?.(t.isIntersecting);
+ }), Bc.set(e, (e) => {
c = e, g();
- }), Rc.observe(e));
+ }), zc.observe(e));
}
-function Vc(e) {
- Fc.get(e)?.();
+function Hc(e) {
+ Ic.get(e)?.();
}
-var Hc = null;
-function Uc() {
- if (!Hc) {
+var Uc = null;
+function Wc() {
+ if (!Uc) {
let e = getComputedStyle(document.documentElement);
- Hc = {
+ Uc = {
easing: e.getPropertyValue("--spring-pane").trim() || "ease",
duration: parseFloat(e.getPropertyValue("--spring-pane-ms")) || 300
};
}
- return Hc;
+ return Uc;
}
-function Wc(e, t, n, r = "x") {
- Kc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
+function Gc(e, t, n, r = "x") {
+ qc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
let i = r === "y" ? "h" : "w", a = r === "y" ? "y" : "x", o = `${n.x}px ${n.y}px`;
if (t && t[a] !== n[a] && !matchMedia("(prefers-reduced-motion:reduce)").matches) {
- let s = Uc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
+ let s = Wc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
duration: s.duration,
easing: s.easing,
fill: "none"
})];
- Gc.set(e, c);
+ Kc.set(e, c);
let l = 1 + Math.min(Math.abs(n[a] - t[a]) / n[i], 1.5) * .12;
c.push(e.animate([
{
@@ -13682,18 +13686,18 @@ function Wc(e, t, n, r = "x") {
}
e.style.translate = o;
}
-var Gc = /* @__PURE__ */ new WeakMap();
-function Kc(e) {
- e && (Gc.get(e)?.forEach((e) => e.cancel()), Gc.delete(e));
+var Kc = /* @__PURE__ */ new WeakMap();
+function qc(e) {
+ e && (Kc.get(e)?.forEach((e) => e.cancel()), Kc.delete(e));
}
-var qc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
-function Jc(e = document, t = !0) {
+var Jc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
+function Yc(e = document, t = !0) {
let n = [...e instanceof HTMLElement ? [e] : [], ...t ? e.querySelectorAll("*") : []];
- n.filter((e) => e instanceof HTMLElement && e.matches(qc)).forEach((e) => Ac(e));
- let r = (e) => e.hasAttribute("data-horizontal-scroll") || bc.has(e) && bc.get(e).options.fade !== !1;
+ n.filter((e) => e instanceof HTMLElement && e.matches(Jc)).forEach((e) => jc(e));
+ let r = (e) => e.hasAttribute("data-horizontal-scroll") || xc.has(e) && xc.get(e).options.fade !== !1;
n.flatMap((e) => {
if (!(e instanceof HTMLElement) || e === document.body || e === document.documentElement || e.closest(".ovtrack,.ui-ov-edges")) return [];
- if (e.closest("[data-skeleton],[data-skeleton-tier]")) return Po(e), [];
+ if (e.closest("[data-skeleton],[data-skeleton-tier]")) return Fo(e), [];
if (e.closest("[inert]")) return [];
let t = r(e), n = t ? ["y"] : ["y", "x"];
if (e.dataset.overlayScrollbar && e.dataset.overlayAxes === n.join("")) return [];
@@ -13705,19 +13709,19 @@ function Jc(e = document, t = !0) {
el: e,
axes: []
}] : [];
- }).forEach(({ el: e, axes: t }) => t.length ? Ro(e, { axes: t }) : Po(e));
+ }).forEach(({ el: e, axes: t }) => t.length ? zo(e, { axes: t }) : Fo(e));
}
-function Yc(e = document.body) {
+function Xc(e = document.body) {
let t = 0, n = /* @__PURE__ */ new Map(), r = (e) => !!e.closest(".ovtrack,.ui-ov-edges"), i = () => {
t = 0;
let e = [...n].filter(([e]) => e.isConnected);
n.clear();
- for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Jc(t, n);
- Fo();
+ for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Yc(t, n);
+ Io();
}, a = (e, a = !0) => {
r(e) || (n.set(e, (n.get(e) ?? !1) || a), t ||= requestAnimationFrame(i));
}, o = new MutationObserver((e) => {
- for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Lo(n.target), a(n.target, n.attributeName !== "style"));
+ for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Ro(n.target), a(n.target, n.attributeName !== "style"));
else {
for (let e of n.addedNodes) e instanceof HTMLElement && a(e);
n.removedNodes.length && !t && (t = requestAnimationFrame(i));
@@ -13741,45 +13745,45 @@ function Yc(e = document.body) {
});
let s = () => a(e);
return window.addEventListener("resize", s, { passive: !0 }), a(e), () => {
- o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Io(e), Fo();
+ o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Lo(e), Io();
};
}
// src/ui-kit/controls.ts
-function Xc(e, t = !0) {
+function Zc(e, t = !0) {
e && (t ? (e.setAttribute("aria-busy", "true"), e.setAttribute("aria-disabled", "true")) : (e.removeAttribute("aria-busy"), e.removeAttribute("aria-disabled")));
}
-var Zc = /* @__PURE__ */ new WeakSet();
-function Qc(e = document) {
- Zc.has(e) || (Zc.add(e), e.addEventListener("click", (t) => {
+var Qc = /* @__PURE__ */ new WeakSet();
+function $c(e = document) {
+ Qc.has(e) || (Qc.add(e), e.addEventListener("click", (t) => {
let n = t.target.closest?.("button[aria-busy=\"true\"],[role=\"button\"][aria-busy=\"true\"]");
n && e.contains(n) && (t.preventDefault(), t.stopImmediatePropagation());
}, !0));
}
-function $c(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
+function el(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
let s = n.map(([t, n, a]) => `<label title="${z(n)}"><input type="radio" name="${z(e)}" value="${z(t)}" ${i}
${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? R(a) : "") + z(n) : R(a)}</span><span class="sr-only">${z(n)}</span></label>`).join("");
return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${z(a)}` : ""}"><legend class="sr-only">${z(t)}</legend>${s}</fieldset>`;
}
-function el(e, t, n) {
+function tl(e, t, n) {
e?.querySelectorAll(`[${t}]`).forEach((e) => {
e.onchange = () => {
e.checked && n(e.value);
};
});
}
-var tl = 9;
-function nl({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
+var nl = 9;
+function rl({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
let c = n > t ? (e - t) / (n - t) * 100 : 0, l = `${e}${a}`;
return `<div class="ui-dial${s ? ` ${z(s)}` : ""}" ${o}>
<div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${z(i)}"
aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${z(l)}"
data-dial-step="${r}" style="--dial-at:${c}%">
<span class="ui-dial-track" aria-hidden="true"><span class="ui-dial-fill"></span></span>
- <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(tl)}</span>
+ <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(nl)}</span>
<span class="ui-dial-handle" aria-hidden="true"></span>
</div><b class="ui-dial-value mono" data-dial-value>${z(l)}</b></div>`;
}
-function rl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
+function il(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
let i = e.querySelector("[data-dial-slider]"), a = e.querySelector("[data-dial-value]"), o = e.querySelector(".ui-dial-track"), s = +i.getAttribute("aria-valuemin"), c = +i.getAttribute("aria-valuemax"), l = +i.dataset.dialStep || 1, u = +i.getAttribute("aria-valuenow"), d = (e) => Math.min(c, Math.max(s, Math.round(e / l) * l)), f = () => {
let e = `${u}${r}`;
i.style.setProperty("--dial-at", `${c > s ? (u - s) / (c - s) * 100 : 0}%`), i.setAttribute("aria-valuenow", String(u)), i.setAttribute("aria-valuetext", e), a && (a.textContent = e);
@@ -13827,9 +13831,9 @@ function rl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%"
}
};
}
-function il(e, t, n) {
+function al(e, t, n) {
n.classList.add("context-card"), n.setAttribute("popover", "manual"), n.setAttribute("role", "dialog"), n.tabIndex = -1, t.setAttribute("aria-haspopup", "dialog"), t.setAttribute("aria-controls", n.id);
- let r = fs(e, t, n), i, a = () => {
+ let r = ps(e, t, n), i, a = () => {
clearTimeout(i), r.setOpen(!1);
}, o = () => {
clearTimeout(i), i = setTimeout(() => {
@@ -13849,7 +13853,7 @@ function il(e, t, n) {
hide: a
};
}
-function al(e, { selector: t, attribute: n, onMove: r } = {}) {
+function ol(e, { selector: t, attribute: n, onMove: r } = {}) {
let i = () => [...e.querySelectorAll(t)], a = () => i().forEach((e) => e.classList.remove("dragging", "drop-before", "drop-after")), o = null;
i().forEach((e) => {
let t = e.getAttribute(n);
@@ -13870,11 +13874,11 @@ function al(e, { selector: t, attribute: n, onMove: r } = {}) {
});
}
// src/ui-kit/modal.ts
-var ol = 0;
-function sl({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
+var sl = 0;
+function cl({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-form-title-${++ol}`;
+ let l = `geist-form-title-${++sl}`;
c.setAttribute("aria-labelledby", l), c.innerHTML = `<form class="ui-geist-modal-form" novalidate>
<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">${t ? "<p></p>" : ""}
@@ -13898,31 +13902,31 @@ function sl({ title: e, description: t = "", body: n = "", confirmLabel: r, canc
if (e.preventDefault(), !(m || d.disabled)) {
if (!a) p = { confirmed: !0 }, c.close();
else {
- f.innerHTML = "", m = !0, Xc(d);
+ f.innerHTML = "", m = !0, Zc(d);
try {
p = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- f.innerHTML = zs(e.message || "操作未完成", { variant: "error" }), Xc(d, !1);
+ f.innerHTML = Bs(e.message || "操作未完成", { variant: "error" }), Zc(d, !1);
} finally {
m = !1;
}
}
}
- }, c.showModal(), Ro(c.querySelector(".ui-geist-modal-body")), Qo("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
+ }, c.showModal(), zo(c.querySelector(".ui-geist-modal-body")), $o("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
dialog: c,
confirmButton: d,
done: h,
close: () => c.close()
};
}
-var cl = 0;
-function ll({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
+var ll = 0;
+function ul({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-modal-title-${++cl}`;
+ let l = `geist-modal-title-${++ll}`;
c.setAttribute("aria-labelledby", l), c.setAttribute("aria-describedby", `${l}-body`), o && c.setAttribute("role", "alertdialog"), c.innerHTML = `<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">
<p id="${l}-body"></p><div data-modal-error></div></div></div>
@@ -13957,25 +13961,25 @@ function ll({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i
if (!n) {
if (!a) t = { confirmed: !0 }, c.close();
else {
- p.innerHTML = "", n = !0, Xc(f);
+ p.innerHTML = "", n = !0, Zc(f);
try {
t = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- p.innerHTML = zs(e.message || "操作未完成", { variant: "error" }), Xc(f, !1);
+ p.innerHTML = Bs(e.message || "操作未完成", { variant: "error" }), Zc(f, !1);
} finally {
n = !1;
}
}
}
- }, c.showModal(), Ro(c.querySelector(".ui-geist-modal-body")), Ro(u), Qo("pop"), (o ? d : f).focus();
+ }, c.showModal(), zo(c.querySelector(".ui-geist-modal-body")), zo(u), $o("pop"), (o ? d : f).focus();
});
}
// src/card-art/framing.ts
-var ul = () => window.devicePixelRatio || 1;
-function dl(e) {
+var dl = () => window.devicePixelRatio || 1;
+function fl(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -13994,17 +13998,17 @@ function dl(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), dl(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), fl(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ga(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ka(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = La({
+ let l = Ra({
cx: r,
cy: i,
faceW: a * c,
@@ -14013,13 +14017,13 @@ function dl(e) {
}, {
w: n.width,
h: n.height
- }, ul());
+ }, dl());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function fl(e, t) {
- let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? _l(e) : 0;
+function pl(e, t) {
+ let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? vl(e) : 0;
if (e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), !n) return;
e.classList.remove("panel"), [
"--panel-aspect",
@@ -14031,58 +14035,58 @@ function fl(e, t) {
"--cover-y"
].forEach((t) => e.style.removeProperty(t));
let i = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
- e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : hl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
+ e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : gl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
let a = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- a("--cover-x", vl(e, "cx"), r / n), a("--cover-y", vl(e, "cy"), n / r), pl(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && ml(e);
+ a("--cover-x", yl(e, "cx"), r / n), a("--cover-y", yl(e, "cy"), n / r), ml(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && hl(e);
}
-function pl(e, t) {
+function ml(e, t) {
if (e.dataset.frame === "front" || e.dataset.coverLayout === "still") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (hl(e) ? ro : no) * i), a = 0, o = r, s = i), !Ga(e.naturalWidth, e.naturalHeight, r, i)) return;
- let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = io({
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (gl(e) ? io : ro) * i), a = 0, o = r, s = i), !Ka(e.naturalWidth, e.naturalHeight, r, i)) return;
+ let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = ao({
x0: n,
y0: a,
x1: o,
y1: s,
px: [r, i]
- }, t, hl(e) || u);
- d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && ml(e));
+ }, t, gl(e) || u);
+ d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && hl(e));
}
-function ml(e) {
+function hl(e) {
let t = (e.dataset.thumbSrc || e.currentSrc || e.src).replace(/"/g, "%22");
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${t}")`);
}
-function hl(e) {
+function gl(e) {
let t = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "", n = e.naturalWidth / e.naturalHeight;
return !/^FC2(?:-PPV)?-/i.test(t) && (e.dataset.wideSleeve === "1" || /^(CWPBD|SMBD)-/i.test(t)) && n >= 1.75 && n < 1.85;
}
-function gl(e) {
+function _l(e) {
let t = /[?&]thumb=([12])(?=&|$)/.exec(e.src)?.[1];
if (!t || !e.naturalWidth) return;
let { width: n, height: r } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * ul() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * dl() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function _l(e) {
+function vl(e) {
let t = (e.closest(".pic,[data-media-pic]")?.style.getPropertyValue("--card-ratio").trim() || getComputedStyle(e).getPropertyValue("--card-ratio").trim()).split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function vl(e, t) {
+function yl(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var yl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", bl = /* @__PURE__ */ new WeakMap();
-function xl(e) {
- let t = e.matches(yl) ? [e] : e.querySelectorAll(yl);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), bl.set(e.parentElement, performance.now()), vc(e.parentElement));
-}
+var bl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", xl = /* @__PURE__ */ new WeakMap();
function Sl(e) {
+ let t = e.matches(bl) ? [e] : e.querySelectorAll(bl);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), xl.set(e.parentElement, performance.now()), yc(e.parentElement));
+}
+function Cl(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (yc(t), performance.now() - (bl.get(t) ?? NaN) < 180) {
+ if (bc(t), performance.now() - (xl.get(t) ?? NaN) < 180) {
t.classList.remove("imgwait");
return;
}
@@ -14092,90 +14096,90 @@ function Sl(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function Cl(e) {
+function wl(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? fl(t) : (wl(t), dl(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? pl(t) : (Tl(t), fl(t)));
}
}
-function wl(e) {
+function Tl(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let n = t.dataset.fitNative === "mark" ? Ja(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
+ let n = t.dataset.fitNative === "mark" ? Ya(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
if (t.dataset.nativeClamp = String(!!n), n) {
t.dataset.nativeSmall = "false", t.style.setProperty("--markw", n.width + "px"), t.style.setProperty("--markh", n.height + "px"), t.style.setProperty("--markbg", "none");
return;
}
- let { small: r, width: i, height: a } = Ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, ul());
+ let { small: r, width: i, height: a } = qa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, dl());
t.dataset.nativeSmall = String(r), t.style.setProperty("--markw", r ? i + "px" : "100%"), t.style.setProperty("--markh", r ? a + "px" : "100%");
let o = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", r ? `url("${o}")` : "none");
}
-function Tl(e) {
+function El(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- wl(e), e.dataset.facebox && dl(e);
+ Tl(e), e.dataset.facebox && fl(e);
});
}
-function El(e, t) {
- for (let n of oo(e, t)) fl(n), gl(n);
+function Dl(e, t) {
+ for (let n of so(e, t)) pl(n), _l(n);
}
-var Dl = !1;
-function Ol() {
- Dl || (Dl = !0, document.addEventListener("load", (e) => {
+var Ol = !1;
+function kl() {
+ Ol || (Ol = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (Sl(t), wl(t), t.classList.contains("cover") ? (fl(t), gl(t)) : t.dataset.facebox && dl(t));
+ t instanceof HTMLImageElement && (Cl(t), Tl(t), t.classList.contains("cover") ? (pl(t), _l(t)) : t.dataset.facebox && fl(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (xl(e), Cl(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (Sl(e), wl(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && Sl(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && Cl(t);
}, !0));
}
// src/card-art/hover.ts
-var kl = ".card,[data-media-card],[data-mix-card]", Al = {
+var Al = ".card,[data-media-card],[data-mix-card]", jl = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function jl(e) {
- Al = e;
+function Ml(e) {
+ jl = e;
}
-var Ml = () => !!window.__scrolling;
-function Nl(e = document, t = null) {
- e && e.querySelectorAll && (e.querySelectorAll(kl).forEach((e) => {
+var Nl = () => !!window.__scrolling;
+function Pl(e = document, t = null) {
+ e && e.querySelectorAll && (e.querySelectorAll(Al).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(kl) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(Al) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.ui-hvframes").forEach((e) => {
- e.closest(kl) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(Al) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function Pl(e) {
- e._stopHover?.(), Nl(e);
+function Fl(e) {
+ e._stopHover?.(), Pl(e);
}
-function Fl(e, t, n) {
+function Il(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function Il(e, t) {
+function Ll(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), Al.delaySeconds() && (Fl(e, "previewing", !0), i = setTimeout(() => {
- Al.delaySeconds() && Fl(e, "longhover", !0);
- }, Al.delaySeconds() * 1e3));
+ clearTimeout(i), jl.delaySeconds() && (Il(e, "previewing", !0), i = setTimeout(() => {
+ jl.delaySeconds() && Il(e, "longhover", !0);
+ }, jl.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), Fl(e, "previewing", !1), Fl(e, "longhover", !1);
+ clearTimeout(i), Il(e, "previewing", !1), Il(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
let i, s = 4, c = null, l = !1;
e.addEventListener("mouseenter", () => {
- if (!(Al.selecting() || Al.censored())) {
+ if (!(jl.selecting() || jl.censored())) {
if (a(), !c) {
c = document.createElement("img"), c.className = "ui-hvframes", c.alt = "";
let e = c;
@@ -14202,9 +14206,9 @@ function Il(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- Al.selecting() || Al.censored() || Ml() || (s = setTimeout(() => {
- if (Ml() || Al.censored()) return;
- Nl(document, e);
+ jl.selecting() || jl.censored() || Nl() || (s = setTimeout(() => {
+ if (Nl() || jl.censored()) return;
+ Pl(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -14239,20 +14243,20 @@ function Il(e, t) {
n._stopHover = l, e.addEventListener("mouseleave", l);
}
// src/core/tags.ts
-var Ll = (e) => e;
+var Rl = (e) => e;
// src/react/follow-feed/follow-helpers.ts
-function Rl([e, t, , n, r]) {
- return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${bo(r)}${xo(r)}>` : z($n(t, 2));
+function zl([e, t, , n, r]) {
+ return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${xo(r)}${So(r)}>` : z($n(t, 2));
}
-function zl(e) {
+function Bl(e) {
return {
...e,
- workMark: Rl,
- tagLabel: Ll
+ workMark: zl,
+ tagLabel: Rl
};
}
// src/sidebar.ts
-var Bl = [
+var Vl = [
"",
"follow",
"jav",
@@ -14261,7 +14265,7 @@ var Bl = [
"studios",
"flagged",
"manage"
-], Vl = [
+], Hl = [
"playlists",
"immerse",
"stats",
@@ -14270,12 +14274,12 @@ var Bl = [
"trash",
"follow-manage",
"quality"
-], Hl = /* @__PURE__ */ new Set([...Bl, ...Vl]), Ul = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
-function Wl(e) {
- let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Ul))].filter((e) => Hl.has(e));
- return n.length ? n : [...Bl];
-}
+], Ul = /* @__PURE__ */ new Set([...Vl, ...Hl]), Wl = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
function Gl(e) {
+ let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Wl))].filter((e) => Ul.has(e));
+ return n.length ? n : [...Vl];
+}
+function Kl(e) {
return [
"/",
"/unseen",
@@ -14285,13 +14289,13 @@ function Gl(e) {
"/junk-files"
].includes(e) || /^\/assets\//.test(e) || /^\/(performers|studios|creators|series|agencies|tags)\/.+/.test(e);
}
-function Kl(e) {
+function ql(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);
}
// src/react/follow-detail/follow-detail-actions.ts
-function ql(e, t) {
+function Jl(e, t) {
return {
...t,
close: () => e.close(),
@@ -14304,40 +14308,40 @@ function ql(e, t) {
...n,
tags: [...r]
};
- e.adoptView(i), e.rememberReturn(ka(i)), e.close();
+ e.adoptView(i), e.rememberReturn(Aa(i)), e.close();
},
- present: (t) => e.drawer({ tags: Kl([{ tags: t.tags || [] }]) })
+ present: (t) => e.drawer({ tags: ql([{ tags: t.tags || [] }]) })
};
}
// src/shell/index.ts
-var U, Jl, Yl = null, Xl = /* @__PURE__ */ new Set(), Zl = /* @__PURE__ */ new Set(), Ql = !1, $l = null, eu = null, tu = "", nu = "/", ru = null, iu = !1, au = !1, ou = null, su = null, cu = null, lu = "/follow", uu = "", du = null, fu = !1, pu = 0, mu = 0, hu = !1, gu = Math.floor(Math.random() * 4294967295), _u = 0, vu = 0, yu = 0, bu = /* @__PURE__ */ new Set(), xu = 0;
+var U, Yl, Xl = null, Zl = /* @__PURE__ */ new Set(), Ql = /* @__PURE__ */ new Set(), $l = !1, eu = null, tu = null, nu = "", ru = "/", iu = null, au = !1, ou = !1, su = null, cu = null, lu = null, uu = "/follow", du = "", fu = null, pu = !1, mu = 0, hu = 0, gu = !1, _u = Math.floor(Math.random() * 4294967295), vu = 0, yu = 0, bu = 0, xu = /* @__PURE__ */ new Set(), Su = 0;
function W(e) {
let t = (t) => Object.prototype.hasOwnProperty.call(e, t);
- t("state") && (U = e.state), t("barsContext") && (Jl = e.barsContext), t("detailReturnBarsContext") && (Yl = e.detailReturnBarsContext), t("selectMode") && (Ql = e.selectMode), t("lastSelectedId") && ($l = e.lastSelectedId), t("followLastSelectedId") && (eu = e.followLastSelectedId), t("selectSurface") && (tu = e.selectSurface), t("detailReturnPath") && (nu = e.detailReturnPath), t("detailOriginAnchor") && (ru = e.detailOriginAnchor), t("detailOriginAbove") && (iu = e.detailOriginAbove), t("detailReturnNeedsRestore") && (au = e.detailReturnNeedsRestore), t("activeQueue") && (ou = e.activeQueue), t("pendingQueueRoute") && (su = e.pendingQueueRoute), t("presentedItem") && (cu = e.presentedItem), t("followDetailReturnPath") && (lu = e.followDetailReturnPath), t("configurationRequestedSection") && (uu = e.configurationRequestedSection), t("pageOpens") && (pu = e.pageOpens), t("queueOpens") && (mu = e.queueOpens), t("entityJavLayout") && (hu = e.entityJavLayout), t("followDiscoverySeed") && (gu = e.followDiscoverySeed), t("followRevision") && (_u = e.followRevision), t("followScrollY") && (vu = e.followScrollY), t("playlistsRevision") && (yu = e.playlistsRevision), t("runtimeConfigurable") && (du = e.runtimeConfigurable), t("cameFromSetup") && (fu = e.cameFromSetup), Su();
+ t("state") && (U = e.state), t("barsContext") && (Yl = e.barsContext), t("detailReturnBarsContext") && (Xl = e.detailReturnBarsContext), t("selectMode") && ($l = e.selectMode), t("lastSelectedId") && (eu = e.lastSelectedId), t("followLastSelectedId") && (tu = e.followLastSelectedId), t("selectSurface") && (nu = e.selectSurface), t("detailReturnPath") && (ru = e.detailReturnPath), t("detailOriginAnchor") && (iu = e.detailOriginAnchor), t("detailOriginAbove") && (au = e.detailOriginAbove), t("detailReturnNeedsRestore") && (ou = e.detailReturnNeedsRestore), t("activeQueue") && (su = e.activeQueue), t("pendingQueueRoute") && (cu = e.pendingQueueRoute), t("presentedItem") && (lu = e.presentedItem), t("followDetailReturnPath") && (uu = e.followDetailReturnPath), t("configurationRequestedSection") && (du = e.configurationRequestedSection), t("pageOpens") && (mu = e.pageOpens), t("queueOpens") && (hu = e.queueOpens), t("entityJavLayout") && (gu = e.entityJavLayout), t("followDiscoverySeed") && (_u = e.followDiscoverySeed), t("followRevision") && (vu = e.followRevision), t("followScrollY") && (yu = e.followScrollY), t("playlistsRevision") && (bu = e.playlistsRevision), t("runtimeConfigurable") && (fu = e.runtimeConfigurable), t("cameFromSetup") && (pu = e.cameFromSetup), Cu();
}
-function Su() {
- xu += 1;
- for (let e of [...bu]) e();
+function Cu() {
+ Su += 1;
+ for (let e of [...xu]) e();
}
-function Cu(e) {
- return bu.add(e), () => {
- bu.delete(e);
+function wu(e) {
+ return xu.add(e), () => {
+ xu.delete(e);
};
}
// node_modules/react-router/dist/production/lib/router/url.js
-var wu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Tu = /^[\\/]{2}/;
-function Eu(e, t) {
+var Tu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Eu = /^[\\/]{2}/;
+function Du(e, t) {
return t + e.replace(/\\/g, "/");
}
// node_modules/react-router/dist/production/lib/router/history.js
-var Du = "popstate";
-function Ou(e) {
+var Ou = "popstate";
+function ku(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function ku(e = {}) {
+function Au(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return Pu("", {
+ return Fu("", {
pathname: r,
search: i,
hash: a
@@ -14348,14 +14352,14 @@ function ku(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : Fu(t);
+ return typeof t == "string" ? t : Iu(t);
}
- return Lu(t, n, null, e);
+ return Ru(t, n, null, e);
}
-function Au(e, t) {
+function ju(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function ju(e, t) {
+function Mu(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -14363,10 +14367,10 @@ function ju(e, t) {
} catch {}
}
}
-function Mu() {
+function Nu() {
return Math.random().toString(36).substring(2, 10);
}
-function Nu(e, t) {
+function Pu(e, t) {
return {
usr: e.state,
key: e.key,
@@ -14378,21 +14382,21 @@ function Nu(e, t) {
} : void 0
};
}
-function Pu(e, t, n = null, r, i) {
+function Fu(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? Iu(t) : t,
+ ...typeof t == "string" ? Lu(t) : t,
state: n,
- key: t && t.key || r || Mu(),
+ key: t && t.key || r || Nu(),
mask: i
};
}
-function Fu({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function Iu({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function Iu(e) {
+function Lu(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -14402,7 +14406,7 @@ function Iu(e) {
}
return t;
}
-function Lu(e, t, n, r = {}) {
+function Ru(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@ -14422,9 +14426,9 @@ function Lu(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = Ou(e) ? e : Pu(h.location, e, t);
+ let r = ku(e) ? e : Fu(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = Nu(r, l), f = h.createHref(r.mask || r);
+ let d = Pu(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -14439,9 +14443,9 @@ function Lu(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = Ou(e) ? e : Pu(h.location, e, t);
+ let r = ku(e) ? e : Fu(h.location, e, t);
n && n(r, e), l = u();
- let i = Nu(r, l), d = h.createHref(r.mask || r);
+ let i = Pu(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -14449,7 +14453,7 @@ function Lu(e, t, n, r = {}) {
});
}
function m(e) {
- return Ru(i, e);
+ return zu(i, e);
}
let h = {
get action() {
@@ -14460,8 +14464,8 @@ function Lu(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(Du, d), c = e, () => {
- i.removeEventListener(Du, d), c = null;
+ return i.addEventListener(Ou, d), c = e, () => {
+ i.removeEventListener(Ou, d), c = null;
};
},
createHref(e) {
@@ -14484,28 +14488,28 @@ function Lu(e, t, n, r = {}) {
};
return h;
}
-function Ru(e, t, n = !1) {
+function zu(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), Au(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : Fu(t);
- return i = i.replace(/ $/, "%20"), !n && Tu.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), ju(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : Iu(t);
+ return i = i.replace(/ $/, "%20"), !n && Eu.test(i) && (i = r + i), new URL(i, r);
}
// node_modules/react-router/dist/production/lib/router/utils.js
-function zu(e, t, n = "/") {
- return Bu(e, t, n, !1);
+function Bu(e, t, n = "/") {
+ return Vu(e, t, n, !1);
}
-function Bu(e, t, n, r, i) {
- let a = sd((typeof t == "string" ? Iu(t) : t).pathname || "/", n);
+function Vu(e, t, n, r, i) {
+ let a = cd((typeof t == "string" ? Lu(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? Vu(e), s = null, c = od(a);
- for (let e = 0; s == null && e < o.length; ++e) s = nd(o[e], c, r);
+ let o = i ?? Hu(e), s = null, c = sd(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = rd(o[e], c, r);
return s;
}
-function Vu(e) {
- let t = Hu(e);
- return Wu(t), t;
+function Hu(e) {
+ let t = Uu(e);
+ return Gu(t), t;
}
-function Hu(e, t = [], n = [], r = "", i = !1) {
+function Uu(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -14515,14 +14519,14 @@ function Hu(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- Au(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ ju(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = hd([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (Au(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Hu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = gd([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (ju(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Uu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: ed(l, e.index),
+ score: td(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = ad(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = od(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -14533,68 +14537,68 @@ function Hu(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of Uu(e.path)) a(e, t, !0, n);
+ else for (let n of Wu(e.path)) a(e, t, !0, n);
}), t;
}
-function Uu(e) {
+function Wu(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = Uu(r.join("/")), s = [];
+ let o = Wu(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function Wu(e) {
- e.sort((e, t) => e.score === t.score ? td(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function Gu(e) {
+ e.sort((e, t) => e.score === t.score ? nd(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var Gu = /^:[\w-]+$/, Ku = /^:[\w-]+/, qu = 3.5, Ju = 3, Yu = 2, Xu = 1, Zu = 10, Qu = -2, $u = (e) => e === "*";
-function ed(e, t) {
+var Ku = /^:[\w-]+$/, qu = /^:[\w-]+/, Ju = 3.5, Yu = 3, Xu = 2, Zu = 1, Qu = 10, $u = -2, ed = (e) => e === "*";
+function td(e, t) {
let n = e.split("/"), r = n.length;
- return n.some($u) && (r += Qu), t && (r += Yu), n.filter((e) => !$u(e)).reduce((e, t) => e + (Gu.test(t) ? Ju : Ku.test(t) ? qu : t === "" ? Xu : Zu), r);
+ return n.some(ed) && (r += $u), t && (r += Xu), n.filter((e) => !ed(e)).reduce((e, t) => e + (Ku.test(t) ? Yu : qu.test(t) ? Ju : t === "" ? Zu : Qu), r);
}
-function td(e, t) {
+function nd(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function nd(e, t, n = !1) {
+function rd(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? id(u, l, s.matcher, s.compiledParams) : rd(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = rd({
+ }, d = s.matcher && s.compiledParams ? ad(u, l, s.matcher, s.compiledParams) : id(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = id({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: hd([a, d.pathname]),
- pathnameBase: _d(hd([a, d.pathnameBase])),
+ pathname: gd([a, d.pathname]),
+ pathnameBase: vd(gd([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = hd([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = gd([a, d.pathnameBase]));
}
return o;
}
-function rd(e, t) {
+function id(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = ad(e.path, e.caseSensitive, e.end);
- return id(e, t, n, r);
+ let [n, r] = od(e.path, e.caseSensitive, e.end);
+ return ad(e, t, n, r);
}
-function id(e, t, n, r) {
+function ad(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = gd(a, 1), s = i.slice(1);
+ let a = i[0], o = _d(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = gd(a.slice(0, a.length - e.length), 1);
+ o = _d(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -14604,8 +14608,8 @@ function id(e, t, n, r) {
pattern: e
};
}
-function ad(e, t = !1, n = !0) {
- ju(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function od(e, t = !1, n = !0) {
+ Mu(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -14618,46 +14622,46 @@ function ad(e, t = !1, n = !0) {
}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function od(e) {
+function sd(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return ju(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return Mu(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function sd(e, t) {
+function cd(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function cd(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Iu(e) : e, a;
- return n ? (n = md(n), a = n.startsWith("/") || n.startsWith("\\") ? ld(n.substring(1), "/") : ld(n, t)) : a = t, {
+function ld(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Lu(e) : e, a;
+ return n ? (n = hd(n), a = n.startsWith("/") || n.startsWith("\\") ? ud(n.substring(1), "/") : ud(n, t)) : a = t, {
pathname: a,
- search: vd(r),
- hash: yd(i)
+ search: yd(r),
+ hash: bd(i)
};
}
-function ld(e, t) {
- let n = gd(t).split("/");
+function ud(e, t) {
+ let n = _d(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function ud(e, t, n, r) {
+function dd(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function dd(e) {
+function fd(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function fd(e) {
- let t = dd(e);
+function pd(e) {
+ let t = fd(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function pd(e, t, n, r = !1) {
+function md(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = Iu(e) : (i = { ...e }, Au(!i.pathname || !i.pathname.includes("?"), ud("?", "pathname", "search", i)), Au(!i.pathname || !i.pathname.includes("#"), ud("#", "pathname", "hash", i)), Au(!i.search || !i.search.includes("#"), ud("#", "search", "hash", i)));
+ typeof e == "string" ? i = Lu(e) : (i = { ...e }, ju(!i.pathname || !i.pathname.includes("?"), dd("?", "pathname", "search", i)), ju(!i.pathname || !i.pathname.includes("#"), dd("#", "pathname", "hash", i)), ju(!i.search || !i.search.includes("#"), dd("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -14669,16 +14673,16 @@ function pd(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = cd(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = ld(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var md = (e) => e.replace(/[\\/]{2,}/g, "/"), hd = (e) => md(e.join("/"));
-function gd(e, t = 0) {
+var hd = (e) => e.replace(/[\\/]{2,}/g, "/"), gd = (e) => hd(e.join("/"));
+function _d(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var _d = (e) => gd(e).replace(/^\/*/, "/"), vd = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, yd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, bd = class {
+var vd = (e) => _d(e).replace(/^\/*/, "/"), yd = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, bd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, xd = class {
status;
statusText;
data;
@@ -14688,26 +14692,26 @@ var _d = (e) => gd(e).replace(/^\/*/, "/"), vd = (e) => !e || e === "?" ? "" : e
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function xd(e) {
+function Sd(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Sd(e) {
- return hd(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function Cd(e) {
+ return gd(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var Cd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function wd(e, t) {
+var wd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function Td(e, t) {
let n = e;
- if (typeof n != "string" || !wu.test(n)) return {
+ if (typeof n != "string" || !Tu.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (Cd) try {
- let e = new URL(window.location.href), r = Tu.test(n) ? new URL(Eu(n, e.protocol)) : new URL(n), a = sd(r.pathname, t);
+ if (wd) try {
+ let e = new URL(window.location.href), r = Eu.test(n) ? new URL(Du(n, e.protocol)) : new URL(n), a = cd(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- ju(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ Mu(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -14716,44 +14720,44 @@ function wd(e, t) {
};
}
// node_modules/react-router/dist/production/lib/router/navigation.js
-var Td = new URL("http://localhost");
-function Ed(e) {
+var Ed = new URL("http://localhost");
+function Dd(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), Td);
+ return new URL(e.createHref("/"), Ed);
} catch {
- return Td;
+ return Ed;
}
}
-function Dd(e, t) {
+function Od(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function Od(e, t) {
+function kd(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function kd(e, t, n, r) {
+function Ad(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !Dd(i, n), s = !Dd(a, n);
+ let a = new URL(t, n), o = i != null && !Od(i, n), s = !Od(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !Od(e, i) || !Dd(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !kd(e, i) || !Od(i, a))) throw Error("External navigation is not allowed");
}
// node_modules/react-router/dist/production/lib/router/router.js
-var Ad = [
+var jd = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
-new Set(Ad);
-var jd = ["GET", ...Ad];
new Set(jd);
-var Md = [
+var Md = ["GET", ...jd];
+new Set(Md);
+var Nd = [
"about:",
"blob:",
"chrome:",
@@ -14765,82 +14769,82 @@ var Md = [
"filesystem:",
"javascript:"
];
-function Nd(e) {
+function Pd(e) {
try {
- return Md.includes(new URL(e).protocol);
+ return Nd.includes(new URL(e).protocol);
} catch {
return !1;
}
}
// node_modules/react-router/dist/production/lib/context.js
-var Pd = F.createContext(null);
-Pd.displayName = "DataRouter";
var Fd = F.createContext(null);
-Fd.displayName = "DataRouterState";
+Fd.displayName = "DataRouter";
var Id = F.createContext(null);
-Id.displayName = "DataRouterData";
+Id.displayName = "DataRouterState";
var Ld = F.createContext(null);
-Ld.displayName = "DataRouterNavigation";
-var Rd = F.createContext(!1), zd = F.createContext({ isTransitioning: !1 });
-zd.displayName = "ViewTransition";
-var Bd = F.createContext(null);
-Bd.displayName = "Fetchers";
+Ld.displayName = "DataRouterData";
+var Rd = F.createContext(null);
+Rd.displayName = "DataRouterNavigation";
+var zd = F.createContext(!1), Bd = F.createContext({ isTransitioning: !1 });
+Bd.displayName = "ViewTransition";
var Vd = F.createContext(null);
-Vd.displayName = "Await";
+Vd.displayName = "Fetchers";
var Hd = F.createContext(null);
-Hd.displayName = "Navigation";
+Hd.displayName = "Await";
var Ud = F.createContext(null);
-Ud.displayName = "Location";
-var Wd = F.createContext({
+Ud.displayName = "Navigation";
+var Wd = F.createContext(null);
+Wd.displayName = "Location";
+var Gd = F.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-Wd.displayName = "Route";
-var Gd = F.createContext(!1);
-Gd.displayName = "IsDataRoute";
-var Kd = F.createContext(void 0);
-Kd.displayName = "RouteId";
-var qd = F.createContext(null);
-qd.displayName = "RouteError";
+Gd.displayName = "Route";
+var Kd = F.createContext(!1);
+Kd.displayName = "IsDataRoute";
+var qd = F.createContext(void 0);
+qd.displayName = "RouteId";
+var Jd = F.createContext(null);
+Jd.displayName = "RouteError";
// node_modules/react-router/dist/production/lib/errors.js
-var Jd = "REACT_ROUTER_ERROR", Yd = "REDIRECT", Xd = "ROUTE_ERROR_RESPONSE";
-function Zd(e) {
- if (e.startsWith(`${Jd}:${Yd}:{`)) try {
+var Yd = "REACT_ROUTER_ERROR", Xd = "REDIRECT", Zd = "ROUTE_ERROR_RESPONSE";
+function Qd(e) {
+ if (e.startsWith(`${Yd}:${Xd}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function Qd(e) {
- if (e.startsWith(`${Jd}:${Xd}:{`)) try {
+function $d(e) {
+ if (e.startsWith(`${Yd}:${Zd}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new bd(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new xd(t.status, t.statusText, t.data);
} catch {}
}
// node_modules/react-router/dist/production/lib/hooks.js
-function $d() {
- return F.useContext(Ud) != null;
-}
function ef() {
- return Au($d(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Ud).location;
+ return F.useContext(Wd) != null;
}
-var tf = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
-function nf() {
- return F.useContext(Gd) ? yf() : rf();
+function tf() {
+ return ju(ef(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Wd).location;
}
+var nf = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function rf() {
- Au($d(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = F.useContext(Pd), { basename: t, navigator: n } = F.useContext(Hd), { matches: r } = F.useContext(Wd), { pathname: i } = ef(), a = JSON.stringify(fd(r)), o = F.useRef(!1);
+ return F.useContext(Kd) ? bf() : af();
+}
+function af() {
+ ju(ef(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = F.useContext(Fd), { basename: t, navigator: n } = F.useContext(Ud), { matches: r } = F.useContext(Gd), { pathname: i } = tf(), a = JSON.stringify(pd(r)), o = F.useRef(!1);
return F.useLayoutEffect(() => {
o.current = !0;
}), F.useCallback((r, s = {}) => {
- if (ju(o.current, tf), !o.current) return;
+ if (Mu(o.current, nf), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = pd(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : hd([t, c.pathname])), kd(typeof r == "string" ? r : Fu(r), n.createHref(c), Ed(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = md(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : gd([t, c.pathname])), Ad(typeof r == "string" ? r : Iu(r), n.createHref(c), Dd(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -14850,19 +14854,19 @@ function rf() {
]);
}
F.createContext(null);
-function af(e, t) {
- return of(e, t);
+function of(e, t) {
+ return sf(e, t);
}
-function of(e, t, n) {
- Au($d(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = F.useContext(Hd), { matches: i } = F.useContext(Wd), a = i[i.length - 1], o = a ? a.params : {};
+function sf(e, t, n) {
+ ju(ef(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = F.useContext(Ud), { matches: i } = F.useContext(Gd), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = ef(), l;
+ let c = tf(), l;
if (t) {
- let e = typeof t == "string" ? Iu(t) : t;
- Au(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? Lu(t) : t;
+ ju(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -14870,13 +14874,13 @@ function of(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : zu(e, { pathname: d });
- let p = pf(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : Bu(e, { pathname: d });
+ let p = mf(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: hd([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : hd([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: gd([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : gd([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ F.createElement(Ud.Provider, { value: {
+ return t && p ? /* @__PURE__ */ F.createElement(Wd.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -14889,14 +14893,14 @@ function of(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function sf() {
- let e = vf(), t = xd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function cf() {
+ let e = yf(), t = Sd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ F.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ F.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var cf = /* @__PURE__ */ F.createElement(sf, null), lf = class extends F.Component {
+var lf = /* @__PURE__ */ F.createElement(cf, null), uf = class extends F.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -14904,7 +14908,7 @@ var cf = /* @__PURE__ */ F.createElement(sf, null), lf = class extends F.Compone
error: e.error
};
}
- static contextType = Rd;
+ static contextType = zd;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -14925,30 +14929,30 @@ var cf = /* @__PURE__ */ F.createElement(sf, null), lf = class extends F.Compone
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = Qd(e.digest);
+ let t = $d(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Wd.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(qd.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(qd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(Jd.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ F.createElement(df, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ F.createElement(ff, { error: e }, t) : t;
}
-}, uf = /* @__PURE__ */ new WeakMap();
-function df({ children: e, error: t }) {
- let { basename: n, navigator: r } = F.useContext(Hd);
+}, df = /* @__PURE__ */ new WeakMap();
+function ff({ children: e, error: t }) {
+ let { basename: n, navigator: r } = F.useContext(Ud);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = Zd(t.digest);
+ let e = Qd(t.digest);
if (e) {
- let i = uf.get(t);
+ let i = df.get(t);
if (i) throw i;
- let a = wd(e.location, n), o = a.absoluteURL || a.to;
- if (kd(e.location, o, Ed(r), "allow-explicit"), Nd(o)) throw Error("Invalid redirect location");
- if (Cd && !uf.get(t)) {
+ let a = Td(e.location, n), o = a.absoluteURL || a.to;
+ if (Ad(e.location, o, Dd(r), "allow-explicit"), Pd(o)) throw Error("Invalid redirect location");
+ if (wd && !df.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw uf.set(t, n), n;
+ throw df.set(t, n), n;
}
}
return /* @__PURE__ */ F.createElement("meta", {
@@ -14959,11 +14963,11 @@ function df({ children: e, error: t }) {
}
return e;
}
-function ff({ routeContext: e, match: t, children: n }) {
- let r = F.useContext(Pd);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Wd.Provider, { value: e }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: t.route.id }, n)));
+function pf({ routeContext: e, match: t, children: n }) {
+ let r = F.useContext(Fd);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Gd.Provider, { value: e }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(qd.Provider, { value: t.route.id }, n)));
}
-function pf(e, t = [], n) {
+function mf(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -14974,7 +14978,7 @@ function pf(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- Au(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ ju(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -14994,16 +14998,16 @@ function pf(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Sd(r.matches),
+ pattern: Cd(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || cf, o && (s < 0 && c === 0 ? (xf("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || lf, o && (s < 0 && c === 0 ? (Sf("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(ff, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(pf, {
match: n,
routeContext: {
outlet: e,
@@ -15013,7 +15017,7 @@ function pf(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(lf, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(uf, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -15028,50 +15032,50 @@ function pf(e, t = [], n) {
}) : h();
}, null);
}
-function mf(e) {
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
-}
function hf(e) {
- let t = F.useContext(Pd);
- return Au(t, mf(e)), t;
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
function gf(e) {
- let t = F.useContext(Id);
- return Au(t, mf(e)), t;
+ let t = F.useContext(Fd);
+ return ju(t, hf(e)), t;
}
function _f(e) {
- let t = F.useContext(Kd);
- return Au(t, `${e} can only be used on routes that contain a unique "id"`), t;
+ let t = F.useContext(Ld);
+ return ju(t, hf(e)), t;
}
-function vf() {
- let e = F.useContext(qd), t = gf("useRouteError"), n = _f("useRouteError");
- return e === void 0 ? t.errors?.[n] : e;
+function vf(e) {
+ let t = F.useContext(qd);
+ return ju(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
function yf() {
- let { router: e } = hf("useNavigate"), t = _f("useNavigate"), n = F.useRef(!1);
+ let e = F.useContext(Jd), t = _f("useRouteError"), n = vf("useRouteError");
+ return e === void 0 ? t.errors?.[n] : e;
+}
+function bf() {
+ let { router: e } = gf("useNavigate"), t = vf("useNavigate"), n = F.useRef(!1);
return F.useLayoutEffect(() => {
n.current = !0;
}), F.useCallback(async (r, i = {}) => {
- ju(n.current, tf), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ Mu(n.current, nf), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var bf = {};
-function xf(e, t, n) {
- !t && !bf[e] && (bf[e] = !0, ju(!1, n));
+var xf = {};
+function Sf(e, t, n) {
+ !t && !xf[e] && (xf[e] = !0, Mu(!1, n));
}
// node_modules/react-router/dist/production/lib/dom/ssr/components.js
-var Sf = F.createContext(void 0);
-Sf.displayName = "FrameworkContext", F.memo(Cf);
-function Cf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = F.useContext(Pd);
- Au(a, "You must render this element inside a <DataRouterContext.Provider> element");
- let o = F.useContext(Sf)?.routeDiscoveryRuntime;
+var Cf = F.createContext(void 0);
+Cf.displayName = "FrameworkContext", F.memo(wf);
+function wf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = F.useContext(Fd);
+ ju(a, "You must render this element inside a <DataRouterContext.Provider> element");
+ let o = F.useContext(Cf)?.routeDiscoveryRuntime;
return F.useEffect(() => {
n.initialized && o?.markReady();
- }, [n.initialized, o]), of(e, void 0, {
+ }, [n.initialized, o]), sf(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -15079,11 +15083,11 @@ function Cf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function wf(e) {
- Au(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function Tf(e) {
+ ju(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function Tf({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- Au(!$d(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function Ef({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ ju(!ef(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = F.useMemo(() => ({
basename: s,
navigator: i,
@@ -15096,9 +15100,9 @@ function Tf({ basename: e = "/", children: t = null, location: n, navigationType
a,
o
]);
- typeof n == "string" && (n = Iu(n));
+ typeof n == "string" && (n = Lu(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = F.useMemo(() => {
- let e = sd(l, s);
+ let e = cd(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -15120,27 +15124,27 @@ function Tf({ basename: e = "/", children: t = null, location: n, navigationType
r,
m
]);
- return ju(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Hd.Provider, { value: c }, /* @__PURE__ */ F.createElement(Ud.Provider, {
+ return Mu(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Ud.Provider, { value: c }, /* @__PURE__ */ F.createElement(Wd.Provider, {
children: t,
value: h
}));
}
-function Ef({ children: e, location: t }) {
- return af(Df(e), t);
+function Df({ children: e, location: t }) {
+ return of(Of(e), t);
}
F.Component;
-function Df(e, t = []) {
+function Of(e, t = []) {
let n = [];
return F.Children.forEach(e, (e, r) => {
if (!F.isValidElement(e)) return;
let i = [...t, r];
if (e.type === F.Fragment) {
- n.push.apply(n, Df(e.props.children, i));
+ n.push.apply(n, Of(e.props.children, i));
return;
}
- Au(e.type === wf, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ ju(e.type === Tf, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- Au(!a.index || !a.children, "An index route cannot have child routes.");
+ ju(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -15159,17 +15163,17 @@ function Df(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = Df(a.children, i)), n.push(o);
+ a.children && (o.children = Of(a.children, i)), n.push(o);
}), n;
}
// src/history/settings-route.ts
-var Of = {
+var kf = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, kf = {
+}, Af = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -15177,37 +15181,37 @@ var Of = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function Af(e) {
- return kf[e.split("/")[2]] || kf.library;
-}
-var jf = ["/settings", ...Object.keys(Of).map((e) => `/settings/${e}`)], Mf = (e) => jf.includes(e);
-function Nf(e) {
- return Of[e.split("/")[2]] || Of.appearance;
+function jf(e) {
+ return Af[e.split("/")[2]] || Af.library;
}
+var Mf = ["/settings", ...Object.keys(kf).map((e) => `/settings/${e}`)], Nf = (e) => Mf.includes(e);
function Pf(e) {
+ return kf[e.split("/")[2]] || kf.appearance;
+}
+function Ff(e) {
return `/settings/${Object.entries({
- ...Of,
- ...kf
+ ...kf,
+ ...Af
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var Ff = (e) => {
+var If = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, If = [
+}, Lf = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], Lf = [
+], Rf = [
"mix",
"parts",
"editions",
"playlist"
];
-function Rf(e, t = "") {
+function zf(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of If) {
- let r = rd(n, e);
+ for (let n of Lf) {
+ let r = id(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -15224,7 +15228,7 @@ function Rf(e, t = "") {
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = Lf.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = Rf.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@ -15248,8 +15252,8 @@ function Rf(e, t = "") {
}
return null;
}
-var zf = (e, t = "") => Rf(e, t)?.target ?? null, Bf = (e) => Mf(e.split(/[?#]/)[0]) || If.some((t) => rd(t, e.split(/[?#]/)[0]) !== null);
-function Vf(e) {
+var Bf = (e, t = "") => zf(e, t)?.target ?? null, Vf = (e) => Nf(e.split(/[?#]/)[0]) || Lf.some((t) => id(t, e.split(/[?#]/)[0]) !== null);
+function Hf(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -15257,34 +15261,34 @@ function Vf(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var Hf = null, Uf = null;
-function Wf() {
+var Uf = null, Wf = null;
+function Gf() {
let { pathname: e, search: t, hash: n } = window.location;
- Bf(e) || (Hf = {
+ Vf(e) || (Uf = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function Gf() {
- Hf = null, Uf = null;
+function Kf() {
+ Uf = null, Wf = null;
}
-function Kf(e) {
- let t = Vf(e);
- t && (Hf = t, Uf = t.pathname + t.search + (t.hash || ""));
+function qf(e) {
+ let t = Hf(e);
+ t && (Uf = t, Wf = t.pathname + t.search + (t.hash || ""));
}
-function qf() {
- let e = Uf;
- return Uf = null, e;
+function Jf() {
+ let e = Wf;
+ return Wf = null, e;
}
-function Jf(e) {
- return Hf ? {
- backgroundLocation: { ...Hf },
+function Yf(e) {
+ return Uf ? {
+ backgroundLocation: { ...Uf },
overlay: e
} : void 0;
}
// src/cleanup-tools.ts
-var Yf = [
+var Xf = [
{
key: "organize",
path: "/data-cleanup/organize",
@@ -15327,7 +15331,7 @@ var Yf = [
icon: "trash",
description: "按女优勾选并永久删除关联影片,执行前确认范围与影响。"
}
-], Xf = Object.fromEntries(Yf.map((e) => [e.path, e.title])), Zf = {
+], Zf = Object.fromEntries(Xf.map((e) => [e.path, e.title])), Qf = {
"#organize": "/data-cleanup/organize",
"#mediaRepair": "/data-cleanup/media-repair",
"#link-manager": "/data-cleanup/links",
@@ -15336,7 +15340,7 @@ var Yf = [
"#batch-delete": "/data-cleanup/batch-delete"
};
// src/history/canonical-path.ts
-function Qf(e) {
+function $f(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -15357,19 +15361,19 @@ function Qf(e) {
"/configuration": "/settings/library",
"/diagnostics": "/settings/diagnostics"
}[t.pathname] || t.pathname;
- let r = t.pathname === "/data-cleanup" ? Zf[t.hash] : void 0;
+ let r = t.pathname === "/data-cleanup" ? Qf[t.hash] : void 0;
return r && (t.pathname = r, t.hash = ""), t.pathname + t.search + t.hash;
}
-var $f = {
+var ep = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(Of).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(kf).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(kf).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(Af).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -15397,7 +15401,7 @@ var $f = {
section: "cleanup",
title: "数据管理"
},
- ...Object.fromEntries(Object.entries(Xf).map(([e, t]) => [e, {
+ ...Object.fromEntries(Object.entries(Zf).map(([e, t]) => [e, {
section: "cleanup",
title: t,
refresh: "reopen"
@@ -15510,13 +15514,13 @@ var $f = {
title: "播放墙"
}
};
-function ep(e) {
- if (Object.hasOwn($f, e)) return $f[e];
- let t = Rf(e);
- if (t) return $f[t.path];
+function tp(e) {
+ if (Object.hasOwn(ep, e)) return ep[e];
+ let t = zf(e);
+ if (t) return ep[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn($f, `/${n}`) ? $f[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn(ep, `/${n}`) ? ep[`/${n}`] : null;
let i = `/${n}/*`, a = {
performers: "performer",
studios: "studio",
@@ -15525,144 +15529,144 @@ function ep(e) {
series: "series",
tags: "tag"
}, o = /^\d+$/.test(r.join("/")) ? un(a[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn($f, i) ? {
- ...$f[i],
+ return Object.hasOwn(ep, i) ? {
+ ...ep[i],
title: o ? nn(a[n] || "", o) : "资料"
} : null;
}
// src/history/managed.ts
-var tp = () => {}, np = new Promise((e) => {
- tp = e;
+var np = () => {}, rp = new Promise((e) => {
+ np = e;
});
-np.catch(() => {});
-var rp = null, ip = /* @__PURE__ */ new Map(), ap = /* @__PURE__ */ new Map(), op = 0, sp = /* @__PURE__ */ new Set(), cp = /* @__PURE__ */ new Set(), lp = !1, up = () => lp;
-function dp(e) {
- return cp.add(e), () => {
- cp.delete(e);
+rp.catch(() => {});
+var ip = null, ap = /* @__PURE__ */ new Map(), op = /* @__PURE__ */ new Map(), sp = 0, cp = /* @__PURE__ */ new Set(), lp = /* @__PURE__ */ new Set(), up = !1, dp = () => up;
+function fp(e) {
+ return lp.add(e), () => {
+ lp.delete(e);
};
}
-function fp() {
- let e = [...ap.values()].some((e) => e.page);
- if (e !== lp) {
- lp = e;
- for (let e of [...cp]) e(lp);
+function pp() {
+ let e = [...op.values()].some((e) => e.page);
+ if (e !== up) {
+ up = e;
+ for (let e of [...lp]) e(up);
}
}
-function pp(e) {
- tp(e);
-}
function mp(e) {
- return ip.get(e) ?? null;
+ np(e);
}
function hp(e) {
- return !!e && (ip.has(e) || ap.has(e));
+ return ap.get(e) ?? null;
}
-var gp = () => [...ip.values()];
-function _p(e) {
- return sp.add(e), () => {
- sp.delete(e);
- };
+function gp(e) {
+ return !!e && (ap.has(e) || op.has(e));
}
+var _p = () => [...ap.values()];
function vp(e) {
- let t = gp();
- for (let n of [...sp]) n(t, e);
+ return cp.add(e), () => {
+ cp.delete(e);
+ };
+}
+function yp(e) {
+ let t = _p();
+ for (let n of [...cp]) n(t, e);
}
-async function yp(e, t, n) {
+async function bp(e, t, n) {
let { container: r } = n;
- if (ap.get(r)?.controller.abort(), ap.delete(r), fp(), !n.isCurrent()) return !1;
- let i = ip.get(r);
- if (n.reuse && i?.host.isConnected) return ip.set(r, {
+ if (op.get(r)?.controller.abort(), op.delete(r), pp(), !n.isCurrent()) return !1;
+ let i = ap.get(r);
+ if (n.reuse && i?.host.isConnected) return ap.set(r, {
...i,
path: e,
props: t
- }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
- op += 1;
+ }), yp(!0), e.startsWith("/") && hm(`managed:${e}`, !0), !0;
+ sp += 1;
let a = {
- revision: op,
+ revision: sp,
controller: new AbortController(),
page: e.startsWith("/") && !n.resident
};
- ap.set(r, a), fp();
- let o = rp;
- rp = null, o?.();
- let s = await np;
- if (ap.get(r) !== a) return !1;
+ op.set(r, a), pp();
+ let o = ip;
+ ip = null, o?.();
+ let s = await rp;
+ if (op.get(r) !== a) return !1;
try {
- e.startsWith("/") && hm(`managed:${e}`) || await s(e, t, a.controller.signal);
+ e.startsWith("/") && gm(`managed:${e}`) || await s(e, t, a.controller.signal);
} catch {
if (a.controller.signal.aborted) return !1;
}
- if (ap.get(r) !== a || (ap.delete(r), fp(), !n.isCurrent())) return !1;
- n.beforePlace?.(), Sp(r);
- let c = n.place ? n.place(r) : bp(r);
- return ip.set(r, {
+ if (op.get(r) !== a || (op.delete(r), pp(), !n.isCurrent())) return !1;
+ n.beforePlace?.(), Cp(r);
+ let c = n.place ? n.place(r) : xp(r);
+ return ap.set(r, {
path: e,
props: t,
revision: a.revision,
container: r,
host: c,
resident: !!n.resident
- }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
+ }), yp(!0), e.startsWith("/") && hm(`managed:${e}`, !0), !0;
}
-function bp(e) {
+function xp(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), t;
}
-function xp(e, t) {
- let n = e ? ip.get(e) : void 0;
- n && (ip.set(n.container, {
+function Sp(e, t) {
+ let n = e ? ap.get(e) : void 0;
+ n && (ap.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), vp(!1));
+ }), yp(!1));
}
-function Sp(e, ...t) {
+function Cp(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = ap.get(r);
- e && (e.controller.abort(), ap.delete(r), fp());
- let t = ip.get(r);
- t && (ip.delete(r), n.push(t));
+ let e = op.get(r);
+ e && (e.controller.abort(), op.delete(r), pp());
+ let t = ap.get(r);
+ t && (ap.delete(r), n.push(t));
}
if (n.length) {
- vp(!0);
+ yp(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function Cp() {
- let [e, ...t] = /* @__PURE__ */ new Set([...ip.keys(), ...ap.keys()]);
- e && Sp(e, ...t);
+function wp() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...ap.keys(), ...op.keys()]);
+ e && Cp(e, ...t);
}
-function wp(e, t) {
- let n = ip.get(e);
- n?.revision === t && (ip.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- vp(!1);
+function Tp(e, t) {
+ let n = ap.get(e);
+ n?.revision === t && (ap.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ yp(!1);
}));
}
// src/history/index.ts
-var Tp = ku({ v5Compat: !0 }), Ep = 0, Dp = 0, Op = {
- action: Tp.action,
- location: Tp.location,
- seq: Ep,
- openEpoch: Dp,
+var Ep = Au({ v5Compat: !0 }), Dp = 0, Op = 0, kp = {
+ action: Ep.action,
+ location: Ep.location,
+ seq: Dp,
+ openEpoch: Op,
claimed: !0
-}, kp = /* @__PURE__ */ new Set(), Ap = !1, jp = !0;
-Tp.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = Qf(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = Tp.location), Ep += 1, Ap || (Dp += 1), e !== "REPLACE" && (jp = !1), Op = {
+}, Ap = /* @__PURE__ */ new Set(), jp = !1, Mp = !0;
+Ep.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = $f(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = Ep.location), Dp += 1, jp || (Op += 1), e !== "REPLACE" && (Mp = !1), kp = {
action: e,
location: t,
- seq: Ep,
- openEpoch: Dp,
- claimed: Ap
+ seq: Dp,
+ openEpoch: Op,
+ claimed: jp
};
- for (let e of [...kp]) e(Op);
+ for (let e of [...Ap]) e(kp);
});
-function Mp(e) {
- if (typeof e == "string") return Qf(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = Qf(t.href);
+function Np(e) {
+ if (typeof e == "string") return $f(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = $f(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -15672,42 +15676,42 @@ function Mp(e) {
hash: r.hash
};
}
-var Np = {
+var Pp = {
get navigation() {
- return Op;
+ return kp;
},
listen(e) {
- return kp.add(e), () => {
- kp.delete(e);
+ return Ap.add(e), () => {
+ Ap.delete(e);
};
},
- createHref: (e) => Tp.createHref(e),
- createURL: (e) => Tp.createURL(e),
- encodeLocation: (e) => Tp.encodeLocation(e),
- go: (e) => Tp.go(e),
- push: (e, t) => Tp.push(Mp(e), t),
- replace: (e, t) => Tp.replace(Mp(e), t)
+ createHref: (e) => Ep.createHref(e),
+ createURL: (e) => Ep.createURL(e),
+ encodeLocation: (e) => Ep.encodeLocation(e),
+ go: (e) => Ep.go(e),
+ push: (e, t) => Ep.push(Np(e), t),
+ replace: (e, t) => Ep.replace(Np(e), t)
};
-function Pp(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = Qf(`${r.pathname}${r.search}${r.hash}`);
- Ap = !0;
+function Fp(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = $f(`${r.pathname}${r.search}${r.hash}`);
+ jp = !0;
try {
- t ? Tp.replace(i, n) : Tp.push(i, n);
+ t ? Ep.replace(i, n) : Ep.push(i, n);
} finally {
- Ap = !1;
+ jp = !1;
}
}
-var Fp = () => jp;
-function Ip() {
- if (Mf(Op.location.pathname)) {
- let e = jp ? null : Ff(Op.location.state);
- return e ? Vf(e.state) || e : null;
+var Ip = () => Mp;
+function Lp() {
+ if (Nf(kp.location.pathname)) {
+ let e = Mp ? null : If(kp.location.state);
+ return e ? Hf(e.state) || e : null;
}
- return jp ? null : Vf(Op.location.state);
+ return Mp ? null : Hf(kp.location.state);
}
// src/ui-kit/anchor-scroll.ts
-var Lp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function Rp(e, t) {
+var Rp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function zp(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -15722,124 +15726,124 @@ async function Rp(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: Lp()
+ behavior: Rp()
});
}
// src/history/page-navigation.ts
-var zp = /* @__PURE__ */ new Map(), Bp = /* @__PURE__ */ new Map(), Vp = /* @__PURE__ */ new Map(), Hp, Up, Wp = {
+var Bp = /* @__PURE__ */ new Map(), Vp = /* @__PURE__ */ new Map(), Hp = /* @__PURE__ */ new Map(), Up, Wp, Gp = {
left: window.scrollX,
top: window.scrollY
-}, Gp, Kp = -1, qp = -1, Jp = !1, Yp = !1, Xp, Zp, Qp = !1, $p = !1;
-function em() {
+}, Kp, qp = -1, Jp = -1, Yp = !1, Xp = !1, Zp, Qp, $p = !1, em = !1;
+function tm() {
let e = document.documentElement;
- Xp ??= e.style.overflowAnchor, Zp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, Qp = !1, $p = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
+ Zp ??= e.style.overflowAnchor, Qp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, $p = !1, em = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
left: window.scrollX,
top: window.scrollY,
behavior: "instant"
});
}
-function tm(e) {
- Qp && !$p && Xp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
- if (Np.navigation.seq !== e || !Qp || $p || Xp === void 0) return;
+function nm(e) {
+ $p && !em && Zp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (Pp.navigation.seq !== e || !$p || em || Zp === void 0) return;
let t = document.documentElement;
- t.style.minHeight = Zp, t.style.overflowAnchor = Xp, t.removeAttribute("data-page-navigation-pending"), Zp = void 0, Xp = void 0;
+ t.style.minHeight = Qp, t.style.overflowAnchor = Zp, t.removeAttribute("data-page-navigation-pending"), Qp = void 0, Zp = void 0;
}));
}
-function nm(e) {
- $p = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
-}
function rm(e) {
+ em = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
+}
+function im(e) {
if (!e?.getClientRects().length) {
- $p = !1;
+ em = !1;
return;
}
let t = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0, n = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, r = Math.max(0, Math.min(e.getBoundingClientRect().top + window.scrollY - t - n, document.documentElement.scrollHeight - window.innerHeight));
- $p = Lp() === "smooth" && Math.abs(r - window.scrollY) > .5;
+ em = Rp() === "smooth" && Math.abs(r - window.scrollY) > .5;
}
-var im = (e) => !Bf(e) && !Mf(e) && e !== "/immerse" && e !== "/wall", am = (e) => {
+var am = (e) => !Vf(e) && !Nf(e) && e !== "/immerse" && e !== "/wall", om = (e) => {
let t = new URLSearchParams(e.search);
return `${e.pathname}:${t.get("jav") === "1"}:${t.get("orient") === "竖屏"}`;
-}, om = (e) => {
+}, sm = (e) => {
let t = new URLSearchParams(e.search);
return t.delete("edit"), t.sort(), e.pathname + (t.size ? `?${t}` : "") + e.hash;
-}, sm = (e) => `${e.key}:${om(e)}`;
-function cm(e) {
- if (!im(e.pathname)) return [];
+}, cm = (e) => `${e.key}:${sm(e)}`;
+function lm(e) {
+ if (!am(e.pathname)) return [];
if (e.pathname === "/") {
let t = new URLSearchParams(e.search);
return [t.get("jav") === "1" ? "jav" : t.get("orient") === "竖屏" ? "shorts" : ""];
}
- let t = ep(e.pathname);
+ let t = tp(e.pathname);
return [...t?.nav ? [t.nav] : [], ...t?.section ? ["manage", t.section] : []];
}
-function lm(e) {
+function um(e) {
let t = e.pathname + e.search + e.hash;
if (e.pathname !== "/") return t;
let n = new URLSearchParams(e.search);
return n.has("q") ? (n.delete("q"), "/" + (n.size ? `?${n}` : "") + e.hash) : t;
}
-function um() {
- let e = Hp.location;
- for (let t of cm(e)) Vp.set(t, lm(e));
+function dm() {
+ let e = Up.location;
+ for (let t of lm(e)) Hp.set(t, um(e));
}
-function dm(e) {
- return pm(), cm(Hp.location).includes(e) ? lm(Hp.location) : Vp.get(e);
-}
-function fm() {
- pm(), Jp = !0;
+function fm(e) {
+ return mm(), lm(Up.location).includes(e) ? um(Up.location) : Hp.get(e);
}
function pm() {
- Yp || (Yp = !0, Hp = Np.navigation, Up = Hp.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
- e.target === document && ($p = !1, tm(Np.navigation.seq));
- }), Np.listen((e) => {
- if (Up = Hp.location, Wp = {
+ mm(), Yp = !0;
+}
+function mm() {
+ Xp || (Xp = !0, Up = Pp.navigation, Wp = Up.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
+ e.target === document && (em = !1, nm(Pp.navigation.seq));
+ }), Pp.listen((e) => {
+ if (Wp = Up.location, Gp = {
left: window.scrollX,
top: window.scrollY
- }, im(e.location.pathname) ? em() : (Qp = !0, $p = !1, tm(e.seq)), im(Up.pathname)) {
- let e = zp.get(sm(Up)) ?? {
- ...Wp,
+ }, am(e.location.pathname) ? tm() : ($p = !0, em = !1, nm(e.seq)), am(Wp.pathname)) {
+ let e = Bp.get(cm(Wp)) ?? {
+ ...Gp,
state: /* @__PURE__ */ new Map()
};
- Object.assign(e, Wp), zp.set(sm(Up), e), Bp.set(om(Up), e), um();
+ Object.assign(e, Gp), Bp.set(cm(Wp), e), Vp.set(sm(Wp), e), dm();
}
if (e.action === "REPLACE") {
- let t = zp.get(sm(Up));
- t && zp.set(sm(e.location), {
+ let t = Bp.get(cm(Wp));
+ t && Bp.set(cm(e.location), {
...t,
state: new Map(t.state)
- }), Gp &&= zp.get(sm(e.location));
- } else Gp = e.action === "POP" ? zp.get(sm(e.location)) : Bp.get(om(e.location));
- Jp && (Gp = void 0), Jp = !1, Gp && (Gp = {
- ...Gp,
- state: new Map(Gp.state)
- }, zp.set(sm(e.location), Gp)), Hp = e;
+ }), Kp &&= Bp.get(cm(e.location));
+ } else Kp = e.action === "POP" ? Bp.get(cm(e.location)) : Vp.get(sm(e.location));
+ Yp && (Kp = void 0), Yp = !1, Kp && (Kp = {
+ ...Kp,
+ state: new Map(Kp.state)
+ }, Bp.set(cm(e.location), Kp)), Up = e;
}));
}
-function mm(e, t) {
- if (pm(), !im(Hp.location.pathname)) return;
- let n = zp.get(sm(Hp.location)) ?? {
+function hm(e, t) {
+ if (mm(), !am(Up.location.pathname)) return;
+ let n = Bp.get(cm(Up.location)) ?? {
left: window.scrollX,
top: window.scrollY,
state: /* @__PURE__ */ new Map()
};
- n.state.set(e, t), zp.set(sm(Hp.location), n), um();
+ n.state.set(e, t), Bp.set(cm(Up.location), n), dm();
}
-function hm(e) {
- return pm(), Gp?.state.get(e);
+function gm(e) {
+ return mm(), Kp?.state.get(e);
}
-var gm = () => (pm(), !!Gp);
-function _m() {
- pm(), qp = Np.navigation.seq, Kp === qp && (qp = -1, nm({
+var _m = () => (mm(), !!Kp);
+function vm() {
+ mm(), Jp = Pp.navigation.seq, qp === Jp && (Jp = -1, rm({
top: 0,
- behavior: Lp()
+ behavior: Rp()
}));
}
-async function vm(e, t, { pending: n = !1 } = {}) {
- pm();
- let r = Np.navigation, i = r.seq, a = () => e() && Np.navigation.seq === i;
- if (im(r.location.pathname) && a() && (um(), !(!n && Gp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
- if (n || (Qp = !0), Kp === i) tm(i);
- else if (!(n && Gp)) {
+async function ym(e, t, { pending: n = !1 } = {}) {
+ mm();
+ let r = Pp.navigation, i = r.seq, a = () => e() && Pp.navigation.seq === i;
+ if (am(r.location.pathname) && a() && (dm(), !(!n && Kp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
+ if (n || ($p = !0), qp === i) nm(i);
+ else if (!(n && Kp)) {
if (n && r.location.hash) {
let e;
try {
@@ -15849,83 +15853,83 @@ async function vm(e, t, { pending: n = !1 } = {}) {
}
if (!e?.getClientRects().length || e.closest("[data-skeleton], [data-content-skeleton]")) return;
}
- if (Kp = i, qp === i) qp = -1, Gp = void 0, nm({
+ if (qp = i, Jp === i) Jp = -1, Kp = void 0, rm({
top: 0,
- behavior: Lp()
+ behavior: Rp()
});
- else if (Gp) {
- let e = Lp();
+ else if (Kp) {
+ let e = Rp();
e === "smooth" && window.scrollTo({
- ...Wp,
+ ...Gp,
behavior: "instant"
- }), nm({
- left: Gp.left,
- top: Gp.top,
+ }), rm({
+ left: Kp.left,
+ top: Kp.top,
behavior: e
- }), Gp = void 0;
+ }), Kp = void 0;
} else if (r.location.hash) {
- if (await Rp(r.location.hash, a), !a()) return;
+ if (await zp(r.location.hash, a), !a()) return;
let e = null;
try {
e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
} catch {}
- rm(e);
- } else if (r.action === "REPLACE" && am(Up) === am(r.location)) window.scrollTo({
- ...Wp,
+ im(e);
+ } else if (r.action === "REPLACE" && om(Wp) === om(r.location)) window.scrollTo({
+ ...Gp,
behavior: "instant"
});
- else if (t?.getClientRects().length && am(Up) === am(r.location) && Up.search !== r.location.search) {
+ else if (t?.getClientRects().length && om(Wp) === om(r.location) && Wp.search !== r.location.search) {
let e = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
- t.getBoundingClientRect().top < e && (rm(t), t.scrollIntoView({
+ t.getBoundingClientRect().top < e && (im(t), t.scrollIntoView({
block: "start",
- behavior: Lp()
+ behavior: Rp()
}));
- } else i > 0 && nm({
+ } else i > 0 && rm({
top: 0,
- behavior: Lp()
+ behavior: Rp()
});
- tm(i);
+ nm(i);
}
}
}
// node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var ym = /* @__PURE__ */ (0, F.createContext)({});
+var bm = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function bm(e) {
+function xm(e) {
let t = (0, F.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
// node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var xm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Sm = /* @__PURE__ */ (0, F.createContext)(null);
+var Sm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Cm = /* @__PURE__ */ (0, F.createContext)(null);
// node_modules/motion-utils/dist/es/array.mjs
-function Cm(e, t) {
+function wm(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function wm(e, t) {
+function Tm(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
// node_modules/motion-utils/dist/es/clamp.mjs
-var Tm = (e, t, n) => n > t ? t : n < e ? e : n, Em = {}, Dm = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Om = (e) => typeof e == "object" && !!e, km = (e) => /^0[^.\s]+$/u.test(e);
+var Em = (e, t, n) => n > t ? t : n < e ? e : n, Dm = {}, Om = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), km = (e) => typeof e == "object" && !!e, Am = (e) => /^0[^.\s]+$/u.test(e);
// node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function Am(e) {
+function jm(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
// node_modules/motion-utils/dist/es/noop.mjs
-var jm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Mm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Nm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var Mm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Nm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Pm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Pm = class {
+}, Fm = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return Cm(this.subscriptions, e), () => this.remove(e);
+ return wm(this.subscriptions, e), () => this.remove(e);
}
remove(e) {
- wm(this.subscriptions, e);
+ Tm(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -15943,137 +15947,137 @@ var jm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Mm = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Fm = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Im = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Lm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Rm = (e, t, n) => {
+}, Im = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Lm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Rm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, zm = (e, t, n) => {
let r = t - e;
return ((n - e) % r + r) % r + e;
-}, zm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
+}, Bm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
/*#__NO_SIDE_EFFECTS__*/
-function Bm(e, t, n, r) {
- return e === t && n === r ? jm : (i) => {
+function Vm(e, t, n, r) {
+ return e === t && n === r ? Mm : (i) => {
let a = 0, o = 1, s = i;
for (let t = 0;; t++) {
s >= a && s <= o || (s = (a + o) / 2);
- let r = zm(s, e, n) - i;
+ let r = Bm(s, e, n) - i;
if (r * r < 1e-28 || t === 40) break;
- r > 0 ? o = s : a = s, s -= r * 1e-7 / (zm(s + 1e-7, e, n) - i - r);
+ r > 0 ? o = s : a = s, s -= r * 1e-7 / (Bm(s + 1e-7, e, n) - i - r);
}
- return zm(s, t, r);
+ return Bm(s, t, r);
};
}
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var Vm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Hm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Um = /*@__PURE__*/ Bm(.33, 1.53, .69, .99), Wm = /*@__PURE__*/ Hm(Um), Gm = /*@__PURE__*/ Vm(Wm), Km = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Wm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), qm = (e) => 1 - Math.sin(Math.acos(e)), Jm = /* @__PURE__ */ Hm(qm), Ym = /* @__PURE__ */ Vm(qm), Xm = /*@__PURE__*/ Bm(.42, 0, 1, 1), Zm = /*@__PURE__*/ Bm(0, 0, .58, 1), Qm = /*@__PURE__*/ Bm(.42, 0, .58, 1), $m = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
+var Hm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Um = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Wm = /*@__PURE__*/ Vm(.33, 1.53, .69, .99), Gm = /*@__PURE__*/ Um(Wm), Km = /*@__PURE__*/ Hm(Gm), qm = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Gm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Jm = (e) => 1 - Math.sin(Math.acos(e)), Ym = /* @__PURE__ */ Um(Jm), Xm = /* @__PURE__ */ Hm(Jm), Zm = /*@__PURE__*/ Vm(.42, 0, 1, 1), Qm = /*@__PURE__*/ Vm(0, 0, .58, 1), $m = /*@__PURE__*/ Vm(.42, 0, .58, 1), eh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
/*#__NO_SIDE_EFFECTS__*/
-function eh(e, t) {
- return /* @__PURE__ */ $m(e) ? e[Rm(0, e.length, t)] : e;
+function th(e, t) {
+ return /* @__PURE__ */ eh(e) ? e[zm(0, e.length, t)] : e;
}
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
-var th = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", nh = {
- linear: jm,
- easeIn: Xm,
- easeInOut: Qm,
- easeOut: Zm,
- circIn: qm,
- circInOut: Ym,
- circOut: Jm,
- backIn: Wm,
- backInOut: Gm,
- backOut: Um,
- anticipate: Km
-}, rh = (e) => typeof e == "string", ih = (e) => {
- if (/* @__PURE__ */ th(e)) {
+var nh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", rh = {
+ linear: Mm,
+ easeIn: Zm,
+ easeInOut: $m,
+ easeOut: Qm,
+ circIn: Jm,
+ circInOut: Xm,
+ circOut: Ym,
+ backIn: Gm,
+ backInOut: Km,
+ backOut: Wm,
+ anticipate: qm
+}, ih = (e) => typeof e == "string", ah = (e) => {
+ if (/* @__PURE__ */ nh(e)) {
let [t, n, r, i] = e;
- return /* @__PURE__ */ Bm(t, n, r, i);
+ return /* @__PURE__ */ Vm(t, n, r, i);
}
- return rh(e) ? nh[e] : e;
-}, ah = {
+ return ih(e) ? rh[e] : e;
+}, oh = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, oh;
-function sh() {
- oh = void 0;
+}, sh;
+function ch() {
+ sh = void 0;
}
-var ch = {
- now: () => (oh === void 0 && ch.set(ah.isProcessing || Em.useManualTiming ? ah.timestamp : performance.now()), oh),
+var lh = {
+ now: () => (sh === void 0 && lh.set(oh.isProcessing || Dm.useManualTiming ? oh.timestamp : performance.now()), sh),
set: (e) => {
- oh = e, queueMicrotask(sh);
+ sh = e, queueMicrotask(ch);
}
-}, lh = (e) => Math.round(e * 1e5) / 1e5, uh = (e) => (t) => typeof t == "string" && t.startsWith(e), dh = /*@__PURE__*/ uh("--"), fh = /*@__PURE__*/ uh("var(--"), ph = (e) => fh(e) ? mh.test(e.split("/*")[0].trim()) : !1, mh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function hh(e) {
+}, uh = (e) => Math.round(e * 1e5) / 1e5, dh = (e) => (t) => typeof t == "string" && t.startsWith(e), fh = /*@__PURE__*/ dh("--"), ph = /*@__PURE__*/ dh("var(--"), mh = (e) => ph(e) ? hh.test(e.split("/*")[0].trim()) : !1, hh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function gh(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var gh = {
+var _h = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
-}, _h = {
- ...gh,
- transform: (e) => Tm(0, 1, e)
}, vh = {
- ...gh,
+ ..._h,
+ transform: (e) => Em(0, 1, e)
+}, yh = {
+ ..._h,
default: 1
-}, yh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, bh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function bh(e) {
+function xh(e) {
return e == null;
}
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var xh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Sh = (e, t) => (n) => !!(typeof n == "string" && xh.test(n) && n.startsWith(e) || t && !bh(n) && Object.prototype.hasOwnProperty.call(n, t)), Ch = (e, t, n) => (r) => {
+var Sh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ch = (e, t) => (n) => !!(typeof n == "string" && Sh.test(n) && n.startsWith(e) || t && !xh(n) && Object.prototype.hasOwnProperty.call(n, t)), wh = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(yh);
+ let [i, a, o, s] = r.match(bh);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, wh = (e) => Tm(0, 255, e), Th = {
- ...gh,
- transform: (e) => Math.round(wh(e))
-}, Eh = {
- test: /*@__PURE__*/ Sh("rgb", "red"),
- parse: /*@__PURE__*/ Ch("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Th.transform(e) + ", " + Th.transform(t) + ", " + Th.transform(n) + ", " + lh(_h.transform(r)) + ")"
-}, Dh = (e, t, n) => {
+}, Th = (e) => Em(0, 255, e), Eh = {
+ ..._h,
+ transform: (e) => Math.round(Th(e))
+}, Dh = {
+ test: /*@__PURE__*/ Ch("rgb", "red"),
+ parse: /*@__PURE__*/ wh("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Eh.transform(e) + ", " + Eh.transform(t) + ", " + Eh.transform(n) + ", " + uh(vh.transform(r)) + ")"
+}, Oh = (e, t, n) => {
let r = e.substring(1 + t * n, 1 + (t + 1) * n);
return n > 1 ? r : r + r;
};
-function Oh(e) {
- let t = e.length > 5 ? 2 : 1, n = Dh(e, 3, t);
+function kh(e) {
+ let t = e.length > 5 ? 2 : 1, n = Oh(e, 3, t);
return {
- red: parseInt(Dh(e, 0, t), 16),
- green: parseInt(Dh(e, 1, t), 16),
- blue: parseInt(Dh(e, 2, t), 16),
+ red: parseInt(Oh(e, 0, t), 16),
+ green: parseInt(Oh(e, 1, t), 16),
+ blue: parseInt(Oh(e, 2, t), 16),
alpha: n ? parseInt(n, 16) / 255 : 1
};
}
-var kh = {
- test: /*@__PURE__*/ Sh("#"),
- parse: Oh,
- transform: Eh.transform
-}, Ah = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var Ah = {
+ test: /*@__PURE__*/ Ch("#"),
+ parse: kh,
+ transform: Dh.transform
+}, jh = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), jh = /*@__PURE__*/ Ah("deg"), Mh = /*@__PURE__*/ Ah("%"), Nh = /*@__PURE__*/ Ah("px"), Ph = /*@__PURE__*/ Ah("vh"), Fh = /*@__PURE__*/ Ah("vw"), Ih = {
- ...Mh,
- parse: (e) => Mh.parse(e) / 100,
- transform: (e) => Mh.transform(e * 100)
+}), Mh = /*@__PURE__*/ jh("deg"), Nh = /*@__PURE__*/ jh("%"), G = /*@__PURE__*/ jh("px"), Ph = /*@__PURE__*/ jh("vh"), Fh = /*@__PURE__*/ jh("vw"), Ih = {
+ ...Nh,
+ parse: (e) => Nh.parse(e) / 100,
+ transform: (e) => Nh.transform(e * 100)
}, Lh = {
- test: /*@__PURE__*/ Sh("hsl", "hue"),
- parse: /*@__PURE__*/ Ch("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Mh.transform(lh(t)) + ", " + Mh.transform(lh(n)) + ", " + lh(_h.transform(r)) + ")"
+ test: /*@__PURE__*/ Ch("hsl", "hue"),
+ parse: /*@__PURE__*/ wh("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Nh.transform(uh(t)) + ", " + Nh.transform(uh(n)) + ", " + uh(vh.transform(r)) + ")"
}, Rh = {
- test: (e) => Eh.test(e) || kh.test(e) || Lh.test(e),
- parse: (e) => Eh.test(e) ? Eh.parse(e) : Lh.test(e) ? Lh.parse(e) : kh.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Eh.transform(e) : Lh.transform(e),
+ test: (e) => Dh.test(e) || Ah.test(e) || Lh.test(e),
+ parse: (e) => Dh.test(e) ? Dh.parse(e) : Lh.test(e) ? Lh.parse(e) : Ah.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Dh.transform(e) : Lh.transform(e),
getAnimatableNone: (e) => {
let t = Rh.parse(e);
return t.alpha = 0, Rh.transform(t);
}
-}, zh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Bh = /*@__PURE__*/ new RegExp(yh.source), Vh = /*@__PURE__*/ new RegExp(zh.source, "i");
+}, zh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Bh = /*@__PURE__*/ new RegExp(bh.source), Vh = /*@__PURE__*/ new RegExp(zh.source, "i");
function Hh(e) {
return isNaN(e) && typeof e == "string" && (Bh.test(e) || Vh.test(e));
}
@@ -16104,7 +16108,7 @@ function Qh({ split: e, types: t }) {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Uh ? lh(r[a]) : e === Wh ? Rh.transform(r[a]) : r[a];
+ i += e === Uh ? uh(r[a]) : e === Wh ? Rh.transform(r[a]) : r[a];
}
return i;
};
@@ -16151,8 +16155,8 @@ var og = (e, t, n) => e + (t - e) * n, sg = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
}, tee = [
- kh,
- Eh,
+ Ah,
+ Dh,
Lh
], nee = (e) => tee.find((t) => t.test(e));
function cg(e) {
@@ -16165,7 +16169,7 @@ var lg = (e, t) => {
let n = cg(e), r = cg(t);
if (!n || !r) return ag(e, t);
let i = { ...n };
- return (e) => (i.red = sg(n.red, r.red, e), i.green = sg(n.green, r.green, e), i.blue = sg(n.blue, r.blue, e), i.alpha = og(n.alpha, r.alpha, e), Eh.transform(i));
+ return (e) => (i.red = sg(n.red, r.red, e), i.green = sg(n.green, r.green, e), i.blue = sg(n.blue, r.blue, e), i.alpha = og(n.alpha, r.alpha, e), Dh.transform(i));
}, ug = /* @__PURE__ */ new Set(["none", "hidden"]);
function ree(e, t) {
return ug.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
@@ -16175,7 +16179,7 @@ function iee(e, t) {
return (n) => og(e, t, n);
}
function dg(e) {
- return typeof e == "number" ? iee : typeof e == "string" ? ph(e) ? ag : Rh.test(e) ? lg : see : Array.isArray(e) ? fg : typeof e == "object" ? Rh.test(e) ? lg : aee : ag;
+ return typeof e == "number" ? iee : typeof e == "string" ? mh(e) ? ag : Rh.test(e) ? lg : see : Array.isArray(e) ? fg : typeof e == "object" ? Rh.test(e) ? lg : aee : ag;
}
function fg(e, t) {
let n = [...e], r = n.length, i = e.map((e, n) => dg(e)(e, t[n]));
@@ -16209,7 +16213,7 @@ function oee(e, t) {
}
var see = (e, t) => {
let n = Xh(e), r = Xh(t);
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ug.has(e) && !r.values.length || ug.has(t) && !n.values.length ? ree(e, t) : Mm(fg(oee(n, r), r.values), Qh(r)) : ag(e, t);
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ug.has(e) && !r.values.length || ug.has(t) && !n.values.length ? ree(e, t) : Nm(fg(oee(n, r), r.values), Qh(r)) : ag(e, t);
}, pg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
function cee(e, t) {
let n = pg.exec(e);
@@ -16217,7 +16221,7 @@ function cee(e, t) {
let r = pg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => lh(og(a, o, e)) + i;
+ return (e) => uh(og(a, o, e)) + i;
}
function mg(e, t, n) {
if (typeof e == "number" && typeof t == "number" && typeof n == "number") return og(e, t, n);
@@ -16276,7 +16280,7 @@ function gg(e, t, n = {
isProcessing: !1
}) {
let r = !1, i = !0, a = () => r = !0, o = hg.reduce((e, t) => (e[t] = lee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = Em.useManualTiming, o = a ? n.timestamp : performance.now();
+ let a = Dm.useManualTiming, o = a ? n.timestamp : performance.now();
r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, uee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
@@ -16294,12 +16298,12 @@ function gg(e, t, n = {
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: _g, cancel: vg, steps: yg } = /* @__PURE__ */ gg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : jm, !0, ah), bg = (e) => {
+var { schedule: _g, cancel: vg, steps: yg } = /* @__PURE__ */ gg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Mm, !0, oh), bg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
start: (e = !0) => _g.update(t, e),
stop: () => vg(t),
- now: () => ah.isProcessing ? ah.timestamp : ch.now()
+ now: () => oh.isProcessing ? oh.timestamp : lh.now()
};
}, xg = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
@@ -16321,7 +16325,7 @@ function wg(e, t = 100, n) {
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
- duration: /* @__PURE__ */ Im(s)
+ duration: /* @__PURE__ */ Lm(s)
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
@@ -16343,7 +16347,7 @@ function Mg(e, t, n) {
var Ng = .001;
function xee({ duration: e = fee, bounce: t = Dg }) {
let n, r, i = kg(t);
- e = Tm(vee, yee, /* @__PURE__ */ Im(e)), i < 1 ? (n = (t) => {
+ e = Em(vee, yee, /* @__PURE__ */ Lm(e)), i < 1 ? (n = (t) => {
let n = t * i, r = n * e, a = jg(t, i), o = Math.exp(-r);
return Ng - n / a * o;
}, r = (t) => {
@@ -16354,7 +16358,7 @@ function xee({ duration: e = fee, bounce: t = Dg }) {
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
- duration: /* @__PURE__ */ Fm(e)
+ duration: /* @__PURE__ */ Im(e)
};
}
var Pg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
@@ -16387,7 +16391,7 @@ function Ig(e = pee, t = Dg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Im(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Im(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Lm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Lm(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16438,12 +16442,12 @@ function Ig(e = pee, t = Dg) {
retarget: (e, t) => {
g.target = e[e.length - 1], g.delta = g.target - e[0], g.velocity = f(t), n.restSpeed && n.restDelta || _(), S.calculatedDuration = x, a.done = !1, b();
},
- velocity: (e) => /* @__PURE__ */ Fm(y(e)),
+ velocity: (e) => /* @__PURE__ */ Im(y(e)),
next: (e) => {
let t = v(e);
if (u) a.done = e >= l;
else {
- let n = /* @__PURE__ */ Fm(y(e));
+ let n = /* @__PURE__ */ Im(y(e));
a.done = Math.abs(n) <= g.restSpeed && Math.abs(g.target - t) <= g.restDelta;
}
return a.value = a.done ? g.target : t, a;
@@ -16458,7 +16462,7 @@ function Ig(e = pee, t = Dg) {
}
var Lg = /* @__PURE__ */ Object.assign(Ig, { applyToOptions: (e) => {
let t = wg(e, 100, Ig);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Fm(t.duration), e.type = "keyframes", e;
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Im(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
@@ -16490,14 +16494,14 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
function Cee(e, t, n) {
- let r = [], i = Em.mix || mg, a = e.length - 1;
+ let r = [], i = Dm.mix || mg, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
- t && (a = Mm(Array.isArray(t) ? t[o] || jm : t, a)), r.push(a);
+ t && (a = Nm(Array.isArray(t) ? t[o] || Mm : t, a)), r.push(a);
}
return r;
}
-function wee(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
@@ -16507,46 +16511,46 @@ function wee(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Nm(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Pm(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(Tm(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Em(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function zg(e, t) {
+function Bg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Nm(0, t, r);
+ let i = /* @__PURE__ */ Pm(0, t, r);
e.push(og(n, 1, i));
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Bg(e) {
+function Vg(e) {
let t = [0];
- return zg(t, e.length - 1), t;
+ return Bg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function Tee(e, t) {
+function wee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Eee(e, t) {
- return e.map(() => t || Qm).splice(0, e.length - 1);
+function Tee(e, t) {
+ return e.map(() => t || $m).splice(0, e.length - 1);
}
-function Vg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
- let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ $m(r) ? r.map(ih) : ih(r) || Qm, s = {
+function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+ let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ eh(r) ? r.map(ah) : ah(r) || $m, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (Em.mix || mg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (Dm.mix || mg)(n, r);
return {
calculatedDuration: e,
- next: (t) => (s.value = i ? i(o(e > 0 ? Tm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
+ next: (t) => (s.value = i ? i(o(e > 0 ? Em(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = wee(Tee(n && n.length === t.length ? n : Bg(t), e), t, {
- ease: Array.isArray(o) ? o : Eee(t, o),
+ let c = zg(wee(n && n.length === t.length ? n : Vg(t), e), t, {
+ ease: Array.isArray(o) ? o : Tee(t, o),
mixer: a
});
return {
@@ -16555,48 +16559,48 @@ function Vg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Dee = 5;
-function Oee(e, t, n) {
- let r = Math.max(t - Dee, 0);
- return /* @__PURE__ */ Lm(n - e(r), t - r);
+var Eee = 5;
+function Dee(e, t, n) {
+ let r = Math.max(t - Eee, 0);
+ return /* @__PURE__ */ Rm(n - e(r), t - r);
}
-function Hg(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Oee((t) => e.next(t).value, t, e.next(t).value);
+function Ug(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var kee = (e) => e !== null;
-function Ug(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(kee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var Oee = (e) => e !== null;
+function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(Oee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var Aee = {
+var kee = {
decay: Rg,
inertia: Rg,
- tween: Vg,
- keyframes: Vg,
+ tween: Hg,
+ keyframes: Hg,
spring: Lg
};
-function Wg(e) {
- typeof e.type == "string" && (e.type = Aee[e.type]);
+function Gg(e) {
+ typeof e.type == "string" && (e.type = kee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var jee = 40, Gg = (e, t) => t - e > jee && !Em.useManualTiming ? t : e;
+var Aee = 40, Kg = (e, t) => t - e > Aee && !Dm.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function Kg(e, t) {
+function qg(e, t) {
return {
kind: e,
animation: t,
- timestamp: ch.now(),
- frameTimestamp: ah.timestamp,
- frameIsProcessing: ah.isProcessing
+ timestamp: lh.now(),
+ frameTimestamp: oh.timestamp,
+ frameIsProcessing: oh.isProcessing
};
}
-function qg(e, t, n) {
+function Jg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...Kg("animation-start", e),
+ ...qg("animation-start", e),
options: n ? {
...t,
...n
@@ -16604,17 +16608,17 @@ function qg(e, t, n) {
});
} catch {}
}
-function Mee(e, t) {
+function jee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...Kg("layout-animation-start", e),
+ ...qg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Jg = class {
+var Yg = class {
constructor() {
this.isResolved = !1;
}
@@ -16632,21 +16636,21 @@ var Jg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Nee = (e) => e / 100, Yg = (e) => Math.round(e * 1e4) / 1e4, Xg = class extends Jg {
+}, Mee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== ch.now() && this.tick(ch.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), qg(this, this.options);
+ e && e.updatedAt !== lh.now() && this.tick(lh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Wg(e);
- let { type: t = Vg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Vg;
- this.mixKeyframes = void 0, s !== Vg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Nee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
+ Gg(e);
+ let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
+ this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = Nm(Mee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16666,51 +16670,51 @@ var Jg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Gg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Kg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Rg && (f.value = Ug(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Yg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Rg ? Ug(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
if (c) {
let t = Math.min(e, r) / o, n = Math.floor(t), i = t % 1;
- !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Tm(0, 1, i) * o;
+ !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Em(0, 1, i) * o;
}
let p;
return t ? (this.delayState.value = s[0], p = this.delayState) : p = f.next(d), i && !t && (p.value = i(p.value)), p;
}
get duration() {
- return /* @__PURE__ */ Im(this.calculatedDuration);
+ return /* @__PURE__ */ Lm(this.calculatedDuration);
}
get iterationDuration() {
- return this.duration + /* @__PURE__ */ Im(this.options.delay ?? 0);
+ return this.duration + /* @__PURE__ */ Lm(this.options.delay ?? 0);
}
get time() {
- return /* @__PURE__ */ Im(this.currentTime);
+ return /* @__PURE__ */ Lm(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Fm(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Im(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Hg(this.generator, this.currentTime, this.options.velocity);
+ return Ug(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(ch.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Im(this.currentTime));
+ t && this.driver && this.updateTime(lh.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Lm(this.currentTime));
}
play() {
if (this.isStopped) return;
@@ -16720,7 +16724,7 @@ var Jg = class {
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(ch.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(lh.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -16740,27 +16744,27 @@ var Jg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Pee = /* @__PURE__ */ new Set([
+}, Nee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Fee(e) {
+function Pee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(yh) || [];
+ let [r] = n.match(bh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Pee.has(t);
+ let i = n.replace(r, ""), a = +!!Nee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Iee = /\b([a-z-]*)\(.*?\)/gu, Zg = {
+var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
...rg,
getAnimatableNone: (e) => {
- let t = e.match(Iee);
- return t ? t.map(Fee).join(" ") : e;
+ let t = e.match(Fee);
+ return t ? t.map(Pee).join(" ") : e;
}
-}, Qg = {
+}, $g = {
...rg,
getAnimatableNone: (e) => {
let t = rg.parse(e);
@@ -16769,93 +16773,93 @@ var Iee = /\b([a-z-]*)\(.*?\)/gu, Zg = {
alpha: 1
} : e));
}
-}, $g = {
- ...gh,
- transform: Math.round
}, e_ = {
- rotate: jh,
- pathRotation: jh,
- rotateX: jh,
- rotateY: jh,
- rotateZ: jh,
- scale: vh,
- scaleX: vh,
- scaleY: vh,
- scaleZ: vh,
- skew: jh,
- skewX: jh,
- skewY: jh,
- distance: Nh,
- translateX: Nh,
- translateY: Nh,
- translateZ: Nh,
- x: Nh,
- y: Nh,
- z: Nh,
- perspective: Nh,
- transformPerspective: Nh,
- opacity: _h,
+ ..._h,
+ transform: Math.round
+}, t_ = {
+ rotate: Mh,
+ pathRotation: Mh,
+ rotateX: Mh,
+ rotateY: Mh,
+ rotateZ: Mh,
+ scale: yh,
+ scaleX: yh,
+ scaleY: yh,
+ scaleZ: yh,
+ skew: Mh,
+ skewX: Mh,
+ skewY: Mh,
+ distance: G,
+ translateX: G,
+ translateY: G,
+ translateZ: G,
+ x: G,
+ y: G,
+ z: G,
+ perspective: G,
+ transformPerspective: G,
+ opacity: vh,
originX: Ih,
originY: Ih,
- originZ: Nh
-}, t_ = {
- borderWidth: Nh,
- borderTopWidth: Nh,
- borderRightWidth: Nh,
- borderBottomWidth: Nh,
- borderLeftWidth: Nh,
- borderRadius: Nh,
- borderTopLeftRadius: Nh,
- borderTopRightRadius: Nh,
- borderBottomRightRadius: Nh,
- borderBottomLeftRadius: Nh,
- width: Nh,
- maxWidth: Nh,
- height: Nh,
- maxHeight: Nh,
- top: Nh,
- right: Nh,
- bottom: Nh,
- left: Nh,
- inset: Nh,
- insetBlock: Nh,
- insetBlockStart: Nh,
- insetBlockEnd: Nh,
- insetInline: Nh,
- insetInlineStart: Nh,
- insetInlineEnd: Nh,
- padding: Nh,
- paddingTop: Nh,
- paddingRight: Nh,
- paddingBottom: Nh,
- paddingLeft: Nh,
- paddingBlock: Nh,
- paddingBlockStart: Nh,
- paddingBlockEnd: Nh,
- paddingInline: Nh,
- paddingInlineStart: Nh,
- paddingInlineEnd: Nh,
- margin: Nh,
- marginTop: Nh,
- marginRight: Nh,
- marginBottom: Nh,
- marginLeft: Nh,
- marginBlock: Nh,
- marginBlockStart: Nh,
- marginBlockEnd: Nh,
- marginInline: Nh,
- marginInlineStart: Nh,
- marginInlineEnd: Nh,
- fontSize: Nh,
- backgroundPositionX: Nh,
- backgroundPositionY: Nh,
- ...e_,
- zIndex: $g,
- fillOpacity: _h,
- strokeOpacity: _h,
- numOctaves: $g
-}, Lee = {
+ originZ: G
+}, n_ = {
+ borderWidth: G,
+ borderTopWidth: G,
+ borderRightWidth: G,
+ borderBottomWidth: G,
+ borderLeftWidth: G,
+ borderRadius: G,
+ borderTopLeftRadius: G,
+ borderTopRightRadius: G,
+ borderBottomRightRadius: G,
+ borderBottomLeftRadius: G,
+ width: G,
+ maxWidth: G,
+ height: G,
+ maxHeight: G,
+ top: G,
+ right: G,
+ bottom: G,
+ left: G,
+ inset: G,
+ insetBlock: G,
+ insetBlockStart: G,
+ insetBlockEnd: G,
+ insetInline: G,
+ insetInlineStart: G,
+ insetInlineEnd: G,
+ padding: G,
+ paddingTop: G,
+ paddingRight: G,
+ paddingBottom: G,
+ paddingLeft: G,
+ paddingBlock: G,
+ paddingBlockStart: G,
+ paddingBlockEnd: G,
+ paddingInline: G,
+ paddingInlineStart: G,
+ paddingInlineEnd: G,
+ margin: G,
+ marginTop: G,
+ marginRight: G,
+ marginBottom: G,
+ marginLeft: G,
+ marginBlock: G,
+ marginBlockStart: G,
+ marginBlockEnd: G,
+ marginInline: G,
+ marginInlineStart: G,
+ marginInlineEnd: G,
+ fontSize: G,
+ backgroundPositionX: G,
+ backgroundPositionY: G,
...t_,
+ zIndex: e_,
+ fillOpacity: vh,
+ strokeOpacity: vh,
+ numOctaves: e_
+}, Iee = {
+ ...n_,
color: Rh,
backgroundColor: Rh,
outlineColor: Rh,
@@ -16866,21 +16870,21 @@ var Iee = /\b([a-z-]*)\(.*?\)/gu, Zg = {
borderRightColor: Rh,
borderBottomColor: Rh,
borderLeftColor: Rh,
- filter: Zg,
- WebkitFilter: Zg,
- mask: Qg,
- WebkitMask: Qg
-}, n_ = (e) => Lee[e], Ree = /*@__PURE__*/ new Set([Zg, Qg]);
-function r_(e, t) {
- let n = n_(e);
- return Ree.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ filter: Qg,
+ WebkitFilter: Qg,
+ mask: $g,
+ WebkitMask: $g
+}, r_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([Qg, $g]);
+function i_(e, t) {
+ let n = r_(e);
+ return Lee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function i_(e) {
+function a_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var a_ = (e) => e * 180 / Math.PI, o_ = (e) => s_(a_(Math.atan2(e[1], e[0]))), zee = {
+var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Ree = {
x: 4,
y: 5,
translateX: 4,
@@ -16889,44 +16893,44 @@ var a_ = (e) => e * 180 / Math.PI, o_ = (e) => s_(a_(Math.atan2(e[1], e[0]))), z
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: o_,
- rotateZ: o_,
- skewX: (e) => a_(Math.atan(e[1])),
- skewY: (e) => a_(Math.atan(e[2])),
+ rotate: s_,
+ rotateZ: s_,
+ skewX: (e) => o_(Math.atan(e[1])),
+ skewY: (e) => o_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, s_ = (e) => (e %= 360, e < 0 && (e += 360), e), c_ = o_, l_ = (e) => Math.hypot(e[0], e[1]), u_ = (e) => Math.hypot(e[4], e[5]), Bee = {
+}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), zee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: l_,
- scaleY: u_,
+ scaleX: u_,
+ scaleY: d_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (l_(e) + u_(e)) / 2,
- rotateX: (e) => s_(a_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => s_(a_(Math.atan2(-e[2], e[0]))),
- rotateZ: c_,
- rotate: c_,
- skewX: (e) => a_(Math.atan(e[4])),
- skewY: (e) => a_(Math.atan(e[1])),
+ scale: (e) => (u_(e) + d_(e)) / 2,
+ rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
+ rotateZ: l_,
+ rotate: l_,
+ skewX: (e) => o_(Math.atan(e[4])),
+ skewY: (e) => o_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function d_(e) {
+function f_(e) {
return +!!e.includes("scale");
}
-function f_(e, t) {
- if (!e || e === "none") return d_(t);
+function p_(e, t) {
+ if (!e || e === "none") return f_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return d_(t);
- let r = (n[1] ? Bee : zee)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return f_(t);
+ let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var p_ = (e, t) => {
+var m_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return f_(n, t);
-}, m_ = [
+ return p_(n, t);
+}, h_ = [
"transformPerspective",
"x",
"y",
@@ -16945,14 +16949,14 @@ var p_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], h_ = /* @__PURE__ */ new Set([...m_, "pathRotation"]), g_ = (e) => e === gh || e === Nh, Vee = /* @__PURE__ */ new Set([
+], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === _h || e === G, Bee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Hee = /* @__PURE__ */ m_.filter((e) => !Vee.has(e));
-function Uee(e) {
+]), Vee = /* @__PURE__ */ h_.filter((e) => !Bee.has(e));
+function Hee(e) {
let t = [];
- return Hee.forEach((n) => {
+ return Vee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16961,16 +16965,16 @@ function Uee(e) {
}
}), t;
}
-var Wee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function __(e, t, n, r, i, a) {
+var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function v_(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var v_ = ({ transform: e }) => f_(e, "x"), y_ = ({ transform: e }) => f_(e, "y"), b_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => __(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => __(e, i, "y", t, n, r),
+var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16981,20 +16985,20 @@ var v_ = ({ transform: e }) => f_(e, "x"), y_ = ({ transform: e }) => f_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: v_,
- y: y_,
- translateX: v_,
- translateY: y_
-}, x_ = /* @__PURE__ */ new Set(), S_ = !1, C_ = !1, w_ = !1;
-function T_() {
- if (C_) {
+ x: y_,
+ y: b_,
+ translateX: y_,
+ translateY: b_
+}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
+function E_() {
+ if (w_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- x_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Wee.has(r.name) && n.add(r.element));
+ S_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Uee(e);
+ let t = Hee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -17006,29 +17010,29 @@ function T_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- C_ = !1, S_ = !1, x_.forEach((e) => e.complete(w_)), x_.clear();
+ w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
}
-function E_() {
- x_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (C_ = !0);
+function D_() {
+ S_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (w_ = !0);
});
}
-function Gee() {
- w_ = !0, E_(), T_(), w_ = !1;
+function Wee() {
+ T_ = !0, D_(), E_(), T_ = !1;
}
-function Kee(e, t, n) {
+function Gee(e, t, n) {
if (typeof e == "string") {
- if (Dm(e) || km(e)) return parseFloat(e);
- if (!rg.test(e) && rg.test(n)) return r_(t, n);
+ if (Om(e) || Am(e)) return parseFloat(e);
+ if (!rg.test(e) && rg.test(n)) return i_(t, n);
}
return e ?? void 0;
}
-var D_ = class {
+var O_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (x_.add(this), S_ || (S_ = !0, _g.read(E_), _g.resolveKeyframes(T_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (S_.add(this), C_ || (C_ = !0, _g.read(D_), _g.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -17036,71 +17040,71 @@ var D_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Kee(n.readValue(t, a), t, a);
+ let r = Gee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- i_(e);
+ a_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), x_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
}
cancel() {
- this.state === "scheduled" && (x_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (S_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, O_ = (e) => e.startsWith("--");
+}, k_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function k_(e, t, n) {
- O_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function A_(e, t, n) {
+ k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var qee = {};
+var Kee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function A_(e, t) {
- let n = /* @__PURE__ */ Am(e);
- return () => qee[t] ?? n();
+function j_(e, t) {
+ let n = /* @__PURE__ */ jm(e);
+ return () => Kee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var Jee = /* @__PURE__ */ A_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), j_ = /*@__PURE__*/ A_(() => {
+var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), M_ = /*@__PURE__*/ j_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), M_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, N_ = {
+}, "linearEasing"), N_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, P_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ M_([
+ circIn: /*@__PURE__*/ N_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ M_([
+ circOut: /*@__PURE__*/ N_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ M_([
+ backIn: /*@__PURE__*/ N_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ M_([
+ backOut: /*@__PURE__*/ N_([
.33,
1.53,
.69,
@@ -17108,14 +17112,14 @@ var Jee = /* @__PURE__ */ A_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function P_(e, t) {
- if (e) return typeof e == "function" ? j_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? M_(e) : Array.isArray(e) ? e.map((e) => P_(e, t) || N_.easeOut) : N_[e];
+function F_(e, t) {
+ if (e) return typeof e == "function" ? M_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ nh(e) ? N_(e) : Array.isArray(e) ? e.map((e) => F_(e, t) || P_.easeOut) : P_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Yee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = P_(s, i);
+ let d = F_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17128,27 +17132,27 @@ function Yee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function F_(e) {
+function I_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Xee({ type: e, ...t }) {
- return F_(e) && j_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Yee({ type: e, ...t }) {
+ return I_(e) && M_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var I_ = class extends Jg {
+var L_ = class extends Yg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Xee(e);
- this.animation = Yee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
+ let c = Yee(e);
+ this.animation = Jee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
if (this.finishedTime = this.time, !i) {
- let e = Ug(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), k_(t, n, e), this.animation.cancel();
+ let e = Wg(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, qg(this, e, c);
+ }, Jg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17173,18 +17177,18 @@ var I_ = class extends Jg {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Im(Number(e));
+ return /* @__PURE__ */ Lm(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Im(e);
+ return this.duration + /* @__PURE__ */ Lm(e);
}
get time() {
- return /* @__PURE__ */ Im(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Lm(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Fm(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Im(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -17202,30 +17206,30 @@ var I_ = class extends Jg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Jee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && qee() ? (this.animation.timeline = e, t?.(this.animation), Mm) : n(this);
}
-}, L_ = {
- anticipate: Km,
- backInOut: Gm,
- circInOut: Ym
+}, R_ = {
+ anticipate: qm,
+ backInOut: Km,
+ circInOut: Xm
};
-function Zee(e) {
- return e in L_;
+function Xee(e) {
+ return e in R_;
}
-function Qee(e) {
- typeof e.ease == "string" && Zee(e.ease) && (e.ease = L_[e.ease]);
+function Zee(e) {
+ typeof e.ease == "string" && Xee(e.ease) && (e.ease = R_[e.ease]);
}
-var $ee = class extends I_ {
+var Qee = class extends L_ {
constructor(e) {
- Qee(e), Wg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Zee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
- return this.state === "running" ? (ch.now() - this.startTime) * this.speed : this.time * 1e3;
+ return this.state === "running" ? (lh.now() - this.startTime) * this.speed : this.time * 1e3;
}
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Xg({
+ this.sampler = new Zg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17243,40 +17247,40 @@ var $ee = class extends I_ {
t.set(e);
return;
}
- let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Tm(0, 10, a) : 0, s = this.sample(a);
- n && r && k_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Em(0, 10, a) : 0, s = this.sample(a);
+ n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, R_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
+}, z_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function ete(e) {
+function $ee(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function tte(e, t, n, r) {
+function ete(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = R_(i, t), s = R_(a, t);
- return !o || !s ? !1 : ete(e) || (n === "spring" || F_(n)) && r;
+ let a = e[e.length - 1], o = z_(i, t), s = z_(a, t);
+ return !o || !s ? !1 : $ee(e) || (n === "spring" || I_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function z_(e) {
+function B_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var B_ = /* @__PURE__ */ new Set([
+var V_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), nte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function rte(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && nte.test(e[t])) return !0;
+]), tte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function nte(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && tte.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var V_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), H_ = /* @__PURE__ */ new Set([
+var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), U_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17287,54 +17291,54 @@ var V_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), U_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function ite(e) {
+]), W_ = () => !Dm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function rte(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(B_.has(n) || H_.has(n))) return !1;
+ if (!n || !(V_.has(n) || U_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return U_() && (B_.has(n) || H_.has(n) && rte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !V_(e);
+ return W_() && (V_.has(n) || U_.has(n) && nte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !H_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var W_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ate = {
+var G_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ite = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ote = m_.length, G_ = {}, K_ = (e, t, n = W_(t, e_[e])) => (G_[e] || (G_[e] = (ate[e] || e) + "(")) + n + ")", q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function ste(e, t, n) {
+}, ate = h_.length, K_ = {}, q_ = (e, t, n = G_(t, t_[e])) => (K_[e] || (K_[e] = (ite[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function ote(e, t, n) {
let r = "";
- for (let i = 0; i < ote; i++) {
- let a = m_[i], o = e[a];
+ for (let i = 0; i < ate; i++) {
+ let a = h_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = W_(o, t_[a]));
- q_(a, o) || (r += K_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = G_(o, n_[a]));
+ J_(a, o) || (r += q_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += K_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var J_ = /* @__PURE__ */ new WeakMap(), cte = 200, Y_ = .001, lte = .1, ute = .001, dte = 100, fte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), X_ = (e, t) => Math.abs(e - t) <= Y_, Z_ = (e, t) => e - t, Q_ = (e, t, n) => Bg(Array(n + 1)).map((n) => og(e, t, n)), $_ = (e) => e.motionValue.owner, ev = (e) => J_.get(e), tv = ({ state: e }) => e === "idle" || e === "finished", nv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), pte = ({ name: e, motionValue: t }) => e && m_.includes(e) && t?.owner?.current instanceof HTMLElement && U_() && j_();
-function mte(e) {
- let t = $_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (nv(t, "transform") || "none") === "none" && !nv(t, "pathRotation") && !t.projection?.isProjecting() && !V_(e);
+var Y_ = /* @__PURE__ */ new WeakMap(), ste = 200, X_ = .001, cte = .1, lte = .001, ute = 100, dte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Vg(Array(n + 1)).map((n) => og(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), fte = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && W_() && M_();
+function pte(e) {
+ let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !H_(e);
}
-var hte = class extends Xg {
+var mte = class extends Zg {
constructor(e) {
- let t = $_(e).current, { driver: n = bg } = e, r, i = mte(e);
+ let t = ev(e).current, { driver: n = bg } = e, r, i = pte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = ev(t);
+ let n = tv(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = ev(t);
+ let e = tv(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17345,7 +17349,7 @@ var hte = class extends Xg {
};
}
get group() {
- return ev($_(this.options).current);
+ return tv(ev(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17362,11 +17366,11 @@ var hte = class extends Xg {
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
}
liveValue() {
- return this.isAccelerated() ? this.sampleAt(ch.now()) : void 0;
+ return this.isAccelerated() ? this.sampleAt(lh.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? M_(n) : fte(n) && N_[n];
- if (o && !i && !r && e.length === 2 && t === Vg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ nh(n) ? N_(n) : dte(n) && P_[n];
+ if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17376,7 +17380,7 @@ var hte = class extends Xg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Vg) === Vg ? u || Bg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Hg) === Hg ? u || Vg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17392,11 +17396,11 @@ var hte = class extends Xg {
return parseFloat(this.sampleAt(e, !0));
}
sync() {
- let e = ch.now();
+ let e = lh.now();
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || gte($_(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || hte(ev(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17404,10 +17408,10 @@ var hte = class extends Xg {
complete() {
super.complete();
let { group: e } = this;
- e && !e.isJS && this.canAccelerate && this.tick(ch.now());
+ e && !e.isJS && this.canAccelerate && this.tick(lh.now());
}
get time() {
- return this.isAccelerated() ? /* @__PURE__ */ Im(Tm(0, this.totalDuration, this.at(ch.now()) - (this.options.delay || 0))) : super.time;
+ return this.isAccelerated() ? /* @__PURE__ */ Lm(Em(0, this.totalDuration, this.at(lh.now()) - (this.options.delay || 0))) : super.time;
}
set time(e) {
super.time = e, this.isAccelerated() && this.sync();
@@ -17416,13 +17420,13 @@ var hte = class extends Xg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function gte(e) {
+function hte(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? m_ : a) {
- let a = r.get(s), c = t === void 0 ? nv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? h_ : a) {
+ let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17430,7 +17434,7 @@ function gte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && q_(r, i) || (n += K_(r, i) + " ");
+ t && J_(r, i) || (n += q_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17443,7 +17447,7 @@ function gte(e) {
offset: t,
end: n
};
- e.startTime = ch.now() + t, n < Infinity && (e.onfinish = () => {
+ e.startTime = lh.now() + t, n < Infinity && (e.onfinish = () => {
r.isDone = !0, s.some((e) => e.end === Infinity) && (e.cancel(), s = s.filter((e) => e !== r)), A.schedule(!1);
}), e.oncancel = () => s.includes(r) && A.demote(), s.push(r);
}, x = (e, t, n) => {
@@ -17454,32 +17458,32 @@ function gte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, S = (e, t, n, r) => {
- let i = Math.min(cte, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(ste, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = Q_(t, n, i).concat(r).sort(Z_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
+ let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ Pm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * Y_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !X_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => X_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Yg(t) + " " + Yg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && x(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, C = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ute : lte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? lte : cte))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...x((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = Q_(t, n, Math.ceil((n - t) / 100));
+ }, s = $_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Z_)) e > c && o(c, e, 0), c = e;
- return i.sort(Z_);
+ for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
+ return i.sort(Q_);
}, w = (e) => {
let t;
for (let n of e) {
@@ -17490,7 +17494,7 @@ function gte(e) {
return t;
}, T = (e, t, n, r, i = { fill: "both" }, a) => {
let o = e.flatMap((e) => e.boundaries(t, n)), s = r || S(e, t, n, o), c = s ? [t, n] : C(e, t, n, o), l = c.map((e) => g(e, a)), u = { transform: l };
- return s || (u.offset = c.map((e) => /* @__PURE__ */ Nm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
+ return s || (u.offset = c.map((e) => /* @__PURE__ */ Pm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), y(u, {
...i,
duration: n - t,
easing: s || "linear"
@@ -17518,10 +17522,10 @@ function gte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = m_.filter((t) => {
+ i = {}, a = h_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = nv(e, t);
- return n !== void 0 && !q_(t, n);
+ let n = i[t] = rv(e, t);
+ return n !== void 0 && !J_(t, n);
}), v(!1);
let m = !l && w(d);
try {
@@ -17567,18 +17571,18 @@ function gte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, O = () => !n.size && (u = !0, ev(t) === A && J_.delete(t), A.isJS || v(), !0), k = () => {
- let t = ch.now();
+ }, O = () => !n.size && (u = !0, tv(t) === A && Y_.delete(t), A.isJS || v(), !0), k = () => {
+ let t = lh.now();
if (A.isJS || (A.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = nv(e, n.name), o.has(n) || (c = !0));
- }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => tv(e) && n.delete(e)), O())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
+ }), A.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), O())) return;
for (let e of n) if (!e.canAccelerate) return A.demote(!0);
A.isJS && (A.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !D(t)) {
if (a) {
- if (t - f < dte) return A.demote();
+ if (t - f < ute) return A.demote();
f = t;
}
if (!E(t)) return A.demote();
@@ -17588,14 +17592,14 @@ function gte(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, ah.isProcessing ? _g.render(k, !1, !0) : queueMicrotask(k)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, oh.isProcessing ? _g.render(k, !1, !0) : queueMicrotask(k)));
},
release(e) {
- tv(e) && n.delete(e), O() || A.schedule(!0);
+ nv(e) && n.delete(e), O() || A.schedule(!0);
},
check() {
if (!A.isJS) {
- for (let t in i) if (nv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
+ for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return A.schedule(!0, !0);
}
},
demote(e) {
@@ -17604,40 +17608,40 @@ function gte(e) {
}), A.isJS = !0, o = /* @__PURE__ */ new Map(), v(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return J_.set(t, A), A;
+ return Y_.set(t, A), A;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var _te = class extends Jg {
+var gte = class extends Yg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = ch.now();
+ }, this.createdAt = lh.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || D_;
+ let o = i?.KeyframeResolver || O_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = ch.now();
- let u = tte(e, i, a, o);
- u || ((Em.instantAnimations || !s) && l?.(Ug(e, n, t)), e[0] = e[e.length - 1], z_(n), n.repeat = 0);
+ this.resolvedAt = lh.now();
+ let u = ete(e, i, a, o);
+ u || ((Dm.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], B_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && ite(n), p = !f && pte(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Gg(this.createdAt, this.resolvedAt));
+ let f = u && !c && rte(n), p = !f && fte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new $ee(n);
+ m = new Qee(n);
} catch {
- m = new Xg(n);
+ m = new Zg(n);
}
- } else m = p ? new hte(n) : new Xg(n);
+ } else m = p ? new mte(n) : new Zg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17650,7 +17654,7 @@ var _te = class extends Jg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Gee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17691,7 +17695,7 @@ var _te = class extends Jg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, vte = class {
+}, _te = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17731,10 +17735,10 @@ var _te = class extends Jg {
return this.getAll("startTime");
}
get duration() {
- return rv(this.animations, "duration");
+ return iv(this.animations, "duration");
}
get iterationDuration() {
- return rv(this.animations, "iterationDuration");
+ return iv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17752,7 +17756,7 @@ var _te = class extends Jg {
this.runAll("complete");
}
};
-function rv(e, t) {
+function iv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17761,30 +17765,30 @@ function rv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var iv = class extends vte {
+var av = class extends _te {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, av = /* @__PURE__ */ new WeakMap(), yte = (e, t = "") => `${e}:${t}`;
-function bte(e) {
- let t = av.get(e);
- return t || (t = /* @__PURE__ */ new Map(), av.set(e, t)), t;
+}, ov = /* @__PURE__ */ new WeakMap(), vte = (e, t = "") => `${e}:${t}`;
+function yte(e) {
+ let t = ov.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function ov(e, t, n, r = 0, i = 1) {
+function sv(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv = class {
+var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = ch.now();
+ let t = lh.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.dirty(), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = xte(this.current));
+ this.current = e, this.updatedAt = lh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17794,11 +17798,11 @@ var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
}
on(e, t) {
var n;
- return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Pm())).add(t);
+ return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Fm())).add(t);
}
onChangeSubscribe(e) {
let { events: t } = this;
- return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Pm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
+ return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Fm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
};
}
@@ -17821,7 +17825,7 @@ var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
}
jump(e, t = !0) {
- t && (this.updatedAt = ch.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
+ t && (this.updatedAt = lh.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
}
dirty() {
let { current: e, changeSubscriber: t } = this;
@@ -17834,7 +17838,7 @@ var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
this.dependents?.delete(e);
}
get() {
- cv.current?.push(this);
+ lv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17845,10 +17849,10 @@ var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
return this.prev;
}
getVelocity() {
- let e = ch.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > sv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, sv);
- return /* @__PURE__ */ Lm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = lh.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
+ return /* @__PURE__ */ Rm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -17869,11 +17873,11 @@ var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function uv(e, t) {
- return new lv(e, t);
+function dv(e, t) {
+ return new uv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function dv(e, t) {
+function fv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17884,25 +17888,25 @@ function dv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function fv(e, t) {
+function pv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : dv(n, e);
+ return n === e ? n : fv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var Ste = {
+var xte = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Cte = (e) => ({
+}, Ste = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), wte = {
+}), Cte = {
type: "keyframes",
duration: .8
-}, Tte = {
+}, wte = {
type: "keyframes",
ease: [
.25,
@@ -17911,7 +17915,7 @@ var Ste = {
1
],
duration: .3
-}, Ete = (e, { keyframes: t }) => t.length > 2 ? wte : h_.has(e) ? e.startsWith("scale") ? Cte(t[1]) : Ste : Tte, Dte = /* @__PURE__ */ new Set([
+}, Tte = (e, { keyframes: t }) => t.length > 2 ? Cte : g_.has(e) ? e.startsWith("scale") ? Ste(t[1]) : xte : wte, Ete = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17925,14 +17929,14 @@ var Ste = {
"out",
"mixer"
]);
-function Ote(e) {
- for (let t in e) if (!Dte.has(t)) return !0;
+function Dte(e) {
+ for (let t in e) if (!Ete.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var pv = (e, t, n, r = {}, i, a) => (o) => {
- let s = fv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Fm(c);
+var mv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Im(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -17950,10 +17954,10 @@ var pv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Ote(s) || Object.assign(u, Ete(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Dte(s) || Object.assign(u, Tte(e, u)), u.duration &&= /* @__PURE__ */ Im(u.duration), u.repeatDelay &&= /* @__PURE__ */ Im(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (z_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, z_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Ug(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (B_(u), u.delay === 0 && (d = !0)), (Dm.instantAnimations || Dm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, B_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Wg(u.keyframes, s);
if (e !== void 0) {
_g.update(() => {
u.onUpdate(e), u.onComplete();
@@ -17961,103 +17965,103 @@ var pv = (e, t, n, r = {}, i, a) => (o) => {
return;
}
}
- return s.isSync ? new Xg(u) : new _te(u);
-}, kte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function Ate(e) {
- let t = kte.exec(e);
+ return s.isSync ? new Zg(u) : new gte(u);
+}, Ote = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function kte(e) {
+ let t = Ote.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function mv(e, t, n = 1) {
- let [r, i] = Ate(e);
+function hv(e, t, n = 1) {
+ let [r, i] = kte(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Dm(e) ? parseFloat(e) : e;
+ return Om(e) ? parseFloat(e) : e;
}
- return ph(i) ? mv(i, t, n + 1) : i;
+ return mh(i) ? hv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function jte(e) {
+function Ate(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function Mte(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...jte(r)) : t;
+function gv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ate(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function hv(e, t, n) {
- return Mte(e.getProps(), t, n, e);
+function _v(e, t, n) {
+ return gv(e.getProps(), t, n, e);
}
-var gv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, _v = /* @__PURE__ */ new Set([
+var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...m_
-]), Nte = (e) => Array.isArray(e);
+ ...h_
+]), jte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Pte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, uv(n));
+function Mte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
}
-function Fte(e) {
- return Nte(e) ? e[e.length - 1] || 0 : e;
+function Nte(e) {
+ return jte(e) ? e[e.length - 1] || 0 : e;
}
-function Ite(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = hv(e, t) || {};
+function Pte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Pte(e, t, Fte(i[t]));
+ for (let t in i) Mte(e, t, Nte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var vv = (e) => !!(e && e.getVelocity);
+var bv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Lte(e) {
- return !!(vv(e) && e.add);
+function Fte(e) {
+ return !!(bv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function yv(e, t) {
+function xv(e, t) {
let n = e.getValue("willChange");
- if (Lte(n)) return n.add(t);
- if (!n && Em.WillChange) {
- let n = new Em.WillChange("auto");
+ if (Fte(n)) return n.add(t);
+ if (!n && Dm.WillChange) {
+ let n = new Dm.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var bv = "data-framer-appear-id";
+var Sv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function xv(e) {
- return e.props[bv];
+function Cv(e) {
+ return e.props[Sv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Rte = typeof window < "u";
-function zte({ protectedKeys: e, needsAnimating: t }, n) {
+var Ite = typeof window < "u";
+function Lte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function Sv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? dv(a, c) : c;
+ a = a ? fv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && zte(f, t)) continue;
+ if (i === void 0 || f && Lte(f, t)) continue;
let o = {
delay: n,
- ...fv(f?.out[t] || a || {}, t)
+ ...pv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
@@ -18066,79 +18070,79 @@ function Sv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
continue;
}
let p = !1;
- if (Rte && window.MotionHandoffAnimation) {
- let n = xv(e);
+ if (Ite && window.MotionHandoffAnimation) {
+ let n = Cv(e);
if (n) {
let e = window.MotionHandoffAnimation(n, t, _g);
e !== null && (o.startTime = e, p = !0);
}
}
- yv(e, t);
+ xv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(pv(t, r, i, m && _v.has(t) ? { type: !1 } : o, e, p));
+ r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
let t = () => _g.update(() => {
- o && Ite(e, o);
+ o && Pte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Cv(e, t, n = {}) {
- let r = hv(e, t, gv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Sv(e, r, n) : []), o = (r = 0) => {
+function Tv(e, t, n = {}) {
+ let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Cv(e, t, {
+ e.notify("AnimationStart", t), l.push(Tv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + ov(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Bte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Cv(e, t, n))) : typeof t == "string" ? Cv(e, t, n) : Promise.all(Sv(e, hv(e, t, n.custom), n))).then(() => {
+function Rte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var Vte = {
+var zte = {
test: (e) => e === "auto",
parse: (e) => e
-}, Hte = (e) => (t) => t.test(e), Ute = [
- gh,
+}, Bte = (e) => (t) => t.test(e), Vte = [
+ _h,
+ G,
Nh,
Mh,
- jh,
Fh,
Ph,
- Vte
-], wv = (e) => Ute.find(Hte(e));
+ zte
+], Ev = (e) => Vte.find(Bte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Wte(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || km(e);
+function Hte(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Am(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Gte = /* @__PURE__ */ new Set([
+var Ute = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Kte(e, t, n) {
+function Wte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Gte.has(t) && Yh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Ute.has(t) && Yh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = r_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Tv = class extends D_ {
+var Dv = class extends O_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18149,7 +18153,7 @@ var Tv = class extends D_ {
canReadNow() {
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
if (!t?.current || r === void 0) return !1;
- for (let t = 0; t < e.length; t++) if (hh(t ? e[t] : r)) return !1;
+ for (let t = 0; t < e.length; t++) if (gh(t ? e[t] : r)) return !1;
return !0;
}
readKeyframes() {
@@ -18158,32 +18162,32 @@ var Tv = class extends D_ {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), ph(r))) {
- let i = mv(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), mh(r))) {
+ let i = hv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !_v.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = wv(r), o = wv(i);
- if (hh(r) !== hh(i) && b_[n]) this.needsMeasurement = !0;
+ let a = Ev(r), o = Ev(i);
+ if (gh(r) !== gh(i) && x_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (g_(a) && g_(o)) for (let t = 0; t < e.length; t++) {
+ if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else b_[n] && (this.needsMeasurement = !0);
+ else x_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Wte(e[t])) && n.push(t);
- n.length && Kte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Hte(e[t])) && n.push(t);
+ n.length && Wte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return b_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18199,19 +18203,19 @@ var Tv = class extends D_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Ev = [
+}, Ov = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], qte = /* @__PURE__ */ new Set([
+], Gte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Ev,
+ ...Ov,
"width",
"maxWidth",
"height",
@@ -18254,21 +18258,21 @@ var Tv = class extends D_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Jte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && qte.has(t) && (e[n] = e[n] + "px");
+function Kte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Gte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var Dv = [];
-function Yte(e) {
- Ov(e), Dv.unshift(e);
+var kv = [];
+function qte(e) {
+ Av(e), kv.unshift(e);
}
-function Ov(e) {
- wm(Dv, e);
+function Av(e) {
+ Tm(kv, e);
}
-function Xte(e) {
- return Dv.find((t) => t.test(e));
+function Jte(e) {
+ return kv.find((t) => t.test(e));
}
-function kv(e, t, n = {}, r) {
+function jv(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18276,7 +18280,7 @@ function kv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(pv(o, l, c, s && _v.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
@@ -18287,50 +18291,50 @@ function kv(e, t, n = {}, r) {
}
return i;
}
-function Av(e, t, n, r, i) {
- return kv((r) => {
+function Mv(e, t, n, r, i) {
+ return jv((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Zte(i) ?? e.read(t, r, i);
+ o = Yte(i) ?? e.read(t, r, i);
}
- a = uv(o, { owner: i }), e(t, { [r]: a });
+ a = dv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Zte(e) {
+function Yte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function jv(e) {
- return Om(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Nv(e) {
+ return km(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Mv(e) {
- return Om(e) && "ownerSVGElement" in e;
+function Pv(e) {
+ return km(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Nv = {};
-function Pv(e) {
- return Nv.current?.add(e), e;
+var Fv = {};
+function Iv(e) {
+ return Fv.current?.add(e), e;
}
-var Fv = (e) => Nv.current ? Nv.current.bind(e) : e;
+var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Iv(e, t, n) {
+function Rv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Nv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Qte = class {
+var Xte = class {
constructor(e = _g.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
@@ -18374,10 +18378,10 @@ var Qte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function Lv(e, { step: t, ...n } = {}) {
+function zv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Qte(t);
+ let a = r.get(n) ?? new Xte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18394,83 +18398,83 @@ function Lv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function $te(e) {
+function Zte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (q_(i, a) || (t += (t && " ") + K_(i, a)));
+ a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + K_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + q_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Rv = /* @__PURE__ */ new Set([
+var Bv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), zv = (e, t) => W_(e.get(t)?.get(), t_[t]), Bv = (e, t, n, r) => {
+]), Vv = (e, t) => G_(e.get(t)?.get(), n_[t]), Hv = (e, t, n, r) => {
let i, a;
- if (h_.has(n)) {
+ if (g_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => m_.indexOf(e) - m_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
}
- t.get("transform") || (!jv(e) && !t.get("transformBox") && Bv(e, t, "transformBox", new lv("fill-box")), t.set("transform", new lv("none"), () => {
- J_.get(e)?.check(), e.style.transform = $te(t);
+ t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
+ Y_.get(e)?.check(), e.style.transform = Zte(t);
})), a = t.get("transform");
- } else Rv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new lv(""), () => {
- let n = zv(t, "originX") ?? "50%", r = zv(t, "originY") ?? "50%", i = zv(t, "originZ") ?? 0;
+ } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
+ let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = O_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = W_(r.getCurrent(), t_[n]);
+ e.style[n] = G_(r.getCurrent(), n_[n]);
};
return t.set(n, r, i, a);
-}, ene = (e) => jv(e) || Mv(e), Vv = (e, t) => {
- if (h_.has(t)) return p_(e, t);
- let n = getComputedStyle(e), r = O_(t) ? n.getPropertyValue(t) : n[t];
+}, Qte = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
+ if (g_.has(t)) return m_(e, t);
+ let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, tne = /*@__PURE__*/ Lv(Bv, {
- test: ene,
- read: Vv
+}, $te = /*@__PURE__*/ zv(Hv, {
+ test: Qte,
+ read: Uv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Hv(e) {
+function Wv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Uv(e, t, n) {
+function Gv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (h_.has(e)) o = !0;
- else if (dh(e)) i[e] = n;
+ if (g_.has(e)) o = !0;
+ else if (fh(e)) i[e] = n;
else {
- let t = W_(n, t_[e]);
+ let t = G_(n, n_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = ste(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = ote(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var nne = {
+var ene = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, rne = {
+}, tne = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function ine(e, t, n = 1, r = 0, i = !0) {
+function nne(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? nne : rne;
+ let a = i ? ene : tne;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Wv = [
+var Kv = [
"transform",
"opacity",
"clipPath",
@@ -18480,55 +18484,55 @@ var Wv = [
"offsetRotate",
"offsetAnchor"
];
-function Gv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Uv(e, s, l), c) {
+function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Gv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Wv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && ine(d, i, a, o, !1);
+ for (let e of Kv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && nne(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function ane(e, t) {
+function rne(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Kv = (e, t, n, r, i = n) => {
- let a = ane(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Hv(i));
- let o = t_[n] || t_[i], s = a ? () => {
- e[i] = W_(r.get(), t_[n]);
+var Jv = (e, t, n, r, i = n) => {
+ let a = rne(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
+ let o = n_[n] || n_[i], s = a ? () => {
+ e[i] = G_(r.get(), n_[n]);
} : () => {
- let t = W_(r.get(), o);
+ let t = G_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function one(e, t, n, r) {
+function ine(e, t, n, r) {
return _g.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new lv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var sne = /*@__PURE__*/ Lv((e, t, n, r) => n.startsWith("path") && !h_.has(n) ? one(e, t, n, r) : n.startsWith("attr") ? Kv(e, t, n, r, qv(n)) : n === "d" ? t.set(n, r, () => {
+var ane = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? ine(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (h_.has(n) || Rv.has(n) || O_(n) || n in e.style ? Bv : Kv)(e, t, n, r), {
- test: Mv,
- read: (e, t) => h_.has(t) ? t_[t]?.default || 0 : O_(t) || Wv.includes(t) ? Vv(e, t) || e.getAttribute(Hv(t)) || 0 : (t = qv(t), e.getAttribute(Hv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (g_.has(n) || Bv.has(n) || k_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
+ test: Pv,
+ read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function qv(e) {
+function Yv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Jv({ top: e, left: t, right: n, bottom: r }) {
+function Xv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18540,7 +18544,7 @@ function Jv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function cne({ x: e, y: t }) {
+function one({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18548,7 +18552,7 @@ function cne({ x: e, y: t }) {
left: e.min
};
}
-function lne(e, t) {
+function sne(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18565,13 +18569,13 @@ function lne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Yv(e) {
+function Zv(e) {
return e === void 0 || e === 1;
}
-function Xv({ scale: e, scaleX: t, scaleY: n }) {
- return !Yv(e) || !Yv(t) || !Yv(n);
+function Qv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Zv(e) || !Zv(t) || !Zv(n);
}
-var Zv = [
+var $v = [
"rotate",
"rotateX",
"rotateY",
@@ -18579,67 +18583,67 @@ var Zv = [
"skewX",
"skewY"
];
-function Qv(e) {
- return Xv(e) || ey(e) || $v(e);
+function ey(e) {
+ return Qv(e) || ny(e) || ty(e);
}
-function $v(e) {
+function ty(e) {
return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
-function ey(e) {
- return ty(e.x) || ty(e.y);
+function ny(e) {
+ return ry(e.x) || ry(e.y);
}
-function ty(e) {
+function ry(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function ny(e, t, n) {
+function iy(e, t, n) {
return n + t * (e - n);
}
-function ry(e, t, n, r, i) {
- return i !== void 0 && (e = ny(e, i, r)), ny(e, n, r) + t;
+function ay(e, t, n, r, i) {
+ return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
}
-function iy(e, t = 0, n = 1, r, i) {
- e.min = ry(e.min, t, n, r, i), e.max = ry(e.max, t, n, r, i);
+function oy(e, t = 0, n = 1, r, i) {
+ e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
}
-function ay(e, { x: t, y: n }) {
- iy(e.x, t.translate, t.scale, t.originPoint), iy(e.y, n.translate, n.scale, n.originPoint);
+function sy(e, { x: t, y: n }) {
+ oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
}
-var oy = .999999999999, sy = 1.0000000000001;
-function une(e, t, n, r = !1) {
+var cy = .999999999999, ly = 1.0000000000001;
+function cne(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (cy(e.x, -a.scroll.offset.x), cy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ay(e, o)), r && (r.path?.[s] || r) !== a && Qv(a.latestValues) && dy(e, a.latestValues, a.layout?.layoutBox));
- t.x < sy && t.x > oy && (t.x = 1), t.y < sy && t.y > oy && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
+ t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (t.y = 1);
}
-function cy(e, t) {
+function uy(e, t) {
e.min += t, e.max += t;
}
-function ly(e, t, n, r, i = .5) {
- iy(e, t, n, og(e.min, e.max, i), r);
+function dy(e, t, n, r, i = .5) {
+ oy(e, t, n, og(e.min, e.max, i), r);
}
-function uy(e, t) {
+function fy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function dy(e, t, n) {
+function py(e, t, n) {
let r = n ?? e;
- ly(e.x, uy(t.x, r.x), t.scaleX, t.scale, t.originX), ly(e.y, uy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function fy(e, t) {
- return Jv(lne(e.getBoundingClientRect(), t));
+function my(e, t) {
+ return Xv(sne(e.getBoundingClientRect(), t));
}
-function dne(e, t, n) {
- let r = fy(e, n), { scroll: i } = t;
- return i && (cy(r.x, i.offset.x), cy(r.y, i.offset.y)), r;
+function lne(e, t, n) {
+ let r = my(e, n), { scroll: i } = t;
+ return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
}
-var fne = () => ({
+var une = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), pne = {}, mne = (e) => Mv(e) ? sne : tne, hne = class {
+}), dne = {}, fne = (e) => Pv(e) ? ane : $te, pne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Tv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Dv;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18651,207 +18655,207 @@ var fne = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return fy(this.current);
+ return my(this.current);
}
getProps() {
- return pne;
+ return dne;
}
};
-function gne(e, t, n, r) {
- if (Nv.current?.track(e), r) return kv((e) => r.getValue(e, null), t, n, r);
- let i = mne(e);
- return Av(i, e, t, n, new hne(i, e));
+function mne(e, t, n, r) {
+ if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
+ let i = fne(e);
+ return Mv(i, e, t, n, new pne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var _ne = /*@__PURE__*/ Lv((e, t, n, r) => t.set(n, r, () => {
+var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
- test: (e) => Om(e),
+ test: (e) => km(e),
read: (e, t) => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: py, cancel: vne } = /* @__PURE__ */ gg(queueMicrotask, !1);
+}), { schedule: hy, cancel: gne } = /* @__PURE__ */ gg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function my(e, t, n) {
- let r = vv(e) ? e : uv(e);
- return r.start(pv("", r, t, n)), r.animation;
+function gy(e, t, n) {
+ let r = bv(e) ? e : dv(e);
+ return r.start(mv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var hy = {}, gy = {
+var _y = {}, vy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function yne(e, t) {
- let n = ch.now();
- e = Fv(e);
+function _ne(e, t) {
+ let n = lh.now();
+ e = Lv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
a >= t && (vg(r), e(a - t));
};
- return _g.setup(r, !0), Pv(() => vg(r));
+ return _g.setup(r, !0), Iv(() => vg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function bne(e) {
+function vne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function xne(e) {
- return Mv(e) && e.tagName === "svg";
+function yne(e) {
+ return Pv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function _y(e) {
- return vv(e) ? e.get() : e;
+function yy(e) {
+ return bv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var vy = (e) => typeof e == "number" ? e : parseFloat(e), Sne = Ev.length, Cne = (e) => typeof e == "number" || Nh.test(e);
-function wne(e, t, n, r, i, a) {
- i ? (e.opacity = og(0, n.opacity ?? 1, Tne(r)), e.opacityExit = og(t.opacity ?? 1, 0, Ene(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < Sne; i++) {
- let a = Ev[i], o = yy(t, a), s = yy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || Cne(o) === Cne(s) ? (e[a] = Math.max(og(vy(o), vy(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < Zv.length; i++) {
- let a = Zv[i];
+var by = (e) => typeof e == "number" ? e : parseFloat(e), bne = Ov.length, xy = (e) => typeof e == "number" || G.test(e);
+function xne(e, t, n, r, i, a) {
+ i ? (e.opacity = og(0, n.opacity ?? 1, Sne(r)), e.opacityExit = og(t.opacity ?? 1, 0, Cne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < bne; i++) {
+ let a = Ov[i], o = Sy(t, a), s = Sy(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xy(o) === xy(s) ? (e[a] = Math.max(og(by(o), by(s), r), 0), (Nh.test(s) || Nh.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < $v.length; i++) {
+ let a = $v[i];
(t[a] || n[a]) && (e[a] = og(t[a] || 0, n[a] || 0, r));
}
}
-function yy(e, t) {
+function Sy(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Tne = /*@__PURE__*/ by(0, .5, Jm), Ene = /*@__PURE__*/ by(.5, .95, jm);
-function by(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Nm(e, t, r));
+var Sne = /*@__PURE__*/ Cy(0, .5, Ym), Cne = /*@__PURE__*/ Cy(.5, .95, Mm);
+function Cy(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Pm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function xy(e, t) {
+function wy(e, t) {
e.min = t.min, e.max = t.max;
}
-function Sy(e, t) {
- xy(e.x, t.x), xy(e.y, t.y);
+function Ty(e, t) {
+ wy(e.x, t.x), wy(e.y, t.y);
}
-function Cy(e, t) {
+function Ey(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Dne = .9999, One = 1.0001, kne = -.01, Ane = .01;
-function wy(e) {
+var wne = .9999, Tne = 1.0001, Ene = -.01, Dne = .01;
+function Dy(e) {
return e.max - e.min;
}
-function jne(e, t, n) {
+function One(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Ty(e, t, n, r = .5) {
- e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = wy(n) / wy(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Dne && e.scale <= One || isNaN(e.scale)) && (e.scale = 1), (e.translate >= kne && e.translate <= Ane || isNaN(e.translate)) && (e.translate = 0);
+function Oy(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Dy(n) / Dy(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= wne && e.scale <= Tne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ene && e.translate <= Dne || isNaN(e.translate)) && (e.translate = 0);
}
-function Ey(e, t, n, r) {
- Ty(e.x, t.x, n.x, r?.originX), Ty(e.y, t.y, n.y, r?.originY);
+function ky(e, t, n, r) {
+ Oy(e.x, t.x, n.x, r?.originX), Oy(e.y, t.y, n.y, r?.originY);
}
-function Dy(e, t, n, r = 0) {
- e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + wy(t);
+function Ay(e, t, n, r = 0) {
+ e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Dy(t);
}
-function Mne(e, t, n, r) {
- Dy(e.x, t.x, n.x, r?.x), Dy(e.y, t.y, n.y, r?.y);
+function kne(e, t, n, r) {
+ Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
}
-function Oy(e, t, n, r = 0) {
+function jy(e, t, n, r = 0) {
let i = r ? og(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + wy(t);
+ e.min = t.min - i, e.max = e.min + Dy(t);
}
-function ky(e, t, n, r) {
- Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
+function My(e, t, n, r) {
+ jy(e.x, t.x, n.x, r?.x), jy(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function Ay(e, t, n, r, i) {
- return e -= t, e = ny(e, 1 / n, r), i !== void 0 && (e = ny(e, 1 / i, r)), e;
+function Ny(e, t, n, r, i) {
+ return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
}
-function Nne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (Mh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+function Ane(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (Nh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = og(a.min, a.max, r);
- e === a && (s -= t), e.min = Ay(e.min, t, n, s, i), e.max = Ay(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = Ny(e.min, t, n, s, i), e.max = Ny(e.max, t, n, s, i);
}
-function jy(e, t, [n, r, i], a, o) {
- Nne(e, t[n], t[r], t[i], t.scale, a, o);
+function Py(e, t, [n, r, i], a, o) {
+ Ane(e, t[n], t[r], t[i], t.scale, a, o);
}
-var Pne = [
+var jne = [
"x",
"scaleX",
"originX"
-], Fne = [
+], Mne = [
"y",
"scaleY",
"originY"
];
-function My(e, t, n, r) {
- jy(e.x, t, Pne, n?.x, r?.x), jy(e.y, t, Fne, n?.y, r?.y);
+function Fy(e, t, n, r) {
+ Py(e.x, t, jne, n?.x, r?.x), Py(e.y, t, Mne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Ny = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Py = Ny("applewebkit/") && !Ny("chrome/") ? Math.round : jm;
-function Fy(e) {
- e.min = Py(e.min), e.max = Py(e.max);
+var Iy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ly = Iy("applewebkit/") && !Iy("chrome/") ? Math.round : Mm;
+function Ry(e) {
+ e.min = Ly(e.min), e.max = Ly(e.max);
}
-function Ine(e) {
- Fy(e.x), Fy(e.y);
+function Nne(e) {
+ Ry(e.x), Ry(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Iy = () => ({
+var zy = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Ly = () => ({
- x: Iy(),
- y: Iy()
-}), Ry = () => ({
+}), By = () => ({
+ x: zy(),
+ y: zy()
+}), Vy = () => ({
min: 0,
max: 0
-}), zy = () => ({
- x: Ry(),
- y: Ry()
+}), Hy = () => ({
+ x: Vy(),
+ y: Vy()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function By(e) {
+function Uy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Vy(e) {
- return By(e.x) && By(e.y);
+function Wy(e) {
+ return Uy(e.x) && Uy(e.y);
}
-function Hy(e, t) {
+function Gy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Lne(e, t) {
- return Hy(e.x, t.x) && Hy(e.y, t.y);
+function Pne(e, t) {
+ return Gy(e.x, t.x) && Gy(e.y, t.y);
}
-function Uy(e, t) {
+function Ky(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Wy(e, t) {
- return Uy(e.x, t.x) && Uy(e.y, t.y);
+function qy(e, t) {
+ return Ky(e.x, t.x) && Ky(e.y, t.y);
}
-function Gy(e) {
- return wy(e.x) / wy(e.y);
+function Jy(e) {
+ return Dy(e.x) / Dy(e.y);
}
-function Ky(e, t) {
+function Yy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Rne = class {
+var Fne = class {
constructor() {
this.members = [];
}
add(e) {
- Cm(this.members, e);
+ wm(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- r && r.isConnected !== !1 || n.snapshot || (wm(this.members, n), n.unmount());
+ r && r.isConnected !== !1 || n.snapshot || (Tm(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (wm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (Tm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -18884,22 +18888,22 @@ var Rne = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function qy(e, t) {
+function Xy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Jy = { correct: (e, t) => {
+var Zy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
- if (Nh.test(e)) e = parseFloat(e);
+ if (G.test(e)) e = parseFloat(e);
else return e;
}
- return `${qy(e, t.target.x)}% ${qy(e, t.target.y)}%`;
-} }, zne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Jy, { applyTo: /* @__PURE__ */ Ev.slice() }),
- borderTopLeftRadius: Jy,
- borderTopRightRadius: Jy,
- borderBottomLeftRadius: Jy,
- borderBottomRightRadius: Jy,
+ return `${Xy(e, t.target.x)}% ${Xy(e, t.target.y)}%`;
+} }, Ine = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Zy, { applyTo: /* @__PURE__ */ Ov.slice() }),
+ borderTopLeftRadius: Zy,
+ borderTopRightRadius: Zy,
+ borderBottomLeftRadius: Zy,
+ borderBottomRightRadius: Zy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = rg.parse(e);
if (i.length > 5) return r;
@@ -18910,13 +18914,13 @@ var Jy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Bne(e, t, n) {
+function Lne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Zv.length; e++) {
- let t = Zv[e], i = n[t];
+ for (let e = 0; e < $v.length; e++) {
+ let t = $v[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18924,62 +18928,62 @@ function Bne(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Yy(e) {
+function Qy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Vne = (e, t) => e.depth - t.depth, Hne = class {
+var Rne = (e, t) => e.depth - t.depth, zne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- Cm(this.children, e), this.isDirty = !0;
+ wm(this.children, e), this.isDirty = !0;
}
remove(e) {
- wm(this.children, e), this.isDirty = !0;
+ Tm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Vne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Rne), this.isDirty = !1, this.children.forEach(e);
}
-}, Xy = {
+}, $y = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Zy = [
+}, eb = [
"z",
"skew",
"skewZ"
-], Une = 1e3, Wne = 0;
-function Qy(e, t, n, r) {
+], Bne = 1e3, Vne = 0;
+function tb(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var $y = (e) => e.instance && J_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function eb(e) {
+var nb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function rb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
- let n = xv(t);
+ let n = Cv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
window.MotionCancelOptimisedAnimation(n, "transform", _g, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && eb(r);
+ r && !r.hasCheckedOptimisedAppear && rb(r);
}
-function tb(e) {
- if (e) return e.options.allowProjection === !1 ? tb(e.parent) : e.projection;
+function ib(e) {
+ if (e) return e.options.allowProjection === !1 ? ib(e.parent) : e.projection;
}
-function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(hy, {
- ...zne,
- ...hy
+function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(_y, {
+ ...Ine,
+ ..._y
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : tb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : ib(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && bne(o),
+ alwaysMeasureLayout: !!a || o && vne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18992,19 +18996,19 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Wne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Vne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(qne), this.nodes.forEach(tre), this.nodes.forEach(nre), this.nodes.forEach(Jne), gy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Wne), this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(Gne), vy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Hne());
+ this.root === this && (this.nodes = new zne());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pm()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Fm()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
this.eventHandlers.get(e)?.notify(...t);
@@ -19014,7 +19018,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Mv(t) && !xne(t), this.instance = t;
+ this.isSVG = Pv(t) && !yne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -19022,7 +19026,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = yne(i, 250), Xy.hasAnimatedSinceResize && (Xy.hasAnimatedSinceResize = !1, this.nodes.forEach(ab)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = _ne(i, 250), $y.hasAnimatedSinceResize && ($y.hasAnimatedSinceResize = !1, this.nodes.forEach(cb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19034,16 +19038,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || ore, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Wy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || rre, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !qy(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
- ...fv(a, "layout"),
+ ...pv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || ab(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || cb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
@@ -19060,7 +19064,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(rre), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(ere), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19071,11 +19075,11 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && eb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- $y(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && rb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ nb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, $y(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, nb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19085,22 +19089,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Xne), this.nodes.forEach(rb);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(qne), this.nodes.forEach(ob);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(ib);
+ this.nodes.forEach(sb);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(ere), this.nodes.forEach(Gne), this.nodes.forEach(Kne)) : this.nodes.forEach(ib), this.clearAllSnapshots();
- let e = ch.now();
- ah.delta = Tm(0, 1e3 / 60, e - ah.timestamp), ah.timestamp = e, ah.isProcessing = !0, yg.update.process(ah), yg.preRender.process(ah), yg.render.process(ah), ah.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yne), this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Hne), this.nodes.forEach(Une)) : this.nodes.forEach(sb), this.clearAllSnapshots();
+ let e = lh.now();
+ oh.delta = Em(0, 1e3 / 60, e - oh.timestamp), oh.timestamp = e, oh.isProcessing = !0, yg.update.process(oh), yg.preRender.process(oh), yg.render.process(oh), oh.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, py.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Yne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Kne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, _g.preRender(this.updateProjection, !1, !0));
@@ -19111,13 +19115,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !wy(this.snapshot.measuredBox.x) && !wy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Dy(this.snapshot.measuredBox.x) && !Dy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= zy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Hy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19137,13 +19141,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && $y(this);
- let t = this.projectionDelta && !Vy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Qv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && nb(this);
+ let t = this.projectionDelta && !Wy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || ey(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), Ine(n), {
+ return e && (n = this.removeTransform(n)), Nne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19153,42 +19157,42 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return zy();
+ if (!e) return Hy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(sre))) {
+ if (!(this.scroll?.wasRoot || this.path.some(ire))) {
let { scroll: e } = this.root;
- e && (cy(t.x, e.offset.x), cy(t.y, e.offset.y));
+ e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = zy();
- if (Sy(t, e), this.scroll?.wasRoot) return t;
+ let t = Hy();
+ if (Ty(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && Sy(t, e), cy(t.x, i.offset.x), cy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Ty(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || zy();
- Sy(a, e);
+ let a = n || Hy();
+ Ty(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (cy(a.x, -n.scroll.offset.x), cy(a.y, -n.scroll.offset.y)), Qv(n.latestValues) && dy(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Qv(this.latestValues) && dy(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = zy();
- Sy(t, e);
+ let t = Hy();
+ Ty(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Qv(n.latestValues)) continue;
+ if (!ey(n.latestValues)) continue;
let r;
- n.instance && (Xv(n.latestValues) && n.updateSnapshot(), r = zy(), Sy(r, n.measurePageBox())), My(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Hy(), Ty(r, n.measurePageBox())), Fy(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Qv(this.latestValues) && My(t, this.latestValues), t;
+ return ey(this.latestValues) && Fy(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19204,7 +19208,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ah.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== oh.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -19213,32 +19217,32 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = ah.timestamp;
+ this.resolvedRelativeTargetAt = oh.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = zy(), this.targetWithTransforms = zy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Mne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Sy(this.target, this.layout.layoutBox), ay(this.target, this.targetDelta)) : Sy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gy.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Hy(), this.targetWithTransforms = Hy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), kne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Ty(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : Ty(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), vy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Xv(this.parent.latestValues) || ey(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = zy(), this.relativeTargetOrigin = zy(), ky(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Sy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Hy(), this.relativeTargetOrigin = Hy(), My(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Ty(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ah.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === oh.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- Sy(this.layoutCorrected, this.layout.layoutBox);
+ Ty(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- une(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = zy());
+ cne(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Hy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Cy(this.prevProjectionDelta.x, this.projectionDelta.x), Cy(this.prevProjectionDelta.y, this.projectionDelta.y)), Ey(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Ky(this.projectionDelta.x, this.prevProjectionDelta.x) && Ky(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ey(this.prevProjectionDelta.x, this.projectionDelta.x), Ey(this.prevProjectionDelta.y, this.projectionDelta.y)), ky(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Yy(this.projectionDelta.x, this.prevProjectionDelta.x) && Yy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19250,22 +19254,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Ly(), this.projectionDelta = Ly(), this.projectionDeltaWithTransform = Ly();
+ this.prevProjectionDelta = By(), this.projectionDelta = By(), this.projectionDeltaWithTransform = By();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ly();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = By();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = zy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(are));
+ let s = Hy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(nre));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- ob(o.x, e.x, n), ob(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ky(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), ire(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Lne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= zy(), Sy(f, this.relativeTarget)), c && (this.animationValues = a, wne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ lb(o.x, e.x, n), lb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (My(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), tre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Pne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Hy(), Ty(f, this.relativeTarget)), c && (this.animationValues = a, xne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (vg(this.pendingAnimation), void 0), this.pendingAnimation = _g.update(() => {
- Xy.hasAnimatedSinceResize = !0, this.motionValue ||= uv(0), this.motionValue.jump(0, !1), this.currentAnimation = my(this.motionValue, [0, 1e3], {
+ $y.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19275,7 +19279,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), Mee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19284,20 +19288,20 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Une), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Bne), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && lb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && fb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || zy(), cb(i.x, t.x, e.x), cb(i.y, t.y, e.y);
+ i = this.target || Hy(), db(i.x, t.x, e.x), db(i.y, t.y, e.y);
}
- Sy(t, i), dy(t, r), Ey(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Ty(t, i), py(t, r), ky(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Rne()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Fne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19330,10 +19334,10 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!$v(t)) return;
+ if (!ty(t)) return;
let n = {};
- for (let t = 0; t < Zy.length; t++) Qy(Zy[t], e, n, this.animationValues);
- for (let t = 0; t < Zv.length; t++) Qy(Zv[t], e, n, this.animationValues);
+ for (let t = 0; t < eb.length; t++) tb(eb[t], e, n, this.animationValues);
+ for (let t = 0; t < $v.length; t++) tb($v[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19347,70 +19351,70 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = _y(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = _y(t?.pointerEvents) || ""), this.hasProjected && !Qv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Bne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Lne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in hy) {
+ for (let t in _y) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = hy[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? _y(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? yy(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(rb), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ob), this.root.sharedNodes.clear();
}
};
}
-function Gne(e) {
- e.updateLayout(), Zne(e);
+function Hne(e) {
+ e.updateLayout(), Jne(e);
}
-function Kne(e) {
+function Une(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Yy((e) => {
- let t = wy(r[e]);
+ if (i === "size") Qy((e) => {
+ let t = Dy(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- xy(r[e], a[e]);
- } else lb(i, t.layoutBox, n) && Yy((t) => {
- let n = wy(a[t]);
+ wy(r[e], a[e]);
+ } else fb(i, t.layoutBox, n) && Qy((t) => {
+ let n = Dy(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = Ly();
- Ey(c, n, t.layoutBox);
- let l = Ly();
- Ey(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Vy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = By();
+ ky(c, n, t.layoutBox);
+ let l = By();
+ ky(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Wy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = zy();
- ky(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = zy();
- ky(l, n, i.layoutBox, s), a && o(c, l), Wy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Hy();
+ My(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Hy();
+ My(l, n, i.layoutBox, s), a && o(c, l), qy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19424,65 +19428,65 @@ function Kne(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function qne(e) {
- gy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Wne(e) {
+ vy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function Jne(e) {
+function Gne(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Yne(e) {
+function Kne(e) {
e.clearSnapshot();
}
-function rb(e) {
+function ob(e) {
e.clearMeasurements();
}
-function Xne(e) {
+function qne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function ib(e) {
+function sb(e) {
e.isLayoutDirty = !1;
}
-function Zne(e) {
+function Jne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Yy((e) => cy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Qy((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Qne(e) {
+function Yne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function $ne(e) {
+function Xne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function ere(e) {
+function Zne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function ab(e) {
+function cb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function tre(e) {
+function Qne(e) {
e.resolveTargetDelta();
}
-function nre(e) {
+function $ne(e) {
e.calcProjection();
}
-function rre(e) {
+function ere(e) {
e.resetSkewAndRotation();
}
-function ob(e, t, n) {
+function lb(e, t, n) {
e.translate = og(t.translate, 0, n), e.scale = og(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function sb(e, t, n, r) {
+function ub(e, t, n, r) {
e.min = og(t.min, n.min, r), e.max = og(t.max, n.max, r);
}
-function ire(e, t, n, r) {
- sb(e.x, t.x, n.x, r), sb(e.y, t.y, n.y, r);
+function tre(e, t, n, r) {
+ ub(e.x, t.x, n.x, r), ub(e.y, t.y, n.y, r);
}
-function are(e) {
+function nre(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var ore = {
+var rre = {
duration: .45,
ease: [
.4,
@@ -19491,51 +19495,51 @@ var ore = {
1
]
};
-function cb(e, t, n) {
- e.max = wy(n) + (e.min = t.min);
+function db(e, t, n) {
+ e.max = Dy(n) + (e.min = t.min);
}
-function lb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !jne(Gy(t), Gy(n), .2);
+function fb(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !One(Jy(t), Jy(n), .2);
}
-function sre(e) {
+function ire(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function ub(e, t, n, r = { passive: !0 }) {
+function pb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var cre = /* @__PURE__ */ nb({
- attachResizeListener: (e, t) => ub(e, "resize", t),
- measureScroll: fne,
+var are = /* @__PURE__ */ ab({
+ attachResizeListener: (e, t) => pb(e, "resize", t),
+ measureScroll: une,
checkIsScrollRoot: () => !0
-}), db = { current: void 0 }, fb = /* @__PURE__ */ nb({
+}), mb = { current: void 0 }, hb = /* @__PURE__ */ ab({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!db.current) {
- let e = new cre({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), db.current = e;
+ if (!mb.current) {
+ let e = new are({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), mb.current = e;
}
- return db.current;
+ return mb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), pb = /* @__PURE__ */ new WeakMap();
+}), gb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function mb(e) {
+function _b(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function hb(e) {
+function vb(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var gb = [
+var yb = [
"animate",
"whileInView",
"whileFocus",
@@ -19543,29 +19547,29 @@ var gb = [
"whileTap",
"whileDrag",
"exit"
-], _b = /* @__PURE__ */ ["initial"].concat(gb);
+], bb = /* @__PURE__ */ ["initial"].concat(yb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function vb(e) {
- if (mb(e.animate)) return !0;
- for (let t = 0; t < _b.length; t++) if (hb(e[_b[t]])) return !0;
+function xb(e) {
+ if (_b(e.animate)) return !0;
+ for (let t = 0; t < bb.length; t++) if (vb(e[bb[t]])) return !0;
return !1;
}
-function yb(e) {
- return !!(vb(e) || e.variants);
+function Sb(e) {
+ return !!(xb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function lre(e, t, n) {
+function ore(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (vv(i)) e.addValue(r, i);
- else if (vv(a)) e.addValue(r, uv(i, { owner: e }));
+ if (bv(i)) e.addValue(r, i);
+ else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, uv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19573,17 +19577,17 @@ function lre(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var bb = { current: null }, xb = { current: !1 }, ure = typeof window < "u";
-function Sb() {
- if (xb.current = !0, ure) {
+var Cb = { current: null }, wb = { current: !1 }, sre = typeof window < "u";
+function Tb() {
+ if (wb.current = !0, sre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => bb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cb.current = e.matches;
e.addEventListener("change", t), t();
- } else bb.current = !1;
+ } else Cb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Cb = [
+var Eb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19591,35 +19595,35 @@ var Cb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], wb = {};
-function Tb(e) {
- wb = e;
+], Db = {};
+function Ob(e) {
+ Db = e;
}
-function dre() {
- return wb;
+function cre() {
+ return Db;
}
-var fre = class {
+var lre = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = D_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = O_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = ch.now();
+ let e = lh.now();
this.renderScheduledAt < e && (this.renderScheduledAt = e, _g.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = vb(t), this.isVariantNode = yb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = xb(t), this.isVariantNode = Sb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
- c[e] !== void 0 && vv(t) && t.set(c[e]);
+ c[e] !== void 0 && bv(t) && t.set(c[e]);
}
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, pb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, gb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19629,7 +19633,7 @@ var fre = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (xb.current || Sb(), this.shouldReduceMotion = bb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (wb.current || Tb(), this.shouldReduceMotion = Cb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection?.unmount(), vg(this.notifyUpdate), vg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
@@ -19647,24 +19651,24 @@ var fre = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && B_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new I_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && V_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new L_({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Fm(o)
+ duration: /* @__PURE__ */ Im(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = h_.has(e);
+ let n = g_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), J_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19675,8 +19679,8 @@ var fre = class {
}
updateFeatures() {
let e = "animation";
- for (e in wb) {
- let t = wb[e];
+ for (e in Db) {
+ let t = Db[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19689,7 +19693,7 @@ var fre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : zy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Hy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19699,14 +19703,14 @@ var fre = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && J_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Cb.length; t++) {
- let n = Cb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
+ for (let t = 0; t < Eb.length; t++) {
+ let n = Eb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = lre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = ore(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19736,27 +19740,27 @@ var fre = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = uv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = r_(e, t)), this.setBaseTarget(e, vv(n) ? n.get() : n)), vv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Om(n) || Am(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = i_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
}
on(e, t) {
- return (this.events[e] || (this.events[e] = new Pm())).add(t);
+ return (this.events[e] || (this.events[e] = new Fm())).add(t);
}
notify(e, ...t) {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- py.render(this.render);
+ hy.render(this.render);
}
-}, Eb = class extends fre {
+}, kb = class extends lre {
constructor() {
- super(...arguments), this.KeyframeResolver = Tv;
+ super(...arguments), this.KeyframeResolver = Dv;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19771,105 +19775,105 @@ var fre = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- vv(e) && (this.childSubscription = e.on("change", (e) => {
+ bv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Db(e, { style: t, vars: n }, r, i) {
+function Ab(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Ob(e, { layout: t, layoutId: n }) {
- return h_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hy[e] || e === "opacity");
+function jb(e, { layout: t, layoutId: n }) {
+ return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function kb(e, t, n) {
+function Mb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (vv(r[t]) || i && vv(i[t]) || Ob(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (bv(r[t]) || i && bv(i[t]) || jb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function pre(e) {
+function ure(e) {
return window.getComputedStyle(e);
}
-var mre = class extends Eb {
+var dre = class extends kb {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Db;
+ super(...arguments), this.type = "html", this.renderInstance = Ab;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (h_.has(t)) return this.projection?.isProjecting ? d_(t) : p_(e, t);
+ if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
{
- let n = pre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = ure(e), r = (fh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return fy(e, t);
+ return my(e, t);
}
build(e, t, n) {
- Uv(e, t, n.transformTemplate);
+ Gv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return kb(e, t, n);
+ return Mb(e, t, n);
}
-}, Ab = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Nb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function jb(e) {
+function Pb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var hre = (e) => (t) => Ab(t) && e(t, jb(t));
+var fre = (e) => (t) => Nb(t) && e(t, Pb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Mb(e, t, n, r) {
- return ub(e, t, hre(n), r);
+function Fb(e, t, n, r) {
+ return pb(e, t, fre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Nb = /* @__PURE__ */ new WeakMap(), Pb, Fb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Mv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], gre = /*@__PURE__*/ Fb("inline", "width", "offsetWidth"), _re = /*@__PURE__*/ Fb("block", "height", "offsetHeight");
-function vre({ target: e, borderBoxSize: t }) {
- Nb.get(e)?.forEach((n) => {
+var Ib = /* @__PURE__ */ new WeakMap(), Lb, Rb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], pre = /*@__PURE__*/ Rb("inline", "width", "offsetWidth"), mre = /*@__PURE__*/ Rb("block", "height", "offsetHeight");
+function hre({ target: e, borderBoxSize: t }) {
+ Ib.get(e)?.forEach((n) => {
n(e, {
get width() {
- return gre(e, t);
+ return pre(e, t);
},
get height() {
- return _re(e, t);
+ return mre(e, t);
}
});
});
}
-function yre(e) {
- e.forEach(vre);
+function gre(e) {
+ e.forEach(hre);
}
-function bre() {
- typeof ResizeObserver < "u" && (Pb = new ResizeObserver(yre));
+function _re() {
+ typeof ResizeObserver < "u" && (Lb = new ResizeObserver(gre));
}
-function xre(e, t) {
- Pb || bre();
- let n = Iv(e);
+function vre(e, t) {
+ Lb || _re();
+ let n = Rv(e);
return n.forEach((e) => {
- let n = Nb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Nb.set(e, n)), n.add(t), Pb?.observe(e);
+ let n = Ib.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Ib.set(e, n)), n.add(t), Lb?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Nb.get(e);
- n?.delete(t), n?.size || Pb?.unobserve(e);
+ let n = Ib.get(e);
+ n?.delete(t), n?.size || Lb?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Ib = /* @__PURE__ */ new Set(), Lb;
-function Sre() {
- Lb = () => {
+var zb = /* @__PURE__ */ new Set(), Bb;
+function yre() {
+ Bb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19878,26 +19882,26 @@ function Sre() {
return window.innerHeight;
}
};
- Ib.forEach((t) => t(e));
- }, window.addEventListener("resize", Lb);
+ zb.forEach((t) => t(e));
+ }, window.addEventListener("resize", Bb);
}
-function Cre(e) {
- return Ib.add(e), Lb || Sre(), () => {
- Ib.delete(e), !Ib.size && typeof Lb == "function" && (window.removeEventListener("resize", Lb), Lb = void 0);
+function bre(e) {
+ return zb.add(e), Bb || yre(), () => {
+ zb.delete(e), !zb.size && typeof Bb == "function" && (window.removeEventListener("resize", Bb), Bb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Rb(e, t) {
- return Pv(typeof e == "function" ? Cre(e) : xre(e, t));
+function Vb(e, t) {
+ return Iv(typeof e == "function" ? bre(e) : vre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var zb = (e, t) => Math.abs(e - t);
-function wre(e, t) {
- let n = zb(e.x, t.x), r = zb(e.y, t.y);
+var Hb = (e, t) => Math.abs(e - t);
+function xre(e, t) {
+ let n = Hb(e.x, t.x), r = Hb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
+var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19905,8 +19909,8 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ub(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Gb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = wre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Kb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = Jb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = xre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19914,45 +19918,45 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
let { point: r } = e;
this.history.push({
...r,
- timestamp: ch.now()
+ timestamp: lh.now()
});
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Ub(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Kb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Gb(e.type === "pointercancel" ? this.lastMoveEventInfo : Ub(t, this.transformPagePoint), this.history);
+ let a = Jb(e.type === "pointercancel" ? this.lastMoveEventInfo : Kb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Ab(e)) return;
+ }, !Nb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Ub(jb(e), this.transformPagePoint), { point: c } = s;
+ let s = Kb(Pb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
- timestamp: ch.now()
+ timestamp: lh.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Gb(s, this.history));
+ l && l(e, Jb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Mm(Mb(this.contextWindow, "pointermove", this.handlePointerMove, u), Mb(this.contextWindow, "pointerup", this.handlePointerUp, u), Mb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Nm(Fb(this.contextWindow, "pointermove", this.handlePointerMove, u), Fb(this.contextWindow, "pointerup", this.handlePointerUp, u), Fb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Bb.has(e.overflowX) || Bb.has(e.overflowY)) && this.scrollPositions.set(t, Hb(t)), t = t.parentElement;
+ (Ub.has(e.overflowX) || Ub.has(e.overflowY)) && this.scrollPositions.set(t, Gb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Hb(window)), this.removeScrollListeners = Mm(ub(window, "scroll", this.onElementScroll, { capture: !0 }), ub(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Gb(window)), this.removeScrollListeners = Nm(pb(window, "scroll", this.onElementScroll, { capture: !0 }), pb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Hb(e), i = {
+ let n = e === window, r = Gb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
@@ -19964,49 +19968,49 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
end() {
this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), vg(this.updatePoint);
}
-}, Hb = (e) => e === window ? {
+}, Gb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Ub(e, t) {
+function Kb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Wb(e, t) {
+function qb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Gb({ point: e }, t) {
+function Jb({ point: e }, t) {
return {
point: e,
- delta: Wb(e, Kb(t)),
- offset: Wb(e, Tre(t)),
- velocity: Ere(t, .1)
+ delta: qb(e, Yb(t)),
+ offset: qb(e, Sre(t)),
+ velocity: Cre(t, .1)
};
}
-function Tre(e) {
+function Sre(e) {
return e[0];
}
-function Kb(e) {
+function Yb(e) {
return e[e.length - 1];
}
-function Ere(e, t) {
+function Cre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Kb(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t)));) n--;
+ let n = e.length - 1, r = null, i = Yb(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Im(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ Im(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Im(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Lm(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -20018,95 +20022,95 @@ function Ere(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var Dre = /* @__PURE__ */ new Set([
+var wre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Ore(e) {
- return Dre.has(e.tagName) || e.isContentEditable === !0;
+function Tre(e) {
+ return wre.has(e.tagName) || e.isContentEditable === !0;
}
-var kre = /* @__PURE__ */ new Set([
+var Ere = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Are(e) {
- return kre.has(e.tagName) || e.isContentEditable === !0;
+function Dre(e) {
+ return Ere.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var qb = {
+var Xb = {
x: !1,
y: !1
};
-function Jb() {
- return qb.x || qb.y;
+function Zb() {
+ return Xb.x || Xb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function jre(e) {
- return e === "x" || e === "y" ? qb[e] ? null : (qb[e] = !0, () => {
- qb[e] = !1;
- }) : qb.x || qb.y ? null : (qb.x = qb.y = !0, () => {
- qb.x = qb.y = !1;
+function Ore(e) {
+ return e === "x" || e === "y" ? Xb[e] ? null : (Xb[e] = !0, () => {
+ Xb[e] = !1;
+ }) : Xb.x || Xb.y ? null : (Xb.x = Xb.y = !0, () => {
+ Xb.x = Xb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Mre(e, { min: t, max: n }, r) {
+function kre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? og(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? og(n, e, r.max) : Math.min(e, n)), e;
}
-function Yb(e, t, n) {
+function Qb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Nre(e, { top: t, left: n, bottom: r, right: i }) {
+function Are(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Yb(e.x, n, i),
- y: Yb(e.y, t, r)
+ x: Qb(e.x, n, i),
+ y: Qb(e.y, t, r)
};
}
-function Xb(e, t) {
+function $b(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function Pre(e, t) {
+function jre(e, t) {
return {
- x: Xb(e.x, t.x),
- y: Xb(e.y, t.y)
+ x: $b(e.x, t.x),
+ y: $b(e.y, t.y)
};
}
-function Fre(e, t) {
- let n = .5, r = wy(e), i = wy(t);
- return i > r ? n = /* @__PURE__ */ Nm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Nm(e.min, e.max - i, t.min)), Tm(0, 1, n);
+function Mre(e, t) {
+ let n = .5, r = Dy(e), i = Dy(t);
+ return i > r ? n = /* @__PURE__ */ Pm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Pm(e.min, e.max - i, t.min)), Em(0, 1, n);
}
-function Ire(e, t) {
+function Nre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var Zb = .35;
-function Lre(e = Zb) {
- return e === !1 ? e = 0 : e === !0 && (e = Zb), {
- x: Qb(e, "left", "right"),
- y: Qb(e, "top", "bottom")
+var ex = .35;
+function Pre(e = ex) {
+ return e === !1 ? e = 0 : e === !0 && (e = ex), {
+ x: tx(e, "left", "right"),
+ y: tx(e, "top", "bottom")
};
}
-function Qb(e, t, n) {
+function tx(e, t, n) {
return {
- min: $b(e, t),
- max: $b(e, n)
+ min: nx(e, t),
+ max: nx(e, n)
};
}
-function $b(e, t) {
+function nx(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function ex(e) {
+function rx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20115,12 +20119,12 @@ function ex(e) {
}
return t;
}
-var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
+var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = zy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Hy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20128,25 +20132,25 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = jre(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = Ore(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Yy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Qy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (ph(t) && (t = mv(t, this.visualElement.current) || 0), Nh.test(t)) t = parseFloat(t);
- else if (Mh.test(t)) {
+ if (mh(t) && (t = hv(t, this.visualElement.current) || 0), G.test(t)) t = parseFloat(t);
+ else if (Nh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = wy(n) * (parseFloat(t) / 100));
+ n && (t = Dy(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), yv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Vre(o), this.currentDirection === null) return;
+ if (this.currentDirection = Rre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && _g.update(() => a(e, t), !1, !0);
@@ -20159,7 +20163,7 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Vb(e, {
+ this.panSession = new Wb(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20191,26 +20195,26 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ix(e, n, this.currentDirection)) return;
+ if (!t || !sx(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Mre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = kre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- tx(e) ? this.constraints && this.scroll === ex(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Nre(r.layoutBox, e) : !1, this.elastic = Lre(t), i !== this.constraints && !tx(e) && r && this.constraints && !this.hasMutatedConstraints && Yy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ire(r.layoutBox[e], this.constraints[e]));
+ ix(e) ? this.constraints && this.scroll === rx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Are(r.layoutBox, e) : !1, this.elastic = Pre(t), i !== this.constraints && !ix(e) && r && this.constraints && !this.hasMutatedConstraints && Qy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Nre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!tx(e)) return !1;
- let n = nx(e), { projection: r } = this.visualElement;
+ if (!ix(e)) return !1;
+ let n = ax(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = ex(r);
- let i = dne(n, r.root, this.visualElement.getTransformPagePoint()), a = Pre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = rx(r);
+ let i = lne(n, r.root, this.visualElement.getTransformPagePoint()), a = jre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(cne(a));
- this.hasMutatedConstraints = !!e, e && (a = Jv(e));
+ let e = t(one(a));
+ this.hasMutatedConstraints = !!e, e && (a = Xv(e));
}
return a;
}
@@ -20222,13 +20226,13 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && ix(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && sx(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Yy((e) => {
- if (!ix(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Qy((e) => {
+ if (!sx(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20246,10 +20250,10 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return yv(this.visualElement, e), n.start(pv(e, n, 0, t, this.visualElement, !1));
+ return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Yy((e) => this.getAxisMotionValue(e).stop());
+ Qy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20260,8 +20264,8 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Yy((e) => {
- if (!ix(e, n, this.currentDirection)) return;
+ Qy((e) => {
+ if (!sx(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - og(r, o, .5));
});
@@ -20269,41 +20273,41 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!tx(t) || !n || !this.constraints) return;
+ if (!ix(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Yy((e) => {
+ Qy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Fre({
+ i[e] = Mre({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Yy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Qy((t) => {
let n = this.getAxisMotionValue(t);
- if (!ix(t, e, null) || !n.get()) return;
+ if (!sx(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(og(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Rre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Mb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Are(i);
+ Fre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Fb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Dre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = tx(t) && nx(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Bre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = ix(t) && ax(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Lre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i.layout || (i.root?.updateScroll(), i.updateLayout()), _g.read(r);
- let o = ub(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Yy((t) => {
- if (!ix(t, this.getProps().drag, this.currentDirection)) return;
+ let o = pb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Qy((t) => {
+ if (!sx(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20313,7 +20317,7 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = Zb, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = ex, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20321,32 +20325,32 @@ var Rre = /* @__PURE__ */ new WeakMap(), zre = class {
};
}
};
-function tx(e) {
+function ix(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var nx = (e) => "current" in e ? e.current : e;
-function rx(e) {
+var ax = (e) => "current" in e ? e.current : e;
+function ox(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Bre(e, t, n) {
- let r = Rb(e, rx(n)), i = Rb(t, rx(n));
+function Lre(e, t, n) {
+ let r = Vb(e, ox(n)), i = Vb(t, ox(n));
return () => {
r(), i();
};
}
-function ix(e, t, n) {
+function sx(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Vre(e, t = 10) {
+function Rre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function ax(e, t) {
- let n = Iv(e), r = new AbortController();
+function cx(e, t) {
+ let n = Rv(e), r = new AbortController();
return [
n,
{
@@ -20354,16 +20358,16 @@ function ax(e, t) {
...t,
signal: r.signal
},
- Pv(() => r.abort())
+ Iv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Hre(e) {
- return !(e.pointerType === "touch" || Jb());
+function zre(e) {
+ return !(e.pointerType === "touch" || Zb());
}
-function Ure(e, t, n = {}) {
- t = Fv(t);
- let [r, i, a] = ax(e, n);
+function Bre(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = cx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20377,7 +20381,7 @@ function Ure(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Hre(n)) return;
+ if (!zre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20385,71 +20389,71 @@ function Ure(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var ox = (e, t) => t ? e === t || ox(e, t.parentElement) : !1, sx = /* @__PURE__ */ new WeakSet();
+var lx = (e, t) => t ? e === t || lx(e, t.parentElement) : !1, ux = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function cx(e) {
+function dx(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function lx(e, t) {
+function fx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Wre = (e, t) => {
- let n = !1, r = cx(() => {
- sx.has(e) || (n = !0, lx(e, "down"));
- }), i = cx(() => {
- n && (n = !1, lx(e, "up"));
+var Vre = (e, t) => {
+ let n = !1, r = dx(() => {
+ ux.has(e) || (n = !0, fx(e, "down"));
+ }), i = dx(() => {
+ n && (n = !1, fx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && lx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && fx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function ux(e) {
- return Ab(e) && !Jb();
+function px(e) {
+ return Nb(e) && !Zb();
}
-var dx = /* @__PURE__ */ new WeakSet();
-function Gre(e, t, n = {}) {
- t = Fv(t);
- let [r, i, a] = ax(e, n), o = (e) => {
+var mx = /* @__PURE__ */ new WeakSet();
+function Hre(e, t, n = {}) {
+ t = Lv(t);
+ let [r, i, a] = cx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!ux(e) || dx.has(e)) return;
- sx.add(r), n.stopPropagation && dx.add(e);
+ if (!px(e) || mx.has(e)) return;
+ ux.add(r), n.stopPropagation && mx.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), sx.has(r) && sx.delete(r), ux(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), ux.has(r) && ux.delete(r), px(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || ox(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || lx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), jv(e) && (e.addEventListener("focus", () => Wre(e, i), i), !Ore(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Nv(e) && (e.addEventListener("focus", () => Vre(e, i), i), !Tre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function fx(e, t) {
+function hx(e, t) {
let n = window.getComputedStyle(e);
- return O_(t) ? n.getPropertyValue(t) : n[t];
+ return k_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var px = class {
+var gx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, mx = /* @__PURE__ */ new Set([
+}, _x = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20473,58 +20477,58 @@ var px = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), hx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), vx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Kre(e, t, n, r) {
- Db(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(mx.has(n) ? n : Hv(n), t.attrs[n]);
+function Ure(e, t, n, r) {
+ Ab(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(_x.has(n) ? n : Wv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function gx(e, t, n) {
- let r = kb(e, t, n);
- for (let n in e) if (n !== "children" && (vv(e[n]) || vv(t[n]))) {
- let t = m_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function yx(e, t, n) {
+ let r = Mb(e, t, n);
+ for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
+ let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var qre = class extends Eb {
+var Wre = class extends kb {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = zy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Hy;
}
getBaseTargetFromProps(e, t) {
- return h_.has(t) ? super.getBaseTargetFromProps(e, t) ?? d_(t) : e[t];
+ return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
}
getDefaultValue(e) {
- return h_.has(e) ? this.latestValues[e] ?? d_(e) : void 0;
+ return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (h_.has(t)) {
- let e = n_(t);
+ if (g_.has(t)) {
+ let e = r_(t);
return e && e.default || 0;
}
- if (Wv.includes(t)) {
+ if (Kv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = mx.has(t) ? t : Hv(t), e.getAttribute(t);
+ return t = _x.has(t) ? t : Wv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return gx(e, t, n);
+ return yx(e, t, n);
}
build(e, t, n) {
- Gv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Kre(e, t, n, r);
+ Ure(e, t, n, r);
}
mount(e) {
- this.isSVGTag = hx(e.tagName), super.mount(e);
+ this.isSVGTag = vx(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function _x(e, t) {
+function bx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20532,18 +20536,18 @@ function _x(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Jre = [...gb].reverse(), vx = (e) => e?.out === !0 ? e : e?.out;
-function Yre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Bte(e, t, n))), n = yx(), r = !0, i = !1;
+var Gre = [...yb].reverse(), xx = (e) => e?.out === !0 ? e : e?.out;
+function Kre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Rte(e, t, n))), n = Sx(), r = !0, i = !1;
function a(a) {
- let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && hv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && vx(f(l ?? (g && g.props.initial))?.transition);
- if (Jre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? hb(f) || f === !1 ? f : void 0 : l, y = hb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || mb(v) || typeof v == "boolean") return;
+ let _ = u && xx(f(l ?? (g && g.props.initial))?.transition);
+ if (Gre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? vb(f) || f === !1 ? f : void 0 : l, y = vb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || _b(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20551,14 +20555,14 @@ function Yre(e) {
};
return;
}
- let S = Xre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = qre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
- let { transition: r, transitionEnd: i, ...a } = hv(e, n, gv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = _v(e, n, vv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = vx(r) || D;
+ }, D = xx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20566,7 +20570,7 @@ function Yre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !_x(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !bx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20581,8 +20585,8 @@ function Yre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = hv(s, n)?.transition?.delayChildren;
- r.delay = ov(s.enteringChildren, e, t);
+ let t = _v(s, n)?.transition?.delayChildren;
+ r.delay = sv(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20599,7 +20603,7 @@ function Yre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !vv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20620,16 +20624,16 @@ function Yre(e) {
},
getState: () => n,
reset: () => {
- n = yx(), i = !0;
+ n = Sx(), i = !0;
}
};
}
-function Xre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !_x(t, e) : !1;
+function qre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !bx(t, e) : !1;
}
-function yx() {
+function Sx() {
let e = {};
- for (let t of gb) e[t] = {
+ for (let t of yb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20639,55 +20643,55 @@ function yx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var bx = /* @__PURE__ */ (0, F.createContext)({
+var Cx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function xx(e, t) {
+function wx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Zre(...e) {
+function Jre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = xx(e, t);
+ let r = wx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : xx(e[t], null);
+ typeof n == "function" ? n() : wx(e[t], null);
}
};
};
}
-function Qre(...e) {
- return F.useCallback(Zre(...e), e);
+function Yre(...e) {
+ return F.useCallback(Jre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Sx = (e) => {
+var Tx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Cx = (e) => {
+}, Ex = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = Sx(r);
+ let [a, o] = Tx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Sx(e.offsetParent);
+ let [i, a] = Tx(e.offsetParent);
return [t / i, n / a];
-}, $re = class extends F.Component {
+}, Xre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (jv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = jv(e) && e.offsetWidth || 0, r = jv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Cx(t);
+ if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Ex(t);
}
return null;
}
@@ -20696,7 +20700,7 @@ var Sx = (e) => {
return this.props.children;
}
};
-function eie({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20705,7 +20709,7 @@ function eie({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(bx), d = Qre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Cx), d = Yre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20718,10 +20722,10 @@ function eie({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return py.setup(() => {
- let [e, t] = Cx(r);
+ return hy.setup(() => {
+ let [e, t] = Ex(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), py.read(() => {
+ }), hy.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20729,7 +20733,7 @@ function eie({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)($re, {
+ }, [t]), (0, I.jsx)(Xre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20738,9 +20742,9 @@ function eie({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var tie = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = bm(nie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
- xm(() => {
+var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = xm($re), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+ Sm(() => {
p.current = n, m.current = r;
});
let h = !0, g = (0, F.useMemo)(() => (h = !1, {
@@ -20765,7 +20769,7 @@ var tie = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(eie, {
+ }, [n]), e = (0, I.jsx)(Zre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20773,17 +20777,17 @@ var tie = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
root: l,
popNode: f,
children: e
- }), (0, I.jsx)(Sm.Provider, {
+ }), (0, I.jsx)(Cm.Provider, {
value: g,
children: e
});
};
-function nie() {
+function $re() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function wx(e = !0) {
- let t = (0, F.useContext)(Sm);
+function Dx(e = !0) {
+ let t = (0, F.useContext)(Cm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
(0, F.useEffect)(() => {
@@ -20796,24 +20800,24 @@ function wx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Tx() {
- return rie((0, F.useContext)(Sm));
+function Ox() {
+ return eie((0, F.useContext)(Cm));
}
-function rie(e) {
+function eie(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Ex = (e) => e.key || "";
-function Dx(e) {
+var kx = (e) => e.key || "";
+function Ax(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = wx(o), f = (0, F.useMemo)(() => Dx(e), [e]), p = o && !u ? [] : f.map(Ex), m = (0, F.useRef)(!0), h = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
- xm(() => {
+var jx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Dx(o), f = (0, F.useMemo)(() => Ax(e), [e]), p = o && !u ? [] : f.map(kx), m = (0, F.useRef)(!0), h = xm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+ Sm(() => {
o && !u && !y.length && d?.();
}, [
u,
@@ -20825,10 +20829,10 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
(0, F.useEffect)(() => () => {
let e = x.current;
x.current = void 0, e?.();
- }, [y]), xm(() => {
+ }, [y]), Sm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Ex(y[e]);
+ let t = kx(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20840,15 +20844,15 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Ex(n));
+ let r = p.indexOf(kx(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Ex(e))) ? e = f : a === "wait" && (e = S), b(Dx(e)), v(f), null;
+ return S.every((e) => h.get(kx(e))) ? e = f : a === "wait" && (e = S), b(Ax(e)), v(f), null;
}
- let { forceRender: C } = (0, F.useContext)(ym);
+ let { forceRender: C } = (0, F.useContext)(bm);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Ex(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(tie, {
+ let _ = kx(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(Qre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20869,8 +20873,8 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, kx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Ax = {
- animation: ["variants", ...gb],
+}, Mx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Nx = {
+ animation: ["variants", ...yb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20897,32 +20901,32 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, jx = !1;
-function iie() {
- if (jx) return;
+}, Px = !1;
+function tie() {
+ if (Px) return;
let e = {};
- for (let t in Ax) e[t] = { isEnabled: (e) => Ax[t].some((t) => !!e[t]) };
- Tb(e), jx = !0;
+ for (let t in Nx) e[t] = { isEnabled: (e) => Nx[t].some((t) => !!e[t]) };
+ Ob(e), Px = !0;
}
-function Mx() {
- return iie(), dre();
+function Fx() {
+ return tie(), cre();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function aie(e) {
- let t = Mx();
+function nie(e) {
+ let t = Fx();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Tb(t);
+ Ob(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function oie({ children: e, ...t }) {
- let n = (0, F.useContext)(bx);
+function rie({ children: e, ...t }) {
+ let n = (0, F.useContext)(Cx);
t = {
...n,
...t
- }, t.transition = dv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
+ }, t.transition = fv(t.transition, n.transition), t.isStatic = xm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20930,77 +20934,77 @@ function oie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(bx.Provider, {
+ return (0, I.jsx)(Cx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Nx = /* @__PURE__ */ (0, F.createContext)({});
+var Ix = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function sie(e, t) {
- if (vb(e)) {
+function iie(e, t) {
+ if (xb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || hb(t) ? t : void 0,
- animate: hb(n) ? n : void 0
+ initial: t === !1 || vb(t) ? t : void 0,
+ animate: vb(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function cie(e) {
- let { initial: t, animate: n } = sie(e, (0, F.useContext)(Nx));
+function aie(e) {
+ let { initial: t, animate: n } = iie(e, (0, F.useContext)(Ix));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Px(t), Px(n)]);
+ }), [Lx(t), Lx(n)]);
}
-function Px(e) {
+function Lx(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Fx = () => ({
+var Rx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Ix(e, t, n) {
- for (let r in t) !vv(t[r]) && !Ob(r, n) && (e[r] = t[r]);
+function zx(e, t, n) {
+ for (let r in t) !bv(t[r]) && !jb(r, n) && (e[r] = t[r]);
}
-function lie({ transformTemplate: e }, t) {
+function oie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Fx();
- return Uv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Rx();
+ return Gv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function uie(e, t) {
+function sie(e, t) {
let n = e.style || {}, r = {};
- return Ix(r, n, e), Object.assign(r, lie(e, t)), r;
+ return zx(r, n, e), Object.assign(r, oie(e, t)), r;
}
-function die(e, t) {
- let n = {}, r = uie(e, t);
+function cie(e, t) {
+ let n = {}, r = sie(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Lx = () => ({
- ...Fx(),
+var Bx = () => ({
+ ...Rx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function fie(e, t, n, r) {
+function lie(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Lx();
- return Gv(n, t, hx(r), e.transformTemplate, e.style), {
+ let n = Bx();
+ return qv(n, t, vx(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Ix(t, e.style, e), {
+ return zx(t, e.style, e), {
...i,
style: {
...t,
@@ -21011,21 +21015,21 @@ function fie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var pie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Rx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || pie.has(e);
+var uie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Vx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || uie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function mie(e, t) {
- return e.startsWith("on") ? !Rx(e) : t?.(e) ?? !Rx(e);
+function die(e, t) {
+ return e.startsWith("on") ? !Vx(e) : t?.(e) ?? !Vx(e);
}
-function hie(e, t, n, r) {
+function fie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || vv(e[a]) || (mie(a, r) || n === !0 && Rx(a) || !t && !Rx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || (die(a, r) || n === !0 && Vx(a) || !t && !Vx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var gie = [
+var pie = [
"animate",
"circle",
"defs",
@@ -21053,40 +21057,40 @@ var gie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function zx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(gie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Hx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(pie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function _ie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? zx(e) ? fie : die)(t, r, i, e), l = hie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function mie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Hx(e) ? lie : cie)(t, r, i, e), l = fie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => vv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function vie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function hie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: yie(n, r, i, e),
+ latestValues: gie(n, r, i, e),
renderState: t()
};
}
-function yie(e, t, n, r) {
+function gie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = _y(a[e]);
- let { initial: o, animate: s } = e, c = vb(e), l = yb(e);
+ for (let e in a) i[e] = yy(a[e]);
+ let { initial: o, animate: s } = e, c = xb(e), l = Sb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !mb(d)) {
+ if (d && typeof d != "boolean" && !_b(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
- let r = Mte(e, t[n]);
+ let r = gv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21103,18 +21107,18 @@ function yie(e, t, n, r) {
}
return i;
}
-var Bx = (e) => (t, n) => {
- let r = (0, F.useContext)(Nx), i = (0, F.useContext)(Sm), a = () => vie(e, t, r, i);
- return n ? a() : bm(a);
-}, bie = /*@__PURE__*/ Bx({
- scrapeMotionValuesFromProps: kb,
- createRenderState: Fx
-}), xie = /*@__PURE__*/ Bx({
- scrapeMotionValuesFromProps: gx,
- createRenderState: Lx
-}), Sie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+var Ux = (e) => (t, n) => {
+ let r = (0, F.useContext)(Ix), i = (0, F.useContext)(Cm), a = () => hie(e, t, r, i);
+ return n ? a() : xm(a);
+}, _ie = /*@__PURE__*/ Ux({
+ scrapeMotionValuesFromProps: Mb,
+ createRenderState: Rx
+}), vie = /*@__PURE__*/ Ux({
+ scrapeMotionValuesFromProps: yx,
+ createRenderState: Bx
+}), yie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function Cie(e, t, n) {
+function bie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21132,10 +21136,10 @@ function Cie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Vx = /* @__PURE__ */ (0, F.createContext)({});
+var Wx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function wie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Nx), s = (0, F.useContext)(kx), c = (0, F.useContext)(Sm), l = (0, F.useContext)(bx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function xie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Ix), s = (0, F.useContext)(Mx), c = (0, F.useContext)(Cm), l = (0, F.useContext)(Cx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21146,14 +21150,14 @@ function wie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Vx);
+ let m = f.current, h = (0, F.useContext)(Wx);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
- let g = n[bv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
- return xm(() => {
+ let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ return Sm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
- }, []), xm(() => {
+ }, []), Sm(() => {
p.current = !0, m && (window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), _.current && m.animationState && m.animationState.animateChanges());
}), (0, F.useEffect)(() => {
m && (!_.current && m.animationState && m.animationState.animateChanges(), _.current &&= (queueMicrotask(() => {
@@ -21162,46 +21166,46 @@ function wie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Hx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && aie(r);
- let a = n ? n === "svg" : zx(e), o = a ? xie : bie;
+function Gx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && nie(r);
+ let a = n ? n === "svg" : Hx(e), o = a ? vie : _ie;
function s(n, s) {
- let c, l = Tie(n);
- bm(() => !!db.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = Sie(n);
+ xm(() => !!mb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(bx),
+ ...(0, F.useContext)(Cx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = cie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = aie(n), m = o(n, d);
if (!d && typeof window < "u") {
- Eie(u, r);
- let t = Die(u);
- p.visualElement = wie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ Cie(u, r);
+ let t = wie(u);
+ p.visualElement = xie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Nx.Provider, {
+ return (0, I.jsxs)(Ix.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, _ie(e, n, Cie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, mie(e, n, bie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[Sie] = e, c;
+ return c[yie] = e, c;
}
-function Tie({ layoutId: e }) {
- let t = (0, F.useContext)(ym).id;
+function Sie({ layoutId: e }) {
+ let t = (0, F.useContext)(bm).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Eie(e, t) {
- (0, F.useContext)(kx).strict;
+function Cie(e, t) {
+ (0, F.useContext)(Mx).strict;
}
-function Die(e) {
- let { drag: t, layout: n } = Mx();
+function wie(e) {
+ let { drag: t, layout: n } = Fx();
if (!t && !n) return {};
let r = {
...t,
@@ -21214,19 +21218,19 @@ function Die(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Oie(e, t) {
- if (typeof Proxy > "u") return Hx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Hx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Hx(a, void 0, e, t)), n.get(a)) });
+function Tie(e, t) {
+ if (typeof Proxy > "u") return Gx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Gx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Gx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection: e !== F.Fragment }), Aie = class extends px {
+var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection: e !== F.Fragment }), Die = class extends gx {
constructor(e) {
- super(e), e.animationState ||= Yre(e);
+ super(e), e.animationState ||= Kre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- mb(e) && (this.unmountControls = e.subscribe(this.node));
+ _b(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21237,11 +21241,11 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, jie = 0, Mie = {
- animation: { Feature: Aie },
- exit: { Feature: class extends px {
+}, Oie = 0, kie = {
+ animation: { Feature: Die },
+ exit: { Feature: class extends gx {
constructor() {
- super(...arguments), this.id = jie++;
+ super(...arguments), this.id = Oie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21252,7 +21256,7 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = hv(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, n.reset(), n.animateChanges();
@@ -21271,13 +21275,13 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
}
unmount() {}
} }
-}, Nie = class extends px {
+}, Aie = class extends gx {
constructor(e) {
- super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new zre(e);
+ super(e), this.removeGroupControls = Mm, this.removeListeners = Mm, this.controls = new Ire(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || jm;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Mm;
}
update() {
let { dragControls: e, drag: t } = this.node.getProps(), { dragControls: n, drag: r } = this.node.prevProps || {};
@@ -21286,14 +21290,14 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Ux = (e) => (t, n) => {
+}, Kx = (e) => (t, n) => {
e && _g.update(() => e(t, n), !1, !0);
-}, Pie = class extends px {
+}, jie = class extends gx {
constructor() {
- super(...arguments), this.removePointerDownListener = jm;
+ super(...arguments), this.removePointerDownListener = Mm;
}
onPointerDown(e) {
- this.session = new Vb(e, this.createPanHandlers(), {
+ this.session = new Wb(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21301,16 +21305,16 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Ux(e),
- onStart: Ux(t),
- onMove: Ux(n),
+ onSessionStart: Kx(e),
+ onStart: Kx(t),
+ onMove: Kx(n),
onEnd: (e, t) => {
delete this.session, r && _g.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Mb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Fb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21318,12 +21322,12 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Wx = !1, Gx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, qx = !1, Jx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Kx = (e, t) => {
+}), Yx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21332,33 +21336,33 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Fie = class extends F.Component {
+}, Mie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Wx && i.root.didUpdate(), i.options.layoutId !== r && Kx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), qx && i.root.didUpdate(), i.options.layoutId !== r && Yx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Gx(this.props),
+ ...Jx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Xy.hasEverUpdated = !0;
+ })), $y.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Kx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Yx(o, n)), o.setOptions({
...o.options,
- ...Gx(this.props)
- }), Wx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
+ ...Jx(this.props)
+ }), qx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), py.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Wx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ qx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21367,39 +21371,39 @@ var kie = (e, t) => t.isSVG ?? zx(e) ? new qre(t) : new mre(t, { allowProjection
return null;
}
};
-function qx(e) {
- let [t, n] = wx(), r = (0, F.useContext)(ym);
- return (0, I.jsx)(Fie, {
+function Xx(e) {
+ let [t, n] = Dx(), r = (0, F.useContext)(bm);
+ return (0, I.jsx)(Mie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Vx),
+ switchLayoutGroup: (0, F.useContext)(Wx),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Iie = {
- pan: { Feature: Pie },
+var Nie = {
+ pan: { Feature: jie },
drag: {
- Feature: Nie,
- ProjectionNode: fb,
- MeasureLayout: qx
+ Feature: Aie,
+ ProjectionNode: hb,
+ MeasureLayout: Xx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Jx(e, t, n, r) {
+function Zx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && _g.postRender(() => o(t, jb(t)));
+ o && _g.postRender(() => o(t, Pb(t)));
}
-var Lie = class extends px {
+var Pie = class extends gx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Ure(e, (e, t) => (Jx(this.node, t, "Hover", "Start"), (e) => Jx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Bre(e, (e, t) => (Zx(this.node, t, "Hover", "Start"), (e) => Zx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Rie = class extends px {
+}, Fie = class extends gx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21416,51 +21420,51 @@ var Lie = class extends px {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Mm(ub(this.node.current, "focus", () => this.onFocus()), ub(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Nm(pb(this.node.current, "focus", () => this.onFocus()), pb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Yx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Jx(e, t, "Tap", n);
+function Qx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Zx(e, t, "Tap", n);
}
-var zie = class extends px {
+var Iie = class extends gx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Gre(e, (e, t) => (Yx(this.node, t, "Start"), (e, { success: t }) => Yx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Hre(e, (e, t) => (Qx(this.node, t, "Start"), (e, { success: t }) => Qx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Xx = /* @__PURE__ */ new WeakMap(), Zx = /* @__PURE__ */ new WeakMap(), Bie = (e) => {
- let t = Xx.get(e.target);
+}, $x = /* @__PURE__ */ new WeakMap(), eS = /* @__PURE__ */ new WeakMap(), Lie = (e) => {
+ let t = $x.get(e.target);
t && t(e);
-}, Vie = (e) => {
- e.forEach(Bie);
+}, Rie = (e) => {
+ e.forEach(Lie);
};
-function Hie({ root: e, ...t }) {
+function zie({ root: e, ...t }) {
let n = e || document;
- Zx.has(n) || Zx.set(n, {});
- let r = Zx.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Vie, {
+ eS.has(n) || eS.set(n, {});
+ let r = eS.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Rie, {
root: e,
...t
})), r[i];
}
-function Uie(e, t, n) {
- let r = Hie(t);
- return Xx.set(e, n), r.observe(e), () => {
- Xx.delete(e), r.unobserve(e);
+function Bie(e, t, n) {
+ let r = zie(t);
+ return $x.set(e, n), r.observe(e), () => {
+ $x.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var Wie = {
+var Vie = {
some: 0,
all: 1
-}, Gie = class extends px {
+}, Hie = class extends gx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21469,7 +21473,7 @@ var Wie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : Wie[r]
+ threshold: typeof r == "number" ? r : Vie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21477,7 +21481,7 @@ var Wie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Uie(this.node.current, a, o);
+ this.stopObserver = Bie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21489,81 +21493,81 @@ var Wie = {
"amount",
"margin",
"root"
- ].some(Kie(e, t)) && this.startObserver();
+ ].some(Uie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Kie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Uie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var qie = /*@__PURE__*/ Oie(/* @__PURE__ */ Object.assign({}, Mie, {
- inView: { Feature: Gie },
- tap: { Feature: zie },
- focus: { Feature: Rie },
- hover: { Feature: Lie }
-}, Iie, { layout: {
- ProjectionNode: fb,
- MeasureLayout: qx
-} }), kie);
+var Wie = /*@__PURE__*/ Tie(/* @__PURE__ */ Object.assign({}, kie, {
+ inView: { Feature: Hie },
+ tap: { Feature: Iie },
+ focus: { Feature: Fie },
+ hover: { Feature: Pie }
+}, Nie, { layout: {
+ ProjectionNode: hb,
+ MeasureLayout: Xx
+} }), Eie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Qx() {
- !xb.current && Sb();
- let [e] = (0, F.useState)(bb.current);
+function tS() {
+ !wb.current && Tb();
+ let [e] = (0, F.useState)(Cb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function $x(e) {
+function nS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function eS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && $x(t) ? Iv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function rS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && nS(t) ? Rv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Jie(e, t, n) {
+function Gie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function tS(e, t) {
+function iS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function Yie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : tS(t, r) ?? e;
+function Kie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : iS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Xie(e, t, n) {
+function qie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
- i.at > t && i.at < n && (wm(e, i), r--);
+ i.at > t && i.at < n && (Tm(e, i), r--);
}
}
-function Zie(e, t, n, r, i, a) {
- Xie(e, i, a);
+function Jie(e, t, n, r, i, a) {
+ qie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: og(i, a, r[o]),
- easing: /* @__PURE__ */ eh(n, o)
+ easing: /* @__PURE__ */ th(n, o)
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Qie(e, t, n = 0) {
+function Yie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function $ie(e, t) {
+function Xie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var eae = "easeInOut", tae = 20;
-function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Zie = "easeInOut", Qie = 20;
+function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : Yie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Kie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21578,12 +21582,12 @@ function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = rae(e), { delay: l = 0, times: u = Bg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = eae(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
- let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = F_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = I_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && oae(c)) {
+ if (S === 2 && rae(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21591,7 +21595,7 @@ function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
...t,
..._
};
- b !== void 0 && (n.duration = /* @__PURE__ */ Fm(b));
+ b !== void 0 && (n.duration = /* @__PURE__ */ Im(b));
let r = wg(n, e, C);
v = r.ease, b = r.duration;
}
@@ -21599,32 +21603,32 @@ function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && zg(u, T), c.length === 1 && c.unshift(null), m && m < tae) {
+ if (T > 0 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < Qie) {
let e = b > 0 ? g / b : 0;
- b = Jie(b, m, g);
+ b = Gie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
- i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Hm(e) : e)));
+ i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Um(e) : e)));
for (let s = 0; s < m; s++) {
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
- for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ eh(f, e - 1));
+ for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ th(f, e - 1));
}
- Qie(u, m, e);
+ Yie(u, m, e);
}
let E = w + b;
- Zie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Jie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (vv(g)) {
- let e = nS(g, c);
- b(_, v, rS("default", e));
+ if (bv(g)) {
+ let e = aS(g, c);
+ b(_, v, oS("default", e));
} else {
- let e = eS(g, _, r, l), t = e.length;
+ let e = rS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = nS(r, c);
- for (let e in _) b(_[e], iae(v, e), rS(e, i), n, t);
+ let r = e[n], i = aS(r, c);
+ for (let e in _) b(_[e], tae(v, e), oS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21634,13 +21638,13 @@ function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort($ie);
+ a.sort(Xie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
- o.push(n), c.push(/* @__PURE__ */ Nm(0, p, t)), l.push(r || "easeOut");
+ o.push(n), c.push(/* @__PURE__ */ Pm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(eae)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Zie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21658,45 +21662,45 @@ function nae(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function nS(e, t) {
+function aS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function rS(e, t) {
+function oS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function rae(e) {
+function eae(e) {
return Array.isArray(e) ? e : [e];
}
-function iae(e, t) {
+function tae(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var aae = (e) => typeof e == "number", oae = (e) => e.every(aae);
+var nae = (e) => typeof e == "number", rae = (e) => e.every(nae);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function sae(e, t) {
- return vv(e) || typeof e == "number" || typeof e == "string" && !$x(t);
+function iae(e, t) {
+ return bv(e) || typeof e == "number" || typeof e == "string" && !nS(t);
}
-function iS(e, t, n, r) {
+function sS(e, t, n, r) {
let i = [];
- if (sae(e, t)) i.push(my(e, $x(t) && t.default || t, n && (n.default || n)));
+ if (iae(e, t)) i.push(gy(e, nS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = eS(e, t, r), o = a.length;
+ let a = rS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...gne(r, t, s, pb.get(r))) : i.push(...Av(Xte(r) ?? _ne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...mne(r, t, s, gb.get(r))) : i.push(...Mv(Jte(r) ?? hne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function cae(e, t, n, r) {
+function aae(e, t, n, r) {
let i = [];
- return nae(e.map((e) => {
+ return $ie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = uv(0);
+ let t = e[0], n = dv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21709,32 +21713,32 @@ function cae(e, t, n, r) {
}
return e;
}), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...iS(n, e, t));
+ i.push(...sS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var aS = 0;
-function lae(e, t) {
+var cS = 0;
+function oae(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var oS = (e, t) => t === void 0 ? e : {
+var lS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function sS(e) {
+function uS(e) {
e.pause(), e.time = 0, e.stop();
}
-var cS = class e {
+var dS = class e {
constructor(e = [], t = {}, n) {
- this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Nv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new iv(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
- r && (r.animations.push(this), this.finished.then(() => wm(r.animations, this)));
+ r && (r.animations.push(this), this.finished.then(() => Tm(r.animations, this)));
}
add(t, n) {
return t instanceof e && t.adopt(this), this.push({
@@ -21747,7 +21751,7 @@ var cS = class e {
item: e,
at: t,
marker: {
- name: "_m" + aS++,
+ name: "_m" + cS++,
time: 0,
callback: e
}
@@ -21758,7 +21762,7 @@ var cS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + aS++,
+ name: "_m" + cS++,
time: 0,
callback: t,
pause: !0
@@ -21852,50 +21856,50 @@ var cS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (sS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (uS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, sS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, uS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
- let d = /* @__PURE__ */ new Map(), f = {}, p = Nv.current;
- Nv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Fv.current;
+ Fv.current = this.motionScope;
let m;
try {
- m = cae(this.toSequence(d), {
+ m = aae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- Nv.current = p;
+ Fv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
- let e = this.clock = uv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = my(e, [0, g], {
+ let e = this.clock = dv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new iv(m);
+ let v = this.group = new av(m);
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), oS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), lS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? oS(n, r) : r === void 0 ? n : Array.isArray(n) ? lae(n, r) : {
+ } : typeof n == "string" ? lS(n, r) : r === void 0 ? n : Array.isArray(n) ? oae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : tS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : iS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21943,16 +21947,16 @@ var cS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function uae(e) {
+function sae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function dae(e = {}) {
+function cae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Nv.current?.transition, s = {};
+ let o = Fv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (uae(e)) {
+ if (sae(e)) {
let n = {
...s,
...i,
@@ -21961,14 +21965,14 @@ function dae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new cS(e, n);
+ }), c = new dS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new cS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new dS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21983,29 +21987,29 @@ function dae(e = {}) {
...s,
onComplete: n,
scope: t
- }, iS(e, i, l, t));
+ }, sS(e, i, l, t));
}
return c;
}
return i;
}
-var lS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ dae(), {
- addEffect: Yte,
- removeEffect: Ov
+var fS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ cae(), {
+ addEffect: qte,
+ removeEffect: Av
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function fae(e, t, n, r) {
+function lae(e, t, n, r) {
if (e == null) return [];
- let i = Iv(e, r), a = i.length, o = [];
+ let i = Rv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...fv(s, e) };
- i.duration &&= /* @__PURE__ */ Fm(i.duration), i.delay &&= /* @__PURE__ */ Fm(i.delay);
- let a = bte(r), c = yte(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...pv(s, e) };
+ i.duration &&= /* @__PURE__ */ Im(i.duration), i.delay &&= /* @__PURE__ */ Im(i.delay);
+ let a = yte(r), c = vte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -22021,21 +22025,21 @@ function fae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = fx(r, i)), i_(t), Jte(t, i), !a && t.length < 2 && t.unshift(fx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = hx(r, i)), a_(t), Kte(t, i), !a && t.length < 2 && t.unshift(hx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new I_(r);
+ let { map: t, key: n, options: r } = o[e], i = new L_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var pae = /*@__PURE__*/ ((e) => {
+var uae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new iv(fae(t, n, r, e));
+ return new av(lae(t, n, r, e));
}
return t;
-})(), uS = qie, dS = class {
+})(), pS = Wie, mS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -22050,22 +22054,22 @@ var pae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, fS = class extends dS {
+}, hS = class extends mS {
filter(e, t, n) {
- let [r, i] = gS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = yS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends dS {
+(class extends mS {
static {
this.type = "header";
}
});
-var pS = class extends dS {
+var gS = class extends mS {
static {
this.type = "loader";
}
-}, mS = class extends fS {
+}, _S = class extends hS {
static {
this.type = "item";
}
@@ -22076,7 +22080,7 @@ var pS = class extends dS {
}
return null;
}
-}, mae = class extends fS {
+}, dae = class extends hS {
static {
this.type = "section";
}
@@ -22088,7 +22092,7 @@ var pS = class extends dS {
}
return null;
}
-}, hS = class {
+}, vS = class {
get size() {
return this.itemCount;
}
@@ -22163,14 +22167,14 @@ var pS = class extends dS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = gS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = yS(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function gS(e, t, n, r) {
+function yS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22184,7 +22188,7 @@ function gS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var _S = class {
+var bS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22265,7 +22269,7 @@ var _S = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, vS = class e extends _S {
+}, xS = class e extends bS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22316,7 +22320,7 @@ var _S = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, hae = class extends _S {
+}, fae = class extends bS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22324,7 +22328,7 @@ var _S = class {
return !0;
}
createElement(e) {
- return new vS(e, this);
+ return new xS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22346,8 +22350,8 @@ var _S = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof vS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof vS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof xS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof xS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22365,13 +22369,13 @@ var _S = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function yS(e) {
+function SS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = gae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = pae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22396,7 +22400,7 @@ function yS(e) {
i
]);
}
-function gae(e) {
+function pae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22405,24 +22409,24 @@ function gae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function bS(e) {
+function CS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var xS = (e) => _ae(e) ? e.document : vae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), SS = (e) => xS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function CS(e) {
+var wS = (e) => mae(e) ? e.document : hae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), TS = (e) => wS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function ES(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function _ae(e) {
+function mae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function vae(e) {
- return CS(e) && e.nodeType === 9;
+function hae(e) {
+ return ES(e) && e.nodeType === 9;
}
-function wS(e) {
- return CS(e) && e.nodeType === 11 && "host" in e;
+function DS(e) {
+ return ES(e) && e.nodeType === 11 && "host" in e;
}
-function TS(e, t, n, r) {
+function OS(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22430,7 +22434,7 @@ function TS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function ES(e, t, n, r) {
+function kS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22444,70 +22448,70 @@ function ES(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var yae = !1;
-function DS() {
- return yae;
+var gae = !1;
+function AS() {
+ return gae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function OS(e, t) {
- if (!DS()) return t && e ? e.contains(t) : !1;
+function jS(e, t) {
+ if (!AS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : wS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : DS(n) ? n.host : n.parentNode;
}
return !1;
}
-var kS = (e = document) => {
- if (!DS()) return e.activeElement;
+var MS = (e = document) => {
+ if (!AS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function G(e) {
- if (DS() && e.target instanceof Element && e.target.shadowRoot) {
+function K(e) {
+ if (AS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function AS(e, t) {
+function NS(e, t) {
if (t === null) return [];
- t ??= SS(e);
+ t ??= TS(e);
let n = [t];
- if (!DS() || !e || e === t) return n;
+ if (!AS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; wS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; DS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function jS(e) {
+function PS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = SS(e);
+ let t = e.getRootNode(), n = TS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var bae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function xae(e) {
- let t = SS(e);
+var _ae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function vae(e) {
+ let t = TS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = SS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = TS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function Sae(e, t) {
+function yae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function MS(e, t) {
- return bae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && xae(e) && Sae(e, t) && (!e.parentElement || MS(e.parentElement, e));
+function FS(e, t) {
+ return _ae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && vae(e) && yae(e, t) && (!e.parentElement || FS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var NS = [
+var IS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22522,58 +22526,58 @@ var NS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], Cae = NS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-NS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var wae = NS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function PS(e, t) {
- return e.matches(Cae) && !IS(e) && (t?.skipVisibilityCheck || MS(e));
+], bae = IS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+IS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var xae = IS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function LS(e, t) {
+ return e.matches(bae) && !zS(e) && (t?.skipVisibilityCheck || FS(e));
}
-function FS(e) {
- return e.matches(wae) && MS(e) && !IS(e);
+function RS(e) {
+ return e.matches(xae) && FS(e) && !zS(e);
}
-function IS(e) {
+function zS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof SS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof TS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var LS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var BS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function RS(e) {
+function VS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function zS(e, t) {
+function HS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function BS(e) {
+function US(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return LS(() => {
+ return BS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
}, []), (0, F.useCallback)((n) => {
- let r = G(n);
+ let r = K(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = RS(r);
+ let t = VS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === kS() ? null : kS();
+ let e = n === MS() ? null : MS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22586,80 +22590,80 @@ function BS(e) {
}
}, [e]);
}
-var VS = !1;
-function Tae(e) {
- for (; e && !PS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = kS(SS(e).document);
+var WS = !1;
+function Sae(e) {
+ for (; e && !LS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = MS(TS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && wS(n) ? n : SS(e), i = (t) => t === e || CS(t) && OS(e, t), a = (e) => e === t || t != null && CS(e) && OS(t, e);
- VS = !0;
+ let n = e?.getRootNode(), r = n != null && DS(n) ? n : TS(e), i = (t) => t === e || ES(t) && jS(e, t), a = (e) => e === t || t != null && ES(e) && jS(t, e);
+ WS = !0;
let o = !1, s = (e) => {
- (a(G(e)) || o) && e.stopImmediatePropagation();
+ (a(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, bS(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, CS(t), d()));
}, l = (e) => {
- (i(G(e)) || o) && e.stopImmediatePropagation();
+ (i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, bS(t), d()));
+ (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, CS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), VS = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), WS = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function HS(e) {
+function GS(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function US(e) {
+function KS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function WS(e) {
+function qS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var GS = WS(function() {
- return US(/^Mac/i);
-}), Eae = WS(function() {
- return US(/^iPhone/i);
-}), KS = WS(function() {
- return US(/^iPad/i) || GS() && navigator.maxTouchPoints > 1;
-}), qS = WS(function() {
- return Eae() || KS();
-}), Dae = WS(function() {
- return GS() || qS();
-}), JS = WS(function() {
- return HS(/AppleWebKit/i) && (qS() || !YS());
-}), YS = WS(function() {
- return HS(/Chrome|CriOS|CrMo/i);
-}), XS = WS(function() {
- return HS(/Android/i);
+var JS = qS(function() {
+ return KS(/^Mac/i);
+}), Cae = qS(function() {
+ return KS(/^iPhone/i);
+}), YS = qS(function() {
+ return KS(/^iPad/i) || JS() && navigator.maxTouchPoints > 1;
+}), XS = qS(function() {
+ return Cae() || YS();
+}), wae = qS(function() {
+ return JS() || XS();
+}), ZS = qS(function() {
+ return GS(/AppleWebKit/i) && (XS() || !QS());
+}), QS = qS(function() {
+ return GS(/Chrome|CriOS|CrMo/i);
+}), $S = qS(function() {
+ return GS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function ZS(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : XS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function eC(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : $S() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Oae(e) {
- return !XS() && e.width === 0 && e.height === 0 || XS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Tae(e) {
+ return !$S() && e.width === 0 && e.height === 0 || $S() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var kae = /*#__PURE__*/ (0, F.createContext)({
+var Eae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: Mae,
+ open: kae,
useHref: (e) => e
});
-function QS() {
- return (0, F.useContext)(kae);
+function tC() {
+ return (0, F.useContext)(Eae);
}
-function Aae(e, t) {
+function Dae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function $S(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = JS() && GS() && !KS() ? new KeyboardEvent("keydown", {
+function nC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = ZS() && JS() && !YS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22674,21 +22678,21 @@ function $S(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- $S.isOpening = n, bS(e), e.dispatchEvent(s), $S.isOpening = !1;
+ nC.isOpening = n, CS(e), e.dispatchEvent(s), nC.isOpening = !1;
}
-$S.isOpening = !1;
-function jae(e, t) {
+nC.isOpening = !1;
+function Oae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Mae(e, t) {
- jae(e, (e) => $S(e, t));
+function kae(e, t) {
+ Oae(e, (e) => nC(e, t));
}
-function eC(e) {
- let t = QS().useHref(e.href ?? "");
+function rC(e) {
+ let t = tC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22698,8 +22702,8 @@ function eC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function tC(e) {
- let t = QS().useHref(e?.href ?? ""), n = {};
+function iC(e) {
+ let t = tC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22710,138 +22714,138 @@ function tC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Nae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Aae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Aae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Dae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var nC = {
+var aC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, rC = /*#__PURE__*/ F.createContext(nC), Pae = /*#__PURE__*/ F.createContext(!1);
+}, oC = /*#__PURE__*/ F.createContext(aC), jae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var iC = /* @__PURE__ */ new WeakMap();
-function Fae(e = !1) {
- let t = (0, F.useContext)(rC), n = (0, F.useRef)(null);
+var sC = /* @__PURE__ */ new WeakMap();
+function Mae(e = !1) {
+ let t = (0, F.useContext)(oC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = iC.get(e);
- n == null ? iC.set(e, {
+ let n = sC.get(e);
+ n == null ? sC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, iC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, sC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Iae(e) {
- let t = (0, F.useContext)(rC), n = Fae(!!e), r = `react-aria${t.prefix}`;
+function Nae(e) {
+ let t = (0, F.useContext)(oC), n = Mae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Lae(e) {
- let t = F.useId(), [n] = (0, F.useState)(aC()), r = n ? "react-aria" : `react-aria${nC.prefix}`;
+function Pae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(cC()), r = n ? "react-aria" : `react-aria${aC.prefix}`;
return e || `${r}-${t}`;
}
-var Rae = typeof F.useId == "function" ? Lae : Iae;
-function zae() {
+var Fae = typeof F.useId == "function" ? Pae : Nae;
+function Iae() {
return !1;
}
-function Bae() {
+function Lae() {
return !0;
}
-function Vae(e) {
+function Rae(e) {
return () => {};
}
-function aC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Vae, zae, Bae) : (0, F.useContext)(Pae);
+function cC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Rae, Iae, Lae) : (0, F.useContext)(jae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var oC = null, sC = /* @__PURE__ */ new Set(), cC = /* @__PURE__ */ new Map(), lC = !1, uC = !1, Hae = {
+var lC = null, uC = /* @__PURE__ */ new Set(), dC = /* @__PURE__ */ new Map(), fC = !1, pC = !1, zae = {
Tab: !0,
Escape: !0
};
-function dC(e, t) {
- for (let n of sC) n(e, t);
+function mC(e, t) {
+ for (let n of uC) n(e, t);
}
-function Uae(e) {
- return !(e.metaKey || !GS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Bae(e) {
+ return !(e.metaKey || !JS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function fC(e) {
- lC = !0, !$S.isOpening && Uae(e) && (oC = "keyboard", dC("keyboard", e));
+function hC(e) {
+ fC = !0, !nC.isOpening && Bae(e) && (lC = "keyboard", mC("keyboard", e));
}
-function pC(e) {
- oC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (lC = !0, dC("pointer", e));
+function gC(e) {
+ lC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (fC = !0, mC("pointer", e));
}
-function mC(e) {
- !$S.isOpening && ZS(e) && (lC = !0, oC = "virtual");
+function _C(e) {
+ !nC.isOpening && eC(e) && (fC = !0, lC = "virtual");
}
-function hC(e) {
- if (VS) return;
- let t = G(e), n = SS(t), r = xS(t);
- t === n ? uC = !0 : t !== r && e.isTrusted && (!lC && !uC && (oC = "virtual", dC("virtual", e)), lC = !1, uC = !1);
+function vC(e) {
+ if (WS) return;
+ let t = K(e), n = TS(t), r = wS(t);
+ t === n ? pC = !0 : t !== r && e.isTrusted && (!fC && !pC && (lC = "virtual", mC("virtual", e)), fC = !1, pC = !1);
}
-function gC() {
- VS || (lC = !1, uC = !0);
+function yC() {
+ WS || (fC = !1, pC = !0);
}
-function _C(e) {
- let t = kS(xS(G(e)));
+function bC(e) {
+ let t = MS(wS(K(e)));
queueMicrotask(() => {
- kS(xS(G(e))) !== t && SC("keyboard");
+ MS(wS(K(e))) !== t && TC("keyboard");
});
}
-function vC(e) {
+function xC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = SS(e), n = xS(e);
- if (cC.get(t)) return;
+ let t = TS(e), n = wS(e);
+ if (dC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- lC = !0, r.apply(this, arguments);
+ fC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", fC, !0), n.addEventListener("keyup", fC, !0), n.addEventListener("click", mC, !0), n.addEventListener("invalid", _C, !0), t.addEventListener("focus", hC, !0), t.addEventListener("blur", gC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", pC, !0), n.addEventListener("pointermove", pC, !0), n.addEventListener("pointerup", pC, !0)), t.addEventListener("beforeunload", () => {
- yC(e);
- }, { once: !0 }), cC.set(t, { focus: r });
+ }), n.addEventListener("keydown", hC, !0), n.addEventListener("keyup", hC, !0), n.addEventListener("click", _C, !0), n.addEventListener("invalid", bC, !0), t.addEventListener("focus", vC, !0), t.addEventListener("blur", yC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", gC, !0), n.addEventListener("pointermove", gC, !0), n.addEventListener("pointerup", gC, !0)), t.addEventListener("beforeunload", () => {
+ SC(e);
+ }, { once: !0 }), dC.set(t, { focus: r });
}
-var yC = (e, t) => {
- let n = SS(e), r = xS(e);
- t && r.removeEventListener("DOMContentLoaded", t), cC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var SC = (e, t) => {
+ let n = TS(e), r = wS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), dC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: cC.get(n).focus
- }), r.removeEventListener("keydown", fC, !0), r.removeEventListener("keyup", fC, !0), r.removeEventListener("click", mC, !0), r.removeEventListener("invalid", _C, !0), n.removeEventListener("focus", hC, !0), n.removeEventListener("blur", gC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", pC, !0), r.removeEventListener("pointermove", pC, !0), r.removeEventListener("pointerup", pC, !0)), cC.delete(n));
+ value: dC.get(n).focus
+ }), r.removeEventListener("keydown", hC, !0), r.removeEventListener("keyup", hC, !0), r.removeEventListener("click", _C, !0), r.removeEventListener("invalid", bC, !0), n.removeEventListener("focus", vC, !0), n.removeEventListener("blur", yC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", gC, !0), r.removeEventListener("pointermove", gC, !0), r.removeEventListener("pointerup", gC, !0)), dC.delete(n));
};
-function Wae(e) {
- let t = xS(e), n;
+function Vae(e) {
+ let t = wS(e), n;
return t.readyState === "loading" ? (n = () => {
- vC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : vC(e), () => yC(e, n);
+ xC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : xC(e), () => SC(e, n);
}
-typeof document < "u" && Wae();
-function bC() {
- return oC !== "pointer";
+typeof document < "u" && Vae();
+function CC() {
+ return lC !== "pointer";
}
-function xC() {
- return oC;
+function wC() {
+ return lC;
}
-function SC(e) {
- oC = e, dC(e, null);
+function TC(e) {
+ lC = e, mC(e, null);
}
-function CC() {
- vC();
- let [e, t] = (0, F.useState)(oC);
+function EC() {
+ xC();
+ let [e, t] = (0, F.useState)(lC);
return (0, F.useEffect)(() => {
let e = () => {
- t(oC);
+ t(lC);
};
- return sC.add(e), () => {
- sC.delete(e);
+ return uC.add(e), () => {
+ uC.delete(e);
};
- }, []), aC() ? null : e;
+ }, []), cC() ? null : e;
}
-var Gae = /* @__PURE__ */ new Set([
+var Hae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22852,107 +22856,107 @@ var Gae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Kae(e, t, n) {
- let r = n ? G(n) : void 0, i = xS(r), a = SS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = kS(i);
- return e = e || u instanceof o && !Gae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Hae[n.key]);
+function Uae(e, t, n) {
+ let r = n ? K(n) : void 0, i = wS(r), a = TS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = MS(i);
+ return e = e || u instanceof o && !Hae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !zae[n.key]);
}
-function wC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || bC());
- return TC((e) => {
+function DC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || CC());
+ return OC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function TC(e, t, n) {
- vC(), (0, F.useEffect)(() => {
+function OC(e, t, n) {
+ xC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Kae(!!n?.isTextInput, t, r) && e(bC());
+ Uae(!!n?.isTextInput, t, r) && e(CC());
};
- return sC.add(t), () => {
- sC.delete(t);
+ return uC.add(t), () => {
+ uC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var EC = /* @__PURE__ */ new Map(), DC = /* @__PURE__ */ new Set();
-function OC(e) {
+var kC = /* @__PURE__ */ new Map(), AC = /* @__PURE__ */ new Set();
+function jC(e) {
return "propertyName" in e;
}
-function qae(e) {
- let t = G(e);
- if (!OC(e) || !t) return;
- let n = EC.get(t);
- n || (n = /* @__PURE__ */ new Set(), EC.set(t, n), t.addEventListener("transitioncancel", kC, { once: !0 })), n.add(e.propertyName);
+function Wae(e) {
+ let t = K(e);
+ if (!jC(e) || !t) return;
+ let n = kC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), kC.set(t, n), t.addEventListener("transitioncancel", MC, { once: !0 })), n.add(e.propertyName);
}
-function kC(e) {
- let t = G(e);
- if (!OC(e) || !t) return;
- let n = EC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", kC), EC.delete(t)), EC.size === 0)) for (let e of DC) e(!0), DC.delete(e);
+function MC(e) {
+ let t = K(e);
+ if (!jC(e) || !t) return;
+ let n = kC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", MC), kC.delete(t)), kC.size === 0)) for (let e of AC) e(!0), AC.delete(e);
}
-function AC() {
- TS(document, "transitionrun", qae), TS(document, "transitionend", kC);
+function NC() {
+ OS(document, "transitionrun", Wae), OS(document, "transitionend", MC);
}
-function Jae() {
- for (let [e] of EC) "isConnected" in e && !e.isConnected && EC.delete(e);
+function Gae() {
+ for (let [e] of kC) "isConnected" in e && !e.isConnected && kC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? TS(document, "DOMContentLoaded", AC) : AC());
-function jC(e) {
+typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", NC) : NC());
+function PC(e) {
let t = window.requestAnimationFrame(() => {
- if (Jae(), EC.size === 0) return e(!1);
- DC.add(e);
+ if (Gae(), kC.size === 0) return e(!1);
+ AC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), DC.delete(e);
+ window.cancelAnimationFrame(t), AC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function MC(e) {
+function FC(e) {
if (!e.isConnected) return;
- let t = xS(e);
- if (xC() === "virtual") {
- let n = kS(t);
- jC(() => {
- let r = kS(t);
- (r === n || r === t.body) && e.isConnected && bS(e);
+ let t = wS(e);
+ if (wC() === "virtual") {
+ let n = MS(t);
+ PC(() => {
+ let r = MS(t);
+ (r === n || r === t.body) && e.isConnected && CS(e);
});
- } else bS(e);
+ } else CS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function NC(...e) {
+function IC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Yae(e) {
+function Kae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return LS(() => {
+ return BS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Xae = !!(typeof window < "u" && window.document && window.document.createElement), PC = /* @__PURE__ */ new Map(), FC;
-typeof FinalizationRegistry < "u" && (FC = new FinalizationRegistry((e) => {
- PC.delete(e);
+var qae = !!(typeof window < "u" && window.document && window.document.createElement), LC = /* @__PURE__ */ new Map(), RC;
+typeof FinalizationRegistry < "u" && (RC = new FinalizationRegistry((e) => {
+ LC.delete(e);
}));
-var IC = /* @__PURE__ */ new WeakMap();
-function LC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Rae(t), a = (0, F.useRef)(null), o = IC.get(a);
- if (FC && o !== i && (o != null && FC.unregister(a), FC.register(a, i, a), IC.set(a, i)), Xae) {
- let e = PC.get(i);
- e && !e.includes(r) ? e.push(r) : PC.set(i, [r]);
- }
- return LS(() => {
+var zC = /* @__PURE__ */ new WeakMap();
+function BC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Fae(t), a = (0, F.useRef)(null), o = zC.get(a);
+ if (RC && o !== i && (o != null && RC.unregister(a), RC.register(a, i, a), zC.set(a, i)), qae) {
+ let e = LC.get(i);
+ e && !e.includes(r) ? e.push(r) : LC.set(i, [r]);
+ }
+ return BS(() => {
let e = i;
return () => {
- FC && (FC.unregister(a), IC.delete(a)), PC.delete(e);
+ RC && (RC.unregister(a), zC.delete(a)), LC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22961,77 +22965,77 @@ function LC(e) {
};
}), i;
}
-function Zae(e, t) {
+function Jae(e, t) {
if (e === t) return e;
- let n = PC.get(e);
+ let n = LC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = PC.get(t);
+ let r = LC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function RC(e = []) {
- let t = LC(), [n, r] = Yae(t), i = (0, F.useCallback)(() => {
+function VC(e = []) {
+ let t = BC(), [n, r] = Kae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return LS(i, [
+ return BS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function zC(...e) {
+function HC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = BC(e, t);
+ let r = UC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : BC(e[n], null);
+ typeof t == "function" ? t() : UC(e[n], null);
});
};
};
}
-function BC(e, t) {
+function UC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function VC(e) {
+function WC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = VC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = WC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function HC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = VC(e)) && (r && (r += " "), r += t);
+function GC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = WC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function K(...e) {
+function q(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = NC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = HC(n, i) : e === "id" && n && i ? t.id = Zae(n, i) : e === "ref" && n && i ? t.ref = zC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = IC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = GC(n, i) : e === "id" && n && i ? t.id = Jae(n, i) : e === "ref" && n && i ? t.ref = HC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function UC(e) {
+function KC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
- if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = BS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = xS(t), a = r ? kS(r) : kS();
+ if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = US(a), s = (0, F.useCallback)((e) => {
+ let t = K(e), r = wS(t), a = r ? MS(r) : MS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23044,7 +23048,7 @@ function UC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function WC(e) {
+function qC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23068,33 +23072,33 @@ function WC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Qae = /* @__PURE__ */ new Set([
+var Yae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), $ae = [
+]), Xae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function eoe(e) {
+function Zae(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(GS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(JS() ? "Meta" : "Control"), t;
}
-function toe(e) {
+function Qae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function GC(e) {
- return $ae.filter((t) => e.has(t));
+function JC(e) {
+ return Xae.filter((t) => e.has(t));
}
-function noe(e) {
+function $ae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Qae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Yae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23106,10 +23110,10 @@ function noe(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function KC(e) {
+function YC(e) {
return e.toLowerCase();
}
-var roe = {
+var eoe = {
space: " ",
esc: "escape",
del: "delete",
@@ -23121,26 +23125,26 @@ var roe = {
pageup: "pageup",
pagedown: "pagedown"
};
-function ioe(e) {
- let t = KC(e);
- return roe[t] ?? t;
+function toe(e) {
+ let t = YC(e);
+ return eoe[t] ?? t;
}
-function aoe(e) {
- let t = GC(eoe(e)), n = ioe(e.key);
+function noe(e) {
+ let t = JC(Zae(e)), n = toe(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function ooe(e) {
- let t = GC(toe(e)), n = KC(e.key);
+function roe(e) {
+ let t = JC(Qae(e)), n = YC(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function soe(e) {
+function ioe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = noe(n);
- t.set(aoe(e), r);
+ let e = $ae(n);
+ t.set(noe(e), r);
}
return (e) => {
- let n = ooe(e), r = t.get(n), i = r?.(e);
+ let n = roe(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23151,23 +23155,23 @@ function soe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function qC(e) {
+function XC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = soe(t), s = WC((e) => {
- OS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = WC((e) => {
- OS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = ioe(t), s = qC((e) => {
+ jS(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = qC((e) => {
+ jS(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? NC(e.onKeyDown, s) : s, a = e.onKeyUp ? NC(e.onKeyUp, c) : c;
- } else i = WC(e.onKeyDown), a = WC(e.onKeyUp);
+ i = e.onKeyDown ? IC(e.onKeyDown, s) : s, a = e.onKeyUp ? IC(e.onKeyUp, c) : c;
+ } else i = qC(e.onKeyDown), a = qC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function JC(e) {
+function ZC(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23189,28 +23193,28 @@ function JC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function YC(e, t) {
- LS(() => {
+function QC(e, t) {
+ BS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var XC = /*#__PURE__*/ F.createContext(null);
-function coe(e) {
- let t = (0, F.useContext)(XC) || {};
- YC(t, e);
+var $C = /*#__PURE__*/ F.createContext(null);
+function aoe(e) {
+ let t = (0, F.useContext)($C) || {};
+ QC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function ZC(e, t) {
- let { focusProps: n } = UC(e), { keyboardProps: r } = qC(e), i = K(n, r), a = coe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function ew(e, t) {
+ let { focusProps: n } = KC(e), { keyboardProps: r } = XC(e), i = q(n, r), a = aoe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && MC(t.current), s.current = !1;
+ s.current && t.current && FC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: K({
+ return e.isDisabled && (c = void 0), { focusableProps: q({
...i,
tabIndex: c
}, o) };
@@ -23241,21 +23245,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var QC = /*#__PURE__*/ (0, F.createContext)(!1);
-function loe(e) {
- if ((0, F.useContext)(QC)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(QC.Provider, { value: !0 }, e.children);
+var tw = /*#__PURE__*/ (0, F.createContext)(!1);
+function ooe(e) {
+ if ((0, F.useContext)(tw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(tw.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function $C(e) {
- let t = (t, n) => (0, F.useContext)(QC) ? null : e(t, n);
+function nw(e) {
+ let t = (t, n) => (0, F.useContext)(tw) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function ew() {
- return (0, F.useContext)(QC);
+function rw() {
+ return (0, F.useContext)(tw);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var uoe = /* @__PURE__ */ o(((e) => {
+var soe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23293,47 +23297,47 @@ var uoe = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), tw = /* @__PURE__ */ o(((e, t) => {
- t.exports = uoe();
-})), doe = tw(), nw = /*#__PURE__*/ (0, F.createContext)(!1), rw = /*#__PURE__*/ (0, F.createContext)(null);
-function iw(e) {
- if ((0, F.useContext)(rw)) return e.content;
- let { collection: t, document: n } = hoe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(loe, null, /*#__PURE__*/ F.createElement(rw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(foe, {
+})), iw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = soe();
+})), coe = iw(), aw = /*#__PURE__*/ (0, F.createContext)(!1), ow = /*#__PURE__*/ (0, F.createContext)(null);
+function sw(e) {
+ if ((0, F.useContext)(ow)) return e.content;
+ let { collection: t, document: n } = foe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ooe, null, /*#__PURE__*/ F.createElement(ow.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(loe, {
render: e.children,
collection: t
}));
}
-function foe({ collection: e, render: t }) {
+function loe({ collection: e, render: t }) {
return t(e);
}
-function poe(e, t, n) {
- let r = aC(), i = (0, F.useRef)(r);
+function uoe(e, t, n) {
+ let r = cC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, doe.useSyncExternalStore)(e, a);
+ return (0, coe.useSyncExternalStore)(e, a);
}
-var moe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : poe;
-function hoe(e) {
- let [t] = (0, F.useState)(() => new hae(e?.() || new hS()));
+var doe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : uoe;
+function foe(e) {
+ let [t] = (0, F.useState)(() => new fae(e?.() || new vS()));
return {
- collection: moe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: doe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var aw = /*#__PURE__*/ (0, F.createContext)(null);
-function goe(e) {
- return class extends dS {
+var cw = /*#__PURE__*/ (0, F.createContext)(null);
+function poe(e) {
+ return class extends mS {
static {
this.type = e;
}
};
}
-function ow(e, t, n, r, i, a) {
- typeof e == "string" && (e = goe(e));
+function lw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = poe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23342,82 +23346,82 @@ function ow(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(aw);
+ ]), s = (0, F.useContext)(cw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(aw.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(cw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function sw(e, t) {
+function uw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(XC);
- if (!(0, F.useContext)(nw)) {
+ let a = (0, F.useContext)($C);
+ if (!(0, F.useContext)(aw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return ow(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(XC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return lw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement($C.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function cw(e, t, n = lw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => ow(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function dw(e, t, n = fw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => lw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function lw(e) {
- return yS({
+function fw(e) {
+ return SS({
...e,
addIdAndValue: !0
});
}
-var uw = /*#__PURE__*/ (0, F.createContext)(null);
-function dw(e) {
- let t = (0, F.useContext)(uw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = lw({
+var pw = /*#__PURE__*/ (0, F.createContext)(null);
+function mw(e) {
+ let t = (0, F.useContext)(pw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = fw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(rw) && (i = /*#__PURE__*/ F.createElement(_oe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(ow) && (i = /*#__PURE__*/ F.createElement(moe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(uw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(pw.Provider, { value: t }, i);
}
-function _oe({ children: e }) {
- let t = (0, F.useContext)(rw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(rw.Provider, { value: null }, /*#__PURE__*/ F.createElement(nw.Provider, { value: !0 }, e)), [e]);
- return aC() ? /*#__PURE__*/ F.createElement(aw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function moe({ children: e }) {
+ let t = (0, F.useContext)(ow), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(ow.Provider, { value: null }, /*#__PURE__*/ F.createElement(aw.Provider, { value: !0 }, e)), [e]);
+ return cC() ? /*#__PURE__*/ F.createElement(cw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var voe = "react-aria-clear-focus", yoe = "react-aria-focus";
+var hoe = "react-aria-clear-focus", goe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function fw(e) {
- let t = xoe(xS(e));
- t !== e && (t && boe(t, e), e && pw(e, t));
+function hw(e) {
+ let t = voe(wS(e));
+ t !== e && (t && _oe(t, e), e && gw(e, t));
}
-function boe(e, t) {
+function _oe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function pw(e, t) {
+function gw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function xoe(e) {
- let t = kS(e), n = t?.getAttribute("aria-activedescendant");
+function voe(e) {
+ let t = MS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function mw(e, t) {
- let n = SS(t), r = xS(t);
+function _w(e, t) {
+ let n = TS(t), r = wS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var hw = 100, gw = 600, _w = {
+var vw = 100, yw = 600, bw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23427,7 +23431,7 @@ var hw = 100, gw = 600, _w = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, Soe = /* @__PURE__ */ new Set([
+}, yoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23438,7 +23442,7 @@ var hw = 100, gw = 600, _w = {
"submit",
"reset"
]);
-function vw() {
+function xw() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23446,58 +23450,58 @@ function vw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function Coe(e) {
- _w.resizeTimeStamp <= e.timeStamp + 50 && (_w.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(_w.resizeTimeout), _w.resizeTimeout = window.setTimeout(yw, 150));
+function boe(e) {
+ bw.resizeTimeStamp <= e.timeStamp + 50 && (bw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(bw.resizeTimeout), bw.resizeTimeout = window.setTimeout(Sw, 150));
}
-function yw() {
- let e = mw("viewport");
- if (XS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = vw(), r = t - _w.startTimeStamp, i = _w.screenHeight - n.height, a = _w.screenAngle - n.angle;
- Math.abs(a) % 180 && _w.screenWidth - n.height < hw && (_w.screenWidth = n.width, _w.screenHeight = n.height, _w.screenAngle = n.angle, i = 0), r > gw && (window.clearTimeout(_w.screenTimeout), _w.screenTimeout = window.setTimeout(() => {
- let e = Sw(document.hasFocus() ? kS() : null), t = vw();
- Math.abs(_w.screenAngle - t.angle) % 180 || _w.isOpen && e || (_w.screenWidth = t.width, _w.screenHeight = t.height, _w.screenAngle = t.angle, _w.isOpen = !1);
- }, gw)), r <= gw && i >= hw && (_w.endTimeStamp = t), _w.isOpen = i >= hw;
+function Sw() {
+ let e = _w("viewport");
+ if ($S() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = xw(), r = t - bw.startTimeStamp, i = bw.screenHeight - n.height, a = bw.screenAngle - n.angle;
+ Math.abs(a) % 180 && bw.screenWidth - n.height < vw && (bw.screenWidth = n.width, bw.screenHeight = n.height, bw.screenAngle = n.angle, i = 0), r > yw && (window.clearTimeout(bw.screenTimeout), bw.screenTimeout = window.setTimeout(() => {
+ let e = Tw(document.hasFocus() ? MS() : null), t = xw();
+ Math.abs(bw.screenAngle - t.angle) % 180 || bw.isOpen && e || (bw.screenWidth = t.width, bw.screenHeight = t.height, bw.screenAngle = t.angle, bw.isOpen = !1);
+ }, yw)), r <= yw && i >= vw && (bw.endTimeStamp = t), bw.isOpen = i >= vw;
}
-function woe() {
- let e = vw(), t = _w.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !_w.isOpen) {
- let e = _w.screenWidth;
- _w.screenWidth = _w.screenHeight, _w.screenHeight = e;
+function xoe() {
+ let e = xw(), t = bw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !bw.isOpen) {
+ let e = bw.screenWidth;
+ bw.screenWidth = bw.screenHeight, bw.screenHeight = e;
}
- _w.isOpen || (_w.screenAngle = e.angle);
+ bw.isOpen || (bw.screenAngle = e.angle);
}
-function Toe(e) {
- let t = Sw(G(e)), n = performance.now(), r = vw(), i = _w.screenHeight - r.height;
- i < hw && t && (_w.screenWidth = r.width, _w.screenHeight = r.height, _w.screenAngle = r.angle, _w.startTimeStamp = n), t && window.clearTimeout(_w.screenTimeout), i >= hw && t && (_w.endTimeStamp = n);
+function Soe(e) {
+ let t = Tw(K(e)), n = performance.now(), r = xw(), i = bw.screenHeight - r.height;
+ i < vw && t && (bw.screenWidth = r.width, bw.screenHeight = r.height, bw.screenAngle = r.angle, bw.startTimeStamp = n), t && window.clearTimeout(bw.screenTimeout), i >= vw && t && (bw.endTimeStamp = n);
}
-function bw() {
- let e = vw();
- TS(window.visualViewport, "resize", JS() ? yw : Coe), TS(window.screen.orientation, "change", woe), TS(window, "focus", Toe, {
+function Cw() {
+ let e = xw();
+ OS(window.visualViewport, "resize", ZS() ? Sw : boe), OS(window.screen.orientation, "change", xoe), OS(window, "focus", Soe, {
capture: !0,
passive: !0
- }), _w.screenWidth = e.width, _w.screenHeight = e.height, _w.screenAngle = e.angle;
+ }), bw.screenWidth = e.width, bw.screenHeight = e.height, bw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? TS(document, "DOMContentLoaded", bw) : bw());
-function xw() {
- let e = mw("viewport");
- return XS() && e?.includes("overlays-content") ? !1 : _w.isOpen ? !0 : _w.startTimeStamp ? _w.endTimeStamp >= _w.startTimeStamp ? !0 : performance.now() - _w.startTimeStamp <= gw ? _w.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", Cw) : Cw());
+function ww() {
+ let e = _w("viewport");
+ return $S() && e?.includes("overlays-content") ? !1 : bw.isOpen ? !0 : bw.startTimeStamp ? bw.endTimeStamp >= bw.startTimeStamp ? !0 : performance.now() - bw.startTimeStamp <= yw ? bw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Sw(e) {
- if (!(e instanceof Element) || !PS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !Soe.has(e.type);
+function Tw(e) {
+ if (!(e instanceof Element) || !LS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !yoe.has(e.type);
return t || n || r;
}
-function Cw(e) {
- return GS() ? e.metaKey : e.ctrlKey;
+function Ew(e) {
+ return JS() ? e.metaKey : e.ctrlKey;
}
-function ww() {
- return _w.isOpen;
+function Dw() {
+ return bw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Eoe = F.useInsertionEffect ?? LS;
-function Tw(e) {
+var Coe = F.useInsertionEffect ?? BS;
+function Ow(e) {
let t = (0, F.useRef)(null);
- return Eoe(() => {
+ return Coe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23505,10 +23509,10 @@ function Tw(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Ew(e, t, n, r) {
- let i = Tw(n), a = n == null;
+function kw(e, t, n, r) {
+ let i = Ow(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return TS(e.current, t, i, r);
+ if (!(a || e.current == null)) return OS(e.current, t, i, r);
}, [
e,
t,
@@ -23517,16 +23521,16 @@ function Ew(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Dw(e, t) {
+function Aw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = LC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = BC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var Doe = /* @__PURE__ */ new Set([
+var woe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23537,7 +23541,7 @@ var Doe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Ooe = /* @__PURE__ */ new Set([
+]), Toe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23558,19 +23562,19 @@ var Doe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function koe(e) {
+function Eoe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Doe.has(t.script);
+ if (t.script) return woe.has(t.script);
}
let t = e.split("-")[0];
- return Ooe.has(t);
+ return Toe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Ow = Symbol.for("react-aria.i18n.locale");
-function kw() {
- let e = typeof window < "u" && window[Ow] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var jw = Symbol.for("react-aria.i18n.locale");
+function Mw() {
+ let e = typeof window < "u" && window[jw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23578,31 +23582,31 @@ function kw() {
}
return {
locale: e,
- direction: koe(e) ? "rtl" : "ltr"
+ direction: Eoe(e) ? "rtl" : "ltr"
};
}
-var Aw = kw(), jw = /* @__PURE__ */ new Set();
-function Mw() {
- Aw = kw();
- for (let e of jw) e(Aw);
+var Nw = Mw(), Pw = /* @__PURE__ */ new Set();
+function Fw() {
+ Nw = Mw();
+ for (let e of Pw) e(Nw);
}
-function Aoe() {
- let e = aC(), [t, n] = (0, F.useState)(Aw);
- return (0, F.useEffect)(() => (jw.size === 0 && window.addEventListener("languagechange", Mw), jw.add(n), () => {
- jw.delete(n), jw.size === 0 && window.removeEventListener("languagechange", Mw);
+function Doe() {
+ let e = cC(), [t, n] = (0, F.useState)(Nw);
+ return (0, F.useEffect)(() => (Pw.size === 0 && window.addEventListener("languagechange", Fw), Pw.add(n), () => {
+ Pw.delete(n), Pw.size === 0 && window.removeEventListener("languagechange", Fw);
}), []), e ? {
- locale: typeof window < "u" && window[Ow] || "en-US",
+ locale: typeof window < "u" && window[jw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var joe = /*#__PURE__*/ F.createContext(null);
-function Nw() {
- let e = Aoe();
- return (0, F.useContext)(joe) || e;
+var Ooe = /*#__PURE__*/ F.createContext(null);
+function Iw() {
+ let e = Doe();
+ return (0, F.useContext)(Ooe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Moe = Symbol.for("react-aria.i18n.locale"), Noe = Symbol.for("react-aria.i18n.strings"), Pw = void 0, Fw = class e {
+var koe = Symbol.for("react-aria.i18n.locale"), Aoe = Symbol.for("react-aria.i18n.strings"), Lw = void 0, Rw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23613,38 +23617,38 @@ var Moe = Symbol.for("react-aria.i18n.locale"), Noe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Poe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = joe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Moe];
- if (Pw === void 0) {
- let t = window[Noe];
+ let n = window[koe];
+ if (Lw === void 0) {
+ let t = window[Aoe];
if (!t) return null;
- Pw = {};
- for (let r in t) Pw[r] = new e({ [n]: t[r] }, n);
+ Lw = {};
+ for (let r in t) Lw[r] = new e({ [n]: t[r] }, n);
}
- let r = Pw?.[t];
+ let r = Lw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Poe(e, t, n = "en-US") {
+function joe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Foe(e), i = Ioe(e);
+ let r = Moe(e), i = Noe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function Foe(e) {
+function Moe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Ioe(e) {
+function Noe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Iw = /* @__PURE__ */ new Map(), Lw = /* @__PURE__ */ new Map(), Loe = class {
+var zw = /* @__PURE__ */ new Map(), Bw = /* @__PURE__ */ new Map(), Poe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23655,36 +23659,36 @@ var Iw = /* @__PURE__ */ new Map(), Lw = /* @__PURE__ */ new Map(), Loe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Iw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Iw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = zw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), zw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Lw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Lw.set(this.locale, t)), t.format(e);
+ let t = Bw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Bw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, Rw = /* @__PURE__ */ new WeakMap();
-function Roe(e) {
- let t = Rw.get(e);
- return t || (t = new Fw(e), Rw.set(e, t)), t;
+}, Vw = /* @__PURE__ */ new WeakMap();
+function Foe(e) {
+ let t = Vw.get(e);
+ return t || (t = new Rw(e), Vw.set(e, t)), t;
}
-function zoe(e, t) {
- return t && Fw.getGlobalDictionaryForPackage(t) || Roe(e);
+function Ioe(e, t) {
+ return t && Rw.getGlobalDictionaryForPackage(t) || Foe(e);
}
-function zw(e, t) {
- let { locale: n } = Nw(), r = zoe(e, t);
- return (0, F.useMemo)(() => new Loe(n, r), [n, r]);
+function Hw(e, t) {
+ let { locale: n } = Iw(), r = Ioe(e, t);
+ return (0, F.useMemo)(() => new Poe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Boe = /* @__PURE__ */ new Set(["id"]), Voe = /* @__PURE__ */ new Set([
+var Loe = /* @__PURE__ */ new Set(["id"]), Roe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Hoe = /* @__PURE__ */ new Set([
+]), zoe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23692,60 +23696,60 @@ var Boe = /* @__PURE__ */ new Set(["id"]), Voe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Uoe = /* @__PURE__ */ new Set([
+]), Boe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Bw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Woe = /^(data-.*)$/;
-function Vw(e, t = {}) {
+]), Uw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Voe = /^(data-.*)$/;
+function Ww(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Boe.has(t) || n && Voe.has(t) || r && Hoe.has(t) || i && Uoe.has(t) || a && (Bw.has(t) || t.endsWith("Capture") && Bw.has(t.slice(0, -7))) || o?.has(t) || Woe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Loe.has(t) || n && Roe.has(t) || r && zoe.has(t) || i && Boe.has(t) || a && (Uw.has(t) || t.endsWith("Capture") && Uw.has(t.slice(0, -7))) || o?.has(t) || Voe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Hw = "default", Uw = "", Ww = /* @__PURE__ */ new WeakMap();
-function Gw(e) {
- if (qS() && JS()) {
- if (Hw === "default") {
- let t = xS(e);
- Uw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Hw = "disabled";
+var Gw = "default", Kw = "", qw = /* @__PURE__ */ new WeakMap();
+function Jw(e) {
+ if (XS() && ZS()) {
+ if (Gw === "default") {
+ let t = wS(e);
+ Kw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Gw = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Ww.set(e, e.style[t]), e.style[t] = "none";
+ qw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Kw(e) {
- if (qS() && JS()) {
- if (Hw !== "disabled") return;
- Hw = "restoring", setTimeout(() => {
- jC(() => {
- if (Hw === "restoring") {
- let t = xS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Uw || ""), Uw = "", Hw = "default";
+function Yw(e) {
+ if (XS() && ZS()) {
+ if (Gw !== "disabled") return;
+ Gw = "restoring", setTimeout(() => {
+ PC(() => {
+ if (Gw === "restoring") {
+ let t = wS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Kw || ""), Kw = "", Gw = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Ww.has(e)) {
- let t = Ww.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Ww.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && qw.has(e)) {
+ let t = qw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), qw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var qw = /* @__PURE__ */ new WeakMap();
-function Jw(e) {
- let t = xS(e), n = qw.get(t);
- return n ??= mw("csp-nonce", t), n !== void 0 && qw.set(t, n), n;
+var Xw = /* @__PURE__ */ new WeakMap();
+function Zw(e) {
+ let t = wS(e), n = Xw.get(t);
+ return n ??= _w("csp-nonce", t), n !== void 0 && Xw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var Yw = F.createContext({ register: () => {} });
-Yw.displayName = "PressResponderContext";
+var Qw = F.createContext({ register: () => {} });
+Qw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Xw() {
+function $w() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23771,15 +23775,15 @@ function Xw() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Goe(e) {
- let t = (0, F.useContext)(Yw);
+function Hoe(e) {
+ let t = (0, F.useContext)(Qw);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = K(i, e), n();
+ e = q(i, e), n();
}
- return YC(t, e.ref), e;
+ return QC(t, e.ref), e;
}
-var Zw = class {
+var eT = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23792,9 +23796,9 @@ var Zw = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Qw = Symbol("linkClicked"), $w = "react-aria-pressable-style", eT = "data-react-aria-pressable";
-function tT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Goe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, tT = Symbol("linkClicked"), nT = "react-aria-pressable-style", rT = "data-react-aria-pressable";
+function iT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Hoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23804,12 +23808,12 @@ function tT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Xw(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = $w(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Zw("pressstart", t, e);
+ let n = new eT("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23823,11 +23827,11 @@ function tT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Zw("pressend", r, e);
+ let t = new eT("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Zw("press", r, e);
+ let n = new eT("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23836,19 +23840,19 @@ function tT(e) {
i,
n,
t
- ]), x = Tw(b), S = Tw((0, F.useCallback)((e, t) => {
+ ]), x = Ow(b), S = Ow((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Zw("pressup", t, e);
+ let r = new eT("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(iT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Kw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(sT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Yw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23856,7 +23860,7 @@ function tT(e) {
d,
v,
b
- ]), w = Tw(C);
+ ]), w = Ow(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23873,39 +23877,39 @@ function tT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- zS(n, t), o(RS(n));
+ HS(n, t), o(VS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (rT(t.nativeEvent, t.currentTarget) && OS(t.currentTarget, G(t))) {
- aT(G(t), t.key) && t.preventDefault();
+ if (oT(t.nativeEvent, t.currentTarget) && jS(t.currentTarget, K(t))) {
+ cT(K(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(xS(t.currentTarget), "keyup", NC((t) => {
- rT(t, i) && !t.repeat && OS(i, G(t)) && e.target && S(iT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && GS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(wS(t.currentTarget), "keyup", IC((t) => {
+ oT(t, i) && !t.repeat && jS(i, K(t)) && e.target && S(sT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && JS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || OS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !$S.isOpening) {
+ if ((!t || jS(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !nC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || ZS(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || eC(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(iT(t.currentTarget, t), r), a = x(iT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(sT(t.currentTarget, t), r), a = x(sT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && rT(t, e.target)) {
- aT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = OS(e.target, n);
- x(iT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && nT(e.target) && OS(e.target, n) && !t[Qw] && (t[Qw] = !0, $S(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && oT(t, e.target)) {
+ cT(K(t), t.key) && t.preventDefault();
+ let n = K(t), r = jS(e.target, n);
+ x(sT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && aT(e.target) && jS(e.target, n) && !t[tT] && (t[tT] = !0, nC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23914,39 +23918,39 @@ function tT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !OS(t.currentTarget, G(t))) return;
- if (Oae(t.nativeEvent)) {
+ if (t.button !== 0 || !jS(t.currentTarget, K(t))) return;
+ if (Tae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Gw(e.target), i = y(t, e.pointerType);
- let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(xS(t.currentTarget), "pointerup", n, !1), _(xS(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Jw(e.target), i = y(t, e.pointerType);
+ let a = K(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(wS(t.currentTarget), "pointerup", n, !1), _(wS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (OS(t.currentTarget, G(t)) && t.button === 0) {
+ if (jS(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = Tae(t.target);
+ let n = Sae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- OS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ jS(t.currentTarget, K(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(iT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(sT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(iT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(sT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (OS(e.target, G(t)) && e.pointerType != null) {
+ if (jS(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (bS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (CS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23956,7 +23960,7 @@ function tT(e) {
w(e);
};
t.onDragStart = (e) => {
- OS(e.currentTarget, G(e)) && w(e);
+ jS(e.currentTarget, K(e)) && w(e);
};
}
return t;
@@ -23973,14 +23977,14 @@ function tT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = xS(f.current);
- if (!e || !e.head || e.getElementById($w)) return;
+ let e = wS(f.current);
+ if (!e || !e.head || e.getElementById(nT)) return;
let t = e.createElement("style");
- t.id = $w;
- let n = Jw(e);
+ t.id = nT;
+ let n = Zw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${eT}] {
+ [${rT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23988,23 +23992,23 @@ function tT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Kw(e.target ?? void 0);
+ d || Yw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [eT]: !0 })
+ pressProps: q(p, O, { [rT]: !0 })
};
}
-function nT(e) {
+function aT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function rT(e, t) {
+function oT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof SS(i).HTMLInputElement && !oT(i, n) || i instanceof SS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && nT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof TS(i).HTMLInputElement && !lT(i, n) || i instanceof TS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && aT(i)) && n !== "Enter");
}
-function iT(e, t) {
+function sT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24017,13 +24021,13 @@ function iT(e, t) {
key: t.key
};
}
-function Koe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !nT(e);
+function Uoe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !aT(e);
}
-function aT(e, t) {
- return GS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !oT(e, t) : Koe(e);
+function cT(e, t) {
+ return JS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !lT(e, t) : Uoe(e);
}
-var qoe = /* @__PURE__ */ new Set([
+var Woe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24034,11 +24038,11 @@ var qoe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function oT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : qoe.has(e.type);
+function lT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Woe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Joe(e, t) {
+function Goe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24060,7 +24064,7 @@ function Joe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = tT({
+ let { pressProps: _, isPressed: v } = iT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24070,12 +24074,12 @@ function Joe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = ZC(e, t);
+ }), { focusableProps: y } = ew(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Vw(e, { labelable: !0 }));
+ let b = q(y, _, Ww(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: K(g, b, {
+ buttonProps: q(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -24086,7 +24090,7 @@ function Joe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Yoe = class {
+var Koe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24111,7 +24115,7 @@ var Yoe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!OS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!jS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24125,7 +24129,7 @@ var Yoe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return OS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return jS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24189,44 +24193,44 @@ var Yoe = class {
return null;
}
};
-function sT(e, t, n, r) {
- return DS() ? new Yoe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function uT(e, t, n, r) {
+ return AS() ? new Koe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var cT = /*#__PURE__*/ F.createContext(null), lT = "react-aria-focus-scope-restore", uT = null;
-function dT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(cT) || {}, l = (0, F.useMemo)(() => new wT({ scopeRef: s }), [s]);
- LS(() => {
- let e = c || TT.root;
- if (TT.getTreeNode(e.scopeRef) && uT && !_T(uT, e.scopeRef)) {
- let t = TT.getTreeNode(uT);
+var dT = /*#__PURE__*/ F.createContext(null), fT = "react-aria-focus-scope-restore", pT = null;
+function mT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(dT) || {}, l = (0, F.useMemo)(() => new DT({ scopeRef: s }), [s]);
+ BS(() => {
+ let e = c || OT.root;
+ if (OT.getTreeNode(e.scopeRef) && pT && !bT(pT, e.scopeRef)) {
+ let t = OT.getTreeNode(pT);
t && (e = t);
}
- e.addChild(l), TT.addNode(l);
- }, [l, c]), LS(() => {
- let e = TT.getTreeNode(s);
+ e.addChild(l), OT.addNode(l);
+ }, [l, c]), BS(() => {
+ let e = OT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), LS(() => {
+ }, [n]), BS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(lT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(fT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(lT, n);
+ for (let e of t) e.removeEventListener(fT, n);
};
- }, [t]), nse(s, r, n), $oe(s, n), rse(s, r, n), tse(s, i), (0, F.useEffect)(() => {
- let e = kS(xS(s.current ? s.current[0] : void 0)), t = null;
- if (hT(e, s.current)) {
- for (let n of TT.traverse()) n.scopeRef && hT(e, n.scopeRef.current) && (t = n);
- t === TT.getTreeNode(s) && (uT = t.scopeRef);
- }
- }, [s]), LS(() => () => {
- let e = TT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== uT && !_T(s, uT) || e && !TT.getTreeNode(e) || (uT = e), TT.removeTreeNode(s);
+ }, [t]), $oe(s, r, n), Xoe(s, n), ese(s, r, n), Qoe(s, i), (0, F.useEffect)(() => {
+ let e = MS(wS(s.current ? s.current[0] : void 0)), t = null;
+ if (vT(e, s.current)) {
+ for (let n of OT.traverse()) n.scopeRef && vT(e, n.scopeRef.current) && (t = n);
+ t === OT.getTreeNode(s) && (pT = t.scopeRef);
+ }
+ }, [s]), BS(() => () => {
+ let e = OT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== pT && !bT(s, pT) || e && !OT.getTreeNode(e) || (pT = e), OT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Xoe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => qoe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(cT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(dT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24236,154 +24240,154 @@ function dT(e) {
ref: o
}));
}
-function Xoe(e) {
+function qoe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || kS(xS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = CT(fT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || MS(wS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = ET(hT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = hT(s, n) ? s : c;
+ l.currentNode = vT(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && vT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && xT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || kS(xS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = CT(fT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || MS(wS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = ET(hT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = hT(s, n) ? s : c;
+ l.currentNode = vT(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && vT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && xT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = CT(fT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = ET(hT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && vT(o, !0), o;
+ return o && xT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = CT(fT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = ET(hT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && vT(o, !0), o;
+ return o && xT(o, !0), o;
}
};
}
-function fT(e) {
+function hT(e) {
return e[0].parentElement;
}
-function pT(e) {
- let t = TT.getTreeNode(uT);
+function gT(e) {
+ let t = OT.getTreeNode(pT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Zoe(e) {
- if (!e.form) return Array.from(xS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = SS(e);
+function Joe(e) {
+ if (!e.form) return Array.from(wS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = TS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Qoe(e) {
+function Yoe(e) {
if (e.checked) return !0;
- let t = Zoe(e);
+ let t = Joe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function $oe(e, t) {
+function Xoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- LS(() => {
+ BS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = xS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !pT(e) || t.isComposing) return;
- let n = kS(a), r = e.current;
- if (!r || !hT(n, r)) return;
- let i = CT(fT(r), { tabbable: !0 }, r);
+ let a = wS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !gT(e) || t.isComposing) return;
+ let n = MS(a), r = e.current;
+ if (!r || !vT(n, r)) return;
+ let i = ET(hT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (vT(o, !0), o instanceof SS(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (xT(o, !0), o instanceof TS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!uT || _T(uT, e)) && hT(G(t), e.current) ? (uT = e, n.current = G(t)) : pT(e) && !gT(G(t), e) ? n.current ? vT(n.current) : uT && uT.current && bT(uT.current) : pT(e) && (n.current = G(t));
+ (!pT || bT(pT, e)) && vT(K(t), e.current) ? (pT = e, n.current = K(t)) : gT(e) && !yT(K(t), e) ? n.current ? xT(n.current) : pT && pT.current && CT(pT.current) : gT(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = xC(), i = (r === "virtual" || r === null) && XS() && YS(), o = kS(a);
- if (!i && o && pT(e) && !gT(o, e)) {
- uT = e;
- let r = G(t);
- r && r.isConnected ? (n.current = r, vT(n.current)) : uT.current && bT(uT.current);
+ let r = wC(), i = (r === "virtual" || r === null) && $S() && QS(), o = MS(a);
+ if (!i && o && gT(e) && !yT(o, e)) {
+ pT = e;
+ let r = K(t);
+ r && r.isConnected ? (n.current = r, xT(n.current)) : pT.current && CT(pT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), LS(() => () => {
+ }, [e, t]), BS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function mT(e) {
- return gT(e);
+function _T(e) {
+ return yT(e);
}
-function hT(e, t) {
- return !e || !t ? !1 : t.some((t) => OS(t, e));
+function vT(e, t) {
+ return !e || !t ? !1 : t.some((t) => jS(t, e));
}
-function gT(e, t = null) {
+function yT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of TT.traverse(TT.getTreeNode(t))) if (n && hT(e, n.current)) return !0;
+ for (let { scopeRef: n } of OT.traverse(OT.getTreeNode(t))) if (n && vT(e, n.current)) return !0;
return !1;
}
-function ese(e) {
- return gT(e, uT);
+function Zoe(e) {
+ return yT(e, pT);
}
-function _T(e, t) {
- let n = TT.getTreeNode(t)?.parent;
+function bT(e, t) {
+ let n = OT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function vT(e, t = !1) {
+function xT(e, t = !1) {
if (e != null && !t) try {
- MC(e);
+ FC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function yT(e, t = !0) {
- let n = e[0].previousElementSibling, r = fT(e), i = CT(r, { tabbable: t }, e);
+function ST(e, t = !0) {
+ let n = e[0].previousElementSibling, r = hT(e), i = ET(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = fT(e), i = CT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = hT(e), i = ET(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function bT(e, t = !0) {
- vT(yT(e, t));
+function CT(e, t = !0) {
+ xT(ST(e, t));
}
-function tse(e, t) {
+function Qoe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (uT = e, !hT(kS(xS(e.current ? e.current[0] : void 0)), uT.current) && e.current && bT(e.current)), n.current = !1;
+ n.current && (pT = e, !vT(MS(wS(e.current ? e.current[0] : void 0)), pT.current) && e.current && CT(e.current)), n.current = !1;
}, [e]);
}
-function nse(e, t, n) {
- LS(() => {
+function $oe(e, t, n) {
+ BS(() => {
if (t || n) return;
- let r = e.current, i = xS(r ? r[0] : void 0), a = (t) => {
- let n = G(t);
- hT(n, e.current) ? uT = e : mT(n) || (uT = null);
+ let r = e.current, i = wS(r ? r[0] : void 0), a = (t) => {
+ let n = K(t);
+ vT(n, e.current) ? pT = e : _T(n) || (pT = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24394,43 +24398,43 @@ function nse(e, t, n) {
n
]);
}
-function xT(e) {
- let t = TT.getTreeNode(uT);
+function wT(e) {
+ let t = OT.getTreeNode(pT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function rse(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? kS(xS(e.current ? e.current[0] : void 0)) : null);
- LS(() => {
- let r = e.current, i = xS(r ? r[0] : void 0);
+function ese(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? MS(wS(e.current ? e.current[0] : void 0)) : null);
+ BS(() => {
+ let r = e.current, i = wS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!uT || _T(uT, e)) && hT(kS(i), e.current) && (uT = e);
+ (!pT || bT(pT, e)) && vT(MS(i), e.current) && (pT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), LS(() => {
- let r = xS(e.current ? e.current[0] : void 0);
+ }, [e, n]), BS(() => {
+ let r = wS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !pT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !gT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!gT(n, e) || !xT(e)) return;
- let i = TT.getTreeNode(e);
+ if (!yT(n, e) || !wT(e)) return;
+ let i = OT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = CT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = ET(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !gT(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !yT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (gT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? vT(s, !0) : mT(a) ? vT(a, !0) : n.blur();
+ while (yT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? xT(s, !0) : _T(a) ? xT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24440,31 +24444,31 @@ function rse(e, t, n) {
e,
t,
n
- ]), LS(() => {
- let n = xS(e.current ? e.current[0] : void 0);
+ ]), BS(() => {
+ let n = wS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = TT.getTreeNode(e);
+ let i = OT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = TT.getTreeNode(e);
+ let r = OT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = kS(n);
- if (t && i && (a && gT(a, e) || a === n.body && xT(e))) {
- let t = TT.clone();
+ let i = r.nodeToRestore, a = MS(n);
+ if (t && i && (a && yT(a, e) || a === n.body && wT(e))) {
+ let t = OT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- ST(n.nodeToRestore);
+ TT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && TT.getTreeNode(n.scopeRef)) {
- let e = yT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && OT.getTreeNode(n.scopeRef)) {
+ let e = ST(n.scopeRef.current, !0);
if (e) {
- ST(e);
+ TT(e);
return;
}
}
@@ -24476,21 +24480,21 @@ function rse(e, t, n) {
};
}, [e, t]);
}
-function ST(e) {
- e.dispatchEvent(new CustomEvent(lT, {
+function TT(e) {
+ e.dispatchEvent(new CustomEvent(fT, {
bubbles: !0,
cancelable: !0
- })) && vT(e);
+ })) && xT(e);
}
-function CT(e, t, n) {
- let r = t?.tabbable ? FS : PS, i = xS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = sT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return OS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Qoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || hT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function ET(e, t, n) {
+ let r = t?.tabbable ? RS : LS, i = wS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = uT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return jS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Yoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || vT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var ise = class e {
+var tse = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new wT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new DT({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24501,7 +24505,7 @@ var ise = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new wT({ scopeRef: e });
+ let i = new DT({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24512,7 +24516,7 @@ var ise = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && hT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && vT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24524,7 +24528,7 @@ var ise = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, wT = class {
+}, DT = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24534,13 +24538,13 @@ var ise = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, TT = new ise(), ET = 7e3, DT = null;
-function OT(e, t = "assertive", n = ET) {
- DT ? DT.announce(e, t, n) : (DT = new ase(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? DT.announce(e, t, n) : setTimeout(() => {
- DT?.isAttached() && DT?.announce(e, t, n);
+}, OT = new tse(), kT = 7e3, AT = null;
+function jT(e, t = "assertive", n = kT) {
+ AT ? AT.announce(e, t, n) : (AT = new nse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? AT.announce(e, t, n) : setTimeout(() => {
+ AT?.isAttached() && AT?.announce(e, t, n);
}, 100));
}
-var ase = class {
+var nse = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24565,7 +24569,7 @@ var ase = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = ET) {
+ announce(e, t = "assertive", n = kT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24577,8 +24581,8 @@ var ase = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function kT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Tw(e);
+function MT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ow(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24587,30 +24591,30 @@ function kT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function AT(e, t) {
+function NT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function jT(e, t) {
+function PT(e, t) {
let n = e;
- for (AT(n, t) && (n = n.parentElement); n && !AT(n, t);) n = n.parentElement;
+ for (NT(n, t) && (n = n.parentElement); n && !NT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function MT(e, t) {
+function FT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (AT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (NT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function NT(e, t, n = {}) {
- e !== t && ose(e, t, t.getBoundingClientRect(), n);
+function IT(e, t, n = {}) {
+ e !== t && rse(e, t, t.getBoundingClientRect(), n);
}
-function ose(e, t, n, r = {}) {
+function rse(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- qS() && JS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ XS() && ZS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24631,7 +24635,7 @@ function ose(e, t, n, r = {}) {
top: o
});
}
-function PT(e, t = {}) {
+function LT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24644,45 +24648,45 @@ function PT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = MT(e, !0);
- for (let t of i) NT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = FT(e, !0);
+ for (let t of i) IT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? MT(n, !0) : [];
- for (let e of i) NT(e, n, {
+ i = n ? FT(n, !0) : [];
+ for (let e of i) IT(e, n, {
block: "center",
inline: "center"
});
- for (let t of MT(e, !0)) NT(t, e);
+ for (let t of FT(e, !0)) IT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var sse = 0, FT = /* @__PURE__ */ new Map();
-function IT(e) {
+var ise = 0, RT = /* @__PURE__ */ new Map();
+function zT(e) {
let [t, n] = (0, F.useState)();
- return LS(() => {
+ return BS(() => {
if (!e) return;
- let t = FT.get(e);
+ let t = RT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${sse++}`;
+ let r = `react-aria-description-${ise++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, FT.set(e, t);
+ }, RT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), FT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), RT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function LT(e, t, n) {
- let r = Tw((e) => {
+function BT(e, t, n) {
+ let r = Ow((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24693,21 +24697,21 @@ function LT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function RT(e, t, n) {
+function VT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- LS(() => {
+ BS(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(lse(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(ose(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Tw(() => {
+ let a = (0, F.useRef)(!1), o = Ow(() => {
a.current || t.resetValidation();
- }), s = Tw((e) => {
+ }), s = Ow((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && use(r) === n.current && (i ? i() : n.current?.focus(), SC("keyboard")), e.preventDefault();
- }), c = Tw(() => {
+ !e.defaultPrevented && n && r && sse(r) === n.current && (i ? i() : n.current?.focus(), TC("keyboard")), e.preventDefault();
+ }), c = Ow(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24715,13 +24719,13 @@ function RT(e, t, n) {
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && G(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && K(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function cse(e) {
+function ase(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24737,14 +24741,14 @@ function cse(e) {
valid: t.valid
};
}
-function lse(e) {
+function ose(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: cse(e),
+ validationDetails: ase(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function use(e) {
+function sse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24752,23 +24756,23 @@ function use(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function dse(e = !0) {
+function cse(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return LS(() => {
+ return BS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function zT(e = !0) {
- let t = LC(), [n, r] = dse(e);
+function HT(e = !0) {
+ let t = BC(), [n, r] = cse(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var BT = {
+var UT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24780,18 +24784,18 @@ var BT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, VT = {
- ...BT,
+}, WT = {
+ ...UT,
customError: !0,
valid: !1
-}, HT = {
+}, GT = {
isInvalid: !1,
- validationDetails: BT,
+ validationDetails: UT,
validationErrors: []
-}, fse = (0, F.createContext)({}), UT = "__reactAriaFormValidationState";
-function WT(e) {
+}, lse = (0, F.createContext)({}), KT = "__reactAriaFormValidationState";
+function qT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[UT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[KT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24800,70 +24804,70 @@ function WT(e) {
commitValidation: a
};
}
- return pse(e);
+ return use(e);
}
-function pse(e) {
+function use(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: VT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : KT(mse(o, i)), [o, i]);
+ validationDetails: WT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : YT(dse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(fse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => GT(u[e])) : GT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(lse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => JT(u[e])) : JT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => KT(m ? [] : d), [m, d]), _ = (0, F.useRef)(HT), [v, y] = (0, F.useState)(HT), b = (0, F.useRef)(HT), x = () => {
+ let g = (0, F.useMemo)(() => YT(m ? [] : d), [m, d]), _ = (0, F.useRef)(GT), [v, y] = (0, F.useState)(GT), b = (0, F.useRef)(GT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- qT(e, b.current) || (b.current = e, y(e));
+ XT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || HT,
+ realtimeValidation: c || g || l || a || GT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !qT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !XT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = HT;
- qT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = GT;
+ XT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function GT(e) {
+function JT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function mse(e, t) {
+function dse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return GT(n);
+ if (n && typeof n != "boolean") return JT(n);
}
return [];
}
-function KT(e) {
+function YT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: VT
+ validationDetails: WT
} : null;
}
-function qT(e, t) {
+function XT(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function JT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = WT({
+function ZT(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = qT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- RT(e, b, n);
+ VT(e, b, n);
let w = (e) => {
- e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = tT({
+ e.stopPropagation(), t.setSelected(K(e).checked);
+ }, { pressProps: T, isPressed: E } = iT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24871,7 +24875,7 @@ function JT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = tT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = iT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24888,16 +24892,16 @@ function JT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [UT]: i } = e, { commitValidation: a } = i || b;
+ let { [KT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = ZC(e, n), j = K(T, A), M = Vw(e, { labelable: !0 });
- LT(n, t.defaultSelected, t.setSelected);
- let ee = zT(), N = zT();
+ }), { focusableProps: A } = ew(e, n), j = q(T, A), M = Ww(e, { labelable: !0 });
+ BT(n, t.defaultSelected, t.setSelected);
+ let ee = HT(), N = HT();
return {
- labelProps: K(k, { onClick: (e) => e.preventDefault() }),
- inputProps: K(M, {
+ labelProps: q(k, { onClick: (e) => e.preventDefault() }),
+ inputProps: q(M, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
@@ -24930,12 +24934,12 @@ function JT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function YT(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = JT(e, t, n), { isIndeterminate: m } = e;
+function QT(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = ZT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: K(r, (0, F.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: q(r, (0, F.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -24949,17 +24953,17 @@ function YT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var hse = /* @__PURE__ */ new WeakMap();
+var fse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function XT(e) {
+function $T(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = LC(t);
- let o = LC(), s = {};
+ t = BC(t);
+ let o = BC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Dw({
+ let c = Aw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24970,19 +24974,19 @@ function XT(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function ZT(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = XT(e), s = RC([
+function eE(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = $T(e), s = VC([
!!t,
!!n,
r,
i
- ]), c = RC([
+ ]), c = VC([
!!t,
!!n,
r,
i
]);
- return o = K(o, { "aria-describedby": [
+ return o = q(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -24994,26 +24998,26 @@ function ZT(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function QT(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Xw(), c = (0, F.useCallback)((e) => {
- OS(e.currentTarget, G(e)) && a.current.isFocusWithin && !OS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function tE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = $w(), c = (0, F.useCallback)((e) => {
+ jS(e.currentTarget, K(e)) && a.current.isFocusWithin && !jS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = BS(c), u = (0, F.useCallback)((e) => {
- if (!OS(e.currentTarget, G(e))) return;
- let t = G(e), n = xS(t), s = kS(n);
+ ]), l = US(c), u = (0, F.useCallback)((e) => {
+ if (!jS(e.currentTarget, K(e))) return;
+ let t = K(e), n = wS(t), s = MS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = G(e);
- if (a.current.isFocusWithin && !OS(t, r)) {
+ let r = K(e);
+ if (a.current.isFocusWithin && !jS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- zS(e, t);
- let i = RS(e);
+ HS(e, t);
+ let i = VS(e);
c(i);
}
}, { capture: !0 });
@@ -25034,14 +25038,14 @@ function QT(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var gse = F.useInsertionEffect ?? F.useLayoutEffect;
-function $T(e, t, n) {
+var pse = F.useInsertionEffect ?? F.useLayoutEffect;
+function nE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- gse(() => {
+ pse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25051,8 +25055,8 @@ function $T(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function eE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = $T(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function rE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = nE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25067,26 +25071,26 @@ function eE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function _se(e, t, n) {
- let r = eE({
+function mse(e, t, n) {
+ let r = rE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = hse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = fse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = WT({
+ let { realtimeValidation: l } = qT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(HT), d = () => {
+ }), u = (0, F.useRef)(GT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = YT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = QT({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25094,7 +25098,7 @@ function _se(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [UT]: {
+ [KT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25117,10 +25121,10 @@ function _se(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function tE(e, t = -Infinity, n = Infinity) {
+function iE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function nE(e, t) {
+function aE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25133,23 +25137,23 @@ function nE(e, t) {
}
return n;
}
-function rE(e, t, n, r) {
+function oE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = nE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(nE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(nE((n - t) / r, r)) * r), a = nE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = aE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(aE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(aE((n - t) / r, r)) * r), a = aE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var iE = /* @__PURE__ */ new Map(), aE = !1;
+var sE = /* @__PURE__ */ new Map(), cE = !1;
try {
- aE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ cE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var vse = class {
+var hse = class {
constructor(e, t = {}) {
- this.numberFormatter = yse(e, t), this.options = t;
+ this.numberFormatter = gse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !aE && this.options.signDisplay != null ? bse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !cE && this.options.signDisplay != null ? _se(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25181,21 +25185,21 @@ var vse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !aE && this.options.signDisplay != null && (e = {
+ return !cE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function yse(e, t = {}) {
+function gse(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (iE.has(r)) return iE.get(r);
+ if (sE.has(r)) return sE.get(r);
let i = new Intl.NumberFormat(e, t);
- return iE.set(r, i), i;
+ return sE.set(r, i), i;
}
-function bse(e, t, n) {
+function _se(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25208,12 +25212,12 @@ function bse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function oE(e) {
+function lE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = Xw(), s = Tw((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = $w(), s = Ow((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25235,8 +25239,8 @@ function oE(e) {
t,
n,
i
- ])), c = Tw((0, F.useCallback)((e, t) => {
- Kw(), i.current.didMove && r?.({
+ ])), c = Ow((0, F.useCallback)((e, t) => {
+ Yw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25247,7 +25251,7 @@ function oE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Gw(), i.current.didMove = !1;
+ Jw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25262,7 +25266,7 @@ function oE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = SS(G(e));
+ let a = TS(K(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25272,7 +25276,7 @@ function oE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = SS(G(e));
+ let o = TS(K(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25305,7 +25309,7 @@ function oE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var sE = {
+var uE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25317,39 +25321,39 @@ var sE = {
width: "1px",
whiteSpace: "nowrap"
};
-function cE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = QT({
+function dE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = tE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...sE,
+ ...uE,
...t
- } : sE, [r]);
+ } : uE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function lE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = cE(e);
- return /*#__PURE__*/ F.createElement(n, K(a, o), t);
+function fE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = dE(e);
+ return /*#__PURE__*/ F.createElement(n, q(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function xse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = $T(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = ZC(e, t), d = WT({
+function vse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = nE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = ew(e, t), d = qT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = ZT({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = eE({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Vw(e, { labelable: !0 }), b = {
+ }), y = Ww(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return LT(t, e.defaultValue ?? x, l), RT(e, d, t), {
+ return BT(t, e.defaultValue ?? x, l), VT(e, d, t), {
labelProps: h,
- inputProps: K(y, n === "input" ? b : void 0, {
+ inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -25361,7 +25365,7 @@ function xse(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(G(e).value),
+ onChange: (e) => l(K(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -25393,26 +25397,26 @@ function xse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function Sse(e = {}) {
- let { locale: t } = Nw();
- return (0, F.useMemo)(() => new vse(t, e), [t, e]);
+function yse(e = {}) {
+ let { locale: t } = Iw();
+ return (0, F.useMemo)(() => new hse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var uE = /* @__PURE__ */ new WeakMap();
-function dE(e, t) {
- let n = uE.get(e);
+var pE = /* @__PURE__ */ new WeakMap();
+function mE(e, t) {
+ let n = pE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function Cse(e, t, n) {
- let { labelProps: r, fieldProps: i } = XT(e), a = e.orientation === "vertical";
- uE.set(t, {
+function bse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = $T(e), a = e.orientation === "vertical";
+ pE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Nw(), { addGlobalListener: s, removeGlobalListener: c } = Xw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = oE({
+ let { direction: o } = Iw(), { addGlobalListener: s, removeGlobalListener: c } = $w(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = lE({
onMoveStart() {
d.current = null;
},
@@ -25422,7 +25426,7 @@ function Cse(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = tE(d.current / s, 0, 1);
+ let e = iE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25446,14 +25450,14 @@ function Cse(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(dE(t, 0))?.focus(), SC("keyboard");
+ document.getElementById(mE(t, 0))?.focus(), TC("keyboard");
}), {
labelProps: r,
groupProps: {
role: "group",
...i
},
- trackProps: K({
+ trackProps: q({
onMouseDown(e) {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || m(e, void 0, e.clientX, e.clientY);
},
@@ -25469,26 +25473,26 @@ function Cse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => dE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => mE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function wse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Nw(), { addGlobalListener: m, removeGlobalListener: h } = Xw(), g = uE.get(t), { labelProps: _, fieldProps: v } = XT({
+function xse(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Iw(), { addGlobalListener: m, removeGlobalListener: h } = $w(), g = pE.get(t), { labelProps: _, fieldProps: v } = $T({
...e,
- id: dE(t, n),
+ id: mE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && bS(s.current);
+ s.current && CS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = qC({
+ }, { keyboardProps: T } = XC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25504,7 +25508,7 @@ function wse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = oE({
+ }), { moveProps: E } = lE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25515,7 +25519,7 @@ function wse(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, tE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, iE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25523,7 +25527,7 @@ function wse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = ZC(K(e, {
+ let { focusableProps: D } = ew(q(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25532,7 +25536,7 @@ function wse(e, t) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === O.current && (b(), t.setThumbDragging(n, !1), h(window, "mouseup", A, !1), h(window, "touchend", A, !1), h(window, "pointerup", A, !1));
}, j = t.getThumbPercent(n);
(f || p === "rtl") && (j = 1 - j);
- let M = d ? {} : K(T, E, {
+ let M = d ? {} : q(T, E, {
onMouseDown: (e) => {
e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || k();
},
@@ -25543,10 +25547,10 @@ function wse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return LT(s, t.defaultValues[n], (e) => {
+ return BT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
- inputProps: K(D, v, {
+ inputProps: q(D, v, {
type: "range",
tabIndex: d ? void 0 : 0,
min: t.getThumbMinValue(n),
@@ -25564,7 +25568,7 @@ function wse(e, t) {
"aria-describedby": [g["aria-describedby"], e["aria-describedby"]].filter(Boolean).join(" "),
"aria-details": [g["aria-details"], e["aria-details"]].filter(Boolean).join(" "),
onChange: (e) => {
- t.setThumbValue(n, parseFloat(G(e).value));
+ t.setThumbValue(n, parseFloat(K(e).value));
}
}),
thumbProps: {
@@ -25583,42 +25587,42 @@ function wse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Tse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function fE(e) {
+var Sse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function hE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var pE = /* @__PURE__ */ new WeakMap(), mE = [];
-function hE(e, t) {
- let n = SS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Tse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var gE = /* @__PURE__ */ new WeakMap(), _E = [];
+function vE(e, t) {
+ let n = TS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Sse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (DS()) {
+ if (AS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; wS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; DS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (OS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (jS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = sT(xS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = uT(wS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = pE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), pE.set(e, t + 1));
+ let t = gE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), gE.set(e, t + 1));
};
- mE.length && mE[mE.length - 1].disconnect(), d(i);
+ _E.length && _E[_E.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => OS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fE(e) ? o.add(e) : e instanceof Element && d(e);
- if (DS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && hE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (AS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25631,11 +25635,11 @@ function hE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (DS()) for (let e of u) {
+ if (AS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => OS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && fE(e) ? o.add(e) : e instanceof Element && d(e);
- if (DS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && hE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (AS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25661,56 +25665,56 @@ function hE(e, t) {
p.disconnect();
}
};
- return mE.push(h), () => {
- if (p.disconnect(), DS()) for (let e of m) e.disconnect();
+ return _E.push(h), () => {
+ if (p.disconnect(), AS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = pE.get(e);
- t != null && (t === 1 ? (l(e, !1), pE.delete(e)) : pE.set(e, t - 1));
+ let t = gE.get(e);
+ t != null && (t === 1 ? (l(e, !1), gE.delete(e)) : gE.set(e, t - 1));
}
- h === mE[mE.length - 1] ? (mE.pop(), mE.length && mE[mE.length - 1].observe()) : mE.splice(mE.indexOf(h), 1);
+ h === _E[_E.length - 1] ? (_E.pop(), _E.length && _E[_E.length - 1].observe()) : _E.splice(_E.indexOf(h), 1);
};
}
-function gE(e) {
- let t = mE[mE.length - 1];
+function yE(e) {
+ let t = _E[_E.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var _E = /* @__PURE__ */ new WeakMap();
-function Ese(e) {
+var bE = /* @__PURE__ */ new WeakMap();
+function Cse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Dse(e, t) {
- let n = _E.get(e);
+function wse(e, t) {
+ let n = bE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Ese(t)}`;
+ return `${n.id}-option-${Cse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function vE(e) {
- return Dae() ? e.altKey : e.ctrlKey;
+function xE(e) {
+ return wae() ? e.altKey : e.ctrlKey;
}
-function yE(e, t) {
+function SE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var bE = /* @__PURE__ */ new WeakMap();
-function Ose(e) {
- let t = LC();
- return bE.set(e, t), t;
+var CE = /* @__PURE__ */ new WeakMap();
+function Tse(e) {
+ let t = BC();
+ return CE.set(e, t), t;
}
-function kse(e) {
- return bE.get(e);
+function Ese(e) {
+ return CE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var xE = class {
+var wE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : yE(this.ref, e);
+ let n = e == null ? null : SE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25736,12 +25740,12 @@ var xE = class {
height: e?.clientHeight ?? 0
};
}
-}, SE = class {
+}, TE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new xE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new xE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new wE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new wE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25781,14 +25785,14 @@ var xE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = yE(this.ref, e);
+ let t = this.getNextKey(e), n = SE(this.ref, e);
if (t != null) {
- let e = yE(this.ref, t);
+ let e = SE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = yE(this.ref, r);
+ let e = SE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25822,7 +25826,7 @@ var xE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !AT(t)) return this.getFirstKey();
+ if (t && !NT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25837,7 +25841,7 @@ var xE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !AT(t)) return this.getLastKey();
+ if (t && !NT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25860,149 +25864,149 @@ var xE = class {
}
return null;
}
-}, CE = {};
-CE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, EE = {};
+EE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var wE = {};
-wE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var DE = {};
+DE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var TE = {};
-TE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var OE = {};
+OE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
-var EE = {};
-EE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var kE = {};
+kE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
-var DE = {};
-DE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var AE = {};
+AE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
-var OE = {};
-OE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var jE = {};
+jE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var kE = {};
-kE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var ME = {};
+ME = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var AE = {};
-AE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var NE = {};
+NE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
-var jE = {};
-jE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var PE = {};
+PE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var ME = {};
-ME = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var FE = {};
+FE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
-var NE = {};
-NE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var IE = {};
+IE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
-var PE = {};
-PE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var LE = {};
+LE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var FE = {};
-FE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var RE = {};
+RE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
-var IE = {};
-IE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var zE = {};
+zE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
-var LE = {};
-LE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var BE = {};
+BE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
-var RE = {};
-RE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var VE = {};
+VE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var zE = {};
-zE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var HE = {};
+HE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var BE = {};
-BE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var UE = {};
+UE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var VE = {};
-VE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var WE = {};
+WE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
-var HE = {};
-HE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var GE = {};
+GE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var UE = {};
-UE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var KE = {};
+KE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
-var WE = {};
-WE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var qE = {};
+qE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
-var GE = {};
-GE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var JE = {};
+JE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
-var KE = {};
-KE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var YE = {};
+YE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
-var qE = {};
-qE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var XE = {};
+XE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
-var JE = {};
-JE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var ZE = {};
+ZE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var YE = {};
-YE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var QE = {};
+QE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
-var XE = {};
-XE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var $E = {};
+$E = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
-var ZE = {};
-ZE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var eD = {};
+eD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
-var QE = {};
-QE = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var tD = {};
+tD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
-var $E = {};
-$E = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var nD = {};
+nD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
-var eD = {};
-eD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var rD = {};
+rD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var tD = {};
-tD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var iD = {};
+iD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var nD = {};
-nD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var aD = {};
+aD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var rD = {};
-rD = {
- "ar-AE": CE,
- "bg-BG": wE,
- "cs-CZ": TE,
- "da-DK": EE,
- "de-DE": DE,
- "el-GR": OE,
- "en-US": kE,
- "es-ES": AE,
- "et-EE": jE,
- "fi-FI": ME,
- "fr-FR": NE,
- "he-IL": PE,
- "hr-HR": FE,
- "hu-HU": IE,
- "it-IT": LE,
- "ja-JP": RE,
- "ko-KR": zE,
- "lt-LT": BE,
- "lv-LV": VE,
- "nb-NO": HE,
- "nl-NL": UE,
- "pl-PL": WE,
- "pt-BR": GE,
- "pt-PT": KE,
- "ro-RO": qE,
- "ru-RU": JE,
- "sk-SK": YE,
- "sl-SI": XE,
- "sr-SP": ZE,
- "sv-SE": QE,
- "tr-TR": $E,
- "uk-UA": eD,
- "zh-CN": tD,
- "zh-TW": nD
+var oD = {};
+oD = {
+ "ar-AE": EE,
+ "bg-BG": DE,
+ "cs-CZ": OE,
+ "da-DK": kE,
+ "de-DE": AE,
+ "el-GR": jE,
+ "en-US": ME,
+ "es-ES": NE,
+ "et-EE": PE,
+ "fi-FI": FE,
+ "fr-FR": IE,
+ "he-IL": LE,
+ "hr-HR": RE,
+ "hu-HU": zE,
+ "it-IT": BE,
+ "ja-JP": VE,
+ "ko-KR": HE,
+ "lt-LT": UE,
+ "lv-LV": WE,
+ "nb-NO": GE,
+ "nl-NL": KE,
+ "pl-PL": qE,
+ "pt-BR": JE,
+ "pt-PT": YE,
+ "ro-RO": XE,
+ "ru-RU": ZE,
+ "sk-SK": QE,
+ "sl-SI": $E,
+ "sr-SP": eD,
+ "sv-SE": tD,
+ "tr-TR": nD,
+ "uk-UA": rD,
+ "zh-CN": iD,
+ "zh-TW": aD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var Ase = 500;
-function iD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ase, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Xw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = tT({
+var Dse = 500;
+function sD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Dse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = $w(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = iT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -26010,12 +26014,12 @@ function iD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), xS(e.target).activeElement !== e.target && bS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), wS(e.target).activeElement !== e.target && CS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = SS(e.target);
+ let t = TS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26030,11 +26034,11 @@ function iD(e) {
});
}
});
- return { longPressProps: K(f, IT(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, zT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function jse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = iD({
+function Ose(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = sD({
onLongPressStart() {
n.current = !1;
},
@@ -26046,7 +26050,7 @@ function jse(e) {
});
}
});
- return t ? { contextMenuProps: K(qS() ? r : {}, {
+ return t ? { contextMenuProps: q(XS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26057,7 +26061,7 @@ function jse(e) {
});
},
onKeyDown(e) {
- if (GS() && e.ctrlKey && e.key === "Enter") {
+ if (JS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26076,13 +26080,13 @@ function jse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var aD = /* @__PURE__ */ new WeakMap();
-function Mse(e) {
+var cD = /* @__PURE__ */ new WeakMap();
+function kse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : TS(AS(t.current), "scroll", (e) => {
- let n = G(e);
- if (!t.current || n instanceof Node && !OS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || aD.get(t.current);
+ (0, F.useEffect)(() => !n || r === null ? void 0 : OS(NS(t.current), "scroll", (e) => {
+ let n = K(e);
+ if (!t.current || n instanceof Node && !jS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || cD.get(t.current);
i && i();
}, !0), [
n,
@@ -26091,14 +26095,14 @@ function Mse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Nse(e, t, n) {
+function Ase(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && aD.set(n.current, t.close);
+ n && n.current && cD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = LC();
+ let o = BC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26110,14 +26114,14 @@ function Nse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Pse(e) {
+function jse(e) {
return e && e.__esModule ? e.default : e;
}
-function oD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = LC(), { triggerProps: s, overlayProps: c } = Nse({ type: r }, t, n), l = (e, n, r = "first") => {
+function lD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = BC(), { triggerProps: s, overlayProps: c } = Ase({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = qC({
+ }, { keyboardProps: u } = XC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26129,7 +26133,7 @@ function oD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = zw(Pse(rD), "@react-aria/menu"), { longPressProps: f } = iD({
+ }), d = Hw(jse(oD), "@react-aria/menu"), { longPressProps: f } = sD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26141,14 +26145,14 @@ function oD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (bS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (CS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (bS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (CS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = jse({ onContextMenu(e) {
+ let { contextMenuProps: m } = Ose({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26158,7 +26162,7 @@ function oD(e, t, n) {
(0, F.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && G(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && K(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -26192,8 +26196,8 @@ function oD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var sD = 1e3;
-function cD(e) {
+var uD = 1e3;
+function dD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26212,12 +26216,12 @@ function cD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sD);
+ }, uD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Fse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !OS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Mse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !jS(e.currentTarget, K(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26228,32 +26232,32 @@ function cD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, sD);
+ }, uD);
}
} : void 0
} };
}
-function Fse(e) {
+function Mse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function lD(e, t) {
+function fD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- LS(() => (n.current = !0, () => {
+ BS(() => (n.current = !0, () => {
n.current = !1;
- }), []), LS(() => {
+ }), []), BS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function uD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Nw(), _ = QS(), v = (e, n, i) => {
+function pD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Iw(), _ = tC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !vE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !xE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = yE(r, n), o = t.getItemProps(n);
+ let a = SE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26265,7 +26269,7 @@ function uD(e) {
t.extendSelection(n);
return;
}
- if (l && !vE(e)) {
+ if (l && !xE(e)) {
t.replaceSelection(n);
return;
}
@@ -26292,9 +26296,9 @@ function uD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Cw(e));
+ let r = n.getFirstKey(t.focusedKey, Ew(e));
if (t.setFocusedKey(r), r != null) {
- if (Cw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ew(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26326,9 +26330,9 @@ function uD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Cw(e));
+ let r = n.getLastKey(t.focusedKey, Ew(e));
if (t.setFocusedKey(r), r != null) {
- if (Cw(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Ew(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26359,12 +26363,12 @@ function uD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = CT(r.current, { tabbable: !0 }), t, n;
+ let e = ET(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = kS();
- t && (!jS(t) || i && !FS(i)) && bS(t);
+ let i = MS();
+ t && (!PS(t) || i && !RS(i)) && CS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26374,11 +26378,11 @@ function uD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [GS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [JS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [GS() ? e + "+Alt" : e + "+Control"]: t,
+ [JS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = qC({
+ }), { keyboardProps: M } = XC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26388,7 +26392,7 @@ function uD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = qC({ shortcuts: {
+ }), { keyboardProps: ee } = XC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26399,7 +26403,7 @@ function uD(e) {
top: 0,
left: 0
});
- Ew(p, "scroll", () => {
+ kw(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26407,11 +26411,11 @@ function uD(e) {
});
let te = (e) => {
if (t.isFocused) {
- OS(e.currentTarget, G(e)) || t.setFocused(!1);
+ jS(e.currentTarget, K(e)) || t.setFocused(!1);
return;
}
- if (!OS(e.currentTarget, G(e))) return;
- let i = xC();
+ if (!jS(e.currentTarget, K(e))) return;
+ let i = wC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26422,27 +26426,27 @@ function uD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = yE(r, t.focusedKey);
- e instanceof HTMLElement && (!jS(e) && !d && bS(e), (i === "keyboard" || h && i === "virtual") && PT(e, { containingElement: r.current }));
+ let e = SE(r, t.focusedKey);
+ e instanceof HTMLElement && (!PS(e) && !d && CS(e), (i === "keyboard" || h && i === "virtual") && LT(e, { containingElement: r.current }));
}
}, P = (e) => {
- OS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ jS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Ew(r, yoe, d ? (e) => {
+ kw(r, goe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- lD(() => {
+ fD(() => {
if (ne.current) {
if (re == null) {
- let e = kS();
- fw(r.current), pw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = MS();
+ hw(r.current), gw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), lD(() => {
+ }, [re, t.collection.size]), fD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Ew(r, voe, d ? (e) => {
+ }, [t.focusedKey]), kw(r, hoe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26457,52 +26461,52 @@ function uD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && MC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && FC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = xC(), n = yE(r, t.focusedKey);
+ let e = wC(), n = SE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (NT(p.current, n), e !== "virtual" && PT(n, { containingElement: r.current }));
+ p.current && (IT(p.current, n), e !== "virtual" && LT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && MC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && FC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Ew(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), kw(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
- ...K(ee, M),
+ ...q(ee, M),
onFocus: te,
onBlur: P,
onMouseDown(e) {
- p.current === G(e) && e.preventDefault();
+ p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = cD({
+ }, { typeSelectProps: ce } = dD({
keyboardDelegate: n,
selectionManager: t
});
- u || (se = K(ce, se));
+ u || (se = q(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Ose(t.collection);
- return { collectionProps: K(se, {
+ let ue = Tse(t.collection);
+ return { collectionProps: q(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function dD(e, t) {
+function mD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function fD(e) {
- return pD(e, 0);
+function hD(e) {
+ return gD(e, 0);
}
-function pD(e, t) {
+function gD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26510,106 +26514,106 @@ function pD(e, t) {
n++;
}
}
-function mD(e) {
+function _D(e) {
let t;
for (let n of e) t = n;
return t;
}
-function hD(e, t, n) {
+function vD(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...gD(e, t), t], i = [...gD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...yD(e, t), t], i = [...yD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function gD(e, t) {
+function yD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var _D = /* @__PURE__ */ new WeakMap();
-function vD(e) {
- let t = _D.get(e);
+var bD = /* @__PURE__ */ new WeakMap();
+function xD(e) {
+ let t = bD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(dD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(mD(i, e)) : i.type === "item" && n++;
};
- return r(e), _D.set(e, n), n;
+ return r(e), bD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var yD = /* @__PURE__ */ new Map();
-function bD(e) {
- let { locale: t } = Nw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (yD.has(n)) return yD.get(n);
+var SD = /* @__PURE__ */ new Map();
+function CD(e) {
+ let { locale: t } = Iw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (SD.has(n)) return SD.get(n);
let r = new Intl.Collator(t, e);
- return yD.set(n, r), r;
+ return SD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Ise = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Yw), a = K(i || {}, {
+var Nse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Qw), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = JC(n || i?.ref), YC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = ZC(n || i?.ref), QC(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(Yw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Qw.Provider, { value: a }, e);
});
-function Lse({ children: e }) {
+function Pse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Yw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Qw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var xD = /*#__PURE__*/ (0, F.createContext)({});
-function SD(e) {
- let { getContainer: t } = e, { getContainer: n } = CD();
- return /*#__PURE__*/ F.createElement(xD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var wD = /*#__PURE__*/ (0, F.createContext)({});
+function TD(e) {
+ let { getContainer: t } = e, { getContainer: n } = ED();
+ return /*#__PURE__*/ F.createElement(wD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function CD() {
- return (0, F.useContext)(xD) ?? {};
+function ED() {
+ return (0, F.useContext)(wD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var wD = /*#__PURE__*/ F.createContext(null);
-function TD(e) {
- let t = aC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var DD = /*#__PURE__*/ F.createContext(null);
+function OD(e) {
+ let t = cC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = CD();
+ }), [i, a]), { getContainer: s } = ED();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(dT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(mT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(wD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Lse, null, /*#__PURE__*/ F.createElement(XC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(DD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Pse, null, /*#__PURE__*/ F.createElement($C.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function ED() {
- let e = (0, F.useContext)(wD)?.setContain;
- LS(() => {
+function kD() {
+ let e = (0, F.useContext)(DD)?.setContain;
+ BS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Rse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = RC();
+function Fse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = VC();
i = e["aria-label"] ? void 0 : i;
- let a = RC();
+ let a = VC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !jS(t.current)) {
- MC(t.current);
+ if (!r && t.current && !PS(t.current)) {
+ FC(t.current);
let e = setTimeout(() => {
- (kS() === t.current || kS() === document.body) && (o.current = !0, t.current && (t.current.blur(), MC(t.current)), o.current = !1);
+ (MS() === t.current || MS() === document.body) && (o.current = !0, t.current && (t.current.blur(), FC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), ED(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), kD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Vw(e, { labelable: !0 }),
+ ...Ww(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26623,23 +26627,23 @@ function Rse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function DD(e = {}) {
+function AD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || bC()
+ isFocusVisible: t || CC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = bC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = CC(), o(e), l();
}, [l]);
- TC((e) => {
+ OC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = UC({
+ let { focusProps: d } = KC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = QT({
+ }), { focusWithinProps: f } = tE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26650,41 +26654,41 @@ function DD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function zse(e = {}) {
- let { locale: t } = Nw();
+function Ise(e = {}) {
+ let { locale: t } = Iw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var OD = !1, kD = 0;
-function Bse() {
- OD = !0, setTimeout(() => {
- OD = !1;
+var jD = !1, MD = 0;
+function Lse() {
+ jD = !0, setTimeout(() => {
+ jD = !1;
}, 500);
}
-function AD(e) {
- e.pointerType === "touch" && Bse();
+function ND(e) {
+ e.pointerType === "touch" && Lse();
}
-function Vse() {
- let e = xS(null);
- if (e !== void 0) return kD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", AD), kD++, () => {
- kD--, !(kD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", AD);
+function Rse() {
+ let e = wS(null);
+ if (e !== void 0) return MD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ND), MD++, () => {
+ MD--, !(MD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ND);
};
}
-function jD(e) {
+function PD(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Vse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Xw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Rse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = $w(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !OS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !jS(e.currentTarget, K(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(xS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !OS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(wS(K(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !jS(s.target, K(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26699,9 +26703,9 @@ function jD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- OD && t.pointerType === "mouse" || e(t, t.pointerType);
+ jD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && OS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && jS(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26723,22 +26727,22 @@ function jD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Hse(e) {
+function zse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Tw((e) => {
- n && MD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Tw((e) => {
+ }), o = Ow((e) => {
+ n && FD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Ow((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = xS(n);
+ let n = t.current, i = wS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && MD(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && FD(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26746,28 +26750,28 @@ function Hse(e) {
}
}, [t, r]);
}
-function MD(e, t) {
+function FD(e, t) {
if (e.button > 0) return !1;
- let n = G(e);
+ let n = K(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !OS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !jS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var ND = /* @__PURE__ */ new WeakMap();
-function PD(e, t) {
- let { id: n } = ND.get(e) ?? {};
+var ID = /* @__PURE__ */ new WeakMap();
+function LD(e, t) {
+ let { id: n } = ID.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Use(t)}`;
+ return `${n}-${Bse(t)}`;
}
-function Use(e) {
+function Bse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var FD = {};
-FD = {
+var RD = {};
+RD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26780,8 +26784,8 @@ FD = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var ID = {};
-ID = {
+var zD = {};
+zD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26794,8 +26798,8 @@ ID = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var LD = {};
-LD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26808,8 +26812,8 @@ LD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var RD = {};
-RD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26822,8 +26826,8 @@ RD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var zD = {};
-zD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26836,8 +26840,8 @@ zD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var BD = {};
-BD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26850,8 +26854,8 @@ BD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var VD = {};
-VD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26864,8 +26868,8 @@ VD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var HD = {};
-HD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26878,8 +26882,8 @@ HD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var UD = {};
-UD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26892,8 +26896,8 @@ UD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var WD = {};
-WD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26906,8 +26910,8 @@ WD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var GD = {};
-GD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26920,8 +26924,8 @@ GD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var KD = {};
-KD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26934,8 +26938,8 @@ KD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var qD = {};
-qD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26948,8 +26952,8 @@ qD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var JD = {};
-JD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26962,8 +26966,8 @@ JD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var YD = {};
-YD = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26976,8 +26980,8 @@ YD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var XD = {};
-XD = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26990,8 +26994,8 @@ XD = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var ZD = {};
-ZD = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -27004,8 +27008,8 @@ ZD = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var QD = {};
-QD = {
+var tO = {};
+tO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27018,8 +27022,8 @@ QD = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var $D = {};
-$D = {
+var nO = {};
+nO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -27032,8 +27036,8 @@ $D = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var eO = {};
-eO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27046,8 +27050,8 @@ eO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var tO = {};
-tO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27060,8 +27064,8 @@ tO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var nO = {};
-nO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27074,8 +27078,8 @@ nO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var rO = {};
-rO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27088,8 +27092,8 @@ rO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var iO = {};
-iO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27102,8 +27106,8 @@ iO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var aO = {};
-aO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27116,8 +27120,8 @@ aO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var oO = {};
-oO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27130,8 +27134,8 @@ oO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var sO = {};
-sO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27144,8 +27148,8 @@ sO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var cO = {};
-cO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27158,8 +27162,8 @@ cO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var lO = {};
-lO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27172,8 +27176,8 @@ lO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var uO = {};
-uO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27186,8 +27190,8 @@ uO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var dO = {};
-dO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27200,8 +27204,8 @@ dO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var fO = {};
-fO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27214,8 +27218,8 @@ fO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var pO = {};
-pO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27228,8 +27232,8 @@ pO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var mO = {};
-mO = {
+var _O = {};
+_O = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27242,54 +27246,54 @@ mO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var hO = {};
-hO = {
- "ar-AE": FD,
- "bg-BG": ID,
- "cs-CZ": LD,
- "da-DK": RD,
- "de-DE": zD,
- "el-GR": BD,
- "en-US": VD,
- "es-ES": HD,
- "et-EE": UD,
- "fi-FI": WD,
- "fr-FR": GD,
- "he-IL": KD,
- "hr-HR": qD,
- "hu-HU": JD,
- "it-IT": YD,
- "ja-JP": XD,
- "ko-KR": ZD,
- "lt-LT": QD,
- "lv-LV": $D,
- "nb-NO": eO,
- "nl-NL": tO,
- "pl-PL": nO,
- "pt-BR": rO,
- "pt-PT": iO,
- "ro-RO": aO,
- "ru-RU": oO,
- "sk-SK": sO,
- "sl-SI": cO,
- "sr-SP": lO,
- "sv-SE": uO,
- "tr-TR": dO,
- "uk-UA": fO,
- "zh-CN": pO,
- "zh-TW": mO
+var vO = {};
+vO = {
+ "ar-AE": RD,
+ "bg-BG": zD,
+ "cs-CZ": BD,
+ "da-DK": VD,
+ "de-DE": HD,
+ "el-GR": UD,
+ "en-US": WD,
+ "es-ES": GD,
+ "et-EE": KD,
+ "fi-FI": qD,
+ "fr-FR": JD,
+ "he-IL": YD,
+ "hr-HR": XD,
+ "hu-HU": ZD,
+ "it-IT": QD,
+ "ja-JP": $D,
+ "ko-KR": eO,
+ "lt-LT": tO,
+ "lv-LV": nO,
+ "nb-NO": rO,
+ "nl-NL": iO,
+ "pl-PL": aO,
+ "pt-BR": oO,
+ "pt-PT": sO,
+ "ro-RO": cO,
+ "ru-RU": lO,
+ "sk-SK": uO,
+ "sl-SI": dO,
+ "sr-SP": fO,
+ "sv-SE": pO,
+ "tr-TR": mO,
+ "uk-UA": hO,
+ "zh-CN": gO,
+ "zh-TW": _O
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Wse(e) {
+function Vse(e) {
return e && e.__esModule ? e.default : e;
}
-function gO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = zw(Wse(hO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function yO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Hw(Vse(vO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = _O(i, a.current), o = _O(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = bO(i, a.current), o = bO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27309,7 +27313,7 @@ function gO(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && OT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && jT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27320,7 +27324,7 @@ function gO(e, t) {
n,
r
]);
- kT(() => {
+ MT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27328,20 +27332,20 @@ function gO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function _O(e, t) {
+function bO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function vO(e, t) {
+function xO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return LS(() => {
+ return BS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = CT(e.current, { tabbable: !0 });
+ let t = ET(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27359,12 +27363,12 @@ function vO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Gse(e) {
+function Hse(e) {
return e && e.__esModule ? e.default : e;
}
-function yO(e) {
- let t = zw(Gse(hO), "@react-aria/grid"), n = CC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return IT((0, F.useMemo)(() => {
+function SO(e) {
+ let t = Hw(Hse(vO), "@react-aria/grid"), n = EC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return zT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27376,11 +27380,11 @@ function yO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function bO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = bD({
+function CO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = CD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new SE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new TE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27397,7 +27401,7 @@ function bO(e) {
c,
l,
s
- ]), { collectionProps: d } = uD({
+ ]), { collectionProps: d } = pD({
...e,
ref: i,
selectionManager: t,
@@ -27406,10 +27410,10 @@ function bO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Kse(e, t, n) {
+function Use(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = bO({
+ let { listProps: f } = CO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27424,30 +27428,30 @@ function Kse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = LC(e.id);
- ND.set(t, {
+ }), p = BC(e.id);
+ ID.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = yO({
+ let m = SO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = vO(n, { isDisabled: t.collection.size !== 0 }), g = K(Vw(e, { labelable: !0 }), {
+ }), h = xO(n, { isDisabled: t.collection.size !== 0 }), g = q(Ww(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), gO({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), yO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function xO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = QS();
- t = LC(t);
+function wO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = tC();
+ t = BC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && vE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && xE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27458,11 +27462,11 @@ function xO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Cw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Ew(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? fw(i.current) : s ? s() : kS() !== i.current && i.current && MC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? hw(i.current) : s ? s() : MS() !== i.current && i.current && FC(i.current));
}, [
i,
r,
@@ -27475,7 +27479,7 @@ function xO(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- G(e) === i.current && n.setFocusedKey(r);
+ K(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
@@ -27490,23 +27494,23 @@ function xO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || CO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || EO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !SO(e.key)) return;
+ if (e.pointerType === "keyboard" && !TO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || CO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || EO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && SO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && TO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = kse(n.collection);
- if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
+ let A = Ese(n.collection);
+ if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = q(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
@@ -27520,10 +27524,10 @@ function xO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = NC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = tT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = IC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = iT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = iD({
+ } : void 0, { longPressProps: N } = sD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27531,8 +27535,8 @@ function xO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- $S.isOpening || e.preventDefault();
- } : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
+ nC.isOpening || e.preventDefault();
+ } : void 0, ne = q(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
onClick: P,
@@ -27544,15 +27548,15 @@ function xO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return FS(e);
+ return RS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && re(t) ? e.stopPropagation() : I?.(e);
};
let ie = ne.onMouseDown;
return ne.onMouseDown = (e) => {
- let t = G(e);
+ let t = K(e);
t && t !== i.current && re(t) ? e.stopPropagation() : ie?.(e);
}, {
itemProps: ne,
@@ -27564,14 +27568,14 @@ function xO(e) {
hasAction: S
};
}
-function SO(e) {
+function TO(e) {
return e === "Enter";
}
-function CO(e) {
+function EO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var wO = {
+var DO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27581,18 +27585,18 @@ var wO = {
rtl: "ArrowRight"
}
};
-function qse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Nw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = ND.get(t), f = RC(), p = (0, F.useRef)(null), m = () => {
+function Wse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Iw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = ID.get(t), f = VC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (jS(n.current) && n.current !== kS(xS(n.current))) return;
- let e = CT(n.current, { tabbable: !0 }).firstChild();
+ if (PS(n.current) && n.current !== MS(wS(n.current))) return;
+ let e = ET(n.current, { tabbable: !0 }).firstChild();
if (e) {
- MC(e), PT(e, { containingElement: jT(e) });
+ FC(e), LT(e, { containingElement: PT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !jS(n.current)) && MC(n.current);
+ (p.current != null && r.key !== p.current || !PS(n.current)) && FC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27602,7 +27606,7 @@ function qse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Jse(e, t.collection);
+ let n = Gse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27613,75 +27617,75 @@ function qse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = xO({
+ let { itemProps: v, ...y } = wO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? NC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? IC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = kS(xS(n.current));
- if (!OS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = CT(n.current);
- if (a.currentNode = i, !TO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = MS(wS(n.current));
+ if (!jS(e.currentTarget, K(e)) || !n.current || !i) return;
+ let a = ET(n.current);
+ if (a.currentNode = i, !OO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), MC(t), PT(t, { containingElement: jT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") MC(n.current), PT(n.current, { containingElement: jT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), FC(t), LT(t, { containingElement: PT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") FC(n.current), LT(n.current, { containingElement: PT(n.current) });
else {
a.currentNode = n.current;
- let e = EO(a);
- e && (MC(e), PT(e, { containingElement: jT(n.current) }));
+ let e = kO(a);
+ e && (FC(e), LT(e, { containingElement: PT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), MC(t), PT(t, { containingElement: jT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") MC(n.current), PT(n.current, { containingElement: jT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), FC(t), LT(t, { containingElement: PT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") FC(n.current), LT(n.current, { containingElement: PT(n.current) });
else {
a.currentNode = n.current;
- let e = EO(a);
- e && (MC(e), PT(e, { containingElement: jT(n.current) }));
+ let e = kO(a);
+ e && (FC(e), LT(e, { containingElement: PT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && OS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && jS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && OS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && kS(xS(n.current)) === n.current && m();
- }) : bC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && MS(wS(n.current)) === n.current && m();
+ }) : CC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = kS(xS(n.current));
- if (OS(e.currentTarget, G(e)) && n.current && i) {
+ let i = MS(wS(n.current));
+ if (jS(e.currentTarget, K(e)) && n.current && i) {
if (u === "tab") {
- if (G(e) !== n.current && e.key !== "Tab") {
+ if (K(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (TO(e, t, r, g, s, i, n.current, o)) return;
+ if (OO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = CT(n.current, { tabbable: !0 });
+ let t = ET(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = eC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = rC(r.props), w = q(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${PD(t, r.key)} ${f}` : void 0,
- id: PD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${LD(t, r.key)} ${f}` : void 0,
+ id: LD(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27696,72 +27700,72 @@ function qse(e, t, n) {
"aria-colindex": 1
};
return {
- rowProps: { ...K(w, h) },
+ rowProps: { ...q(w, h) },
gridCellProps: E,
descriptionProps: { id: f },
...y
};
}
-function TO(e, t, n, r, i, a, o, s) {
+function OO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === wO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === wO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === DO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === DO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function EO(e) {
+function kO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Jse(e, t) {
+function Gse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Yse(e) {
+function Kse(e) {
return e && e.__esModule ? e.default : e;
}
-function DO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = LC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function AO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = BC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": zw(Yse(hO), "@react-aria/grid").format("select"),
+ "aria-label": Hw(Kse(vO), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Xse(e, t) {
- let { key: n } = e, { checkboxProps: r } = DO(e, t);
+function qse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = AO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${PD(t, n)}`
+ "aria-labelledby": `${r.id} ${LD(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Zse(e, t, n) {
- let r = Vw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Jse(e, t, n) {
+ let r = Ww(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = bO({
+ let { listProps: s } = CO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = QT({
+ }), { focusWithinProps: c } = tE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = LC(e.id);
- _E.set(t, {
+ }), l = BC(e.id);
+ bE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27771,23 +27775,23 @@ function Zse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = XT({
+ let { labelProps: u, fieldProps: d } = $T({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: K(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: q(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...K(d, s)
+ ...q(d, s)
})
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Qse(e) {
- let { heading: t, "aria-label": n } = e, r = LC();
+function Yse(e) {
+ let { heading: t, "aria-label": n } = e, r = BC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27805,8 +27809,8 @@ function Qse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function $se(e, t, n) {
- let { key: r } = e, i = _E.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = RC(), f = RC(), p = {
+function Xse(e, t, n) {
+ let { key: r } = e, i = bE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = VC(), f = VC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27816,9 +27820,9 @@ function $se(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = vD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = xD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Dse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = xO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = wse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = wO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27827,28 +27831,28 @@ function $se(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? NC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? IC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = jD({
+ }), { hoverProps: S } = PD({
isDisabled: a || !c,
onHoverStart() {
- bC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ CC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Vw(m?.props);
+ }), C = Ww(m?.props);
delete C.id;
- let w = tC(m?.props);
+ let w = iC(m?.props);
return {
optionProps: {
...p,
- ...K(C, _, S, w),
+ ...q(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && bC(),
+ isFocusVisible: y && t.selectionManager.isFocused && CC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27857,12 +27861,12 @@ function $se(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var OO = /* @__PURE__ */ new WeakMap();
+var jO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function ece(e, t, n) {
+function Zse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Vw(e, { labelable: !0 }), { listProps: c } = bO({
+ let s = Ww(e, { labelable: !0 }), { listProps: c } = CO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27871,11 +27875,11 @@ function ece(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return OO.set(t, {
+ return jO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
- }), { menuProps: K(s, {
+ }), { menuProps: q(s, {
onKeyDown: i,
onKeyUp: a
}, {
@@ -27887,15 +27891,15 @@ function ece(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function tce(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = OO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = QS(), M = () => {
+function Qse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = jO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = tC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = RC(), te = RC(), P = RC(), ne = {
+ let N = VC(), te = VC(), P = VC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27912,17 +27916,17 @@ function tce(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = vD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = xD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), Nae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Aae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = xO({
+ }, { itemProps: se, isFocused: ce } = wO({
id: r,
selectionManager: C,
key: i,
@@ -27931,36 +27935,36 @@ function tce(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = tT({
+ }), { pressProps: le, isPressed: ue } = iT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = jD({
+ }), { hoverProps: de } = PD({
isDisabled: E,
onHoverStart(e) {
- !bC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !CC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = qC({
+ }), { keyboardProps: fe } = XC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), SC("keyboard");
+ }, K(e).click(), TC("keyboard");
},
Enter: (e) => {
ie.current = {
pointerType: "keyboard",
key: "Enter"
};
- let t = G(e);
- if (t.tagName !== "A") t.click(), SC("keyboard");
- else return SC("keyboard"), {
+ let t = K(e);
+ if (t.tagName !== "A") t.click(), TC("keyboard");
+ else return TC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27968,17 +27972,17 @@ function tce(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = ZC({
+ }), { focusableProps: pe } = ew({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Vw(k?.props);
+ }, n), me = Ww(k?.props);
delete me.id;
- let he = tC(k?.props);
+ let he = iC(k?.props);
return {
menuItemProps: {
...ne,
- ...K(me, he, w ? {
+ ...q(me, he, w ? {
onFocus: se.onFocus,
"data-collection": se["data-collection"],
"data-key": se["data-key"]
@@ -27989,15 +27993,15 @@ function tce(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && bC() && !T,
+ isFocusVisible: ce && C.isFocused && CC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function nce(e) {
- let { heading: t, "aria-label": n } = e, r = LC();
+function $se(e) {
+ let { heading: t, "aria-label": n } = e, r = BC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -28012,15 +28016,15 @@ function nce(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function rce() {
+function ece() {
return window.ResizeObserver !== void 0;
}
-function kO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Tw(r);
+function MO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Ow(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (rce()) {
+ if (ece()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28035,154 +28039,154 @@ function kO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var AO = {};
-AO = { dismiss: "تجاهل" };
+var NO = {};
+NO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var jO = {};
-jO = { dismiss: "Отхвърляне" };
+var PO = {};
+PO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var MO = {};
-MO = { dismiss: "Odstranit" };
+var FO = {};
+FO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var NO = {};
-NO = { dismiss: "Luk" };
+var IO = {};
+IO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var PO = {};
-PO = { dismiss: "Schließen" };
+var LO = {};
+LO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var FO = {};
-FO = { dismiss: "Απόρριψη" };
+var RO = {};
+RO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var IO = {};
-IO = { dismiss: "Dismiss" };
+var zO = {};
+zO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var LO = {};
-LO = { dismiss: "Descartar" };
+var BO = {};
+BO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var RO = {};
-RO = { dismiss: "Lõpeta" };
+var VO = {};
+VO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var zO = {};
-zO = { dismiss: "Hylkää" };
+var HO = {};
+HO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var BO = {};
-BO = { dismiss: "Rejeter" };
+var UO = {};
+UO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var VO = {};
-VO = { dismiss: "התעלם" };
+var WO = {};
+WO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var HO = {};
-HO = { dismiss: "Odbaci" };
+var GO = {};
+GO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var UO = {};
-UO = { dismiss: "Elutasítás" };
+var KO = {};
+KO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var WO = {};
-WO = { dismiss: "Ignora" };
+var qO = {};
+qO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var GO = {};
-GO = { dismiss: "閉じる" };
+var JO = {};
+JO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var KO = {};
-KO = { dismiss: "무시" };
+var YO = {};
+YO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var qO = {};
-qO = { dismiss: "Atmesti" };
+var XO = {};
+XO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var JO = {};
-JO = { dismiss: "Nerādīt" };
+var ZO = {};
+ZO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var YO = {};
-YO = { dismiss: "Lukk" };
+var QO = {};
+QO = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var XO = {};
-XO = { dismiss: "Negeren" };
+var $O = {};
+$O = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ZO = {};
-ZO = { dismiss: "Zignoruj" };
+var ek = {};
+ek = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var QO = {};
-QO = { dismiss: "Descartar" };
+var tk = {};
+tk = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var $O = {};
-$O = { dismiss: "Dispensar" };
+var nk = {};
+nk = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ek = {};
-ek = { dismiss: "Revocare" };
+var rk = {};
+rk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var tk = {};
-tk = { dismiss: "Пропустить" };
+var ik = {};
+ik = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var nk = {};
-nk = { dismiss: "Zrušiť" };
+var ak = {};
+ak = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var rk = {};
-rk = { dismiss: "Opusti" };
+var ok = {};
+ok = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var ik = {};
-ik = { dismiss: "Odbaci" };
+var sk = {};
+sk = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ak = {};
-ak = { dismiss: "Avvisa" };
+var ck = {};
+ck = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ok = {};
-ok = { dismiss: "Kapat" };
+var lk = {};
+lk = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var sk = {};
-sk = { dismiss: "Скасувати" };
+var uk = {};
+uk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var ck = {};
-ck = { dismiss: "取消" };
+var dk = {};
+dk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var lk = {};
-lk = { dismiss: "關閉" };
+var fk = {};
+fk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var uk = {};
-uk = {
- "ar-AE": AO,
- "bg-BG": jO,
- "cs-CZ": MO,
- "da-DK": NO,
- "de-DE": PO,
- "el-GR": FO,
- "en-US": IO,
- "es-ES": LO,
- "et-EE": RO,
- "fi-FI": zO,
- "fr-FR": BO,
- "he-IL": VO,
- "hr-HR": HO,
- "hu-HU": UO,
- "it-IT": WO,
- "ja-JP": GO,
- "ko-KR": KO,
- "lt-LT": qO,
- "lv-LV": JO,
- "nb-NO": YO,
- "nl-NL": XO,
- "pl-PL": ZO,
- "pt-BR": QO,
- "pt-PT": $O,
- "ro-RO": ek,
- "ru-RU": tk,
- "sk-SK": nk,
- "sl-SI": rk,
- "sr-SP": ik,
- "sv-SE": ak,
- "tr-TR": ok,
- "uk-UA": sk,
- "zh-CN": ck,
- "zh-TW": lk
+var pk = {};
+pk = {
+ "ar-AE": NO,
+ "bg-BG": PO,
+ "cs-CZ": FO,
+ "da-DK": IO,
+ "de-DE": LO,
+ "el-GR": RO,
+ "en-US": zO,
+ "es-ES": BO,
+ "et-EE": VO,
+ "fi-FI": HO,
+ "fr-FR": UO,
+ "he-IL": WO,
+ "hr-HR": GO,
+ "hu-HU": KO,
+ "it-IT": qO,
+ "ja-JP": JO,
+ "ko-KR": YO,
+ "lt-LT": XO,
+ "lv-LV": ZO,
+ "nb-NO": QO,
+ "nl-NL": $O,
+ "pl-PL": ek,
+ "pt-BR": tk,
+ "pt-PT": nk,
+ "ro-RO": rk,
+ "ru-RU": ik,
+ "sk-SK": ak,
+ "sl-SI": ok,
+ "sr-SP": sk,
+ "sv-SE": ck,
+ "tr-TR": lk,
+ "uk-UA": uk,
+ "zh-CN": dk,
+ "zh-TW": fk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function ice(e) {
+function tce(e) {
return e && e.__esModule ? e.default : e;
}
-function dk(e) {
- let { onDismiss: t, ...n } = e, r = Dw(n, zw(ice(uk), "@react-aria/overlays").format("dismiss")), i = () => {
+function mk(e) {
+ let { onDismiss: t, ...n } = e, r = Aw(n, Hw(tce(pk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(lE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28193,35 +28197,35 @@ function dk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var fk = [];
-function pk(e, t) {
+var hk = [];
+function gk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !fk.includes(t)) return fk.push(t), () => {
- let e = fk.indexOf(t);
- e >= 0 && fk.splice(e, 1);
+ if (i && !hk.includes(t)) return hk.push(t), () => {
+ let e = hk.indexOf(t);
+ e >= 0 && hk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- fk[fk.length - 1] === t && n && n();
+ hk[hk.length - 1] === t && n && n();
}, u = (e) => {
- let n = fk[fk.length - 1];
- c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
+ let n = hk[hk.length - 1];
+ c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (fk[fk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = qC({ shortcuts: { Escape: () => {
+ (!s || s(K(e))) && (hk[hk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = XC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Hse({
+ zse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = QT({
+ let { focusWithinProps: p } = tE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !ese(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Zoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28233,87 +28237,87 @@ function pk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var ace = 200, oce = 50, sce = 600, mk = /* @__PURE__ */ new WeakMap(), hk = /* @__PURE__ */ new Set(), gk = /* @__PURE__ */ new Set();
-function cce(e, t) {
- let n = ww();
- if (e !== n || t.aborted) for (let e of gk) e(n), gk.delete(e);
- if (!e && n && JS() && !t.aborted) window.clearInterval(mk.get(window)), mk.set(window, _k(ace));
+var nce = 200, rce = 50, ice = 600, _k = /* @__PURE__ */ new WeakMap(), vk = /* @__PURE__ */ new Set(), yk = /* @__PURE__ */ new Set();
+function ace(e, t) {
+ let n = Dw();
+ if (e !== n || t.aborted) for (let e of yk) e(n), yk.delete(e);
+ if (!e && n && ZS() && !t.aborted) window.clearInterval(_k.get(window)), _k.set(window, bk(nce));
else {
- if (e !== n || t.aborted) for (let e of hk) e(n), hk.delete(e);
- (gk.size + hk.size <= 0 || t.aborted) && (window.clearInterval(mk.get(window)), mk.delete(window));
+ if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
+ (yk.size + vk.size <= 0 || t.aborted) && (window.clearInterval(_k.get(window)), _k.delete(window));
}
}
-function _k(e = sce) {
- return window.setInterval(cce, oce, ww(), AbortSignal.timeout(e));
+function bk(e = ice) {
+ return window.setInterval(ace, rce, Dw(), AbortSignal.timeout(e));
}
-function vk(e) {
- if (!xw()) return e(!1), () => {};
+function xk(e) {
+ if (!ww()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Sw(document.hasFocus() ? kS() : null);
- if (ww() === t || ww() && !t) return e(t);
- gk.add(e), mk.has(window) || mk.set(window, _k());
+ let t = Tw(document.hasFocus() ? MS() : null);
+ if (Dw() === t || Dw() && !t) return e(t);
+ yk.add(e), _k.has(window) || _k.set(window, bk());
});
});
return () => {
- window.cancelAnimationFrame(t), gk.delete(e);
+ window.cancelAnimationFrame(t), yk.delete(e);
};
}
-function lce(e) {
- if (!xw()) return e(!1), () => {};
+function oce(e) {
+ if (!ww()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Sw(document.hasFocus() ? kS() : null);
- if (ww() === t) return e(t);
- hk.add(e), mk.has(window) || mk.set(window, _k());
+ let t = Tw(document.hasFocus() ? MS() : null);
+ if (Dw() === t) return e(t);
+ vk.add(e), _k.has(window) || _k.set(window, bk());
});
});
return () => {
- window.cancelAnimationFrame(t), hk.delete(e);
+ window.cancelAnimationFrame(t), vk.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var yk = typeof document < "u" && window.visualViewport, bk = 0, xk;
-function Sk(e = {}) {
+var Sk = typeof document < "u" && window.visualViewport, Ck = 0, wk;
+function Tk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- LS(() => {
- if (!t) return bk++, bk === 1 && (xk = qS() && JS() ? dce() : uce(n)), () => {
- bk--, bk === 0 && xk();
+ BS(() => {
+ if (!t) return Ck++, Ck === 1 && (wk = XS() && ZS() ? cce() : sce(n)), () => {
+ Ck--, Ck === 0 && wk();
};
}, [t, n]);
}
-function uce(e) {
+function sce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return NC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? ES(document.documentElement, "scrollbar-gutter", "stable") : ES(document.documentElement, "padding-right", `${t}px`)), ES(document.documentElement, "overflow", "hidden"), e && wk(), e && xw() && Ck());
+ return IC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? kS(document.documentElement, "scrollbar-gutter", "stable") : kS(document.documentElement, "padding-right", `${t}px`)), kS(document.documentElement, "overflow", "hidden"), e && Dk(), e && ww() && Ek());
}
-function dce() {
- let e = ES(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = G(e);
- t = AT(r, !0) ? r : jT(r, !0), n = !1;
+function cce() {
+ let e = kS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = K(e);
+ t = NT(r, !0) ? r : PT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Jw();
+ }, i = document.createElement("style"), a = Zw();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = wk(), c = NC(TS(document, "touchstart", r, {
+ }, s = Dk(), c = IC(OS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), TS(document, "touchmove", o, {
+ }), OS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Ck());
+ }), Ek());
return () => {
e(), c(), i.remove(), s();
};
}
-function Ck() {
- return TS(document, "blur", (e) => {
- let t = G(e), n = e.relatedTarget;
- n && Sw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+function Ek() {
+ return OS(document, "blur", (e) => {
+ let t = K(e), n = e.relatedTarget;
+ n && Tw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function wk() {
+function Dk() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28324,9 +28328,9 @@ function wk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- kS() === this && fce(this);
+ MS() === this && lce(this);
};
- vk((t) => t ? e() : lce(() => e()));
+ xk((t) => t ? e() : oce(() => e()));
}
}
}), () => {
@@ -28337,15 +28341,15 @@ function wk() {
});
};
}
-function fce(e) {
+function lce(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = jT(n);
+ let e = PT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- yk && (n = Math.min(n, yk.offsetTop + yk.height));
+ Sk && (n = Math.min(n, Sk.offsetTop + Sk.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -28357,56 +28361,56 @@ function fce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function pce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = pk({
+function uce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = gk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Sk({
+ Tk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), ED();
+ }), kD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? gE(n.current) : hE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? yE(n.current) : vE([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
n
]), {
- modalProps: K(r),
+ modalProps: q(r),
underlayProps: i
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Tk = {
+var Ok = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Ek = {
+}, kk = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, mce = {
+}, dce = {
top: "left",
left: "top"
-}, Dk = {
+}, Ak = {
top: "height",
left: "width"
-}, Ok = {
+}, jk = {
width: "totalWidth",
height: "totalHeight"
-}, kk = {}, hce = () => typeof document < "u" ? window.visualViewport : null;
-function Ak(e, t) {
+}, Mk = {}, fce = () => typeof document < "u" ? window.visualViewport : null;
+function pce(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
} else ({width: n, height: r, top: o, left: s} = Fk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return JS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ return ZS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28416,7 +28420,7 @@ function Ak(e, t) {
left: s
};
}
-function gce(e) {
+function mce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28424,11 +28428,11 @@ function gce(e) {
height: e.scrollHeight
};
}
-function jk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Dk[e]], l = o[e] + r.scroll[Tk[e]] + a, u = o[e] + r.scroll[Tk[e]] + c - a, d = t - s + r.scroll[Tk[e]] + o[e] - r[Tk[e]], f = t - s + n + r.scroll[Tk[e]] + o[e] - r[Tk[e]];
+function hce(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Ak[e]], l = o[e] + r.scroll[Ok[e]] + a, u = o[e] + r.scroll[Ok[e]] + c - a, d = t - s + r.scroll[Ok[e]] + o[e] - r[Ok[e]], f = t - s + n + r.scroll[Ok[e]] + o[e] - r[Ok[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function _ce(e) {
+function gce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28437,32 +28441,32 @@ function _ce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Mk(e) {
- if (kk[e]) return kk[e];
- let [t, n] = e.split(" "), r = Tk[t] || "right", i = mce[r];
- Tk[n] || (n = "center");
- let a = Dk[r], o = Dk[i];
- return kk[e] = {
+function _ce(e) {
+ if (Mk[e]) return Mk[e];
+ let [t, n] = e.split(" "), r = Ok[t] || "right", i = dce[r];
+ Ok[n] || (n = "center");
+ let a = Ak[r], o = Ak[i];
+ return Mk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, kk[e];
+ }, Mk[e];
}
function Nk(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = tE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ok[h]];
- _[Ek[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = iE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[jk[h]];
+ _[kk[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
function vce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ok.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+ let d = (e.top == null ? c[jk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
@@ -28470,22 +28474,22 @@ function vce(e, t, n, r, i, a, o, s, c, l, u) {
}
function yce(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ek[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ek[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[kk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[kk[l]] - i);
}
function bce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Mk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Nk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = yce(s, l, t, i, a + u, v, c, g);
+ let v = _ce(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Nk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = yce(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Mk(`${Ek[S]} ${C}`), r = Nk(t, s, n, e, u, d, l, f, m, h, c);
+ let e = _ce(`${kk[S]} ${C}`), r = Nk(t, s, n, e, u, d, l, f, m, h, c);
yce(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = jk(b, w[b], n[x], s, c, a, l);
+ let O = hce(b, w[b], n[x], s, c, a, l);
w[b] += O;
let k = vce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Nk(t, s, n, v, T, d, l, f, m, h, c), O = jk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Tk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Tk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = tE(tE(M, t[b] + m / 2 - (w[b] + i[Tk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Tk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Nk(t, s, n, v, T, d, l, f, m, h, c), O = hce(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Ok[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ok[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = iE(iE(M, t[b] + m / 2 - (w[b] + i[Ok[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ok[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28500,14 +28504,14 @@ function bce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
};
}
function xce(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = hce(), h = r instanceof HTMLElement ? Cce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Fk(n, !1, p) : Sce(n, h, !1, p);
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = fce(), h = r instanceof HTMLElement ? Cce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Fk(n, !1, p) : Sce(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = Fk(r, !0), x = _ce(r);
+ let b = Fk(r, !0), x = gce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = gce(i), C = Ak(s, m), w = Ak(h, m), T;
+ let S = mce(i), C = pce(s, m), w = pce(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
let e = Pk(h, !1);
T = {
@@ -28522,7 +28526,7 @@ function xce(e) {
width: 0,
height: 0
} : Sce(s, h, !1);
- let E = OS(s, h);
+ let E = jS(s, h);
return bce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
function Pk(e, t) {
@@ -28565,7 +28569,7 @@ function wce(e) {
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
var Ik = typeof document < "u" ? window.visualViewport : null;
function Tce(e) {
- let { direction: t } = Nw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+ let { direction: t } = Iw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28589,8 +28593,8 @@ function Tce(e) {
let C = (0, F.useCallback)(() => {
if (p === !1 || !m || !i.current || !r.current || !u || Ik?.scale !== S.current) return;
let e = null;
- if (o.current && jS(o.current)) {
- let t = kS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && PS(o.current)) {
+ let t = MS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28615,22 +28619,22 @@ function Tce(e) {
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = kS();
+ let x = MS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- LS(C, x), Ece(C), kO({
+ BS(C, x), Ece(C), MO({
ref: i,
onResize: C
- }), kO({
+ }), MO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- LS(() => {
+ BS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28639,7 +28643,7 @@ function Tce(e) {
w.current && t();
};
Ik?.addEventListener("resize", t), Ik?.addEventListener("scroll", n);
- let r = TS(AS(window), "scroll", n);
+ let r = OS(NS(window), "scroll", n);
return () => {
Ik?.removeEventListener("resize", t), Ik?.removeEventListener("scroll", n), r();
};
@@ -28647,7 +28651,7 @@ function Tce(e) {
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Mse({
+ return kse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28674,7 +28678,7 @@ function Tce(e) {
};
}
function Ece(e) {
- LS(() => (window.addEventListener("resize", e, !1), () => {
+ BS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
@@ -28683,7 +28687,7 @@ function Dce(e, t) {
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
function Oce(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = pk({
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = gk({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
@@ -28698,17 +28702,17 @@ function Oce(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Sk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? gE(i?.current ?? r.current) : hE([i?.current ?? r.current], { shouldUseInert: !0 });
+ Tk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? yE(i?.current ?? r.current) : vE([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = QT(e);
+ let { focusWithinProps: g } = tE(e);
return {
- popoverProps: K(u, f, g),
+ popoverProps: q(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -28716,12 +28720,12 @@ function Oce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var kce = /* @__PURE__ */ new WeakMap();
+var Lk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ace(e, t, n) {
+function kce(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = tT({
+ }, { pressProps: g, isPressed: _ } = iT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28729,7 +28733,7 @@ function Ace(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = tT({
+ }), { pressProps: v, isPressed: y } = iT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28739,17 +28743,17 @@ function Ace(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = ZC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Vw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = ew(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = Ww(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = kce.get(t);
- LT(n, t.defaultSelectedValue, t.setSelectedValue), RT({ validationBehavior: O }, t, n);
- let k = zT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Lk.get(t);
+ BT(n, t.defaultSelectedValue, t.setSelectedValue), VT({ validationBehavior: O }, t, n);
+ let k = HT();
return {
- labelProps: K(v, (0, F.useMemo)(() => ({
+ labelProps: q(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: K(S, {
+ inputProps: q(S, {
...x,
type: "radio",
name: w,
@@ -28774,13 +28778,13 @@ function Ace(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function jce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Nw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = ZT({
+function Ace(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Iw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = eE({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Vw(e, { labelable: !0 }), { focusWithinProps: v } = QT({
+ }), _ = Ww(e, { labelable: !0 }), { focusWithinProps: v } = tE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28788,13 +28792,13 @@ function jce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = CT(n.currentTarget, {
- from: G(n),
- accept: (e) => e instanceof SS(e).HTMLInputElement && e.type === "radio"
+ let r = ET(n.currentTarget, {
+ from: K(n),
+ accept: (e) => e instanceof TS(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = qC({
+ let { keyboardProps: b } = XC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28802,15 +28806,15 @@ function jce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = LC(n);
- return kce.set(t, {
+ }), x = BC(n);
+ return Lk.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: K(_, {
+ radioGroupProps: q(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -28831,21 +28835,21 @@ function jce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Lk = /* @__PURE__ */ new WeakMap();
-function Mce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = bD({
+var Rk = /* @__PURE__ */ new WeakMap();
+function jce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = CD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new SE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new TE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = oD({
+ ]), { menuTriggerProps: d, menuProps: f } = lD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = qC({
+ }, t, n), { keyboardProps: p } = XC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28861,21 +28865,21 @@ function Mce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = cD({
+ }), { typeSelectProps: m } = dD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = ZT({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = eE({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Vw(e, { labelable: !0 }), C = K(m, d, y), w = LC();
- return Lk.set(t, {
+ let S = Ww(e, { labelable: !0 }), C = q(m, d, y), w = BC();
+ return Rk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28885,13 +28889,13 @@ function Mce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), SC("keyboard"));
+ e.isDisabled || (n.current?.focus(), TC("keyboard"));
}
},
- triggerProps: K(S, {
+ triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: NC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: IC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28915,7 +28919,7 @@ function Mce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- OS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ jS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28935,18 +28939,18 @@ function Mce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Nce(e, t, n) {
- let r = Lk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = cE({ style: {
+function Mce(e, t, n) {
+ let r = Rk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = dE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- LT(e.selectRef, t.defaultValue, t.setValue), RT({
+ BT(e.selectRef, t.defaultValue, t.setValue), VT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
let d = t.setValue, f = (0, F.useCallback)((e) => {
- let t = G(e);
+ let t = K(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -28971,8 +28975,8 @@ function Nce(e, t, n) {
}
};
}
-function Pce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Nce({
+function Nce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Mce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28996,7 +29000,7 @@ function Pce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Lk.get(t) || {};
+ let { validationBehavior: e } = Rk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29026,8 +29030,8 @@ function Pce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Fce(e) {
- let t = Vw(e, { labelable: !0 }), n;
+function Pce(e) {
+ let t = Ww(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29035,8 +29039,8 @@ function Fce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Ice(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = JT(e, t, n);
+function Fce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = ZT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29049,10 +29053,10 @@ function Ice(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Rk = class {
+var zk = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Lce(e.layout) : new xE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Ice(e.layout) : new wE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29088,7 +29092,7 @@ var Rk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of dD(n, this.collection)) {
+ for (let e of mD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29122,13 +29126,13 @@ var Rk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dD(t, this.collection);
- return (this.direction === "rtl" ? mD(e)?.key : fD(e)?.key) ?? null;
+ let e = mD(t, this.collection);
+ return (this.direction === "rtl" ? _D(e)?.key : hD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dD(n, this.collection), i = (this.direction === "rtl" ? pD(r, t.index - 1) : pD(r, t.index + 1)) ?? null;
+ let r = mD(n, this.collection), i = (this.direction === "rtl" ? gD(r, t.index - 1) : gD(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29137,13 +29141,13 @@ var Rk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = dD(t, this.collection);
- return (this.direction === "rtl" ? fD(e)?.key : mD(e)?.key) ?? null;
+ let e = mD(t, this.collection);
+ return (this.direction === "rtl" ? hD(e)?.key : _D(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = dD(n, this.collection), i = (this.direction === "rtl" ? pD(r, t.index + 1) : pD(r, t.index - 1)) ?? null;
+ let r = mD(n, this.collection), i = (this.direction === "rtl" ? gD(r, t.index + 1) : gD(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29154,13 +29158,13 @@ var Rk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? fD(dD(e, this.collection))?.key ?? null : null;
+ return e ? hD(mD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = fD(dD(e, this.collection))?.key ?? null;
+ n = hD(mD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29170,13 +29174,13 @@ var Rk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? mD(dD(e, this.collection))?.key ?? null : null;
+ return e ? _D(mD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = mD(dD(e, this.collection))?.key ?? null;
+ n = _D(mD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29212,13 +29216,13 @@ var Rk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? fD(dD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? hD(mD(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Lce = class {
+}, Ice = class {
constructor(e) {
this.layout = e;
}
@@ -29231,15 +29235,15 @@ var Rk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, zk = /* @__PURE__ */ new WeakMap();
+}, Bk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Rce(e, t, n) {
+function Lce(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = bD({
+ let h = CD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Nw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Rk({
+ }), { direction: g } = Iw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new zk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29256,7 +29260,7 @@ function Rce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = uD({
+ ]), { collectionProps: y } = pD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29264,8 +29268,8 @@ function Rce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = LC(e.id);
- zk.set(t, {
+ }), b = BC(e.id);
+ Bk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29274,42 +29278,42 @@ function Rce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = yO({
+ let x = SO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Vw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? OS(e.currentTarget, G(e)) || m.setFocused(!1) : OS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Ww(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? jS(e.currentTarget, K(e)) || m.setFocused(!1) : jS(e.currentTarget, K(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = vO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = xO(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), gO({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), yO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Bk = /* @__PURE__ */ new WeakMap();
-function Vk(e) {
+var Vk = /* @__PURE__ */ new WeakMap();
+function Hk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Hk(e, t) {
- let n = Bk.get(e);
+function Uk(e, t) {
+ let n = Vk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Vk(t)}`;
+ return `${n}-${Hk(t)}`;
}
-function Uk(e, t, n) {
- let r = Bk.get(e);
+function Wk(e, t, n) {
+ let r = Vk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Vk(t)}-${Vk(n)}`;
+ return `${r}-${Hk(t)}-${Hk(n)}`;
}
-function Wk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Uk(e, t, n)).join(" ");
+function Gk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Wk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Gk = {};
-Gk = {
+var Kk = {};
+Kk = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -29323,8 +29327,8 @@ Gk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Kk = {};
-Kk = {
+var qk = {};
+qk = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -29338,8 +29342,8 @@ Kk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var qk = {};
-qk = {
+var Jk = {};
+Jk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29353,8 +29357,8 @@ qk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Jk = {};
-Jk = {
+var Yk = {};
+Yk = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29368,8 +29372,8 @@ Jk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Yk = {};
-Yk = {
+var Xk = {};
+Xk = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29383,8 +29387,8 @@ Yk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Xk = {};
-Xk = {
+var Zk = {};
+Zk = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -29398,8 +29402,8 @@ Xk = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var Zk = {};
-Zk = {
+var Qk = {};
+Qk = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29413,8 +29417,8 @@ Zk = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var Qk = {};
-Qk = {
+var $k = {};
+$k = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29428,8 +29432,8 @@ Qk = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var $k = {};
-$k = {
+var Rce = {};
+Rce = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29820,15 +29824,15 @@ wA = {
// node_modules/react-aria/dist/private/table/intlStrings.mjs
var TA = {};
TA = {
- "ar-AE": Gk,
- "bg-BG": Kk,
- "cs-CZ": qk,
- "da-DK": Jk,
- "de-DE": Yk,
- "el-GR": Xk,
- "en-US": Zk,
- "es-ES": Qk,
- "et-EE": $k,
+ "ar-AE": Kk,
+ "bg-BG": qk,
+ "cs-CZ": Jk,
+ "da-DK": Yk,
+ "de-DE": Xk,
+ "el-GR": Zk,
+ "en-US": Qk,
+ "es-ES": $k,
+ "et-EE": Rce,
"fi-FI": eA,
"fr-FR": tA,
"he-IL": nA,
@@ -29856,7 +29860,7 @@ TA = {
"zh-TW": wA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var zce = class extends Rk {
+var zce = class extends zk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29864,7 +29868,7 @@ var zce = class extends Rk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = fD(dD(n, this.collection));
+ let e = hD(mD(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29885,13 +29889,13 @@ var zce = class extends Rk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of dD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of mD(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...dD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...mD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29920,7 +29924,7 @@ var zce = class extends Rk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of dD(o, this.collection)) {
+ for (let r of mD(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29937,10 +29941,10 @@ function Bce(e) {
return e && e.__esModule ? e.default : e;
}
function Vce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = bD({
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = CD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Nw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new zce({
+ }), { direction: c } = Iw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new zce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29959,51 +29963,51 @@ function Vce(e, t, n) {
s,
a,
o
- ]), d = LC(e.id);
- Bk.set(t, d);
- let { gridProps: f } = Rce({
+ ]), d = BC(e.id);
+ Vk.set(t, d);
+ let { gridProps: f } = Lce({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = zw(Bce(TA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Hw(Bce(TA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = IT(g);
- return kT(() => {
- g && OT(g, "assertive", 500);
- }, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
+ ]), _ = zT(g);
+ return MT(() => {
+ g && jT(g, "assertive", 500);
+ }, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
function EA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Nw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = zk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Iw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Bk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = CT(n.current);
+ let e = ET(n.current);
if (p === "child") {
- let i = kS(xS(n.current));
- if (jS(n.current) && n.current !== i) return;
- let a = xS(n.current);
+ let i = MS(wS(n.current));
+ if (PS(n.current) && n.current !== i) return;
+ let a = wS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && OS(n.current, e)) {
- MC(e);
+ if (e && m.current === r.key && jS(n.current, e)) {
+ FC(e);
return;
}
}
let o = t.selectionManager.childFocusStrategy === "last" ? DA(e) : e.firstChild();
if (o) {
- MC(o);
+ FC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !jS(n.current)) && MC(n.current);
+ (m.current != null && r.key !== m.current || !PS(n.current)) && FC(n.current);
}
- }, { itemProps: _, isPressed: v } = xO({
+ }, { itemProps: _, isPressed: v } = wO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30012,47 +30016,47 @@ function EA(e, t, n) {
shouldSelectOnPressUp: s,
onAction: d ? () => d(r.key) : c,
isDisabled: t.collection.size === 0
- }), y = K(_, {
+ }), y = q(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = kS(xS(n.current));
- if (!OS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = CT(n.current);
+ let i = MS(wS(n.current));
+ if (!jS(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = ET(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) MC(t), PT(t, { containingElement: jT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) FC(t), LT(t, { containingElement: PT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (MC(n.current), PT(n.current, { containingElement: jT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : DA(a), t && (MC(t), PT(t, { containingElement: jT(n.current) })));
+ p === "cell" && l === "rtl" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : DA(a), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) MC(t), PT(t, { containingElement: jT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) FC(t), LT(t, { containingElement: PT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (MC(n.current), PT(n.current, { containingElement: jT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? DA(a) : a.firstChild(), t && (MC(t), PT(t, { containingElement: jT(n.current) })));
+ p === "cell" && l === "ltr" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? DA(a) : a.firstChild(), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && OS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && jS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = kS(xS(n.current));
- if (OS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
- if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
+ let r = MS(wS(n.current));
+ if (jS(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ if (f === "tab" && K(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = CT(n.current, { tabbable: !0 });
+ let t = ET(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30061,11 +30065,11 @@ function EA(e, t, n) {
"aria-colindex": r.colIndex == null ? void 0 : r.colIndex + 1,
colSpan: i ? void 0 : r.colSpan,
onFocus: (e) => {
- if (m.current = r.key, G(e) !== n.current) {
- let i = G(e);
- n.current && OS(n.current, i) && (h.current = i), bC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && OS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && kS(xS(n.current)) === n.current && g();
+ if (m.current = r.key, K(e) !== n.current) {
+ let i = K(e);
+ n.current && jS(n.current, i) && (h.current = i), CC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && MS(wS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30090,7 +30094,7 @@ function DA(e) {
// node_modules/react-aria/dist/private/table/useTableCell.mjs
function Hce(e, t, n) {
let { gridCellProps: r, isPressed: i } = EA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Uk(t, e.node.parentKey, a)), {
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Wk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
@@ -30103,17 +30107,17 @@ function Wce(e, t, n) {
let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = EA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = tT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = iT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = ZC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !XS() && (u = d ? f : "none");
- let p = zw(Uce(TA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && XS() && (m = `${m}, ${p.format(f)}`));
- let h = IT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = ew({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !$S() && (u = d ? f : "none");
+ let p = Hw(Uce(TA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && $S() && (m = `${m}, ${p.format(f)}`));
+ let h = zT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30122,9 +30126,9 @@ function Wce(e, t, n) {
r.key
]), {
columnHeaderProps: {
- ...K(l, a, s, h, g ? { tabIndex: -1 } : null),
+ ...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Hk(t, r.key),
+ id: Uk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30136,13 +30140,13 @@ function Gce(e) {
return e && e.__esModule ? e.default : e;
}
function Kce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = zw(Gce(TA), "@react-aria/table"), d = LC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Nw(), b = (0, F.useCallback)((e) => {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Hw(Gce(TA), "@react-aria/table"), d = BC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Iw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && MC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && FC(i.current)), m.current = null;
}, [
t,
i,
@@ -30150,14 +30154,14 @@ function Kce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = qC({ shortcuts: {
+ }, { keyboardProps: w } = XC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = oE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = lE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30173,12 +30177,12 @@ function Kce(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = CC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = EC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = IT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = zT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${Hk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Uk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30186,11 +30190,11 @@ function Kce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && MC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Tw(b);
+ n.current && FC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ow(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = kS() === n.current, ne(r);
+ h.current = MS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30204,9 +30208,9 @@ function Kce(e, t, n) {
n
]);
let re = (e) => {
- let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
+ let n = t.getColumnWidth(r.key), i = parseFloat(K(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = tT({
+ }, { pressProps: I } = iT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30214,13 +30218,13 @@ function Kce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = cE();
+ }), { visuallyHiddenProps: ie } = dE();
return {
- resizerProps: K(w, {
+ resizerProps: q(w, {
...E,
onKeyDown: D
}, I, { style: { touchAction: "none" } }),
- inputProps: K(ie, {
+ inputProps: q(ie, {
id: d,
onBlur: () => {
S(r);
@@ -30239,13 +30243,13 @@ function qce(e, t, n) {
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
function Jce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = zk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = xO({
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Bk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = wO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? NC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? IC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30273,11 +30277,11 @@ var OA = {
}
};
function Xce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Jce(e, t, n), { direction: s } = Nw();
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Jce(e, t, n), { direction: s } = Iw();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = zw(Yce(TA), "@react-aria/table"), u = Dw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Hw(Yce(TA), "@react-aria/table"), u = Aw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Wk(t, r.key)
+ "aria-labelledby": Gk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
@@ -30304,11 +30308,11 @@ function Xce(e, t, n) {
};
}
}
- let p = eC(r.props), m = o.hasAction ? p : {};
+ let p = rC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
- ...K(a, d, m),
- "aria-labelledby": Wk(t, r.key)
+ ...q(a, d, m),
+ "aria-labelledby": Gk(t, r.key)
},
expandButtonProps: f,
...o
@@ -30330,16 +30334,16 @@ function Qce(e) {
return e && e.__esModule ? e.default : e;
}
function $ce(e, t) {
- let { key: n } = e, { checkboxProps: r } = DO(e, t);
+ let { key: n } = e, { checkboxProps: r } = AO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Wk(t, n)}`
+ "aria-labelledby": `${r.id} ${Gk(t, n)}`
} };
}
function ele(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": zw(Qce(TA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Hw(Qce(TA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -30353,21 +30357,21 @@ function MA(e, t, n) {
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
function tle(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = xO({
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = wO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = MA(t, r, "tab"), m = MA(t, r, "tabpanel"), { tabIndex: h } = d, g = Vw(u?.props, { labelable: !0 });
+ }), p = MA(t, r, "tab"), m = MA(t, r, "tabpanel"), { tabIndex: h } = d, g = Ww(u?.props, { labelable: !0 });
delete g.id;
- let _ = tC(u?.props), { focusableProps: v } = ZC({
+ let _ = iC(u?.props), { focusableProps: v } = ew({
...u?.props,
isDisabled: l
}, n);
return {
- tabProps: K(g, v, _, d, {
+ tabProps: q(g, v, _, d, {
id: p,
"aria-selected": c,
"aria-disabled": l || void 0,
@@ -30425,7 +30429,7 @@ var nle = class {
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
function rle(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Nw(), { collectionProps: l } = uD({
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Iw(), { collectionProps: l } = pD({
ref: n,
selectionManager: o,
keyboardDelegate: (0, F.useMemo)(() => new nle(a, c, r, s), [
@@ -30438,9 +30442,9 @@ function rle(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = LC();
+ }), u = BC();
return jA.set(t, u), { tabListProps: {
- ...K(l, Dw({
+ ...q(l, Aw({
...e,
id: u
})),
@@ -30451,8 +30455,8 @@ function rle(e, t, n) {
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
function ile(e, t, n) {
- let r = vO(n) ? void 0 : 0, i = MA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Dw({
+ let r = xO(n) ? void 0 : 0, i = MA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(Aw({
...e,
id: i,
"aria-labelledby": MA(t, t?.selectedKey, "tab")
@@ -30465,7 +30469,7 @@ function ile(e, t, n) {
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
function ale(e, t, n) {
- let { gridProps: r } = Kse(e, t, n);
+ let { gridProps: r } = Use(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
@@ -30715,14 +30719,14 @@ function ole(e) {
return e && e.__esModule ? e.default : e;
}
function mj(e, t, n) {
- let { node: r } = e, i = qse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = zw(ole(pj), "@react-aria/tree"), s = {
+ let { node: r } = e, i = Wse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Hw(ole(pj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...Dw({
+ ...Aw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30741,7 +30745,7 @@ var hj = "(prefers-reduced-motion: reduce)", sle = () => matchMedia(hj).matches,
gj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...gj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
function lle({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Tx(), a = (0, F.useSyncExternalStore)(cle, sle, () => !1), { isFocusVisible: o } = wC(), s = a || o, c = {
+ let r = (0, F.useRef)(null), i = Ox(), a = (0, F.useSyncExternalStore)(cle, sle, () => !1), { isFocusVisible: o } = DC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30754,7 +30758,7 @@ function lle({ children: e, count: t, label: n }) {
return n.observe(e), window.addEventListener("resize", t), t(), () => {
n.disconnect(), window.removeEventListener("resize", t), gj.delete(e), _j();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(uS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(pS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30788,7 +30792,7 @@ function lle({ children: e, count: t, label: n }) {
});
}
function vj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Ox, { children: e ? /* @__PURE__ */ (0, I.jsx)(lle, { ...t }, "selection") : null });
+ return /* @__PURE__ */ (0, I.jsx)(jx, { children: e ? /* @__PURE__ */ (0, I.jsx)(lle, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
var yj = {
@@ -31877,7 +31881,7 @@ var Ole = "peach.settings.v1", kle = [
theaterMode: !1,
theme: "system",
groupCollapse: !0,
- sidebarOrder: [...Bl],
+ sidebarOrder: [...Vl],
homeGlow: Gj,
accent: Vj,
performerNameLanguage: "zh-CN"
@@ -31891,7 +31895,7 @@ function jle(e) {
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
let a = Oj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Cj(+n.batchSize, 1, 200, 60), n.defaultSort = Xj(n.defaultSort, Ej, "seed"), n.hoverDelaySeconds = Cj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Cj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Cj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Cj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Cj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = Xj(n.theme, kle, "system"), n.performerNameLanguage = Xj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Kj(n.homeGlow), n.accent = Hj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Cj(+n.batchSize, 1, 200, 60), n.defaultSort = Xj(n.defaultSort, Ej, "seed"), n.hoverDelaySeconds = Cj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Cj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Cj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Cj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Cj(+n.feedLimit, 1, 100, 12), Object.assign(n, eo(n)), n.theme = Xj(n.theme, kle, "system"), n.performerNameLanguage = Xj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Kj(n.homeGlow), n.accent = Hj(n.accent), n.sidebarOrder = Gl(n.sidebarOrder), {
settings: n,
migrated: r
};
@@ -31991,7 +31995,7 @@ var iM = [[
"masonry",
"瀑布流",
"columns-2"
-]], sM = .75, cM = () => Qj().value, lM = (e = cM()) => Qa(e.javLayout), Rle = (e = cM()) => Qa(e.homeLayout), uM = (e, t = cM()) => e ? Rle(t) : lM(t), dM = aM.map(([e]) => e), fM = oM.map(([e]) => e), pM = (e = cM()) => Xj(e.photoSize, dM, "small"), mM = (e = cM()) => Xj(e.photoLayout, fM, "masonry"), hM = null;
+]], sM = .75, cM = () => Qj().value, lM = (e = cM()) => $a(e.javLayout), Rle = (e = cM()) => $a(e.homeLayout), uM = (e, t = cM()) => e ? Rle(t) : lM(t), dM = aM.map(([e]) => e), fM = oM.map(([e]) => e), pM = (e = cM()) => Xj(e.photoSize, dM, "small"), mM = (e = cM()) => Xj(e.photoLayout, fM, "masonry"), hM = null;
function gM(e, t = cM()) {
let n = {
active: e.active,
@@ -32005,13 +32009,13 @@ function _M(e) {
return e.portrait ? 9 / 16 : e.active && e.size === "big" ? sM : 16 / 9;
}
function zle(e, t = Qj()) {
- t.value.homeLayout = Qa(e), t.save();
+ t.value.homeLayout = $a(e), t.save();
}
function vM(e, t = Qj()) {
- t.value.javLayout = Qa(e), t.save();
+ t.value.javLayout = $a(e), t.save();
}
function Ble(e, t = Qj()) {
- t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
+ t.value.homeLayout = t.value.javLayout = $a(e), t.save();
}
function Vle(e, t = Qj()) {
t.value.photoSize = Xj(e, dM, "small"), t.save();
@@ -32026,10 +32030,10 @@ var bM = "density", xM = {
}, SM = () => localStorage.getItem(bM) === "dense" ? "dense" : "big";
function CM(e, t) {
let [n, r] = aM;
- if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
+ if (e.querySelector("[data-icon-swap]")) Js(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
- e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
+ e.innerHTML = qs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
wM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
@@ -32204,7 +32208,7 @@ function tue() {
var zM = null, BM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
function VM() {
let e = document.getElementById("playerMenu");
- e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
+ e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && us(e, () => {
e.innerHTML = "";
}), zM &&= (zM(), null);
}
@@ -32286,7 +32290,7 @@ function iue(e, t, n) {
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${BM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? BM(R("check"), "data-player-menu-check") : ""}</button>`;
- }).join(""), cs(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
+ }).join(""), ls(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
@@ -32307,7 +32311,7 @@ function iue(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && VM();
+ fs(t, e.el()) && VM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
@@ -32922,7 +32926,7 @@ var dN = class {
}
status(e, t = !1, n = !1) {
let r = this.player.el().querySelector(".vjs-peach-panel:not(.vjs-peach-panel-leaving) [data-subtitle-status]");
- r && (r.hidden = !1, r.innerHTML = `${n ? Bs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));
+ r && (r.hidden = !1, r.innerHTML = `${n ? Vs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));
}
busy() {
return this.request?.abort(), this.request = new AbortController(), this.request.signal;
@@ -32975,7 +32979,7 @@ var dN = class {
async runSearch(e, t = this.offset) {
if (e.getAttribute("aria-busy") === "true") return;
let n = this.busy(), r = this.generation, i = e.querySelector("[data-subtitle-more],[data-subtitle-retry]"), a = e.querySelector("[data-subtitle-results]");
- e.setAttribute("aria-busy", "true"), i && Xc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
+ e.setAttribute("aria-busy", "true"), i && Zc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
try {
let i = await Tn(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });
if (n.aborted || r !== this.generation) return;
@@ -32985,7 +32989,7 @@ var dN = class {
this.runSearch(e, t);
});
} finally {
- e.removeAttribute("aria-busy"), i && Xc(i, !1), a.inert = !1;
+ e.removeAttribute("aria-busy"), i && Zc(i, !1), a.inert = !1;
}
}
async showFiles(e) {
@@ -34091,7 +34095,7 @@ async function zue(e, t, n, r = {}) {
preload: "metadata",
language: "zh-CN",
responsive: !0,
- poster: r.poster || ko(e, a.settings().javImage),
+ poster: r.poster || Ao(e, a.settings().javImage),
controlBar: {
pictureInPictureToggle: !0,
currentTimeDisplay: !1,
@@ -34277,7 +34281,7 @@ function eP(e, t) {
mediaPromise: Tn(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)
};
else {
- let t = ko(r, c.settings().javImage);
+ let t = Ao(r, c.settings().javImage);
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
@@ -34420,7 +34424,7 @@ function aP(e, t, n) {
return !0;
}) : [...e];
}
-var oP = (e, t) => !!e && !!to(e, t);
+var oP = (e, t) => !!e && !!no(e, t);
function Yue(e, t) {
let n = (e) => oP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => oP(e, t)) || e[e.length - 1];
@@ -34528,7 +34532,7 @@ async function SP(e, t, n) {
return H.setQueryData(fP(i.id), i), {
kind: "mix",
seedId: r,
- title: `Mix · ${Mo(i, t.tagLabel)}`,
+ title: `Mix · ${No(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
@@ -35149,7 +35153,7 @@ function Wde({ shown: e }) {
e.preventDefault(), n && (_F(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
t && (_F(), i.openItem(t.id));
- }, s = r ? _o(r.name, r.ref, Za(r.name), r.kind || "performer") : "";
+ }, s = r ? vo(r.name, r.ref, Qa(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -35177,7 +35181,7 @@ function Wde({ shown: e }) {
})]
});
}
-var Gde = { __html: Bs("媒体加载中") };
+var Gde = { __html: Vs("媒体加载中") };
function Kde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
@@ -35274,7 +35278,7 @@ function Xde() {
}
// src/manage-header.ts
var PF = {
- ...Xf,
+ ...Zf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
@@ -37139,7 +37143,7 @@ var rfe = (e, t) => {
"medium",
"semibold",
"bold"
-], q = Kfe({ extend: { classGroups: { "font-size": [{ text: qfe.flatMap((e) => Jfe.map((t) => `${e}-${t}`)) }] } } });
+], J = Kfe({ extend: { classGroups: { "font-size": [{ text: qfe.flatMap((e) => Jfe.map((t) => `${e}-${t}`)) }] } } });
function AI(e) {
return e;
}
@@ -37204,7 +37208,7 @@ function MI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", jI.radius[o.variant], jI.thumb[o.variant]),
+ className: J("pointer-events-none absolute left-0 top-0", jI.radius[o.variant], jI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37215,7 +37219,7 @@ function MI({ children: e, className: t, ref: n, container: r, ...i }) {
return r === void 0 ? /* @__PURE__ */ (0, I.jsxs)("div", {
ref: c,
role: "group",
- className: q("relative inline-flex items-center gap-1", t),
+ className: J("relative inline-flex items-center gap-1", t),
...i,
children: [l, e]
}) : r ? (0, Rt.createPortal)(l, r) : null;
@@ -37332,7 +37336,7 @@ function ipe({ host: e, lede: t }) {
function ape({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
- Js(t.current, e);
+ Ys(t.current, e);
}, [e]), /* @__PURE__ */ (0, I.jsx)("span", {
ref: t,
"data-lede-text": ""
@@ -37704,7 +37708,7 @@ function eL() {
function tL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
- e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
+ e === void 0 ? a === void 0 && mc(r.current) : i.current = e;
}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-async-text": "",
"aria-busy": t || void 0,
@@ -37737,7 +37741,7 @@ function rL({ icon: e, size: t = "medium", className: n, type: r = "button", ref
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(nL.base, nL.size[t], n),
+ className: J(nL.base, nL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
className: nL.icon[t],
@@ -37784,7 +37788,7 @@ function oL(e, t = !0) {
return (0, F.useLayoutEffect)(() => {
if (!n || !t) return;
n.dataset.horizontalScroll = "";
- let e = Ac(n);
+ let e = jc(n);
return () => {
e.destroy(), delete n.dataset.horizontalScroll, delete n.dataset.overflowLeft, delete n.dataset.overflowRight;
};
@@ -37794,7 +37798,7 @@ function oL(e, t = !0) {
var Hpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
- dangerouslySetInnerHTML: { __html: Bs("正在处理") }
+ dangerouslySetInnerHTML: { __html: Vs("正在处理") }
});
function sL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)(rL, {
@@ -37839,7 +37843,7 @@ function cL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: q("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ className: J("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
children: [
s,
n === null ? null : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -37847,14 +37851,14 @@ function cL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
role: "group",
"aria-label": t,
"data-filter-row": "top",
- className: q("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ className: J("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, I.jsx)("div", {
ref: p,
"data-filter-row": "bottom",
"aria-busy": l || void 0,
- className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: J("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
/* @__PURE__ */ (0, I.jsx)(iL, {})
@@ -37867,7 +37871,7 @@ function lL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
type: "button",
...i,
"aria-pressed": t,
- className: q(Wpe, r),
+ className: J(Wpe, r),
onClick: n,
children: e
});
@@ -37923,11 +37927,11 @@ function pL(e, t, n, r, { axis: i = "x" } = {}) {
if (!s) return;
let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? fL(u, l, i) : null;
if (!d || !d.w || !d.h) {
- Kc(s), s.hidden = !0, a.current = null;
+ qc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && dL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && dL(f, d)) && Gc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37975,7 +37979,7 @@ function pL(e, t, n, r, { axis: i = "x" } = {}) {
e.pointerType !== "touch" && o(null, !0);
}, [o]),
sync: (0, F.useCallback)(() => {
- Kc(e.current), o(null, !1);
+ qc(e.current), o(null, !1);
}, [e, o])
};
}
@@ -38009,11 +38013,11 @@ var mL = AI({
ghost: "bg-button-ghost-background text-button-ghost-foreground hover:bg-button-ghost-hover active:bg-button-ghost-active disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"
}
});
-function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+function Y({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
+ className: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
@@ -38034,7 +38038,7 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
function hL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
+ className: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
@@ -38106,7 +38110,7 @@ function yL(e, t) {
return n;
}
function bL(e, t, n) {
- let { ref: r, ...i } = yL(n, e.slot) || {}, a = JC((0, F.useMemo)(() => zC(t, r), [t, r])), o = K(i, e);
+ let { ref: r, ...i } = yL(n, e.slot) || {}, a = ZC((0, F.useMemo)(() => HC(t, r), [t, r])), o = q(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,
@@ -38128,7 +38132,7 @@ function xL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return LS(() => {
+ return BS(() => {
r.current || n(!1);
}, []), [i, t];
}
@@ -38138,8 +38142,8 @@ function SL(e) {
return n;
}
function Kpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => zC(n, a), [n, a]);
- LS(() => {}, [e, r]);
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => HC(n, a), [n, a]);
+ BS(() => {}, [e, r]);
let s = {
...i,
ref: o
@@ -38159,7 +38163,7 @@ var CL = {}, wL = new Proxy({}, { get(e, t) {
}
};
function kL(e, t, n) {
- return yS({
+ return SS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38197,7 +38201,7 @@ function jL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ $C(function(e, t) {
+var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, ML);
let { elementType: n = "label", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
@@ -38205,11 +38209,11 @@ var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ $C(function(
...r,
ref: t
});
-}), Jpe = /*#__PURE__*/ (0, F.createContext)(null), PL = /*#__PURE__*/ (0, F.createContext)({}), FL = /*#__PURE__*/ $C(function(e, t) {
+}), Jpe = /*#__PURE__*/ (0, F.createContext)(null), PL = /*#__PURE__*/ (0, F.createContext)({}), FL = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, PL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Joe(e, t);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Goe(e, t);
i = Xpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = DD(e), { hoverProps: l, isHovered: u } = jD({
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = AD(e), { hoverProps: l, isHovered: u } = PD({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38223,21 +38227,21 @@ var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ $C(function(
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = LC(i.id), m = LC(), h = i["aria-labelledby"];
+ }), p = BC(i.id), m = BC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && OT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && jT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Vw(e, { global: !0 });
+ let _ = Ww(e, { global: !0 });
return delete _.onClick, /*#__PURE__*/ F.createElement(wL.button, {
- ...K(_, f, i, o, l),
+ ...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -38268,7 +38272,7 @@ var IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ (0, F.forwar
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), RL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = /*#__PURE__*/ $C(function(e, t) {
+}), RL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, RL);
let { elementType: n = "span", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
@@ -38278,13 +38282,13 @@ var IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ (0, F.forwar
});
}), zL = /*#__PURE__*/ (0, F.createContext)(null), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), Qpe = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null);
function $pe(e, t) {
- let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Qpe), a = JC((0, F.useMemo)(() => zC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Qpe), a = ZC((0, F.useMemo)(() => HC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
...SL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? _se(o, i, a) : YT(o, eE(e), a), a];
+ return [i ? mse(o, i, a) : QT(o, rE(e), a), a];
}
var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
@@ -38301,7 +38305,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
ref: t
}));
}), tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(UL), { isFocused: p, isFocusVisible: m, focusProps: h } = DD(), g = a || o, { hoverProps: _, isHovered: v } = jD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(UL), { isFocused: p, isFocusVisible: m, focusProps: h } = AD(), g = a || o, { hoverProps: _, isHovered: v } = PD({
...e,
isDisabled: g
}), y = vL({
@@ -38319,9 +38323,9 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Vw(e, { global: !0 });
+ }), b = Ww(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
- ...K(b, n, _, y),
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -38334,20 +38338,20 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(lE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, h),
+ }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, h),
ref: l
})), y.children);
}), WL = /*#__PURE__*/ (0, F.createContext)({}), GL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = bL(e, t, WL);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = jD({
+ let { hoverProps: l, isHovered: u } = PD({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = DD({ within: !0 }), m = vL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = AD({ within: !0 }), m = vL({
...e,
values: {
isHovered: u,
@@ -38359,7 +38363,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
defaultClassName: "react-aria-Group"
});
return /*#__PURE__*/ F.createElement(wL.div, {
- ...K(c, p, l),
+ ...q(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -38374,12 +38378,12 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
}), KL = /*#__PURE__*/ (0, F.createContext)({}), nme = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, rme = /*#__PURE__*/ $C(function(e, t) {
+}, rme = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, KL);
- let { hoverProps: n, isHovered: r } = jD({
+ let { hoverProps: n, isHovered: r } = PD({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = DD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
@@ -38394,7 +38398,7 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
defaultClassName: "react-aria-Input"
});
return /*#__PURE__*/ F.createElement(wL.input, {
- ...K(nme(e), o, n),
+ ...q(nme(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38407,12 +38411,12 @@ var eme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
function sme(e) {
let { isDisabled: t = !1, minValue: n = ime, maxValue: r = ame, numberFormatter: i, step: a = ome, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = rE(e, 0, e + a, a), Math.max(e, a);
+ return e = oE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => rE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => oE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
@@ -38420,7 +38424,7 @@ function sme(e) {
e.defaultValue,
n,
c
- ]), d = YL(e.value, e.defaultValue, e.onChange), f = YL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = $T(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = YL(e.value, e.defaultValue, e.onChange), f = YL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38443,7 +38447,7 @@ function sme(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = rE(n, r, i, a);
+ n = oE(n, r, i, a);
let o = qL(x.current, e, n);
C(o);
}
@@ -38472,15 +38476,15 @@ function sme(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return tE(te(e * (r - n) + n), n, r);
+ return iE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, rE(p[e] + i, n, r, a));
+ A(e, oE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, rE(p[e] - i, n, r, a));
+ A(e, oE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38527,10 +38531,10 @@ function YL(e, t, n) {
// node_modules/react-aria-components/dist/private/Slider.mjs
var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = bL(e, t, cme);
- let n = (0, F.useRef)(null), r = Sse(e.formatOptions), i = sme({
+ let n = (0, F.useRef)(null), r = yse(e.formatOptions), i = sme({
...e,
numberFormatter: r
- }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Cse({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bse({
...e,
label: o
}, i, n), d = vL({
@@ -38541,7 +38545,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Vw(e, { global: !0 });
+ }), f = Ww(e, { global: !0 });
return delete f.id, /*#__PURE__*/ F.createElement(_L, { values: [
[XL, i],
[ZL, {
@@ -38554,7 +38558,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
ref: a
}]
] }, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(f, d, s),
+ ...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
@@ -38562,7 +38566,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
}));
}), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = bL(e, t, ZL);
- let n = (0, F.useContext)(XL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = jD({
+ let n = (0, F.useContext)(XL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = PD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
@@ -38577,7 +38581,7 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
}
});
return /*#__PURE__*/ F.createElement(wL.div, {
- ...K(o, s),
+ ...q(o, s),
...l,
ref: t,
"data-hovered": c || void 0,
@@ -38585,13 +38589,13 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
"data-disabled": n.isDisabled || void 0
});
}), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(XL), { ref: i } = yL(ZL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = xL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = wse({
+ let { inputRef: n = null } = e, r = (0, F.useContext)(XL), { ref: i } = yL(ZL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = xL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = xse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = DD(), { hoverProps: v, isHovered: y } = jD(e), b = vL({
+ }, r), { focusProps: g, isFocusVisible: _ } = AD(), { hoverProps: v, isHovered: y } = PD(e), b = vL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38602,9 +38606,9 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Vw(e, { global: !0 });
+ }), x = Ww(e, { global: !0 });
return delete x.id, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(x, u, v),
+ ...q(x, u, v),
...b,
ref: t,
style: {
@@ -38616,9 +38620,9 @@ var cme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(lE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
- ...K(d, g)
+ ...q(d, g)
})), /*#__PURE__*/ F.createElement(_L, { values: [[ML, {
...f,
ref: c
@@ -38974,7 +38978,7 @@ function RR(e) {
return /*#__PURE__*/ F.createElement(mme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE__*/ (0, F.createContext)({}), hme = /*#__PURE__*/ sw(class extends dS {
+var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE__*/ (0, F.createContext)({}), hme = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "separator";
}
@@ -38990,14 +38994,14 @@ var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE_
[e, t] = bL(e, t, BR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = wL[c], { separatorProps: u } = Fce({
+ let l = wL[c], { separatorProps: u } = Pce({
...s,
elementType: n,
orientation: r
- }), d = Vw(e, { global: !0 });
+ }), d = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
- ...K(d, u),
+ ...q(d, u),
style: i,
className: a ?? "react-aria-Separator",
ref: t,
@@ -39066,7 +39070,7 @@ function gme(e, t) {
return !0;
}
function WR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = $T((0, F.useMemo)(() => GR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => GR(e.defaultSelectedKeys, new UR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = nE((0, F.useMemo)(() => GR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => GR(e.defaultSelectedKeys, new UR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39159,7 +39163,7 @@ var KR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && vD(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39167,7 +39171,7 @@ var KR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && hD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && vD(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39197,7 +39201,7 @@ var KR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? hD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? vD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39247,7 +39251,7 @@ var KR = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(fD(dD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(hD(mD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39507,14 +39511,14 @@ function ZR(e, t) {
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
function QR(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Tw((e) => {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ow((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- LS(() => {
+ BS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: jT(t?.current),
+ root: PT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39536,7 +39540,7 @@ var $R = /*#__PURE__*/ (0, F.createContext)(null), ez = /*#__PURE__*/ (0, F.crea
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(iw, { content: /*#__PURE__*/ F.createElement(dw, e) }, (n) => /*#__PURE__*/ F.createElement(xme, {
+ }) : /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(xme, {
props: e,
listBoxRef: t,
collection: n
@@ -39561,10 +39565,10 @@ function xme({ props: e, listBoxRef: t, collection: n }) {
}
function tz({ state: e, props: t, listBoxRef: n }) {
[t, n] = bL(t, n, TL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Nw(), { disabledBehavior: p, disabledKeys: m } = l, h = bD({
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = yme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Iw(), { disabledBehavior: p, disabledKeys: m } = l, h = CD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(AL), b = (0, F.useMemo)(() => t.keyboardDelegate || new SE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(AL), b = (0, F.useMemo)(() => t.keyboardDelegate || new TE({
collection: c,
collator: h,
ref: n,
@@ -39585,7 +39589,7 @@ function tz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Zse({
+ ]), { listBoxProps: x } = Jse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39617,7 +39621,7 @@ function tz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = DD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = AD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39635,9 +39639,9 @@ function tz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Vw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(dT, null, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(te, ee, x, O, w?.collectionProps),
+ let te = Ww(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
@@ -39669,7 +39673,7 @@ function tz({ state: e, props: t, listBoxRef: n }) {
}))), N, E));
}
function Sme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(ez), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(NR), { CollectionBranch: s } = (0, F.useContext)(AL), [c, l] = xL(), { headingProps: u, groupProps: d } = Qse({
+ let i = (0, F.useContext)(ez), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(NR), { CollectionBranch: s } = (0, F.useContext)(AL), [c, l] = xL(), { headingProps: u, groupProps: d } = Yse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
}), f = vL({
@@ -39678,9 +39682,9 @@ function Sme(e, t, n, r = "react-aria-ListBoxSection") {
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Vw(e, { global: !0 });
+ }), p = Ww(e, { global: !0 });
return delete p.id, /*#__PURE__*/ F.createElement(wL.section, {
- ...K(p, f, d),
+ ...q(p, f, d),
ref: t
}, /*#__PURE__*/ F.createElement(LR.Provider, { value: {
...u,
@@ -39691,16 +39695,16 @@ function Sme(e, t, n, r = "react-aria-ListBoxSection") {
renderDropIndicator: FR(a, o)
})));
}
-var Cme = /*#__PURE__*/ sw(mS, function(e, t, n) {
- let r = JC(t), i = (0, F.useContext)(ez), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = $se({
+var Cme = /*#__PURE__*/ uw(_S, function(e, t, n) {
+ let r = ZC(t), i = (0, F.useContext)(ez), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = jD({
+ }, i, r), { hoverProps: p, isHovered: m } = PD({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = qC(e), { focusProps: g } = UC(e), _ = null;
+ }), { keyboardProps: h } = XC(e), { focusProps: g } = KC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39729,9 +39733,9 @@ var Cme = /*#__PURE__*/ sw(mS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? wL.a : wL.div, S = Vw(e, { global: !0 });
+ let x = e.href ? wL.a : wL.div, S = Ww(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
- ...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ ...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -39750,7 +39754,7 @@ var Cme = /*#__PURE__*/ sw(mS, function(e, t, n) {
} }], [zR, { isSelected: f.isSelected }]] }, b.children));
});
function wme(e, t) {
- t = JC(t);
+ t = ZC(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
return a ? null : /*#__PURE__*/ F.createElement(Eme, {
...e,
@@ -39774,7 +39778,7 @@ function Tme(e, t) {
}));
}
var Eme = /*#__PURE__*/ (0, F.forwardRef)(Tme);
-sw(pS, function(e, t, n) {
+uw(gS, function(e, t, n) {
let r = (0, F.useContext)(ez), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
QR((0, F.useMemo)(() => ({
onLoadMore: a,
@@ -39809,7 +39813,7 @@ sw(pS, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(Vw(e, { global: !0 }), { tabIndex: -1 }),
+ ...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -39819,7 +39823,7 @@ sw(pS, function(e, t, n) {
var Dme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
function nz(e) {
- let [t, n] = $T(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+ let [t, n] = nE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39839,9 +39843,9 @@ function nz(e) {
// node_modules/react-aria/dist/private/utils/animation.mjs
function rz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return LS(() => {
- if (!t && e.current) return NC(ES(e.current, "opacity", "0"), ES(e.current, "clip", "rect(0 0 0 0)"), ES(e.current, "clip-path", "inset(50%)"), ES(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), LS(() => {
+ return BS(() => {
+ if (!t && e.current) return IC(kS(e.current, "opacity", "0"), kS(e.current, "clip", "rect(0 0 0 0)"), kS(e.current, "clip-path", "inset(50%)"), kS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), BS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
}, [e, a]), az(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
@@ -39860,8 +39864,8 @@ function iz(e, t, n) {
}, [])), a;
}
function az(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Tw(n);
- LS(() => {
+ let i = (0, F.useRef)(null), a = Ow(n);
+ BS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39888,7 +39892,7 @@ function az(e, t, n, r) {
// node_modules/react-aria-components/dist/private/Popover.mjs
var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = bL(e, t, oz);
- let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = ew(), { direction: c } = Nw();
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = rw(), { direction: c } = Iw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39924,10 +39928,10 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- LS(() => {
+ BS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || xC() !== "pointer") && g.current && !jS(g.current) && MC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || wC() !== "pointer") && g.current && !PS(g.current) && FC(g.current);
}, [
x,
g,
@@ -39940,7 +39944,7 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- LS(E, [E]), kO({
+ BS(E, [E]), MO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39950,9 +39954,9 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- LS(() => vk(() => u(!0)), []);
+ BS(() => xk(() => u(!0)), []);
let O = /*#__PURE__*/ F.createElement(wL.div, {
- ...K(Vw(i, { global: !0 }), d),
+ ...q(Ww(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39967,17 +39971,17 @@ function Ome({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(dk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Dme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(mk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Dme.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(dk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(TD, {
+ } }, C), /*#__PURE__*/ F.createElement(mk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(OD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(TD, {
+ }, O) : /*#__PURE__*/ F.createElement(OD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -40067,7 +40071,7 @@ var Ame = class {
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
function uz(e) {
- let { onExpandedChange: t } = e, [n, r] = $T(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YR(e, (0, F.useCallback)((e) => new Ame(e, { expandedKeys: n }), [n]), null);
+ let { onExpandedChange: t } = e, [n, r] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = WR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YR(e, (0, F.useCallback)((e) => new Ame(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40088,11 +40092,11 @@ function jme(e, t) {
// node_modules/react-aria-components/dist/private/Menu.mjs
var dz = /*#__PURE__*/ (0, F.createContext)(null), fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null);
function Mme(e) {
- let t = lz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = oD({
+ let t = lz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = lD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return ew() ? null : /*#__PURE__*/ F.createElement(_L, { values: [
+ return rw() ? null : /*#__PURE__*/ F.createElement(_L, { values: [
[dz, {
...i,
ref: a
@@ -40107,14 +40111,14 @@ function Mme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Ise, {
+ ] }, /*#__PURE__*/ F.createElement(Nse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
var Nme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends dS {
+(class extends mS {
static {
this.type = "submenutrigger";
}
@@ -40128,7 +40132,7 @@ var Nme = /*#__PURE__*/ (0, F.createContext)(null);
}
});
var Pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = bL(e, t, dz), /*#__PURE__*/ F.createElement(iw, { content: /*#__PURE__*/ F.createElement(dw, e) }, (n) => /*#__PURE__*/ F.createElement(Fme, {
+ return [e, t] = bL(e, t, dz), /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(Fme, {
props: e,
collection: n,
menuRef: t
@@ -40140,7 +40144,7 @@ function Fme({ props: e, collection: t, menuRef: n }) {
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(pz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(AL), { menuProps: u } = ece({
+ }), s = (0, F.useContext)(pz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(AL), { menuProps: u } = Zse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
@@ -40154,9 +40158,9 @@ function Fme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Vw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(dT, null, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(p, d, u),
+ let p = Ww(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
@@ -40204,7 +40208,7 @@ var Ime = class extends KR {
}
};
function hz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(fz), { CollectionBranch: a } = (0, F.useContext)(AL), [o, s] = xL(), { headingProps: c, groupProps: l } = nce({
+ let i = (0, F.useContext)(fz), { CollectionBranch: a } = (0, F.useContext)(AL), [o, s] = xL(), { headingProps: c, groupProps: l } = $se({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
}), u = vL({
@@ -40215,9 +40219,9 @@ function hz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(mz), f = WR(e), p = e.selectionMode == null ? d : new Ime(d, f), m = yL(_z)?.shouldCloseOnSelect, h = Vw(e, { global: !0 });
+ }), d = (0, F.useContext)(mz), f = WR(e), p = e.selectionMode == null ? d : new Ime(d, f), m = yL(_z)?.shouldCloseOnSelect, h = Ww(e, { global: !0 });
return delete h.id, /*#__PURE__*/ F.createElement(wL.section, {
- ...K(h, u, l),
+ ...q(h, u, l),
ref: t
}, /*#__PURE__*/ F.createElement(_L, { values: [
[LR, {
@@ -40231,15 +40235,15 @@ function hz(e, t, n, r = "react-aria-MenuSection") {
parent: n
})));
}
-var gz = /*#__PURE__*/ cw(mae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ sw(mS, function(e, t, n) {
+var gz = /*#__PURE__*/ dw(dae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ uw(_S, function(e, t, n) {
[e, t] = bL(e, t, _z);
- let r = yL(_z)?.id, i = (0, F.useContext)(fz), a = JC(t), o = (0, F.useContext)(mz), { isVirtualized: s } = (0, F.useContext)(AL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = tce({
+ let r = yL(_z)?.id, i = (0, F.useContext)(fz), a = ZC(t), o = (0, F.useContext)(mz), { isVirtualized: s } = (0, F.useContext)(AL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = jD({ isDisabled: f.isDisabled }), h = vL({
+ }, i, a), { hoverProps: p, isHovered: m } = PD({ isDisabled: f.isDisabled }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -40253,9 +40257,9 @@ var gz = /*#__PURE__*/ cw(mae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? wL.a : wL.div, _ = Vw(e, { global: !0 });
+ }), g = e.href ? wL.a : wL.div, _ = Ww(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
- ...K(_, h, c, p),
+ ...q(_, h, c, p),
ref: a,
"data-disabled": f.isDisabled || void 0,
"data-hovered": m || void 0,
@@ -40276,7 +40280,7 @@ var gz = /*#__PURE__*/ cw(mae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null
[zR, { isSelected: f.isSelected }]
] }, h.children));
});
-sw(pS, function(e, t, n) {
+uw(gS, function(e, t, n) {
let r = (0, F.useContext)(fz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
QR((0, F.useMemo)(() => ({
onLoadMore: a,
@@ -40311,7 +40315,7 @@ sw(pS, function(e, t, n) {
width: 1
}
})), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(Vw(e, { global: !0 }), { tabIndex: -1 }),
+ ...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -40321,7 +40325,7 @@ sw(pS, function(e, t, n) {
var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
[e, t] = bL(e, t, yz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Rse({
+ let { dialogProps: r, titleProps: i, contentProps: a } = Fse({
...e,
"aria-labelledby": n
}, t), o = (0, F.useContext)(bz);
@@ -40332,9 +40336,9 @@ var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.crea
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Vw(e, { global: !0 });
+ }), c = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(wL.section, {
- ...K(c, s, r),
+ ...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
@@ -40357,7 +40361,7 @@ var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.crea
] }, s.children));
}), Sz = typeof document < "u" && window.visualViewport;
function Lme() {
- let e = aC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+ let e = cC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
} : Cz());
@@ -40367,15 +40371,15 @@ function Lme() {
}, n = () => {
Sz && Sz.scale > 1 || e(Cz());
}, i = (n) => {
- Sz && Sz.scale > 1 || Sw(G(n)) && (t.current = vk((t) => {
+ Sz && Sz.scale > 1 || Tw(K(n)) && (t.current = xk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Cz()), qS() && JS() && window.addEventListener("blur", i, !0), Sz ? Sz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), qS() && JS() && window.removeEventListener("blur", i, !0), Sz ? Sz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Cz()), XS() && ZS() && window.addEventListener("blur", i, !0), Sz ? Sz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), XS() && ZS() && window.removeEventListener("blur", i, !0), Sz ? Sz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
@@ -40409,7 +40413,7 @@ var Rme = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.cre
});
function Bme(e, t) {
[e, t] = bL(e, t, Rme);
- let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = JC(t), o = (0, F.useRef)(null), s = iz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = iz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = aC();
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZC(t), o = (0, F.useRef)(null), s = iz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = iz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = cC();
return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Vme, {
...e,
state: i,
@@ -40421,7 +40425,7 @@ function Bme(e, t) {
}
var Tz = /*#__PURE__*/ (0, F.forwardRef)(Bme);
function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = rz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = pce({
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = rz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = uce({
...n,
isEntering: c
}, i, r), d = (0, F.useContext)(yz), f = t ? Hme(d, { isEntering: c }) : d, p = vL({
@@ -40434,7 +40438,7 @@ function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
}
}), m = Lme(), h, g;
if (typeof document < "u") {
- let e = AT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = NT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40444,11 +40448,11 @@ function Vme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return LS(() => vk(() => o(!0)), []), /*#__PURE__*/ F.createElement(TD, {
+ return BS(() => xk(() => o(!0)), []), /*#__PURE__*/ F.createElement(OD, {
isExiting: n.isExiting,
portalContainer: e
}, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(Vw(n, { global: !0 }), u),
+ ...q(Ww(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
@@ -40485,7 +40489,7 @@ function Hme(e, t) {
};
}
function Ez(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(wz), s = (0, F.useContext)(bz), c = JC((0, F.useMemo)(() => zC(e.modalRef, n), [e.modalRef, n])), l = rz(c, o, e.onEnter), u = vL({
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(wz), s = (0, F.useContext)(bz), c = ZC((0, F.useMemo)(() => HC(e.modalRef, n), [e.modalRef, n])), l = rz(c, o, e.onEnter), u = vL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40494,20 +40498,20 @@ function Ez(e) {
state: s
}
});
- return LS(() => {
+ return BS(() => {
i && (i.current = e.onExit);
}), /*#__PURE__*/ F.createElement(wL.div, {
- ...K(Vw(e, { global: !0 }), t),
+ ...q(Ww(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(dk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(mk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
var Ume = Math.round(Math.random() * 1e10), Wme = 0;
function Gme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Ume}-${++Wme}`, [e.name]), [n, r] = $T(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = WT({
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Ume}-${++Wme}`, [e.name]), [n, r] = nE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = qT({
...e,
value: n
}), c = (t) => {
@@ -40534,7 +40538,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = Gme({
...e,
validationBehavior: r
- }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = jce({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Ace({
...e,
label: o,
validationBehavior: r
@@ -40549,9 +40553,9 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Vw(e, { global: !0 });
+ }), p = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(wL.div, {
- ...K(p, f, s),
+ ...q(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -40575,7 +40579,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
}), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = bL(r, t, qme);
- let i = F.useContext(Dz), a = JC((0, F.useMemo)(() => zC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ace({
+ let i = F.useContext(Dz), a = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = kce({
...SL(e),
children: typeof e.children == "function" || e.children
}, i, a);
@@ -40588,7 +40592,7 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
ref: t
}));
}), Az = /*#__PURE__*/ (0, F.createContext)(null), Jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Az), l = F.useContext(Dz), { isFocused: u, isFocusVisible: d, focusProps: f } = DD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = jD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Az), l = F.useContext(Dz), { isFocused: u, isFocusVisible: d, focusProps: f } = AD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = PD({
...e,
isDisabled: p
}), g = vL({
@@ -40605,9 +40609,9 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Vw(e, { global: !0 });
+ }), _ = Ww(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(wL.label, {
- ...K(_, n, m, g),
+ ...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -40618,8 +40622,8 @@ var Kme = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(lE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, f),
+ }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, f),
ref: c
})), g.children);
});
@@ -40629,7 +40633,7 @@ function Yme(e) {
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = $T((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = nE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40656,7 +40660,7 @@ function Yme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = WT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = qT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40690,7 +40694,7 @@ function Xme(e) {
function Zme(e) {
return e && e.__esModule ? e.default : e;
}
-var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ $C(function(e, t) {
+var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Qme = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, jz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
@@ -40706,7 +40710,7 @@ var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(iw, { content: o }, (n) => /*#__PURE__*/ F.createElement(ehe, {
+ return /*#__PURE__*/ F.createElement(sw, { content: o }, (n) => /*#__PURE__*/ F.createElement(ehe, {
props: e,
collection: n,
selectRef: t
@@ -40722,7 +40726,7 @@ function ehe({ props: e, selectRef: t, collection: n }) {
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = DD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = xL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Mce({
+ }), { isFocusVisible: o, focusProps: s } = AD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = xL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = jce({
...SL(e),
label: u,
validationBehavior: i
@@ -40744,7 +40748,7 @@ function ehe({ props: e, selectRef: t, collection: n }) {
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Vw(e, { global: !0 });
+ }), x = Ww(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
return /*#__PURE__*/ F.createElement(_L, { values: [
@@ -40782,7 +40786,7 @@ function ehe({ props: e, selectRef: t, collection: n }) {
} }],
[zL, v]
] }, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(x, b, s),
+ ...q(x, b, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
@@ -40791,12 +40795,12 @@ function ehe({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(Pce, {
+ }, b.children, /*#__PURE__*/ F.createElement(Nce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(function(e, t) {
+for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, Nz);
let n = (0, F.useContext)(Mz), { placeholder: r } = yL(jz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
@@ -40810,7 +40814,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = zse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Ise(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40825,7 +40829,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
a,
o,
i
- ]), u = zw(Zme(MR), "react-aria-components"), d = vL({
+ ]), u = Hw(Zme(MR), "react-aria-components"), d = vL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40836,7 +40840,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Vw(e, { global: !0 });
+ }), f = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(wL.span, {
ref: t,
...f,
@@ -40846,7 +40850,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
}), nhe = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), rhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
[e, t] = bL(r, t, nhe);
- let i = JC((0, F.useMemo)(() => zC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = eE(e), o = Ice({
+ let i = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rE(e), o = Fce({
...SL(e),
children: typeof e.children == "function" || e.children
}, a, i);
@@ -40859,7 +40863,7 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
ref: t
}));
}), Fz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Fz), { isFocused: f, isFocusVisible: p, focusProps: m } = DD(), h = a || o, g = (0, F.useContext)(Pz), { hoverProps: _, isHovered: v } = jD({
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Fz), { isFocused: f, isFocusVisible: p, focusProps: m } = AD(), h = a || o, g = (0, F.useContext)(Pz), { hoverProps: _, isHovered: v } = PD({
...e,
isDisabled: h
}), y = vL({
@@ -40877,9 +40881,9 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
isRequired: d || !1,
state: g
}
- }), b = Vw(e, { global: !0 });
+ }), b = Ww(e, { global: !0 });
return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
- ...K(b, n, _, y),
+ ...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
@@ -40891,8 +40895,8 @@ for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ $C(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(lE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
- ...K(r, m),
+ }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ ...q(r, m),
ref: l
})), y.children);
}), Iz = 10, Lz = 5, Rz = class {
@@ -41232,10 +41236,10 @@ var ohe = class extends ahe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return fD(this.body.childNodes)?.key ?? null;
+ return hD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return mD(this.body.childNodes)?.key ?? null;
+ return _D(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41440,8 +41444,8 @@ function phe(e) {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = dD(n, t);
- e = r === "last" ? mD(i)?.key ?? null : fD(i)?.key ?? null;
+ let i = mD(n, t);
+ e = r === "last" ? _D(i)?.key ?? null : hD(i)?.key ?? null;
}
}
a(e, r);
@@ -41466,7 +41470,7 @@ function phe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...dD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...mD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41503,7 +41507,7 @@ function hhe(e) {
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = $T(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41540,7 +41544,7 @@ function ghe(e, t) {
function _he(e) {
return e && e.__esModule ? e.default : e;
}
-var vhe = class extends hS {
+var vhe = class extends vS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41665,18 +41669,18 @@ var vhe = class extends hS {
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Yz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
}, Gz = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = JC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- LS(() => {
+ let n = ZC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ BS(() => {
let e = r.current;
- for (; e && e !== n.current && !AT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !NT(e);) e = e.parentElement;
i.current = e;
- }, [n]), kO({
+ }, [n]), MO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), LS(() => {
+ }), BS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
@@ -41696,7 +41700,7 @@ var vhe = class extends hS {
]);
return /*#__PURE__*/ F.createElement(wL.div, {
render: e.render,
- ...Vw(e, { global: !0 }),
+ ...Ww(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
@@ -41714,8 +41718,8 @@ var vhe = class extends hS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(whe.Provider, { value: s }, /*#__PURE__*/ F.createElement(dw, e));
- return /*#__PURE__*/ F.createElement(iw, {
+ ]), c = /*#__PURE__*/ F.createElement(whe.Provider, { value: s }, /*#__PURE__*/ F.createElement(mw, e));
+ return /*#__PURE__*/ F.createElement(sw, {
content: c,
createCollection: () => new vhe()
}, (r) => /*#__PURE__*/ F.createElement(Che, {
@@ -41746,8 +41750,8 @@ var vhe = class extends hS {
function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[e, t] = bL(e, t, TL);
let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Gz);
- t = JC((0, F.useMemo)(() => zC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = $T(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ t = ZC((0, F.useMemo)(() => HC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
let d = hhe({
...s,
@@ -41762,7 +41766,7 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Nw(), [k] = (0, F.useState)(() => new Rz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Iw(), [k] = (0, F.useState)(() => new Rz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41777,7 +41781,7 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new SE({
+ let e = new TE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41802,7 +41806,7 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = DD(), ee = vL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = AD(), ee = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41818,7 +41822,7 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Vw(e, { global: !0 });
+ let ne = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(_L, { values: [
[Kz, f],
[qz, P],
@@ -41830,8 +41834,8 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
[PR, { render: Phe }],
[TL, null],
[EL, null]
- ] }, /*#__PURE__*/ F.createElement(dT, null, /*#__PURE__*/ F.createElement(She, {
- ...K(ne, ee, v, A, w?.collectionProps),
+ ] }, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(She, {
+ ...q(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
slot: e.slot || void 0,
@@ -41846,7 +41850,7 @@ function Che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
persistedKeys: IR(y, _, C)
})))), E);
}
-var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends dS {
+var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends mS {
static {
this.type = "tableheader";
}
@@ -41859,8 +41863,8 @@ var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends dS {
...e,
ref: t
});
-}), Xz = /*#__PURE__*/ cw(Yz, (e, t) => {
- let n = (0, F.useContext)(Kz).collection, r = yS({
+}), Xz = /*#__PURE__*/ dw(Yz, (e, t) => {
+ let n = (0, F.useContext)(Kz).collection, r = SS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
@@ -41868,7 +41872,7 @@ var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends dS {
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = AA(), { hoverProps: a, isHovered: o } = jD({
+ }), { rowGroupProps: i } = AA(), { hoverProps: a, isHovered: o } = PD({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
@@ -41879,12 +41883,12 @@ var whe = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends dS {
values: { isHovered: o }
});
return /*#__PURE__*/ F.createElement(The, {
- ...K(Vw(e, { global: !0 }), i, a),
+ ...q(Ww(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(dw, {
+}, (e) => /*#__PURE__*/ F.createElement(mw, {
dependencies: e.dependencies,
items: e.columns
}, e.children)), Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
@@ -41910,7 +41914,7 @@ function Dhe({ item: e }) {
parent: e
})));
}
-var Ohe = class extends dS {
+var Ohe = class extends mS {
static {
this.type = "column";
}
@@ -41923,15 +41927,15 @@ var Ohe = class extends dS {
...e,
ref: t
});
-}), Zz = /*#__PURE__*/ sw(Ohe, (e, t, n) => {
- let r = JC(t), i = (0, F.useContext)(Kz), { isVirtualized: a } = (0, F.useContext)(AL), { columnHeaderProps: o, isPressed: s } = Wce({
+}), Zz = /*#__PURE__*/ uw(Ohe, (e, t, n) => {
+ let r = ZC(t), i = (0, F.useContext)(Kz), { isVirtualized: a } = (0, F.useContext)(AL), { columnHeaderProps: o, isPressed: s } = Wce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = DD(), d = (0, F.useContext)(qz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = AD(), d = (0, F.useContext)(qz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = jD({ isDisabled: !e.allowsSorting }), h = vL({
+ let { hoverProps: p, isHovered: m } = PD({ isDisabled: !e.allowsSorting }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -41957,9 +41961,9 @@ var Ohe = class extends dS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Vw(e, { global: !0 });
+ let _ = Ww(e, { global: !0 });
return delete _.id, /*#__PURE__*/ F.createElement(khe, {
- ...K(_, o, u, p),
+ ...q(_, o, u, p),
...h,
style: g,
ref: r,
@@ -41977,16 +41981,16 @@ var Ohe = class extends dS {
}), Qz = /*#__PURE__*/ (0, F.createContext)(null), Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = (0, F.useContext)(qz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = zw(_he(MR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Gz), { column: s, triggerRef: c } = (0, F.useContext)(Qz), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Kce({
+ let r = Hw(_he(MR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Gz), { column: s, triggerRef: c } = (0, F.useContext)(Qz), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Kce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = DD(), { hoverProps: _, isHovered: v } = jD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Nw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = AD(), { hoverProps: _, isHovered: v } = PD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Iw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = JC(t), [w, T] = (0, F.useState)("");
+ let C = ZC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
@@ -42002,11 +42006,11 @@ var Ohe = class extends dS {
isHovered: v,
resizableDirection: S
}
- }), D = Vw(e, { global: !0 });
+ }), D = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(wL.div, {
ref: C,
role: "presentation",
- ...K(D, E, u, _),
+ ...q(D, E, u, _),
"data-hovered": v || void 0,
"data-focused": h || void 0,
"data-focus-visible": g || void 0,
@@ -42014,7 +42018,7 @@ var Ohe = class extends dS {
"data-resizable-direction": S
}, E.children, /*#__PURE__*/ F.createElement("input", {
ref: l,
- ...K(d, m)
+ ...q(d, m)
}), f && p && /*#__PURE__*/ Rt.createPortal(/*#__PURE__*/ F.createElement("div", {
style: {
position: "fixed",
@@ -42026,7 +42030,7 @@ var Ohe = class extends dS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), $z = class extends fS {
+}), $z = class extends hS {
static {
this.type = "tablebody";
}
@@ -42039,7 +42043,7 @@ var Ohe = class extends dS {
...e,
ref: t
});
-}), eB = /*#__PURE__*/ cw($z, (e, t, n) => {
+}), eB = /*#__PURE__*/ dw($z, (e, t, n) => {
let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(AL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(NR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
@@ -42062,9 +42066,9 @@ var Ohe = class extends dS {
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = AA(), _ = Vw(e, { global: !0 });
+ let { rowGroupProps: g } = AA(), _ = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(jhe, {
- ...K(_, p, g),
+ ...q(_, p, g),
ref: t,
"data-empty": d || void 0
}, l && /*#__PURE__*/ F.createElement(zhe, null), /*#__PURE__*/ F.createElement(o, {
@@ -42073,12 +42077,12 @@ var Ohe = class extends dS {
renderDropIndicator: FR(s, c)
}), m);
});
-(class extends fS {
+(class extends hS {
static {
this.type = "tablefooter";
}
});
-var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mhe = class extends dS {
+var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mhe = class extends mS {
static {
this.type = "item";
}
@@ -42099,12 +42103,12 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
...e,
ref: t
});
-}), rB = /*#__PURE__*/ cw(Mhe, (e, t, n) => {
- let r = JC(t), i = (0, F.useContext)(Kz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(AL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Xce({
+}), rB = /*#__PURE__*/ dw(Mhe, (e, t, n) => {
+ let r = ZC(t), i = (0, F.useContext)(Kz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(AL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Xce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = DD(), { isFocusVisible: _, focusProps: v } = DD({ within: !0 }), { hoverProps: y, isHovered: b } = jD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = AD(), { isFocusVisible: _, focusProps: v } = AD({ within: !0 }), { hoverProps: y, isHovered: b } = PD({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
@@ -42114,7 +42118,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = cE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = dE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42145,7 +42149,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
isExpanded: j,
level: n.level + 1
}
- }), ee = Vw(e, { global: !0 });
+ }), ee = Ww(e, { global: !0 });
return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(nB, {
role: "row",
style: { height: 0 }
@@ -42159,7 +42163,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
...C.dropIndicatorProps,
ref: w
}))), /*#__PURE__*/ F.createElement(nB, {
- ...K(ee, M, d, g, y, S?.dragProps, v),
+ ...q(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
"data-selected": p.isSelected || void 0,
@@ -42201,12 +42205,12 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(dw, {
+ return /*#__PURE__*/ F.createElement(mw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Nhe = class extends dS {
+}), Nhe = class extends mS {
static {
this.type = "cell";
}
@@ -42219,8 +42223,8 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
...e,
ref: t
});
-}), aB = /*#__PURE__*/ sw(Nhe, (e, t, n) => {
- let r = JC(t), i = (0, F.useContext)(Kz), { dragState: a } = (0, F.useContext)(NR), { isVirtualized: o } = (0, F.useContext)(AL);
+}), aB = /*#__PURE__*/ uw(Nhe, (e, t, n) => {
+ let r = ZC(t), i = (0, F.useContext)(Kz), { dragState: a } = (0, F.useContext)(NR), { isVirtualized: o } = (0, F.useContext)(AL);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = Hce({
node: n,
@@ -42228,7 +42232,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = DD(), { hoverProps: f, isHovered: p } = jD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(tB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = vL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = AD(), { hoverProps: f, isHovered: p } = PD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(tB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = vL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42247,9 +42251,9 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Vw(e, { global: !0 });
+ }), S = Ww(e, { global: !0 });
return delete S.id, /*#__PURE__*/ F.createElement(iB, {
- ...K(S, x, s, d, f),
+ ...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
@@ -42265,7 +42269,7 @@ var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Mh
}, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, x.children));
});
function Phe(e, t) {
- t = JC(t);
+ t = ZC(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
@@ -42298,14 +42302,14 @@ var Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
});
});
function Lhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Kz), { visuallyHiddenProps: c } = cE(), l = vL({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Kz), { visuallyHiddenProps: c } = dE(), l = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
return /*#__PURE__*/ F.createElement(Fhe, {
- ...Vw(e, { global: !0 }),
+ ...Ww(e, { global: !0 }),
...l,
role: "row",
ref: t,
@@ -42324,7 +42328,7 @@ function Lhe(e, t) {
}
var Rhe = /*#__PURE__*/ (0, F.forwardRef)(Lhe);
function zhe() {
- let e = (0, F.useContext)(Kz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(NR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = cE();
+ let e = (0, F.useContext)(Kz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(NR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = dE();
return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(nB, {
role: "row",
"aria-hidden": i["aria-hidden"],
@@ -42340,7 +42344,7 @@ function zhe() {
ref: r
})));
}
-sw(pS, function(e, t, n) {
+uw(gS, function(e, t, n) {
let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
QR((0, F.useMemo)(() => ({
onLoadMore: o,
@@ -42375,7 +42379,7 @@ sw(pS, function(e, t, n) {
width: 1
}
}))), a && d.children && /*#__PURE__*/ F.createElement(nB, {
- ...K(Vw(e, { global: !0 }), f),
+ ...q(Ww(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
@@ -42389,7 +42393,7 @@ sw(pS, function(e, t, n) {
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
function Bhe(e) {
- let [t, n] = $T(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XR({
+ let [t, n] = nE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = XR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42443,7 +42447,7 @@ var sB = /*#__PURE__*/ (0, F.createContext)(null), cB = /*#__PURE__*/ (0, F.crea
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(iw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Uhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(sw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Uhe, {
props: e,
collection: n,
tabsRef: t
@@ -42454,7 +42458,7 @@ function Uhe({ props: e, tabsRef: t, collection: n }) {
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = DD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = AD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42466,9 +42470,9 @@ function Uhe({ props: e, tabsRef: t, collection: n }) {
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Vw(e, { global: !0 });
+ }), u = Ww(e, { global: !0 });
return /*#__PURE__*/ F.createElement(wL.div, {
- ...K(u, l, a),
+ ...q(u, l, a),
ref: t,
slot: e.slot || void 0,
"data-focused": o || void 0,
@@ -42481,10 +42485,10 @@ var lB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
return (0, F.useContext)(cB) ? /*#__PURE__*/ F.createElement(Whe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(dw, e);
+ }) : /*#__PURE__*/ F.createElement(mw, e);
});
function Whe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(cB), { CollectionRoot: r } = (0, F.useContext)(AL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yL(sB), o = JC(t), { tabListProps: s } = rle({
+ let n = (0, F.useContext)(cB), { CollectionRoot: r } = (0, F.useContext)(AL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yL(sB), o = ZC(t), { tabListProps: s } = rle({
...e,
orientation: i,
keyboardActivation: a
@@ -42496,9 +42500,9 @@ function Whe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Vw(e, { global: !0 });
+ }), l = Ww(e, { global: !0 });
return delete l.id, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(l, c, s),
+ ...q(l, c, s),
ref: o,
"data-orientation": i || void 0
}, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(r, {
@@ -42506,15 +42510,15 @@ function Whe({ props: e, forwardedRef: t }) {
persistedKeys: jL(n.selectionManager.focusedKey)
})));
}
-var Ghe = /*#__PURE__*/ sw(class extends dS {
+var Ghe = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(cB), i = JC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = tle({
+ let r = (0, F.useContext)(cB), i = ZC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = tle({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = DD(), { hoverProps: f, isHovered: p } = jD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = AD(), { hoverProps: f, isHovered: p } = PD({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
@@ -42532,9 +42536,9 @@ var Ghe = /*#__PURE__*/ sw(class extends dS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? wL.a : wL.div, g = Vw(e, { global: !0 });
+ }), h = n.props.href ? wL.a : wL.div, g = Ww(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
- ...K(g, m, a, l, f),
+ ...q(g, m, a, l, f),
ref: i,
"data-selected": o || void 0,
"data-disabled": s || void 0,
@@ -42543,8 +42547,8 @@ var Ghe = /*#__PURE__*/ sw(class extends dS {
"data-pressed": c || void 0,
"data-hovered": p || void 0
}, /*#__PURE__*/ F.createElement(zR.Provider, { value: { isSelected: o } }, m.children));
-}), Khe = /*#__PURE__*/ $C(function(e, t) {
- let n = (0, F.useContext)(cB), r = JC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+}), Khe = /*#__PURE__*/ nw(function(e, t) {
+ let n = (0, F.useContext)(cB), r = ZC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
let s = iz(r, i);
return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(qhe, {
@@ -42555,7 +42559,7 @@ var Ghe = /*#__PURE__*/ sw(class extends dS {
});
});
function qhe(e) {
- let t = (0, F.useContext)(cB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ile(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = DD(), d = t.selectedKey === e.id, f = rz(r) && !i, p = vL({
+ let t = (0, F.useContext)(cB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ile(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = AD(), d = t.selectedKey === e.id, f = rz(r) && !i, p = vL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
@@ -42566,9 +42570,9 @@ function qhe(e) {
isExiting: a,
state: t
}
- }), m = Vw(o, { global: !0 });
+ }), m = Ww(o, { global: !0 });
delete m.id;
- let h = d ? K(m, s, c, p) : K(m, p);
+ let h = d ? q(m, s, c, p) : q(m, p);
return /*#__PURE__*/ F.createElement(wL.div, {
...h,
ref: r,
@@ -42586,7 +42590,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
return i;
}, Yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
[e, t] = bL(e, t, uB);
- let { hoverProps: n, isHovered: r } = jD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = DD({
+ let { hoverProps: n, isHovered: r } = PD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
isTextInput: !0,
autoFocus: e.autoFocus
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
@@ -42601,7 +42605,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
defaultClassName: "react-aria-TextArea"
});
return /*#__PURE__*/ F.createElement(wL.textarea, {
- ...K(Jhe(e), o, n),
+ ...q(Jhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42610,11 +42614,11 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Xhe = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ $C(function(e, t) {
+}), Xhe = /*#__PURE__*/ (0, F.createContext)(null), Zhe = /*#__PURE__*/ nw(function(e, t) {
[e, t] = bL(e, t, Xhe);
let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
[e, i] = bL(e, i, EL);
- let [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = xse({
+ let [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = vse({
...SL(e),
inputElementType: s,
label: o,
@@ -42630,7 +42634,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Vw(e, { global: !0 });
+ }), g = Ww(e, { global: !0 });
return delete g.id, /*#__PURE__*/ F.createElement(wL.div, {
...g,
...h,
@@ -42664,7 +42668,7 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
} }],
[zL, p]
] }, h.children));
-}), Qhe = class e extends hS {
+}), Qhe = class e extends vS {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42737,8 +42741,8 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
}, $he = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), ege = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = bL(e, t, $he), /*#__PURE__*/ F.createElement(iw, {
- content: /*#__PURE__*/ F.createElement(dw, e),
+ return [e, t] = bL(e, t, $he), /*#__PURE__*/ F.createElement(sw, {
+ content: /*#__PURE__*/ F.createElement(mw, e),
createCollection: () => new Qhe()
}, (n) => /*#__PURE__*/ F.createElement(tge, {
props: e,
@@ -42756,14 +42760,14 @@ var uB = /*#__PURE__*/ (0, F.createContext)({}), Jhe = (e) => {
}
};
function tge({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Nw(), a = bD({
+ let { dragAndDropHooks: r } = e, { direction: i } = Iw(), a = CD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(AL), [y, b] = $T(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(AL), [y, b] = nE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
cge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
let D = uz({
...e,
@@ -42795,7 +42799,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new SE({
+ let t = new TE({
collection: D.collection,
collator: a,
ref: n,
@@ -42822,7 +42826,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = DD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = AD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42847,9 +42851,9 @@ function tge({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Vw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(dT, null, /*#__PURE__*/ F.createElement(wL.div, {
- ...K(se, ae, O, ne, j?.collectionProps),
+ let se = Ww(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
"data-empty": D.collection.size === 0 || void 0,
@@ -42873,7 +42877,7 @@ function tge({ props: e, collection: t, treeRef: n }) {
renderDropIndicator: FR(r, A)
}))), oe)), ee);
}
-var nge = /*#__PURE__*/ sw(class extends dS {
+var nge = /*#__PURE__*/ uw(class extends mS {
static {
this.type = "content";
}
@@ -42883,29 +42887,29 @@ var nge = /*#__PURE__*/ sw(class extends dS {
values: t
});
return /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, n.children);
-}), pB = /*#__PURE__*/ (0, F.createContext)(null), rge = /*#__PURE__*/ cw(class extends dS {
+}), pB = /*#__PURE__*/ (0, F.createContext)(null), rge = /*#__PURE__*/ dw(class extends mS {
static {
this.type = "item";
}
}, (e, t, n) => {
let r = (0, F.useContext)(dB);
- t = JC(t);
+ t = ZC(t);
let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(NR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = mj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = jD({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = PD({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = DD(), { isFocusVisible: b, focusProps: x } = DD({ within: !0 }), { checkboxProps: S } = Xse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = AD(), { isFocusVisible: b, focusProps: x } = AD({ within: !0 }), { checkboxProps: S } = qse({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = cE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = dE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42961,7 +42965,7 @@ var nge = /*#__PURE__*/ sw(class extends dS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = yS({
+ let P = SS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42971,7 +42975,7 @@ var nge = /*#__PURE__*/ sw(class extends dS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = LC(), re = Vw(e, { global: !0 });
+ }), ne = BC(), re = Ww(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42995,7 +42999,7 @@ var nge = /*#__PURE__*/ sw(class extends dS {
tabIndex: -1,
ref: D
}))), /*#__PURE__*/ F.createElement(wL.div, {
- ...K(re, c, y, g, x, C?.dragProps),
+ ...q(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
"data-expanded": m && p || void 0,
@@ -43039,7 +43043,7 @@ var nge = /*#__PURE__*/ sw(class extends dS {
[zR, { isSelected: f.isSelected }]
] }, P))));
});
-sw(pS, function(e, t, n) {
+uw(gS, function(e, t, n) {
let { isVirtualized: r } = (0, F.useContext)(AL), i = (0, F.useContext)(dB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
QR((0, F.useMemo)(() => ({
onLoadMore: o,
@@ -43050,7 +43054,7 @@ sw(pS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = JC(t);
+ ]), l), t = ZC(t);
let { rowProps: u, gridCellProps: d } = mj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
@@ -43078,7 +43082,7 @@ sw(pS, function(e, t, n) {
}
})), a && m.children && /*#__PURE__*/ F.createElement(wL.div, {
ref: t,
- ...K(Vw(e), p),
+ ...q(Ww(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43087,7 +43091,7 @@ sw(pS, function(e, t, n) {
}, m.children)));
});
function ige(e, t) {
- t = JC(t);
+ t = ZC(t);
let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
@@ -43101,7 +43105,7 @@ function ige(e, t) {
});
}
function age(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = cE(), c = vL({
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = dE(), c = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43125,7 +43129,7 @@ function age(e, t) {
}
var oge = /*#__PURE__*/ (0, F.forwardRef)(age);
function sge() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(NR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = cE();
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(NR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = dE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43837,7 +43841,7 @@ function ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
return /* @__PURE__ */ (0, I.jsxs)(NL, {
"data-label": "true",
...a,
- className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: J("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -43857,7 +43861,7 @@ function QB({ isInvalid: e = !1, className: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)(Zpe, {
slot: e ? "errorMessage" : "description",
...n,
- className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: J("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
@@ -43872,7 +43876,7 @@ function eV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
children: /* @__PURE__ */ (0, I.jsx)(Zhe, {
...a,
"data-input-size": e,
- className: q("group flex h-max w-full flex-col items-start gap-1", r),
+ className: J("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
@@ -43897,7 +43901,7 @@ function nV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
let l = (0, F.useContext)($B), u = e ?? l.size ?? "medium", d = r != null;
return /* @__PURE__ */ (0, I.jsx)(GL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(tV.field, d ? tV.fieldWithAddonSize[u] : tV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => J(tV.field, d ? tV.fieldWithAddonSize[u] : tV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
className: tV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -43908,7 +43912,7 @@ function nV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldCl
}) : null, /* @__PURE__ */ (0, I.jsx)(rme, {
ref: o,
...c,
- className: q(tV.input, l.inputClassName, a)
+ className: J(tV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
className: tV.icon,
@@ -43956,7 +43960,7 @@ var i_e = {
tutorial: "max-w-2xl"
};
function iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = wC();
+ let { isFocusVisible: o } = DC();
return /* @__PURE__ */ (0, I.jsx)(Tz, {
isOpen: e,
onOpenChange: t,
@@ -43968,7 +43972,7 @@ function iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
children: /* @__PURE__ */ (0, I.jsx)(zme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", i_e[n], a),
+ className: J("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", i_e[n], a),
children: /* @__PURE__ */ (0, I.jsx)(xz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
@@ -43988,9 +43992,9 @@ function aV({ children: e }) {
function oV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
- className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
+ className: J("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: q("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
+ className: J("flex min-w-0 flex-auto flex-col justify-center gap-0.5", a === "below" && "w-full"),
children: [t ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium wrap-anywhere",
children: t
@@ -44007,27 +44011,27 @@ function oV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
switch (e) {
case "info": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "status",
- className: q("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
+ className: J("@container flex flex-col gap-2 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground", o),
children: s
});
case "success": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "status",
- className: q("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
+ className: J("@container flex flex-col gap-2 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground", o),
children: s
});
case "warning": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "note",
- className: q("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
+ className: J("@container flex flex-col gap-2 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text", o),
children: s
});
case "error": return /* @__PURE__ */ (0, I.jsx)("div", {
role: "alert",
- className: q("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
+ className: J("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary", o),
children: s
});
default: return /* @__PURE__ */ (0, I.jsx)("div", {
role: "note",
- className: q("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
+ className: J("@container flex flex-col gap-2 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary", o),
children: s
});
}
@@ -44038,7 +44042,7 @@ var a_e = {
compact: "min-h-60 px-4 py-6"
};
function o_e({ target: e, children: t }) {
- return /* @__PURE__ */ (0, I.jsx)(J, {
+ return /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
onClick: () => document.querySelector(e)?.focus(),
@@ -44197,14 +44201,14 @@ function l_e({ item: e }) {
},
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: Bs("") }
+ dangerouslySetInnerHTML: { __html: Vs("") }
}) : /* @__PURE__ */ (0, I.jsx)(_V, {})
}),
r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(r.error)
}) : null,
- t.isError ? /* @__PURE__ */ (0, I.jsx)(J, {
+ t.isError ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": "立即重试读取收藏",
@@ -44247,14 +44251,14 @@ function u_e({ currentHref: e, kind: t, close: n }) {
}, []);
let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = pL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
- b.current && (x.current = Ro(b.current) || null);
+ b.current && (x.current = zo(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
- let e = Ac(g.current);
+ let e = jc(g.current);
return () => e?.destroy();
}, []), (0, F.useLayoutEffect)(() => {
b.current && (b.current.scrollTop = 0);
}, [s]), (0, F.useLayoutEffect)(() => {
- v.current !== s && tc(_.current, "h2"), v.current = s;
+ v.current !== s && nc(_.current, "h2"), v.current = s;
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
@@ -44375,7 +44379,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
}) : null,
r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => void r.refetch(),
children: "立即重试"
@@ -44406,7 +44410,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
onClick: n,
className: "min-w-0 flex-1 break-all text-body-regular text-text-primary underline",
children: e.name
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
@@ -44431,7 +44435,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
onChange: o,
maxLength: 80
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !a.trim(),
...dV(i.isPending),
@@ -44456,11 +44460,11 @@ function u_e({ currentHref: e, kind: t, close: n }) {
size: "compact",
icon: _V,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
- actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: l ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: () => u(""),
children: "清除搜索"
- }) : E.favorites.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }) : E.favorites.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
@@ -44492,7 +44496,7 @@ function u_e({ currentHref: e, kind: t, close: n }) {
children: e.scope === "online" ? "在线标签" : yV[e.kind]
})]
})]
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
@@ -44583,7 +44587,7 @@ function h_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
"aria-label": t,
- className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
+ className: J("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(m_e, {
@@ -44600,10 +44604,10 @@ function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
}), e] });
if (i) return /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "page",
- className: q("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
+ className: J("flex items-center gap-1.5 text-caption-1-medium whitespace-nowrap text-text-secondary", a),
children: o
});
- let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
+ let s = J("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
children: n ? /* @__PURE__ */ (0, I.jsx)(f_e, {
@@ -44613,14 +44617,14 @@ function EV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: r,
- className: q("cursor-pointer", s),
+ className: J("cursor-pointer", s),
children: o
})
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
function DV() {
- return Nw().direction;
+ return Iw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
var OV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", g_e = "w-[266px]", __e = "flex w-full flex-col gap-1 outline-none", kV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", AV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
@@ -44652,7 +44656,7 @@ function v_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === MV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => J("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === MV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
@@ -44667,7 +44671,7 @@ function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
paddingInlineStart: `calc(0.5rem + ${e.level - 1} * 1.25rem)`,
...typeof c == "function" ? c(e) : c
}),
- className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
+ className: (e) => J("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
children: [/* @__PURE__ */ (0, I.jsx)(nge, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
let f = n === null ? null : o && r ? r : n ?? (t ? o ? AB : OB : kge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -44687,14 +44691,14 @@ function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
children: /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
- className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
+ className: J("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: q("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
+ className: J("h-5 shrink-0", c > 1 ? "w-2" : "w-5")
}), f && /* @__PURE__ */ (0, I.jsx)(f, {
"aria-hidden": !0,
- className: q("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
+ className: J("size-4 shrink-0 opacity-50", t ? "text-foreground-icon-primary" : "text-foreground-icon-secondary", i)
})]
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -44715,7 +44719,7 @@ var MV = {
};
function y_e({ collection: e, ...t }) {
let n = (0, F.useContext)(dB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Ox, {
+ return n ? /* @__PURE__ */ (0, I.jsx)(jx, {
initial: !1,
children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(x_e, {
state: n,
@@ -44759,7 +44763,7 @@ function b_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
height: "7",
viewBox: `0 0 ${i} 7`,
fill: "none",
- className: q("absolute start-0", a === "rtl" && "-scale-x-100"),
+ className: J("absolute start-0", a === "rtl" && "-scale-x-100"),
style: { top: "calc(50% - 6px)" },
children: /* @__PURE__ */ (0, I.jsx)("path", {
d: `M0.5 0 Q0.5 6 6.5 6 H${i - .5}`,
@@ -44786,8 +44790,8 @@ function b_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
});
}
function x_e({ state: e, children: t }) {
- let n = Tx(), r = Qx(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(uS.div, {
+ let n = Ox(), r = tS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(pS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44851,7 +44855,7 @@ function PV({ state: e, size: t = "md" }) {
let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = NV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: J("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? J("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : J("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, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44879,12 +44883,12 @@ function FV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)(eme, {
ref: r,
...i,
- className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => J("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: q(a.label, "text-text-primary"),
+ className: J(a.label, "text-text-primary"),
children: t
})] })
});
@@ -44895,7 +44899,7 @@ function IV() {
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
node: e.current,
- control: Ro(e.current)
+ control: zo(e.current)
} : null);
}), (0, F.useEffect)(() => () => {
t.current?.control?.destroy(), t.current = null;
@@ -44909,9 +44913,9 @@ function S_e() {
function RV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(oie, {
+ children: /* @__PURE__ */ (0, I.jsx)(rie, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(SD, {
+ children: /* @__PURE__ */ (0, I.jsx)(TD, {
getContainer: S_e,
children: e
})
@@ -45674,7 +45678,7 @@ var lH = AI({
}
});
function uH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(lH.base, lH.size[t], lH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+ let c = J(lH.base, lH.size[t], lH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
className: lH.icon[t],
"aria-hidden": !0
@@ -45743,7 +45747,7 @@ function fH({ state: e }) {
children: [
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(J, {
+ children: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
@@ -45822,7 +45826,7 @@ function pH(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = pae(n, { transform: [r, E] }, lve[e]);
+ l = uae(n, { transform: [r, E] }, lve[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -46030,7 +46034,7 @@ function fve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
- children: /* @__PURE__ */ (0, I.jsx)(J, {
+ children: /* @__PURE__ */ (0, I.jsx)(Y, {
ref: i,
size: "small",
variant: "secondary",
@@ -46072,7 +46076,7 @@ function xH({ state: e, disabled: t = !1 }) {
});
}, l = () => {
let i = e.job_id;
- !i || t || n.busy || r.current || (r.current = !0, ll({
+ !i || t || n.busy || r.current || (r.current = !0, ul({
title: "取消任务「扫描与采集」",
body: "将停止这一轮剩余的处理。已登记的影片、取得的资料和预览会保留。这一轮取消后不能继续,需要时重新同步。",
confirmLabel: "取消任务",
@@ -46102,7 +46106,7 @@ function xH({ state: e, disabled: t = !1 }) {
...i ? { job_id: e.job_id } : {}
})
}),
- i ? /* @__PURE__ */ (0, I.jsx)(J, {
+ i ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
@@ -46118,7 +46122,7 @@ function xH({ state: e, disabled: t = !1 }) {
});
}
}) : null,
- i ? /* @__PURE__ */ (0, I.jsx)(J, {
+ i ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
@@ -46221,7 +46225,7 @@ function TH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
function EH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
- className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
+ className: J("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(TH, {
label: e,
value: t,
@@ -46272,7 +46276,7 @@ function OH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
- t && (i.current ? Vo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
+ t && (i.current ? Ho(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
...n,
ref: r,
@@ -46296,19 +46300,19 @@ function kH(e) {
// src/react/boardui/components/application/settings/settings-rows.tsx
function AH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
- className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: J("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
function jH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
- className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: J("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
function gve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
- className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: J("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
@@ -46461,7 +46465,7 @@ function Eve({ term: e, children: t }) {
function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
- n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
+ n !== void 0 && n !== d && c.current && l.current && (Vo(c.current, l.current, n), f(n));
}, [n, d]), /* @__PURE__ */ (0, I.jsxs)("details", {
ref: (e) => {
c.current = e, e && (n ?? t) && !u.current && (u.current = !0, e.open = !0);
@@ -46470,7 +46474,7 @@ function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
"aria-expanded": d,
"aria-controls": s,
onClick: (e) => {
- e.preventDefault(), c.current && l.current && (Bo(c.current, l.current, !d), f(!d), a?.(!d));
+ e.preventDefault(), c.current && l.current && (Vo(c.current, l.current, !d), f(!d), a?.(!d));
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
@@ -46489,7 +46493,7 @@ function FH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
id: s,
inert: !d,
children: /* @__PURE__ */ (0, I.jsx)("div", {
- className: q("flex flex-col gap-2 pt-3", o),
+ className: J("flex flex-col gap-2 pt-3", o),
children: r
})
})]
@@ -46515,7 +46519,7 @@ function IH({ mark: e }) {
}) : /* @__PURE__ */ (0, I.jsx)(Dve, { name: e });
}
// src/react/components/source-label.tsx
-var LH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Ove = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var LH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Ove = Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: t })
@@ -46547,7 +46551,7 @@ function zH({ source: e, label: t }) {
let n = LH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: vs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
@@ -46601,7 +46605,7 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: q("flex min-w-0 flex-col gap-2", d && "pt-2"),
+ className: J("flex min-w-0 flex-col gap-2", d && "pt-2"),
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "inline-grid grid-cols-2 gap-6 py-2",
@@ -46666,7 +46670,7 @@ function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
]
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
className: "self-start",
@@ -46827,7 +46831,7 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"data-processing-tone": _ ? "error" : x ? "warning" : "neutral",
"aria-label": "扫描任务",
role: _ ? "alert" : "status",
- className: q("flex min-w-0 flex-col border bg-background-primary-default p-4", _ ? "border-current/35 text-text-error-primary" : x ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
+ className: J("flex min-w-0 flex-col border bg-background-primary-default p-4", _ ? "border-current/35 text-text-error-primary" : x ? "border-current/35 text-status-yellow-text" : "border-border-button-default text-text-primary"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-3",
children: [
@@ -46855,7 +46859,7 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
children: tH(e)
}) : null]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
@@ -46867,7 +46871,7 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-controls": f,
onClick: y
}),
- r ? /* @__PURE__ */ (0, I.jsx)(J, {
+ r ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
@@ -46895,7 +46899,7 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "pt-3",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: q("flex min-w-0 flex-col gap-2 border-t pt-3", _ ? "border-border-error-default/20" : x ? "border-current/20" : "border-separator-border"),
+ className: J("flex min-w-0 flex-col gap-2 border-t pt-3", _ ? "border-border-error-default/20" : x ? "border-current/20" : "border-separator-border"),
children: [
e?.steps?.length ? /* @__PURE__ */ (0, I.jsx)("ol", {
"aria-label": "处理步骤",
@@ -46903,16 +46907,16 @@ function KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
children: e.steps.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
"data-processing-step": e.status,
"aria-current": e.status === "current" ? "step" : void 0,
- className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
+ className: J("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(vge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}) : /* @__PURE__ */ (0, I.jsx)(yge, {
"aria-hidden": !0,
- className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
+ className: J("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(lE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(fE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -47254,7 +47258,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "appearance",
kind: "settings",
- title: Of.appearance,
+ title: kf.appearance,
summary: "主题、光晕与导航入口。",
steps: fU("appearance", [
[
@@ -47293,7 +47297,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "playback",
kind: "settings",
- title: Of.playback,
+ title: kf.playback,
summary: "列表呈现、悬停预览与播放行为。",
steps: fU("playback", [
[
@@ -47349,7 +47353,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "jav-settings",
kind: "settings",
- title: Of.jav,
+ title: kf.jav,
summary: "封面与新作筛选。",
steps: fU("jav", [
[
@@ -47403,7 +47407,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "search-settings",
kind: "settings",
- title: Of.search,
+ title: kf.search,
summary: "搜索记录、推荐数量与口味入口。",
steps: [...fU("search", [[
"history",
@@ -47420,7 +47424,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "content",
kind: "settings",
- title: Of.content,
+ title: kf.content,
summary: "SFW 模式与画面显示。",
steps: fU("content", [[
"sfw",
@@ -47432,7 +47436,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "library",
kind: "settings",
- title: kf.library,
+ title: Af.library,
summary: "媒体库、目录、读取与处理方式。",
steps: fU("library", [
[
@@ -47490,7 +47494,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "subscriptions",
kind: "settings",
- title: kf.subscriptions,
+ title: Af.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
steps: fU("subscriptions", [
[
@@ -47524,7 +47528,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "downloads",
kind: "settings",
- title: kf.downloads,
+ title: Af.downloads,
summary: "云下载目录、账号与浏览器配对。",
steps: fU("downloads", [
[
@@ -47547,7 +47551,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "network",
kind: "settings",
- title: kf.network,
+ title: Af.network,
summary: "访问端口、代理、密码和公网入口。",
steps: fU("network", [
[
@@ -47575,7 +47579,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "app-maintenance",
kind: "settings",
- title: kf.maintenance,
+ title: Af.maintenance,
summary: "更新、存储、数据选择与应用维护。",
steps: fU("maintenance", [
[
@@ -47628,7 +47632,7 @@ var sU = (e, t, n, r, i, a) => ({
{
id: "diagnostics",
kind: "settings",
- title: kf.diagnostics,
+ title: Af.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
steps: fU("diagnostics", [
[
@@ -47972,7 +47976,7 @@ function lye({ chapter: e, className: t = "size-5" }) {
let n = cye[e] || SB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
- className: q(t, "shrink-0")
+ className: J(t, "shrink-0")
});
}
function bU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
@@ -48071,7 +48075,7 @@ function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
children: [u ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: u ? "secondary" : "primary",
disabled: a,
onClick: () => o(l, d),
@@ -48109,7 +48113,7 @@ function uye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
children: [/* @__PURE__ */ (0, I.jsx)("h3", {
className: "text-body-medium text-text-primary",
children: "按需了解"
- }), r.kind === e && r.id !== "basics" ? /* @__PURE__ */ (0, I.jsxs)(J, {
+ }), r.kind === e && r.id !== "basics" ? /* @__PURE__ */ (0, I.jsxs)(Y, {
variant: "ghost",
size: "small",
disabled: a,
@@ -48187,9 +48191,9 @@ function dye(e) {
if (!e.route) return;
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
- let e = Of[r];
+ let e = kf[r];
if (e) return TU(e);
- let t = kf[r];
+ let t = Af[r];
if (t) return {
path: [
"侧栏底部的设置",
@@ -48212,7 +48216,7 @@ function dye(e) {
path: ["侧栏顶部", "媒体库选择器"],
hint: CU
};
- case "preferences": return TU(Of.appearance);
+ case "preferences": return TU(kf.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48240,8 +48244,8 @@ function dye(e) {
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return wU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
- let a = $f[t];
+ ].includes(t)) return wU("管理", ep["/data-cleanup"].title, t === "/trash" ? "回收站" : ep[t].title);
+ let a = ep[t];
if (a?.nav && a.title) {
let e = wU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
@@ -48341,13 +48345,13 @@ function pye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
}),
/* @__PURE__ */ (0, I.jsx)("footer", {
className: "flex shrink-0 flex-wrap items-center gap-2 border-t border-separator-border px-4 py-3",
- children: s ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: s ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
className: "ml-auto",
onClick: o,
children: "稍后再说"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
"data-guide-next": "",
onClick: () => i(),
@@ -48362,20 +48366,20 @@ function pye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
onClick: o,
children: "跳过本章"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
disabled: t === 0,
onClick: a,
children: "上一步"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
"data-guide-next": "",
onClick: () => i(r),
@@ -48414,14 +48418,14 @@ function mye({ go: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: "3 个入口 · 按当前进度选择"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
onClick: () => e("/settings/library"),
children: "连接媒体目录"
})]
}),
r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => o(a + 1),
@@ -48444,7 +48448,7 @@ function mye({ go: e }) {
className: "min-w-0 flex-1",
children: [/* @__PURE__ */ (0, I.jsx)("strong", { children: "连接媒体目录" }), /* @__PURE__ */ (0, I.jsx)("p", { children: "确认媒体文件夹、所属媒体库和读取策略。" })]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => e("/settings/library"),
@@ -48463,7 +48467,7 @@ function mye({ go: e }) {
className: "min-w-0 flex-1",
children: [/* @__PURE__ */ (0, I.jsx)("strong", { children: "查看首次扫描" }), /* @__PURE__ */ (0, I.jsx)("p", { children: t ? t.library.total ? `已入库 ${t.library.total.toLocaleString()} 项,可在任务中心查看处理情况。` : "馆藏尚无内容,查看扫描任务是否已开始。" : "在任务中心查看实际扫描进度。" })]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => e("/tasks"),
@@ -48482,7 +48486,7 @@ function mye({ go: e }) {
className: "min-w-0 flex-1",
children: [/* @__PURE__ */ (0, I.jsx)("strong", { children: "打开馆藏" }), /* @__PURE__ */ (0, I.jsx)("p", { children: "从首页搜索和浏览已经入库的内容。" })]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => e("/"),
@@ -48538,7 +48542,7 @@ function mye({ go: e }) {
className: "min-w-0 flex-1",
children: [/* @__PURE__ */ (0, I.jsx)("strong", { children: t }), /* @__PURE__ */ (0, I.jsx)("p", { children: n })]
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
"aria-label": `查看${t}`,
@@ -48648,7 +48652,7 @@ function hye({ actions: e }) {
M.current = !0;
let e = (e) => {
e.target.closest(".ui-configpage form") && (D.current = !0);
- }, t = Np.listen(() => {
+ }, t = Pp.listen(() => {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
@@ -48700,7 +48704,7 @@ function hye({ actions: e }) {
try {
let { createGuideSession: r } = await import("./peach-app.guide-driver-BZX0VpRC.js");
if (a !== S.current) return;
- let s = Mf(location.pathname) ? Ip() : null, c = new URL(Mf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
+ let s = Nf(location.pathname) ? Lp() : null, c = new URL(Nf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
new URLSearchParams(location.search).has("edit") && c.searchParams.set("edit", ""), E.current = `${c.pathname}${c.search}${c.hash}`, w.current = Math.min(i, t.steps.length - 1), ne(), (0, Rt.flushSync)(() => n(!1)), document.body.classList.add("peach-guiding");
let l = () => {
let e = C.current, n = e.chapters[t.id] || {
@@ -48811,7 +48815,7 @@ function hye({ actions: e }) {
p ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
className: "mb-4",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: () => {
N();
@@ -48943,12 +48947,12 @@ function yye({ navigate: e }) {
}
// src/react/router/pages/settings.tsx
function bye() {
- let e = (0, F.useContext)(KW), { pathname: t } = ef();
+ let e = (0, F.useContext)(KW), { pathname: t } = tf();
return (0, F.useEffect)(() => {
- e?.openSettings?.(Nf(t));
+ e?.openSettings?.(Pf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Mf(Np.navigation.location.pathname) || e?.closeSettings?.();
+ Nf(Pp.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
@@ -49019,7 +49023,7 @@ function FU(e) {
var IU = (e) => e === "dismissed" ? "已排除" : "待判断", LU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
function Sye({ kind: e, view: t }) {
let n = MU.map(([n, r, i]) => `<a href="${PU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${LU(i)}${z(r)}</a>`).join(""), r = FU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(IU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${LU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ls(IU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${LU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
function Cye(e, t, n) {
@@ -49059,22 +49063,22 @@ function zU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: q("group flex flex-col", e),
+ className: J("group flex flex-col", e),
children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(FL, {
ref: l,
- className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
+ className: J("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
children: [/* @__PURE__ */ (0, I.jsx)(the, {
- className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: J("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(p_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(p_e, { className: J("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
}), /* @__PURE__ */ (0, I.jsx)(cz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(g_e, OV, "p-2", n),
+ className: J(g_e, OV, "p-2", n),
children: /* @__PURE__ */ (0, I.jsx)(bme, {
items: a,
- className: q(__e, "max-h-[240px] overflow-auto"),
+ className: J(__e, "max-h-[240px] overflow-auto"),
children: /* @__PURE__ */ (0, I.jsx)(RU.Provider, {
value: r,
children: i
@@ -49087,7 +49091,7 @@ function BU({ className: e, children: t, ...n }) {
let r = (0, F.useContext)(RU);
return /* @__PURE__ */ (0, I.jsx)(Cme, {
...n,
- className: (t) => q(kV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => J(kV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
@@ -49114,7 +49118,7 @@ var VU = AI({
function HU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(VU.base, VU.variant[e], VU.color[t], n),
+ className: J(VU.base, VU.variant[e], VU.color[t], n),
...i
});
}
@@ -49186,7 +49190,7 @@ function kye() {
writable: n[0]?.available ?? !1
}, e.id))
}) : null,
- t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
+ t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
leadingIcon: mB,
@@ -49249,9 +49253,9 @@ function Aye({ task: e, writable: t }) {
u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: {
kind: "cover",
- html: So(u, "big")
+ html: Co(u, "big")
},
- relayout: (e) => El(e, "big")
+ relayout: (e) => Dl(e, "big")
}) : null,
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
@@ -49308,7 +49312,7 @@ function Aye({ task: e, writable: t }) {
href: Pn("performer", e.name, e.id),
"aria-label": `打开女优页:${nn("performer", e.name, e.id)}`,
title: nn("performer", e.name, e.id),
- dangerouslySetInnerHTML: { __html: _o(e.name, e, null) }
+ dangerouslySetInnerHTML: { __html: vo(e.name, e, null) }
}, e.id || e.name))
}), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "min-w-0 truncate text-caption-1-regular text-text-secondary",
@@ -49331,7 +49335,7 @@ function Aye({ task: e, writable: t }) {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
children: [
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
"aria-expanded": o,
@@ -49339,7 +49343,7 @@ function Aye({ task: e, writable: t }) {
onClick: () => s(!o),
children: o ? "收起标题" : "展开标题"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
onClick: v,
@@ -49348,21 +49352,21 @@ function Aye({ task: e, writable: t }) {
t && (e.cancellable || e.resubmittable || e.postprocess_retryable) ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "ml-auto flex flex-wrap items-center gap-2",
children: [
- e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
+ e.cancellable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
- e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
+ e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
- e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
+ e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(r.busy === "postprocess"),
@@ -49403,7 +49407,7 @@ function jye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: Bs("") }
+ dangerouslySetInnerHTML: { __html: Vs("") }
});
}
function Mye(e) {
@@ -49438,7 +49442,7 @@ function Nye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
release_date: String(r.release_date || ""),
duration: r.duration,
studio: r.studio,
- cover: r.has_cover ? lo(r, !0) : "",
+ cover: r.has_cover ? uo(r, !0) : "",
origin: `asset:${r.id}`
} : null);
}, () => {
@@ -49541,7 +49545,7 @@ function Nye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e.uncensored ? "无码" : "",
e.origins.join("、")
].filter(Boolean).join(" · ") }),
- /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(Y, {
type: "button",
variant: "secondary",
onClick: () => {
@@ -49588,7 +49592,7 @@ function Fye({ prefill: e, close: t, receipt: n, provider: r }) {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
iconOnly: !0,
leadingIcon: xB,
@@ -49616,7 +49620,7 @@ function Fye({ prefill: e, close: t, receipt: n, provider: r }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-end p-3",
- children: /* @__PURE__ */ (0, I.jsx)(J, {
+ children: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: t,
children: "关闭"
@@ -49762,11 +49766,11 @@ function Iye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex justify-between gap-4 p-3",
- children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: r,
children: "取消"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !d.trim() || !x,
...dV(S.busy === "submit"),
@@ -49894,9 +49898,9 @@ function Gye(e) {
function Kye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
- Pp(location.pathname + (t.size ? `?${t}` : ""), {
+ Fp(location.pathname + (t.size ? `?${t}` : ""), {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
});
}
var sW = (e, t = "taste", n = "desc") => [
@@ -49955,13 +49959,13 @@ function dW(e, t, n = "") {
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
function qye(e, t, n) {
- let r = wo({
+ let r = To({
...e,
is_jav: !0
}, t, !1, n);
if (r.html || !e.cover_url || !e.code) return r.html;
- let i = z(fo(e));
- return So(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
+ let i = z(po(e));
+ return Co(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
async function Jye(e, t) {
if (e === "wants") await H.ensureQueryData({
@@ -50051,7 +50055,7 @@ function mW({ tab: e, navigate: t, find: n, search: r }) {
children: "JAV"
}),
r,
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
className: r ? "flex-none" : "ml-auto flex-none",
onClick: n,
@@ -54148,12 +54152,12 @@ function NW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var ube = () => pu, PW = Np.navigation.seq, FW = Np.navigation.openEpoch, IW = Np.navigation.location.pathname, LW = {
+var ube = () => mu, PW = Pp.navigation.seq, FW = Pp.navigation.openEpoch, IW = Pp.navigation.location.pathname, LW = {
seq: PW,
claimed: !0,
from: IW
};
-Np.listen((e) => {
+Pp.listen((e) => {
LW = {
seq: e.seq,
claimed: e.openEpoch === FW,
@@ -54162,11 +54166,11 @@ Np.listen((e) => {
});
var RW = !1;
function zW(e) {
- let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
+ let { seq: t, openEpoch: n, location: r } = Pp.navigation, i = Vf(r.pathname), a = Lp() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
- opens: pu,
+ opens: mu,
covered: i,
address: `${a.pathname}${a.search}`,
filters: JSON.stringify(o, Object.keys(o).sort()),
@@ -54174,7 +54178,7 @@ function zW(e) {
};
}
function dbe(e, t, n, r) {
- let i = { ...U }, a = hm("catalog");
+ let i = { ...U }, a = gm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
...i,
@@ -54211,10 +54215,10 @@ function dbe(e, t, n, r) {
};
}
function BW(e) {
- let t = Np.navigation.seq;
- mm("catalog", { ...U });
- let n = e(), r = () => Np.navigation.seq === t, i = () => document.querySelector("#grid");
- vm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => vm(r, i()));
+ let t = Pp.navigation.seq;
+ hm("catalog", { ...U });
+ let n = e(), r = () => Pp.navigation.seq === t, i = () => document.querySelector("#grid");
+ ym(r, i(), { pending: !0 }), Promise.resolve(n).then(() => ym(r, i()));
}
function fbe(e, t) {
let n = { ...e }, r = zW(n.opened);
@@ -54222,7 +54226,7 @@ function fbe(e, t) {
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- Ip() || i.fill();
+ Lp() || i.fill();
return;
}
let a = !1;
@@ -54232,29 +54236,29 @@ function fbe(e, t) {
BW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && LW.from !== "/");
+ r.epoch !== n.epoch && (a = Pp.navigation.action === "POP" && LW.from !== "/");
}
- let { pathname: o, search: s } = Np.navigation.location;
+ let { pathname: o, search: s } = Pp.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
let { kind: e, view: t } = NU(s);
- RW = !0, Pp(PU(e, t), { replace: !0 });
+ RW = !0, Fp(PU(e, t), { replace: !0 });
return;
}
let c = RW;
- RW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: dbe(o, s, a, i) }), BW(() => i.open(o, {
+ RW = !1, a &&= o === "/" && !_m(), e.opened = !0, W({ state: dbe(o, s, a, i) }), BW(() => i.open(o, {
entering: a,
retitle: c
}));
}
function pbe() {
- let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(Cu, ube), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+ let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(wu, ube), r = tf(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = zW(!Bf(Np.navigation.location.pathname));
+ let t = zW(!Vf(Pp.navigation.location.pathname));
return !t.covered && t.opens > 0 && (RW || LW.seq === PW ? t.opens = -1 : LW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
@@ -54271,7 +54275,7 @@ function pbe() {
]), null;
}
function VW() {
- let { pathname: e } = ef();
+ let { pathname: e } = tf();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -54283,7 +54287,7 @@ function VW() {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(pbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });
+ }, [e]), Vf(e) && !Bf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(pbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });
}
function mbe() {
let e = (0, F.useContext)(KW), t = document.getElementById("javLibraryHeader");
@@ -54293,9 +54297,9 @@ function mbe() {
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var HW = () => pu, hbe = () => mu;
+var HW = () => mu, hbe = () => hu;
function gbe() {
- let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, hbe), n = (0, F.useSyncExternalStore)(Cu, HW);
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(wu, hbe), n = (0, F.useSyncExternalStore)(wu, HW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54311,10 +54315,10 @@ function gbe() {
]), null;
}
function UW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Cu, HW), r = (0, F.useRef)(void 0);
+ let n = (0, F.useSyncExternalStore)(wu, HW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = Np.navigation;
- r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = Pp.navigation;
+ r.current = mu === 0 || Ip() ? "boot" : e && !t ? null : "history";
}
let i = (0, F.useRef)(e);
(0, F.useEffect)(() => {
@@ -54335,17 +54339,17 @@ function _be() {
return (0, F.useLayoutEffect)(() => {
t.current = e;
}, [e]), UW((t) => {
- let n = Np.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
- e && a && (Gf(), t || Kf(Np.navigation.location.state), e.openOverlay(a));
+ let n = Pp.navigation.location, { pathname: r, search: i } = Nf(n.pathname) && If(n.state) || n, a = Bf(r, i);
+ e && a && (Kf(), t || qf(Pp.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Bf(Np.navigation.location.pathname) || t.current?.closeStage();
+ Vf(Pp.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
function vbe({ path: e }) {
GW();
- let { location: t, seq: n, action: r } = Np.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
+ let { location: t, seq: n, action: r } = Pp.navigation, i = Nf(t.pathname) ? If(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -54370,21 +54374,21 @@ function bbe() {
// src/react/router/router.tsx
var WW = (0, F.createContext)(0), GW = () => (0, F.useContext)(WW), KW = (0, F.createContext)(null);
function xbe({ children: e }) {
- let [t, n] = (0, F.useState)(() => Np.navigation);
- return (0, F.useLayoutEffect)(() => (n(Np.navigation), Np.listen((e) => {
+ let [t, n] = (0, F.useState)(() => Pp.navigation);
+ return (0, F.useLayoutEffect)(() => (n(Pp.navigation), Pp.listen((e) => {
(0, Rt.flushSync)(() => n(e));
})), []), /* @__PURE__ */ (0, I.jsx)(WW.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, I.jsx)(Tf, {
+ children: /* @__PURE__ */ (0, I.jsx)(Ef, {
location: t.location,
navigationType: t.action,
- navigator: Np,
+ navigator: Pp,
children: e
})
});
}
function Sbe({ target: e }) {
- let t = nf();
+ let t = rf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
@@ -54394,8 +54398,8 @@ function Cbe(e, t, n) {
V6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
function wbe() {
- let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => (n(gp()), _p((e, t) => {
+ let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(_p), r = (0, F.useRef)(null);
+ (0, F.useLayoutEffect)(() => (n(_p()), vp((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
@@ -54416,7 +54420,7 @@ var Tbe = class extends F.Component {
return { failed: !0 };
}
componentDidCatch() {
- wp(this.props.entry.container, this.props.entry.revision);
+ Tp(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
@@ -54425,69 +54429,69 @@ var Tbe = class extends F.Component {
return t8(e.path) ? (0, Rt.createPortal)(dLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
function Dbe({ children: e }) {
- let t = ef();
+ let t = tf();
GW();
- let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
+ let n = Lp(), r = Nf(t.pathname) && !Ip() ? If(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)(Ef, {
+ /* @__PURE__ */ (0, I.jsxs)(Df, {
location: n ?? t,
children: [
- Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(sLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(sLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(H6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(H6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- Object.entries(q6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(q6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- e8.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ e8.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: J6["/"].element
}, e)),
- Object.entries(cLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(cLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: t.element
}, e)),
- If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(bbe, {}) : J6["/"].element
}, e)),
- jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, I.jsx)(wf, {
+ /* @__PURE__ */ (0, I.jsx)(Tf, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Ef, {
+ /* @__PURE__ */ (0, I.jsxs)(Df, {
location: r ?? t,
- children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ children: [Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: /* @__PURE__ */ (0, I.jsx)(vbe, { path: e })
- }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
+ }, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ /* @__PURE__ */ (0, I.jsxs)(Df, { children: [Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
path: e,
element: /* @__PURE__ */ (0, I.jsx)(bye, {})
- }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
+ }, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
path: "*",
element: null
})] })
@@ -54545,7 +54549,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
}, y = () => {
h(null), a.setError("");
}, b = (e) => {
- H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), W({ pageOpens: pu + 1 });
+ H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), W({ pageOpens: mu + 1 });
}, x = () => a.run("preview", (e) => V("/api/folders/preview", v, "POST", e), h), S = () => {
m && a.run("save", (e) => V("/api/folders/rule", {
...v,
@@ -54554,7 +54558,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
expected_revision: n
}, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));
}, C = async () => {
- (0, Rt.flushSync)(() => _(!0)), (await ll({
+ (0, Rt.flushSync)(() => _(!0)), (await ul({
title: "移除目录规则",
body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,
confirmLabel: "移除目录规则",
@@ -54564,7 +54568,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
expected_revision: n
})
})).confirmed ? b("已移除目录规则") : _(!1);
- }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
+ }, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs(t) } }), t] }) : null;
return g ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: !0,
onOpenChange: (e) => {
@@ -54697,7 +54701,7 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-2 border-t border-separator-border p-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsx)(J, {
+ t ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
className: "mr-auto",
onClick: () => {
@@ -54706,19 +54710,19 @@ function Abe({ folder: e, rule: t, revision: n, close: r }) {
...dV(a.busy === "remove"),
children: "移除规则"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => {
w || r();
},
children: "取消"
}),
- m ? /* @__PURE__ */ (0, I.jsx)(J, {
+ m ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
...dV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
- }) : /* @__PURE__ */ (0, I.jsx)(J, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
...dV(a.busy === "preview"),
@@ -54758,10 +54762,10 @@ function jbe(e, t) {
}
// src/react/catalog-folders/catalog-folders-page.tsx
function XW() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(Mbe, {}) : null;
+ return ef() ? /* @__PURE__ */ (0, I.jsx)(Mbe, {}) : null;
}
function Mbe() {
- let e = ef(), t = (0, F.useContext)(KW);
+ let e = tf(), t = (0, F.useContext)(KW);
if (!jn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
return /* @__PURE__ */ (0, I.jsx)(rL, {
@@ -54779,13 +54783,13 @@ function Mbe() {
});
}
function Nbe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(Pbe, {
+ return ef() ? /* @__PURE__ */ (0, I.jsx)(Pbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
function Pbe({ children: e, enabled: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = tf(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
"data-folder-workspace": "",
@@ -54813,7 +54817,7 @@ function Pbe({ children: e, enabled: t }) {
});
}
function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = ef(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+ let r = tf(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
@@ -54888,7 +54892,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
l.error && !u ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -54900,7 +54904,7 @@ function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => p(!0),
@@ -54968,7 +54972,7 @@ function Fbe({ nodes: e, go: t }) {
id: i,
className: "folder-children",
"aria-label": "子文件夹",
- children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
+ children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
leadingIcon: OB,
@@ -54978,7 +54982,7 @@ function Fbe({ nodes: e, go: t }) {
children: e.name
})
}, e.id))
- }), e.length > 12 ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), e.length > 12 ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
"aria-expanded": n,
@@ -55035,7 +55039,7 @@ function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
v ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => {
@@ -55071,7 +55075,7 @@ function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}) : d.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(d.error)
- }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
+ }) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
leadingIcon: OB,
@@ -55083,7 +55087,7 @@ function Ibe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
size: "compact",
icon: HB,
title: "没有匹配的文件夹",
- actions: /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: () => l(""),
children: "清除搜索"
@@ -55181,7 +55185,7 @@ function rG() {
}
// src/react/components/icon-swap.tsx
function iG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = wC();
+ let { isFocusVisible: i } = DC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55207,11 +55211,11 @@ function aG({ className: e }) {
// src/react/follow-feed/follow-marks.ts
var oG = (e) => typeof e == "string" ? e : "", sG = (e) => e.aliases;
function cG(e, t = "") {
- let n = Ji(e);
+ let n = Yi(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
function lG(e, t = "") {
- let n = z(si(t || e)), r = Ji(e);
+ let n = z(si(t || e)), r = Yi(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
var uG = (e) => oG(e.title).trim() || "未命名内容", dG = (e, t) => oi(e, sG(t));
@@ -55796,7 +55800,7 @@ function axe(e) {
e.layout,
e.sorts
]), (0, F.useLayoutEffect)(() => {
- ec(o.current, "tagbar");
+ tc(o.current, "tagbar");
}, [f]), /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: "视图与标签",
@@ -56067,7 +56071,7 @@ var NG = "100% 0px";
function fxe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
- a.current && pc(a.current);
+ a.current && mc(a.current);
}, []), (0, F.useLayoutEffect)(() => {
if (e || n !== "skeleton") return;
let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
@@ -56096,7 +56100,7 @@ function PG({ message: e, onRetry: t }) {
onClick: (e) => {
e.target.closest("[data-note-action]") && t();
},
- dangerouslySetInnerHTML: { __html: zs(e, {
+ dangerouslySetInnerHTML: { __html: Bs(e, {
variant: "error",
actionLabel: "立即重试"
}) }
@@ -56108,7 +56112,7 @@ function FG({ pending: e, skeletonHtml: t, children: n }) {
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
}, [e, n]), (0, F.useLayoutEffect)(() => {
- e && pc(i.current);
+ e && mc(i.current);
}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-content-transition": "",
"data-pending": e ? "" : void 0,
@@ -56243,7 +56247,7 @@ function XG(e) {
var ZG = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
- icon: _s[e.icon || ""] || e.icon || "database",
+ icon: vs[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
}])), QG = !1;
@@ -56362,7 +56366,7 @@ function aK({ item: e, actions: t }) {
},
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
- children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })
+ children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })
}), i ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-operation-error": "",
role: "alert",
@@ -56373,7 +56377,7 @@ function oK(e, t, n) {
return t === "short" ? nK : _M(n);
}
function sK(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = jo(e), s = i[0] || "", c = go(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-avatars": "",
@@ -56385,7 +56389,7 @@ function sK(e) {
"data-entity-name": e,
title: `打开${c}页:${nn("performer", e, a[t]?.id)}`,
style: { "--media-avatar-index": t },
- dangerouslySetInnerHTML: { __html: vo(e, a[t] ?? null, "performer") }
+ dangerouslySetInnerHTML: { __html: yo(e, a[t] ?? null, "performer") }
}, `${e}:${t}`))
}) : t ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56393,10 +56397,10 @@ function sK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: `打开${t === "performer" ? c : "资料"}页`,
- dangerouslySetInnerHTML: { __html: vo(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
+ dangerouslySetInnerHTML: { __html: yo(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-avatar": "",
- dangerouslySetInnerHTML: { __html: vo(n, null, "") }
+ dangerouslySetInnerHTML: { __html: yo(n, null, "") }
}),
who: r ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56471,8 +56475,8 @@ function Oxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
- u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = oK(e, t, n), w = S ? n.size : "small", T = C === nK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || rK, A = o.titleHtml(e, O).trim() || z(rK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Txe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = sK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ u.current && u.current !== e && Fl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Ll(e, t);
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = oK(e, t, n), w = S ? n.size : "small", T = C === nK && !!e.is_jav, E = T ? Oo(e, !1) : Eo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Eo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || rK, A = o.titleHtml(e, O).trim() || z(rK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Txe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = sK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56505,7 +56509,7 @@ function Oxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
E.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: E,
identity: D,
- relayout: (e) => El(e, w)
+ relayout: (e) => Dl(e, w)
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
@@ -56873,7 +56877,7 @@ function Ixe({ faces: e, fallback: t, onOpenEntity: n }) {
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
className: `${fK} cursor-pointer outline-none`,
- dangerouslySetInnerHTML: { __html: _o(e.name, e, Za(e.name), e.kind) }
+ dangerouslySetInnerHTML: { __html: vo(e.name, e, Qa(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
@@ -57122,7 +57126,7 @@ function Bxe(e, t, n = mK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || b() ? y(a, !0, n) : p.current = lS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = fS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57259,14 +57263,14 @@ function Uxe(e, t, n) {
}
// src/react/video-wall/wall-controls.tsx
function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = Qx(), x = Uxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+ let b = tS(), x = Uxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(xn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(uS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(pS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57288,7 +57292,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
- children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: w ? "#i-play" : "#i-player-pause" })
@@ -57339,7 +57343,7 @@ function Wxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
title: "稍后看",
"aria-pressed": u,
onClick: g,
- children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-bookmark" })
@@ -57466,7 +57470,7 @@ function Kxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(UU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(UU, { artwork: Eo(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
e.part_label ? PP(e.part_label) : "",
@@ -57498,18 +57502,18 @@ function yK(e = `${location.pathname}${location.search}`) {
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
function bK() {
- let e = new URLSearchParams(Np.navigation.location.search).get("returnTo") || "/";
- Np.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+ let e = new URLSearchParams(Pp.navigation.location.search).get("returnTo") || "/";
+ Pp.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
- let i = To(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
+ let i = Eo(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
} : e, n || r >= 1 ? "small" : "big", !0, t), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current?.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && fl(e, r);
+ e.complete && e.naturalWidth && pl(e, r);
});
}, [r, i.html]), /* @__PURE__ */ (0, I.jsx)("span", {
ref: a,
@@ -57518,7 +57522,7 @@ var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image:
children: /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && fl(e, r);
+ e.complete && e.naturalWidth && pl(e, r);
})
})
});
@@ -57547,7 +57551,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Qx(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = tS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57564,7 +57568,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
(0, F.useLayoutEffect)(() => {
document.body.append(Ce), NW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
- let [we, Te] = (0, F.useState)(() => Bf(Np.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
+ let [we, Te] = (0, F.useState)(() => Vf(Pp.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
Ae.current = !!e.length;
let je = (0, F.useRef)({
selectedId: w?.id || null,
@@ -57611,8 +57615,8 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, F.useEffect)(() => Np.listen((e) => {
- let t = Bf(e.location.pathname);
+ ]), (0, F.useEffect)(() => Pp.listen((e) => {
+ let t = Vf(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), Te(t);
}), []), (0, F.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), Me();
@@ -57828,7 +57832,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: fe || xn(ee.error)
- }), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
onClick: () => void ee.refetch(),
@@ -57919,7 +57923,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n === (t.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Np.push(`/wall?${t}`), xe(!1));
+ n === (t.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Pp.push(`/wall?${t}`), xe(!1));
},
children: [/* @__PURE__ */ (0, I.jsx)("button", {
ref: Se,
@@ -57956,10 +57960,10 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-info" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
- onClick: () => Np.push(yK()),
+ onClick: () => Pp.push(yK()),
children: "清除筛选"
})]
}) : null
@@ -58015,7 +58019,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = !!w && t.key === E, r = n ? w : e[t.index], i = Ie.get(t.key) || t, a = !re && !n, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(uS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(pS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -58095,7 +58099,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(r.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(uS.span, {
+ /* @__PURE__ */ (0, I.jsx)(pS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58110,7 +58114,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: a
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
onClick: o,
@@ -58122,11 +58126,11 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onClick: async (e) => {
let t = e.target.closest("[data-wall-load-more]");
if (!(!t || r || g.current)) {
- Xc(t);
+ Zc(t);
try {
await qe();
} finally {
- Xc(t, !1);
+ Zc(t, !1);
}
}
},
@@ -58134,12 +58138,12 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}) : null,
n && t && e.length > 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-footer": "",
- children: /* @__PURE__ */ (0, I.jsxs)(J, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Y, {
size: "small",
variant: "secondary",
...dV(r),
onClick: () => void qe(),
- children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
+ children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58147,7 +58151,7 @@ function Jxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: me
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
...dV(r),
@@ -58204,7 +58208,7 @@ async function Xxe(e, t) {
}
function wK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Yxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Gs("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Yxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58217,13 +58221,13 @@ function wK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return Ws(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
+ return Gs(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
}
- return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
+ return Gs("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
function Zxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || wK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${yK()}">清除筛选</a>` });
+ return e ? r || wK() : t ? Gs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Gs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${yK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
function TK({ label: e, maintenance: t = !1, children: n }) {
@@ -58233,7 +58237,7 @@ function TK({ label: e, maintenance: t = !1, children: n }) {
role: "group",
"aria-label": e,
"data-processing-maintenance": t || void 0,
- className: q("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
+ className: J("flex flex-col gap-1", t && "mt-2 rounded-lg bg-background-secondary-default p-1 pt-3"),
children: n
});
}
@@ -58243,7 +58247,7 @@ function EK({ option: e, metadataOnly: t, onRun: n }) {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(kV, i ? "cursor-not-allowed opacity-50" : AV, "text-body-2-medium"),
+ className: J(kV, i ? "cursor-not-allowed opacity-50" : AV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58364,7 +58368,7 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
if (l.current) return;
f.current = i;
- let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = sl({
+ let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = cl({
title: u,
description: `${a.scope === "new" ? "为这组已登记的影片补全资料和视频属性,并按设置生成预览" : a.incremental ? a.stage === "scan" ? "发现并登记未入库的新文件,保留已有影片资料" : `发现新文件,仅补全新增及未完成影片的资料和视频属性${r ? "" : ",并生成本地预览图"}` : c ? "为本地视频补全九宫格预览图,会读取视频并占用处理器" : a.stage === "scan" ? "扫描目录并登记文件,按目录设置读取视频时长和分辨率" : a.stage === "metadata" ? "读取配套资料,补全影片资料、封面和人物资料" : `${a.stage === "collect" ? "为已入库影片补全资料和视频属性" : "扫描目录发现文件,再补全资料和视频属性"}${r ? "" : ",并生成本地预览图"}`},可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。`,
body: "<div class=\"peach-react\" data-processing-prompt></div>",
@@ -58411,11 +58415,11 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
"data-button-group": !0,
"data-split-button": !0,
"data-variant": "primary",
- children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Y, {
...y,
onClick: () => b(h.command),
children: h.label
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
ref: c,
iconOnly: !0,
leadingIcon: mB,
@@ -58472,7 +58476,7 @@ function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
// src/react/library-processing/library-completion.tsx
function OK(e, t) {
- return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !To(e, "small", !1, t).html).map((e) => e.id))];
+ return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !Eo(e, "small", !1, t).html).map((e) => e.id))];
}
function kK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)($xe, {
@@ -58507,7 +58511,7 @@ function $xe({ assetIds: e, onComplete: t, className: n }) {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
- className: q("@container", n),
+ className: J("@container", n),
children: /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -58812,7 +58816,7 @@ function UK(e) {
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
var dSe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = tw();
+ var t = A(), n = iw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -60646,11 +60650,11 @@ function CJ(e, t) {
// src/react/boardui/components/base/table/table.tsx
function wJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
- className: q("w-full overflow-x-auto", n),
+ className: J("w-full overflow-x-auto", n),
children: /* @__PURE__ */ (0, I.jsx)(xhe, {
ref: r,
...i,
- className: q("bui-table", e === "sm" && "bui-table-sm", t)
+ className: J("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
@@ -60828,7 +60832,7 @@ function NJ(e, t = "") {
return "<div data-list-skeleton aria-hidden=\"true\"><div data-list-skeleton-tools><i class=\"skeleton-sheen\"></i></div>" + t + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div>`;
}
function PJ(e, t) {
- return tG() === "list" ? Mwe(e) : ac(e, {
+ return tG() === "list" ? Mwe(e) : oc(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
@@ -60842,7 +60846,7 @@ function FJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
- Ro(e), jc(e);
+ zo(e), Mc(e);
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: i,
"data-board-data-table": !0,
@@ -60890,7 +60894,7 @@ function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
"data-pagination-layout": "",
className: "inline-grid min-w-0 max-w-full items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
disabled: e <= 1,
@@ -60903,7 +60907,7 @@ function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
"aria-hidden": !0,
className: "px-1 text-body-2-regular text-text-tertiary",
children: "…"
- }) : /* @__PURE__ */ (0, I.jsx)(J, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: t === e ? "secondary" : "ghost",
size: "small",
"aria-label": `第 ${t} 页`,
@@ -60912,7 +60916,7 @@ function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
children: t
}) }, t === "…" ? `dots-${r}` : t))
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
disabled: e >= t,
@@ -60944,7 +60948,7 @@ function RJ({ label: e, options: t, sorting: n, onChange: r }) {
id: e.id,
children: e.label
}, e.id))]
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
iconOnly: !0,
disabled: !i,
@@ -61116,7 +61120,7 @@ function WJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(UJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(UJ, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
@@ -61152,7 +61156,7 @@ function Lwe({ item: e, actions: t }) {
busyStar: r.busy ? Number(r.busy) : void 0
}), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": "立即重试评分",
@@ -61182,8 +61186,8 @@ function KJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
- className: q("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
- children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, I.jsx)(J, {
+ className: J("flex gap-2", t === "inline" ? "flex-nowrap items-center" : "flex-col"),
+ children: [n, e.map((e) => e.href === void 0 ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
disabled: e.disabled,
@@ -61221,7 +61225,7 @@ function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
children: s
})
}, "options");
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Y, {
ref: c,
variant: "secondary",
leadingIcon: n,
@@ -61236,7 +61240,7 @@ function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(OV, "w-max overscroll-contain"),
+ className: J(OV, "w-max overscroll-contain"),
children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(mH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
@@ -61272,7 +61276,7 @@ function JJ({ preferences: e, label: t = "表格" }) {
label: "恢复默认显示",
onPress: () => e.change({})
}]
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "medium",
onClick: e.reset,
@@ -61709,7 +61713,7 @@ function Bwe(e) {
});
}
function Vwe({ item: e, props: t, disabled: n }) {
- let r = To(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
+ let r = Eo(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
eL();
let l = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, u = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), d = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
@@ -61732,7 +61736,7 @@ function Vwe({ item: e, props: t, disabled: n }) {
children: [
r.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: r,
- relayout: (e) => El(e, "small")
+ relayout: (e) => Dl(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
i && !a ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -62064,7 +62068,7 @@ function nY({ entity: e, load: t, enabled: n, children: r }) {
...p,
hidden: !!c.error,
onClick: () => void d(!0),
- dangerouslySetInnerHTML: { __html: Hs(Vs) }
+ dangerouslySetInnerHTML: { __html: Us(Hs) }
}), c.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: c.error,
onRetry: () => void d(!0)
@@ -62172,12 +62176,12 @@ function Jwe({ cut: e, props: t, onOpen: n }) {
});
}
function rY(e, t, n) {
- return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
+ return Do(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
function Ywe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
- let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
+ let o = No(e, n.tagLabel), s = (0, F.useCallback)(async () => {
let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => oP(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), rY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = rY(e, t, !1);
@@ -62195,7 +62199,7 @@ function Ywe({ seed: e, layout: t, helpers: n, actions: r }) {
...t,
size: "small"
}, !1).html,
- relayoutArt: (e) => El(e, c),
+ relayoutArt: (e) => Dl(e, c),
ratio: oK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
@@ -62308,7 +62312,7 @@ async function mTe(e) {
queryFn: () => gY(e)
});
}
-var hTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var hTe = (e) => e.has_cover ? uo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
function _Y(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
@@ -62927,7 +62931,7 @@ var zX = [
], BX = "mb-4 flex flex-wrap gap-2";
function oDe(e) {
let t = zX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${BX}">${zX.map(([e, n]) => Os({
+ return `<div class="peach-react"><div aria-label="身份分类" class="${BX}">${zX.map(([e, n]) => ks({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -63275,7 +63279,7 @@ function TDe() {
}), document.addEventListener("keydown", (e) => {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
- if (!t || !ds(n, t)) return;
+ if (!t || !fs(n, t)) return;
let r = aZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
@@ -63342,7 +63346,7 @@ function ODe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Wc(t, r, a, "x"), r = a, lZ.set(n, a);
+ Gc(t, r, a, "x"), r = a, lZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63481,7 +63485,7 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
} }
});
i(t, 0), h.current = ADe(e, a, b);
- let m = il(e, f.current, p.current), _ = (e = !1) => {
+ let m = al(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();
};
g.current = {
@@ -63508,7 +63512,7 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
let t = _;
- Xc(e), O(!0), A({
+ Zc(e), O(!0), A({
at: t,
text: ""
});
@@ -63518,7 +63522,7 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
text: await r.revealSource(M.id)
});
} finally {
- Xc(e, !1), O(!1);
+ Zc(e, !1), O(!1);
}
}, N = (e, t) => {
t.naturalWidth && t.naturalHeight && !x[e] && S((n) => ({
@@ -63692,7 +63696,7 @@ function FDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-reveal": "",
hidden: !M || !r,
onClick: (e) => void ee(e.currentTarget),
- dangerouslySetInnerHTML: { __html: (D ? Bs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }
+ dangerouslySetInnerHTML: { __html: (D ? Vs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-status": "",
@@ -63933,12 +63937,12 @@ function qDe({ sources: e, report: t }) {
start: (e) => xi(e),
onError: (e) => i(lr(e)),
onFinish: (e) => {
- e.status === "failed" && i(e.error || "检查失败"), Vi(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
+ e.status === "failed" && i(e.error || "检查失败"), Hi(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
}
}), s = a || o.isPending;
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
disabled: !n.length,
...dV(s),
@@ -63992,7 +63996,7 @@ function YDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
});
}
function XDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => Vbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = _a(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) => Vbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ya(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = xa({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -64203,11 +64207,11 @@ function XDe(e) {
}),
e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(BG, {
reasons: e.reason.reasons,
- tags: e.reason.tags.map((e) => Ll(e))
+ tags: e.reason.tags.map((e) => Rl(e))
}) : null : /* @__PURE__ */ (0, I.jsx)(zG, {
"data-follow-labels": "",
tags: k,
- label: Ll,
+ label: Rl,
readOnly: !0,
attrs: (e) => ({
"data-tag-cat": `r34-${u.tag_types?.[e] || "unknown"}`,
@@ -64311,13 +64315,13 @@ function rOe(e, t, n) {
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 = ca([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = ca(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = la([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = la(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 = ca([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = la([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -64325,7 +64329,7 @@ function rOe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => ha(e).forEach((e) => {
+ r.forEach((e) => ga(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -64340,7 +64344,7 @@ function rOe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => ha(e).has(_)),
+ visible: r.filter((e) => ga(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]])),
@@ -64354,27 +64358,27 @@ function rOe(e, t, n) {
]);
}
function iOe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ra(t, r)), o = Ft({
- queryKey: ia,
- queryFn: ({ signal: e }) => aa(e)
- }), s = (0, F.useMemo)(() => sa(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({
+ let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ia(t, r)), o = Ft({
+ queryKey: aa,
+ queryFn: ({ signal: e }) => oa(e)
+ }), s = (0, F.useMemo)(() => ca(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
}), [s, c]), u = rOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
- vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
+ ym(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
d,
s,
t
]);
let p = (0, F.useMemo)(() => ({
- tags: Kl(u.visible.flatMap(la).map((e) => ({ tags: e.tags || [] }))),
+ tags: ql(u.visible.flatMap(ua).map((e) => ({ tags: e.tags || [] }))),
providers: [...u.providers].map(([e, t]) => [
e,
t,
- Ji(e)
+ Yi(e)
]),
duration: !!s?.facets?.duration
}), [
@@ -64406,7 +64410,7 @@ function iOe(e) {
let h = (e) => i.route({
...t,
...e
- }), g = Ta({
+ }), g = Ea({
...t,
author: u.author,
provider: u.provider
@@ -64429,7 +64433,7 @@ function iOe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(PZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(PZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64437,7 +64441,7 @@ function iOe(e) {
onClick: () => void m.start(!1),
children: m.starting === "check" ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Bs("检查中") }
+ dangerouslySetInnerHTML: { __html: Vs("检查中") }
}) : "检查更新"
}) : null }),
/* @__PURE__ */ (0, I.jsx)(sOe, {
@@ -64463,7 +64467,7 @@ function iOe(e) {
}),
/* @__PURE__ */ (0, I.jsx)(uOe, {
conditions: g,
- onDrop: (e) => i.route(Ea(t, e)),
+ onDrop: (e) => i.route(Da(t, e)),
onClear: () => h({
author: "",
provider: "",
@@ -64481,7 +64485,7 @@ function iOe(e) {
data: s,
context: l,
props: e,
- checkAction: /* @__PURE__ */ (0, I.jsx)(J, {
+ checkAction: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
"aria-label": "检查每个来源的更新",
@@ -64513,7 +64517,7 @@ function iOe(e) {
})
}) : null, v ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-page-action": "",
- children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
leadingIcon: m.olderBusy ? void 0 : $De,
"data-follow-older": "",
@@ -64521,11 +64525,11 @@ function iOe(e) {
onClick: () => void m.start(!0),
children: m.olderBusy ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Bs("抓取中") }
+ dangerouslySetInnerHTML: { __html: Vs("抓取中") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "抓取中" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-backfill": "",
- children: xa(u.sources)
+ children: Sa(u.sources)
})]
}) : null]
}) : null
@@ -64589,7 +64593,7 @@ function oOe(e, t) {
ok: !1,
error: e.error
}] } : e;
- g.current.actions.checkReport(n), d(Ui({
+ g.current.actions.checkReport(n), d(Wi({
...n,
status: e.status || "done"
})), m.current = !1, s(!1), p(!1), H.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
@@ -64751,7 +64755,7 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Zi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [Qi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -64781,10 +64785,10 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${Da(e.groups, n)}`,
+ "data-tag-cat": `r34-${Oa(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: [Ll(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Rl(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": n,
children: String(r)
}) : null]
@@ -64829,7 +64833,7 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- Qi.map(([e, n]) => {
+ $i.map(([e, n]) => {
let r = t.sort === e;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64837,9 +64841,9 @@ function lOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": Ca(e, n, t.sort, t.dir) || void 0,
+ "aria-label": wa(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = Sa(e, t.sort, t.dir);
+ let n = Ca(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, I.jsx)(iG, {
@@ -64941,7 +64945,7 @@ function pOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
tags: [],
durMin: 0,
durMax: 0,
- media: t.groups.length ? t.groups.some((e) => ha(e).has("video")) ? "videos" : "images" : s.media
+ media: t.groups.length ? t.groups.some((e) => ga(e).has("video")) ? "videos" : "images" : s.media
})
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
@@ -64952,7 +64956,7 @@ function pOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
});
}
function IZ(e, t) {
- return ga(e, t.media).id;
+ return _a(e, t.media).id;
}
function mOe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
@@ -64962,7 +64966,7 @@ function mOe({ data: e, filtered: t, clear: n, checkAction: r }) {
children: /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
- actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: i ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "清除筛选"
@@ -64981,16 +64985,16 @@ var hOe = {
ignored: "已忽略"
};
function LZ(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ra(t, n).queryKey, l = (e, t, n) => n((n) => {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ia(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) => {
- H.setQueryData(c, (r) => r && wa(r, t, e, n));
+ H.setQueryData(c, (r) => r && Ta(r, t, e, n));
}, d = () => void H.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = sa(H.getQueryData(c));
+ let t = ca(H.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -65092,7 +65096,7 @@ function _Oe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-layout": o,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
- let n = ga(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
+ let n = _a(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
return /* @__PURE__ */ (0, I.jsx)(EZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
@@ -65126,7 +65130,7 @@ function vOe({ searched: e, clear: t, actions: n, sources: r }) {
children: /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
- actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: e ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: t,
children: "清除筛选"
@@ -65617,7 +65621,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
C ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
+ action: E ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(h.isFetching),
@@ -65726,7 +65730,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
value: l,
onChange: u
})
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
@@ -65736,7 +65740,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => a.current?.click(),
...dV(v("file")),
@@ -65766,7 +65770,7 @@ function JOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
value: s,
onChange: c
})
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !s.trim(),
...dV(v("url")),
@@ -65864,13 +65868,13 @@ function XOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: i,
...dV(r),
children: "返回备选图片"
}),
- n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
+ n.crop ? null : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(r),
onClick: () => {
@@ -65878,7 +65882,7 @@ function XOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
},
children: "整张使用"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !d || !l,
...dV(r),
onClick: () => {
@@ -65903,7 +65907,7 @@ function aQ({ title: e, detail: t, busy: n, onRetry: r }) {
size: "compact",
icon: NB,
title: e,
- actions: /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
...dV(!!n),
onClick: r,
@@ -65931,7 +65935,7 @@ function ZOe({ code: e }) {
});
}
function oQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? iQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? iQ(e.code, t, r) : u ? uo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -66466,12 +66470,12 @@ function ske(e) {
}
// src/react/entity-hero/entity-hero-page.tsx
function cke(e) {
- return go({
+ return _o({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: bo(e.avatar_focus),
+ style: xo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
});
@@ -66776,7 +66780,7 @@ function mke({ follow: e, displayName: t, actions: n }) {
children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
...dV(r === e.key),
onClick: () => {
@@ -66943,8 +66947,8 @@ function vke({ entity: e, actions: t, helpers: n }) {
// src/react/entity-page/use-entity-online.ts
var yke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
function bke(e, t, n) {
- let [r, i] = (0, F.useState)(() => _a(e));
- r.author !== e && i(_a(e));
+ let [r, i] = (0, F.useState)(() => va(e));
+ r.author !== e && i(va(e));
let [a, o] = (0, F.useState)({
author: e,
media: ""
@@ -66956,24 +66960,24 @@ function bke(e, t, n) {
let s = a.author === e ? a.media : "", c = (t) => o({
author: e,
media: t
- }), l = ra(r, 0), u = Lt({
+ }), l = ia(r, 0), u = Lt({
...l,
enabled: t && !!e
}), d = Ft({
- queryKey: ia,
- queryFn: ({ signal: e }) => aa(e),
+ queryKey: aa,
+ queryFn: ({ signal: e }) => oa(e),
enabled: t
- }), f = (0, F.useMemo)(() => sa(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {
+ }), f = (0, F.useMemo)(() => ca(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {
let e = {
videos: 0,
images: 0
};
- return (f?.groups || []).forEach((t) => ha(t).forEach((t) => {
+ return (f?.groups || []).forEach((t) => ga(t).forEach((t) => {
e[t === "image" ? "images" : "videos"] += 1;
})), e;
}, [f]), h = m.images > m.videos ? "images" : "videos";
!s && f && !p && c(h);
- let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => ha(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({
+ let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => ga(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({
sources: f?.sources || [],
aliases: f?.author_aliases || [],
credentials: new Set((d.data?.providers || []).filter((e) => e.present).map((e) => e.provider))
@@ -66988,22 +66992,22 @@ function bke(e, t, n) {
photoLayouts: n.photoLayouts,
imagesOnly: n.imagesOnly,
status: r.status,
- statuses: Zi,
+ statuses: Qi,
provider: r.provider,
providers: (y.providers || []).map((e) => [e, b.get(e) || e]),
tags: x.map(([e, t]) => ({
k: e,
- label: Ll(e),
+ label: Rl(e),
n: t,
selected: r.tags.includes(e),
- cat: Da(f?.groups || [], e)
+ cat: Oa(f?.groups || [], e)
})),
- sorts: Qi.map(([e, t]) => ({
+ sorts: $i.map(([e, t]) => ({
key: e,
label: t,
pressed: r.sort === e,
dir: r.sort === e ? r.dir : "",
- ariaLabel: Ca(e, t, r.sort, r.dir)
+ ariaLabel: wa(e, t, r.sort, r.dir)
}))
}, C = f?.counts || {}, w = r.status ? C[r.status] || 0 : Object.values(C).reduce((e, t) => e + (Number(t) || 0), 0), T = (e) => i((t) => ({
...t,
@@ -67020,7 +67024,7 @@ function bke(e, t, n) {
actions: {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
- sort: ea,
+ sort: ta,
seed: yke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
@@ -67028,7 +67032,7 @@ function bke(e, t, n) {
onlineProvider: (e) => T({ provider: r.provider === e ? "" : e }),
onlineTag: (e) => T({ tags: r.tags.includes(e) ? r.tags.filter((t) => t !== e) : [...r.tags, e] }),
onlineSort: (e) => {
- let t = Sa(e, r.sort, r.dir);
+ let t = Ca(e, r.sort, r.dir);
t && T(t);
}
},
@@ -67150,11 +67154,11 @@ function wke(e) {
pe,
T.key
]), (0, F.useEffect)(() => {
- c.body.isConnected && !document.getElementById("index")?.hidden && (mm("entity", {
+ c.body.isConnected && !document.getElementById("index")?.hidden && (hm("entity", {
seed: e.seed,
revision: e.revision,
jav: e.jav
- }), !A.isPending && !ae.isPending && vm(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
+ }), !A.isPending && !ae.isPending && ym(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
}, [
c,
e.seed,
@@ -67221,7 +67225,7 @@ function wke(e) {
openEntity: s.openEntity,
chooseName: (e) => {
let n = r.canonical_name;
- e !== n && ll({
+ e !== n && ul({
title: "更改统一名称",
body: `「${e}」将成为这份档案显示的名称,「${n}」留作别名。作品上的署名、搜索和标签都会跟着改写。`,
confirmLabel: "更改统一名称",
@@ -67368,7 +67372,7 @@ function wke(e) {
})
}), [o, le]), we = (r.tags || []).map((e) => ({
k: e.k,
- label: Ll(e.k),
+ label: Rl(e.k),
n: e.n,
selected: rDe(i.tag, e.k)
})), Te = [
@@ -67518,7 +67522,7 @@ function Tke({ filtered: e, onShowAll: t, onOnline: n }) {
return e ? /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV("search"),
title: "没有符合条件的视频",
- actions: /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: t,
children: "清除筛选"
@@ -67527,7 +67531,7 @@ function Tke({ filtered: e, onShowAll: t, onOnline: n }) {
}) : /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV("film"),
title: "还没有视频",
- actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: n ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "查看在线作品"
@@ -67844,13 +67848,13 @@ function Mke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: r,
children: "清空"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
size: "small",
disabled: !e,
@@ -67948,7 +67952,7 @@ var BQ = (e, t) => {
async function GQ(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
- return !(await ll({
+ return !(await ul({
title: UQ[e.operation],
body: i,
confirmLabel: UQ[e.operation],
@@ -67975,7 +67979,7 @@ function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
target_id: t[0] ? HQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
- let e = new AbortController(), t = a.current, n = sl({
+ let e = new AbortController(), t = a.current, n = cl({
title: UQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
@@ -68167,12 +68171,12 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
] })
}),
- E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
+ E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: ic({
mode: g,
pageSize: C.pageSize
}) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => void E.refetch(),
children: "立即重试"
@@ -68197,7 +68201,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
onChange: w,
unit: "个标签",
pageUnit: "个",
- pageSizes: nc
+ pageSizes: rc
})
}) : null,
M.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
@@ -68209,21 +68213,21 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
disabled: re.length !== 1,
onClick: () => j("rename"),
children: "重命名"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
disabled: re.length < 2 || s && new Set(re.map((e) => e.cat)).size > 1,
onClick: () => j("merge"),
children: "合并"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(!!M.busy),
@@ -68233,7 +68237,7 @@ function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: v ? "恢复" : "隐藏"
}),
- s ? /* @__PURE__ */ (0, I.jsx)(J, {
+ s ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(!!M.busy),
@@ -68399,7 +68403,7 @@ function Bke(e) {
placeholderData: ke
}), O = vDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
- vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
+ ym(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
D.data,
D.isPending,
@@ -68413,7 +68417,7 @@ function Bke(e) {
});
let P = te ?? (N.current?.key === ee ? N.current.counts : void 0), ne = D.isPending && !P, re = ([e]) => e === "all" || ne || Number(P?.[e] || 0) > 0;
(0, F.useLayoutEffect)(() => {
- m.current && Tl(m.current);
+ m.current && El(m.current);
}, [c]);
let ie = (0, F.useMemo)(() => h === "tags" ? O.map((t) => ({
...t,
@@ -68483,7 +68487,7 @@ function Bke(e) {
onChange: oe
}) : null,
/* @__PURE__ */ (0, I.jsx)(wV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
@@ -68533,7 +68537,7 @@ function Bke(e) {
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
className: BX,
- children: zX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ children: zX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68559,10 +68563,10 @@ function Bke(e) {
"data-index-body": "",
children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: k,
- skeletonHtml: () => h === "tags" ? rc({
+ skeletonHtml: () => h === "tags" ? ic({
mode: v,
pageSize: w.pageSize
- }) : oc({
+ }) : sc({
kind: h,
layout: c,
mode: v
@@ -68572,7 +68576,7 @@ function Bke(e) {
if (D.isError) return /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV("alert"),
title: `没能读取${b}`,
- actions: /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => void D.refetch(),
children: "立即重试"
@@ -68623,12 +68627,12 @@ function Bke(e) {
onChange: T,
unit: "个标签",
pageUnit: "个",
- pageSizes: nc
+ pageSizes: rc
})
}) : null,
A ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5 flex justify-center",
- children: /* @__PURE__ */ (0, I.jsxs)(J, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Y, {
variant: "secondary",
"data-index-more": "",
className: "min-w-31",
@@ -68637,7 +68641,7 @@ function Bke(e) {
onClick: () => void D.fetchNextPage(),
children: [D.isFetchingNextPage ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Bs("正在载入下一批") }
+ dangerouslySetInnerHTML: { __html: Vs("正在载入下一批") }
}) : null, "载入更多"]
})
}) : null,
@@ -68667,7 +68671,7 @@ function Hke({ kind: e, filtered: t, online: n, onClear: r }) {
if (t) return /* @__PURE__ */ (0, I.jsx)(sV, {
icon: lV("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(J, {
+ actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: r,
children: "清除筛选"
@@ -68830,7 +68834,7 @@ function Jke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
onClick: b,
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: Bs("正在定位") }
+ dangerouslySetInnerHTML: { __html: Vs("正在定位") }
}) : /* @__PURE__ */ (0, I.jsx)(XQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
@@ -68998,7 +69002,7 @@ function $ke(e) {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
- r && n.data && ec(r, "junk");
+ r && n.data && tc(r, "junk");
}, [r, n.data]);
let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xke, {
route: t,
@@ -69087,7 +69091,7 @@ function nAe({ onMore: e }) {
ref: t,
"data-load-more": "",
onClick: e,
- dangerouslySetInnerHTML: { __html: Hs(Vs) }
+ dangerouslySetInnerHTML: { __html: Us(Hs) }
});
}
// src/react/components/fieldset-layout.ts
@@ -69211,10 +69215,10 @@ var c$ = "发现新文件,补全新增及未完成影片的资料和预览。
function fAe() {
return f$(`<section aria-label="扫描与采集" class="${r$("stack")}" data-cleanup-task data-cleanup-processing>
${p$("扫描与采集", c$, "stack")}
- <footer class="${n$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
+ <footer class="${n$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Es("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${ks({
label: "同步新增文件",
attrs: d$
- })}${Os({
+ })}${ks({
glyph: "chevron-down",
attrs: `${d$} aria-label="更多同步方式"`
})}</span></footer>
@@ -69223,17 +69227,17 @@ function fAe() {
function pAe() {
return f$(`<section aria-label="媒体修复" class="${r$("split")}" data-cleanup-task data-cleanup-processing>
${p$("媒体修复", l$, "split")}
- <footer class="${n$.split}">${As(u$, {
+ <footer class="${n$.split}">${js(u$, {
className: "w-48",
attrs: dAe
- })}${Os({
+ })}${ks({
label: "开始修复",
attrs: d$
})}</footer>
</section>`);
}
function mAe() {
- let e = (e, t, n, r = "") => `<div class="${a$.face}"><span class="${a$.icon}">${Ts(t, "size-5")}</span><span class="${a$.body}"><span class="${a$.title}">${e}</span><span class="${a$.summary}">${n}</span>${r ? `<span class="${a$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", a$.arrow)}</div>`, t = (e, t) => `<div class="${o$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${u$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${u$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+ let e = (e, t, n, r = "") => `<div class="${a$.face}"><span class="${a$.icon}">${Es(t, "size-5")}</span><span class="${a$.body}"><span class="${a$.title}">${e}</span><span class="${a$.summary}">${n}</span>${r ? `<span class="${a$.detail}">${r}</span>` : ""}</span>${Es("chevron-right", a$.arrow)}</div>`, t = (e, t) => `<div class="${o$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Es(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${u$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${u$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Xf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
<section class="flex flex-col gap-4">${n("待处理事项")}<div class="${s$}">${[
["人工复核", "square-check-big"],
@@ -69287,7 +69291,7 @@ function h$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a,
function g$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
- className: q("text-body-2-medium underline-offset-4 hover:underline", e)
+ className: J("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
@@ -69356,7 +69360,7 @@ function y$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("p", {
- className: q("min-w-0 break-all", n),
+ className: J("min-w-0 break-all", n),
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
@@ -69415,7 +69419,7 @@ function EAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
job_id: e.job_id
}, "POST", n), (n) => {
H.setQueryData(JV, n), l(t ? e.job_id : "");
- }), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(!!o.busy),
@@ -69463,14 +69467,14 @@ function EAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
trailingIcon: hB,
children: "查看全部内容"
}) : null,
- d ? /* @__PURE__ */ (0, I.jsx)(J, {
+ d ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": "立即重试未完成项",
onClick: r,
children: "立即重试"
}) : null,
- g ? /* @__PURE__ */ (0, I.jsx)(J, {
+ g ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
@@ -69521,7 +69525,7 @@ function EAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null,
e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
...dV(!!s.busy),
@@ -69600,7 +69604,7 @@ function b$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (ZV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (ZV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => XH(c, !0),
@@ -70364,7 +70368,7 @@ function Y$({ item: e, kind: t }) {
image_version: e.image_version,
avatar_focus: e.avatar_focus,
avatar_stand_in: e.avatar_stand_in
- }, r = _o(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
+ }, r = vo(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
"data-kind": t,
@@ -70389,11 +70393,11 @@ function $$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, Q$(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = el(t, n, Q$(r), i, {
attr: a,
className: o,
text: s
- }), el(e, a, (e) => {
+ }), tl(e, a, (e) => {
d.current = {
value: e,
epoch: c
@@ -70413,12 +70417,12 @@ function e1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = ms(Q$(n), r, { label: t });
- let i = hs(e.firstElementChild);
+ e.innerHTML = hs(Q$(n), r, { label: t });
+ let i = gs(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
let o = f.current;
- o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Xc(o, a), u?.(o);
+ o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Zc(o, a), u?.(o);
}), /* @__PURE__ */ (0, I.jsx)("div", {
id: e,
ref: d,
@@ -70436,14 +70440,14 @@ function ije({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
onSettle: o
}, (0, F.useLayoutEffect)(() => {
let i = s.current;
- i && !c.current && (i.insertAdjacentHTML("beforeend", nl({
+ i && !c.current && (i.insertAdjacentHTML("beforeend", rl({
value: r,
min: 0,
max: n,
step: 1,
label: t,
attr: `data-glow-dial="${e}"`
- })), c.current = rl(i.lastElementChild, {
+ })), c.current = il(i.lastElementChild, {
onInput: (e) => l.current.onStep(e),
onChange: (e) => l.current.onSettle(e)
}));
@@ -70497,11 +70501,11 @@ function oje({ host: e, spot: t, index: n, glow: r }) {
];
e && t && n && (t.addEventListener("click", () => {
n.style.width = `${t.offsetWidth}px`;
- }), fs(e, t, n));
+ }), ps(e, t, n));
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Wj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
+ r[t].color = Wj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), ss(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70780,7 +70784,7 @@ function r1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
function lje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
- className: q("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
+ className: J("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
...n
});
}
@@ -70976,13 +70980,13 @@ function yje({ current: e, onChange: t }) {
"aria-label": `当前快捷键 ${f1(e, d)}`,
children: f1(e, d)
}),
- g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(J, {
+ g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
onClick: () => t(null),
children: "恢复默认"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: n ? "secondary" : "primary",
size: "small",
"aria-describedby": "sfwShortcutDescription",
@@ -71023,12 +71027,12 @@ function xje({ host: e }) {
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
}, v = a.find(([e]) => _1(e) === o) ?? a[0], y = () => {
- h.current && ls(h.current), l(!1);
+ h.current && us(h.current), l(!1);
}, b = () => {
let e = h.current;
if (!e) return;
let t = !c;
- t ? cs(e) : ls(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
+ t ? ls(e) : us(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
}, x = (e) => {
if (e.key === "Escape") {
e.preventDefault(), y(), m.current?.focus();
@@ -71249,7 +71253,7 @@ function Aje(e = "") {
n >= 0 && n !== b1.tab && w1({ tab: n });
return;
}
- os(), x1 += 1, S1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ ss(), x1 += 1, S1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
let r = tEe();
w1({
open: !0,
@@ -71312,12 +71316,12 @@ function Fje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
w: e.offsetWidth,
h: e.offsetHeight
}, i = s.current;
- s.current = r, Wc(n, t ? i : null, r, "y");
+ s.current = r, Gc(n, t ? i : null, r, "y");
}, d = (0, F.useRef)(u);
d.current = u, (0, F.useLayoutEffect)(() => {
let e = a.current;
if (!e) return;
- Ac(e);
+ jc(e);
let t = new ResizeObserver(() => d.current(l.current[c.current], !1));
return t.observe(e), () => t.disconnect();
}, []), (0, F.useLayoutEffect)(() => {
@@ -71436,12 +71440,12 @@ function Ije({ host: e, view: t }) {
u.current = l, (0, F.useLayoutEffect)(() => {
let t = o.current;
if (!t || !r.current) return;
- s.current = Ro(t) ?? s.current, e.attached(r.current);
+ s.current = zo(t) ?? s.current, e.attached(r.current);
let n = () => u.current();
return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
}, [e]), (0, F.useLayoutEffect)(() => {
let e = c.current !== t.tab;
- c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && tc(a.current, "h2"), u.current();
+ c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && nc(a.current, "h2"), u.current();
}, [t.tab, t.epoch]), (0, F.useLayoutEffect)(() => {
s.current?.();
});
@@ -71634,10 +71638,10 @@ function Ije({ host: e, view: t }) {
function Lje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
- n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
+ n.querySelector("[data-icon-swap]") || (n.innerHTML = qs("arrow-up", "arrow-down", "a", {
className: "gselectmark",
iconClass: "gselectmark"
- }) + "<span data-sort-direction-label></span>"), qs(n, t ? "a" : "b");
+ }) + "<span data-sort-direction-label></span>"), Js(n, t ? "a" : "b");
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
@@ -71774,7 +71778,7 @@ function zje({ host: e, tab: t, epoch: n }) {
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = eo(t), i(), e.changed("javImage");
+ r.javImage = to(t), i(), e.changed("javImage");
}
})
}),
@@ -71851,13 +71855,13 @@ function Bje({ host: e, epoch: t }) {
}
function Vje({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = ZY(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
- s(t), Xc(c.current), a.mutate({ [n]: t }, {
+ s(t), Zc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
},
onError: (t) => e.failure(`保存${r}开关`, t),
onSettled: () => {
- s(null), Xc(c.current, !1);
+ s(null), Zc(c.current, !1);
}
});
};
@@ -72228,7 +72232,7 @@ function Qje(e) {
function $je({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
- t.kind === "catalog" && ec(e.scroll, "drawer");
+ t.kind === "catalog" && tc(e.scroll, "drawer");
}, [
e,
i,
@@ -72372,7 +72376,7 @@ function nMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
let d = (t) => {
if (t?.preventDefault(), !o.current || !s.current) return;
let n = !c;
- Bo(o.current, s.current, n), l(n);
+ Vo(o.current, s.current, n), l(n);
try {
sessionStorage.setItem(`peach.sidebar.group.${e}`, n ? "open" : "closed");
} catch {}
@@ -72460,7 +72464,7 @@ function iMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
};
if (_) {
let t = e.body.closest("details");
- e.body.classList.add("ui-fcollapse"), Wo(e.body, e.before, () => !!t?.open && !e.body.inert);
+ e.body.classList.add("ui-fcollapse"), Go(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
}, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(B1, {
@@ -72584,7 +72588,7 @@ function U1({ host: e, filters: t, commit: n = e.setDuration }) {
}
// src/diagnostics-skeleton.ts
function W1() {
- let e = (e) => Os({
+ let e = (e) => ks({
label: e,
variant: "secondary",
attrs: "disabled data-skeleton-action"
@@ -72741,7 +72745,7 @@ function uMe(e, t) {
}));
} catch {}
}
-var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, e0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], t0 = "disabled data-skeleton-action", n0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, r0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, i0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, a0 = (e = "3em") => i0(e, "24px"), o0 = () => i0("var(--icon-inline)", "var(--icon-inline)"), s0 = (e, t = "primary", n = "medium") => Os({
+var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, e0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], t0 = "disabled data-skeleton-action", n0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, r0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, i0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, a0 = (e = "3em") => i0(e, "24px"), o0 = () => i0("var(--icon-inline)", "var(--icon-inline)"), s0 = (e, t = "primary", n = "medium") => ks({
label: e,
variant: t,
size: n,
@@ -72752,7 +72756,7 @@ var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e
}, u0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${dMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? c0(n, i) : ""}</div></section>`, d0 = (e, t, n, r = "") => {
let i = `<div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>`;
return `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0">${r ? `<div class="flex min-w-0 items-center gap-3">${r}${i}</div>` : i}${n}</div>`;
-}, f0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => d0(e, t, `<span class="skeleton ${n}"></span>`), p0 = (e, t = "", n = "4em") => d0(e, t, n0(n)), m0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, h0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, g0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${r0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, _0 = (e) => `<div class="flex flex-col gap-1">${h0(e)}${As(n0("8em"))}</div>`, v0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${i0("16px", "16px")}${e}</span>`, y0 = (e) => `<span class="inline-flex items-center gap-1">${o0()}${e}</span>`, b0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, fMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), x0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${fMe.has(e) ? n0("100%") + n0("80%") + n0("6em") : n0("6em")}</dd></div>`).join("")}</dl>`, pMe = cMe;
+}, f0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => d0(e, t, `<span class="skeleton ${n}"></span>`), p0 = (e, t = "", n = "4em") => d0(e, t, n0(n)), m0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, h0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, g0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${r0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, _0 = (e) => `<div class="flex flex-col gap-1">${h0(e)}${js(n0("8em"))}</div>`, v0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${i0("16px", "16px")}${e}</span>`, y0 = (e) => `<span class="inline-flex items-center gap-1">${o0()}${e}</span>`, b0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Es("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, fMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), x0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${fMe.has(e) ? n0("100%") + n0("80%") + n0("6em") : n0("6em")}</dd></div>`).join("")}</dl>`, pMe = cMe;
function mMe(e = Z1("credentials")) {
let t = new Set(e0(e?.done, 64, String));
return pMe.map((e) => {
@@ -72779,32 +72783,32 @@ function S0() {
].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(hMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? n0("5em") : "" });
}
function C0() {
- let e = e0(Z1("indexers")?.open, 20, Q1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${n0("6em")}${n0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${g0("名称")}${g0("Torznab 地址")}${g0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${v0("启用")}${s0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ let e = e0(Z1("indexers")?.open, 20, Q1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Es("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${n0("6em")}${n0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${g0("名称")}${g0("Torznab 地址")}${g0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${v0("启用")}${s0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
return u0("资源搜索", l0(`<div class="flex min-w-0 flex-col gap-4">${b0("索引器连接帮助")}${e}</div>`), s0("添加索引器", "secondary") + s0("保存配置"));
}
function w0() {
let e = Z1("javBrowser"), t = Q1(e?.enabled);
return u0("浏览器添加 JAV", l0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${n0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${a0()}</div><p class="text-caption-1-regular text-text-secondary">${n0("70%")}</p><div class="flex flex-wrap items-center gap-2">${s0("重新检测", "secondary")}</div></div>`}${_0("浏览器添加的下载渠道")}${Q1(e?.ready) ? "" : m0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${g0("Peach 地址")}</div>`), (t ? s0("关闭浏览器添加", "secondary") : "") + s0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var T0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${h0(e)}${As(n0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${g0(`${e}地址`)}</div><div class="w-full sm:w-28">${g0(`${e}端口`)}</div></div>${b0("代理认证")}` : "") + "</div>";
+var T0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${h0(e)}${js(n0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${g0(`${e}地址`)}</div><div class="w-full sm:w-28">${g0(`${e}端口`)}</div></div>${b0("代理认证")}` : "") + "</div>";
function E0() {
let e = Z1("cloudProxy"), t = e0(e?.accounts, 12, (e) => Array.isArray(e) ? [Q1(e[0]), Q1(e[1])] : [!1, !1]), n = $1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${h0(y0(n0("6em")))}${m0(n0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${h0(y0(n0("8em")))}${m0(n0("50%"))}${T0("数据代理", e)}${T0("API 代理", t)}<div class="flex justify-end">${s0("保存配置")}</div></div>`).join("") : m0(n0("60%"));
return u0("CloudDrive 代理", l0(`${m0(Y1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), s0("重新读取", "secondary"));
}
var D0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, gMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
- <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${Os({
+ <div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${ks({
glyph: "folder-search",
variant: "secondary",
attrs: t0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${D0("来源", As(n0("6em")), "w-full @lg:w-60")}${D0("读取策略", As(n0("4em")), "w-full @lg:w-32")}${e > 1 ? D0("移到媒体库", As(n0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${D0("来源", js(n0("6em")), "w-full @lg:w-60")}${D0("读取策略", js(n0("4em")), "w-full @lg:w-32")}${e > 1 ? D0("移到媒体库", js(n0("4em")), "w-full @lg:w-48") : ""}</div></div>
</div>`, _Me = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
- <div data-library-head>${Os({
+ <div data-library-head>${ks({
label: "自动识别",
variant: "secondary",
attrs: t0
-})}${r0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(n0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${gMe(t).repeat(e)}<div class="flex">${Os({
+})}${r0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${js(n0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${gMe(t).repeat(e)}<div class="flex">${ks({
label: "添加文件夹",
variant: "secondary",
attrs: t0
@@ -72820,7 +72824,7 @@ function bMe(e = Z1("media")) {
};
}
function xMe() {
- let e = Z1("discovery"), t = Q1(e?.enabled), n = t && Q1(e?.cloud), r = n && Q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${As(n0("4em"), { prefix: "对应目录" })}${Os({
+ let e = Z1("discovery"), t = Q1(e?.enabled), n = t && Q1(e?.cloud), r = n && Q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${js(n0("4em"), { prefix: "对应目录" })}${ks({
glyph: "trash",
variant: "secondary",
attrs: t0
@@ -72892,10 +72896,10 @@ function kMe(e) {
}
}
function AMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${kMe(e)}</div></div></div>`;
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Af).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${kMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var j0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), M0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", N0 = (e, t, n) => `<span data-entity-layout="" class="${nU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${rU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${M0}>${j0(r)}</span>`).join("")}</span>`;
+var j0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Es(e, "size-4 shrink-0"), M0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", N0 = (e, t, n) => `<span data-entity-layout="" class="${nU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${rU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${M0}>${j0(r)}</span>`).join("")}</span>`;
function P0(e, t, { folders: n = !0 } = {}) {
let r = tG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? N0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${M0}>${j0("ri-folder-3-line")}</button>` : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${M0}>${j0("shuffle")}</button>${a}${N0("馆藏显示方式", r, [[
@@ -72917,7 +72921,7 @@ var F0 = 64, I0 = (e) => e.replace(/[&<>"]/g, (e) => ({
})[e]), jMe = (e) => e.repeat(F0), L0 = (e) => jMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
function MMe(e, t, n) {
let r = e.map((e) => `<a href="${I0(e.href)}" data-catalog-view="${I0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${I0(e.label)}</a>`).join(""), i = AG();
- return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${L0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${L0("studio")}</div>` : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(F0) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Es()}</span>` + (n ? P0(n.sorts, n.layout) : "") + "</div></div></div></div>";
+ return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${L0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${L0("studio")}</div>` : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(F0) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Ds()}</span>` + (n ? P0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.visibility.v1", NMe = {
@@ -73041,7 +73045,7 @@ var RMe = {
function zMe(e) {
let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${V0("100%")}</div>${W0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${BMe()}${tG() === "list" ? `<div data-catalog-table>${NJ(IMe())}</div>` : W0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${VMe()}${W0(e)}</section>`;
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, RMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Os("", t, RMe[e] || "筛选")}</div>${ks({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
@@ -73074,16 +73078,16 @@ function BMe() {
</div>`;
}
function VMe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${lM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${lM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Es(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${U0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
- ${Es()}
- <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${aW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${Ds()}
+ <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Es("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
+ ${aW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Es("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
@@ -73146,11 +73150,11 @@ function UMe() {
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
- <div class="flex flex-wrap items-center gap-2">${As("全部时间")}<span data-button-group data-split-button data-variant="primary">${Os({
+ <div class="flex flex-wrap items-center gap-2">${js("全部时间")}<span data-button-group data-split-button data-variant="primary">${ks({
glyph: "compass",
label: "读取浏览器历史",
attrs: q0
- })}${Os({
+ })}${ks({
glyph: "chevron-down",
attrs: q0
})}</span></div>
@@ -73200,7 +73204,7 @@ function WMe() {
"留最大",
"留最长",
"整组回收"
- ].map((e) => Os({
+ ].map((e) => ks({
variant: "secondary",
size: "small",
label: e,
@@ -73220,7 +73224,7 @@ function GMe() {
<div class="flex min-w-0 gap-4"><span class="${G0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${K0("80%")}</h3><p class="text-body-2-regular">${K0("60%")}</p></div>
</div>
- <footer class="flex justify-end">${Os({
+ <footer class="flex justify-end">${ks({
variant: "secondary",
size: "small",
label: "查看版本",
@@ -73228,7 +73232,7 @@ function GMe() {
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${Is("待升级")}
+ ${Ls("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
@@ -73242,51 +73246,51 @@ var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, KMe
"未看新作"
].map((e) => `<div class="${qMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Q0("3em")}</b></div>`).join("")}</div>`, JMe = (e = "") => DZ.some(([t]) => t === e) ? e : "list", t2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${DZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, n2 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, YMe = ({ table: e, sort: t, dir: n }) => {
let r = ur.find(([e]) => e === t)[1];
- return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${Q0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
+ return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${Q0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${ks({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
attrs: Z0
- })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Os({
+ })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${ks({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${Os({
+ })}${ks({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span><span class="flex flex-none items-center gap-2">${As(r, { prefix: "排序" })}${Os({
+ })}</span><span class="flex flex-none items-center gap-2">${js(r, { prefix: "排序" })}${ks({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}</span>${e ? "" : Os({
+ })}</span>${e ? "" : ks({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
attrs: Z0
})}</span></div></div>`;
-}, r2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
+}, r2 = () => `<span class="flex shrink-0 items-center gap-1">${ks({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
attrs: Z0
-})}${Os({
+})}${ks({
variant: "secondary",
size: "small",
glyph: "trash",
attrs: Z0
-})}</span>`, XMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${n2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Q0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${$0(14, 14)}</span>${$0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${Q0("113px")}</span>${r2()}</span></div>`, i2 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${$0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Q0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+})}</span>`, XMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${n2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Q0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${$0(14, 14)}</span>${$0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${Q0("113px")}</span>${r2()}</span></div>`, i2 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${$0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Q0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${ks({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
attrs: Z0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${$0(14, 14)}${$0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${$0(14, 14)}${$0(14, 14)}</span><span class="flex flex-none items-center gap-2">${ks({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
attrs: Z0
-})}${Os({
+})}${ks({
variant: "secondary",
size: "small",
glyph: "chevron-up",
@@ -73320,7 +73324,7 @@ var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, KMe
$0(48, 24),
Q0("113px"),
r2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, tNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Q0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${$0(204, 32)}</div></div>`, nNe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${Q0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, tNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Q0("111px")}</span><div data-toolbar-actions>${js(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${$0(204, 32)}</div></div>`, nNe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${Q0("120px")}</h3>${[
"72%",
"56%",
"64%",
@@ -73345,7 +73349,7 @@ function aNe(e, t = {}) {
n = zMe(e === "library" ? "discover" : e);
} else if (e === "/taste") n = UMe();
else if (e === "/subscriptions") n = rNe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = AMe(kf[e.split("/")[2]]);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in Af) n = AMe(Af[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
@@ -73353,7 +73357,7 @@ function aNe(e, t = {}) {
].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${Q0("8em")}</span><span class="text-caption-1-regular">${Q0("14em")}</span>${Q0("60%")}${Q0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Q0("6em")}</div></div></section>`).join("")}</div></div>`;
else if (e === "/duplicates") n = WMe();
else if (e === "/quality-goals") n = GMe();
- else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Os({
+ else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${ks({
label: "新建",
attrs: Z0
})}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${X0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
@@ -73393,7 +73397,7 @@ var l2 = (e) => ["follow-item", e], cNe = (e) => `/api/follow?item=${encodeURICo
async function d2(e, t) {
let n = await B(cNe(e), t);
for (let t of n.groups || []) {
- let r = la(t).find((t) => t.id === e);
+ let r = ua(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -73406,7 +73410,7 @@ async function d2(e, t) {
function dNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
- let n = la(t.group).find((t) => t.id === e);
+ let n = ua(t.group).find((t) => t.id === e);
if (n) return {
...t,
item: n
@@ -73415,9 +73419,9 @@ function dNe(e) {
return null;
}
async function f2(e, t) {
- let n = l2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
- queryKey: ia,
- queryFn: () => aa(t)
+ let n = l2(e.id), r = da(e.id), i = H.getQueryData(aa) ? null : H.fetchQuery({
+ queryKey: aa,
+ queryFn: () => oa(t)
}), a = r ? {
...r,
item: r.item
@@ -73428,7 +73432,7 @@ async function f2(e, t) {
}), await i;
}
function fNe(e, t, n, r) {
- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && va(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
+ 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 && ya(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,
@@ -73442,7 +73446,7 @@ function fNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var pNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), mNe = {
+var pNe = (e) => ua(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), mNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
@@ -73551,7 +73555,7 @@ var wNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", v2
"5.8em",
"9em",
"9em"
-], k2 = (e, t) => Os({
+], k2 = (e, t) => ks({
variant: e,
size: "small",
label: T2(t)
@@ -73561,12 +73565,12 @@ function DNe() {
<div class="${t$.stack}">${D2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${v2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${As(T2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${js(T2("3em"), {
prefix: "来源",
className: "w-fit min-w-25",
attrs: "aria-disabled=\"true\""
})}
- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${O2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${O2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs size-9">${Es("folder-search", "size-5 shrink-0")}</button></div>
</div>
<p class="text-caption-1-regular text-text-secondary">${y2}</p>
${O2(T2("12em"), { label: "文件名模板" })}${O2(T2("8em"), { label: "目录模板" })}
@@ -73576,7 +73580,7 @@ function DNe() {
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${b2}</p>
</div>
</div>
- <footer class="${n$.stack}">${Os({
+ <footer class="${n$.stack}">${ks({
label: "预览",
attrs: w2
})}</footer>
@@ -73585,7 +73589,7 @@ function DNe() {
var ONe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${r$("split")}"><div class="${t$.split}">${D2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${x2}</p></div>
- <footer class="${n$.split}">${Os({
+ <footer class="${n$.split}">${ks({
glyph: "git-compare",
label: "检查文件",
attrs: w2
@@ -73602,34 +73606,34 @@ var ONe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
"10em",
"8em"
].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${E2(16, 16)}${T2(e)}${E2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${n$.stack}">${Os({
+ <footer class="${n$.stack}">${ks({
glyph: "link",
label: "检查死链",
attrs: w2
})}</footer></section>
</section>`;
function j2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
- let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${n2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${a2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${n2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
+ let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${n2()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${a2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${n2()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Os("", "", n)}</div>` : "";
return `<div data-data-table-panel class="${yU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
<div data-responsive-toolbar><div data-toolbar-heading>${D2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${T2("4em")}</span></div>
- <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Os({
+ <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${ks({
variant: "secondary",
label: "显示列"
- })}${Os({
+ })}${ks({
variant: "secondary",
label: "重置列宽"
})}</div>
- <span class="flex flex-none items-center gap-2">${As("默认顺序", { prefix: "排序" })}${Os({
+ <span class="flex flex-none items-center gap-2">${js("默认顺序", { prefix: "排序" })}${ks({
variant: "secondary",
glyph: "arrow-up",
attrs: w2
})}</span></div></div>
<p class="text-body-2-regular text-text-secondary">${t}</p>
<div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>
- <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${T2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
+ <div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${T2("8em")}</span><div data-toolbar-actions>${js("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
var ANe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${T2(e)}</span><small class="text-caption-1-regular">${T2(t)}</small></span>`, jNe = {
@@ -73661,7 +73665,7 @@ var ANe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "操作",
width: 128,
- cell: Os({
+ cell: ks({
variant: "secondary",
size: "small",
label: "删除记录",
@@ -73716,7 +73720,7 @@ function M2(e) {
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
-var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
+var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => oc(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -73740,7 +73744,7 @@ var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
<section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, PNe = {
"/data-cleanup": () => mAe(),
- ...Object.fromEntries(Yf.map((e) => [e.path, () => M2(e.key)])),
+ ...Object.fromEntries(Xf.map((e) => [e.path, () => M2(e.key)])),
"/resource-sync": () => M2("resource-sync"),
"/review": () => NNe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
@@ -73763,12 +73767,12 @@ function P2(e, { followLayout: t, followSort: n, followDir: r }) {
var F2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function I2(e, t) {
let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = F2(t);
- r && r === n || (e.innerHTML = t, pc(e));
+ r && r === n || (e.innerHTML = t, mc(e));
}
// src/react/components/related-section.tsx
function L2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
- e && (pc(e), t(e));
+ e && (mc(e), t(e));
}, [t]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
...s,
@@ -73818,7 +73822,7 @@ function z2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
if ((0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
if (!e) return;
- let t = Ac(e, { drag: !0 }), n = () => {
+ let t = jc(e, { drag: !0 }), n = () => {
let n = e.querySelector("[aria-current=\"true\"]");
if (n && e.clientWidth) {
let t = n.getBoundingClientRect(), r = e.getBoundingClientRect(), i = parseFloat(getComputedStyle(e).paddingLeft);
@@ -73836,7 +73840,7 @@ function z2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]), (0, F.useLayoutEffect)(() => {
let e = a.current, t = e?.querySelector("[data-follow-image-dots]"), n = e?.closest("[data-stage-media]");
if (!e || !t) return;
- let i = Ac(t, { drag: !0 }), o = () => {
+ let i = jc(t, { drag: !0 }), o = () => {
let a = t.querySelector("[aria-current=\"true\"]");
if (a && t.clientWidth) {
let e = a.getBoundingClientRect(), n = t.getBoundingClientRect(), r = parseFloat(getComputedStyle(t).paddingLeft);
@@ -73946,12 +73950,12 @@ var INe = (e, t, n) => [
n
];
function B2(e, t, n, r) {
- let i = new Set((t.group ? la(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
+ let i = new Set((t.group ? ua(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
- let t = la(e);
- return t.some((e) => i.has(e.id) || a.has(e.id)) || !ha(e).has(n === "images" ? "image" : "video") || ga(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
+ let t = ua(e);
+ return t.some((e) => i.has(e.id) || a.has(e.id)) || !ga(e).has(n === "images" ? "image" : "video") || _a(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
}).map((e, t) => {
- let r = ga(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
+ let r = _a(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
return {
group: e,
order: t,
@@ -73963,9 +73967,9 @@ function B2(e, t, n, r) {
var LNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
function RNe(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
- for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
+ for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(_a(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !LNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = _a(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !LNe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
return {
reasons: a && c?.author_key === a ? ["同创作者"] : [],
tags: l
@@ -73974,13 +73978,13 @@ function RNe(e, t, n) {
}
async function zNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
- ..._a(i),
+ ...va(i),
status: "new",
media: t,
sort: "rand",
seed: e.item.id
}, o = [], s = async (e, t) => {
- let n = await B(ta({
+ let n = await B(na({
...a,
author: e
}, t), r);
@@ -74051,7 +74055,7 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}, e.k)),
- C ? /* @__PURE__ */ (0, I.jsx)(J, {
+ C ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"data-tags-more": "",
@@ -74078,7 +74082,7 @@ function H2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null,
m.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => void m.refetch(),
children: "立即重试"
@@ -74114,7 +74118,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
let [e, t] = [c.current, l.current];
if (!e || !t) return;
"showPopover" in t && t.setAttribute("popover", "manual");
- let n = fs(e.parentElement, e, t);
+ let n = ps(e.parentElement, e, t);
S.current = n;
let r = () => {
let e = x.current;
@@ -74216,7 +74220,7 @@ function VNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"data-tag-search": "",
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Bs("正在读取标签") }
+ dangerouslySetInnerHTML: { __html: Vs("正在读取标签") }
}) : /* @__PURE__ */ (0, I.jsx)(V2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
@@ -74284,9 +74288,9 @@ function HNe({ item: e, label: t, actions: n }) {
"follow",
"tag-management"
].includes(String(e.queryKey[0])) }), a = (e) => {
- da(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
+ fa(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
if (!t) return t;
- let n = la(e.group).find((e) => e.id === t.item.id);
+ let n = ua(e.group).find((e) => e.id === t.item.id);
return n ? {
...t,
item: n,
@@ -74347,8 +74351,8 @@ function WNe(e) {
queryKey: l2(t),
queryFn: ({ signal: e }) => d2(t, e)
}), i = Ft({
- queryKey: ia,
- queryFn: ({ signal: e }) => aa(e)
+ queryKey: aa,
+ queryFn: ({ signal: e }) => oa(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
return r.data ? /* @__PURE__ */ (0, I.jsx)(qNe, {
...e,
@@ -74379,7 +74383,7 @@ function KNe({ onBack: e }) {
onClick: (t) => {
t.target.closest("[data-note-action]") && e();
},
- dangerouslySetInnerHTML: { __html: zs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
+ dangerouslySetInnerHTML: { __html: Bs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
var G2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -74578,7 +74582,7 @@ function J2(e) {
}, [e]);
}
function XNe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = va(e), a = J2(n);
+ let i = ya(e), a = J2(n);
return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: "collection",
"data-follow-queue": "",
@@ -74902,7 +74906,7 @@ function QNe({ text: e }) {
lang: II(e),
"data-clamped": n ? void 0 : "",
children: e
- }), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), i || n ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
size: "small",
"data-follow-summary-toggle": "",
@@ -74922,7 +74926,7 @@ function $Ne(e, t, n) {
...t.item,
status: e
}
- }), fa(r, e);
+ }), pa(r, e);
}, d = (e) => {
c(xn(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = It({
@@ -74960,7 +74964,7 @@ function $Ne(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = H.getQueryData(i);
- o && da(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && fa(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
@@ -75013,7 +75017,7 @@ function X2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
eL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + _o({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -75025,7 +75029,7 @@ function X2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-id-face": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e === "studio" ? $n(t.name, 2) : er(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: po(t.name, "icon", t.logo_version),
+ src: mo(t.name, "icon", t.logo_version),
alt: "",
width: 128,
height: 128,
@@ -75117,14 +75121,14 @@ function $2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
image: String(t - 1),
thumbnail: r
});
- let c = t < 0 ? lo(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
+ let c = t < 0 ? uo(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
return r ? i === c ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: c,
alt: "",
onError: () => a(c)
}) : i === c ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => {
a(""), s((e) => e + 1);
@@ -75204,7 +75208,7 @@ function a4({ id: e, onOpened: t }) {
localStorage.setItem(r4, e);
} catch {}
}
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
@@ -75214,7 +75218,7 @@ function a4({ id: e, onOpened: t }) {
})]
}),
f.error || c ? /* @__PURE__ */ (0, I.jsx)(NH, { children: f.error || c }) : null,
- c ? /* @__PURE__ */ (0, I.jsx)(J, {
+ c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !!f.busy,
onClick: () => {
@@ -75297,10 +75301,10 @@ function iPe({ state: e, size: t = "md", shape: n = "pill" }) {
let r = rPe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: J("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? J("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, I.jsx)("span", {
- className: q("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, I.jsx)("span", { className: q("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: J("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, I.jsx)("span", { className: J("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") })
})
});
}
@@ -75308,7 +75312,7 @@ function o4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
return /* @__PURE__ */ (0, I.jsx)(rhe, {
ref: i,
...a,
- className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
+ className: (t) => J("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iPe, {
state: e,
size: n,
@@ -75377,7 +75381,7 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : yOe(e, no);
+ } : yOe(e, ro);
c(HZ(t, e, null));
}
let m = f.isPending;
@@ -75417,7 +75421,7 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
children: /* @__PURE__ */ (0, I.jsx)(qZ, {
src: t,
- aspect: l ? no : null,
+ aspect: l ? ro : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
@@ -75432,7 +75436,7 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, I.jsx)(o4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(HZ(s, a, no));
+ u(e), e && s && a && c(HZ(s, a, ro));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75440,14 +75444,14 @@ function cPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
})
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
- children: [/* @__PURE__ */ (0, I.jsx)(J, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !s || !a,
...dV(m),
onClick: () => {
@@ -75653,7 +75657,7 @@ function dPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"aria-label": "正在读取样图",
className: "relative block h-12 w-20 skeleton-sheen"
- }) : /* @__PURE__ */ (0, I.jsx)(J, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(f.isFetching),
title: f.data?.message || xn(f.error),
@@ -75781,12 +75785,12 @@ function pPe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(l4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(l4, { html: ko(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(l4, { html: jo(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(l4, { html: Mo(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, I.jsx)("i", {
@@ -75810,7 +75814,7 @@ function pPe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? PP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? PP(i.part_label) : No(i, n.tagLabel)
})]
}, i.id);
})
@@ -75862,7 +75866,7 @@ function hPe(e, t, n) {
},
remove: (e) => {
let r = s;
- ll({
+ ul({
title: "移出播放列表",
body: "这个视频将从播放列表移除,视频文件保留。",
confirmLabel: "移出播放列表",
@@ -76121,7 +76125,7 @@ function _Pe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"data-cover-crop-host": "",
children: /* @__PURE__ */ (0, I.jsx)(sPe, {
code: e.cover_key || e.code || "",
- coverUrl: lo(e),
+ coverUrl: uo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
@@ -76160,7 +76164,7 @@ function vPe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void a(),
- dangerouslySetInnerHTML: { __html: r === "reveal" ? Bs("正在定位") : R("folder-open") }
+ dangerouslySetInnerHTML: { __html: r === "reveal" ? Vs("正在定位") : R("folder-open") }
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-sync": e,
@@ -76242,7 +76246,7 @@ function bPe({ item: e, actions: t }) {
})]
})
})]
- }, "unowned") : s(ho(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(J, {
+ }, "unowned") : s(go(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(Y, {
variant: "secondary",
size: "small",
id: "castMore",
@@ -76357,7 +76361,7 @@ function CPe({ item: e, open: t, write: n }) {
"aria-label": "提交喜爱理由",
...n.busyAttrs("preference"),
onClick: () => n.preference({ reason: r }),
- dangerouslySetInnerHTML: { __html: o ? `${Bs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
+ dangerouslySetInnerHTML: { __html: o ? `${Vs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
})]
})]
});
@@ -76683,7 +76687,7 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
children: [/* @__PURE__ */ (0, I.jsxs)("h4", {
className: "text-body-medium text-text-primary",
children: ["资源链接", _.data?.items.length ? ` · ${_.data.items.length}` : ""]
- }), /* @__PURE__ */ (0, I.jsx)(J, {
+ }), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
leadingIcon: BB,
@@ -76785,7 +76789,7 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
rel: "noopener noreferrer",
children: "链接来源"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
leadingIcon: Oge,
@@ -76793,7 +76797,7 @@ function x4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
onClick: () => b(e),
children: "复制链接"
}),
- e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
+ e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
size: "small",
leadingIcon: v ? RH(v.key) : bge,
@@ -77009,9 +77013,9 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
children: /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-tag": e.name,
- title: Ll(e.name),
+ title: Rl(e.name),
onClick: () => n.openTag(e.name),
- children: Ll(e.name)
+ children: Rl(e.name)
})
}, e.name))
}) : null,
@@ -77023,7 +77027,7 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
}) : null,
t.message ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(a),
onClick: i,
@@ -77043,7 +77047,7 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
rel: "noopener noreferrer",
children: "作品来源"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
@@ -77051,7 +77055,7 @@ function IPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: m,
children: d ? "取消想要" : "想要"
}),
- /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
onClick: () => u({
code: t.code,
@@ -77202,7 +77206,7 @@ function zPe({ src: e }) {
"data-jav-video": "",
children: n ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => {
r(!1), a((e) => e + 1);
@@ -77304,7 +77308,7 @@ function BPe({ code: e, count: t, released: n }) {
}, e.id)),
d ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- action: /* @__PURE__ */ (0, I.jsx)(J, {
+ action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(c.isFetching),
onClick: () => {
@@ -77317,7 +77321,7 @@ function BPe({ code: e, count: t, released: n }) {
tone: "neutral",
children: "暂无评论"
}) : null,
- !d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ !d && l.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(c.isFetching),
onClick: () => {
@@ -77325,7 +77329,7 @@ function BPe({ code: e, count: t, released: n }) {
},
children: "刷新评论"
}) : null,
- c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
+ c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
...dV(c.isFetchingNextPage),
onClick: () => {
@@ -77510,7 +77514,7 @@ function Y4() {
let e = k4?.player;
if (!e || e.isDisposed() || !M4) return;
let t = e.paused();
- M4.play.setAttribute("aria-label", t ? "播放" : "暂停"), M4.play.querySelector("[data-icon-swap]") || (M4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(M4.play, t ? "b" : "a");
+ M4.play.setAttribute("aria-label", t ? "播放" : "暂停"), M4.play.querySelector("[data-icon-swap]") || (M4.play.innerHTML = qs("player-pause", "player-play", t ? "b" : "a")), Js(M4.play, t ? "b" : "a");
}
function X4() {
let e = k4?.player;
@@ -77909,7 +77913,7 @@ function oFe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(SD, {
+ children: /* @__PURE__ */ (0, I.jsx)(TD, {
getContainer: () => o2(t.current),
children: i
})
@@ -78055,7 +78059,7 @@ async function cFe(e) {
await a.catch(() => {});
return;
}
- o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), c2(s);
+ o || mc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), c2(s);
try {
await a;
} catch {
@@ -78066,7 +78070,7 @@ async function cFe(e) {
u3 = {
...u3,
phase: c ? "content" : "reveal"
- }, y3(), c || sFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, y3(), c || sFe(s, n), nc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
@@ -78090,12 +78094,12 @@ async function uFe(e, t) {
if (r.signal.aborted) return;
}
if (n !== p3 || !u3 || E3(e.kind) !== t) return;
- e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN), Nl(t), VM(), u3 = {
+ e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN), Pl(t), VM(), u3 = {
...u3,
request: e,
content: i,
phase: "content"
- }, y3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, y3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), nc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
@@ -78114,7 +78118,7 @@ function dFe() {
function D3({ miniplayer: e = !0 } = {}) {
if (p3++, m3?.abort(), m3 = null, U4(e), !u3) return;
let t = _3();
- t && Nl(t), VM(), c2(null), t?.open && t.close(), u3 = null, h3 = !1, g3 = !1, y3(), B4(null), document.body.removeAttribute("data-detail-open");
+ t && Pl(t), VM(), c2(null), t?.open && t.close(), u3 = null, h3 = !1, g3 = !1, y3(), B4(null), document.body.removeAttribute("data-detail-open");
let n = d3;
d3 = null;
let r = () => {
@@ -78145,7 +78149,7 @@ function fFe(e) {
}, y3());
}
function pFe() {
- let e = UPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, v3().player.settings().javImage) : "";
+ let e = UPe(), t = e?.kind === "item" ? e.item : null, n = t ? Ao(t, v3().player.settings().javImage) : "";
if (!n) return;
let r = H4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
@@ -78873,7 +78877,7 @@ function c6(e, t) {
category: n.get("category") || "all"
};
}
-var l6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
+var l6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78884,24 +78888,24 @@ var l6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
}), kIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", OIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+ <span class="ml-auto">${el("tag-view", "标签视图", OIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
function AIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = o6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? wIe : c ? CIe : SIe, a) : "";
+ let o = o6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? el("people-layout", o + "索引版式", e === "series" ? wIe : c ? CIe : SIe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
- ${Es("default")}
- ${e === "tags" ? Os({
+ ${Ds("default")}
+ ${e === "tags" ? ks({
variant: "ghost",
glyph: "pencil",
attrs: "data-tag-mode data-skeleton-action disabled tabindex=\"-1\" aria-label=\"管理标签\""
}) : ""}
- <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
+ <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Os("", t, "过滤" + o)}</div>
</div>
${e === "tags" ? l6(EIe, n, "词表") : e === "performers" || e === "creators" ? l6(DIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? l6(TIe, e, "资料类型") : ""}
${e === "tags" ? kIe(r) : ""}
${e === "performers" && n !== "online" ? oDe(i) : ""}
- ${oc({
+ ${sc({
kind: e,
layout: a,
mode: r
@@ -78910,14 +78914,14 @@ function AIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
var jIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function u6(e, t, n) {
let r = AIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== jIe(r) && (e.innerHTML = r, pc(e));
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== jIe(r) && (e.innerHTML = r, mc(e));
}
// src/react/router/pages/index-entity.tsx
-var MIe = () => pu, NIe = () => Ql, d6 = () => document.getElementById("index");
+var MIe = () => mu, NIe = () => $l, d6 = () => document.getElementById("index");
function f6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, MIe);
- ef();
- let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
+ let r = (0, F.useSyncExternalStore)(wu, MIe);
+ tf();
+ let i = Vf(Pp.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -78941,8 +78945,8 @@ function f6(e, t, n = {}) {
r !== 0 && queueMicrotask(() => {
let t = a.current;
if (!t.mounted) return;
- let n = t.epoch !== e || t.opens !== pu, r = t.opens !== pu;
- if (t.epoch = e, t.opens = pu, Bf(Np.navigation.location.pathname)) {
+ let n = t.epoch !== e || t.opens !== mu, r = t.opens !== mu;
+ if (t.epoch = e, t.opens = mu, Vf(Pp.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -78967,31 +78971,31 @@ async function PIe(e, t, n, r) {
let i = d6();
if (!i) return;
let a = `/${t}`, o = c6(t, n), s = s6(Qj().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), u6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
+ c || (e.surfaceChanged("index", a), u6(i, o, s), ym(r, i, { pending: !0 })), await bp(a, {
...o,
layout: s,
- selectMode: Ql,
+ selectMode: $l,
configurable: !!e.configurable?.()
}, {
container: i,
isCurrent: r,
reuse: c
- }) && r() && (e.surfaceShown?.("index", a), vm(r, i));
+ }) && r() && (e.surfaceShown?.("index", a), ym(r, i));
}
function FIe(e) {
- let t = d6(), n = t ? mp(t) : null;
+ let t = d6(), n = t ? hp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
function IIe({ epoch: e }) {
- let t = (0, F.useContext)(KW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+ let t = (0, F.useContext)(KW), n = tf(), r = n.pathname.split("/").filter(Boolean)[0];
return f6(e, (e, i) => {
t && PIe(t, r, n.search, i);
}, { shown: () => FIe(`/${r}`) }), null;
}
function LIe() {
- let e = GW(), t = (0, F.useSyncExternalStore)(Cu, NIe), n = (0, F.useRef)(t);
+ let e = GW(), t = (0, F.useSyncExternalStore)(wu, NIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(d6(), { selectMode: t }));
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && Sp(d6(), { selectMode: t }));
}, [t]), /* @__PURE__ */ (0, I.jsx)(IIe, { epoch: e }, e);
}
function RIe(e) {
@@ -79023,7 +79027,7 @@ function zIe(e) {
}, p6.set(e, t)), t;
}
function m6() {
- let e = d6(), t = e ? mp(e) : null;
+ let e = d6(), t = e ? hp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
async function BIe(e, t, n, r, i, a, o) {
@@ -79040,9 +79044,9 @@ async function BIe(e, t, n, r, i, a, o) {
body: d.content.querySelector("[data-entity-body]>.peach-react")
}, h = {
...t.props(l, u, i),
- ...hm("entity")
+ ...gm("entity")
};
- mm("entity", {
+ hm("entity", {
seed: h.seed,
revision: h.revision,
jav: h.jav
@@ -79052,7 +79056,7 @@ async function BIe(e, t, n, r, i, a, o) {
hosts: m,
card: zIe(e),
resolvedEntity: o,
- restoreNavigation: gm(),
+ restoreNavigation: _m(),
actions: {
...h.actions,
javContext: (e) => {
@@ -79060,21 +79064,21 @@ async function BIe(e, t, n, r, i, a, o) {
}
}
};
- await yp(`/${c}/*`, g, {
+ await bp(`/${c}/*`, g, {
container: s,
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && m6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
+ }) && a() && m6() && (e.surfaceShown?.("entity", r), ym(a, m.filter));
}
function VIe({ target: e }) {
- let t = (0, F.useContext)(KW), n = GW(), r = ef();
+ let t = (0, F.useContext)(KW), n = GW(), r = tf();
return f6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
if (n || !m6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- vm(i, d6(), { pending: !0 });
+ ym(i, d6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -79085,55 +79089,55 @@ function VIe({ target: e }) {
e.name
],
queryFn: ({ signal: e }) => B(`/api/entity?${o}`, e),
- staleTime: gm() ? Infinity : 0
+ staleTime: _m() ? Infinity : 0
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- Pp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ Fp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
});
return;
}
if (!s?.id || s.error) {
- a.missing(e.kind), vm(i);
+ a.missing(e.kind), ym(i);
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, d6()?.querySelector("[data-entity-filter]")) : BIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? ym(i, d6()?.querySelector("[data-entity-filter]")) : BIe(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : Fp(l + r.search + r.hash, {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
});
})();
}, { shown: () => m6() && !d6()?.hidden }), null;
}
function HIe() {
- let e = RIe(ef().pathname);
+ let e = RIe(tf().pathname);
return e ? /* @__PURE__ */ (0, I.jsx)(VIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var h6 = () => document.getElementById("stats"), UIe = () => yu;
+var h6 = () => document.getElementById("stats"), UIe = () => bu;
async function WIe(e, t) {
let n = h6(), r = e.follow;
if (!n || !r) return;
- let i = hm("follow"), a = r.refresh(i), o = r.props();
- if (mm("follow", {
+ let i = gm("follow"), a = r.refresh(i), o = r.props();
+ if (hm("follow", {
view: o.view,
seed: o.seed,
revision: o.revision
}), a) return;
- let s = H.getQueryData(ra(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), I2(n, r.skeleton()), vm(t, n, { pending: !0 })), await yp("/follow", o, {
+ let s = H.getQueryData(ia(o.view, o.revision).queryKey) !== void 0;
+ s || (e.surfaceChanged("follow", "/follow"), I2(n, r.skeleton()), ym(t, n, { pending: !0 })), await bp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
- }), t() && vm(t, n.querySelector("[data-filter-frame]"));
+ }), t() && ym(t, n.querySelector("[data-filter-frame]"));
}
function GIe() {
- let e = h6(), t = e ? mp(e) : null;
+ let e = h6(), t = e ? hp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
function KIe() {
@@ -79143,12 +79147,12 @@ function KIe() {
}, {
shown: GIe,
onCovered: () => {
- Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ Pp.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
function g6(e) {
- let t = e ? mp(e) : null;
+ let t = e ? hp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
async function qIe(e, t) {
@@ -79157,18 +79161,18 @@ async function qIe(e, t) {
followLayout: "",
followSort: "",
followDir: ""
- })), vm(t, n, { pending: !0 }), await yp("/playlists", { revision: yu }, {
+ })), ym(t, n, { pending: !0 }), await bp("/playlists", { revision: bu }, {
container: n,
isCurrent: t
- }), t() && vm(t));
+ }), t() && ym(t));
}
function JIe() {
- let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, UIe), n = (0, F.useRef)(t);
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(wu, UIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = h6();
- g6(e) && xp(e, { revision: t });
+ g6(e) && Sp(e, { revision: t });
}, [t]), f6(GW(), (t, n) => {
e && qIe(e, n);
}, { shown: () => {
@@ -79178,7 +79182,7 @@ function JIe() {
}
// src/react/router/pages/immerse.tsx
function YIe() {
- let e = new URLSearchParams(Np.navigation.location.search).get("id");
+ let e = new URLSearchParams(Pp.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
function XIe() {
@@ -79191,7 +79195,7 @@ function ZIe() {
return /* @__PURE__ */ (0, I.jsx)(XIe, {}, GW());
}
// src/react/router/pages/managed.tsx
-var QIe = () => pu > 0, _6 = () => (0, F.useSyncExternalStore)(Cu, QIe), v6 = () => Qj().value.followLayout === "table" ? "table" : "default", y6 = () => new URLSearchParams(window.location.search);
+var QIe = () => mu > 0, _6 = () => (0, F.useSyncExternalStore)(wu, QIe), v6 = () => Qj().value.followLayout === "table" ? "table" : "default", y6 = () => new URLSearchParams(window.location.search);
function b6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
@@ -79215,12 +79219,12 @@ async function $Ie(e, t) {
}
if (e === "/stats") return {};
if (e === "/taste") {
- let e = fu;
+ let e = pu;
return W({ cameFromSetup: !1 }), { onboarding: e };
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && W({ configurationRequestedSection: "网络与访问" });
- let t = y6().get("section") || uu || Af(e);
+ let t = y6().get("section") || du || jf(e);
return t ? { section: t } : {};
}
if (e === "/review") {
@@ -79245,17 +79249,17 @@ async function $Ie(e, t) {
return {};
}
async function eLe(e, t, n) {
- let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
+ let r = Pp.navigation.seq, i = () => n.live && Pp.navigation.seq === r;
if (e === "/jav" && aU(y6().get("tab")) === "library") {
- Np.replace(Uve(window.location.search));
+ Pp.replace(Uve(window.location.search));
return;
}
if (e === "/subscriptions" && y6().get("tab") === "wants") {
- Pp("/jav?tab=wants", { replace: !0 });
+ Fp("/jav?tab=wants", { replace: !0 });
return;
}
if (e === "/subscriptions" && y6().get("tab") === "source") {
- Pp("/settings/subscriptions", { replace: !0 });
+ Fp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
@@ -79264,7 +79268,7 @@ async function eLe(e, t, n) {
followLayout: v6(),
followSort: y6().get("sort") || "",
followDir: y6().get("dir") || ""
- })), vm(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
+ })), ym(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
...U,
creator: "",
studio: "",
@@ -79281,24 +79285,24 @@ async function eLe(e, t, n) {
} }), t.clearSearch());
let o = await $Ie(e, n);
if (!o) return;
- let s = await yp(e, o, {
+ let s = await bp(e, o, {
container: a,
isCurrent: i
});
- if (s && (n.revision = mp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = hp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && Pp("/data-cleanup#libraryProcessing", {
+ i() && Fp("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : vm(i);
+ }) : ym(i);
}
}
function S6({ path: e }) {
let t = GW();
- ef();
- let n = Bf(Np.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
+ tf();
+ let n = Vf(Pp.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
return /* @__PURE__ */ (0, I.jsx)(tLe, {
@@ -79309,7 +79313,7 @@ function S6({ path: e }) {
function tLe({ path: e, covered: t }) {
let n = (0, F.useContext)(KW), r = _6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
- e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
+ e.startsWith("/settings/") && Sp(document.getElementById("stats"), { section: jf(e) });
}, [e]), (0, F.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -79328,11 +79332,11 @@ function tLe({ path: e, covered: t }) {
function nLe() {
let e = _6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
- if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
+ if (!e || t.current || Vf(Pp.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && Pp("/data-cleanup/resource-sync", { replace: !0 });
+ n && Fp("/data-cleanup/resource-sync", { replace: !0 });
}), () => {
n = !1;
};
@@ -79387,7 +79391,7 @@ var D6 = T6(() => import("./peach-app.jav-page-CvsnSwyE.js")), O6 = T6(() => imp
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), I6 = T6(() => import("./peach-app.activity-page-B3CjUhvF.js")), L6 = T6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), R6 = T6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+}), I6 = T6(() => import("./peach-app.activity-page-B3CjUhvF.js")), L6 = T6(() => import("./peach-app.follow-manage-page-CePb_ntJ.js")), R6 = T6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
function oLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
@@ -79412,7 +79416,7 @@ var z6 = (e) => ({
});
}
}), B6 = {
- ...Yf.reduce((e, t) => (e[t.path] = {
+ ...Xf.reduce((e, t) => (e[t.path] = {
element: /* @__PURE__ */ (0, I.jsx)(S6, { path: t.path }),
prefetch: (e, n) => E6(j6, XEe(t.key, n)),
page: (e, n) => {
@@ -79442,7 +79446,7 @@ var z6 = (e) => ({
page: (e, t) => {
let { StatsPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
- tagLabel: Ll,
+ tagLabel: Rl,
onTag: t.openTag
});
}
@@ -79538,7 +79542,7 @@ var z6 = (e) => ({
},
"/subscriptions": {
element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/subscriptions" }),
- prefetch: (e, t) => E6(L6, Ri(t)),
+ prefetch: (e, t) => E6(L6, zi(t)),
page: (e, t) => {
let { FollowManagePage: n } = L6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79567,7 +79571,7 @@ var z6 = (e) => ({
},
"/follow": {
element: /* @__PURE__ */ (0, I.jsx)(KIe, {}),
- prefetch: (e, t) => oa(e, t),
+ prefetch: (e, t) => sa(e, t),
page: (e) => /* @__PURE__ */ (0, I.jsx)(iOe, { ...e })
}
}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
@@ -79580,7 +79584,7 @@ var z6 = (e) => ({
exitSelectMode: t.exitSelectMode,
personAvatar: t.personAvatar,
authorAvatar: t.authorAvatar,
- tagLabel: Ll,
+ tagLabel: Rl,
openEntity: t.openEntity,
showTags: t.showIndexTags,
openFollowAuthor: t.openFollowAuthor,
@@ -79695,11 +79699,11 @@ function fLe(e) {
};
}
function pLe(e) {
- return r8 && (i8 = e, r8(e), pp(Promise.resolve(uLe)), aLe()), Promise.resolve();
+ return r8 && (i8 = e, r8(e), mp(Promise.resolve(uLe)), aLe()), Promise.resolve();
}
async function s8(e, t, n = (e) => e) {
let r = a8;
- if (t.isConnected || o8.add(t), !await yp(e, {}, {
+ if (t.isConnected || o8.add(t), !await bp(e, {}, {
container: t,
resident: !0,
isCurrent: () => !!r8 && r === a8,
@@ -79778,7 +79782,7 @@ function xLe() {
error: R("circle-alert")
}), k8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), k8.toastSeq = 0, k8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
let a = `toast-${++k8.toastSeq}`, o = (e, t, n, r) => {
- Qo(i || (t ? "error" : "success")), O8(L("#toasts"), {
+ $o(i || (t ? "error" : "success")), O8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -79788,7 +79792,7 @@ function xLe() {
action: r && !t ? {
label: r.label,
run: (e) => {
- Xc(e), r.run();
+ Zc(e), r.run();
}
} : null
});
@@ -80137,23 +80141,23 @@ function V8({ kind: e, q: t, scope: n, view: r, category: i }) {
function H8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
- html: _o(e.k, r ? {
+ html: vo(e.k, r ? {
id: r,
has_image: e.has_image,
image_version: e.image_version,
logo_version: e.logo_version,
avatar_stand_in: e.avatar_stand_in
} : null, e.has_avatar && !i ? e.rep : null, t, e.mark, e.has_logo ? e.k : "", i && n ? "large" : "ring", i ? null : e.avatar_focus, !0),
- face: yo(e.avatar_focus)
+ face: bo(e.avatar_focus)
};
}
function U8(e) {
- let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Va({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
+ let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Ha({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
function ILe(e) {
let t = (t) => {
- e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
+ e.adoptFollowView(t), e.hideIndex(), e.openPage(Aa(t));
};
return {
route(t, { replace: n = !1 } = {}) {
@@ -80162,10 +80166,10 @@ function ILe(e) {
personAvatar: H8,
authorAvatar: U8,
openFollowAuthor(n) {
- t(Aa(e.followView(), n));
+ t(ja(e.followView(), n));
},
openFollowTag(n) {
- t(ja(e.followView(), n));
+ t(Ma(e.followView(), n));
}
};
}
@@ -80260,13 +80264,13 @@ function RLe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
- r && (Xc(r), r.innerHTML = `${Bs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";
+ r && (Zc(r), r.innerHTML = `${Vs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";
try {
await e.request(t), n.textContent = "", e.success();
} catch (t) {
n.textContent = e.failureText(t);
} finally {
- r && (Xc(r, !1), r.innerHTML = i);
+ r && (Zc(r, !1), r.innerHTML = i);
}
};
}
@@ -80440,7 +80444,7 @@ function WLe(e) {
}
// src/react/entity-page/entity-portrait.ts
function GLe(e, t) {
- let n = e === "studio" || e === "agency", r = t.id ? go({
+ let n = e === "studio" || e === "agency", r = t.id ? _o({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -80453,12 +80457,12 @@ function GLe(e, t) {
logoVariant: "large",
alt: z(t.canonical_name),
lazy: !1,
- style: n ? "" : bo(t.avatar_focus),
+ style: n ? "" : xo(t.avatar_focus),
focus: n ? null : t.avatar_focus,
dropStyle: !0,
thumb: !1
}) : "", i = e === "creator" ? t.follow : null;
- return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
+ return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ha({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
function KLe(e) {
@@ -80481,7 +80485,7 @@ function KLe(e) {
// src/card-art/feed-identity.ts
function qLe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
- let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
+ let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : vo(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
}).join("");
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
@@ -80504,7 +80508,7 @@ var Z8 = {
HERO_WIDE_PX: void 0
};
function Q8(e) {
- return e.has_cover ? So(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Hs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : So(e, "big").replace(/ src="[^"]*"/, ` src="${z(fo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
+ return e.has_cover ? Co(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Us("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Co(e, "big").replace(/ src="[^"]*"/, ` src="${z(po(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
function JLe(e) {
let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = Q8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? zI({
@@ -80550,10 +80554,10 @@ function XLe() {
}
}
function n5(e) {
- !e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Z8.feedNewSkeletonHtml())));
+ !e || gp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Z8.feedNewSkeletonHtml())));
}
function ZLe(e, t) {
- return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
+ return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Bs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
actionLabel: "配置连接方式",
@@ -80565,14 +80569,14 @@ function r5(e, t = "") {
return ZLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(JLe).join("")}${r}</div>`;
}
function i5(e) {
- e && (c9(e), Z.appSettings.feedAutoScroll && Bc(e));
+ e && (l9(e), Z.appSettings.feedAutoScroll && Vc(e));
}
function a5(e) {
return jn(e) && e !== "/junk-files";
}
function QLe() {
let e = L("#feedNew");
- hp(e) ? e.hidden = X.homeHasFeed !== !0 : (n5(e), yp("feed-new", {
+ gp(e) ? e.hidden = X.homeHasFeed !== !0 : (n5(e), bp("feed-new", {
host: e,
revision: Z8.feedRevision,
helpers: Z8.feedNewHelpers,
@@ -80584,13 +80588,13 @@ function QLe() {
}
function o5() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(Vc), e.hidden = !0;
+ e.querySelectorAll(".feednewrow").forEach(Hc), e.hidden = !0;
}
function s5() {
- Z8.feedRevision += 1, xp(L("#feedNew"), { revision: Z8.feedRevision }), u5({ feedRevision: Z8.feedRevision });
+ Z8.feedRevision += 1, Sp(L("#feedNew"), { revision: Z8.feedRevision }), d5({ feedRevision: Z8.feedRevision });
}
function $Le() {
- document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
+ document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Vc(e) : Hc(e));
}
var c5 = 0;
function eRe([e]) {
@@ -80622,7 +80626,7 @@ function nRe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/application/entity.js
-var Y = {
+var l5 = {
ENTITY_FILTER_KEYS: void 0,
emptyEntityFilters: void 0,
parseEntityFilters: void 0,
@@ -80647,16 +80651,16 @@ var Y = {
sourceToolButtons: void 0,
application: void 0
};
-function l5() {
- let e = mp(L("#index"));
+function u5() {
+ let e = hp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function u5(e) {
- Y.entityPageCurrent() && xp(L("#index"), e);
+function d5(e) {
+ l5.entityPageCurrent() && Sp(L("#index"), e);
}
-function d5() {
- if (Jl.type === "item") return Jl;
- let e = l5();
+function f5() {
+ if (Yl.type === "item") return Yl;
+ let e = u5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -80666,9 +80670,9 @@ function d5() {
filters: { ...r }
};
}
- return Jl;
+ return Yl;
}
-function f5(e, t, n = l7()) {
+function p5(e, t, n = u7()) {
return YRe(n).map(([n, r]) => {
let i = e === n, a = jj(n, e, t);
return {
@@ -80680,50 +80684,50 @@ function f5(e, t, n = l7()) {
};
});
}
-function p5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
- return Y.application.route(e, t, n, r, i);
+function m5(e, t, n, r = l5.EMPTY_ENTITY_MEDIA, i = {}) {
+ return l5.application.route(e, t, n, r, i);
}
-function m5() {
+function h5() {
return VLe({
- entityWall: Y.entityPageWall,
- entityCurrent: Y.entityPageCurrent(),
+ entityWall: l5.entityPageWall,
+ entityCurrent: l5.entityPageCurrent(),
indexVisible: !L("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function h5() {
- Y.photos.sync();
-}
function g5() {
- m5() ? Ule(pM()) : EM();
+ l5.photos.sync();
+}
+function _5() {
+ h5() ? Ule(pM()) : EM();
}
function rRe(e) {
- Y.photos.setSize(e);
+ l5.photos.setSize(e);
}
-var _5 = RLe({
+var v5 = RLe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
success: () => k8.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => Y.sourceHint(e instanceof Error ? e.message : String(e))
+ failureText: (e) => l5.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function v5(e) {
+async function y5(e) {
let t = { textContent: "" };
- return await _5(e, t), t.textContent;
+ return await v5(e, t), t.textContent;
}
async function iRe(e) {
let t = { textContent: "" }, n = [];
- return await y5(e, t, (e) => {
+ return await b5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function y5(e, t, n) {
+async function b5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await Tn("/api/purge-missing", {
@@ -80731,12 +80735,12 @@ async function y5(e, t, n) {
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = Y.sourceHint(r.error);
+ t.textContent = l5.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${Y.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${l5.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), k8.actionReceipt(Y.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), k8.actionReceipt(l5.syncedText(r), { undo: e.length ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80750,21 +80754,21 @@ async function y5(e, t, n) {
} : null });
} else k8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = Y.sourceHint(e.message), k8.actionFailure("核对目录", e);
+ t.textContent = l5.sourceHint(e.message), k8.actionFailure("核对目录", e);
}
}
function aRe(e) {
- return `<div class="srctools">${Y.sourceToolButtons(e)}
+ return `<div class="srctools">${l5.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
function oRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && G8.handler(r, "onclick", () => _5(Number(r.dataset.reveal), n, { button: r })), i && G8.handler(i, "onclick", () => y5(Number(i.dataset.sync), n, t));
+ r && G8.handler(r, "onclick", () => v5(Number(r.dataset.reveal), n, { button: r })), i && G8.handler(i, "onclick", () => b5(Number(i.dataset.sync), n, t));
}
async function sRe(e, t) {
- let n = sl({
+ let n = cl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
body: "<label class=\"modalfield\"><span>别名</span>\n <input class=\"geist-input\" name=\"alias\" maxlength=\"80\" autocomplete=\"off\"\n placeholder=\"另一种写法,或另一个艺名\"></label>" + (e.length ? `<div class="modalfield"><span>自己添过的</span>
@@ -80801,23 +80805,23 @@ async function sRe(e, t) {
});
} }) : k8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function b5(e, t) {
- let n = ["performer", "studio"].includes(e) && Z8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Es()}${e === "agency" ? "" : P0(f5(U.sort, U.dir, n), n ? {
+function x5(e, t) {
+ let n = ["performer", "studio"].includes(e) && Z8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Ds()}${e === "agency" ? "" : P0(p5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
value: lM(),
options: iM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${M0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${M0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${M0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = nRe(e, r, e === "agency" ? oc({
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${M0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${M0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${M0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = nRe(e, r, e === "agency" ? sc({
kind: "performers",
- layout: I5.peopleIndexLayout()
+ layout: L5.peopleIndexLayout()
}) : PJ("正在读取作品", _M(gM({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? x5(e, t) : (L("#index").innerHTML = a, x5(e, t), pc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? S5(e, t) : (L("#index").innerHTML = a, S5(e, t), mc(L("#index")));
}
-function x5(e, t) {
+function S5(e, t) {
let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
@@ -80825,15 +80829,15 @@ function x5(e, t) {
};
r(n.querySelector(".entityfoot"), e !== "agency" && Z8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Z8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Z8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Z8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Z8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Z8.factsSkeleton()));
}
-function S5(e) {
+function C5(e) {
let t = Mn[e] || e, n = o6[t] || "条目", r = o6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function C5(e, t) {
- E9(Y.application.fresh(e, t));
+function w5(e, t) {
+ D9(l5.application.fresh(e, t));
}
function cRe() {
- Y.ENTITY_FILTER_KEYS = [
+ l5.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@ -80844,30 +80848,30 @@ function cRe() {
"year",
"sort",
"dir"
- ], Y.emptyEntityFilters = K8, Y.parseEntityFilters = (e) => q8(e, {
+ ], l5.emptyEntityFilters = K8, l5.parseEntityFilters = (e) => q8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), Y.entityFilterSearch = J8, Y.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), l5.entityFilterSearch = J8, l5.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, Y.activeFilterState = () => {
- let e = d5();
+ } : e, l5.activeFilterState = () => {
+ let e = f5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
function lRe() {
- Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!l5(), Y.entityPageLive = (e, t) => {
- let n = l5();
+ l5.entityPageView = "", l5.entityPageWall = !1, l5.entityPageRevision = 0, l5.entityPageCurrent = () => !!u5(), l5.entityPageLive = (e, t) => {
+ let n = u5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
- }, Y.EMPTY_ENTITY_MEDIA = {
+ }, l5.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, Y.parseMediaView = Y8, Y.entityViewSearch = X8, Y.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, Y.entityBodySkeleton = () => Q7(), Y.entityPageHelpers = {
+ }, l5.parseMediaView = Y8, l5.entityViewSearch = X8, l5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, l5.entityBodySkeleton = () => $7(), l5.entityPageHelpers = {
wireDrag: (e) => {
- e && c9(e);
+ e && l9(e);
},
wireScroller: (e) => {
- e && Ac(e);
+ e && jc(e);
},
wireFeedRow: (e) => i5(e),
feedRowHtml: r5,
@@ -80876,53 +80880,53 @@ function lRe() {
aliasForm: (e, t) => sRe(e, t),
sourceToolsHtml: (e) => aRe(e),
wireSourceTools: (e, t) => oRe(e, t),
- comboItems: (e) => V7(e),
- sortKeys: (e, t, n) => f5(e, t, n)
- }, Y.entityFollowActions = {
+ comboItems: (e) => H7(e),
+ sortKeys: (e, t, n) => p5(e, t, n)
+ }, l5.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
loaded: () => {},
toggleSelection: () => {}
- }, Y.SOURCE_HINTS = {
+ }, l5.SOURCE_HINTS = {
"source offline": "媒体库无法访问,暂时无法核对文件;恢复连接后重试",
"source not mapped": "本机没有映射这个来源的盘符",
"file missing": "找不到源文件;点击右侧的扫描按钮,重新检查目录并更新数据库记录",
"unsupported platform": "当前服务端系统不支持直接定位文件",
"reveal failed": "打开文件管理器失败,请重试"
- }, Y.sourceHint = (e) => Y.SOURCE_HINTS[e] || e, Y.syncedText = (e) => [
+ }, l5.sourceHint = (e) => l5.SOURCE_HINTS[e] || e, l5.syncedText = (e) => [
e.trashed ? `已把 ${e.trashed} 项移入回收站` : "",
e.vanished ? `${e.vanished} 项带个人记录,已标为已消失` : "",
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
- ].filter(Boolean).join(","), Y.sourceToolButtons = (e) => `
+ ].filter(Boolean).join(","), l5.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
aria-label="定位源文件">${R("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
function uRe() {
- Y.application = KLe({
+ l5.application = KLe({
controller: {
context: () => {
- let e = d5();
+ let e = f5();
return e.type === "entity" ? e : null;
},
- live: (e, t) => Y.entityPageLive(e, t),
- current: () => Y.entityPageCurrent(),
+ live: (e, t) => l5.entityPageLive(e, t),
+ current: () => l5.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
restoreHomeContext: () => W({ barsContext: {
type: "home",
filters: U
} }),
- releaseBodyPreviews: () => Nl(L("#index [data-entity-body]")),
- push: u5,
+ releaseBodyPreviews: () => Pl(L("#index [data-entity-body]")),
+ push: d5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
- revision: Y.entityPageRevision,
+ revision: l5.entityPageRevision,
feedRevision: Z8.feedRevision,
photoSize: pM(),
photoLayout: mM(),
@@ -80931,49 +80935,49 @@ function uRe() {
javLayout: lM(),
javLayouts: iM,
states: X.VIEW_PILLS,
- peopleLayout: I5.peopleIndexLayout(),
- layout: Z7(),
- selectMode: Ql,
- selected: new Set(Xl),
+ peopleLayout: L5.peopleIndexLayout(),
+ layout: Q7(),
+ selectMode: $l,
+ selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: c9,
- skeletonHtml: Y.entityBodySkeleton,
- canLoadMore: Y.entityBodyCanLoadMore,
+ wireDrag: l9,
+ skeletonHtml: l5.entityBodySkeleton,
+ canLoadMore: l5.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: Y.entityFollowActions
+ actions: l5.entityFollowActions
}
}),
- changeFilter: O7,
+ changeFilter: k7,
rollSeed: () => k8.rollSeed(),
writeSeed: (e) => {
- U.seed = e, Su();
+ U.seed = e, Cu();
},
- setJavLayout: f7,
+ setJavLayout: p7,
javLayout: lM,
setPhotoLayout: yM,
- syncPhotoWalls: h5,
- openEntity: C5,
- photoViewActive: m5,
+ syncPhotoWalls: g5,
+ openEntity: w5,
+ photoViewActive: h5,
recordPainted: (e, t) => {
- Y.entityPageView = e, Y.entityPageWall = t;
+ l5.entityPageView = e, l5.entityPageWall = t;
},
- syncDensity: g5,
- scheduleSticky: y7,
- releasePage: () => Sp(L("#index")),
- showMissing: S5,
+ syncDensity: _5,
+ scheduleSticky: b7,
+ releasePage: () => Cp(L("#index")),
+ showMissing: C5,
dropBars: F8
},
loading: {
shapesReady: (e, t) => Z8.hasEntityShape(e, t),
- waitShapes: U5,
- paintSkeleton: b5,
+ waitShapes: W5,
+ paintSkeleton: x5,
resetView: () => {
- W({ detailReturnBarsContext: null }), Y.entityPageView = "", Y.entityPageWall = !1;
+ W({ detailReturnBarsContext: null }), l5.entityPageView = "", l5.entityPageWall = !1;
},
loadShapes: $8,
- syncParts: x5
+ syncParts: S5
},
photos: {
preferences: () => ({
@@ -80982,25 +80986,25 @@ function uRe() {
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: u5,
- pushFollow: j9,
- syncDensity: g5,
+ pushEntity: d5,
+ pushFollow: M9,
+ syncDensity: _5,
storeSize: Vle
},
- helpers: Y.entityPageHelpers,
+ helpers: l5.entityPageHelpers,
actions: {
- toggleTag: B7,
- openFollowAuthor: z5,
+ toggleTag: V7,
+ openFollowAuthor: B5,
javContext: (e) => W({ entityJavLayout: !!e })
},
sortPreference: () => ({
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
})
- }), Y.photos = Y.application.photos, Y.entityPageHelpers = Y.application.helpers;
+ }), l5.photos = l5.application.photos, l5.entityPageHelpers = l5.application.helpers;
}
// src/application/playlists.js
-var w5 = { playlistWrite: void 0 };
+var T5 = { playlistWrite: void 0 };
function dRe(e, t) {
e === "tag" ? (W({ state: {
...U,
@@ -81011,17 +81015,17 @@ function dRe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(x7()), J5(), R7()) : C5(e, t);
+ } }), X.clearSearchField(), Q.route(S7()), Y5(), z7()) : w5(e, t);
}
-function T5(e = "") {
+function E5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
async function fRe({ title: e, count: t, save: n }) {
- let r = sl({
+ let r = cl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: T5(e),
+ body: E5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -81031,28 +81035,28 @@ async function fRe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await m9(a.id, a.current_asset_id, !0), k8.actionReceipt("已保存为播放列表", { undo: async () => {
- await w5.playlistWrite({
+ i && (await h9(a.id, a.current_asset_id, !0), k8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await T5.playlistWrite({
action: "delete",
id: a.id
- }), E9("/playlists");
+ }), D9("/playlists");
} }));
}
async function pRe(e) {
- let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Gs(`data-pick-playlist="${e.id}"`)}
- <span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = sl({
+ let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ks(`data-pick-playlist="${e.id}"`)}
+ <span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = cl({
title: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: T5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: E5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Bs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await w5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await T5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await w5.playlistWrite({
+ for (let t of r) await T5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -81071,41 +81075,41 @@ async function pRe(e) {
if (!i) return;
let o = +!!a.created + a.added.length;
k8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await w5.playlistWrite({
+ for (let t of a.added) await T5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await w5.playlistWrite({
+ a.created && await T5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function E5() {
- Nl(), f9(!1), q5();
- let e = mp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (K5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
+function D5() {
+ Pl(), p9(!1), J5();
+ let e = hp(L("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: mu + 1 }) : (q5({ manage: !1 }), W({ playlistsRevision: bu + 1 }));
}
function mRe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
}
-function D5(e) {
- W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
+function O5(e) {
+ W({ configurationRequestedSection: e }), Q.navigatePath(Ff(e));
}
function hRe() {
- w5.playlistWrite = (e) => Tn("/api/playlist", {
+ T5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function O5(e) {
+function k5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function k5(e, t, n, r, i = !1) {
+function A5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -81113,15 +81117,15 @@ function k5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function A5(e, t, n, r, i, a = !1) {
+function j5(e, t, n, r, i, a = !1) {
let o = n === "follow", s = _Y(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...k5(e, t, n, !0),
+ ...A5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
function gRe(e, t, n, r) {
- let i = O5(t);
+ let i = k5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
@@ -81129,7 +81133,7 @@ function gRe(e, t, n, r) {
};
}
// src/application/selection.js
-var j5 = {
+var M5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -81137,41 +81141,41 @@ var j5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function M5() {
- Y7({
- selected: new Set(Xl),
- selectMode: Ql
- }), u5({
- selected: new Set(Xl),
- selectMode: Ql
- }), j9({
+function N5() {
+ X7({
+ selected: new Set(Zl),
+ selectMode: $l
+ }), d5({
selected: new Set(Zl),
- selectMode: Ql
- }), j5.batchDockProps = ERe(), E8() && (E8().render(j5.batchDockProps), Z.syncGlassOptics());
+ selectMode: $l
+ }), M9({
+ selected: new Set(Ql),
+ selectMode: $l
+ }), M5.batchDockProps = ERe(), E8() && (E8().render(M5.batchDockProps), Z.syncGlassOptics());
}
-function N5(e, t = !1) {
- W(k5({
- selected: Xl,
- followSelected: Zl
- }, F5(), O5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), M5();
+function P5(e, t = !1) {
+ W(A5({
+ selected: Zl,
+ followSelected: Ql
+ }, I5(), k5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", $l), $l && Pl(), L("#selectMode").setAttribute("aria-pressed", String($l)), N5();
}
function _Re() {
- return [...B5.gridCards()].map((e) => +e.dataset.id);
+ return [...V5.gridCards()].map((e) => +e.dataset.id);
}
-function P5(e, t = !1) {
- W(A5({
- selected: Xl,
- followSelected: Zl
- }, F5(), O5(location.pathname), _Re(), e, t)), N5(!0);
+function F5(e, t = !1) {
+ W(j5({
+ selected: Zl,
+ followSelected: Ql
+ }, I5(), k5(location.pathname), _Re(), e, t)), P5(!0);
}
function vRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
function yRe(e, t = !1) {
- W(A5({
- selected: Xl,
- followSelected: Zl
- }, F5(), "follow", vRe(), e, t)), N5(!0);
+ W(j5({
+ selected: Zl,
+ followSelected: Ql
+ }, I5(), "follow", vRe(), e, t)), P5(!0);
}
async function bRe(e, t) {
let n = {
@@ -81188,14 +81192,14 @@ async function bRe(e, t) {
dispose: "移入回收站",
restore: "还原所选项目",
delete: "永久删除所选项目"
- }, i = [...Xl];
- if (i.length) return ll({
+ }, i = [...Zl];
+ if (i.length) return ul({
title: r[e],
body: `将处理选中的 ${i.length} 项。${e === "delete" ? "文件和馆藏记录会永久删除,无法恢复。" : e === "dispose" ? "馆藏记录可在回收站还原。" : ""}`,
confirmLabel: r[e],
danger: e === "delete",
onConfirm: async () => {
- Xc(t);
+ Zc(t);
try {
let t = await Tn("/api/batch", {
method: "POST",
@@ -81205,7 +81209,7 @@ async function bRe(e, t) {
})
});
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- N5(!1, !0), await m7();
+ P5(!1, !0), await h7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
k8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
@@ -81232,23 +81236,23 @@ async function bRe(e, t) {
operation: r
})
});
- await m7();
+ await h7();
} : null });
} catch (e) {
- throw Xc(t, !1), e;
+ throw Zc(t, !1), e;
} finally {
- Xc(t, !1), M5();
+ Zc(t, !1), N5();
}
}
});
}
async function xRe() {
- let e = [...Xl];
+ let e = [...Zl];
if (!e.length) return;
- let t = sl({
+ let t = cl({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + j5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + M5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
@@ -81272,10 +81276,10 @@ async function xRe() {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (N5(!1, !0), await m7(), k8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (P5(!1, !0), await h7(), k8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
async function SRe(e, t) {
- let n = [...Zl];
+ let n = [...Ql];
if (!n.length) return;
let r = {
save: "保存到数据库",
@@ -81286,13 +81290,13 @@ async function SRe(e, t) {
seen: "标记为已看",
ignored: "忽略所选作品"
};
- return ll({
+ return ul({
title: i[e],
body: `将处理选中的 ${n.length} 项关注作品。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Xc(t);
+ Zc(t);
try {
await Tn(e === "save" ? "/api/follow/save" : "/api/follow/status", {
method: "POST",
@@ -81300,17 +81304,17 @@ async function SRe(e, t) {
items: n,
to: e
})
- }), N5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), k8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), P5(!1, !0), location.pathname === "/follow" && W({ pageOpens: mu + 1 }), k8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
- throw Xc(t, !1), e;
+ throw Zc(t, !1), e;
} finally {
- Xc(t, !1), M5();
+ Zc(t, !1), N5();
}
}
});
}
async function CRe(e, t) {
- let n = [...Xl];
+ let n = [...Zl];
if (!n.length) return;
let r = {
"dismiss-junk": "不是垃圾",
@@ -81321,13 +81325,13 @@ async function CRe(e, t) {
"reconsider-junk": "重新检查文件",
dispose: "移入回收站"
};
- return ll({
+ return ul({
title: i[e],
body: `将处理选中的 ${n.length} 个文件。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Xc(t);
+ Zc(t);
try {
await Tn("/api/batch", {
method: "POST",
@@ -81336,7 +81340,7 @@ async function CRe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), N5(!1, !0), await U7();
+ }), P5(!1, !0), await W7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
k8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await Tn("/api/batch", {
@@ -81345,12 +81349,12 @@ async function CRe(e, t) {
ids: n,
operation: t
})
- }), await U7();
+ }), await W7();
} : null });
} catch (e) {
- throw Xc(t, !1), e;
+ throw Zc(t, !1), e;
} finally {
- Xc(t, !1), M5();
+ Zc(t, !1), N5();
}
}
});
@@ -81359,60 +81363,60 @@ function wRe() {
yLe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- j5.BATCH_RUNNERS[e]?.(t, n);
+ M5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(j5.batchDockProps), Z.syncGlassOptics();
+ e.render(M5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
function TRe() {
- j5.batchDockProps = {
+ M5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, j5.trashCount = null, j5.currentSelectSurface = () => O5(location.pathname), G8.handler(L("#selectMode"), "onclick", () => N5(!Ql, !!Ql)), j5.REGION_CHOICES = [
+ }, M5.trashCount = null, M5.currentSelectSurface = () => k5(location.pathname), G8.handler(L("#selectMode"), "onclick", () => P5(!$l, !!$l)), M5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], j5.BATCH_RUNNERS = {
+ ], M5.BATCH_RUNNERS = {
batch: bRe,
region: xRe,
follow: SRe,
junk: CRe,
- clear: () => N5(!1, !0)
+ clear: () => P5(!1, !0)
}, G8.handler(L("#density"), "onclick", () => {
- m5() ? rRe(pM() === "big" ? "small" : "big") : Hle();
- }), EM(), jl({
- selecting: () => Ql,
- censored: () => i9(),
+ h5() ? rRe(pM() === "big" ? "small" : "big") : Hle();
+ }), EM(), Ml({
+ selecting: () => $l,
+ censored: () => a9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), G8.listen(window, "pagehide", () => Nl()), G8.listen(document, "visibilitychange", () => {
- document.hidden && Nl();
- }), Ol(), j5.coverRecheck = 0, G8.listen(window, "resize", () => {
- Tl(L("#index")), clearTimeout(j5.coverRecheck), j5.coverRecheck = G8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
- e.complete && gl(e);
+ }), G8.listen(window, "pagehide", () => Pl()), G8.listen(document, "visibilitychange", () => {
+ document.hidden && Pl();
+ }), kl(), M5.coverRecheck = 0, G8.listen(window, "resize", () => {
+ El(L("#index")), clearTimeout(M5.coverRecheck), M5.coverRecheck = G8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ e.complete && _l(e);
}), 200);
}, { passive: !0 });
}
-function F5() {
+function I5() {
return {
- selectMode: Ql,
- selectSurface: tu,
- lastSelectedId: $l,
- followLastSelectedId: eu
+ selectMode: $l,
+ selectSurface: nu,
+ lastSelectedId: eu,
+ followLastSelectedId: tu
};
}
function ERe() {
return gRe({
- selected: Xl,
- followSelected: Zl
+ selected: Zl,
+ followSelected: Ql
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var I5 = {
+var L5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
@@ -81434,11 +81438,11 @@ function jRe(e = "") {
function MRe(e) {
return U8(e);
}
-function L5(e) {
+function R5(e) {
return V8(e);
}
-function R5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, G7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function z5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, K7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
function NRe(e, t) {
W({ state: {
@@ -81446,32 +81450,32 @@ function NRe(e, t) {
state: "",
tag: e.join(","),
tag_match: t
- } }), N5(!1, !1), Q.route(x7()), J5(), S9(), R7();
+ } }), P5(!1, !1), Q.route(S7()), Y5(), C9(), z7();
}
-function z5(e) {
- I5.controller.openFollowAuthor(e);
+function B5(e) {
+ L5.controller.openFollowAuthor(e);
}
function PRe(e) {
- I5.controller.openFollowTag(e);
+ L5.controller.openFollowTag(e);
}
function FRe() {
$.FOLLOW_MANAGE_TABS = OZ, G8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && D5("媒体库与入库");
- }), I5.peopleIndexLayout = () => s6(Z.appSettings.peopleLayout), I5.personAvatar = H8;
+ e.target.closest?.("[data-empty-settings]") && O5("媒体库与入库");
+ }), L5.peopleIndexLayout = () => s6(Z.appSettings.peopleLayout), L5.personAvatar = H8;
}
function IRe() {
- I5.controller = ILe({
+ L5.controller = ILe({
route: Q.route,
- followView: O9,
- adoptFollowView: k9,
+ followView: k9,
+ adoptFollowView: A9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: E9
+ openPage: D9
});
}
// src/application/loading.js
-var B5 = {
+var V5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -81480,51 +81484,51 @@ var B5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function V5(e = "正在读取作品") {
+function H5(e = "正在读取作品") {
if (location.pathname === "/wall") {
L("#loadSentinel").hidden = !0;
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Sye(NU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && A7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Sye(NU(location.search)), mc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && j7({
count: null,
- ...N7()
- })), L("#loadSentinel").hidden = !0, J7()) return;
- let r = L("#grid"), i = Q7(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== F2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== $7()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : B5.setGridCards(i), pc(L("#grid")));
-}
-function H5() {
- L("#catalogFilter").style.display = "none", k7();
+ ...P7()
+ })), L("#loadSentinel").hidden = !0, Y7()) return;
+ let r = L("#grid"), i = $7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== F2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== e9()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : V5.setGridCards(i), mc(L("#grid")));
}
function U5() {
+ L("#catalogFilter").style.display = "none", A7();
+}
+function W5() {
let e = new Promise((e) => {
- let t = B5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = V5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
t -= Math.min(i - n, 50), n = i, t > 0 ? G8.delay(r, Math.min(t, 50)) : e();
};
G8.delay(r, 50);
});
- return Promise.race([B5.entityShapesReady ||= $8(), e]);
+ return Promise.race([V5.entityShapesReady ||= $8(), e]);
}
function LRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), H5(), lbe();
- else if (/^\/assets\/\d+$/.test(e)) H5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) H5();
- else if (e === "/junk-files") V5("正在读取垃圾文件");
- else if (e === "/jav" && aU(new URLSearchParams(location.search).get("tab")) === "library") V5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), U5(), lbe();
+ else if (/^\/assets\/\d+$/.test(e)) U5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) U5();
+ else if (e === "/junk-files") H5("正在读取垃圾文件");
+ else if (e === "/jav" && aU(new URLSearchParams(location.search).get("tab")) === "library") H5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- H5();
+ U5();
let t = L("#stats");
- t.hidden = !1, G7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : B5.managementPlaceholder(e), pc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) H5(), R5(), u6(L("#index"), c6(e.slice(1), location.search), I5.peopleIndexLayout());
+ t.hidden = !1, K7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : V5.managementPlaceholder(e), mc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) U5(), z5(), u6(L("#index"), c6(e.slice(1), location.search), L5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- H5(), L("#index").hidden = !1, G7();
+ U5(), L("#index").hidden = !1, K7();
let t = Nn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (Z8.hasEntityShape(t, n) ? Promise.resolve() : U5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (b5(t, n), pc(L("#index")));
+ (Z8.hasEntityShape(t, n) ? Promise.resolve() : W5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (x5(t, n), mc(L("#index")));
});
- } else Q.routeMeta(e) ? V5() : (G7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? H5() : (K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
function RRe() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => N2(t, {
@@ -81539,22 +81543,22 @@ function RRe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), B5.setGridCards = (e) => ic(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Us(Hs), V5.setGridCards = (e) => ac(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), B5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), B5.managementPlaceholder = (e) => P2(e, {
+ }), V5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), V5.managementPlaceholder = (e) => P2(e, {
followLayout: DRe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
}))(ORe())
- }), B5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", B5.entityShapesReady = null, B5.ENTITY_SHAPES_WAIT = 400, B5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, b9();
+ }), V5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", V5.entityShapesReady = null, V5.ENTITY_SHAPES_WAIT = 400, V5.syncPageTitle = (e) => {
+ let t = new URL(e, location.origin), n = tp(decodeURIComponent(t.pathname))?.title;
+ document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, x9();
};
}
// src/sidebar-skeleton.ts
-var W5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var G5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
@@ -81564,8 +81568,8 @@ var W5 = (e) => e.replace(/[&<>"']/g, (e) => ({
function zRe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
- let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${W5(r)}"/></svg>`;
- return `<button type="button" data-nav="${W5(e)}" aria-pressed="${n(e)}" aria-label="${W5(t)}">${i}<span>${W5(t)}</span></button>`;
+ let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${G5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${G5(e)}" aria-pressed="${n(e)}" aria-label="${G5(t)}">${i}<span>${G5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
@@ -81587,7 +81591,7 @@ function BRe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var G5 = {
+var K5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -81609,25 +81613,25 @@ var G5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function K5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, G7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? n7() : (r7(""), S9()), t && I2(L("#stats"), t);
-}
-function q5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), H5(), document.body.classList.remove("entity-open", "index-open");
+function q5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? r7() : (i7(""), C9()), t && I2(L("#stats"), t);
}
function J5() {
- L("#javLibraryHeader").hidden = !jn(location.pathname) || !l7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, a5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", k7(), n7(), i7();
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), U5(), document.body.classList.remove("entity-open", "index-open");
+}
+function Y5() {
+ L("#javLibraryHeader").hidden = !jn(location.pathname) || !u7(), document.body.classList.remove("entity-open", "index-open"), Cp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, a5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", A7(), r7(), a7();
}
function VRe() {
- Q.route("/"), J5();
+ Q.route("/"), Y5();
}
-function Y5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- x9({
+function X5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ S9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
value: e,
- label: Ll(e),
+ label: Rl(e),
n: t
})),
selected: [...$.followTags],
@@ -81645,72 +81649,72 @@ function Y5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function X5(e) {
+function Z5(e) {
Hze({
- ...O9(),
+ ...k9(),
...e
- }), x9({ filters: $.followSidebarFilters() });
+ }), S9({ filters: $.followSidebarFilters() });
}
-function Z5() {
+function Q5() {
return matchMedia("(max-width:760px)").matches;
}
-function Q5(e) {
+function $5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && Z5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && Q5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function $5() {
- Z5() && Q5(!1);
+function e7() {
+ Q5() && $5(!1);
}
function HRe() {
- du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
- W({ runtimeConfigurable: !!e.configurable }), du && t7() && n7();
+ fu === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
+ W({ runtimeConfigurable: !!e.configurable }), fu && n7() && r7();
}).catch(() => {}));
}
-function e7(e = "", t = !1) {
- if (!t && !Mf(location.pathname)) {
- let t = Np.navigation;
- Np.push(Pf(e), { settingsBackground: {
+function t7(e = "", t = !1) {
+ if (!t && !Nf(location.pathname)) {
+ let t = Pp.navigation;
+ Pp.push(Ff(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && Pp(Pf(e), {
+ } else !t && e && Fp(Ff(e), {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
});
- return e ||= Nf(location.pathname), gLe(G5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Pf(location.pathname), gLe(K5.settingsHost()).then((t) => (t.open(e), t));
}
function URe() {
- Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
+ Nf(location.pathname) && (If(Pp.navigation.location.state) ? Pp.go(-1) : Q.navigatePath("/", !0));
}
function WRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: G5.NAV_CATALOG,
- navOn: g7,
- navTo: _7,
+ navCatalog: K5.NAV_CATALOG,
+ navOn: _7,
+ navTo: v7,
navToTop: () => {
- $5(), _m();
+ e7(), vm();
},
- toggleChip: (e, t, n) => O7((r) => {
+ toggleChip: (e, t, n) => k7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
} else r[e] = r[e] === t ? "" : t;
}),
- setDuration: (e, t) => O7((n) => {
+ setDuration: (e, t) => k7((n) => {
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), Q5(!1), E9(D9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), $5(!1), D9(O9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), Q5(!1), E9(D9());
+ $.followTags = /* @__PURE__ */ new Set([e]), $5(!1), D9(O9());
},
- selectFollowProvider: (e) => X5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => X5({
+ selectFollowProvider: (e) => Z5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => Z5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -81721,11 +81725,11 @@ function WRe() {
}
function GRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = zRe(Z.appSettings.sidebarOrder, G5.NAV_CATALOG, g7), e.querySelector("[data-sidebar-head]").append(...t), G8.listen(e, "click", (e) => {
+ e.innerHTML = zRe(Z.appSettings.sidebarOrder, K5.NAV_CATALOG, _7), e.querySelector("[data-sidebar-head]").append(...t), G8.listen(e, "click", (e) => {
if (b8()) return;
let t = e.target.closest?.("[data-nav]");
- t && _7(t.dataset.nav);
- }), _Le(WRe()).then((e) => e.render(G5.sidebarProps)).catch(() => {});
+ t && v7(t.dataset.nav);
+ }), _Le(WRe()).then((e) => e.render(K5.sidebarProps)).catch(() => {});
}
async function KRe() {
let e = G8, t = null;
@@ -81736,59 +81740,59 @@ async function KRe() {
}
e.isActive && $j(t, (e) => Z.settingsEffects[e]?.());
}
-function t7() {
+function n7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function n7() {
- let e = t7();
- HRe(), e && H5(), L("#count").classList.toggle("no-tagbar", !!e), S9(), e !== "trash" && (j5.trashCount = null), r7(e);
+function r7() {
+ let e = n7();
+ HRe(), e && U5(), L("#count").classList.toggle("no-tagbar", !!e), C9(), e !== "trash" && (M5.trashCount = null), i7(e);
}
function qRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: G5.MANAGE_SECTIONS,
- menu: e ? G5.manageMenuSections() : [],
- trash: j5.trashCount
+ sections: K5.MANAGE_SECTIONS,
+ menu: e ? K5.manageMenuSections() : [],
+ trash: M5.trashCount
};
}
-function r7(e = t7()) {
- i7();
+function i7(e = n7()) {
+ a7();
let t = qRe(e), n = C8();
if (n) n.render(t);
else {
let e = efe(t);
- e !== G5.manageHeaderSkeleton && (G5.manageHeaderSkeleton = e, G5.manageHeaderRoot().innerHTML = e);
+ e !== K5.manageHeaderSkeleton && (K5.manageHeaderSkeleton = e, K5.manageHeaderRoot().innerHTML = e);
}
let r = FF(t)?.title || "";
- r !== G5.lastManagePageLabel && (G5.lastManagePageLabel = r, r && tc(G5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ r !== K5.lastManagePageLabel && (K5.lastManagePageLabel = r, r && nc(K5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
function JRe() {
- let e = G5.manageHeaderRoot();
+ let e = K5.manageHeaderRoot();
G8.listen(e, "click", (e) => {
if (C8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) c7(t.dataset.manage);
+ if (t) l7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
- } else e.target.closest?.("[data-empty-trash]") && z7();
+ } else e.target.closest?.("[data-empty-trash]") && B7();
}), vLe({
root: e,
- openManage: c7,
+ openManage: l7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: z7
- }).then(() => r7()).catch(() => {});
+ emptyTrash: B7
+ }).then(() => i7()).catch(() => {});
}
-function i7() {
+function a7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !t7() && jn(t) && An[U.state] || "";
+ let t = decodeURIComponent(location.pathname), n = !n7() && jn(t) && An[U.state] || "";
e.hidden = !n, n && (e.textContent = n);
let r = L("#catalogPageHeading");
- r.hidden = !!t7() || !jn(t) || !!n || U.jav === "1", a7(r, U.q);
+ r.hidden = !!n7() || !jn(t) || !!n || U.jav === "1", o7(r, U.q);
}
-function a7(e, t) {
+function o7(e, t) {
let n = e?.querySelector("[data-page-title]");
if (!n) return;
let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";
@@ -81801,10 +81805,10 @@ function a7(e, t) {
let n = document.createElement("span");
return n.textContent = e, t !== void 0 && (n.dataset.titleWords = t), n;
};
- n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, s7(n), o7 ??= new ResizeObserver((e) => e.forEach((e) => s7(e.target))), o7.observe(n), document.fonts?.ready.then(() => s7(n));
+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, c7(n), s7 ??= new ResizeObserver((e) => e.forEach((e) => c7(e.target))), s7.observe(n), document.fonts?.ready.then(() => c7(n));
}
-var o7 = null;
-function s7(e) {
+var s7 = null;
+function c7(e) {
let t = e.querySelector("[data-title-words]");
if (!t || !e.clientWidth) return;
let n = t.dataset.titleWords;
@@ -81816,76 +81820,76 @@ function s7(e) {
}
t.textContent = r.slice(0, o).join("") + "…";
}
-function c7(e = "stats") {
+function l7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(PU()), J5(), S9(), R7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Cu(), Q.route(PU()), Y5(), C9(), z7());
}
-function l7() {
+function u7() {
let e = decodeURIComponent(location.pathname);
- return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
+ return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || gu : !1;
}
-function YRe(e = l7()) {
+function YRe(e = u7()) {
let t = wj.filter(([e]) => e !== "seed");
return e ? [Tj, ...t] : t;
}
-function u7() {
+function d7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function d7() {
- return uM(u7());
+function f7() {
+ return uM(d7());
}
function XRe(e) {
- zle(e), p7(), L("#grid").hidden || e9();
+ zle(e), m7(), L("#grid").hidden || t9();
}
-function f7(e) {
- vM(e), p7(), e9();
+function p7(e) {
+ vM(e), m7(), t9();
}
-function p7() {
+function m7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === d7();
- }), X.catalogFilterProps && A7({ layout: M7() });
+ e.checked = e.value === f7();
+ }), X.catalogFilterProps && j7({ layout: N7() });
}
function ZRe(e) {
- Ble(e), p7(), e9();
-}
-async function m7() {
- F8(), X.mixRelatedCache.clear(), await Promise.all([h7(), R7()]);
+ Ble(e), m7(), t9();
}
async function h7() {
- if (Y.entityPageCurrent() && !L("#index").hidden) {
- u5({ revision: ++Y.entityPageRevision });
+ F8(), X.mixRelatedCache.clear(), await Promise.all([g7(), z7()]);
+}
+async function g7() {
+ if (l5.entityPageCurrent() && !L("#index").hidden) {
+ d5({ revision: ++l5.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (ep(e)?.reload === "reopen" || e === "/follow") {
- W({ pageOpens: pu + 1 });
+ if (tp(e)?.reload === "reopen" || e === "/follow") {
+ W({ pageOpens: mu + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await U7();
+ t?.route.reload ? await t.route.reload() : await W7();
}
-function g7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = G5.DIRECT_MANAGE_NAV[e];
- if (r) return t7() === r;
+function _7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = K5.DIRECT_MANAGE_NAV[e];
+ if (r) return n7() === r;
if (e === "manage") {
- let e = t7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => G5.DIRECT_MANAGE_NAV[t] === e);
+ let e = n7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => K5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || l7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !t7() && !U.state && !l7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || u7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !n7() && !U.state && !u7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function _7(e) {
- let t = dm(e);
+function v7(e) {
+ let t = fm(e);
if (t === location.pathname + location.search + location.hash) return;
- if ($5(), t) {
+ if (e7(), t) {
Q.navigatePath(t);
return;
}
- if (G5.DIRECT_MANAGE_NAV[e]) {
- c7(G5.DIRECT_MANAGE_NAV[e]);
+ if (K5.DIRECT_MANAGE_NAV[e]) {
+ l7(K5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- c7();
+ l7();
return;
}
if (e === "jav") {
@@ -81893,25 +81897,25 @@ function _7(e) {
return;
}
if (e === "") {
- S7();
+ C7();
return;
}
let n = On[e] ? null : Q.routePathOf("nav", e);
- n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(x7()), S9(), R7());
+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Cu(), Q.route(S7()), C9(), z7());
}
-function v7() {
+function y7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- Ql && tu !== j5.currentSelectSurface() && N5(!1, !0);
+ $l && nu !== M5.currentSelectSurface() && P5(!1, !0);
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Nn, t[0]), r = jn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
- L("#selectMode").hidden = !i, L("#density").hidden = !a, h5(), !i && Ql && N5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, g5(), !i && $l && P5(!1, !0);
}
function QRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== G5.mobileFilterHost || location.pathname !== G5.mobileFilterPath) && (G5.mobileFilterScroll = null), G5.mobileFilterHost = t, G5.mobileFilterPath = location.pathname;
+ (t !== K5.mobileFilterHost || location.pathname !== K5.mobileFilterPath) && (K5.mobileFilterScroll = null), K5.mobileFilterHost = t, K5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- G5.mobileFilterScroll = BRe(G5.mobileFilterScroll, n, innerWidth <= 760, r);
+ K5.mobileFilterScroll = BRe(K5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && G5.mobileFilterScroll.free;
+ let e = n === t && K5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -81929,9 +81933,9 @@ function $Re() {
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
-function y7() {
- G5.stickyFrame ||= G8.frame(() => {
- G5.stickyFrame = 0, $Re();
+function b7() {
+ K5.stickyFrame ||= G8.frame(() => {
+ K5.stickyFrame = 0, $Re();
});
}
function eze() {
@@ -81939,24 +81943,24 @@ function eze() {
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), G8.handler(L("#filterBtn"), "onclick", () => Q5(!L("#drawer").classList.contains("open"))), G5.SIDEBAR_ITEMS = I8, G5.MANAGE_SECTIONS = L8, G5.MANAGE_MENU_SECTIONS = R8, G5.manageMenuSections = () => NLe(du === !0), G5.OPTIONAL_SIDEBAR_ITEMS = z8, G5.NAV_CATALOG = PLe, G5.DIRECT_MANAGE_NAV = FLe, G5.settingsHost = () => ({
- selectSection: (e) => Pp(Pf(e), {
+ }), G8.handler(L("#filterBtn"), "onclick", () => $5(!L("#drawer").classList.contains("open"))), K5.SIDEBAR_ITEMS = I8, K5.MANAGE_SECTIONS = L8, K5.MANAGE_MENU_SECTIONS = R8, K5.manageMenuSections = () => NLe(fu === !0), K5.OPTIONAL_SIDEBAR_ITEMS = z8, K5.NAV_CATALOG = PLe, K5.DIRECT_MANAGE_NAV = FLe, K5.settingsHost = () => ({
+ selectSection: (e) => Fp(Ff(e), {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
}),
closed: URe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
- sound: (e) => Qo(e),
- navCatalog: G5.NAV_CATALOG,
+ sound: (e) => $o(e),
+ navCatalog: K5.NAV_CATALOG,
themeOptions: Ple,
videoLayouts: iM,
followInitialRanges: B8,
- videoLayout: () => d7(),
+ videoLayout: () => f7(),
setVideoLayout: ZRe,
- censored: i9,
- setCensored: o9,
- sfwShortcut: s9,
+ censored: a9,
+ setCensored: s9,
+ sfwShortcut: c9,
setSfwShortcut: xze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
setHighContrast: Sze,
@@ -81965,12 +81969,12 @@ function eze() {
syncRemote: (e) => $j(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
- configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
- }), G8.handler(L("#settingsBtn"), "onclick", () => void e7()), G5.lastManagePageLabel = "", G5.manageHeaderSkeleton = "", G5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, G5.scrollT = null, G5.stickyFrame = 0, G5.mobileFilterScroll = null, G5.mobileFilterHost = null, G5.mobileFilterPath = "", G8.listen(document, "focusin", y7), G8.listen(document, "focusout", y7), G8.listen(window, "scroll", () => {
- y7(), location.pathname === "/follow" && A9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(G5.scrollT), G5.scrollT = G8.delay(() => {
+ configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), fu)).catch(() => null)
+ }), G8.handler(L("#settingsBtn"), "onclick", () => void t7()), K5.lastManagePageLabel = "", K5.manageHeaderSkeleton = "", K5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, K5.scrollT = null, K5.stickyFrame = 0, K5.mobileFilterScroll = null, K5.mobileFilterHost = null, K5.mobileFilterPath = "", G8.listen(document, "focusin", b7), G8.listen(document, "focusout", b7), G8.listen(window, "scroll", () => {
+ b7(), location.pathname === "/follow" && j9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Pl(), clearTimeout(K5.scrollT), K5.scrollT = G8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), G8.listen(window, "resize", y7, { passive: !0 }), G8.handler(L("#scrim"), "onclick", () => Q5(!1));
+ }, { passive: !0 }), G8.listen(window, "resize", b7, { passive: !0 }), G8.handler(L("#scrim"), "onclick", () => $5(!1));
}
// src/application/catalog.js
var X = {
@@ -82010,34 +82014,34 @@ var X = {
junkQueueActions: void 0
};
function tze() {
- X.initialParams.has("loc") || (U.loc = b7(U.loc), Su());
+ X.initialParams.has("loc") || (U.loc = x7(U.loc), Cu());
}
-function b7(e) {
+function x7(e) {
return wLe(e, Z.sourceOnline);
}
-function x7(e = U) {
+function S7(e = U) {
return TLe(e);
}
function nze() {
W(j8(ELe(U, Z.appSettings, k8.rollSeed)));
}
-function S7(e = null) {
- nze(), e && (Object.assign(U, e), Su()), Q.route(e ? x7() : "/"), X.clearSearchField(), f9(!1), S9(), R7();
+function C7(e = null) {
+ nze(), e && (Object.assign(U, e), Cu()), Q.route(e ? S7() : "/"), X.clearSearchField(), p9(!1), C9(), z7();
}
function rze(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? g9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : P5(n);
+ !e.medium || e.medium === "video" ? _9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : F5(n);
}
-function C7(e) {
+function w7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Tn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
function ize(e, t) {
- d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : w7(e, t);
+ d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : T7(e, t);
}
-function w7(e, t) {
- e.edition_group ? kze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Aze(e.part_group.seed_id, e.id, !0, t) : g9(e.id, !0, null, t);
+function T7(e, t) {
+ e.edition_group ? kze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Aze(e.part_group.seed_id, e.id, !0, t) : _9(e.id, !0, null, t);
}
async function aze(e, t) {
try {
@@ -82064,7 +82068,7 @@ async function oze(e, t) {
ids: [e.id],
operation: t
})
- }), await U7();
+ }), await W7();
let n = t === "restore" ? "dispose" : "restore";
k8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await Tn("/api/batch", {
@@ -82074,7 +82078,7 @@ async function oze(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await U7();
+ }), await W7();
} });
} catch (e) {
throw k8.actionFailure("操作", e), e;
@@ -82100,10 +82104,10 @@ async function sze(e, t, n, r) {
throw r?.aborted || k8.actionFailure("评分", e), e;
}
}
-async function T7(e) {
+async function E7(e) {
let t = new URLSearchParams();
- if (l7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
- let e = Y.activeFilterState();
+ if (u7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ let e = l5.activeFilterState();
[
"loc",
"creator",
@@ -82126,29 +82130,29 @@ async function T7(e) {
}
return jLe(t.toString(), X.topsQueryParams(e).toString());
}
-function E7(e) {
- d5().type !== "entity" && A7({ tags: P7(e) }), x9({ filters: { ...e } }), H7();
+function D7(e) {
+ f5().type !== "entity" && j7({ tags: F7(e) }), S9({ filters: { ...e } }), U7();
}
-async function D7(e) {
- let t = ++X.facetCountsSeq, [n] = await T7(e);
- t === X.facetCountsSeq && (e.type === "home" && (l9.facets = n), x9({ latest: r9(n, e) }));
+async function O7(e) {
+ let t = ++X.facetCountsSeq, [n] = await E7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (u9.facets = n), S9({ latest: i9(n, e) }));
}
-function O7(e) {
- let t = d5();
+function k7(e) {
+ let t = f5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), p5(t.kind, t.name, n), E7(n), D7(d5());
+ e(n), m5(t.kind, t.name, n), D7(n), O7(f5());
} else if (t.type === "item") {
- let t = Y.cloneBarsContext(Yl);
- if (f9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), p5(t.kind, t.name, t.filters) ? R7() : W({ pageOpens: pu + 1 });
+ let t = l5.cloneBarsContext(Xl);
+ if (p9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), m5(t.kind, t.name, t.filters) ? z7() : W({ pageOpens: mu + 1 });
return;
}
e(U), W({ barsContext: {
type: "home",
filters: U
- } }), Q.route(x7()), J5(), R7();
- } else e(U), Su(), Q.route(x7()), E7(U), D7(Jl);
+ } }), Q.route(S7()), Y5(), z7();
+ } else e(U), Cu(), Q.route(S7()), D7(U), O7(Yl);
}
function cze() {
return {
@@ -82168,19 +82172,19 @@ function cze() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: j7(),
+ actions: M7(),
helpers: {
- wireDrag: c9,
+ wireDrag: l9,
wireScroller: (e) => {
- e && Ac(e);
+ e && jc(e);
}
}
};
}
-function k7() {
- X.catalogFilterProps && A7({});
+function A7() {
+ X.catalogFilterProps && j7({});
}
-function A7(e) {
+function j7(e) {
let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
@@ -82188,141 +82192,141 @@ function A7(e) {
}, X.catalogFilterProps = {
...X.catalogFilterProps || cze(),
...e
- }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = MMe(X.catalogViews(), X.catalogFilterProps.state, N7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (gp(t) ? Sp(t, e) : (!t.firstChild && !n && (t.innerHTML = MMe(X.catalogViews(), X.catalogFilterProps.state, P7()), mc(t)), X.catalogFilterMounting = bp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => xp(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => Sp(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function j7() {
+function M7() {
return {
currentHref: () => {
- let e = new URL(x7(), location.origin);
+ let e = new URL(S7(), location.origin);
return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => C5(e, t),
+ openEntity: (e, t) => w5(e, t),
setView: (e) => {
- U.state = e, Su(), A7({ state: e }), Q.route(x7()), R7();
+ U.state = e, Cu(), j7({ state: e }), Q.route(S7()), z7();
},
- toggleTag: (e) => B7(e),
- clearFilter: (e) => O7((t) => {
+ toggleTag: (e) => V7(e),
+ clearFilter: (e) => k7((t) => {
t[e] = "";
}),
- clearAll: () => O7((e) => {
+ clearAll: () => k7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
let t = jj(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Su(), n9());
+ t && (U.sort = t.sort, U.dir = t.dir, Cu(), r9());
},
reshuffle: () => bze(),
setLayout: (e) => {
- l7() ? f7(e) : XRe(e);
+ u7() ? p7(e) : XRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
let n = (await MLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(F7) : n.map(I7);
+ return e === "performers" ? n.map(I7) : n.map(L7);
}
};
}
-function M7() {
- return l7() ? {
+function N7() {
+ return u7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
value: lM(),
options: iM
- } : u7() ? {
+ } : d7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: d7(),
+ value: f7(),
options: iM
} : null;
}
-function N7() {
+function P7() {
return {
- sorts: f5(U.sort, U.dir),
- layout: M7(),
+ sorts: p5(U.sort, U.dir),
+ layout: N7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function P7(e) {
+function F7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function F7(e) {
+function I7(e) {
return {
name: e.k,
- ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${go({
+ ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${_o({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: bo(e.avatar_focus),
+ style: xo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
})}`
};
}
-function I7(e) {
+function L7(e) {
return {
name: e.k,
fallback: $n(e.k, 2),
- logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
+ logo: e.has_logo ? mo(e.k, "icon", e.logo_version) : ""
};
}
function lze(e, t) {
- X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? A7({
+ X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? j7({
tiersPending: !0,
state: e.state || ""
- }) : (X.barsRendered = "", A7({
+ }) : (X.barsRendered = "", j7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function L7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, A7({ tiersPending: !1 }));
+function R7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, j7({ tiersPending: !1 }));
}
-async function R7() {
+async function z7() {
let e = ++X.barsRequestSeq;
- if (x9(), !Gl(location.pathname) || Jl.type === "item") return;
- let t = d5(), n = Y.activeFilterState(), r = JSON.stringify([
+ if (S9(), !Kl(location.pathname) || Yl.type === "item") return;
+ let t = f5(), n = l5.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- l7()
+ u7()
]);
lze(n, e);
let i;
try {
- i = await T7(t);
+ i = await E7(t);
} catch (t) {
- throw L7(e), t;
+ throw R7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- L7(e);
+ R7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, A7({ tiersPending: !1 }), G5.sidebarCatalog && x9({
- content: G5.sidebarCatalog,
+ X.barsPendingSeq = 0, j7({ tiersPending: !1 }), K5.sidebarCatalog && S9({
+ content: K5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (l9.facets = a);
+ X.barsRendered = s, t.type === "home" && (u9.facets = a);
let c = a.tags || [];
- Xa(o.performers), Xa(o.studios);
- let l = t.type === "home" && !l7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ Za(o.performers), Za(o.studios);
+ let l = t.type === "home" && !u7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
@@ -82331,41 +82335,41 @@ async function R7() {
let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = k8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
- label: Ll(e.k),
+ label: Rl(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, A7({
+ })), X.barsPendingSeq = 0, j7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(F7),
- studios: o.studios.map(I7)
+ performers: o.performers.map(I7),
+ studios: o.studios.map(L7)
},
tiersPending: !1,
empty: l,
- tags: P7(n),
+ tags: F7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), H7(), G5.sidebarCatalog = {
+ }), U7(), K5.sidebarCatalog = {
kind: "catalog",
- key: String(++G5.sidebarContentSeq),
- facets: r9(a, t)
- }, x9({
- content: G5.sidebarCatalog,
+ key: String(++K5.sidebarContentSeq),
+ facets: i9(a, t)
+ }, S9({
+ content: K5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
function uze(e, t) {
- l9.total = e, U.state === "trash" && (j5.trashCount = {
- total: l9.total,
+ u9.total = e, U.state === "trash" && (M5.trashCount = {
+ total: u9.total,
shown: t
- }), n7(), A7({ count: {
- total: l9.total,
+ }), r7(), j7({ count: {
+ total: u9.total,
shown: t
} });
}
-function z7() {
- return ll({
+function B7() {
+ return ul({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
confirmLabel: "清空回收站",
@@ -82376,17 +82380,17 @@ function z7() {
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
k8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await U7();
+ await W7();
}
}
});
}
-function B7(e) {
- O7((t) => {
+function V7(e) {
+ k7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function V7(e) {
+function H7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -82407,16 +82411,16 @@ function V7(e) {
}), X.tagList(e.tag).forEach((e) => t.push({
kind: "untag",
key: e,
- label: Ll(e)
+ label: Rl(e)
})), t;
}
-function H7() {
- A7({
- combo: V7(U),
+function U7() {
+ j7({
+ combo: H7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function U7() {
+async function W7() {
let e = Q.claimSurface(Q.surfacePath());
if (W({
barsContext: {
@@ -82424,72 +82428,72 @@ async function U7() {
filters: U
},
detailReturnBarsContext: null
- }), f9(!1), U.state === "ads") return pze(e);
- X.controller.page === "/junk-files" && G7(), V5(), J5();
- let t = K7(e);
+ }), p9(!1), U.state === "ads") return pze(e);
+ X.controller.page === "/junk-files" && K7(), H5(), Y5();
+ let t = q7(e);
if (a5(location.pathname) && U.browse !== "folders") {
- if (await B5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ if (await V5.entityShapesReady, !Q.surfaceCurrent(e)) return;
QLe();
} else o5();
- return H7(), L("#count").classList.remove("manage-static", "junkcount"), t;
+ return U7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
-function W7(e) {
+function G7(e) {
X.controller.settle(e);
}
-function G7() {
+function K7() {
let e = L("#grid");
- Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
+ Pl(e), Cp(e), X.controller.clear(), e.innerHTML = "";
}
-function K7(e) {
- return X7("/", fze, e, { place: Wze });
+function q7(e) {
+ return Z7("/", fze, e, { place: Wze });
}
function dze(e) {
- return X7("/junk-files", hze, e);
-}
-function q7() {
- return !!mp(L("#grid"));
+ return Z7("/junk-files", hze, e);
}
function J7() {
- return X.controller.taken(q7());
+ return !!hp(L("#grid"));
}
-function Y7(e) {
- xp(L("#grid"), e);
+function Y7() {
+ return X.controller.taken(J7());
}
-function X7(e, t, n, r = {}) {
+function X7(e) {
+ Sp(L("#grid"), e);
+}
+function Z7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && G7();
- let a = X.controller.begin(e, q7()), o = t();
- if (!a.mount) return Y7(o), a.settled;
- Nl(i);
- let s = () => Sp(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), yp(e, o, {
+ X.controller.page && X.controller.page !== e && K7();
+ let a = X.controller.begin(e, J7()), o = t();
+ if (!a.mount) return X7(o), a.settled;
+ Pl(i);
+ let s = () => Cp(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), bp(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(q7());
+ a.signal.removeEventListener("abort", s), a.finish(J7());
}), a.settled;
}
-function Z7() {
- let e = u7();
+function Q7() {
+ let e = d7();
return gM({
- active: l7() || e,
+ active: u7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function Q7(e = "正在读取作品") {
- return PJ(e, $7());
-}
-function $7() {
- return U ? _M(Z7()) : 16 / 9;
+function $7(e = "正在读取作品") {
+ return PJ(e, e9());
}
function e9() {
- J7() && (Nl(L("#grid")), Y7({
- layout: Z7(),
+ return U ? _M(Q7()) : 16 / 9;
+}
+function t9() {
+ Y7() && (Pl(L("#grid")), X7({
+ layout: Q7(),
seekSeconds: Z.appSettings.seekSeconds
- })), Y.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), u5({
- layout: Z7(),
+ })), l5.entityPageCurrent() && (Pl(L("#index [data-entity-hero]")), d5({
+ layout: Q7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
@@ -82499,28 +82503,28 @@ function fze() {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: Z7(),
+ layout: Q7(),
wall: e === "/wall",
- restoreNavigation: gm(),
- selectMode: Ql,
- selected: new Set(Xl),
+ restoreNavigation: _m(),
+ selectMode: $l,
+ selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: c9,
- settled: W7,
- skeletonHtml: () => Q7(),
+ wireDrag: l9,
+ settled: G7,
+ skeletonHtml: () => $7(),
filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !l7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !u7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
onCount: uze,
- onCountFailed: () => A7({ count: !1 }),
+ onCountFailed: () => j7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : wK({
- jav: l7() && !t,
- configurable: du,
+ jav: u7() && !t,
+ configurable: fu,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
@@ -82528,7 +82532,7 @@ function fze() {
}
function pze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && q7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (G7(), V5("正在读取垃圾文件")), J5(), H7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), dze(e);
+ return X.controller.page === "/junk-files" && J7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (K7(), H5("正在读取垃圾文件")), Y5(), U7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), dze(e);
}
async function mze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
@@ -82540,7 +82544,7 @@ async function mze(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await U7();
+ }), await W7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
k8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await Tn("/api/batch", {
@@ -82549,7 +82553,7 @@ async function mze(e, t) {
ids: n,
operation: e
})
- }), await U7();
+ }), await W7();
} });
} catch (e) {
throw k8.actionFailure("操作", e), e;
@@ -82562,10 +82566,10 @@ function hze() {
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
revision: X.controller.revision,
- selectMode: Ql,
- selected: new Set(Xl),
+ selectMode: $l,
+ selected: new Set(Zl),
countRow: L("#count"),
- settled: W7,
+ settled: G7,
skeletonHtml: () => N2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
@@ -82589,7 +82593,7 @@ function gze() {
text: t.value,
scrollLeft: t.scrollLeft || 0
}, r = e || (n.text ? n : X.searchValueSnapshot);
- X.cancelSearchDissolve(), X.cancelSearchDissolve = Xs(t, t.parentElement, r), X.searchValueSnapshot = {
+ X.cancelSearchDissolve(), X.cancelSearchDissolve = Zs(t, t.parentElement, r), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
};
@@ -82597,10 +82601,10 @@ function gze() {
}
function _ze() {
G8.handler(L("#wallBtn"), "onclick", () => {
- N5(!1, !0);
- let e = d5(), t = {
- ...Y.activeFilterState(),
- jav: l7() ? "1" : ""
+ P5(!1, !0);
+ let e = f5(), t = {
+ ...l5.activeFilterState(),
+ jav: u7() ? "1" : ""
};
e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(qxe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
@@ -82610,37 +82614,37 @@ function _ze() {
badgeHtml: (e, t) => Z.srcBadge(e, t),
titleHtml: (e, t) => zI(e, t),
displayName: (e, t) => RI(e, t),
- tagLabel: (e) => Ll(e)
+ tagLabel: (e) => Rl(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await u8(l9.stageHost);
+ let r = await u8(u9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: w7,
+ wallDetails: T7,
open: (e, t) => ize(e, t),
openResource: (e, t) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : rze(e, t),
- openShort: (e) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : y9(e.id),
- openShorts: () => y9(),
+ openShort: (e) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : b9(e.id),
+ openShorts: () => b9(),
openMix: (e, t) => Oze(e, e, !0, t),
- openEntity: (e, t) => C5(e, t),
- openUnowned: () => S7({ owner: "none" }),
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
toggleTag: (e) => {
- O7((t) => {
+ k7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => P5(e, t),
+ toggleSelection: (e, t) => F5(e, t),
watchLater: (e, t) => aze(e, t),
rate: (e, t, n, r) => sze(e, t, n, r),
resourceOperation: (e, t) => oze(e, t),
- mixRelated: (e) => C7(e),
- canFlip: () => !Ql && !i9() && !window.__scrolling && !X.reduceMotion()
+ mixRelated: (e) => w7(e),
+ canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), l7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), u7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -82663,22 +82667,22 @@ function _ze() {
href: e.k ? On[e.k] : "/"
})), X.TAGS_FIRST = 26, G8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), j7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), M7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && A7({ comboHidden: !0 });
+ X.catalogFilterProps && j7({ comboHidden: !0 });
};
}
function vze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- Ql && N5(!1, !0), Q.route(e);
+ $l && P5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => P5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : g9(e.id, !0, null, t),
+ toggleSelection: (e, t) => F5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : _9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await Tn("/api/reveal", {
@@ -82686,7 +82690,7 @@ function vze() {
body: JSON.stringify({ id: e.id })
}), k8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return Y.sourceHint(e.message);
+ return l5.sourceHint(e.message);
}
},
operate: (e, t) => mze(e, t)
@@ -82715,7 +82719,7 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function t9() {
+async function n9() {
let e = G8;
try {
let t = await Sr(e.signal);
@@ -82728,13 +82732,13 @@ async function t9() {
}
return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), tze(), Z.sourceOnline;
}
-function n9() {
+function r9() {
let e = Q.surfacePath();
- if (!jn(e) || e === "/junk-files") return U7();
+ if (!jn(e) || e === "/junk-files") return W7();
let t = Z.nextCatalogLoad();
- return Pp(x7(), {
+ return Fp(S7(), {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
}), t;
}
function yze(e) {
@@ -82746,7 +82750,7 @@ function yze(e) {
kind: "glyph",
name: "rss"
};
- let t = _s[e];
+ let t = vs[e];
return t ? t.startsWith("data:") ? {
kind: "image",
src: t
@@ -82758,8 +82762,8 @@ function yze(e) {
cost: "free"
};
}
-function r9(e, t) {
- let n = (e, t = (e) => e.label || Ll(e.k)) => (e || []).map((e) => ({
+function i9(e, t) {
+ let n = (e, t = (e) => e.label || Rl(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
n: e.n ?? null
@@ -82778,29 +82782,29 @@ function r9(e, t) {
creators: n(r, (e) => nn("creator", e.k)),
tags: n(e.tags),
tech: n(e.tech),
- followTags: n(e.follow_tags, (e) => Ll(e.k)),
+ followTags: n(e.follow_tags, (e) => Rl(e.k)),
duration: !!e.stats?.duration
};
}
async function bze(e = !1) {
- if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || l9.stageOpen() || l9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
+ if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || u9.stageOpen() || u9.immerseOpen() || $l || Zl.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
if (t === "skip") return;
if (e === "/playlists") {
- E5();
+ D5();
return;
}
let n = t === "reopen" ? e : "/stats";
- fm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Np.navigation.location.state) : Q.navigatePath(n);
+ pm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Pp.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = k8.rollSeed(), Su(), F8(), A7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = k8.rollSeed(), Cu(), F8(), j7({ refreshing: !0 });
try {
- fm();
- let e = n9();
- await null, await Promise.all([e, R7()]);
+ pm();
+ let e = r9();
+ await null, await Promise.all([e, z7()]);
} finally {
- A7({ refreshing: !1 });
+ j7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -82808,16 +82812,16 @@ async function bze(e = !1) {
}), !0;
}
}
-function i9() {
+function a9() {
return document.body.classList.contains("censor");
}
-function a9(e) {
+function o9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function o9(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), a9(e), e && Nl();
+function s9(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), o9(e), e && Pl();
}
-function s9() {
+function c9() {
return o1(localStorage.getItem("peach.sfw-shortcut")) || o1("Shift+KeyS");
}
function xze(e) {
@@ -82826,11 +82830,11 @@ function xze(e) {
function Sze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function c9(e) {
- return Ac(e, { drag: !0 });
+function l9(e) {
+ return jc(e, { drag: !0 });
}
function Cze() {
- ["#nrow", "#count"].forEach((e) => c9(L(e))), document.querySelectorAll(".tier,.srow").forEach(c9);
+ ["#nrow", "#count"].forEach((e) => l9(L(e))), document.querySelectorAll(".tier,.srow").forEach(l9);
}
function wze() {
let e = new URLSearchParams(location.search).get("id");
@@ -82841,34 +82845,34 @@ function Tze() {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = Qj(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), nM(), Lle(), DM(), AM(), jM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = Qj(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Qo(Z.appSettings.uiSounds), is(), nM(), Lle(), DM(), AM(), jM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
- Zt(Z.appSettings.performerNameLanguage), B5.syncPageTitle(location.href), X.barsRendered = "", R7();
+ Zt(Z.appSettings.performerNameLanguage), V5.syncPageTitle(location.href), X.barsRendered = "", z7();
},
theme: () => nM(),
uiSounds: () => {
- Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
+ Qo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && $o("toggle-on");
},
glowFrame: () => kM(),
glow: () => {
kM(), AM();
},
batchSize: () => {
- location.pathname === "/" && U7();
+ location.pathname === "/" && W7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && n9();
+ U.sort = Z.appSettings.defaultSort, U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && r9();
},
sortDirection: () => {
- U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && n9();
+ U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && r9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
- Fl(e, "previewing", !1), Fl(e, "longhover", !1);
+ Il(e, "previewing", !1), Il(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => e9(),
- groupCollapse: () => h7(),
+ seekSeconds: () => t9(),
+ groupCollapse: () => g7(),
feedAutoScroll: () => $Le(),
feedLimit: () => s5(),
feedCompilations: () => s5(),
@@ -82876,22 +82880,22 @@ function Tze() {
Z.appSettings.miniplayer || d8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), e9(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Dze();
+ oo(document, Z.appSettings.javImage), t9(), document.querySelectorAll("img[data-jav-image].cover").forEach(pl), Dze();
},
- searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => Sp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
- ...Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
+ ...Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
}, Z.srcBadge = (e, t, n) => {
let r = `${nr[e] || e}${t === "metered" ? " · 计费" : ""}`;
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
- }, Z.emptyState = Ws;
+ }, Z.emptyState = Gs;
}
function Eze() {
- Z.CENSOR_KEY = "peach-censor", a9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+ Z.CENSOR_KEY = "peach-censor", o9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var l9 = {
+var u9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -82902,18 +82906,18 @@ var l9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function u9() {
+function d9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function d9() {
+function f9() {
return d8()?.exit() || Promise.resolve();
}
-function f9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && C9(), d8()?.dispose({ miniplayer: n }), W({
+function p9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && w9(), d8()?.dispose({ miniplayer: n }), W({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82921,15 +82925,15 @@ function f9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), y7(), e && Q.route(nu || "/");
+ }), b7(), e && Q.route(ru || "/");
}
function Dze() {
d8()?.repaintPoster();
}
-function p9(e, t, n, r, i = null, a = {}) {
+function m9(e, t, n, r, i = null, a = {}) {
t = +t;
- let o = ou?.kind === e && (e === "playlist" ? ou.playlistId : ou.seedId) === t;
- r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Wf();
+ let o = su?.kind === e && (e === "playlist" ? su.playlistId : su.seedId) === t;
+ r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Gf();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -82940,38 +82944,38 @@ function p9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- C9();
+ w9();
let e = Q.queueOpenRequest = {
- seq: Np.navigation.seq,
+ seq: Pp.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => g9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
- } else return g9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => _9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: hu + 1 });
+ } else return _9(n == null ? null : +n, !1, s, i, r);
}
function Oze(e, t = e, n = !0, r = null) {
- return p9("mix", e, t, n, r);
+ return m9("mix", e, t, n, r);
}
function kze(e, t = e, n = !0, r = null) {
- return p9("editions", e, t, n, r);
+ return m9("editions", e, t, n, r);
}
function Aze(e, t = e, n = !0, r = null) {
- return p9("parts", e, t, n, r);
+ return m9("parts", e, t, n, r);
}
-function m9(e, t = null, n = !0) {
- return p9("playlist", e, t, n);
+function h9(e, t = null, n = !0) {
+ return m9("playlist", e, t, n);
}
-function h9() {
+function g9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function g9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function _9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || C9(), t && !n) {
- W({ detailReturnPath: location.pathname + location.search }), w9("/assets/" + +e, "item", () => g9(e, !1, null, r));
+ if (a || w9(), t && !n) {
+ W({ detailReturnPath: location.pathname + location.search }), T9("/assets/" + +e, "item", () => _9(e, !1, null, r));
return;
}
- Nl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = h9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : Y.cloneBarsContext(d5());
- t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), d8()?.showing() !== "item" && f9(!1, !0, {
+ Pl(), e = e == null ? null : +e;
+ let o = r?.isConnected ? r : iu?.isConnected ? iu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : au, c = g9(), l = ou || !t && !c, u = Yl.type === "item" ? Xl : l5.cloneBarsContext(f5());
+ t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: Jf() || ru }), t && Gf(), d8()?.showing() !== "item" && p9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), W({
@@ -82982,172 +82986,172 @@ async function g9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Jf("item"));
- let d = await u8(l9.stageHost);
+ } }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Yf("item"));
+ let d = await u8(u9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...l9.itemDetailActions,
+ ...u9.itemDetailActions,
present: (e, t) => {
- a.cancelled || l9.itemDetailActions.present(e, t);
+ a.cancelled || u9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || l9.itemDetailActions.redirect(e);
+ a.cancelled || u9.itemDetailActions.redirect(e);
}
- } : l9.itemDetailActions;
+ } : u9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: l9.itemDetailHelpers,
+ helpers: u9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: Z7(),
- selectMode: Ql,
- selected: new Set(Xl),
+ layout: Q7(),
+ selectMode: $l,
+ selected: new Set(Zl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : u9()
- }), y7();
+ resume: t || e == null ? null : d9()
+ }), b7();
}
-async function _9() {
- let e = Y.cloneBarsContext(Yl), t = nu || "/", n = au;
- await d9(), f9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
+async function v9() {
+ let e = l5.cloneBarsContext(Xl), t = ru || "/", n = ou;
+ await f9(), p9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Kf(), W({ barsContext: e || {
type: "home",
filters: U
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (R7(), location.pathname === "/playlists" && E5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: mu + 1 }) : (z7(), location.pathname === "/playlists" && D5()));
}
-async function v9(e, t = !0) {
+async function y9(e, t = !0) {
if (t) {
- W({ detailReturnPath: location.pathname + location.search }), w9("/works/" + encodeURIComponent(e), "jav", () => v9(e, !1));
+ W({ detailReturnPath: location.pathname + location.search }), T9("/works/" + encodeURIComponent(e), "jav", () => y9(e, !1));
return;
}
- let n = Np.navigation.seq, r = Y.cloneBarsContext(d5()), i = !h9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
- d8()?.showing() !== "jav" && f9(!1, !0, { miniplayer: !1 }), W({
+ let n = Pp.navigation.seq, r = l5.cloneBarsContext(f5()), i = !g9(), a = Jf() || (i ? "/jav?tab=discover" : ru) || "/jav?tab=discover";
+ d8()?.showing() !== "jav" && p9(!1, !0, { miniplayer: !1 }), W({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
- }), Nl();
- let [o, s] = await Promise.all([u8(l9.stageHost), B("/healthz")]);
- Np.navigation.seq === n && (await o.open({
+ }), Pl();
+ let [o, s] = await Promise.all([u8(u9.stageHost), B("/healthz")]);
+ Pp.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void _9(),
+ close: () => void v9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- Np.navigation.seq === n && t && t !== e && Pp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ Pp.navigation.seq === n && t && t !== e && Fp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
});
},
- openTag: (e) => O7((t) => {
+ openTag: (e) => k7((t) => {
t.tag = e;
}),
receipt: (e) => k8.toast({ text: e })
}
- }), y7());
+ }), b7());
}
-async function y9(e = null, t = !0) {
- t ? (l9.requestedImmerseId = e, Q.route("/immerse")) : (d8()?.closeMiniplayer(), await (await hLe(l9.immerseHost)).open(e));
+async function b9(e = null, t = !0) {
+ t ? (u9.requestedImmerseId = e, Q.route("/immerse")) : (d8()?.closeMiniplayer(), await (await hLe(u9.immerseHost)).open(e));
}
function jze() {
- l9.total = 0, l9.facets = null, l9.stageHost = {
+ u9.total = 0, u9.facets = null, u9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
toast: (e, t) => k8.toast({ text: e }, t),
- loadSourceStatus: () => t9(),
+ loadSourceStatus: () => n9(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? N9(t, !0, n) : g9(t, !0);
+ e === "follow" ? P9(t, !0, n) : _9(t, !0);
},
- openItem: (e) => void g9(e)
- }, l9.stageOpen = () => !!d8()?.isOpen();
+ openItem: (e) => void _9(e)
+ }, u9.stageOpen = () => !!d8()?.isOpen();
}
function Mze() {
- l9.itemDetailHelpers = {
+ u9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
titleHtml: (e) => zI(e),
displayName: (e) => RI(e),
javImage: () => Z.appSettings.javImage,
- tagLabel: (e) => Ll(e),
+ tagLabel: (e) => Rl(e),
isDurationTag: (e) => ar.has(e),
- tagCandidates: () => l9.facets && l9.facets.tags || [],
+ tagCandidates: () => u9.facets && u9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
relatedSkeletonHtml: () => N2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => C7(e),
- wireDrag: (e) => c9(e),
- wireDragReorder: (e, t) => al(e, t)
- }, l9.itemDetailActions = {
- close: () => _9(),
+ mixRelated: (e) => w7(e),
+ wireDrag: (e) => l9(e),
+ wireDragReorder: (e, t) => ol(e, t)
+ }, u9.itemDetailActions = {
+ close: () => v9(),
present: (e) => {
W({ presentedItem: e });
- let t = Yl;
+ let t = Xl;
W({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : Y.emptyEntityFilters()
- } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), R7();
+ filters: t?.type === "entity" ? { ...t.filters } : l5.emptyEntityFilters()
+ } }), cu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${cu}`, !1, Yf("item")), W({ pendingQueueRoute: null })), z7();
},
redirect: (e) => {
- let t = !!su;
+ let t = !!cu;
e.kind === "follow" ? (Q.queueOpenRequest = null, W({
pendingQueueRoute: null,
- followDetailReturnPath: nu || "/"
- }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), N9(e.id, !1, null, !0)) : e.kind === "item" ? g9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? E9("/playlists") : E5() : f9(!1);
+ followDetailReturnPath: ru || "/"
+ }), Q.route(`/posts/${e.id}`, !t, Yf("follow")), P9(e.id, !1, null, !0)) : e.kind === "item" ? _9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? D9("/playlists") : D5() : p9(!1);
},
- openQueueItem: (e, t, n = !0) => void p9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void m9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
- let e = cu;
+ let e = lu;
if (!e) return;
- let t = ou;
- t ? p9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : g9(e.id, !1);
+ let t = su;
+ t ? m9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : _9(e.id, !1);
},
- checkSource: async (e) => (await t9())[e] !== !1,
+ checkSource: async (e) => (await n9())[e] !== !1,
openSavedFollow: () => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", E9(D9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", D9(O9());
},
- openEntity: (e, t) => C5(e, t),
- openUnowned: () => S7({ owner: "none" }),
- openRegion: (e) => S7({ region: e || "none" }),
- openTag: (e) => O7((t) => {
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
+ openRegion: (e) => C7({ region: e || "none" }),
+ openTag: (e) => k7((t) => {
t.tag = e;
}),
addToPlaylist: (e) => pRe(e),
saveMix: (e) => fRe(e),
- editPlaylist: () => E9("/playlists"),
- openPlaylists: () => E9("/playlists"),
- reveal: (e) => v5(e),
+ editPlaylist: () => D9("/playlists"),
+ openPlaylists: () => D9("/playlists"),
+ reveal: (e) => y5(e),
sync: (e) => iRe(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (Gf(), f9(!0, !1, { miniplayer: !1 })), await U7());
+ U.state === "ads" && (t || e === "trash") && (t || (Kf(), p9(!0, !1, { miniplayer: !1 })), await W7());
},
toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
failure: (e, t) => k8.actionFailure(e, t)
- }, l9.immerseHost = {
+ }, u9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
displayName: (e) => RI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => S7(),
- openItem: (e) => void g9(e),
- openEntity: (e, t) => C5(e, t),
- openUnowned: () => S7({ owner: "none" }),
+ closed: () => C7(),
+ openItem: (e) => void _9(e),
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
warn: (e) => k8.toast({ text: e }, { sound: "warning" }),
failure: (e, t) => k8.actionFailure(e, t)
- }, l9.immerseOpen = () => !!m8()?.isOpen(), G8.handler(L("#immerseBtn"), "onclick", () => y9());
+ }, u9.immerseOpen = () => !!m8()?.isOpen(), G8.handler(L("#immerseBtn"), "onclick", () => b9());
}
// src/application/navigation.js
var Q = {
@@ -83169,48 +83173,48 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function b9() {
+function x9() {
let e = b8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(g7(e.dataset.nav))));
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(_7(e.dataset.nav))));
}
-function x9(e = {}) {
+function S9(e = {}) {
let t = Q.surfacePath();
- t !== G5.sidebarSurface && (G5.sidebarSurface = t, G5.sidebarProps = {
- ...G5.sidebarProps,
+ t !== K5.sidebarSurface && (K5.sidebarSurface = t, K5.sidebarProps = {
+ ...K5.sidebarProps,
content: null,
latest: null
- }), G5.sidebarProps = {
- ...G5.sidebarProps,
+ }), K5.sidebarProps = {
+ ...K5.sidebarProps,
...e
- }, b8()?.render(G5.sidebarProps);
-}
-function S9() {
- x9(), b9(), v7();
+ }, b8()?.render(K5.sidebarProps);
}
function C9() {
+ S9(), x9(), y7();
+}
+function w9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, W({ pendingQueueRoute: null });
}
-function w9(e, t, n) {
- C9(), Wf(), Q.requestedOverlay = {
+function T9(e, t, n) {
+ w9(), Gf(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, Jf(t));
+ }, Q.route(e, !1, Yf(t));
}
-function T9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, B5.syncPageTitle(location.href), x9(), Gf();
+function E9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, V5.syncPageTitle(location.href), S9(), Kf();
}
-function E9(e) {
- Q.route(e), W({ pageOpens: pu + 1 });
+function D9(e) {
+ Q.route(e), W({ pageOpens: mu + 1 });
}
function Nze() {
Q.routeMeta = (e) => {
- let t = ep(e);
+ let t = tp(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys($f).find((n) => $f[n][e] === t), Q.catalogPage = (e) => jn(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = ep(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys(ep).find((n) => ep[n][e] === t), Q.catalogPage = (e) => jn(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = tp(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Vf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? y9(wze()) : e === "/follow" ? M9() : e === "/playlists" || Q.catalogPage(e) ? E9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? jRe() : e) : (N5(!1, !0), E9(L5({
+ e === "/immerse" ? b9(wze()) : e === "/follow" ? N9() : e === "/playlists" || Q.catalogPage(e) ? D9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? jRe() : e) : (P5(!1, !0), D9(R5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83224,16 +83228,16 @@ function Pze() {
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (a5(e) || o5(), Sp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && G7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, Pp(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (a5(e) || o5(), Cp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && K7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, Fp(e, {
replace: t,
state: n
- }), B5.syncPageTitle(e), queueMicrotask(() => {
- v7(), i7(), x9();
+ }), V5.syncPageTitle(e), queueMicrotask(() => {
+ y7(), a7(), S9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? Np.replace(e, n) : Np.push(e, n), queueMicrotask(() => {
- v7(), i7();
+ t ? Pp.replace(e, n) : Pp.push(e, n), queueMicrotask(() => {
+ y7(), a7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
@@ -83244,7 +83248,7 @@ function Fze(e, t, n) {
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
function Ize(e, t = 0, n = 0) {
- return n > 0 ? Fze(e, t, n) : Hs(e);
+ return n > 0 ? Fze(e, t, n) : Us(e);
}
async function Lze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
@@ -83262,10 +83266,10 @@ async function Lze(e) {
}
}
function Rze(e) {
- let t = e.note || ((e) => zs(e, {
+ let t = e.note || ((e) => Bs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => Ize(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Us, r = e.progress || ((e, t, n) => Ize(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
Lze({
@@ -83319,23 +83323,23 @@ var $ = {
};
function zze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- k8.toast({ text: Hi(e) }, {
+ k8.toast({ text: Ui(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => M9(!0)
+ run: () => N9(!0)
}
});
}
-function D9() {
- return ka(O9());
+function O9() {
+ return Aa(k9());
}
function Bze() {
return $.controller.read();
}
-function O9() {
+function k9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -83350,33 +83354,33 @@ function O9() {
seed: $.followSeed
};
}
-function k9(e) {
+function A9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
function Vze() {
- let e = mp(L("#stats"));
+ let e = hp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function A9() {
+function j9() {
return !!Vze();
}
-function j9(e) {
- A9() && xp(L("#stats"), e);
+function M9(e) {
+ j9() && Sp(L("#stats"), e);
}
function Hze(e, t = {}) {
return $.controller.route(e, t);
}
-function M9(e = !1) {
+function N9(e = !1) {
$.controller.enter(e);
}
-async function N9(e, t = !0, n = null, r = !1) {
+async function P9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), w9(`/posts/${+e}`, "follow", () => N9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), T9(`/posts/${+e}`, "follow", () => P9(e, !1, n, r));
return;
}
- Nl(), e = +e;
+ Pl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), d8()?.showing() !== "follow" && f9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await u8(l9.stageHost)).open({
+ t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: Jf() || "/follow" }), t && Gf(), d8()?.showing() !== "follow" && p9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Yf("follow")), await (await u8(u9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -83384,55 +83388,55 @@ async function N9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : u9()
- }), y7();
+ resume: t ? null : d9()
+ }), b7();
}
async function Uze() {
- await d9(), f9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && A9() ? (Bze(), j9({ view: O9() })) : W({ pageOpens: pu + 1 }));
+ await f9(), p9(!1, !1, { miniplayer: !1 }), Kf(), Q.route(uu || "/follow"), !(l5.entityPageView && l5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && j9() ? (Bze(), M9({ view: k9() })) : W({ pageOpens: mu + 1 }));
}
function Wze(e) {
let t = document.createElement("div");
- return t.className = "peach-react", ic(e, () => {
+ return t.className = "peach-react", ac(e, () => {
e.textContent = "", e.append(t);
}), t;
}
function Gze() {
- $.followFeedHelpers = zl({
+ $.followFeedHelpers = Bl({
wireDrag: (e) => {
- e && c9(e);
+ e && l9(e);
},
wireScroller: (e) => {
- e && Ac(e);
+ e && jc(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
jobProgress: Rze
}), $.followFeedActions = {
- loaded: (e) => Y5(e),
- openDetail: (e) => N9(e),
+ loaded: (e) => X5(e),
+ openDetail: (e) => P9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
toggleSelection: (e, t) => yRe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), h5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), g5();
},
setPhotoLayout: (e) => {
- yM(e), h5();
+ yM(e), g5();
},
- canFlip: () => !Ql && !i9() && !window.__scrolling && !X.reduceMotion(),
+ canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
failure: (e, t) => k8.actionFailure(e, t),
checkReport: (e) => zze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- d8()?.showing() !== "follow" && (Nl(), f9(!1), q5(), !A9() && (Q.claimSurface(Q.surfacePath()), K5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Sp(L("#stats")), L("#stats").replaceChildren()));
+ d8()?.showing() !== "follow" && (Pl(), p9(!1), J5(), !j9() && (Q.claimSurface(Q.surfacePath()), q5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Cp(L("#stats")), L("#stats").replaceChildren()));
}
- }, $.followDetailActions = ql({
- view: O9,
- adoptView: k9,
+ }, $.followDetailActions = Jl({
+ view: k9,
+ adoptView: A9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
close: () => void Uze(),
- open: (e, t, n) => void N9(e, !0, t, n),
- drawer: Y5,
+ open: (e, t, n) => void P9(e, !0, t, n),
+ drawer: X5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
}, {
toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
@@ -83441,14 +83445,14 @@ function Gze() {
});
}
function Kze() {
- $.controller = Ma({
+ $.controller = Na({
location: () => location,
- view: O9,
- adoptView: k9,
+ view: k9,
+ adoptView: A9,
session: () => ({
- discoverySeed: gu,
- revision: _u,
- scrollY: vu
+ discoverySeed: _u,
+ revision: vu,
+ scrollY: yu
}),
writeSession: (e) => W({
...e.discoverySeed === void 0 ? {} : { followDiscoverySeed: e.discoverySeed },
@@ -83456,40 +83460,40 @@ function Kze() {
...e.scrollY === void 0 ? {} : { followScrollY: e.scrollY }
}),
preferences: () => ({
- selectMode: Ql,
- selected: Zl,
+ selectMode: $l,
+ selected: Ql,
photoSize: pM(),
photoLayout: mM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: A9,
- push: j9,
+ live: j9,
+ push: M9,
route: (e) => {
- Q.route(e), mm("follow", {
- view: O9(),
- seed: gu,
- revision: _u
+ Q.route(e), hm("follow", {
+ view: k9(),
+ seed: _u,
+ revision: vu
});
},
- openPage: E9,
+ openPage: D9,
rollSeed: () => Number(k8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Nl(), q5(), K5({ manage: !1 });
+ Pl(), J5(), q5({ manage: !1 });
},
- syncPhotoWalls: h5,
+ syncPhotoWalls: g5,
scrollTop: () => {
- vm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
+ ym(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
}
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
function qze() {
- EDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), G8.own(Yc()), Wa(document.body), X.homeHasFeed = XLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, G5.sidebarProps = {
+ EDe(), $c(document), zo(document.documentElement, { variant: "page" }), zo(L("#drawerScroll")), G8.own(Xc()), Ga(document.body), X.homeHasFeed = XLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, K5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, G5.sidebarSurface = "", G5.sidebarCatalog = null, G5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, K5.sidebarSurface = "", K5.sidebarCatalog = null, K5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
@@ -83506,13 +83510,13 @@ function Yze() {
try {
localStorage.removeItem("peach.agentation");
} catch {}
- n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Pp(e, {
+ n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Fp(e, {
replace: !0,
- state: Np.navigation.location.state
+ state: Pp.navigation.location.state
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-var P9 = [
+var Xze = [
{
kind: "performer",
label: "艺人与新作",
@@ -83563,15 +83567,15 @@ var P9 = [
size: 5
}
];
-function Xze() {
- return P9.map((e) => ({
+function Zze() {
+ return Xze.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Zze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), F9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function Qze(e) {
+var Qze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), $ze = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function eBe(e) {
let t = await e("/api/search/recommendations"), n = (e, t, n, r = "") => ({
value: String(e.code || e.display_title || e.title || e.name || "未命名作品"),
id: e.id,
@@ -83582,13 +83586,13 @@ async function Qze(e) {
card: e,
href: t
}), r = (e) => {
- let { kind: t, name: r, coStarred: i, refs: a, total: o } = Ao(e);
+ let { kind: t, name: r, coStarred: i, refs: a, total: o } = jo(e);
if (!t) return n(e, void 0, "");
let s = t === "performer" ? a[0] : e.creator_entity, c = nn(t, r, s?.id);
- return n(e, void 0, i ? F9([c], o) : c, vo(r, s ?? null, t));
+ return n(e, void 0, i ? $ze([c], o) : c, yo(r, s ?? null, t));
}, i = (e, t) => {
- let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? vo(i[0], r[0] ?? null, "performer") : "";
- return n(e, t, F9(i), a);
+ let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? yo(i[0], r[0] ?? null, "performer") : "";
+ return n(e, t, $ze(i), a);
}, a = {};
a.asset = t.items ? (t.items.items || []).map(r) : null;
let o = t.jav ? t.jav.items || [] : null;
@@ -83606,7 +83610,7 @@ async function Qze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Zze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Qze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83618,10 +83622,10 @@ async function Qze(e) {
credentials: /* @__PURE__ */ new Set()
};
for (let r of c.groups || []) {
- let i = ha(r);
+ let i = ga(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = mG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let o = _a(r, a), s = n.sources.find((e) => e.id === o.source_id), c = mG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
(a === "images" ? t : e).push({
value: uG(o),
id: o.id,
@@ -83648,7 +83652,7 @@ async function Qze(e) {
avatarHtml: U8(e),
subtitle: e.latest ? `最新更新于 ${bG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
- groups: P9.map((e) => {
+ groups: Xze.map((e) => {
let t = a[e.kind] ?? [];
return {
...e,
@@ -83661,7 +83665,7 @@ async function Qze(e) {
};
}
// src/application/search-morph.js
-function $ze(e, t, n, r, i, a, o) {
+function tBe(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -83676,70 +83680,70 @@ function $ze(e, t, n, r, i, a, o) {
});
}
// src/application/search.js
-var I9 = {
+var F9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function L9() {
- I9.searchControl?.close();
+function I9() {
+ F9.searchControl?.close();
}
-function eBe(e) {
- let t = e ? to({
+function nBe(e) {
+ let t = e ? no({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
- return t === "cover" ? So(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
+ return t === "cover" ? Co(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
}
-function R9() {
- I9.searchMorph?.cancel(), I9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function L9() {
+ F9.searchMorph?.cancel(), F9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function z9(e) {
+function R9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!I9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- R9(), t.classList.remove("open");
+ let r = !!F9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ L9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
- let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Uc();
+ let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Wc();
t.classList.add("search-morphing");
- let h = t.animate($ze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(tBe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- I9.searchMorph = h, G8.handler(h, "onfinish", () => {
- I9.searchMorph === h && R9();
+ F9.searchMorph = h, G8.handler(h, "onfinish", () => {
+ F9.searchMorph === h && L9();
});
}
-function tBe() {
- return l9.immerseOpen() ? m8().activeVideo() : d8()?.activeVideo() || null;
+function rBe() {
+ return u9.immerseOpen() ? m8().activeVideo() : d8()?.activeVideo() || null;
}
-function nBe(e) {
+function iBe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function rBe() {
- I9.searchControl = null, I9.searchActions = {
+function aBe() {
+ F9.searchControl = null, F9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), f9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? x7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), p9(!1), U.q = e, Cu(), Q.route(U.jav === "1" ? S7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => g9(e),
- openEntity: (e, t) => C5(e, t),
+ openItem: (e) => _9(e),
+ openEntity: (e, t) => w5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, N9(e, !0, n);
+ $.followMediaView = t, P9(e, !0, n);
}
- }, I9.searchHelpers = {
+ }, F9.searchHelpers = {
pool: () => Xxe(U, Tn),
- recommendations: () => Qze(Tn),
- pendingRecommendations: Xze,
- rollPlaceholder: (e, t) => Qs(e, t),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Q8(e) : eBe(e)}</span>`,
- present: (e) => cs(e),
- dismiss: (e) => ls(e),
- wireScroller: (e) => Ac(e),
+ recommendations: () => eBe(Tn),
+ pendingRecommendations: Zze,
+ rollPlaceholder: (e, t) => $s(e, t),
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? Q8(e) : nBe(e)}</span>`,
+ present: (e) => ls(e),
+ dismiss: (e) => us(e),
+ wireScroller: (e) => jc(e),
typed: (e) => {
let t = e.value;
!t && X.searchValueSnapshot.text ? X.clearSearchField(X.searchValueSnapshot) : (t && (X.cancelSearchDissolve(), X.cancelSearchDissolve = () => {}), X.rememberSearchValue(e));
@@ -83751,13 +83755,13 @@ function rBe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, yp("search", {
+ }, bp("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: I9.searchActions,
- helpers: I9.searchHelpers,
+ actions: F9.searchActions,
+ helpers: F9.searchHelpers,
expose: (e) => {
- I9.searchControl = e;
+ F9.searchControl = e;
}
}, {
container: L("#searchMenu"),
@@ -83770,19 +83774,19 @@ function rBe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function iBe() {
- I9.searchMorph = null, I9.searchMorphViewport = innerWidth, G8.listen.bind(G8, window)("resize", () => {
- innerWidth !== I9.searchMorphViewport && (I9.searchMorphViewport = innerWidth, R9());
- }, { passive: !0 }), G8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", R9), G8.handler(L("#searchBtn"), "onclick", () => {
- z9(!0), L("#q").focus({ preventScroll: !0 });
+function oBe() {
+ F9.searchMorph = null, F9.searchMorphViewport = innerWidth, G8.listen.bind(G8, window)("resize", () => {
+ innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
+ }, { passive: !0 }), G8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), G8.handler(L("#searchBtn"), "onclick", () => {
+ R9(!0), L("#q").focus({ preventScroll: !0 });
}), G8.handler(L("#searchBack"), "onclick", () => {
- z9(!1), L9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+ R9(!1), I9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
- e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || z9(!1), L9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || R9(!1), I9());
};
G8.listen(document, "pointerdown", e, !0), G8.listen(document, "focusin", e), G8.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), S7();
+ e.preventDefault(), C7();
}), G8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
let t = _8();
@@ -83791,30 +83795,30 @@ function iBe() {
return;
}
if (!L("#searchMenu").hidden) {
- L9();
+ I9();
return;
}
- if (l9.immerseOpen()) {
+ if (u9.immerseOpen()) {
m8().close();
return;
}
- if (l9.stageOpen()) {
+ if (u9.stageOpen()) {
e.defaultPrevented || (e.preventDefault(), d8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- Q5(!1);
+ $5(!1);
return;
}
- if (Ql || Xl.size || Zl.size) {
- N5(!1, !0);
+ if ($l || Zl.size || Ql.size) {
+ P5(!1, !0);
return;
}
return;
}
- if (nBe(e.target)) return;
- if (!e.defaultPrevented && hje(e, s9())) {
- e.preventDefault(), o9(!i9());
+ if (iBe(e.target)) return;
+ if (!e.defaultPrevented && hje(e, c9())) {
+ e.preventDefault(), s9(!a9());
return;
}
if (e.ctrlKey || e.metaKey || e.altKey) return;
@@ -83825,7 +83829,7 @@ function iBe() {
return;
}
}
- let t = tBe();
+ let t = rBe();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), d8()?.toggleTheater();
@@ -83855,7 +83859,7 @@ function iBe() {
});
}
// src/history/links.ts
-function aBe(e) {
+function sBe(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -83869,50 +83873,50 @@ function aBe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && Bf(i.pathname)) return null;
- let a = ep(i.pathname);
- return n.startsWith("#") && !a?.section || !zf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && Vf(i.pathname)) return null;
+ let a = tp(i.pathname);
+ return n.startsWith("#") && !a?.section || !Bf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
-var B9 = {
+var z9 = {
shellActions: void 0,
routing: void 0
};
-function oBe() {
+function cBe() {
let e = G8, t = (e) => {
- e.kind === "item" ? g9(e.id, !1) : e.kind === "jav" ? v9(e.code, !1) : e.kind === "follow" ? N9(e.id, !1) : p9(e.queue, e.key, e.item, !1);
+ e.kind === "item" ? _9(e.id, !1) : e.kind === "jav" ? y9(e.code, !1) : e.kind === "follow" ? P9(e.id, !1) : m9(e.queue, e.key, e.item, !1);
};
- if (YLe(), B5.entityShapesReady = $8(), LRe(), location.pathname === "/") {
+ if (YLe(), V5.entityShapesReady = $8(), LRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, a7(L("#catalogPageHeading"), e.get("q")));
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, o7(L("#catalogPageHeading"), e.get("q")));
}
- a5(decodeURIComponent(location.pathname)) && n5(L("#feedNew")), GRe(), B9.shellActions = {
- openSettings: (e) => e7(e, !0),
+ a5(decodeURIComponent(location.pathname)) && n5(L("#feedNew")), GRe(), z9.shellActions = {
+ openSettings: (e) => t7(e, !0),
closeSettings: () => _8()?.close(!1),
- openItem: (e) => void g9(e),
- openEntity: (e, t) => void C5(e, t),
+ openItem: (e) => void _9(e),
+ openEntity: (e, t) => void w5(e, t),
openTag: (e) => {
- VRe(), B7(e);
+ VRe(), V7(e);
},
openTasteSignal: dRe,
navigate: (e) => {
- let n = new URL(e, location.href), r = zf(n.pathname, n.search);
+ let n = new URL(e, location.href), r = Bf(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- w9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Bf(location.pathname)) {
+ T9(n.pathname + n.search + n.hash, e, () => t(r));
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Vf(location.pathname)) {
Q.route(e);
- let t = Np.navigation.seq;
- Rp(n.hash, () => Np.navigation.seq === t);
+ let t = Pp.navigation.seq;
+ zp(n.hash, () => Pp.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: c7,
+ openManage: l7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => M9(),
+ openFollow: () => N9(),
receipt: (e, t) => k8.actionReceipt(e, t),
toast: (e, t) => k8.toast(e, t),
failure: k8.actionFailure,
- revealSource: v5,
+ revealSource: y5,
reopenTutorial: Jze,
routeReview: mRe,
routeFollowManage: ARe,
@@ -83920,28 +83924,28 @@ function oBe() {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(L5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(R5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => N5(!1, !1),
- personAvatar: (e, t, n) => I5.personAvatar(e, t, n),
+ exitSelectMode: () => P5(!1, !1),
+ personAvatar: (e, t, n) => L5.personAvatar(e, t, n),
authorAvatar: (e) => MRe(e),
showIndexTags: NRe,
- openFollowAuthor: z5,
+ openFollowAuthor: B5,
openFollowTag: PRe,
- openPlaylist: (e, t) => void m9(e, t, !0),
- canFlip: () => !Ql && !i9() && !window.__scrolling && !X.reduceMotion(),
+ openPlaylist: (e, t) => void h9(e, t, !0),
+ canFlip: () => !$l && !a9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
- e === "entity" ? (Nl(), W({ barsContext: {
+ e === "entity" ? (Pl(), W({ barsContext: {
type: "home",
filters: U
- } }), J5(), document.body.classList.add("entity-open"), k7(), R5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), J5(), document.body.classList.add("index-open"), k7(), R5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? J5() : (q5(), K5({ manage: e === "management" })));
+ } }), Y5(), document.body.classList.add("entity-open"), A7(), z5()) : e === "index" ? (Pl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), Y5(), document.body.classList.add("index-open"), A7(), z5()) : (Pl(), Q.claimSurface(t), e === "catalog" ? Y5() : (J5(), q5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = l9.requestedImmerseId === void 0 ? e : l9.requestedImmerseId;
- l9.requestedImmerseId = void 0, y9(t, !1);
+ let t = u9.requestedImmerseId === void 0 ? e : u9.requestedImmerseId;
+ u9.requestedImmerseId = void 0, b9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -83949,71 +83953,71 @@ function oBe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, Np.navigation.claimed && (!Fp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Fp() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, Pp.navigation.claimed && (!Ip() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Ip() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- l9.stageOpen() && f9(!1);
+ u9.stageOpen() && p9(!1);
},
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- configurable: () => !!du,
+ configurable: () => !!fu,
surfaceShown: (e) => {
- e === "index" ? (S9(), y7()) : R7();
+ e === "index" ? (C9(), b7()) : z7();
},
entity: {
missing: (e) => {
- B9.shellActions.surfaceChanged("entity", location.pathname), S5(e);
+ z9.shellActions.surfaceChanged("entity", location.pathname), C5(e);
},
- loading: (e, t, n) => Y.application.loading(e, t, n),
- props: (e, t, n) => Y.application.addressProps(e, t, n),
+ loading: (e, t, n) => l5.application.loading(e, t, n),
+ props: (e, t, n) => l5.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = Y.parseEntityFilters(n);
+ let r = l5.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = d5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !p5(e, t, r, Y.parseMediaView(n), { push: !1 }) ? !1 : (E7(r), D7(d5()), !0);
+ let i = f5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !m5(e, t, r, l5.parseMediaView(n), { push: !1 }) ? !1 : (D7(r), O7(f5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => b7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (T9(), v7(), i7()), t && F8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), S9(), R7(), Z.handOff(U7())),
- load: () => Z.handOff(U7()),
+ defaultLoc: () => x7("local,115"),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (E9(), y7(), a7()), t && F8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), C9(), z7(), Z.handOff(W7())),
+ load: () => Z.handOff(W7()),
fill: () => {
- if (J7() || !Fp() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (Y7() || !Ip() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), K7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), q7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- G7(), o5();
+ K7(), o5();
}
}
- }, B9.routing = !1, e.listen(document, "click", (e) => {
- let t = aBe(e);
- t && (e.preventDefault(), B9.shellActions.navigate(t));
- }), G8.own(Np.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && f9(!1), B9.routing && !e.claimed && T9();
- })), pLe(B9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), JRe(), wRe(), n7(), Promise.all([
- t9(),
+ }, z9.routing = !1, e.listen(document, "click", (e) => {
+ let t = sBe(e);
+ t && (e.preventDefault(), z9.shellActions.navigate(t));
+ }), G8.own(Pp.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Vf(e.location.pathname) && p9(!1), z9.routing && !e.claimed && E9();
+ })), pLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), JRe(), wRe(), r7(), Promise.all([
+ n9(),
KRe(),
- B5.entityShapesReady
+ V5.entityShapesReady
]).then(() => {
- e.isActive && (B5.wantsDiscoveryBars() && R7().catch((e) => console.error("首页横条装载失败", e)), S9(), Cze(), B9.routing = !0, W({ pageOpens: 1 }), T9(), y7());
+ e.isActive && (V5.wantsDiscoveryBars() && z7().catch((e) => console.error("首页横条装载失败", e)), C9(), Cze(), z9.routing = !0, W({ pageOpens: 1 }), E9(), b7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
-var V9 = !1;
-async function sBe(e, t) {
- if (V9) return;
+var B9 = !1;
+async function lBe(e, t) {
+ if (B9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, V9 = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, B9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -84024,11 +84028,11 @@ async function sBe(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), V9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), B9 = !1;
}
}
// src/application/chrome.js
-function cBe() {
+function uBe() {
(() => {
let e = G8, t = [
"#brandHome",
@@ -84066,7 +84070,7 @@ function cBe() {
e.handler(c, "onclick", (e) => {
e.preventDefault();
});
- let u = fs(document.querySelector("#drawer"), c, l, { side: !0 });
+ let u = ps(document.querySelector("#drawer"), c, l, { side: !0 });
e.own(u.dispose);
let d = null, f = null;
function p(e, t) {
@@ -84082,7 +84086,7 @@ function cBe() {
w: r.offsetWidth,
h: r.offsetHeight
}, a = f;
- f = i, Wc(d, e ? a : null, i, "y");
+ f = i, Gc(d, e ? a : null, i, "y");
}
e.listen(l, "toggle", (e) => {
e.newState === "open" && (l.querySelector("button")?.focus(), p(!1));
@@ -84107,11 +84111,11 @@ function cBe() {
}
let i = sessionStorage.getItem("peach.library") || "", a = n.find((e) => e[0] === i)?.[1] || "全部媒体库";
sessionStorage.setItem("peach.library-label", a), c.querySelector("h1").textContent = a;
- let o = (e) => _s[e]?.startsWith("data:") ? `<img src="${_s[e]}" alt="">` : R(_s[e] || e), s = document.createElement("span");
+ let o = (e) => vs[e]?.startsWith("data:") ? `<img src="${vs[e]}" alt="">` : R(vs[e] || e), s = document.createElement("span");
s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), Q5(!1), D5("媒体库与入库");
+ u.setOpen(!1), $5(!1), O5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -84128,18 +84132,18 @@ function cBe() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && sBe(t, () => {
+ t.getAttribute("aria-pressed") !== "true" && lBe(t, () => {
Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), nM();
});
})), nM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
- let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
+ let v = g.querySelector("#boardGlowBtn"), y = ps(g, v, _);
e.own(y.dispose), e.own(Yle(v)), bLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), Q5(!1), e7("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), $5(!1), t7("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -84151,7 +84155,7 @@ function cBe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !Z5();
+ let r = n.classList.contains("open"), i = !Q5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(G8, window)("resize", b);
@@ -84275,14 +84279,14 @@ function cBe() {
subtree: !0
}), y();
}
- })(), Q5(!Z5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), $5(!Q5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var lBe = 200, uBe = 400, dBe = 240;
-function fBe() {
+var dBe = 200, fBe = 400, pBe = 240;
+function mBe() {
let e = document.createElement("div");
e.className = "navprogress", e.setAttribute("aria-hidden", "true"), e.append(document.createElement("i")), document.body.append(e);
- let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => up() || t.size > 0, s = () => {
+ let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => dp() || t.size > 0, s = () => {
if (o()) {
if (clearTimeout(r), r = 0, e.dataset.state) {
e.dataset.state = "running";
@@ -84290,12 +84294,12 @@ function fBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, lBe);
+ }, dBe);
} else clearTimeout(n), n = 0, !(e.dataset.state !== "running" || r) && (r = window.setTimeout(() => {
e.dataset.state = "done", r = window.setTimeout(() => {
r = 0, delete e.dataset.state;
- }, dBe);
- }, Math.max(0, uBe - (performance.now() - i))));
+ }, pBe);
+ }, Math.max(0, fBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84305,46 +84309,46 @@ function fBe() {
n === "pending" && r === "fetching" && !i && e.getObserversCount() > 0 ? t.add(e) : t.delete(e);
}, u = H.getQueryCache().subscribe((e) => {
e.type === "removed" ? t.delete(e.query) : l(e.query), c();
- }), d = dp(c);
+ }), d = fp(c);
for (let e of H.getQueryCache().getAll()) l(e);
return c(), () => {
u(), d(), clearTimeout(n), clearTimeout(r), e.remove();
};
}
// src/application/initialize.js
-function pBe() {
- qze(), Nze(), RRe(), Pze(), Tze(), xLe(), gze(), Yze(), cRe(), jze(), TRe(), _ze(), tRe(), hRe(), Gze(), FRe(), lRe(), Kze(), IRe(), uRe(), eze(), vze(), rBe(), Mze(), iBe(), Eze(), oBe(), cBe(), G8.own(fBe()), G8.own(G7), G8.own(C9);
+function hBe() {
+ qze(), Nze(), RRe(), Pze(), Tze(), xLe(), gze(), Yze(), cRe(), jze(), TRe(), _ze(), tRe(), hRe(), Gze(), FRe(), lRe(), Kze(), IRe(), uRe(), eze(), vze(), aBe(), Mze(), oBe(), Eze(), cBe(), uBe(), G8.own(mBe()), G8.own(K7), G8.own(w9);
}
// src/ui-kit/middle-truncate.ts
-var mBe = "…", hBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, H9 = /* @__PURE__ */ new WeakMap(), U9 = /* @__PURE__ */ new Set(), W9 = 0, G9 = /* @__PURE__ */ new WeakSet(), K9 = null, q9 = null, gBe = (e) => hBe ? [...hBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (e, t) => {
+var gBe = "…", _Be = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, vBe = (e) => _Be ? [..._Be.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + mBe + (r ? e.slice(-r).join("") : "");
-}, _Be = (e, t) => {
+ return e.slice(0, n).join("") + gBe + (r ? e.slice(-r).join("") : "");
+}, yBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
let a = n + r >> 1;
- t(J9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
+ t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, vBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, yBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, bBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, xBe = /[＀-￯]/u, SBe = (e) => yBe.test(e) ? 1 : bBe.test(e) && !xBe.test(e) ? 2 : 0, CBe = (e) => {
+}, bBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, xBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, SBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, CBe = /[＀-￯]/u, wBe = (e) => xBe.test(e) ? 1 : SBe.test(e) && !CBe.test(e) ? 2 : 0, TBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = SBe(r);
+ let e = wBe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, wBe = null, TBe = (e, t) => {
- let n = getComputedStyle(e), r = (wBe ||= document.createElement("canvas")).getContext("2d");
+}, EBe = null, DBe = (e, t) => {
+ let n = getComputedStyle(e), r = (EBe ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, gBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += CBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, vBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += TBe(e) * s), t;
};
-}, EBe = [
+}, OBe = [
"font-family",
"font-size",
"font-weight",
@@ -84369,22 +84373,22 @@ var mBe = "…", hBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], Y9 = null, DBe = (e) => {
- if (!Y9) {
+], J9 = null, kBe = (e) => {
+ if (!J9) {
let e = document.createElement("div");
- e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", Y9 = {
+ e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", J9 = {
box: e,
groups: /* @__PURE__ */ new Map()
};
}
- Y9.box.isConnected || document.documentElement.append(Y9.box);
- let t = getComputedStyle(e), n = EBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = Y9.groups.get(i);
- return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(EBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
-}, OBe = 8, kBe = (e) => {
- for (let t = 0; e.length && t < OBe; t++) {
+ J9.box.isConnected || document.documentElement.append(J9.box);
+ let t = getComputedStyle(e), n = OBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(OBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
+}, ABe = 8, jBe = (e) => {
+ for (let t = 0; e.length && t < ABe; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
- return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = J9(e.fit.parts, t), e.group.append(n), n;
+ return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = q9(e.fit.parts, t), e.group.append(n), n;
}));
e.forEach((e, n) => e.tries.forEach((r, i) => {
t[n][i].getBoundingClientRect().width <= e.fit.available ? e.fits = Math.max(e.fits, r) : e.fails = Math.min(e.fails, r);
@@ -84399,28 +84403,28 @@ var mBe = "…", hBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, ABe = (e) => {
+}, MBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = vBe.test(e), i = TBe(n.element, r);
- if (n.kept = _Be(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = bBe.test(e), i = DBe(n.element, r);
+ if (n.kept = yBe(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: DBe(n.element),
+ group: kBe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- kBe(t);
-}, jBe = (e) => {
+ jBe(t);
+}, NBe = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, MBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return jBe(e);
+}, PBe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return NBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84429,75 +84433,75 @@ var mBe = "…", hBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, NBe = () => {
- W9 = 0;
+}, FBe = () => {
+ U9 = 0;
let e = [];
- for (let t of U9) {
- let n = H9.get(t);
+ for (let t of H9) {
+ let n = V9.get(t);
n && t.isConnected && e.push({
element: t,
state: n,
- available: MBe(t),
- parts: gBe(n.full),
+ available: PBe(t),
+ parts: vBe(n.full),
kept: 0
});
}
- U9.clear(), ABe(e.filter((e) => e.available > 0));
+ H9.clear(), MBe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
- let e = r > 0 ? J9(i, a) : n.full;
+ let e = r > 0 ? q9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
let o = e !== n.full;
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
-}, X9 = (e) => {
- H9.has(e) && (U9.add(e), W9 ||= requestAnimationFrame(NBe));
-}, PBe = (e) => {
- e instanceof HTMLElement && (H9.has(e) || H9.set(e, {
+}, Y9 = (e) => {
+ V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(FBe));
+}, IBe = (e) => {
+ e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
- }), G9.has(e) || (G9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? K9?.observe(e.parentElement) : K9?.observe(e)), X9(e));
-}, FBe = (e) => {
+ }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
+}, LBe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && PBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(PBe);
+ t.matches("[data-middle-truncate]") && IBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(IBe);
};
-function IBe(e = document) {
- q9?.(), G9 = /* @__PURE__ */ new WeakSet();
+function RBe(e = document) {
+ K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
- K9 = new ResizeObserver((e) => e.forEach((e) => {
- t && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
+ G9 = new ResizeObserver((e) => e.forEach((e) => {
+ t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
}));
- let n = K9;
- FBe(e.documentElement || e);
+ let n = G9;
+ LBe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(FBe);
+ e.addedNodes.forEach(LBe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
- let r = H9.get(n);
- r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), X9(n));
+ let r = V9.get(n);
+ r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), Y9(n));
}));
r.observe(e.body || e, {
childList: !0,
characterData: !0,
subtree: !0
}), document.fonts?.ready?.then(() => {
- t && e.querySelectorAll("[data-middle-truncate]").forEach(X9);
+ t && e.querySelectorAll("[data-middle-truncate]").forEach(Y9);
});
let i = (e) => {
let t = document.getSelection();
if (!t || t.isCollapsed) return;
- let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && H9.get(n);
+ let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && V9.get(n);
r && n.contains(t.focusNode) && e.clipboardData && (e.clipboardData?.setData("text/plain", r.full), e.preventDefault());
};
e.addEventListener("copy", i);
let a = () => {
- t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), Y9?.box.remove(), W9 && cancelAnimationFrame(W9), W9 = 0, U9.clear(), q9 === a && (q9 = null, K9 = null));
+ t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), J9?.box.remove(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
};
- return q9 = a, a;
+ return K9 = a, a;
}
// src/react/result-updates.tsx
-var LBe = [
+var zBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84515,44 +84519,44 @@ var LBe = [
"trash-summary",
"junk-summary",
"immerse-list"
-], Z9 = [
+], X9 = [
"follow-feed",
"follow-item",
"follow-manage",
"follow",
"entity",
"index"
-], RBe = [
+], BBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], zBe = {
+], VBe = {
catalog: [
- ...LBe,
- ...Z9,
+ ...zBe,
+ ...X9,
"review",
"taste"
],
follow: [
- ...Z9,
+ ...X9,
"stats",
"taste"
],
- discoveries: RBe,
+ discoveries: BBe,
review: ["review"],
artwork: [
- ...LBe,
- ...Z9,
- ...RBe,
+ ...zBe,
+ ...X9,
+ ...BBe,
"avatar-choices"
]
};
-function BBe() {
+function HBe() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of zBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of VBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84565,67 +84569,67 @@ function BBe() {
})), t || Promise.resolve();
};
}
-function VBe() {
+function UBe() {
let e = Ft({
queryKey: VI,
queryFn: ({ signal: e }) => UI(e),
refetchInterval: (e) => HI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(BBe), r = e.data?.result_versions;
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(HBe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
// src/react/application.tsx
-var Q9 = null;
-function HBe(e) {
- Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
+var Z9 = null;
+function WBe(e) {
+ Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
}
-function UBe() {
- if (!Q9) {
+function GBe() {
+ if (!Z9) {
let e = LLe();
- Q9 = {
+ Z9 = {
effects: e,
owners: 0
- }, e.own(IBe(document)), e.own(() => {
- Nl(), H.cancelQueries();
- }), e.own(mLe), e.own(Cp), e.own(os);
+ }, e.own(RBe(document)), e.own(() => {
+ Pl(), H.cancelQueries();
+ }), e.own(mLe), e.own(wp), e.own(ss);
}
- return Q9.owners += 1, Q9.effects.resume(), Q9;
+ return Z9.owners += 1, Z9.effects.resume(), Z9;
}
-function WBe() {
+function KBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Q9 === null, n = UBe(), r = fLe(t);
+ let e = Z9 === null, n = GBe(), r = fLe(t);
if (e) try {
- pBe();
+ hBe();
} catch (e) {
- throw r(), n.effects.dispose(), Q9 = null, e;
+ throw r(), n.effects.dispose(), Z9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => HBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => WBe(n)));
};
}, []), /* @__PURE__ */ (0, I.jsx)(Obe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(VBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(UBe, {}) : null
});
}
-var $9 = /* @__PURE__ */ new WeakMap();
-function GBe(e) {
- let t = $9.get(e);
+var Q9 = /* @__PURE__ */ new WeakMap();
+function qBe(e) {
+ let t = Q9.get(e);
if (t) return t;
let n = (0, zt.createRoot)(e, kbe);
- $9.set(e, n);
+ Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- $9.get(e) === n && ($9.delete(e), r(), Q9 && HBe(Q9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(WBe, {}))), n;
+ Q9.get(e) === n && (Q9.delete(e), r(), Z9 && WBe(Z9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(KBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
-var KBe = document.getElementById("appRoot");
-if (!KBe) throw Error("主界面宿主缺失");
-GBe(KBe);
-export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, SD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, Khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ghe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Yhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, lE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Nge as $l, Bj as ACCENTS, VAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, HAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, C2 as BATCH_DELETE_TEXT, J as Button, hL as ButtonLink, VB as Bx, j$ as CHECK_ALL_KEY, a$ as CLEANUP_ENTRY, i$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, X$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, UAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, T$ as CUSTOM_SOURCES_KEY, w$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, QQ as CollectionSummary, Sve as CommandSteps, bTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, wQ as DIAGNOSTICS_KEY, yEe as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, kye as DownloadsPanel, xge as E3, xTe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, NB as Ea, o_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Xge as Eu, Cve as ExternalLink, Vr as FEEDS_KEY, qY as FEED_SCHEDULE_KEY, n$ as FIELDSET_FOOT, vIe as FLOW_LABEL_X, r6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, B8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, DZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, KY as FOLLOW_SCHEDULE_KEY, Eve as Fact, Tve as FactList, PH as FieldLabel, h$ as Fieldset, m$ as FieldsetTitle, Upe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, xve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, uIe as IDLE_POLL_MS, lTe as IDLE_REPAIR, rL as IconButton, EQ as IndexSearch, rV as Input, nV as InputBase, _$ as IssueRow, iM as JAV_LAYOUTS, H0 as JAV_RECOMMENDATION_GRID, vX as JUNK_KEY, mW as JavHeader, rTe as KEEP_LABELS, dge as L1, Ur as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, GTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, b$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Fge as Lo, CH as LoadingDots, Cge as M6, XTe as MEDIA_PROCESSING_KEY, YY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Lge as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, bx as MotionConfigContext, YB as NR, g$ as NameLink, oV as Note, n_e as OA, QY as ORGANIZE_KEY, b2 as ORGANIZE_PARAMETER_HINT, y2 as ORGANIZE_SCOPE_HINT, v2 as ORGANIZE_TEXT, tX as ORPHAN_RECORDS_KEY, S2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, hX as PERFORMER_DELETE_KEY, Rye as PHASES, BY as PICK_FOLDER_URL, s$ as PLAIN_STAT_STRIP, S$ as PLAYLISTS_KEY, aMe as POLICY_COLUMNS, sMe as POLICY_COVER_NOTE, oMe as POLICY_MATRIX, G1 as POLICY_SUMMARY, LJ as Pagination, y$ as PathLine, qB as Pf, MI as PillTabList, lAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, z0 as RELEASE_COLUMN_VISIBILITY_KEY, R0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, FMe as RELEASE_SORT_COLUMNS, l$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, oX as RESOURCE_APPLY_KEY, aX as RESOURCE_SCAN_KEY, x2 as RESOURCE_SYNC_TEXT, hAe as RESULT_PANEL, gAe as RESULT_SECTION, yTe as REVIEW_CATEGORIES, _X as REVIEW_COUNTS_KEY, STe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, e_e as Rf, XB as Rk, vve as Rows, D$ as SCRAPING_CHECK_ALL_URL, zAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, RAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, GY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, O3 as STATS_KEY, sAe as STAT_STRIP, cAe as STAT_STRIP_SIX, _ve as Section, _Ae as SectionHeading, bve as SectionSkeleton, $H as SegmentedRadioGroup, Vve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, e1 as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, gve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, Ave as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, sQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, yve as Stack, uAe as StatCard, v$ as StatusLabel, Zge as Su, o4 as Switch, VI as TASKS_KEY, $Fe as TASTE_REFRESH_KEY, eIe as TASTE_WINDOWS, JY as THUMBNAIL_JOBS_KEY, bX as TRASH_KEY, Spe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, qQ as TagManager, wve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, t_e as Uz, eW as WANTS_KEY, x4 as WantMagnets, Jg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, $ge as aB, Ei as addAlias, Ti as addSource, nW as addWant, lS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, REe as applyConfirmText, mX as applyLeftovers, LEe as applyPlanText, BEe as applyText, nM as applyTheme, vy as asNumber, EEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, fq as autoResetPageIndex, _o as avatarInner, P3 as bandRows, bEe as baseName, cTe as batchOperate, Rue as beginPlayerGuidePreview, Cj as boundedPreference, aTe as bulkCloudPreferences, dV as busyProps, Qge as cB, OPe as cachedMagnetStates, Hg as calcGeneratorVelocity, kTe as canApprove, vg as cancelFrame, jEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, YTe as checkLine, Hi as checkReceipt, Ui as checkSummary, GAe as checkText, Ki as checkedText, eK as clickedBlank, $5 as closeDrawerAfterNav, Xwe as cloudLocations, E0 as cloudProxySkeleton, HC as clsx, Bge as cn, cv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, DTe as commonReviewSources, ZU as composingKey, Af as configurationSection, iIe as configureTasteBrowser, ll as confirmModal, bpe as controlTask, JK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Cq as createColumnHelper, MAe as createPlaylist, Xi as credentialDone, S0 as credentialsSkeleton, RTe as currentReviewRow, q as cx, wge as d6, BB as dZ, FTe as decisionPayload, ITe as decisionReceipt, PTe as defaultChoice, HEe as deletePerformerVideos, PAe as deletePlaylist, A0 as devicesSkeleton, x as diagnosticHeaders, W1 as diagnosticsSkeleton, qye as discoveryArtwork, sW as discoveryKey, Wye as discoveryScore, f9 as disposeStage, tTe as distinctName, Bi as dropSources, Yge as du, oTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, bo as facePos, ei as feedIntervalText, I$ as fetchAmaneBridge, F$ as fetchCheckAllJob, vi as fetchCheckJob, Z$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, E$ as fetchCustomSources, gX as fetchDeletePerformers, VEe as fetchDeletePlan, TQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, gpe as fetchEarlier, $Te as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, QTe as fetchFollowSchedule, SX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, ZTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, $Y as fetchOrganize, fEe as fetchOrganizeExample, nX as fetchOrphanRecords, ji as fetchPending, C$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, yi as fetchResolveJob, cX as fetchResourceApply, sX as fetchResourceScan, OY as fetchReview, xX as fetchReviewCounts, XY as fetchSettings, N$ as fetchSources, k3 as fetchStats, bi as fetchSuggestions, UI as fetchTasks, e6 as fetchTaste, aIe as fetchTasteJob, eEe as fetchThumbnailJobs, CX as fetchTrashSummary, tW as fetchWants, TTe as filterReviewRows, er as firstGrapheme, AK as flexRender, bIe as flowGraph, xIe as flowLabel, yFe as fmtCount, Jn as fmtDur, Xn as fmtSize, hpe as foldByKind, Mpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, Ppe as followupDetail, mpe as followupTally, _g as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, li as groupByAuthor, jpe as groupFollowups, TY as groupReviewRows, FEe as hasChanges, lX as hasResourceRoots, GI as hasResultProblems, dIe as historySpan, hB as i2, lIe as importTasteExport, C0 as indexersSkeleton, wee as interpolate, iW as invalidateWants, qI as isActive, $r as isBroken, qr as isLayout, vv as isMotionValue, bY as isReviewCategory, Npe as isRoutine, w0 as javBrowserSkeleton, W0 as javContentSkeleton, lM as javLayout, U0 as javTagSkeleton, qEe as junkBreakdown, Qwe as keepGroup, FAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, A3 as known, uge as l1, _ge as l7, Ape as latestOfKind, $n as leadingGraphemes, jFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, Ai as markItem, F3 as max, kFe as mediumRows, _pe as mergeFinished, I3 as min, UTe as mirrorText, fTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, uS as motion, uv as motionValue, rn as nameFallback, Ue as notifyManager, Tge as oe, SEe as organizeOutcome, o2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, NTe as pendingGenres, xFe as percentText, hEe as pickOrganizeFolder, o$ as plainStatClass, xEe as planSummary, j3 as playedFor, CFe as playedItemUrl, HI as pollInterval, Ys as popCount, jAe as posterUrl, bxe as previewLibraryColor, mEe as previewOrganize, hTe as previewUrl, Ope as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, JTe as pruneText, dX as purgeCount, DEe as purgeOrphan, HB as pv, Jge as qE, H as queryClient, gB as r2, _Ie as radarRows, EFe as radialArc, DFe as radialBarSize, TFe as radialCeiling, wFe as radialSlices, NN as randomId, hIe as rankDetail, gIe as rankShares, N3 as reachedShare, XI as readableErrorHeadline, Gye as recommendationScore, zTe as recordGenre, kEe as recordsText, IAe as recreatePlaylist, kAe as refreshPlaylists, El as relayoutCovers, B0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Vi as reloadFollowManage, HTe as reloadReview, uMe as rememberShape, _Ee as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, cIe as removeTasteSource, rW as removeWants, Oi as renameAliasGroup, NAe as renamePlaylist, Se as replaceEqualDeep, NFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, Vye as resetWants, mr as resolveFollowSort, Gg as resolveStartTime, Q_e as restartEffectText, AAe as resumeAssetId, wTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, KEe as reviewSummary, ETe as reviewWindow, jTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, MTe as rowTags, ATe as rowTitle, mge as s5, ki as saveCredential, IEe as scanLine, aEe as schedulePollInterval, Uye as searchNote, OTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, VTe as settleReviewRows, eTe as sharedNamePrefix, Pp as shellNavigate, O8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, zEe as sourceMeta, Bs as spinnerHtml, Lg as spring, lV as spriteGlyph, xi as startCheck, KTe as startLinkCheck, qTe as startLinkPrune, gEe as startOrganize, Si as startResolve, NEe as startResourceApply, MEe as startResourceScan, sIe as startTasteRefresh, oAe as statCardClass, wpe as statusLabel, dTe as statusLine, Qr as statusText, vM as storeJavLayout, LTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, di as tableRows, Dpe as taskIssues, kpe as taskSubject, t6 as tasteDate, pIe as tasteDimensions, fIe as tasteHours, $3 as tasteKey, nIe as tasteRefetchInterval, rIe as tasteTime, II as textLang, L0 as tierPlaceholdersHtml, ch as time, jge as tl, hi as toggleGroup, n6 as topScores, Hge as um, Ige as uo, dH as useAction, SZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, bm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, Qx as useReducedMotion, iEe as useRunSchedule, nEe as useSaveFollowSchedule, ZY as useSaveSettings, oEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, sTe as victimBytes, Mge as vl, Hye as wantName, SFe as watchNote, M3 as watchedShare, Ege as we, Ac as wireHorizontalScroller, vEe as withOrganizeJob, Kye as writeJavQuery, Sge as z3 };
+var $9 = document.getElementById("appRoot");
+if (!$9) throw Error("主界面宿主缺失");
+qBe($9);
+export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, TD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, Khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ghe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Yhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Nge as $l, Bj as ACCENTS, VAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, HAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, C2 as BATCH_DELETE_TEXT, Y as Button, hL as ButtonLink, VB as Bx, j$ as CHECK_ALL_KEY, a$ as CLEANUP_ENTRY, i$ as CLEANUP_ENTRY_GRID, Qf as CLEANUP_HASH_REDIRECTS, Xf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, X$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, UAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Xi as CREDENTIAL_STATE, T$ as CUSTOM_SOURCES_KEY, w$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, QQ as CollectionSummary, Sve as CommandSteps, bTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, wQ as DIAGNOSTICS_KEY, yEe as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, kye as DownloadsPanel, xge as E3, xTe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, NB as Ea, o_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Xge as Eu, Cve as ExternalLink, Vr as FEEDS_KEY, qY as FEED_SCHEDULE_KEY, n$ as FIELDSET_FOOT, vIe as FLOW_LABEL_X, r6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, B8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, DZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, KY as FOLLOW_SCHEDULE_KEY, Eve as Fact, Tve as FactList, PH as FieldLabel, h$ as Fieldset, m$ as FieldsetTitle, Upe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, xve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, uIe as IDLE_POLL_MS, lTe as IDLE_REPAIR, rL as IconButton, EQ as IndexSearch, rV as Input, nV as InputBase, _$ as IssueRow, iM as JAV_LAYOUTS, H0 as JAV_RECOMMENDATION_GRID, vX as JUNK_KEY, mW as JavHeader, rTe as KEEP_LABELS, dge as L1, Ur as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, GTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, b$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Fge as Lo, CH as LoadingDots, Cge as M6, XTe as MEDIA_PROCESSING_KEY, YY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, vs as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Lge as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, Cx as MotionConfigContext, YB as NR, g$ as NameLink, oV as Note, n_e as OA, QY as ORGANIZE_KEY, b2 as ORGANIZE_PARAMETER_HINT, y2 as ORGANIZE_SCOPE_HINT, v2 as ORGANIZE_TEXT, tX as ORPHAN_RECORDS_KEY, S2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, hX as PERFORMER_DELETE_KEY, Rye as PHASES, BY as PICK_FOLDER_URL, s$ as PLAIN_STAT_STRIP, S$ as PLAYLISTS_KEY, aMe as POLICY_COLUMNS, sMe as POLICY_COVER_NOTE, oMe as POLICY_MATRIX, G1 as POLICY_SUMMARY, LJ as Pagination, y$ as PathLine, qB as Pf, MI as PillTabList, lAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, z0 as RELEASE_COLUMN_VISIBILITY_KEY, R0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, FMe as RELEASE_SORT_COLUMNS, l$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, oX as RESOURCE_APPLY_KEY, aX as RESOURCE_SCAN_KEY, x2 as RESOURCE_SYNC_TEXT, hAe as RESULT_PANEL, gAe as RESULT_SECTION, yTe as REVIEW_CATEGORIES, _X as REVIEW_COUNTS_KEY, STe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, e_e as Rf, XB as Rk, vve as Rows, D$ as SCRAPING_CHECK_ALL_URL, zAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, RAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, GY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, O3 as STATS_KEY, sAe as STAT_STRIP, cAe as STAT_STRIP_SIX, _ve as Section, _Ae as SectionHeading, bve as SectionSkeleton, $H as SegmentedRadioGroup, Vve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, e1 as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, gve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, Ave as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, sQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, yve as Stack, uAe as StatCard, v$ as StatusLabel, Zge as Su, o4 as Switch, VI as TASKS_KEY, $Fe as TASTE_REFRESH_KEY, eIe as TASTE_WINDOWS, JY as THUMBNAIL_JOBS_KEY, bX as TRASH_KEY, Spe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, qQ as TagManager, wve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, t_e as Uz, eW as WANTS_KEY, x4 as WantMagnets, Yg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, $ge as aB, Ei as addAlias, Ti as addSource, nW as addWant, fS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, REe as applyConfirmText, mX as applyLeftovers, LEe as applyPlanText, BEe as applyText, nM as applyTheme, by as asNumber, EEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, fq as autoResetPageIndex, vo as avatarInner, P3 as bandRows, bEe as baseName, cTe as batchOperate, Rue as beginPlayerGuidePreview, Cj as boundedPreference, aTe as bulkCloudPreferences, dV as busyProps, Qge as cB, OPe as cachedMagnetStates, Ug as calcGeneratorVelocity, kTe as canApprove, vg as cancelFrame, jEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Ki as checkEvidenceGap, Gi as checkFailures, Fi as checkFeeds, YTe as checkLine, Ui as checkReceipt, Wi as checkSummary, GAe as checkText, qi as checkedText, eK as clickedBlank, e7 as closeDrawerAfterNav, Xwe as cloudLocations, E0 as cloudProxySkeleton, GC as clsx, Bge as cn, lv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, DTe as commonReviewSources, ZU as composingKey, jf as configurationSection, iIe as configureTasteBrowser, ul as confirmModal, bpe as controlTask, JK as copyInstancePropertiesWithoutMemos, uo as coverUrl, Cq as createColumnHelper, MAe as createPlaylist, Zi as credentialDone, S0 as credentialsSkeleton, RTe as currentReviewRow, J as cx, wge as d6, BB as dZ, FTe as decisionPayload, ITe as decisionReceipt, PTe as defaultChoice, HEe as deletePerformerVideos, PAe as deletePlaylist, A0 as devicesSkeleton, x as diagnosticHeaders, W1 as diagnosticsSkeleton, qye as discoveryArtwork, sW as discoveryKey, Wye as discoveryScore, p9 as disposeStage, tTe as distinctName, Vi as dropSources, Yge as du, oTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, _o as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, xo as facePos, ei as feedIntervalText, I$ as fetchAmaneBridge, F$ as fetchCheckAllJob, vi as fetchCheckJob, Z$ as fetchConfiguration, P$ as fetchCoverJob, _i as fetchCredentials, E$ as fetchCustomSources, gX as fetchDeletePerformers, VEe as fetchDeletePlan, TQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, gpe as fetchEarlier, $Te as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, QTe as fetchFollowSchedule, SX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, ZTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, $Y as fetchOrganize, fEe as fetchOrganizeExample, nX as fetchOrphanRecords, ji as fetchPending, C$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, yi as fetchResolveJob, cX as fetchResourceApply, sX as fetchResourceScan, OY as fetchReview, xX as fetchReviewCounts, XY as fetchSettings, N$ as fetchSources, k3 as fetchStats, bi as fetchSuggestions, UI as fetchTasks, e6 as fetchTaste, aIe as fetchTasteJob, eEe as fetchThumbnailJobs, CX as fetchTrashSummary, tW as fetchWants, TTe as filterReviewRows, er as firstGrapheme, AK as flexRender, bIe as flowGraph, xIe as flowLabel, yFe as fmtCount, Jn as fmtDur, Xn as fmtSize, hpe as foldByKind, Mpe as foldRoutine, Li as followFeedByName, Ri as followFeedEntity, Hr as followSuggestKey, Ppe as followupDetail, mpe as followupTally, _g as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, li as groupByAuthor, jpe as groupFollowups, TY as groupReviewRows, FEe as hasChanges, lX as hasResourceRoots, GI as hasResultProblems, dIe as historySpan, hB as i2, lIe as importTasteExport, C0 as indexersSkeleton, zg as interpolate, iW as invalidateWants, qI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, bY as isReviewCategory, Npe as isRoutine, w0 as javBrowserSkeleton, W0 as javContentSkeleton, lM as javLayout, U0 as javTagSkeleton, qEe as junkBreakdown, Qwe as keepGroup, FAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, A3 as known, uge as l1, _ge as l7, Ape as latestOfKind, $n as leadingGraphemes, jFe as lengthRows, Cr as localTime, mo as logoUrl, Ii as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, Ai as markItem, F3 as max, kFe as mediumRows, _pe as mergeFinished, I3 as min, UTe as mirrorText, fTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, pS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, Tge as oe, SEe as organizeOutcome, o2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, Bi as patchSource, Pp as peachHistory, Pp as peachHistory$1, NTe as pendingGenres, xFe as percentText, hEe as pickOrganizeFolder, o$ as plainStatClass, xEe as planSummary, j3 as playedFor, CFe as playedItemUrl, HI as pollInterval, Xs as popCount, jAe as posterUrl, bxe as previewLibraryColor, mEe as previewOrganize, hTe as previewUrl, Ope as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, JTe as pruneText, dX as purgeCount, DEe as purgeOrphan, HB as pv, Jge as qE, H as queryClient, gB as r2, _Ie as radarRows, EFe as radialArc, DFe as radialBarSize, TFe as radialCeiling, wFe as radialSlices, NN as randomId, hIe as rankDetail, gIe as rankShares, N3 as reachedShare, XI as readableErrorHeadline, Gye as recommendationScore, zTe as recordGenre, kEe as recordsText, IAe as recreatePlaylist, kAe as refreshPlaylists, Dl as relayoutCovers, B0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Hi as reloadFollowManage, HTe as reloadReview, uMe as rememberShape, _Ee as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, cIe as removeTasteSource, rW as removeWants, Oi as renameAliasGroup, NAe as renamePlaylist, Se as replaceEqualDeep, NFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, Vye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, Q_e as restartEffectText, AAe as resumeAssetId, wTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, KEe as reviewSummary, ETe as reviewWindow, jTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, MTe as rowTags, ATe as rowTitle, mge as s5, ki as saveCredential, IEe as scanLine, aEe as schedulePollInterval, Uye as searchNote, OTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Ff as settingsPath, VTe as settleReviewRows, eTe as sharedNamePrefix, Fp as shellNavigate, O8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Yi as sourceIconUrl, zEe as sourceMeta, Vs as spinnerHtml, Lg as spring, lV as spriteGlyph, xi as startCheck, KTe as startLinkCheck, qTe as startLinkPrune, gEe as startOrganize, Si as startResolve, NEe as startResourceApply, MEe as startResourceScan, sIe as startTasteRefresh, oAe as statCardClass, wpe as statusLabel, dTe as statusLine, Qr as statusText, vM as storeJavLayout, LTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, di as tableRows, Dpe as taskIssues, kpe as taskSubject, t6 as tasteDate, pIe as tasteDimensions, fIe as tasteHours, $3 as tasteKey, nIe as tasteRefetchInterval, rIe as tasteTime, II as textLang, L0 as tierPlaceholdersHtml, lh as time, jge as tl, hi as toggleGroup, n6 as topScores, Hge as um, Ige as uo, dH as useAction, SZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, xm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, Sm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, tS as useReducedMotion, iEe as useRunSchedule, nEe as useSaveFollowSchedule, ZY as useSaveSettings, oEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, sTe as victimBytes, Mge as vl, Hye as wantName, SFe as watchNote, M3 as watchedShare, Ege as we, jc as wireHorizontalScroller, vEe as withOrganizeJob, Kye as writeJavQuery, Sge as z3 };
-//# debugId=7d1e5504-3c3e-4d2c-832f-6b9e65541c07
\ No newline at end of file
+//# debugId=47ac12be-9799-4945-8514-f22d55a6be73
\ No newline at end of file